From 281974e80dd42eb3af684bcfcd56f644bc553ae6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 09:58:38 +0000 Subject: [PATCH 1/6] chore: configure new SDK language --- .stats.yml | 4 ++-- README.md | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9441a68d..e2813b39 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-d306a9f90ec487d227a47c390018997eebc86a5983ac7fe21f945b82a74868db.yml openapi_spec_hash: 47d20b6496315d47f4f64441d4682f47 -config_hash: 9c2a17b9755f3edac92a3ec4b93ac51c +config_hash: f0caff211e137f418213baf5da549f3b diff --git a/README.md b/README.md index e368a49d..9f8639fd 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,15 @@ The HubSpot Ruby library provides convenient access to HubSpot's date-versioned It is generated with [Stainless](https://www.stainless.com/). +## MCP Server + +Use the HubSpot MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application. + +[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40hubspot%2Fsdk-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBodWJzcG90L3Nkay1tY3AiXSwiZW52Ijp7IkhVQlNQT1RfQUNDRVNTX1RPS0VOIjoiTXkgQWNjZXNzIFRva2VuIiwiSFVCU1BPVF9ERVZFTE9QRVJfQVBJX0tFWSI6Ik15IERldmVsb3BlciBBUEkgS2V5In19) +[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40hubspot%2Fsdk-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40hubspot%2Fsdk-mcp%22%5D%2C%22env%22%3A%7B%22HUBSPOT_ACCESS_TOKEN%22%3A%22My%20Access%20Token%22%2C%22HUBSPOT_DEVELOPER_API_KEY%22%3A%22My%20Developer%20API%20Key%22%7D%7D) + +> Note: You may need to set environment variables in your MCP client. + ## Documentation Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/hubspot-sdk). From c947e31f8771b914c7a8374f7d06b5f970d69a6a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 09:59:33 +0000 Subject: [PATCH 2/6] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e2813b39..3e5d86cf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 955 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-d306a9f90ec487d227a47c390018997eebc86a5983ac7fe21f945b82a74868db.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-15f6f8c8af544fcdb763ecbe190ab42b3565a9f048111a02a9a255845c383ab5.yml openapi_spec_hash: 47d20b6496315d47f4f64441d4682f47 -config_hash: f0caff211e137f418213baf5da549f3b +config_hash: a79df9b7d8f6fcbbdee9076f1d8ad007 From 80a246495532c57b7165d0a6a5b70b5535e6aaf9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 09:44:33 +0000 Subject: [PATCH 3/6] feat(api): manual updates --- .stats.yml | 4 ++-- README.md | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3e5d86cf..c94373b3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 955 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-15f6f8c8af544fcdb763ecbe190ab42b3565a9f048111a02a9a255845c383ab5.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-45b4e4548d5c629c40a55d10db6d924a20591a47a25928c3eeb82b3a7e1b640e.yml openapi_spec_hash: 47d20b6496315d47f4f64441d4682f47 -config_hash: a79df9b7d8f6fcbbdee9076f1d8ad007 +config_hash: 997f7d3ccb889010d92f2906d731d7d1 diff --git a/README.md b/README.md index 9f8639fd..e368a49d 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,6 @@ The HubSpot Ruby library provides convenient access to HubSpot's date-versioned It is generated with [Stainless](https://www.stainless.com/). -## MCP Server - -Use the HubSpot MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application. - -[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40hubspot%2Fsdk-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBodWJzcG90L3Nkay1tY3AiXSwiZW52Ijp7IkhVQlNQT1RfQUNDRVNTX1RPS0VOIjoiTXkgQWNjZXNzIFRva2VuIiwiSFVCU1BPVF9ERVZFTE9QRVJfQVBJX0tFWSI6Ik15IERldmVsb3BlciBBUEkgS2V5In19) -[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40hubspot%2Fsdk-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40hubspot%2Fsdk-mcp%22%5D%2C%22env%22%3A%7B%22HUBSPOT_ACCESS_TOKEN%22%3A%22My%20Access%20Token%22%2C%22HUBSPOT_DEVELOPER_API_KEY%22%3A%22My%20Developer%20API%20Key%22%7D%7D) - -> Note: You may need to set environment variables in your MCP client. - ## Documentation Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/hubspot-sdk). From 93c23e2002b62e385dd2a5cbe3ce2e2357349abe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 11:30:37 +0000 Subject: [PATCH 4/6] feat(api): manual updates --- .stats.yml | 8 +- lib/hubspot_sdk.rb | 90 +- lib/hubspot_sdk/client.rb | 4 + lib/hubspot_sdk/internal/type/union.rb | 16 +- lib/hubspot_sdk/models.rb | 45 + .../models/action_override_request.rb | 49 + ...cycle_event_subscription_upsert_request.rb | 39 + ...association_subscription_upsert_request.rb | 81 + .../models/auth/access_token_response.rb | 75 + .../auth/client_credentials_token_response.rb | 69 + .../models/auth/oauth_create_token_params.rb | 1 + .../models/auth/token_response_if.rb | 19 + .../models/automation/array_field_schema.rb | 6 - .../models/automation/boolean_field_schema.rb | 6 - .../models/automation/double_field_schema.rb | 6 - .../models/automation/integer_field_schema.rb | 6 - .../models/automation/long_field_schema.rb | 6 - .../models/automation/object_field_schema.rb | 6 - .../models/automation/string_field_schema.rb | 6 - .../batch_response_journal_fetch_response.rb | 77 + ...onse_journal_fetch_response_with_errors.rb | 96 + .../models/cms/content_search_result.rb | 1045 ---- .../models/cms/inbound_db_object_type.rb | 14 +- .../models/cms/public_search_results.rb | 57 - .../url_redirect_create_url_mapping_params.rb | 16 + .../url_redirect_delete_url_mapping_params.rb | 22 + .../url_redirect_get_url_mapping_params.rb | 22 + .../url_redirect_list_url_mappings_params.rb | 16 + lib/hubspot_sdk/models/condition.rb | 96 + ...identification_token_generation_request.rb | 11 +- .../conversations/pre_resolved_contact.rb | 1 + .../models/crm/{filter.rb => crm_filter.rb} | 10 +- lib/hubspot_sdk/models/crm/filter_group.rb | 6 +- .../models/crm/list_create_request.rb | 8 +- .../models/crm/list_filter_update_request.rb | 8 +- .../models/crm/public_and_filter_branch.rb | 20 +- .../crm/public_association_filter_branch.rb | 20 +- .../crm/public_campaign_influenced_filter.rb | 40 - .../models/crm/public_crm_search_request.rb | 6 +- .../models/crm/public_export_list_request.rb | 46 +- .../models/crm/public_export_view_request.rb | 46 +- .../crm/public_not_all_filter_branch.rb | 20 +- .../crm/public_not_any_filter_branch.rb | 20 +- .../crm/public_num_associations_filter.rb | 90 - .../models/crm/public_object_list.rb | 8 +- .../models/crm/public_or_filter_branch.rb | 20 +- ...blic_property_association_filter_branch.rb | 168 - ...lic_property_association_in_list_filter.rb | 107 - .../crm/public_restricted_filter_branch.rb | 20 +- .../public_unified_events_filter_branch.rb | 20 +- .../crm_object_snapshot_batch_request.rb | 22 + .../crm_object_snapshot_batch_response.rb | 22 + .../models/crm_object_snapshot_request.rb | 47 + .../models/crm_object_snapshot_response.rb | 47 + lib/hubspot_sdk/models/filter.rb | 24 + .../models/filter_create_request.rb | 30 + .../models/filter_create_response.rb | 20 + lib/hubspot_sdk/models/filter_response.rb | 37 + ...cy_deletion_subscription_upsert_request.rb | 67 + .../models/journal_fetch_response.rb | 36 + ..._membership_subscription_upsert_request.rb | 73 + .../object_subscription_upsert_request.rb | 79 + lib/hubspot_sdk/models/property_value.rb | 2 + ...endar_meeting_event_response_properties.rb | 2 + .../models/snapshot_status_response.rb | 97 + .../models/subscription_upsert_request.rb | 22 + .../webhooks/action_override_request.rb | 51 - ...cycle_event_subscription_upsert_request.rb | 48 - ...association_subscription_upsert_request.rb | 88 - .../batch_response_journal_fetch_response.rb | 81 - ...onse_journal_fetch_response_with_errors.rb | 98 - ...esponse_subscription_response_no_paging.rb | 1 - lib/hubspot_sdk/models/webhooks/condition.rb | 98 - .../crm_object_snapshot_batch_request.rb | 24 - .../crm_object_snapshot_batch_response.rb | 25 - .../webhooks/crm_object_snapshot_request.rb | 49 - .../webhooks/crm_object_snapshot_response.rb | 49 - lib/hubspot_sdk/models/webhooks/filter.rb | 26 - .../models/webhooks/filter_create_request.rb | 32 - .../models/webhooks/filter_create_response.rb | 23 - .../models/webhooks/filter_response.rb | 40 - ...cy_deletion_subscription_upsert_request.rb | 76 - .../models/webhooks/journal_fetch_response.rb | 38 - ..._membership_subscription_upsert_request.rb | 80 - .../object_subscription_upsert_request.rb | 86 - .../webhooks/snapshot_status_response.rb | 102 - .../webhooks/subscription_response_1.rb | 7 +- .../webhooks/subscription_upsert_request.rb | 24 - .../webhook_create_crm_snapshots_params.rb | 2 +- ...bhook_create_subscription_filter_params.rb | 2 +- ...bhook_get_earliest_journal_batch_params.rb | 6 +- ...bhook_get_earliest_journal_entry_params.rb | 6 +- ...get_earliest_local_journal_batch_params.rb | 5 +- ...get_earliest_local_journal_entry_params.rb | 6 +- ...ook_get_journal_batch_by_request_params.rb | 5 +- ...ok_get_journal_batch_from_offset_params.rb | 9 +- ...webhook_get_latest_journal_batch_params.rb | 6 +- ...webhook_get_latest_journal_entry_params.rb | 6 +- ...k_get_latest_local_journal_batch_params.rb | 6 +- ...k_get_latest_local_journal_entry_params.rb | 6 +- ...t_local_journal_batch_by_request_params.rb | 2 +- ..._local_journal_batch_from_offset_params.rb | 6 +- ...webhook_get_next_journal_entries_params.rb | 5 +- ...k_get_next_local_journal_entries_params.rb | 9 +- ...hook_list_subscription_filters_response.rb | 2 +- ...esponse_subscription_response_no_paging.rb | 24 + .../journal/batch_get_earliest_params.rb | 38 + .../journal/batch_get_from_offset_params.rb | 40 + .../journal/batch_get_latest_params.rb | 38 + .../journal/batch_get_params.rb | 30 + .../journal_get_earliest_params.rb | 29 + .../journal_get_next_from_offset_params.rb | 35 + .../journal_get_status_params.rb | 22 + .../batch_get_earliest_params.rb | 38 + .../batch_get_from_offset_params.rb | 45 + .../journal_local/batch_get_params.rb | 31 + .../journal_local_get_earliest_params.rb | 29 + .../journal_local_get_latest_params.rb | 29 + ...urnal_local_get_next_from_offset_params.rb | 36 + .../journal_local_get_status_params.rb | 22 + .../snapshot_create_params.rb | 16 + .../subscription_create_params.rb | 16 + .../subscription_delete_for_portal_params.rb | 22 + .../subscription_delete_params.rb | 22 + .../subscription_get_params.rb | 22 + .../subscription_list_params.rb | 16 + .../webhooks_journal/subscription_response.rb | 194 + .../subscriptions/filter_create_params.rb | 18 + .../subscriptions/filter_delete_params.rb | 24 + .../subscriptions/filter_get_params.rb | 24 + .../subscriptions/filter_list_params.rb | 24 + .../subscriptions/filter_list_response.rb | 12 + lib/hubspot_sdk/resources/auth/oauth.rb | 6 +- .../resources/cms/url_redirects.rb | 100 + .../conversations/visitor_identification.rb | 4 +- lib/hubspot_sdk/resources/crm/lists.rb | 4 +- lib/hubspot_sdk/resources/webhooks.rb | 299 +- lib/hubspot_sdk/resources/webhooks_journal.rb | 30 + .../resources/webhooks_journal/journal.rb | 105 + .../webhooks_journal/journal/batch.rb | 153 + .../webhooks_journal/journal_local.rb | 135 + .../webhooks_journal/journal_local/batch.rb | 122 + .../resources/webhooks_journal/snapshots.rb | 44 + .../webhooks_journal/subscriptions.rb | 142 + .../webhooks_journal/subscriptions/filters.rb | 120 + rbi/hubspot_sdk/client.rbi | 3 + rbi/hubspot_sdk/models.rbi | 51 + .../models/action_override_request.rbi | 84 + ...ycle_event_subscription_upsert_request.rbi | 81 + ...ssociation_subscription_upsert_request.rbi | 204 + .../models/auth/access_token_response.rbi | 130 + .../client_credentials_token_response.rbi | 129 + .../models/auth/oauth_create_token_params.rbi | 5 + .../models/auth/token_response_if.rbi | 27 + .../models/automation/array_field_schema.rbi | 30 - .../automation/boolean_field_schema.rbi | 30 - .../models/automation/double_field_schema.rbi | 30 - .../automation/integer_field_schema.rbi | 30 - .../models/automation/long_field_schema.rbi | 30 - .../models/automation/object_field_schema.rbi | 30 - .../models/automation/string_field_schema.rbi | 30 - .../batch_response_journal_fetch_response.rbi | 139 + ...nse_journal_fetch_response_with_errors.rbi | 168 + .../models/cms/content_search_result.rbi | 4534 ----------------- .../models/cms/inbound_db_object_type.rbi | 38 +- .../models/cms/public_search_results.rbi | 83 - ...url_redirect_create_url_mapping_params.rbi | 34 + ...url_redirect_delete_url_mapping_params.rbi | 40 + .../url_redirect_get_url_mapping_params.rbi | 40 + .../url_redirect_list_url_mappings_params.rbi | 34 + rbi/hubspot_sdk/models/condition.rbi | 149 + ...dentification_token_generation_request.rbi | 20 +- .../conversations/pre_resolved_contact.rbi | 5 + .../models/crm/{filter.rbi => crm_filter.rbi} | 40 +- rbi/hubspot_sdk/models/crm/filter_group.rbi | 8 +- .../models/crm/list_create_request.rbi | 5 - .../models/crm/list_filter_update_request.rbi | 4 - .../models/crm/public_and_filter_branch.rbi | 16 - .../crm/public_association_filter_branch.rbi | 16 - .../crm/public_campaign_influenced_filter.rbi | 86 - .../models/crm/public_crm_search_request.rbi | 6 +- .../models/crm/public_export_list_request.rbi | 190 +- .../models/crm/public_export_view_request.rbi | 190 +- .../crm/public_not_all_filter_branch.rbi | 16 - .../crm/public_not_any_filter_branch.rbi | 16 - .../crm/public_num_associations_filter.rbi | 170 - .../models/crm/public_object_list.rbi | 3 - .../models/crm/public_or_filter_branch.rbi | 16 - ...lic_property_association_filter_branch.rbi | 318 -- ...ic_property_association_in_list_filter.rbi | 189 - .../crm/public_restricted_filter_branch.rbi | 16 - .../public_unified_events_filter_branch.rbi | 16 - .../crm_object_snapshot_batch_request.rbi | 41 + .../crm_object_snapshot_batch_response.rbi | 43 + .../models/crm_object_snapshot_request.rbi | 72 + .../models/crm_object_snapshot_response.rbi | 72 + rbi/hubspot_sdk/models/filter.rbi | 36 + .../models/filter_create_request.rbi | 51 + .../models/filter_create_response.rbi | 29 + rbi/hubspot_sdk/models/filter_response.rbi | 56 + ...y_deletion_subscription_upsert_request.rbi | 187 + .../models/journal_fetch_response.rbi | 49 + ...membership_subscription_upsert_request.rbi | 198 + .../object_subscription_upsert_request.rbi | 201 + rbi/hubspot_sdk/models/property_value.rbi | 7 + ...ndar_meeting_event_response_properties.rbi | 10 + .../models/snapshot_status_response.rbi | 197 + .../models/subscription_upsert_request.rbi | 28 + .../webhooks/action_override_request.rbi | 86 - ...ycle_event_subscription_upsert_request.rbi | 108 - ...ssociation_subscription_upsert_request.rbi | 231 - .../batch_response_journal_fetch_response.rbi | 145 - ...nse_journal_fetch_response_with_errors.rbi | 171 - rbi/hubspot_sdk/models/webhooks/condition.rbi | 190 - .../crm_object_snapshot_batch_request.rbi | 48 - .../crm_object_snapshot_batch_response.rbi | 48 - .../webhooks/crm_object_snapshot_request.rbi | 74 - .../webhooks/crm_object_snapshot_response.rbi | 74 - rbi/hubspot_sdk/models/webhooks/filter.rbi | 42 - .../models/webhooks/filter_create_request.rbi | 56 - .../webhooks/filter_create_response.rbi | 34 - .../models/webhooks/filter_response.rbi | 65 - ...y_deletion_subscription_upsert_request.rbi | 214 - .../webhooks/journal_fetch_response.rbi | 54 - ...membership_subscription_upsert_request.rbi | 225 - .../object_subscription_upsert_request.rbi | 231 - .../webhooks/snapshot_status_response.rbi | 217 - .../webhooks/subscription_response_1.rbi | 26 +- .../webhooks/subscription_upsert_request.rbi | 30 - .../webhook_create_crm_snapshots_params.rbi | 2 +- ...hook_create_subscription_filter_params.rbi | 2 +- ...hook_get_earliest_journal_batch_params.rbi | 8 +- ...hook_get_earliest_journal_entry_params.rbi | 8 +- ...et_earliest_local_journal_batch_params.rbi | 6 +- ...et_earliest_local_journal_entry_params.rbi | 8 +- ...ok_get_journal_batch_by_request_params.rbi | 6 +- ...k_get_journal_batch_from_offset_params.rbi | 6 +- ...ebhook_get_latest_journal_batch_params.rbi | 8 +- ...ebhook_get_latest_journal_entry_params.rbi | 8 +- ..._get_latest_local_journal_batch_params.rbi | 8 +- ..._get_latest_local_journal_entry_params.rbi | 8 +- ..._local_journal_batch_by_request_params.rbi | 4 +- ...local_journal_batch_from_offset_params.rbi | 8 +- ...ebhook_get_next_journal_entries_params.rbi | 6 +- ..._get_next_local_journal_entries_params.rbi | 6 +- ...ook_list_subscription_filters_response.rbi | 4 +- ...sponse_subscription_response_no_paging.rbi | 50 + .../journal/batch_get_earliest_params.rbi | 61 + .../journal/batch_get_from_offset_params.rbi | 65 + .../journal/batch_get_latest_params.rbi | 61 + .../journal/batch_get_params.rbi | 55 + .../journal_get_earliest_params.rbi | 53 + .../journal_get_next_from_offset_params.rbi | 57 + .../journal_get_status_params.rbi | 40 + .../batch_get_earliest_params.rbi | 61 + .../batch_get_from_offset_params.rbi | 67 + .../journal_local/batch_get_params.rbi | 55 + .../journal_local_get_earliest_params.rbi | 53 + .../journal_local_get_latest_params.rbi | 53 + ...rnal_local_get_next_from_offset_params.rbi | 59 + .../journal_local_get_status_params.rbi | 40 + .../snapshot_create_params.rbi | 34 + .../subscription_create_params.rbi | 34 + .../subscription_delete_for_portal_params.rbi | 40 + .../subscription_delete_params.rbi | 43 + .../subscription_get_params.rbi | 43 + .../subscription_list_params.rbi | 34 + .../subscription_response.rbi | 379 ++ .../subscriptions/filter_create_params.rbi | 36 + .../subscriptions/filter_delete_params.rbi | 45 + .../subscriptions/filter_get_params.rbi | 45 + .../subscriptions/filter_list_params.rbi | 45 + .../subscriptions/filter_list_response.rbi | 15 + rbi/hubspot_sdk/resources/auth/oauth.rbi | 2 +- .../resources/cms/url_redirects.rbi | 82 + .../conversations/visitor_identification.rbi | 2 + rbi/hubspot_sdk/resources/crm/lists.rbi | 2 - rbi/hubspot_sdk/resources/webhooks.rbi | 312 +- .../resources/webhooks_journal.rbi | 24 + .../resources/webhooks_journal/journal.rbi | 71 + .../webhooks_journal/journal/batch.rbi | 106 + .../webhooks_journal/journal_local.rbi | 91 + .../webhooks_journal/journal_local/batch.rbi | 84 + .../resources/webhooks_journal/snapshots.rbi | 33 + .../webhooks_journal/subscriptions.rbi | 106 + .../subscriptions/filters.rbi | 89 + sig/hubspot_sdk/client.rbs | 2 + sig/hubspot_sdk/models.rbs | 42 + .../models/action_override_request.rbs | 43 + ...ycle_event_subscription_upsert_request.rbs | 40 + ...ssociation_subscription_upsert_request.rbs | 90 + .../models/auth/access_token_response.rbs | 80 + .../client_credentials_token_response.rbs | 75 + .../models/auth/oauth_create_token_params.rbs | 4 +- .../models/auth/token_response_if.rbs | 15 + .../models/automation/array_field_schema.rbs | 9 +- .../automation/boolean_field_schema.rbs | 9 +- .../models/automation/double_field_schema.rbs | 9 +- .../automation/integer_field_schema.rbs | 9 +- .../models/automation/long_field_schema.rbs | 9 +- .../models/automation/object_field_schema.rbs | 9 +- .../models/automation/string_field_schema.rbs | 9 +- .../batch_response_journal_fetch_response.rbs | 62 + ...nse_journal_fetch_response_with_errors.rbs | 78 + .../models/cms/content_search_result.rbs | 1865 ------- .../models/cms/inbound_db_object_type.rbs | 17 +- .../models/cms/public_search_results.rbs | 49 - ...url_redirect_create_url_mapping_params.rbs | 17 + ...url_redirect_delete_url_mapping_params.rbs | 25 + .../url_redirect_get_url_mapping_params.rbs | 25 + .../url_redirect_list_url_mappings_params.rbs | 17 + sig/hubspot_sdk/models/condition.rbs | 89 + ...dentification_token_generation_request.rbs | 17 +- .../conversations/pre_resolved_contact.rbs | 2 + .../models/crm/{filter.rbs => crm_filter.rbs} | 14 +- sig/hubspot_sdk/models/crm/filter_group.rbs | 8 +- .../models/crm/list_create_request.rbs | 1 - .../models/crm/list_filter_update_request.rbs | 1 - .../models/crm/public_and_filter_branch.rbs | 4 - .../crm/public_association_filter_branch.rbs | 4 - .../crm/public_campaign_influenced_filter.rbs | 37 - .../models/crm/public_crm_search_request.rbs | 8 +- .../models/crm/public_export_list_request.rbs | 92 +- .../models/crm/public_export_view_request.rbs | 92 +- .../crm/public_not_all_filter_branch.rbs | 4 - .../crm/public_not_any_filter_branch.rbs | 4 - .../crm/public_num_associations_filter.rbs | 64 - .../models/crm/public_object_list.rbs | 1 - .../models/crm/public_or_filter_branch.rbs | 4 - ...lic_property_association_filter_branch.rbs | 109 - ...ic_property_association_in_list_filter.rbs | 76 - .../crm/public_restricted_filter_branch.rbs | 4 - .../public_unified_events_filter_branch.rbs | 4 - .../crm_object_snapshot_batch_request.rbs | 18 + .../crm_object_snapshot_batch_response.rbs | 18 + .../models/crm_object_snapshot_request.rbs | 35 + .../models/crm_object_snapshot_response.rbs | 35 + sig/hubspot_sdk/models/filter.rbs | 13 + .../models/filter_create_request.rbs | 19 + .../models/filter_create_response.rbs | 13 + sig/hubspot_sdk/models/filter_response.rbs | 26 + ...y_deletion_subscription_upsert_request.rbs | 80 + .../models/journal_fetch_response.rbs | 22 + ...membership_subscription_upsert_request.rbs | 85 + .../object_subscription_upsert_request.rbs | 90 + sig/hubspot_sdk/models/property_value.rbs | 4 + ...ndar_meeting_event_response_properties.rbs | 4 + .../models/snapshot_status_response.rbs | 81 + .../models/subscription_upsert_request.rbs | 16 + .../webhooks/action_override_request.rbs | 45 - ...ycle_event_subscription_upsert_request.rbs | 53 - ...ssociation_subscription_upsert_request.rbs | 103 - .../batch_response_journal_fetch_response.rbs | 64 - ...nse_journal_fetch_response_with_errors.rbs | 80 - sig/hubspot_sdk/models/webhooks/condition.rbs | 91 - .../crm_object_snapshot_batch_request.rbs | 22 - .../crm_object_snapshot_batch_response.rbs | 22 - .../webhooks/crm_object_snapshot_request.rbs | 37 - .../webhooks/crm_object_snapshot_response.rbs | 37 - sig/hubspot_sdk/models/webhooks/filter.rbs | 17 - .../models/webhooks/filter_create_request.rbs | 24 - .../webhooks/filter_create_response.rbs | 15 - .../models/webhooks/filter_response.rbs | 32 - ...y_deletion_subscription_upsert_request.rbs | 93 - .../webhooks/journal_fetch_response.rbs | 28 - ...membership_subscription_upsert_request.rbs | 98 - .../object_subscription_upsert_request.rbs | 103 - .../webhooks/snapshot_status_response.rbs | 83 - .../webhooks/subscription_response_1.rbs | 12 +- .../webhooks/subscription_upsert_request.rbs | 18 - .../webhook_create_crm_snapshots_params.rbs | 2 +- ...hook_create_subscription_filter_params.rbs | 2 +- ...ook_list_subscription_filters_response.rbs | 2 +- ...sponse_subscription_response_no_paging.rbs | 20 + .../journal/batch_get_earliest_params.rbs | 34 + .../journal/batch_get_from_offset_params.rbs | 38 + .../journal/batch_get_latest_params.rbs | 34 + .../journal/batch_get_params.rbs | 30 + .../journal_get_earliest_params.rbs | 28 + .../journal_get_next_from_offset_params.rbs | 32 + .../journal_get_status_params.rbs | 25 + .../batch_get_earliest_params.rbs | 34 + .../batch_get_from_offset_params.rbs | 38 + .../journal_local/batch_get_params.rbs | 30 + .../journal_local_get_earliest_params.rbs | 28 + .../journal_local_get_latest_params.rbs | 28 + ...rnal_local_get_next_from_offset_params.rbs | 32 + .../journal_local_get_status_params.rbs | 25 + .../snapshot_create_params.rbs | 17 + .../subscription_create_params.rbs | 17 + .../subscription_delete_for_portal_params.rbs | 25 + .../subscription_delete_params.rbs | 26 + .../subscription_get_params.rbs | 26 + .../subscription_list_params.rbs | 17 + .../subscription_response.rbs | 166 + .../subscriptions/filter_create_params.rbs | 19 + .../subscriptions/filter_delete_params.rbs | 28 + .../subscriptions/filter_get_params.rbs | 28 + .../subscriptions/filter_list_params.rbs | 28 + .../subscriptions/filter_list_response.rbs | 11 + sig/hubspot_sdk/resources/auth/oauth.rbs | 2 +- .../resources/cms/url_redirects.rbs | 31 + .../conversations/visitor_identification.rbs | 1 + sig/hubspot_sdk/resources/webhooks.rbs | 38 +- .../resources/webhooks_journal.rbs | 15 + .../resources/webhooks_journal/journal.rbs | 27 + .../webhooks_journal/journal/batch.rbs | 36 + .../webhooks_journal/journal_local.rbs | 32 + .../webhooks_journal/journal_local/batch.rbs | 30 + .../resources/webhooks_journal/snapshots.rbs | 14 + .../webhooks_journal/subscriptions.rbs | 35 + .../subscriptions/filters.rbs | 32 + test/hubspot_sdk/resource_namespaces.rb | 17 + test/hubspot_sdk/resources/auth/oauth_test.rb | 9 +- .../resources/cms/url_redirects_test.rb | 55 + .../visitor_identification_test.rb | 6 +- .../hubspot_sdk/resources/crm/exports_test.rb | 4 +- test/hubspot_sdk/resources/crm/lists_test.rb | 35 +- .../webhooks_journal/journal/batch_test.rb | 89 + .../journal_local/batch_test.rb | 68 + .../webhooks_journal/journal_local_test.rb | 56 + .../webhooks_journal/journal_test.rb | 46 + .../webhooks_journal/snapshots_test.rb | 24 + .../subscriptions/filters_test.rb | 63 + .../webhooks_journal/subscriptions_test.rb | 111 + .../resources/webhooks_journal_test.rb | 6 + test/hubspot_sdk/resources/webhooks_test.rb | 92 +- 427 files changed, 12397 insertions(+), 14955 deletions(-) create mode 100644 lib/hubspot_sdk/models/action_override_request.rb create mode 100644 lib/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rb create mode 100644 lib/hubspot_sdk/models/association_subscription_upsert_request.rb create mode 100644 lib/hubspot_sdk/models/auth/access_token_response.rb create mode 100644 lib/hubspot_sdk/models/auth/client_credentials_token_response.rb create mode 100644 lib/hubspot_sdk/models/auth/token_response_if.rb create mode 100644 lib/hubspot_sdk/models/batch_response_journal_fetch_response.rb create mode 100644 lib/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rb delete mode 100644 lib/hubspot_sdk/models/cms/content_search_result.rb delete mode 100644 lib/hubspot_sdk/models/cms/public_search_results.rb create mode 100644 lib/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rb create mode 100644 lib/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rb create mode 100644 lib/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rb create mode 100644 lib/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rb create mode 100644 lib/hubspot_sdk/models/condition.rb rename lib/hubspot_sdk/models/crm/{filter.rb => crm_filter.rb} (84%) delete mode 100644 lib/hubspot_sdk/models/crm/public_campaign_influenced_filter.rb delete mode 100644 lib/hubspot_sdk/models/crm/public_num_associations_filter.rb delete mode 100644 lib/hubspot_sdk/models/crm/public_property_association_filter_branch.rb delete mode 100644 lib/hubspot_sdk/models/crm/public_property_association_in_list_filter.rb create mode 100644 lib/hubspot_sdk/models/crm_object_snapshot_batch_request.rb create mode 100644 lib/hubspot_sdk/models/crm_object_snapshot_batch_response.rb create mode 100644 lib/hubspot_sdk/models/crm_object_snapshot_request.rb create mode 100644 lib/hubspot_sdk/models/crm_object_snapshot_response.rb create mode 100644 lib/hubspot_sdk/models/filter.rb create mode 100644 lib/hubspot_sdk/models/filter_create_request.rb create mode 100644 lib/hubspot_sdk/models/filter_create_response.rb create mode 100644 lib/hubspot_sdk/models/filter_response.rb create mode 100644 lib/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rb create mode 100644 lib/hubspot_sdk/models/journal_fetch_response.rb create mode 100644 lib/hubspot_sdk/models/list_membership_subscription_upsert_request.rb create mode 100644 lib/hubspot_sdk/models/object_subscription_upsert_request.rb create mode 100644 lib/hubspot_sdk/models/snapshot_status_response.rb create mode 100644 lib/hubspot_sdk/models/subscription_upsert_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/action_override_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/condition.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/filter.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/filter_create_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/filter_create_response.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/filter_response.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/journal_fetch_response.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb delete mode 100644 lib/hubspot_sdk/models/webhooks/subscription_upsert_request.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscription_create_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscription_get_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscription_list_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscription_response.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rb create mode 100644 lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rb create mode 100644 lib/hubspot_sdk/resources/webhooks_journal.rb create mode 100644 lib/hubspot_sdk/resources/webhooks_journal/journal.rb create mode 100644 lib/hubspot_sdk/resources/webhooks_journal/journal/batch.rb create mode 100644 lib/hubspot_sdk/resources/webhooks_journal/journal_local.rb create mode 100644 lib/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rb create mode 100644 lib/hubspot_sdk/resources/webhooks_journal/snapshots.rb create mode 100644 lib/hubspot_sdk/resources/webhooks_journal/subscriptions.rb create mode 100644 lib/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rb create mode 100644 rbi/hubspot_sdk/models/action_override_request.rbi create mode 100644 rbi/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rbi create mode 100644 rbi/hubspot_sdk/models/association_subscription_upsert_request.rbi create mode 100644 rbi/hubspot_sdk/models/auth/access_token_response.rbi create mode 100644 rbi/hubspot_sdk/models/auth/client_credentials_token_response.rbi create mode 100644 rbi/hubspot_sdk/models/auth/token_response_if.rbi create mode 100644 rbi/hubspot_sdk/models/batch_response_journal_fetch_response.rbi create mode 100644 rbi/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rbi delete mode 100644 rbi/hubspot_sdk/models/cms/content_search_result.rbi delete mode 100644 rbi/hubspot_sdk/models/cms/public_search_results.rbi create mode 100644 rbi/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rbi create mode 100644 rbi/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rbi create mode 100644 rbi/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rbi create mode 100644 rbi/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rbi create mode 100644 rbi/hubspot_sdk/models/condition.rbi rename rbi/hubspot_sdk/models/crm/{filter.rbi => crm_filter.rbi} (66%) delete mode 100644 rbi/hubspot_sdk/models/crm/public_campaign_influenced_filter.rbi delete mode 100644 rbi/hubspot_sdk/models/crm/public_num_associations_filter.rbi delete mode 100644 rbi/hubspot_sdk/models/crm/public_property_association_filter_branch.rbi delete mode 100644 rbi/hubspot_sdk/models/crm/public_property_association_in_list_filter.rbi create mode 100644 rbi/hubspot_sdk/models/crm_object_snapshot_batch_request.rbi create mode 100644 rbi/hubspot_sdk/models/crm_object_snapshot_batch_response.rbi create mode 100644 rbi/hubspot_sdk/models/crm_object_snapshot_request.rbi create mode 100644 rbi/hubspot_sdk/models/crm_object_snapshot_response.rbi create mode 100644 rbi/hubspot_sdk/models/filter.rbi create mode 100644 rbi/hubspot_sdk/models/filter_create_request.rbi create mode 100644 rbi/hubspot_sdk/models/filter_create_response.rbi create mode 100644 rbi/hubspot_sdk/models/filter_response.rbi create mode 100644 rbi/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rbi create mode 100644 rbi/hubspot_sdk/models/journal_fetch_response.rbi create mode 100644 rbi/hubspot_sdk/models/list_membership_subscription_upsert_request.rbi create mode 100644 rbi/hubspot_sdk/models/object_subscription_upsert_request.rbi create mode 100644 rbi/hubspot_sdk/models/snapshot_status_response.rbi create mode 100644 rbi/hubspot_sdk/models/subscription_upsert_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/action_override_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/condition.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/filter.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/filter_create_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/filter_create_response.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/filter_response.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/journal_fetch_response.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/snapshot_status_response.rbi delete mode 100644 rbi/hubspot_sdk/models/webhooks/subscription_upsert_request.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscription_create_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscription_get_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscription_list_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscription_response.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rbi create mode 100644 rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rbi create mode 100644 rbi/hubspot_sdk/resources/webhooks_journal.rbi create mode 100644 rbi/hubspot_sdk/resources/webhooks_journal/journal.rbi create mode 100644 rbi/hubspot_sdk/resources/webhooks_journal/journal/batch.rbi create mode 100644 rbi/hubspot_sdk/resources/webhooks_journal/journal_local.rbi create mode 100644 rbi/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rbi create mode 100644 rbi/hubspot_sdk/resources/webhooks_journal/snapshots.rbi create mode 100644 rbi/hubspot_sdk/resources/webhooks_journal/subscriptions.rbi create mode 100644 rbi/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rbi create mode 100644 sig/hubspot_sdk/models/action_override_request.rbs create mode 100644 sig/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rbs create mode 100644 sig/hubspot_sdk/models/association_subscription_upsert_request.rbs create mode 100644 sig/hubspot_sdk/models/auth/access_token_response.rbs create mode 100644 sig/hubspot_sdk/models/auth/client_credentials_token_response.rbs create mode 100644 sig/hubspot_sdk/models/auth/token_response_if.rbs create mode 100644 sig/hubspot_sdk/models/batch_response_journal_fetch_response.rbs create mode 100644 sig/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rbs delete mode 100644 sig/hubspot_sdk/models/cms/content_search_result.rbs delete mode 100644 sig/hubspot_sdk/models/cms/public_search_results.rbs create mode 100644 sig/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rbs create mode 100644 sig/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rbs create mode 100644 sig/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rbs create mode 100644 sig/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rbs create mode 100644 sig/hubspot_sdk/models/condition.rbs rename sig/hubspot_sdk/models/crm/{filter.rbs => crm_filter.rbs} (81%) delete mode 100644 sig/hubspot_sdk/models/crm/public_campaign_influenced_filter.rbs delete mode 100644 sig/hubspot_sdk/models/crm/public_num_associations_filter.rbs delete mode 100644 sig/hubspot_sdk/models/crm/public_property_association_filter_branch.rbs delete mode 100644 sig/hubspot_sdk/models/crm/public_property_association_in_list_filter.rbs create mode 100644 sig/hubspot_sdk/models/crm_object_snapshot_batch_request.rbs create mode 100644 sig/hubspot_sdk/models/crm_object_snapshot_batch_response.rbs create mode 100644 sig/hubspot_sdk/models/crm_object_snapshot_request.rbs create mode 100644 sig/hubspot_sdk/models/crm_object_snapshot_response.rbs create mode 100644 sig/hubspot_sdk/models/filter.rbs create mode 100644 sig/hubspot_sdk/models/filter_create_request.rbs create mode 100644 sig/hubspot_sdk/models/filter_create_response.rbs create mode 100644 sig/hubspot_sdk/models/filter_response.rbs create mode 100644 sig/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rbs create mode 100644 sig/hubspot_sdk/models/journal_fetch_response.rbs create mode 100644 sig/hubspot_sdk/models/list_membership_subscription_upsert_request.rbs create mode 100644 sig/hubspot_sdk/models/object_subscription_upsert_request.rbs create mode 100644 sig/hubspot_sdk/models/snapshot_status_response.rbs create mode 100644 sig/hubspot_sdk/models/subscription_upsert_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/action_override_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/condition.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/filter.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/filter_create_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/filter_create_response.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/filter_response.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/journal_fetch_response.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/snapshot_status_response.rbs delete mode 100644 sig/hubspot_sdk/models/webhooks/subscription_upsert_request.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscription_create_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscription_get_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscription_list_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscription_response.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rbs create mode 100644 sig/hubspot_sdk/resources/webhooks_journal.rbs create mode 100644 sig/hubspot_sdk/resources/webhooks_journal/journal.rbs create mode 100644 sig/hubspot_sdk/resources/webhooks_journal/journal/batch.rbs create mode 100644 sig/hubspot_sdk/resources/webhooks_journal/journal_local.rbs create mode 100644 sig/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rbs create mode 100644 sig/hubspot_sdk/resources/webhooks_journal/snapshots.rbs create mode 100644 sig/hubspot_sdk/resources/webhooks_journal/subscriptions.rbs create mode 100644 sig/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rbs create mode 100644 test/hubspot_sdk/resources/webhooks_journal/journal/batch_test.rb create mode 100644 test/hubspot_sdk/resources/webhooks_journal/journal_local/batch_test.rb create mode 100644 test/hubspot_sdk/resources/webhooks_journal/journal_local_test.rb create mode 100644 test/hubspot_sdk/resources/webhooks_journal/journal_test.rb create mode 100644 test/hubspot_sdk/resources/webhooks_journal/snapshots_test.rb create mode 100644 test/hubspot_sdk/resources/webhooks_journal/subscriptions/filters_test.rb create mode 100644 test/hubspot_sdk/resources/webhooks_journal/subscriptions_test.rb create mode 100644 test/hubspot_sdk/resources/webhooks_journal_test.rb diff --git a/.stats.yml b/.stats.yml index c94373b3..60d51403 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 955 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-45b4e4548d5c629c40a55d10db6d924a20591a47a25928c3eeb82b3a7e1b640e.yml -openapi_spec_hash: 47d20b6496315d47f4f64441d4682f47 -config_hash: 997f7d3ccb889010d92f2906d731d7d1 +configured_endpoints: 959 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-5471b42def181422e461f5657935bcc5d80f62e169b34b60d017257cab8ed6a7.yml +openapi_spec_hash: 93b8671a542b331e067319184c943fdd +config_hash: 42a440e814378897b5ca0c2ad29c7f99 diff --git a/lib/hubspot_sdk.rb b/lib/hubspot_sdk.rb index 937f0ad4..b0aa76ee 100644 --- a/lib/hubspot_sdk.rb +++ b/lib/hubspot_sdk.rb @@ -229,10 +229,10 @@ require_relative "hubspot_sdk/models/settings/user_provision_request" require_relative "hubspot_sdk/models/settings/public_user_update" require_relative "hubspot_sdk/models/webhooks/batch_input_subscription_batch_update_request" -require_relative "hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request" +require_relative "hubspot_sdk/models/crm_object_snapshot_batch_request" require_relative "hubspot_sdk/models/webhooks/subscription_create_request" -require_relative "hubspot_sdk/models/webhooks/subscription_upsert_request" -require_relative "hubspot_sdk/models/webhooks/filter_create_request" +require_relative "hubspot_sdk/models/subscription_upsert_request" +require_relative "hubspot_sdk/models/filter_create_request" require_relative "hubspot_sdk/models/webhooks/subscription_patch_request" require_relative "hubspot_sdk/models/webhooks/settings_change_request" require_relative "hubspot_sdk/models/account/account_get_daily_private_apps_usage_params" @@ -250,9 +250,14 @@ require_relative "hubspot_sdk/models/account/portal_information_response" require_relative "hubspot_sdk/models/account/public_api_user_action_event" require_relative "hubspot_sdk/models/account/public_login_audit" +require_relative "hubspot_sdk/models/action_override_request" require_relative "hubspot_sdk/models/action_response" +require_relative "hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request" require_relative "hubspot_sdk/models/association_definition" require_relative "hubspot_sdk/models/association_spec" +require_relative "hubspot_sdk/models/association_subscription_upsert_request" +require_relative "hubspot_sdk/models/auth/access_token_response" +require_relative "hubspot_sdk/models/auth/client_credentials_token_response" require_relative "hubspot_sdk/models/auth/oauth_create_token_params" require_relative "hubspot_sdk/models/auth/oauth_introspect_token_params" require_relative "hubspot_sdk/models/auth/oauth_revoke_token_params" @@ -260,6 +265,7 @@ require_relative "hubspot_sdk/models/auth/public_refresh_token_info_response" require_relative "hubspot_sdk/models/auth/signed_access_token" require_relative "hubspot_sdk/models/auth/token_info_response_base_if" +require_relative "hubspot_sdk/models/auth/token_response_if" require_relative "hubspot_sdk/models/automation/action_execution_index_identifier" require_relative "hubspot_sdk/models/automation/actions/callback_complete_batch_params" require_relative "hubspot_sdk/models/automation/actions/callback_complete_params" @@ -328,6 +334,8 @@ require_relative "hubspot_sdk/models/automation/test_request_context" require_relative "hubspot_sdk/models/automation/workflows_request_context" require_relative "hubspot_sdk/models/automation_actions_option" +require_relative "hubspot_sdk/models/batch_response_journal_fetch_response" +require_relative "hubspot_sdk/models/batch_response_journal_fetch_response_with_errors" require_relative "hubspot_sdk/models/business_units/business_unit_entry_get_by_user_id_params" require_relative "hubspot_sdk/models/business_units/collection_response_public_business_unit_no_paging" require_relative "hubspot_sdk/models/business_units/public_business_unit" @@ -475,7 +483,6 @@ require_relative "hubspot_sdk/models/cms/contains" require_relative "hubspot_sdk/models/cms/content_folder_version" require_relative "hubspot_sdk/models/cms/content_language_variation" -require_relative "hubspot_sdk/models/cms/content_search_result" require_relative "hubspot_sdk/models/cms/cursor_paged_result_blog_author_long" require_relative "hubspot_sdk/models/cms/cursor_paged_result_blog_post_long" require_relative "hubspot_sdk/models/cms/cursor_paged_result_tag_long" @@ -706,7 +713,6 @@ require_relative "hubspot_sdk/models/cms/property_definition_source" require_relative "hubspot_sdk/models/cms/public_access_rule" require_relative "hubspot_sdk/models/cms/public_audit_log" -require_relative "hubspot_sdk/models/cms/public_search_results" require_relative "hubspot_sdk/models/cms/random_access_collection_response_with_total_hub_db_table_row_v3" require_relative "hubspot_sdk/models/cms/regex_matches" require_relative "hubspot_sdk/models/cms/required_properties_extension_data" @@ -746,9 +752,13 @@ require_relative "hubspot_sdk/models/cms/url_mapping_get_params" require_relative "hubspot_sdk/models/cms/url_mapping_list_params" require_relative "hubspot_sdk/models/cms/url_redirect_create_params" +require_relative "hubspot_sdk/models/cms/url_redirect_create_url_mapping_params" require_relative "hubspot_sdk/models/cms/url_redirect_delete_params" +require_relative "hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params" require_relative "hubspot_sdk/models/cms/url_redirect_get_params" +require_relative "hubspot_sdk/models/cms/url_redirect_get_url_mapping_params" require_relative "hubspot_sdk/models/cms/url_redirect_list_params" +require_relative "hubspot_sdk/models/cms/url_redirect_list_url_mappings_params" require_relative "hubspot_sdk/models/cms/url_redirect_update_params" require_relative "hubspot_sdk/models/cms/variant" require_relative "hubspot_sdk/models/cms/xor" @@ -782,6 +792,7 @@ require_relative "hubspot_sdk/models/communication_preferences/statuses/batch_unsubscribe_all_params" require_relative "hubspot_sdk/models/communication_preferences/statuses/batch_update_statuses_params" require_relative "hubspot_sdk/models/communication_preferences/subscription_definition" +require_relative "hubspot_sdk/models/condition" require_relative "hubspot_sdk/models/conversations/channel_integration_participant" require_relative "hubspot_sdk/models/conversations/collection_response_with_total_public_channel_account" require_relative "hubspot_sdk/models/conversations/collection_response_with_total_public_channel_integration_channel" @@ -905,6 +916,7 @@ require_relative "hubspot_sdk/models/crm/collection_response_public_property_validation_rule_no_paging" require_relative "hubspot_sdk/models/crm/collection_response_simple_public_object_with_associations_forward_paging" require_relative "hubspot_sdk/models/crm/collection_response_with_total_simple_public_object" +require_relative "hubspot_sdk/models/crm/crm_filter" require_relative "hubspot_sdk/models/crm/custom_object_limit_response" require_relative "hubspot_sdk/models/crm/custom_object_record_limit_response" require_relative "hubspot_sdk/models/crm/custom_property_limit_response" @@ -985,7 +997,6 @@ require_relative "hubspot_sdk/models/crm/feature_flags/batch_upsert_params" require_relative "hubspot_sdk/models/crm/feature_flag_update_params" require_relative "hubspot_sdk/models/crm/feature_flag_update_portal_state_params" -require_relative "hubspot_sdk/models/crm/filter" require_relative "hubspot_sdk/models/crm/filter_group" require_relative "hubspot_sdk/models/crm/flag_response" require_relative "hubspot_sdk/models/crm/flags_for_app_response" @@ -1494,7 +1505,6 @@ require_relative "hubspot_sdk/models/crm/public_batch_migration_mapping" require_relative "hubspot_sdk/models/crm/public_bool_property_operation" require_relative "hubspot_sdk/models/crm/public_calendar_date_property_operation" -require_relative "hubspot_sdk/models/crm/public_campaign_influenced_filter" require_relative "hubspot_sdk/models/crm/public_communication_subscription_filter" require_relative "hubspot_sdk/models/crm/public_comparative_date_property_operation" require_relative "hubspot_sdk/models/crm/public_comparative_property_updated_operation" @@ -1541,7 +1551,6 @@ require_relative "hubspot_sdk/models/crm/public_not_all_filter_branch" require_relative "hubspot_sdk/models/crm/public_not_any_filter_branch" require_relative "hubspot_sdk/models/crm/public_now_reference" -require_relative "hubspot_sdk/models/crm/public_num_associations_filter" require_relative "hubspot_sdk/models/crm/public_number_property_operation" require_relative "hubspot_sdk/models/crm/public_num_occurrences_refine_by" require_relative "hubspot_sdk/models/crm/public_object_list" @@ -1551,8 +1560,6 @@ require_relative "hubspot_sdk/models/crm/public_owner" require_relative "hubspot_sdk/models/crm/public_page_view_analytics_filter" require_relative "hubspot_sdk/models/crm/public_privacy_analytics_filter" -require_relative "hubspot_sdk/models/crm/public_property_association_filter_branch" -require_relative "hubspot_sdk/models/crm/public_property_association_in_list_filter" require_relative "hubspot_sdk/models/crm/public_property_filter" require_relative "hubspot_sdk/models/crm/public_property_referenced_time" require_relative "hubspot_sdk/models/crm/public_property_validation_rule" @@ -1597,6 +1604,9 @@ require_relative "hubspot_sdk/models/crm/timeline_event_i_frame" require_relative "hubspot_sdk/models/crm/usage_for_object_type" require_relative "hubspot_sdk/models/crm/value_with_timestamp" +require_relative "hubspot_sdk/models/crm_object_snapshot_batch_response" +require_relative "hubspot_sdk/models/crm_object_snapshot_request" +require_relative "hubspot_sdk/models/crm_object_snapshot_response" require_relative "hubspot_sdk/models/error_data" require_relative "hubspot_sdk/models/error_detail" require_relative "hubspot_sdk/models/events/absolute_comparative_timestamp_refine_by" @@ -1696,7 +1706,13 @@ require_relative "hubspot_sdk/models/files/folder_update_task_locator" require_relative "hubspot_sdk/models/files/import_from_url_task_locator" require_relative "hubspot_sdk/models/files/signed_url" +require_relative "hubspot_sdk/models/filter" +require_relative "hubspot_sdk/models/filter_create_response" +require_relative "hubspot_sdk/models/filter_response" require_relative "hubspot_sdk/models/forward_paging" +require_relative "hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request" +require_relative "hubspot_sdk/models/journal_fetch_response" +require_relative "hubspot_sdk/models/list_membership_subscription_upsert_request" require_relative "hubspot_sdk/models/marketing/aggregate_email_statistics" require_relative "hubspot_sdk/models/marketing/app_info" require_relative "hubspot_sdk/models/marketing/attendance_counters" @@ -1871,6 +1887,7 @@ require_relative "hubspot_sdk/models/meta/origins/ip_range_list_simple_params" require_relative "hubspot_sdk/models/meta/origins/ip_range_list_simple_response" require_relative "hubspot_sdk/models/next_page" +require_relative "hubspot_sdk/models/object_subscription_upsert_request" require_relative "hubspot_sdk/models/object_type_definition" require_relative "hubspot_sdk/models/object_type_definition_labels" require_relative "hubspot_sdk/models/option" @@ -1961,30 +1978,14 @@ require_relative "hubspot_sdk/models/settings/user_list_roles_params" require_relative "hubspot_sdk/models/settings/user_list_teams_params" require_relative "hubspot_sdk/models/settings/user_update_params" +require_relative "hubspot_sdk/models/snapshot_status_response" require_relative "hubspot_sdk/models/standard_error" require_relative "hubspot_sdk/models/task_locator" require_relative "hubspot_sdk/models/version_user" -require_relative "hubspot_sdk/models/webhooks/action_override_request" -require_relative "hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request" -require_relative "hubspot_sdk/models/webhooks/association_subscription_upsert_request" -require_relative "hubspot_sdk/models/webhooks/batch_response_journal_fetch_response" -require_relative "hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors" require_relative "hubspot_sdk/models/webhooks/batch_response_subscription_response" require_relative "hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors" require_relative "hubspot_sdk/models/webhooks/collection_response_subscription_response_no_paging" -require_relative "hubspot_sdk/models/webhooks/condition" -require_relative "hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response" -require_relative "hubspot_sdk/models/webhooks/crm_object_snapshot_request" -require_relative "hubspot_sdk/models/webhooks/crm_object_snapshot_response" -require_relative "hubspot_sdk/models/webhooks/filter" -require_relative "hubspot_sdk/models/webhooks/filter_create_response" -require_relative "hubspot_sdk/models/webhooks/filter_response" -require_relative "hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request" -require_relative "hubspot_sdk/models/webhooks/journal_fetch_response" -require_relative "hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request" -require_relative "hubspot_sdk/models/webhooks/object_subscription_upsert_request" require_relative "hubspot_sdk/models/webhooks/settings_response" -require_relative "hubspot_sdk/models/webhooks/snapshot_status_response" require_relative "hubspot_sdk/models/webhooks/subscription_batch_update_request" require_relative "hubspot_sdk/models/webhooks/subscription_list_response" require_relative "hubspot_sdk/models/webhooks/subscription_response" @@ -2026,6 +2027,33 @@ require_relative "hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response" require_relative "hubspot_sdk/models/webhooks/webhook_update_event_subscription_params" require_relative "hubspot_sdk/models/webhooks/webhook_update_settings_params" +require_relative "hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging" +require_relative "hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal/batch_get_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_get_earliest_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_get_status_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_local_get_status_params" +require_relative "hubspot_sdk/models/webhooks_journal/snapshot_create_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscription_create_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscription_delete_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscription_get_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscription_list_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscription_response" +require_relative "hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params" +require_relative "hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response" require_relative "hubspot_sdk/models" require_relative "hubspot_sdk/resources/account" require_relative "hubspot_sdk/resources/account/activity" @@ -2230,3 +2258,11 @@ require_relative "hubspot_sdk/resources/settings/tax_rates" require_relative "hubspot_sdk/resources/settings/users" require_relative "hubspot_sdk/resources/webhooks" +require_relative "hubspot_sdk/resources/webhooks_journal" +require_relative "hubspot_sdk/resources/webhooks_journal/journal" +require_relative "hubspot_sdk/resources/webhooks_journal/journal/batch" +require_relative "hubspot_sdk/resources/webhooks_journal/journal_local" +require_relative "hubspot_sdk/resources/webhooks_journal/journal_local/batch" +require_relative "hubspot_sdk/resources/webhooks_journal/snapshots" +require_relative "hubspot_sdk/resources/webhooks_journal/subscriptions" +require_relative "hubspot_sdk/resources/webhooks_journal/subscriptions/filters" diff --git a/lib/hubspot_sdk/client.rb b/lib/hubspot_sdk/client.rb index 3289d1a6..24dfaf33 100644 --- a/lib/hubspot_sdk/client.rb +++ b/lib/hubspot_sdk/client.rb @@ -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}] @@ -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 diff --git a/lib/hubspot_sdk/internal/type/union.rb b/lib/hubspot_sdk/internal/type/union.rb index 420d21a7..a8366cf9 100644 --- a/lib/hubspot_sdk/internal/type/union.rb +++ b/lib/hubspot_sdk/internal/type/union.rb @@ -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 diff --git a/lib/hubspot_sdk/models.rb b/lib/hubspot_sdk/models.rb index af437162..740d9d34 100644 --- a/lib/hubspot_sdk/models.rb +++ b/lib/hubspot_sdk/models.rb @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/lib/hubspot_sdk/models/action_override_request.rb b/lib/hubspot_sdk/models/action_override_request.rb new file mode 100644 index 00000000..2ca270cb --- /dev/null +++ b/lib/hubspot_sdk/models/action_override_request.rb @@ -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, 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, 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, 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, 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] An array of strings, each representing an associated object type ID relevant to + # + # @param list_ids [Array] An array of integers representing list IDs that are associated with the action o + # + # @param object_ids [Array] An array of integers, each representing an object ID for which the action overri + # + # @param properties [Array] An array of strings representing the properties to be overridden in the action. + end + end +end diff --git a/lib/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rb b/lib/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rb new file mode 100644 index 00000000..6a2d6dd2 --- /dev/null +++ b/lib/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rb @@ -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] + 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] + # @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] + end + end + end +end diff --git a/lib/hubspot_sdk/models/association_subscription_upsert_request.rb b/lib/hubspot_sdk/models/association_subscription_upsert_request.rb new file mode 100644 index 00000000..4f4d5de6 --- /dev/null +++ b/lib/hubspot_sdk/models/association_subscription_upsert_request.rb @@ -0,0 +1,81 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class AssociationSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + # @!attribute actions + # + # @return [Array] + required :actions, + -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::AssociationSubscriptionUpsertRequest::Action] } + + # @!attribute associated_object_type_ids + # + # @return [Array] + required :associated_object_type_ids, + HubSpotSDK::Internal::Type::ArrayOf[String], + api_name: :associatedObjectTypeIds + + # @!attribute object_ids + # + # @return [Array] + 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] + # @param associated_object_type_ids [Array] + # @param object_ids [Array] + # @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] + end + + # @see HubSpotSDK::Models::AssociationSubscriptionUpsertRequest#subscription_type + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + ASSOCIATION = :ASSOCIATION + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/hubspot_sdk/models/auth/access_token_response.rb b/lib/hubspot_sdk/models/auth/access_token_response.rb new file mode 100644 index 00000000..4707b352 --- /dev/null +++ b/lib/hubspot_sdk/models/auth/access_token_response.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module Auth + class AccessTokenResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute access_token + # + # @return [String] + required :access_token, String + + # @!attribute expires_in + # + # @return [Integer] + required :expires_in, Integer + + # @!attribute refresh_token + # + # @return [String] + required :refresh_token, String + + # @!attribute token_type + # + # @return [String] + required :token_type, String + + # @!attribute token_use + # + # @return [Symbol, HubSpotSDK::Models::Auth::AccessTokenResponse::TokenUse] + required :token_use, enum: -> { HubSpotSDK::Auth::AccessTokenResponse::TokenUse } + + # @!attribute hub_id + # + # @return [Integer, nil] + optional :hub_id, Integer + + # @!attribute id_token + # + # @return [String, nil] + optional :id_token, String + + # @!attribute scopes + # + # @return [Array, nil] + optional :scopes, HubSpotSDK::Internal::Type::ArrayOf[String] + + # @!attribute user_id + # + # @return [Integer, nil] + optional :user_id, Integer + + # @!method initialize(access_token:, expires_in:, refresh_token:, token_type:, token_use:, hub_id: nil, id_token: nil, scopes: nil, user_id: nil) + # @param access_token [String] + # @param expires_in [Integer] + # @param refresh_token [String] + # @param token_type [String] + # @param token_use [Symbol, HubSpotSDK::Models::Auth::AccessTokenResponse::TokenUse] + # @param hub_id [Integer] + # @param id_token [String] + # @param scopes [Array] + # @param user_id [Integer] + + # @see HubSpotSDK::Models::Auth::AccessTokenResponse#token_use + module TokenUse + extend HubSpotSDK::Internal::Type::Enum + + ACCESS_TOKEN = :access_token + + # @!method self.values + # @return [Array] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/auth/client_credentials_token_response.rb b/lib/hubspot_sdk/models/auth/client_credentials_token_response.rb new file mode 100644 index 00000000..7dce2ffd --- /dev/null +++ b/lib/hubspot_sdk/models/auth/client_credentials_token_response.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module Auth + class ClientCredentialsTokenResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute access_token + # + # @return [String] + required :access_token, String + + # @!attribute expires_in + # + # @return [Integer] + required :expires_in, Integer + + # @!attribute token_type + # + # @return [String] + required :token_type, String + + # @!attribute token_use + # + # @return [Symbol, HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse::TokenUse] + required :token_use, enum: -> { HubSpotSDK::Auth::ClientCredentialsTokenResponse::TokenUse } + + # @!attribute hub_id + # + # @return [Integer, nil] + optional :hub_id, Integer + + # @!attribute id_token + # + # @return [String, nil] + optional :id_token, String + + # @!attribute scopes + # + # @return [Array, nil] + optional :scopes, HubSpotSDK::Internal::Type::ArrayOf[String] + + # @!attribute user_id + # + # @return [Integer, nil] + optional :user_id, Integer + + # @!method initialize(access_token:, expires_in:, token_type:, token_use:, hub_id: nil, id_token: nil, scopes: nil, user_id: nil) + # @param access_token [String] + # @param expires_in [Integer] + # @param token_type [String] + # @param token_use [Symbol, HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse::TokenUse] + # @param hub_id [Integer] + # @param id_token [String] + # @param scopes [Array] + # @param user_id [Integer] + + # @see HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse#token_use + module TokenUse + extend HubSpotSDK::Internal::Type::Enum + + CLIENT_CREDENTIALS = :client_credentials + + # @!method self.values + # @return [Array] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/auth/oauth_create_token_params.rb b/lib/hubspot_sdk/models/auth/oauth_create_token_params.rb index e7e0c4b4..d0cae08c 100644 --- a/lib/hubspot_sdk/models/auth/oauth_create_token_params.rb +++ b/lib/hubspot_sdk/models/auth/oauth_create_token_params.rb @@ -63,6 +63,7 @@ module GrantType extend HubSpotSDK::Internal::Type::Enum AUTHORIZATION_CODE = :authorization_code + CLIENT_CREDENTIALS = :client_credentials REFRESH_TOKEN = :refresh_token # @!method self.values diff --git a/lib/hubspot_sdk/models/auth/token_response_if.rb b/lib/hubspot_sdk/models/auth/token_response_if.rb new file mode 100644 index 00000000..97e237e5 --- /dev/null +++ b/lib/hubspot_sdk/models/auth/token_response_if.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module Auth + # @see HubSpotSDK::Resources::Auth::OAuth#create_token + module TokenResponseIf + extend HubSpotSDK::Internal::Type::Union + + variant -> { HubSpotSDK::Auth::AccessTokenResponse } + + variant -> { HubSpotSDK::Auth::ClientCredentialsTokenResponse } + + # @!method self.variants + # @return [Array(HubSpotSDK::Models::Auth::AccessTokenResponse, HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse)] + end + end + end +end diff --git a/lib/hubspot_sdk/models/automation/array_field_schema.rb b/lib/hubspot_sdk/models/automation/array_field_schema.rb index e47675d1..61e6e16c 100644 --- a/lib/hubspot_sdk/models/automation/array_field_schema.rb +++ b/lib/hubspot_sdk/models/automation/array_field_schema.rb @@ -27,12 +27,6 @@ module Type extend HubSpotSDK::Internal::Type::Enum ARRAY = :ARRAY - BOOLEAN = :BOOLEAN - DOUBLE = :DOUBLE - INTEGER = :INTEGER - LONG = :LONG - OBJECT = :OBJECT - STRING = :STRING # @!method self.values # @return [Array] diff --git a/lib/hubspot_sdk/models/automation/boolean_field_schema.rb b/lib/hubspot_sdk/models/automation/boolean_field_schema.rb index a603ddae..049abbdf 100644 --- a/lib/hubspot_sdk/models/automation/boolean_field_schema.rb +++ b/lib/hubspot_sdk/models/automation/boolean_field_schema.rb @@ -24,13 +24,7 @@ class BooleanFieldSchema < HubSpotSDK::Internal::Type::BaseModel module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY = :ARRAY BOOLEAN = :BOOLEAN - DOUBLE = :DOUBLE - INTEGER = :INTEGER - LONG = :LONG - OBJECT = :OBJECT - STRING = :STRING # @!method self.values # @return [Array] diff --git a/lib/hubspot_sdk/models/automation/double_field_schema.rb b/lib/hubspot_sdk/models/automation/double_field_schema.rb index 1da5f9ca..c65cc75a 100644 --- a/lib/hubspot_sdk/models/automation/double_field_schema.rb +++ b/lib/hubspot_sdk/models/automation/double_field_schema.rb @@ -35,13 +35,7 @@ class DoubleFieldSchema < HubSpotSDK::Internal::Type::BaseModel module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY = :ARRAY - BOOLEAN = :BOOLEAN DOUBLE = :DOUBLE - INTEGER = :INTEGER - LONG = :LONG - OBJECT = :OBJECT - STRING = :STRING # @!method self.values # @return [Array] diff --git a/lib/hubspot_sdk/models/automation/integer_field_schema.rb b/lib/hubspot_sdk/models/automation/integer_field_schema.rb index b605a739..f39b93b1 100644 --- a/lib/hubspot_sdk/models/automation/integer_field_schema.rb +++ b/lib/hubspot_sdk/models/automation/integer_field_schema.rb @@ -35,13 +35,7 @@ class IntegerFieldSchema < HubSpotSDK::Internal::Type::BaseModel module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY = :ARRAY - BOOLEAN = :BOOLEAN - DOUBLE = :DOUBLE INTEGER = :INTEGER - LONG = :LONG - OBJECT = :OBJECT - STRING = :STRING # @!method self.values # @return [Array] diff --git a/lib/hubspot_sdk/models/automation/long_field_schema.rb b/lib/hubspot_sdk/models/automation/long_field_schema.rb index 70faeaa4..b4ea7c06 100644 --- a/lib/hubspot_sdk/models/automation/long_field_schema.rb +++ b/lib/hubspot_sdk/models/automation/long_field_schema.rb @@ -35,13 +35,7 @@ class LongFieldSchema < HubSpotSDK::Internal::Type::BaseModel module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY = :ARRAY - BOOLEAN = :BOOLEAN - DOUBLE = :DOUBLE - INTEGER = :INTEGER LONG = :LONG - OBJECT = :OBJECT - STRING = :STRING # @!method self.values # @return [Array] diff --git a/lib/hubspot_sdk/models/automation/object_field_schema.rb b/lib/hubspot_sdk/models/automation/object_field_schema.rb index a54638b7..0f6ddc99 100644 --- a/lib/hubspot_sdk/models/automation/object_field_schema.rb +++ b/lib/hubspot_sdk/models/automation/object_field_schema.rb @@ -27,13 +27,7 @@ class ObjectFieldSchema < HubSpotSDK::Internal::Type::BaseModel module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY = :ARRAY - BOOLEAN = :BOOLEAN - DOUBLE = :DOUBLE - INTEGER = :INTEGER - LONG = :LONG OBJECT = :OBJECT - STRING = :STRING # @!method self.values # @return [Array] diff --git a/lib/hubspot_sdk/models/automation/string_field_schema.rb b/lib/hubspot_sdk/models/automation/string_field_schema.rb index f75e2d65..5b22f1fa 100644 --- a/lib/hubspot_sdk/models/automation/string_field_schema.rb +++ b/lib/hubspot_sdk/models/automation/string_field_schema.rb @@ -31,12 +31,6 @@ class StringFieldSchema < HubSpotSDK::Internal::Type::BaseModel module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY = :ARRAY - BOOLEAN = :BOOLEAN - DOUBLE = :DOUBLE - INTEGER = :INTEGER - LONG = :LONG - OBJECT = :OBJECT STRING = :STRING # @!method self.values diff --git a/lib/hubspot_sdk/models/batch_response_journal_fetch_response.rb b/lib/hubspot_sdk/models/batch_response_journal_fetch_response.rb new file mode 100644 index 00000000..f6566f71 --- /dev/null +++ b/lib/hubspot_sdk/models/batch_response_journal_fetch_response.rb @@ -0,0 +1,77 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class BatchResponseJournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute completed_at + # The date and time when the batch operation was completed, in ISO 8601 format. + # + # @return [Time] + required :completed_at, Time, api_name: :completedAt + + # @!attribute results + # An array of results from the batch operation, each represented as a + # JournalFetchResponse object. + # + # @return [Array] + required :results, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse] } + + # @!attribute started_at + # The date and time when the batch operation started, in ISO 8601 format. + # + # @return [Time] + required :started_at, Time, api_name: :startedAt + + # @!attribute status + # The current status of the batch operation. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + # + # @return [Symbol, HubSpotSDK::Models::BatchResponseJournalFetchResponse::Status] + required :status, enum: -> { HubSpotSDK::BatchResponseJournalFetchResponse::Status } + + # @!attribute links + # A map of link names to associated URIs related to the batch operation. + # + # @return [Hash{Symbol=>String}, nil] + optional :links, HubSpotSDK::Internal::Type::HashOf[String] + + # @!attribute requested_at + # The date and time when the batch operation was requested, in ISO 8601 format. + # + # @return [Time, nil] + optional :requested_at, Time, api_name: :requestedAt + + # @!method initialize(completed_at:, results:, started_at:, status:, links: nil, requested_at: nil) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::BatchResponseJournalFetchResponse} for more details. + # + # @param completed_at [Time] The date and time when the batch operation was completed, in ISO 8601 format. + # + # @param results [Array] An array of results from the batch operation, each represented as a JournalFetch + # + # @param started_at [Time] The date and time when the batch operation started, in ISO 8601 format. + # + # @param status [Symbol, HubSpotSDK::Models::BatchResponseJournalFetchResponse::Status] The current status of the batch operation. Valid values include 'PENDING', 'PROC + # + # @param links [Hash{Symbol=>String}] A map of link names to associated URIs related to the batch operation. + # + # @param requested_at [Time] The date and time when the batch operation was requested, in ISO 8601 format. + + # The current status of the batch operation. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + # + # @see HubSpotSDK::Models::BatchResponseJournalFetchResponse#status + module Status + extend HubSpotSDK::Internal::Type::Enum + + CANCELED = :CANCELED + COMPLETE = :COMPLETE + PENDING = :PENDING + PROCESSING = :PROCESSING + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rb b/lib/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rb new file mode 100644 index 00000000..112f036a --- /dev/null +++ b/lib/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rb @@ -0,0 +1,96 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class BatchResponseJournalFetchResponseWithErrors < HubSpotSDK::Internal::Type::BaseModel + # @!attribute completed_at + # The date and time when the batch process was completed, in ISO 8601 format. + # + # @return [Time] + required :completed_at, Time, api_name: :completedAt + + # @!attribute results + # An array of journal fetch responses, each representing a result from the batch + # process. + # + # @return [Array] + required :results, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse] } + + # @!attribute started_at + # The date and time when the batch process started, in ISO 8601 format. + # + # @return [Time] + required :started_at, Time, api_name: :startedAt + + # @!attribute status + # The current status of the batch process. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + # + # @return [Symbol, HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors::Status] + required :status, enum: -> { HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status } + + # @!attribute errors + # An array of standard errors that occurred during the batch process, providing + # details about each error. + # + # @return [Array, nil] + optional :errors, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::StandardError] } + + # @!attribute links + # A map of link names to associated URIs, providing additional context or actions + # related to the batch process. + # + # @return [Hash{Symbol=>String}, nil] + optional :links, HubSpotSDK::Internal::Type::HashOf[String] + + # @!attribute num_errors + # The number of errors that occurred during the batch process. + # + # @return [Integer, nil] + optional :num_errors, Integer, api_name: :numErrors + + # @!attribute requested_at + # The date and time when the batch request was made, in ISO 8601 format. + # + # @return [Time, nil] + optional :requested_at, Time, api_name: :requestedAt + + # @!method initialize(completed_at:, results:, started_at:, status:, errors: nil, links: nil, num_errors: nil, requested_at: nil) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors} for more + # details. + # + # @param completed_at [Time] The date and time when the batch process was completed, in ISO 8601 format. + # + # @param results [Array] An array of journal fetch responses, each representing a result from the batch p + # + # @param started_at [Time] The date and time when the batch process started, in ISO 8601 format. + # + # @param status [Symbol, HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors::Status] The current status of the batch process. Valid values include 'PENDING', 'PROCES + # + # @param errors [Array] An array of standard errors that occurred during the batch process, providing de + # + # @param links [Hash{Symbol=>String}] A map of link names to associated URIs, providing additional context or actions + # + # @param num_errors [Integer] The number of errors that occurred during the batch process. + # + # @param requested_at [Time] The date and time when the batch request was made, in ISO 8601 format. + + # The current status of the batch process. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + # + # @see HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors#status + module Status + extend HubSpotSDK::Internal::Type::Enum + + CANCELED = :CANCELED + COMPLETE = :COMPLETE + PENDING = :PENDING + PROCESSING = :PROCESSING + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/hubspot_sdk/models/cms/content_search_result.rb b/lib/hubspot_sdk/models/cms/content_search_result.rb deleted file mode 100644 index 80f17b1a..00000000 --- a/lib/hubspot_sdk/models/cms/content_search_result.rb +++ /dev/null @@ -1,1045 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Cms - class ContentSearchResult < HubSpotSDK::Internal::Type::BaseModel - # @!attribute id - # The ID of the content. - # - # @return [Integer] - required :id, Integer - - # @!attribute domain - # The domain the document is hosted on. - # - # @return [String] - required :domain, String - - # @!attribute score - # The matching score of the document. - # - # @return [Float] - required :score, Float - - # @!attribute type - # The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, - # `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`. - # - # @return [Symbol, HubSpotSDK::Models::Cms::ContentSearchResult::Type] - required :type, enum: -> { HubSpotSDK::Cms::ContentSearchResult::Type } - - # @!attribute url - # The url of the document. - # - # @return [String] - required :url, String - - # @!attribute author_full_name - # Name of the author. - # - # @return [String, nil] - optional :author_full_name, String, api_name: :authorFullName - - # @!attribute category - # The error category - # - # @return [String, nil] - optional :category, String - - # @!attribute combined_id - # The ID of the document in HubSpot. - # - # @return [String, nil] - optional :combined_id, String, api_name: :combinedId - - # @!attribute content_type - # - # @return [String, nil] - optional :content_type, String, api_name: :contentType - - # @!attribute description - # The result's description. The content will be determined by the value of - # `length` in the request. - # - # @return [String, nil] - optional :description, String - - # @!attribute featured_image_url - # URL of the featured image. - # - # @return [String, nil] - optional :featured_image_url, String, api_name: :featuredImageUrl - - # @!attribute in_beta - # - # @return [Boolean, nil] - optional :in_beta, HubSpotSDK::Internal::Type::Boolean, api_name: :inBeta - - # @!attribute is_private - # - # @return [Boolean, nil] - optional :is_private, HubSpotSDK::Internal::Type::Boolean, api_name: :isPrivate - - # @!attribute language - # The document's language. - # - # @return [Symbol, HubSpotSDK::Models::Cms::ContentSearchResult::Language, nil] - optional :language, enum: -> { HubSpotSDK::Cms::ContentSearchResult::Language } - - # @!attribute published_date - # The date the content was published. - # - # @return [Integer, nil] - optional :published_date, Integer, api_name: :publishedDate - - # @!attribute row_id - # If a dynamic page, the row ID in the HubDB table. - # - # @return [Integer, nil] - optional :row_id, Integer, api_name: :rowId - - # @!attribute subcategory - # For knowledge articles, the subcategory of the article. - # - # @return [String, nil] - optional :subcategory, String - - # @!attribute table_id - # If a dynamic page, the ID of the HubDB table. - # - # @return [Integer, nil] - optional :table_id, Integer, api_name: :tableId - - # @!attribute tags - # If a blog post, the tags associated with it. - # - # @return [Array, nil] - optional :tags, HubSpotSDK::Internal::Type::ArrayOf[String] - - # @!attribute title - # The title of the returned document. - # - # @return [String, nil] - optional :title, String - - # @!method initialize(id:, domain:, score:, type:, url:, author_full_name: nil, category: nil, combined_id: nil, content_type: nil, description: nil, featured_image_url: nil, in_beta: nil, is_private: nil, language: nil, published_date: nil, row_id: nil, subcategory: nil, table_id: nil, tags: nil, title: nil) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Cms::ContentSearchResult} for more details. - # - # @param id [Integer] The ID of the content. - # - # @param domain [String] The domain the document is hosted on. - # - # @param score [Float] The matching score of the document. - # - # @param type [Symbol, HubSpotSDK::Models::Cms::ContentSearchResult::Type] The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, - # `LISTING\_ - # - # @param url [String] The url of the document. - # - # @param author_full_name [String] Name of the author. - # - # @param category [String] The error category - # - # @param combined_id [String] The ID of the document in HubSpot. - # - # @param content_type [String] - # - # @param description [String] The result's description. The content will be determined by the value of `length - # - # @param featured_image_url [String] URL of the featured image. - # - # @param in_beta [Boolean] - # - # @param is_private [Boolean] - # - # @param language [Symbol, HubSpotSDK::Models::Cms::ContentSearchResult::Language] The document's language. - # - # @param published_date [Integer] The date the content was published. - # - # @param row_id [Integer] If a dynamic page, the row ID in the HubDB table. - # - # @param subcategory [String] For knowledge articles, the subcategory of the article. - # - # @param table_id [Integer] If a dynamic page, the ID of the HubDB table. - # - # @param tags [Array] If a blog post, the tags associated with it. - # - # @param title [String] The title of the returned document. - - # The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, - # `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`. - # - # @see HubSpotSDK::Models::Cms::ContentSearchResult#type - module Type - extend HubSpotSDK::Internal::Type::Enum - - BLOG_POST = :BLOG_POST - KNOWLEDGE_ARTICLE = :KNOWLEDGE_ARTICLE - LANDING_PAGE = :LANDING_PAGE - LISTING_PAGE = :LISTING_PAGE - SITE_PAGE = :SITE_PAGE - STRUCTURED_CONTENT = :STRUCTURED_CONTENT - - # @!method self.values - # @return [Array] - end - - # The document's language. - # - # @see HubSpotSDK::Models::Cms::ContentSearchResult#language - module Language - extend HubSpotSDK::Internal::Type::Enum - - AA = :aa - AB = :ab - AE = :ae - AF = :af - AF_NA = :"af-na" - AF_ZA = :"af-za" - AGQ = :agq - AGQ_CM = :"agq-cm" - AK = :ak - AK_GH = :"ak-gh" - AM = :am - AM_ET = :"am-et" - AN = :an - ANN = :ann - ANN_NG = :"ann-ng" - AR = :ar - AR_001 = :"ar-001" - AR_AE = :"ar-ae" - AR_BH = :"ar-bh" - AR_DJ = :"ar-dj" - AR_DZ = :"ar-dz" - AR_EG = :"ar-eg" - AR_EH = :"ar-eh" - AR_ER = :"ar-er" - AR_IL = :"ar-il" - AR_IQ = :"ar-iq" - AR_JO = :"ar-jo" - AR_KM = :"ar-km" - AR_KW = :"ar-kw" - AR_LB = :"ar-lb" - AR_LY = :"ar-ly" - AR_MA = :"ar-ma" - AR_MR = :"ar-mr" - AR_OM = :"ar-om" - AR_PS = :"ar-ps" - AR_QA = :"ar-qa" - AR_SA = :"ar-sa" - AR_SD = :"ar-sd" - AR_SO = :"ar-so" - AR_SS = :"ar-ss" - AR_SY = :"ar-sy" - AR_TD = :"ar-td" - AR_TN = :"ar-tn" - AR_YE = :"ar-ye" - AS = :as - AS_IN = :"as-in" - ASA = :asa - ASA_TZ = :"asa-tz" - AST = :ast - AST_ES = :"ast-es" - AV = :av - AY = :ay - AZ = :az - AZ_AZ = :"az-az" - BA = :ba - BAS = :bas - BAS_CM = :"bas-cm" - BE = :be - BE_BY = :"be-by" - BEM = :bem - BEM_ZM = :"bem-zm" - BEZ = :bez - BEZ_TZ = :"bez-tz" - BG = :bg - BG_BG = :"bg-bg" - BGC = :bgc - BGC_IN = :"bgc-in" - BHO = :bho - BHO_IN = :"bho-in" - BI = :bi - BM = :bm - BM_ML = :"bm-ml" - BN = :bn - BN_BD = :"bn-bd" - BN_IN = :"bn-in" - BO = :bo - BO_CN = :"bo-cn" - BO_IN = :"bo-in" - BR = :br - BR_FR = :"br-fr" - BRX = :brx - BRX_IN = :"brx-in" - BS = :bs - BS_BA = :"bs-ba" - CA = :ca - CA_AD = :"ca-ad" - CA_ES = :"ca-es" - CA_FR = :"ca-fr" - CA_IT = :"ca-it" - CCP = :ccp - CCP_BD = :"ccp-bd" - CCP_IN = :"ccp-in" - CE = :ce - CE_RU = :"ce-ru" - CEB = :ceb - CEB_PH = :"ceb-ph" - CGG = :cgg - CGG_UG = :"cgg-ug" - CH = :ch - CHR = :chr - CHR_US = :"chr-us" - CKB = :ckb - CKB_IQ = :"ckb-iq" - CKB_IR = :"ckb-ir" - CO = :co - CR = :cr - CS = :cs - CS_CZ = :"cs-cz" - CU = :cu - CU_RU = :"cu-ru" - CV = :cv - CV_RU = :"cv-ru" - CY = :cy - CY_GB = :"cy-gb" - DA = :da - DA_DK = :"da-dk" - DA_GL = :"da-gl" - DAV = :dav - DAV_KE = :"dav-ke" - DE = :de - DE_AT = :"de-at" - DE_BE = :"de-be" - DE_CH = :"de-ch" - DE_DE = :"de-de" - DE_GR = :"de-gr" - DE_IT = :"de-it" - DE_LI = :"de-li" - DE_LU = :"de-lu" - DJE = :dje - DJE_NE = :"dje-ne" - DOI = :doi - DOI_IN = :"doi-in" - DSB = :dsb - DSB_DE = :"dsb-de" - DUA = :dua - DUA_CM = :"dua-cm" - DV = :dv - DYO = :dyo - DYO_SN = :"dyo-sn" - DZ = :dz - DZ_BT = :"dz-bt" - EBU = :ebu - EBU_KE = :"ebu-ke" - EE = :ee - EE_GH = :"ee-gh" - EE_TG = :"ee-tg" - EL = :el - EL_CY = :"el-cy" - EL_GR = :"el-gr" - EN = :en - EN_001 = :"en-001" - EN_150 = :"en-150" - EN_AE = :"en-ae" - EN_AG = :"en-ag" - EN_AI = :"en-ai" - EN_AS = :"en-as" - EN_AT = :"en-at" - EN_AU = :"en-au" - EN_BB = :"en-bb" - EN_BE = :"en-be" - EN_BI = :"en-bi" - EN_BM = :"en-bm" - EN_BS = :"en-bs" - EN_BW = :"en-bw" - EN_BZ = :"en-bz" - EN_CA = :"en-ca" - EN_CC = :"en-cc" - EN_CH = :"en-ch" - EN_CK = :"en-ck" - EN_CM = :"en-cm" - EN_CN = :"en-cn" - EN_CX = :"en-cx" - EN_CY = :"en-cy" - EN_DE = :"en-de" - EN_DG = :"en-dg" - EN_DK = :"en-dk" - EN_DM = :"en-dm" - EN_EE = :"en-ee" - EN_EG = :"en-eg" - EN_ER = :"en-er" - EN_ES = :"en-es" - EN_FI = :"en-fi" - EN_FJ = :"en-fj" - EN_FK = :"en-fk" - EN_FM = :"en-fm" - EN_FR = :"en-fr" - EN_GB = :"en-gb" - EN_GD = :"en-gd" - EN_GG = :"en-gg" - EN_GH = :"en-gh" - EN_GI = :"en-gi" - EN_GM = :"en-gm" - EN_GU = :"en-gu" - EN_GY = :"en-gy" - EN_HK = :"en-hk" - EN_ID = :"en-id" - EN_IE = :"en-ie" - EN_IL = :"en-il" - EN_IM = :"en-im" - EN_IN = :"en-in" - EN_IO = :"en-io" - EN_JE = :"en-je" - EN_JM = :"en-jm" - EN_KE = :"en-ke" - EN_KI = :"en-ki" - EN_KN = :"en-kn" - EN_KY = :"en-ky" - EN_LC = :"en-lc" - EN_LR = :"en-lr" - EN_LS = :"en-ls" - EN_LU = :"en-lu" - EN_MG = :"en-mg" - EN_MH = :"en-mh" - EN_MO = :"en-mo" - EN_MP = :"en-mp" - EN_MS = :"en-ms" - EN_MT = :"en-mt" - EN_MU = :"en-mu" - EN_MV = :"en-mv" - EN_MW = :"en-mw" - EN_MX = :"en-mx" - EN_MY = :"en-my" - EN_NA = :"en-na" - EN_NF = :"en-nf" - EN_NG = :"en-ng" - EN_NL = :"en-nl" - EN_NR = :"en-nr" - EN_NU = :"en-nu" - EN_NZ = :"en-nz" - EN_PG = :"en-pg" - EN_PH = :"en-ph" - EN_PK = :"en-pk" - EN_PN = :"en-pn" - EN_PR = :"en-pr" - EN_PT = :"en-pt" - EN_PW = :"en-pw" - EN_RW = :"en-rw" - EN_SB = :"en-sb" - EN_SC = :"en-sc" - EN_SD = :"en-sd" - EN_SE = :"en-se" - EN_SG = :"en-sg" - EN_SH = :"en-sh" - EN_SI = :"en-si" - EN_SL = :"en-sl" - EN_SS = :"en-ss" - EN_SX = :"en-sx" - EN_SZ = :"en-sz" - EN_TC = :"en-tc" - EN_TH = :"en-th" - EN_TK = :"en-tk" - EN_TN = :"en-tn" - EN_TO = :"en-to" - EN_TT = :"en-tt" - EN_TV = :"en-tv" - EN_TZ = :"en-tz" - EN_UG = :"en-ug" - EN_UM = :"en-um" - EN_US = :"en-us" - EN_VC = :"en-vc" - EN_VG = :"en-vg" - EN_VI = :"en-vi" - EN_VN = :"en-vn" - EN_VU = :"en-vu" - EN_WS = :"en-ws" - EN_ZA = :"en-za" - EN_ZM = :"en-zm" - EN_ZW = :"en-zw" - EO = :eo - EO_001 = :"eo-001" - ES = :es - ES_419 = :"es-419" - ES_AR = :"es-ar" - ES_BO = :"es-bo" - ES_BR = :"es-br" - ES_BZ = :"es-bz" - ES_CL = :"es-cl" - ES_CO = :"es-co" - ES_CR = :"es-cr" - ES_CU = :"es-cu" - ES_DO = :"es-do" - ES_EA = :"es-ea" - ES_EC = :"es-ec" - ES_ES = :"es-es" - ES_GQ = :"es-gq" - ES_GT = :"es-gt" - ES_HN = :"es-hn" - ES_IC = :"es-ic" - ES_MX = :"es-mx" - ES_NI = :"es-ni" - ES_PA = :"es-pa" - ES_PE = :"es-pe" - ES_PH = :"es-ph" - ES_PR = :"es-pr" - ES_PY = :"es-py" - ES_SV = :"es-sv" - ES_US = :"es-us" - ES_UY = :"es-uy" - ES_VE = :"es-ve" - ET = :et - ET_EE = :"et-ee" - EU = :eu - EU_ES = :"eu-es" - EWO = :ewo - EWO_CM = :"ewo-cm" - FA = :fa - FA_AF = :"fa-af" - FA_IR = :"fa-ir" - FF = :ff - FF_BF = :"ff-bf" - FF_CM = :"ff-cm" - FF_GH = :"ff-gh" - FF_GM = :"ff-gm" - FF_GN = :"ff-gn" - FF_GW = :"ff-gw" - FF_LR = :"ff-lr" - FF_MR = :"ff-mr" - FF_NE = :"ff-ne" - FF_NG = :"ff-ng" - FF_SL = :"ff-sl" - FF_SN = :"ff-sn" - FI = :fi - FI_FI = :"fi-fi" - FIL = :fil - FIL_PH = :"fil-ph" - FJ = :fj - FO = :fo - FO_DK = :"fo-dk" - FO_FO = :"fo-fo" - FR = :fr - FR_BE = :"fr-be" - FR_BF = :"fr-bf" - FR_BI = :"fr-bi" - FR_BJ = :"fr-bj" - FR_BL = :"fr-bl" - FR_CA = :"fr-ca" - FR_CD = :"fr-cd" - FR_CF = :"fr-cf" - FR_CG = :"fr-cg" - FR_CH = :"fr-ch" - FR_CI = :"fr-ci" - FR_CM = :"fr-cm" - FR_DJ = :"fr-dj" - FR_DZ = :"fr-dz" - FR_FR = :"fr-fr" - FR_GA = :"fr-ga" - FR_GF = :"fr-gf" - FR_GN = :"fr-gn" - FR_GP = :"fr-gp" - FR_GQ = :"fr-gq" - FR_HT = :"fr-ht" - FR_KM = :"fr-km" - FR_LU = :"fr-lu" - FR_MA = :"fr-ma" - FR_MC = :"fr-mc" - FR_MF = :"fr-mf" - FR_MG = :"fr-mg" - FR_ML = :"fr-ml" - FR_MQ = :"fr-mq" - FR_MR = :"fr-mr" - FR_MU = :"fr-mu" - FR_NC = :"fr-nc" - FR_NE = :"fr-ne" - FR_PF = :"fr-pf" - FR_PM = :"fr-pm" - FR_RE = :"fr-re" - FR_RW = :"fr-rw" - FR_SC = :"fr-sc" - FR_SN = :"fr-sn" - FR_SY = :"fr-sy" - FR_TD = :"fr-td" - FR_TG = :"fr-tg" - FR_TN = :"fr-tn" - FR_VU = :"fr-vu" - FR_WF = :"fr-wf" - FR_YT = :"fr-yt" - FRR = :frr - FRR_DE = :"frr-de" - FUR = :fur - FUR_IT = :"fur-it" - FY = :fy - FY_NL = :"fy-nl" - GA = :ga - GA_GB = :"ga-gb" - GA_IE = :"ga-ie" - GD = :gd - GD_GB = :"gd-gb" - GL = :gl - GL_ES = :"gl-es" - GN = :gn - GSW = :gsw - GSW_CH = :"gsw-ch" - GSW_FR = :"gsw-fr" - GSW_LI = :"gsw-li" - GU = :gu - GU_IN = :"gu-in" - GUZ = :guz - GUZ_KE = :"guz-ke" - GV = :gv - GV_IM = :"gv-im" - HA = :ha - HA_GH = :"ha-gh" - HA_NE = :"ha-ne" - HA_NG = :"ha-ng" - HAW = :haw - HAW_US = :"haw-us" - HE = :he - HE_IL = :"he-il" - HI = :hi - HI_IN = :"hi-in" - HMN = :hmn - HO = :ho - HR = :hr - HR_BA = :"hr-ba" - HR_HR = :"hr-hr" - HSB = :hsb - HSB_DE = :"hsb-de" - HT = :ht - HU = :hu - HU_HU = :"hu-hu" - HY = :hy - HY_AM = :"hy-am" - HZ = :hz - IA = :ia - IA_001 = :"ia-001" - ID = :id - ID_ID = :"id-id" - IE = :ie - IG = :ig - IG_NG = :"ig-ng" - II = :ii - II_CN = :"ii-cn" - IK = :ik - IO = :io - IS = :is - IS_IS = :"is-is" - IT = :it - IT_CH = :"it-ch" - IT_IT = :"it-it" - IT_SM = :"it-sm" - IT_VA = :"it-va" - IU = :iu - JA = :ja - JA_JP = :"ja-jp" - JGO = :jgo - JGO_CM = :"jgo-cm" - JMC = :jmc - JMC_TZ = :"jmc-tz" - JV = :jv - JV_ID = :"jv-id" - KA = :ka - KA_GE = :"ka-ge" - KAB = :kab - KAB_DZ = :"kab-dz" - KAM = :kam - KAM_KE = :"kam-ke" - KAR = :kar - KDE = :kde - KDE_TZ = :"kde-tz" - KEA = :kea - KEA_CV = :"kea-cv" - KG = :kg - KGP = :kgp - KGP_BR = :"kgp-br" - KH = :kh - KHQ = :khq - KHQ_ML = :"khq-ml" - KI = :ki - KI_KE = :"ki-ke" - KJ = :kj - KK = :kk - KK_KZ = :"kk-kz" - KKJ = :kkj - KKJ_CM = :"kkj-cm" - KL = :kl - KL_GL = :"kl-gl" - KLN = :kln - KLN_KE = :"kln-ke" - KM = :km - KM_KH = :"km-kh" - KN = :kn - KN_IN = :"kn-in" - KO = :ko - KO_KP = :"ko-kp" - KO_KR = :"ko-kr" - KOK = :kok - KOK_IN = :"kok-in" - KR = :kr - KS = :ks - KS_IN = :"ks-in" - KSB = :ksb - KSB_TZ = :"ksb-tz" - KSF = :ksf - KSF_CM = :"ksf-cm" - KSH = :ksh - KSH_DE = :"ksh-de" - KU = :ku - KU_TR = :"ku-tr" - KV = :kv - KW = :kw - KW_GB = :"kw-gb" - KY = :ky - KY_KG = :"ky-kg" - LA = :la - LAG = :lag - LAG_TZ = :"lag-tz" - LB = :lb - LB_LU = :"lb-lu" - LG = :lg - LG_UG = :"lg-ug" - LI = :li - LKT = :lkt - LKT_US = :"lkt-us" - LN = :ln - LN_AO = :"ln-ao" - LN_CD = :"ln-cd" - LN_CF = :"ln-cf" - LN_CG = :"ln-cg" - LO = :lo - LO_LA = :"lo-la" - LRC = :lrc - LRC_IQ = :"lrc-iq" - LRC_IR = :"lrc-ir" - LT = :lt - LT_LT = :"lt-lt" - LU = :lu - LU_CD = :"lu-cd" - LUO = :luo - LUO_KE = :"luo-ke" - LUY = :luy - LUY_KE = :"luy-ke" - LV = :lv - LV_LV = :"lv-lv" - MAI = :mai - MAI_IN = :"mai-in" - MAS = :mas - MAS_KE = :"mas-ke" - MAS_TZ = :"mas-tz" - MDF = :mdf - MDF_RU = :"mdf-ru" - MER = :mer - MER_KE = :"mer-ke" - MFE = :mfe - MFE_MU = :"mfe-mu" - MG = :mg - MG_MG = :"mg-mg" - MGH = :mgh - MGH_MZ = :"mgh-mz" - MGO = :mgo - MGO_CM = :"mgo-cm" - MH = :mh - MI = :mi - MI_NZ = :"mi-nz" - MK = :mk - MK_MK = :"mk-mk" - ML = :ml - ML_IN = :"ml-in" - MN = :mn - MN_MN = :"mn-mn" - MNI = :mni - MNI_IN = :"mni-in" - MR = :mr - MR_IN = :"mr-in" - MS = :ms - MS_BN = :"ms-bn" - MS_ID = :"ms-id" - MS_MY = :"ms-my" - MS_SG = :"ms-sg" - MT = :mt - MT_MT = :"mt-mt" - MUA = :mua - MUA_CM = :"mua-cm" - MY = :my - MY_MM = :"my-mm" - MZN = :mzn - MZN_IR = :"mzn-ir" - NA = :na - NAQ = :naq - NAQ_NA = :"naq-na" - NB = :nb - NB_NO = :"nb-no" - NB_SJ = :"nb-sj" - ND = :nd - ND_ZW = :"nd-zw" - NDS = :nds - NDS_DE = :"nds-de" - NDS_NL = :"nds-nl" - NE = :ne - NE_IN = :"ne-in" - NE_NP = :"ne-np" - NG = :ng - NL = :nl - NL_AW = :"nl-aw" - NL_BE = :"nl-be" - NL_BQ = :"nl-bq" - NL_CH = :"nl-ch" - NL_CW = :"nl-cw" - NL_LU = :"nl-lu" - NL_NL = :"nl-nl" - NL_SR = :"nl-sr" - NL_SX = :"nl-sx" - NMG = :nmg - NMG_CM = :"nmg-cm" - NN = :nn - NN_NO = :"nn-no" - NNH = :nnh - NNH_CM = :"nnh-cm" - NO = :no - NO_NO = :"no-no" - NR = :nr - NUS = :nus - NUS_SS = :"nus-ss" - NV = :nv - NY = :ny - NYN = :nyn - NYN_UG = :"nyn-ug" - OC = :oc - OC_ES = :"oc-es" - OC_FR = :"oc-fr" - OJ = :oj - OM = :om - OM_ET = :"om-et" - OM_KE = :"om-ke" - OR = :or - OR_IN = :"or-in" - OS = :os - OS_GE = :"os-ge" - OS_RU = :"os-ru" - PA = :pa - PA_IN = :"pa-in" - PA_PK = :"pa-pk" - PCM = :pcm - PCM_NG = :"pcm-ng" - PI = :pi - PIS = :pis - PIS_SB = :"pis-sb" - PL = :pl - PL_PL = :"pl-pl" - PRG = :prg - PRG_001 = :"prg-001" - PS = :ps - PS_AF = :"ps-af" - PS_PK = :"ps-pk" - PT = :pt - PT_AO = :"pt-ao" - PT_BR = :"pt-br" - PT_CH = :"pt-ch" - PT_CV = :"pt-cv" - PT_GQ = :"pt-gq" - PT_GW = :"pt-gw" - PT_LU = :"pt-lu" - PT_MO = :"pt-mo" - PT_MZ = :"pt-mz" - PT_PT = :"pt-pt" - PT_ST = :"pt-st" - PT_TL = :"pt-tl" - QU = :qu - QU_BO = :"qu-bo" - QU_EC = :"qu-ec" - QU_PE = :"qu-pe" - RAJ = :raj - RAJ_IN = :"raj-in" - RM = :rm - RM_CH = :"rm-ch" - RN = :rn - RN_BI = :"rn-bi" - RO = :ro - RO_MD = :"ro-md" - RO_RO = :"ro-ro" - ROF = :rof - ROF_TZ = :"rof-tz" - RU = :ru - RU_BY = :"ru-by" - RU_KG = :"ru-kg" - RU_KZ = :"ru-kz" - RU_MD = :"ru-md" - RU_RU = :"ru-ru" - RU_UA = :"ru-ua" - RW = :rw - RW_RW = :"rw-rw" - RWK = :rwk - RWK_TZ = :"rwk-tz" - SA = :sa - SA_IN = :"sa-in" - SAH = :sah - SAH_RU = :"sah-ru" - SAQ = :saq - SAQ_KE = :"saq-ke" - SAT = :sat - SAT_IN = :"sat-in" - SBP = :sbp - SBP_TZ = :"sbp-tz" - SC = :sc - SC_IT = :"sc-it" - SD = :sd - SD_IN = :"sd-in" - SD_PK = :"sd-pk" - SE = :se - SE_FI = :"se-fi" - SE_NO = :"se-no" - SE_SE = :"se-se" - SEH = :seh - SEH_MZ = :"seh-mz" - SES = :ses - SES_ML = :"ses-ml" - SG = :sg - SG_CF = :"sg-cf" - SHI = :shi - SHI_MA = :"shi-ma" - SI = :si - SI_LK = :"si-lk" - SK = :sk - SK_SK = :"sk-sk" - SL = :sl - SL_SI = :"sl-si" - SM = :sm - SMN = :smn - SMN_FI = :"smn-fi" - SMS = :sms - SMS_FI = :"sms-fi" - SN = :sn - SN_ZW = :"sn-zw" - SO = :so - SO_DJ = :"so-dj" - SO_ET = :"so-et" - SO_KE = :"so-ke" - SO_SO = :"so-so" - SQ = :sq - SQ_AL = :"sq-al" - SQ_MK = :"sq-mk" - SQ_XK = :"sq-xk" - SR = :sr - SR_BA = :"sr-ba" - SR_CS = :"sr-cs" - SR_ME = :"sr-me" - SR_RS = :"sr-rs" - SR_XK = :"sr-xk" - SS = :ss - ST = :st - SU = :su - SU_ID = :"su-id" - SV = :sv - SV_AX = :"sv-ax" - SV_FI = :"sv-fi" - SV_SE = :"sv-se" - SW = :sw - SW_CD = :"sw-cd" - SW_KE = :"sw-ke" - SW_TZ = :"sw-tz" - SW_UG = :"sw-ug" - SY = :sy - TA = :ta - TA_IN = :"ta-in" - TA_LK = :"ta-lk" - TA_MY = :"ta-my" - TA_SG = :"ta-sg" - TE = :te - TE_IN = :"te-in" - TEO = :teo - TEO_KE = :"teo-ke" - TEO_UG = :"teo-ug" - TG = :tg - TG_TJ = :"tg-tj" - TH = :th - TH_TH = :"th-th" - TI = :ti - TI_ER = :"ti-er" - TI_ET = :"ti-et" - TK = :tk - TK_TM = :"tk-tm" - TL = :tl - TN = :tn - TO = :to - TO_TO = :"to-to" - TOK = :tok - TOK_001 = :"tok-001" - TR = :tr - TR_CY = :"tr-cy" - TR_TR = :"tr-tr" - TS = :ts - TT = :tt - TT_RU = :"tt-ru" - TW = :tw - TWQ = :twq - TWQ_NE = :"twq-ne" - TY = :ty - TZM = :tzm - TZM_MA = :"tzm-ma" - UG = :ug - UG_CN = :"ug-cn" - UK = :uk - UK_UA = :"uk-ua" - UR = :ur - UR_IN = :"ur-in" - UR_PK = :"ur-pk" - UZ = :uz - UZ_AF = :"uz-af" - UZ_UZ = :"uz-uz" - VAI = :vai - VAI_LR = :"vai-lr" - VE = :ve - VI = :vi - VI_VN = :"vi-vn" - VO = :vo - VO_001 = :"vo-001" - VUN = :vun - VUN_TZ = :"vun-tz" - WA = :wa - WAE = :wae - WAE_CH = :"wae-ch" - WO = :wo - WO_SN = :"wo-sn" - XH = :xh - XH_ZA = :"xh-za" - XOG = :xog - XOG_UG = :"xog-ug" - YAV = :yav - YAV_CM = :"yav-cm" - YI = :yi - YI_001 = :"yi-001" - YO = :yo - YO_BJ = :"yo-bj" - YO_NG = :"yo-ng" - YRL = :yrl - YRL_BR = :"yrl-br" - YRL_CO = :"yrl-co" - YRL_VE = :"yrl-ve" - YUE = :yue - YUE_CN = :"yue-cn" - YUE_HK = :"yue-hk" - ZA = :za - ZGH = :zgh - ZGH_MA = :"zgh-ma" - ZH = :zh - ZH_CN = :"zh-cn" - ZH_HANS = :"zh-hans" - ZH_HANT = :"zh-hant" - ZH_HK = :"zh-hk" - ZH_MO = :"zh-mo" - ZH_SG = :"zh-sg" - ZH_TW = :"zh-tw" - ZU = :zu - ZU_ZA = :"zu-za" - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/cms/inbound_db_object_type.rb b/lib/hubspot_sdk/models/cms/inbound_db_object_type.rb index acc6a8b6..563f972b 100644 --- a/lib/hubspot_sdk/models/cms/inbound_db_object_type.rb +++ b/lib/hubspot_sdk/models/cms/inbound_db_object_type.rb @@ -210,6 +210,12 @@ class InboundDBObjectType < HubSpotSDK::Internal::Type::BaseModel # @return [Symbol, HubSpotSDK::Models::Cms::InboundDBObjectType::Status, nil] optional :status, enum: -> { HubSpotSDK::Cms::InboundDBObjectType::Status } + # @!attribute visibilities + # + # @return [Array, nil] + optional :visibilities, + -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::Cms::InboundDBObjectType::Visibility] } + # @!attribute visibility # # @return [Symbol, HubSpotSDK::Models::Cms::InboundDBObjectType::Visibility, nil] @@ -220,7 +226,7 @@ class InboundDBObjectType < HubSpotSDK::Internal::Type::BaseModel # @return [String, nil] optional :write_scope_name, String, api_name: :writeScopeName - # @!method initialize(id:, allows_sensitive_properties:, create_date_property_name:, default_search_property_names:, deleted:, fully_qualified_name:, has_custom_properties:, has_default_properties:, has_external_object_ids:, has_owners:, has_pipelines:, indexed_for_filters_and_reports:, last_modified_property_name:, meta_type:, meta_type_id:, name:, object_type_id:, object_type_id_string:, permissioning_type:, pipeline_property_name:, pipeline_stage_property_name:, required_properties:, restorable:, scope_mappings:, secondary_display_label_property_names:, access_scope_name: nil, created_at: nil, description: nil, integration_app_id: nil, janus_group: nil, owner_portal_id: nil, pipeline_close_date_property_name: nil, pipeline_time_to_close_property_name: nil, plural_form: nil, primary_display_label_property_name: nil, read_scope_name: nil, singular_form: nil, status: nil, visibility: nil, write_scope_name: nil) + # @!method initialize(id:, allows_sensitive_properties:, create_date_property_name:, default_search_property_names:, deleted:, fully_qualified_name:, has_custom_properties:, has_default_properties:, has_external_object_ids:, has_owners:, has_pipelines:, indexed_for_filters_and_reports:, last_modified_property_name:, meta_type:, meta_type_id:, name:, object_type_id:, object_type_id_string:, permissioning_type:, pipeline_property_name:, pipeline_stage_property_name:, required_properties:, restorable:, scope_mappings:, secondary_display_label_property_names:, access_scope_name: nil, created_at: nil, description: nil, integration_app_id: nil, janus_group: nil, owner_portal_id: nil, pipeline_close_date_property_name: nil, pipeline_time_to_close_property_name: nil, plural_form: nil, primary_display_label_property_name: nil, read_scope_name: nil, singular_form: nil, status: nil, visibilities: nil, visibility: nil, write_scope_name: nil) # @param id [Integer] # @param allows_sensitive_properties [Boolean] # @param create_date_property_name [String] @@ -259,6 +265,7 @@ class InboundDBObjectType < HubSpotSDK::Internal::Type::BaseModel # @param read_scope_name [String] # @param singular_form [String] # @param status [Symbol, HubSpotSDK::Models::Cms::InboundDBObjectType::Status] + # @param visibilities [Array] # @param visibility [Symbol, HubSpotSDK::Models::Cms::InboundDBObjectType::Visibility] # @param write_scope_name [String] @@ -306,14 +313,13 @@ module Status # @return [Array] end - # @see HubSpotSDK::Models::Cms::InboundDBObjectType#visibility module Visibility extend HubSpotSDK::Internal::Type::Enum CUSTOMER_FACING = :"Customer-facing" - CUSTOMER_FACING_PUBLIC_API = :"Customer-facing public API" - CUSTOMER_FACING_UI = :"Customer-facing UI" INTERNAL_ONLY = :"Internal only" + CUSTOMER_FACING_UI = :"Customer-facing UI" + CUSTOMER_FACING_PUBLIC_API = :"Customer-facing public API" # @!method self.values # @return [Array] diff --git a/lib/hubspot_sdk/models/cms/public_search_results.rb b/lib/hubspot_sdk/models/cms/public_search_results.rb deleted file mode 100644 index 3e2bb0a9..00000000 --- a/lib/hubspot_sdk/models/cms/public_search_results.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Cms - class PublicSearchResults < HubSpotSDK::Internal::Type::BaseModel - # @!attribute limit - # The number of results returned in a single response. - # - # @return [Integer] - required :limit, Integer - - # @!attribute offset - # The starting point for the next set of results in pagination. - # - # @return [Integer] - required :offset, Integer - - # @!attribute page - # The current page number in the paginated results. - # - # @return [Integer] - required :page, Integer - - # @!attribute results - # - # @return [Array] - required :results, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Cms::ContentSearchResult] } - - # @!attribute total - # The total number of results found for the search term. - # - # @return [Integer] - required :total, Integer - - # @!attribute search_term - # The term used in the search query. - # - # @return [String, nil] - optional :search_term, String, api_name: :searchTerm - - # @!method initialize(limit:, offset:, page:, results:, total:, search_term: nil) - # @param limit [Integer] The number of results returned in a single response. - # - # @param offset [Integer] The starting point for the next set of results in pagination. - # - # @param page [Integer] The current page number in the paginated results. - # - # @param results [Array] - # - # @param total [Integer] The total number of results found for the search term. - # - # @param search_term [String] The term used in the search query. - end - end - end -end diff --git a/lib/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rb b/lib/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rb new file mode 100644 index 00000000..ec068b24 --- /dev/null +++ b/lib/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module Cms + # @see HubSpotSDK::Resources::Cms::URLRedirects#create_url_mapping + class URLRedirectCreateURLMappingParams < HubSpotSDK::Models::Cms::URLMapping + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!method initialize(request_options: {}) + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rb b/lib/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rb new file mode 100644 index 00000000..33347abe --- /dev/null +++ b/lib/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module Cms + # @see HubSpotSDK::Resources::Cms::URLRedirects#delete_url_mapping + class URLRedirectDeleteURLMappingParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute id + # + # @return [Integer] + required :id, Integer + + # @!method initialize(id:, request_options: {}) + # @param id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rb b/lib/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rb new file mode 100644 index 00000000..c132ed0a --- /dev/null +++ b/lib/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module Cms + # @see HubSpotSDK::Resources::Cms::URLRedirects#get_url_mapping + class URLRedirectGetURLMappingParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute id + # + # @return [Integer] + required :id, Integer + + # @!method initialize(id:, request_options: {}) + # @param id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rb b/lib/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rb new file mode 100644 index 00000000..e8eced4c --- /dev/null +++ b/lib/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module Cms + # @see HubSpotSDK::Resources::Cms::URLRedirects#list_url_mappings + class URLRedirectListURLMappingsParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!method initialize(request_options: {}) + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/condition.rb b/lib/hubspot_sdk/models/condition.rb new file mode 100644 index 00000000..1e8fbb1a --- /dev/null +++ b/lib/hubspot_sdk/models/condition.rb @@ -0,0 +1,96 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class Condition < HubSpotSDK::Internal::Type::BaseModel + # @!attribute filter_type + # A string indicating the type of filter being applied. Valid value is + # 'CRM_OBJECT_PROPERTY'. + # + # @return [Symbol, HubSpotSDK::Models::Condition::FilterType] + required :filter_type, enum: -> { HubSpotSDK::Condition::FilterType }, api_name: :filterType + + # @!attribute operator + # A string specifying the operation to be performed in the condition. Valid values + # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', + # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. + # + # @return [Symbol, HubSpotSDK::Models::Condition::Operator] + required :operator, enum: -> { HubSpotSDK::Condition::Operator } + + # @!attribute property + # A string representing the specific property of the CRM object that the condition + # applies to. + # + # @return [String] + required :property, String + + # @!attribute value + # A string representing the value to be compared against the specified property + # when using single-value operators. + # + # @return [String, nil] + optional :value, String + + # @!attribute values + # An array of strings used to specify multiple values for comparison when using + # operators that support multiple values, such as 'IN' or 'NOT_IN'. + # + # @return [Array, nil] + optional :values, HubSpotSDK::Internal::Type::ArrayOf[String] + + # @!method initialize(filter_type:, operator:, property:, value: nil, values: nil) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::Condition} for more details. + # + # @param filter_type [Symbol, HubSpotSDK::Models::Condition::FilterType] A string indicating the type of filter being applied. Valid value is 'CRM_OBJECT + # + # @param operator [Symbol, HubSpotSDK::Models::Condition::Operator] A string specifying the operation to be performed in the condition. Valid values + # + # @param property [String] A string representing the specific property of the CRM object that the condition + # + # @param value [String] A string representing the value to be compared against the specified property wh + # + # @param values [Array] An array of strings used to specify multiple values for comparison when using op + + # A string indicating the type of filter being applied. Valid value is + # 'CRM_OBJECT_PROPERTY'. + # + # @see HubSpotSDK::Models::Condition#filter_type + module FilterType + extend HubSpotSDK::Internal::Type::Enum + + CRM_OBJECT_PROPERTY = :CRM_OBJECT_PROPERTY + + # @!method self.values + # @return [Array] + end + + # A string specifying the operation to be performed in the condition. Valid values + # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', + # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. + # + # @see HubSpotSDK::Models::Condition#operator + module Operator + extend HubSpotSDK::Internal::Type::Enum + + CONTAINS = :CONTAINS + ENDS_WITH = :ENDS_WITH + EQ = :EQ + GT = :GT + GTE = :GTE + IN = :IN + IS_EMPTY = :IS_EMPTY + IS_NOT_EMPTY = :IS_NOT_EMPTY + LT = :LT + LTE = :LTE + N_EQ = :N_EQ + NOT_IN = :NOT_IN + STARTS_WITH = :STARTS_WITH + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/hubspot_sdk/models/conversations/identification_token_generation_request.rb b/lib/hubspot_sdk/models/conversations/identification_token_generation_request.rb index 45ab3fa5..946cc455 100644 --- a/lib/hubspot_sdk/models/conversations/identification_token_generation_request.rb +++ b/lib/hubspot_sdk/models/conversations/identification_token_generation_request.rb @@ -10,6 +10,13 @@ class IdentificationTokenGenerationRequest < HubSpotSDK::Internal::Type::BaseMod # @return [String] required :email, String + # @!attribute hs_customer_agent_context + # + # @return [Hash{Symbol=>String}] + required :hs_customer_agent_context, + HubSpotSDK::Internal::Type::HashOf[String], + api_name: :hsCustomerAgentContext + # @!attribute first_name # The first name of the visitor that you wish to identify. This value will only be # set in HubSpot for new contacts and existing contacts where first name is @@ -26,13 +33,15 @@ class IdentificationTokenGenerationRequest < HubSpotSDK::Internal::Type::BaseMod # @return [String, nil] optional :last_name, String, api_name: :lastName - # @!method initialize(email:, first_name: nil, last_name: nil) + # @!method initialize(email:, hs_customer_agent_context:, first_name: nil, last_name: nil) # Some parameter documentations has been truncated, see # {HubSpotSDK::Models::Conversations::IdentificationTokenGenerationRequest} for # more details. # # @param email [String] The email of the visitor that you wish to identify # + # @param hs_customer_agent_context [Hash{Symbol=>String}] + # # @param first_name [String] The first name of the visitor that you wish to identify. This value will only be # # @param last_name [String] The last name of the visitor that you wish to identify. This value will only be diff --git a/lib/hubspot_sdk/models/conversations/pre_resolved_contact.rb b/lib/hubspot_sdk/models/conversations/pre_resolved_contact.rb index 1dd8e544..b28fe575 100644 --- a/lib/hubspot_sdk/models/conversations/pre_resolved_contact.rb +++ b/lib/hubspot_sdk/models/conversations/pre_resolved_contact.rb @@ -302,6 +302,7 @@ module ContactPropertiesLeadingToMatch HS_SOCIAL_TWITTER_CLICKS = :hs_social_twitter_clicks HS_SOURCE_OBJECT_ID = :hs_source_object_id HS_SOURCE_PORTAL_ID = :hs_source_portal_id + HS_SOURCED_CONTACT_ORIGIN = :hs_sourced_contact_origin HS_STATE_CODE = :hs_state_code HS_SUB_ROLE = :hs_sub_role HS_TESTPURGE = :hs_testpurge diff --git a/lib/hubspot_sdk/models/crm/filter.rb b/lib/hubspot_sdk/models/crm/crm_filter.rb similarity index 84% rename from lib/hubspot_sdk/models/crm/filter.rb rename to lib/hubspot_sdk/models/crm/crm_filter.rb index f8110c05..7b1d78a1 100644 --- a/lib/hubspot_sdk/models/crm/filter.rb +++ b/lib/hubspot_sdk/models/crm/crm_filter.rb @@ -3,12 +3,12 @@ module HubSpotSDK module Models module Crm - class Filter < HubSpotSDK::Internal::Type::BaseModel + class CrmFilter < HubSpotSDK::Internal::Type::BaseModel # @!attribute operator # The comparison operator used in the filter, such as "EQ" or "GT". # - # @return [Symbol, HubSpotSDK::Models::Crm::Filter::Operator] - required :operator, enum: -> { HubSpotSDK::Crm::Filter::Operator } + # @return [Symbol, HubSpotSDK::Models::Crm::CrmFilter::Operator] + required :operator, enum: -> { HubSpotSDK::Crm::CrmFilter::Operator } # @!attribute property_name # The name of the property to apply the filter to. @@ -39,7 +39,7 @@ class Filter < HubSpotSDK::Internal::Type::BaseModel # filter on, the operator to use (such as equals, greater than, or contains), and # the value(s) to compare against. # - # @param operator [Symbol, HubSpotSDK::Models::Crm::Filter::Operator] The comparison operator used in the filter, such as "EQ" or "GT". + # @param operator [Symbol, HubSpotSDK::Models::Crm::CrmFilter::Operator] The comparison operator used in the filter, such as "EQ" or "GT". # # @param property_name [String] The name of the property to apply the filter to. # @@ -51,7 +51,7 @@ class Filter < HubSpotSDK::Internal::Type::BaseModel # The comparison operator used in the filter, such as "EQ" or "GT". # - # @see HubSpotSDK::Models::Crm::Filter#operator + # @see HubSpotSDK::Models::Crm::CrmFilter#operator module Operator extend HubSpotSDK::Internal::Type::Enum diff --git a/lib/hubspot_sdk/models/crm/filter_group.rb b/lib/hubspot_sdk/models/crm/filter_group.rb index 668d7b34..4f9d41ae 100644 --- a/lib/hubspot_sdk/models/crm/filter_group.rb +++ b/lib/hubspot_sdk/models/crm/filter_group.rb @@ -6,11 +6,11 @@ module Crm class FilterGroup < HubSpotSDK::Internal::Type::BaseModel # @!attribute filters # - # @return [Array] - required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Crm::Filter] } + # @return [Array] + required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Crm::CrmFilter] } # @!method initialize(filters:) - # @param filters [Array] + # @param filters [Array] end end end diff --git a/lib/hubspot_sdk/models/crm/list_create_request.rb b/lib/hubspot_sdk/models/crm/list_create_request.rb index bed55653..8c68b5f7 100644 --- a/lib/hubspot_sdk/models/crm/list_create_request.rb +++ b/lib/hubspot_sdk/models/crm/list_create_request.rb @@ -33,7 +33,7 @@ class ListCreateRequest < HubSpotSDK::Internal::Type::BaseModel # @!attribute filter_branch # Filter branch object containing filtering criteria for the list # - # @return [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch, nil] + # @return [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch, nil] optional :filter_branch, union: -> { HubSpotSDK::Crm::ListCreateRequest::FilterBranch }, api_name: :filterBranch @@ -69,7 +69,7 @@ class ListCreateRequest < HubSpotSDK::Internal::Type::BaseModel # # @param custom_properties [Hash{Symbol=>String}] The list of custom properties to tie to the list. Custom property name is the ke # - # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Filter branch object containing filtering criteria for the list + # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Filter branch object containing filtering criteria for the list # # @param list_folder_id [Integer] The ID of the folder that the list should be created in. If left blank, then the # @@ -97,12 +97,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end end end diff --git a/lib/hubspot_sdk/models/crm/list_filter_update_request.rb b/lib/hubspot_sdk/models/crm/list_filter_update_request.rb index 3f60b70e..ffd09cd0 100644 --- a/lib/hubspot_sdk/models/crm/list_filter_update_request.rb +++ b/lib/hubspot_sdk/models/crm/list_filter_update_request.rb @@ -7,13 +7,13 @@ class ListFilterUpdateRequest < HubSpotSDK::Internal::Type::BaseModel # @!attribute filter_branch # Updated filtering criteria for the list # - # @return [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] + # @return [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] required :filter_branch, union: -> { HubSpotSDK::Crm::ListFilterUpdateRequest::FilterBranch }, api_name: :filterBranch # @!method initialize(filter_branch:) - # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Updated filtering criteria for the list + # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Updated filtering criteria for the list # Updated filtering criteria for the list # @@ -35,12 +35,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end end end diff --git a/lib/hubspot_sdk/models/crm/public_and_filter_branch.rb b/lib/hubspot_sdk/models/crm/public_and_filter_branch.rb index 078ed4f3..724d6128 100644 --- a/lib/hubspot_sdk/models/crm/public_and_filter_branch.rb +++ b/lib/hubspot_sdk/models/crm/public_and_filter_branch.rb @@ -6,7 +6,7 @@ module Crm class PublicAndFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filter_branches # - # @return [Array] + # @return [Array] required :filter_branches, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicAndFilterBranch::FilterBranch] @@ -29,18 +29,18 @@ class PublicAndFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filters # - # @return [Array] + # @return [Array] required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicAndFilterBranch::Filter] } # @!method initialize(filter_branches:, filter_branch_operator:, filter_branch_type:, filters:) - # @param filter_branches [Array] + # @param filter_branches [Array] # # @param filter_branch_operator [String] Filter branch operator (AND) # # @param filter_branch_type [Symbol, HubSpotSDK::Models::Crm::PublicAndFilterBranch::FilterBranchType] Type of filter branch (AND) # - # @param filters [Array] + # @param filters [Array] module FilterBranch extend HubSpotSDK::Internal::Type::Union @@ -59,12 +59,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end # Type of filter branch (AND) @@ -104,8 +102,6 @@ module Filter variant :COMMUNICATION_SUBSCRIPTION, -> { HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter } - variant :CAMPAIGN_INFLUENCED, -> { HubSpotSDK::Crm::PublicCampaignInfluencedFilter } - variant :SURVEY_MONKEY, -> { HubSpotSDK::Crm::PublicSurveyMonkeyFilter } variant :SURVEY_MONKEY_VALUE, -> { HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter } @@ -122,16 +118,12 @@ module Filter variant :IN_LIST, -> { HubSpotSDK::Crm::PublicInListFilter } - variant :NUM_ASSOCIATIONS, -> { HubSpotSDK::Crm::PublicNumAssociationsFilter } - variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilter } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter } - variant :CONSTANT, -> { HubSpotSDK::Crm::PublicConstantFilter } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] + # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] end end end diff --git a/lib/hubspot_sdk/models/crm/public_association_filter_branch.rb b/lib/hubspot_sdk/models/crm/public_association_filter_branch.rb index 1ab00f02..15a37abd 100644 --- a/lib/hubspot_sdk/models/crm/public_association_filter_branch.rb +++ b/lib/hubspot_sdk/models/crm/public_association_filter_branch.rb @@ -19,7 +19,7 @@ class PublicAssociationFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filter_branches # - # @return [Array] + # @return [Array] required :filter_branches, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicAssociationFilterBranch::FilterBranch] @@ -42,7 +42,7 @@ class PublicAssociationFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filters # - # @return [Array] + # @return [Array] required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicAssociationFilterBranch::Filter] } @@ -67,13 +67,13 @@ class PublicAssociationFilterBranch < HubSpotSDK::Internal::Type::BaseModel # # @param association_type_id [Integer] Type id of the association # - # @param filter_branches [Array] + # @param filter_branches [Array] # # @param filter_branch_operator [String] Filter branch operator (AND) # # @param filter_branch_type [Symbol, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch::FilterBranchType] Type of the filter branch (ASSOCIATION) # - # @param filters [Array] + # @param filters [Array] # # @param object_type_id [String] The ID representing the type of object associated with the filter branch. # @@ -96,12 +96,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end # Type of the filter branch (ASSOCIATION) @@ -141,8 +139,6 @@ module Filter variant :COMMUNICATION_SUBSCRIPTION, -> { HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter } - variant :CAMPAIGN_INFLUENCED, -> { HubSpotSDK::Crm::PublicCampaignInfluencedFilter } - variant :SURVEY_MONKEY, -> { HubSpotSDK::Crm::PublicSurveyMonkeyFilter } variant :SURVEY_MONKEY_VALUE, -> { HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter } @@ -159,16 +155,12 @@ module Filter variant :IN_LIST, -> { HubSpotSDK::Crm::PublicInListFilter } - variant :NUM_ASSOCIATIONS, -> { HubSpotSDK::Crm::PublicNumAssociationsFilter } - variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilter } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter } - variant :CONSTANT, -> { HubSpotSDK::Crm::PublicConstantFilter } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] + # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] end end end diff --git a/lib/hubspot_sdk/models/crm/public_campaign_influenced_filter.rb b/lib/hubspot_sdk/models/crm/public_campaign_influenced_filter.rb deleted file mode 100644 index 93e2dd05..00000000 --- a/lib/hubspot_sdk/models/crm/public_campaign_influenced_filter.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Crm - class PublicCampaignInfluencedFilter < HubSpotSDK::Internal::Type::BaseModel - # @!attribute campaign_id - # The ID of the campaign that influences the filter. - # - # @return [String] - required :campaign_id, String, api_name: :campaignId - - # @!attribute filter_type - # Indicates the type of filter (CAMPAIGN_INFLUENCED). - # - # @return [Symbol, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter::FilterType] - required :filter_type, - enum: -> { HubSpotSDK::Crm::PublicCampaignInfluencedFilter::FilterType }, - api_name: :filterType - - # @!method initialize(campaign_id:, filter_type:) - # @param campaign_id [String] The ID of the campaign that influences the filter. - # - # @param filter_type [Symbol, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter::FilterType] Indicates the type of filter (CAMPAIGN_INFLUENCED). - - # Indicates the type of filter (CAMPAIGN_INFLUENCED). - # - # @see HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter#filter_type - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - CAMPAIGN_INFLUENCED = :CAMPAIGN_INFLUENCED - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/crm/public_crm_search_request.rb b/lib/hubspot_sdk/models/crm/public_crm_search_request.rb index 702273b2..3bbb209d 100644 --- a/lib/hubspot_sdk/models/crm/public_crm_search_request.rb +++ b/lib/hubspot_sdk/models/crm/public_crm_search_request.rb @@ -13,8 +13,8 @@ class PublicCrmSearchRequest < HubSpotSDK::Internal::Type::BaseModel # @!attribute filters # - # @return [Array] - required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Crm::Filter] } + # @return [Array] + required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Crm::CrmFilter] } # @!attribute sorts # Defines the order in which the CRM records should be returned. @@ -31,7 +31,7 @@ class PublicCrmSearchRequest < HubSpotSDK::Internal::Type::BaseModel # @!method initialize(filter_groups:, filters:, sorts:, query: nil) # @param filter_groups [Array] # - # @param filters [Array] + # @param filters [Array] # # @param sorts [Array] Defines the order in which the CRM records should be returned. # diff --git a/lib/hubspot_sdk/models/crm/public_export_list_request.rb b/lib/hubspot_sdk/models/crm/public_export_list_request.rb index 30ef0b47..0fec2f1f 100644 --- a/lib/hubspot_sdk/models/crm/public_export_list_request.rb +++ b/lib/hubspot_sdk/models/crm/public_export_list_request.rb @@ -116,9 +116,9 @@ module ExportType module Format extend HubSpotSDK::Internal::Type::Enum + CSV = :CSV XLS = :XLS XLSX = :XLSX - CSV = :CSV # @!method self.values # @return [Array] @@ -128,23 +128,51 @@ module Format module Language extend HubSpotSDK::Internal::Type::Enum - EN = :EN + AF_ZA = :AF_ZA + AR_EG = :AR_EG + BG = :BG + BN = :BN + CA_ES = :CA_ES + CS = :CS + DA_DK = :DA_DK DE = :DE + EL_GR = :EL_GR + EN = :EN + EN_GB = :EN_GB ES = :ES + ES_MX = :ES_MX + ET_EE = :ET_EE + FI = :FI FR = :FR + FR_CA = :FR_CA + HE_IL = :HE_IL + HI_IN = :HI_IN + HR = :HR + HU = :HU + ID = :ID + IT = :IT JA = :JA + KO_KR = :KO_KR + LT_LT = :LT_LT + MS = :MS NL = :NL - PT_BR = :PT_BR - IT = :IT + NO = :NO PL = :PL + PT_BR = :PT_BR + PT_PT = :PT_PT + RO = :RO + RU = :RU + SK_SK = :SK_SK + SL = :SL SV = :SV - FI = :FI - ZH_TW = :ZH_TW - DA_DK = :DA_DK - NO = :NO - KO_KR = :KO_KR TH = :TH + TL = :TL + TR = :TR + UK = :UK + VI_VN = :VI_VN ZH_CN = :ZH_CN + ZH_HK = :ZH_HK + ZH_TW = :ZH_TW # @!method self.values # @return [Array] diff --git a/lib/hubspot_sdk/models/crm/public_export_view_request.rb b/lib/hubspot_sdk/models/crm/public_export_view_request.rb index 926f3e6e..8eb9dda2 100644 --- a/lib/hubspot_sdk/models/crm/public_export_view_request.rb +++ b/lib/hubspot_sdk/models/crm/public_export_view_request.rb @@ -118,9 +118,9 @@ module ExportType module Format extend HubSpotSDK::Internal::Type::Enum + CSV = :CSV XLS = :XLS XLSX = :XLSX - CSV = :CSV # @!method self.values # @return [Array] @@ -130,23 +130,51 @@ module Format module Language extend HubSpotSDK::Internal::Type::Enum - EN = :EN + AF_ZA = :AF_ZA + AR_EG = :AR_EG + BG = :BG + BN = :BN + CA_ES = :CA_ES + CS = :CS + DA_DK = :DA_DK DE = :DE + EL_GR = :EL_GR + EN = :EN + EN_GB = :EN_GB ES = :ES + ES_MX = :ES_MX + ET_EE = :ET_EE + FI = :FI FR = :FR + FR_CA = :FR_CA + HE_IL = :HE_IL + HI_IN = :HI_IN + HR = :HR + HU = :HU + ID = :ID + IT = :IT JA = :JA + KO_KR = :KO_KR + LT_LT = :LT_LT + MS = :MS NL = :NL - PT_BR = :PT_BR - IT = :IT + NO = :NO PL = :PL + PT_BR = :PT_BR + PT_PT = :PT_PT + RO = :RO + RU = :RU + SK_SK = :SK_SK + SL = :SL SV = :SV - FI = :FI - ZH_TW = :ZH_TW - DA_DK = :DA_DK - NO = :NO - KO_KR = :KO_KR TH = :TH + TL = :TL + TR = :TR + UK = :UK + VI_VN = :VI_VN ZH_CN = :ZH_CN + ZH_HK = :ZH_HK + ZH_TW = :ZH_TW # @!method self.values # @return [Array] diff --git a/lib/hubspot_sdk/models/crm/public_not_all_filter_branch.rb b/lib/hubspot_sdk/models/crm/public_not_all_filter_branch.rb index 27a315b4..d8486a52 100644 --- a/lib/hubspot_sdk/models/crm/public_not_all_filter_branch.rb +++ b/lib/hubspot_sdk/models/crm/public_not_all_filter_branch.rb @@ -6,7 +6,7 @@ module Crm class PublicNotAllFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filter_branches # - # @return [Array] + # @return [Array] required :filter_branches, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicNotAllFilterBranch::FilterBranch] @@ -29,18 +29,18 @@ class PublicNotAllFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filters # - # @return [Array] + # @return [Array] required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicNotAllFilterBranch::Filter] } # @!method initialize(filter_branches:, filter_branch_operator:, filter_branch_type:, filters:) - # @param filter_branches [Array] + # @param filter_branches [Array] # # @param filter_branch_operator [String] The operator used to combine filters within the branch (NOT_ALL). # # @param filter_branch_type [Symbol, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch::FilterBranchType] The type of the filter branch (NOT_ALL). # - # @param filters [Array] + # @param filters [Array] module FilterBranch extend HubSpotSDK::Internal::Type::Union @@ -59,12 +59,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end # The type of the filter branch (NOT_ALL). @@ -104,8 +102,6 @@ module Filter variant :COMMUNICATION_SUBSCRIPTION, -> { HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter } - variant :CAMPAIGN_INFLUENCED, -> { HubSpotSDK::Crm::PublicCampaignInfluencedFilter } - variant :SURVEY_MONKEY, -> { HubSpotSDK::Crm::PublicSurveyMonkeyFilter } variant :SURVEY_MONKEY_VALUE, -> { HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter } @@ -122,16 +118,12 @@ module Filter variant :IN_LIST, -> { HubSpotSDK::Crm::PublicInListFilter } - variant :NUM_ASSOCIATIONS, -> { HubSpotSDK::Crm::PublicNumAssociationsFilter } - variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilter } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter } - variant :CONSTANT, -> { HubSpotSDK::Crm::PublicConstantFilter } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] + # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] end end end diff --git a/lib/hubspot_sdk/models/crm/public_not_any_filter_branch.rb b/lib/hubspot_sdk/models/crm/public_not_any_filter_branch.rb index e453d65b..b0532b60 100644 --- a/lib/hubspot_sdk/models/crm/public_not_any_filter_branch.rb +++ b/lib/hubspot_sdk/models/crm/public_not_any_filter_branch.rb @@ -6,7 +6,7 @@ module Crm class PublicNotAnyFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filter_branches # - # @return [Array] + # @return [Array] required :filter_branches, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicNotAnyFilterBranch::FilterBranch] @@ -30,7 +30,7 @@ class PublicNotAnyFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filters # - # @return [Array] + # @return [Array] required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicNotAnyFilterBranch::Filter] } @@ -38,13 +38,13 @@ class PublicNotAnyFilterBranch < HubSpotSDK::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch} for more details. # - # @param filter_branches [Array] + # @param filter_branches [Array] # # @param filter_branch_operator [String] Specifies the logical operator used to combine filters within the branch (NOT_AN # # @param filter_branch_type [Symbol, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch::FilterBranchType] Indicates the type of filter branch (NOT_ANY). # - # @param filters [Array] + # @param filters [Array] module FilterBranch extend HubSpotSDK::Internal::Type::Union @@ -63,12 +63,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end # Indicates the type of filter branch (NOT_ANY). @@ -108,8 +106,6 @@ module Filter variant :COMMUNICATION_SUBSCRIPTION, -> { HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter } - variant :CAMPAIGN_INFLUENCED, -> { HubSpotSDK::Crm::PublicCampaignInfluencedFilter } - variant :SURVEY_MONKEY, -> { HubSpotSDK::Crm::PublicSurveyMonkeyFilter } variant :SURVEY_MONKEY_VALUE, -> { HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter } @@ -126,16 +122,12 @@ module Filter variant :IN_LIST, -> { HubSpotSDK::Crm::PublicInListFilter } - variant :NUM_ASSOCIATIONS, -> { HubSpotSDK::Crm::PublicNumAssociationsFilter } - variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilter } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter } - variant :CONSTANT, -> { HubSpotSDK::Crm::PublicConstantFilter } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] + # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] end end end diff --git a/lib/hubspot_sdk/models/crm/public_num_associations_filter.rb b/lib/hubspot_sdk/models/crm/public_num_associations_filter.rb deleted file mode 100644 index 190f99b2..00000000 --- a/lib/hubspot_sdk/models/crm/public_num_associations_filter.rb +++ /dev/null @@ -1,90 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Crm - class PublicNumAssociationsFilter < HubSpotSDK::Internal::Type::BaseModel - # @!attribute association_category - # Defines the category of the association (HUBSPOT_DEFINED, USER_DEFINED, - # INTEGRATOR_DEFINED, WORK). - # - # @return [String] - required :association_category, String, api_name: :associationCategory - - # @!attribute association_type_id - # The ID representing the type of association being filtered. - # - # @return [Integer] - required :association_type_id, Integer, api_name: :associationTypeId - - # @!attribute coalescing_refine_by - # Specifies the criteria for refining the association filter. - # - # @return [HubSpotSDK::Models::Crm::PublicNumOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicSetOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicRelativeComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicRelativeRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAllHistoryRefineBy, HubSpotSDK::Models::Crm::PublicTimePointOperation, HubSpotSDK::Models::Crm::PublicRangedTimeOperation] - required :coalescing_refine_by, - union: -> { HubSpotSDK::Crm::PublicNumAssociationsFilter::CoalescingRefineBy }, - api_name: :coalescingRefineBy - - # @!attribute filter_type - # Indicates the type of filter being applied (NUM_ASSOCIATIONS). - # - # @return [Symbol, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::FilterType] - required :filter_type, - enum: -> { HubSpotSDK::Crm::PublicNumAssociationsFilter::FilterType }, - api_name: :filterType - - # @!method initialize(association_category:, association_type_id:, coalescing_refine_by:, filter_type:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Crm::PublicNumAssociationsFilter} for more details. - # - # @param association_category [String] Defines the category of the association (HUBSPOT_DEFINED, USER_DEFINED, INTEGRAT - # - # @param association_type_id [Integer] The ID representing the type of association being filtered. - # - # @param coalescing_refine_by [HubSpotSDK::Models::Crm::PublicNumOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicSetOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicRelativeComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicRelativeRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAllHistoryRefineBy, HubSpotSDK::Models::Crm::PublicTimePointOperation, HubSpotSDK::Models::Crm::PublicRangedTimeOperation] Specifies the criteria for refining the association filter. - # - # @param filter_type [Symbol, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::FilterType] Indicates the type of filter being applied (NUM_ASSOCIATIONS). - - # Specifies the criteria for refining the association filter. - # - # @see HubSpotSDK::Models::Crm::PublicNumAssociationsFilter#coalescing_refine_by - module CoalescingRefineBy - extend HubSpotSDK::Internal::Type::Union - - variant -> { HubSpotSDK::Crm::PublicNumOccurrencesRefineBy } - - variant -> { HubSpotSDK::Crm::PublicSetOccurrencesRefineBy } - - variant -> { HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy } - - variant -> { HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy } - - variant -> { HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy } - - variant -> { HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy } - - variant -> { HubSpotSDK::Crm::PublicAllHistoryRefineBy } - - variant -> { HubSpotSDK::Crm::PublicTimePointOperation } - - variant -> { HubSpotSDK::Crm::PublicRangedTimeOperation } - - # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicNumOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicSetOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicRelativeComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicRelativeRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAllHistoryRefineBy, HubSpotSDK::Models::Crm::PublicTimePointOperation, HubSpotSDK::Models::Crm::PublicRangedTimeOperation)] - end - - # Indicates the type of filter being applied (NUM_ASSOCIATIONS). - # - # @see HubSpotSDK::Models::Crm::PublicNumAssociationsFilter#filter_type - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - NUM_ASSOCIATIONS = :NUM_ASSOCIATIONS - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/crm/public_object_list.rb b/lib/hubspot_sdk/models/crm/public_object_list.rb index bb694c38..4962528d 100644 --- a/lib/hubspot_sdk/models/crm/public_object_list.rb +++ b/lib/hubspot_sdk/models/crm/public_object_list.rb @@ -62,7 +62,7 @@ class PublicObjectList < HubSpotSDK::Internal::Type::BaseModel # Defines the filter criteria for the list, allowing for complex logical # operations and nested filter branches to determine list membership. # - # @return [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch, nil] + # @return [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch, nil] optional :filter_branch, union: -> { HubSpotSDK::Crm::PublicObjectList::FilterBranch }, api_name: :filterBranch @@ -125,7 +125,7 @@ class PublicObjectList < HubSpotSDK::Internal::Type::BaseModel # # @param deleted_at [Time] The time when the list was deleted. # - # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Defines the filter criteria for the list, allowing for complex logical operation + # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Defines the filter criteria for the list, allowing for complex logical operation # # @param filters_updated_at [Time] The time when the filters for this list were last updated. # @@ -160,12 +160,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end end end diff --git a/lib/hubspot_sdk/models/crm/public_or_filter_branch.rb b/lib/hubspot_sdk/models/crm/public_or_filter_branch.rb index 550a47a8..3e4690c8 100644 --- a/lib/hubspot_sdk/models/crm/public_or_filter_branch.rb +++ b/lib/hubspot_sdk/models/crm/public_or_filter_branch.rb @@ -6,7 +6,7 @@ module Crm class PublicOrFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filter_branches # - # @return [Array] + # @return [Array] required :filter_branches, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicOrFilterBranch::FilterBranch] @@ -29,18 +29,18 @@ class PublicOrFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filters # - # @return [Array] + # @return [Array] required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicOrFilterBranch::Filter] } # @!method initialize(filter_branches:, filter_branch_operator:, filter_branch_type:, filters:) - # @param filter_branches [Array] + # @param filter_branches [Array] # # @param filter_branch_operator [String] The logical operator used to combine the filters within the branch (OR). # # @param filter_branch_type [Symbol, HubSpotSDK::Models::Crm::PublicOrFilterBranch::FilterBranchType] The type of the filter branch (OR). # - # @param filters [Array] + # @param filters [Array] module FilterBranch extend HubSpotSDK::Internal::Type::Union @@ -59,12 +59,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end # The type of the filter branch (OR). @@ -104,8 +102,6 @@ module Filter variant :COMMUNICATION_SUBSCRIPTION, -> { HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter } - variant :CAMPAIGN_INFLUENCED, -> { HubSpotSDK::Crm::PublicCampaignInfluencedFilter } - variant :SURVEY_MONKEY, -> { HubSpotSDK::Crm::PublicSurveyMonkeyFilter } variant :SURVEY_MONKEY_VALUE, -> { HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter } @@ -122,16 +118,12 @@ module Filter variant :IN_LIST, -> { HubSpotSDK::Crm::PublicInListFilter } - variant :NUM_ASSOCIATIONS, -> { HubSpotSDK::Crm::PublicNumAssociationsFilter } - variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilter } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter } - variant :CONSTANT, -> { HubSpotSDK::Crm::PublicConstantFilter } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] + # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] end end end diff --git a/lib/hubspot_sdk/models/crm/public_property_association_filter_branch.rb b/lib/hubspot_sdk/models/crm/public_property_association_filter_branch.rb deleted file mode 100644 index d5308578..00000000 --- a/lib/hubspot_sdk/models/crm/public_property_association_filter_branch.rb +++ /dev/null @@ -1,168 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Crm - class PublicPropertyAssociationFilterBranch < HubSpotSDK::Internal::Type::BaseModel - # @!attribute filter_branches - # - # @return [Array] - required :filter_branches, - -> { - HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::FilterBranch] - }, - api_name: :filterBranches - - # @!attribute filter_branch_operator - # The logical operator used to combine filters within the branch. - # - # @return [String] - required :filter_branch_operator, String, api_name: :filterBranchOperator - - # @!attribute filter_branch_type - # The type of the filter branch (PROPERTY_ASSOCIATION). - # - # @return [Symbol, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::FilterBranchType] - required :filter_branch_type, - enum: -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::FilterBranchType }, - api_name: :filterBranchType - - # @!attribute filters - # - # @return [Array] - required :filters, - -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::Filter] } - - # @!attribute object_type_id - # The ID representing the type of object associated with the filter branch. - # - # @return [String] - required :object_type_id, String, api_name: :objectTypeId - - # @!attribute operator - # Defines the operation to be applied within the filter branch (IN_LIST, - # NOT_IN_LIST). - # - # @return [String] - required :operator, String - - # @!attribute property_with_object_id - # The property that is associated with the object ID in the filter branch. - # - # @return [String] - required :property_with_object_id, String, api_name: :propertyWithObjectId - - # @!method initialize(filter_branches:, filter_branch_operator:, filter_branch_type:, filters:, object_type_id:, operator:, property_with_object_id:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch} for more - # details. - # - # @param filter_branches [Array] - # - # @param filter_branch_operator [String] The logical operator used to combine filters within the branch. - # - # @param filter_branch_type [Symbol, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::FilterBranchType] The type of the filter branch (PROPERTY_ASSOCIATION). - # - # @param filters [Array] - # - # @param object_type_id [String] The ID representing the type of object associated with the filter branch. - # - # @param operator [String] Defines the operation to be applied within the filter branch (IN_LIST, NOT_IN_LI - # - # @param property_with_object_id [String] The property that is associated with the object ID in the filter branch. - - module FilterBranch - extend HubSpotSDK::Internal::Type::Union - - discriminator :filterBranchType - - variant :OR, -> { HubSpotSDK::Crm::PublicOrFilterBranch } - - variant :AND, -> { HubSpotSDK::Crm::PublicAndFilterBranch } - - variant :NOT_ALL, -> { HubSpotSDK::Crm::PublicNotAllFilterBranch } - - variant :NOT_ANY, -> { HubSpotSDK::Crm::PublicNotAnyFilterBranch } - - variant :RESTRICTED, -> { HubSpotSDK::Crm::PublicRestrictedFilterBranch } - - variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } - - # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] - end - - # The type of the filter branch (PROPERTY_ASSOCIATION). - # - # @see HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch#filter_branch_type - module FilterBranchType - extend HubSpotSDK::Internal::Type::Enum - - PROPERTY_ASSOCIATION = :PROPERTY_ASSOCIATION - - # @!method self.values - # @return [Array] - end - - module Filter - extend HubSpotSDK::Internal::Type::Union - - discriminator :filterType - - variant :PROPERTY, -> { HubSpotSDK::Crm::PublicPropertyFilter } - - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationInListFilter } - - variant :PAGE_VIEW, -> { HubSpotSDK::Crm::PublicPageViewAnalyticsFilter } - - variant :CTA, -> { HubSpotSDK::Crm::PublicCtaAnalyticsFilter } - - variant :EVENT, -> { HubSpotSDK::Crm::PublicEventAnalyticsFilter } - - variant :FORM_SUBMISSION, -> { HubSpotSDK::Crm::PublicFormSubmissionFilter } - - variant :FORM_SUBMISSION_ON_PAGE, -> { HubSpotSDK::Crm::PublicFormSubmissionOnPageFilter } - - variant :INTEGRATION_EVENT, -> { HubSpotSDK::Crm::PublicIntegrationEventFilter } - - variant :EMAIL_SUBSCRIPTION, -> { HubSpotSDK::Crm::PublicEmailSubscriptionFilter } - - variant :COMMUNICATION_SUBSCRIPTION, -> { HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter } - - variant :CAMPAIGN_INFLUENCED, -> { HubSpotSDK::Crm::PublicCampaignInfluencedFilter } - - variant :SURVEY_MONKEY, -> { HubSpotSDK::Crm::PublicSurveyMonkeyFilter } - - variant :SURVEY_MONKEY_VALUE, -> { HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter } - - variant :WEBINAR, -> { HubSpotSDK::Crm::PublicWebinarFilter } - - variant :EMAIL_EVENT, -> { HubSpotSDK::Crm::PublicEmailEventFilter } - - variant :PRIVACY, -> { HubSpotSDK::Crm::PublicPrivacyAnalyticsFilter } - - variant :ADS_SEARCH, -> { HubSpotSDK::Crm::PublicAdsSearchFilter } - - variant :ADS_TIME, -> { HubSpotSDK::Crm::PublicAdsTimeFilter } - - variant :IN_LIST, -> { HubSpotSDK::Crm::PublicInListFilter } - - variant :NUM_ASSOCIATIONS, -> { HubSpotSDK::Crm::PublicNumAssociationsFilter } - - variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilter } - - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter } - - variant :CONSTANT, -> { HubSpotSDK::Crm::PublicConstantFilter } - - # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/crm/public_property_association_in_list_filter.rb b/lib/hubspot_sdk/models/crm/public_property_association_in_list_filter.rb deleted file mode 100644 index c7b2b14e..00000000 --- a/lib/hubspot_sdk/models/crm/public_property_association_in_list_filter.rb +++ /dev/null @@ -1,107 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Crm - class PublicPropertyAssociationInListFilter < HubSpotSDK::Internal::Type::BaseModel - # @!attribute coalescing_refine_by - # Specifies the criteria for refining the filter by coalescing. - # - # @return [HubSpotSDK::Models::Crm::PublicNumOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicSetOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicRelativeComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicRelativeRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAllHistoryRefineBy, HubSpotSDK::Models::Crm::PublicTimePointOperation, HubSpotSDK::Models::Crm::PublicRangedTimeOperation] - required :coalescing_refine_by, - union: -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::CoalescingRefineBy }, - api_name: :coalescingRefineBy - - # @!attribute filter_type - # Indicates the type of filter being applied (PROPERTY_ASSOCIATION). - # - # @return [Symbol, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::FilterType] - required :filter_type, - enum: -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::FilterType }, - api_name: :filterType - - # @!attribute list_id - # The ID of the list used in the property association filter. - # - # @return [String] - required :list_id, String, api_name: :listId - - # @!attribute operator - # Defines the operation to be applied by the filter (IN_LIST, NOT_IN_LIST). - # - # @return [String] - required :operator, String - - # @!attribute property_with_object_id - # The property associated with the object ID in the filter. - # - # @return [String] - required :property_with_object_id, String, api_name: :propertyWithObjectId - - # @!attribute to_object_type_id - # The ID representing the type of object that the property association filter is - # targeting. - # - # @return [String, nil] - optional :to_object_type_id, String, api_name: :toObjectTypeId - - # @!method initialize(coalescing_refine_by:, filter_type:, list_id:, operator:, property_with_object_id:, to_object_type_id: nil) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter} for more - # details. - # - # @param coalescing_refine_by [HubSpotSDK::Models::Crm::PublicNumOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicSetOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicRelativeComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicRelativeRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAllHistoryRefineBy, HubSpotSDK::Models::Crm::PublicTimePointOperation, HubSpotSDK::Models::Crm::PublicRangedTimeOperation] Specifies the criteria for refining the filter by coalescing. - # - # @param filter_type [Symbol, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::FilterType] Indicates the type of filter being applied (PROPERTY_ASSOCIATION). - # - # @param list_id [String] The ID of the list used in the property association filter. - # - # @param operator [String] Defines the operation to be applied by the filter (IN_LIST, NOT_IN_LIST). - # - # @param property_with_object_id [String] The property associated with the object ID in the filter. - # - # @param to_object_type_id [String] The ID representing the type of object that the property association filter is t - - # Specifies the criteria for refining the filter by coalescing. - # - # @see HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter#coalescing_refine_by - module CoalescingRefineBy - extend HubSpotSDK::Internal::Type::Union - - variant -> { HubSpotSDK::Crm::PublicNumOccurrencesRefineBy } - - variant -> { HubSpotSDK::Crm::PublicSetOccurrencesRefineBy } - - variant -> { HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy } - - variant -> { HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy } - - variant -> { HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy } - - variant -> { HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy } - - variant -> { HubSpotSDK::Crm::PublicAllHistoryRefineBy } - - variant -> { HubSpotSDK::Crm::PublicTimePointOperation } - - variant -> { HubSpotSDK::Crm::PublicRangedTimeOperation } - - # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicNumOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicSetOccurrencesRefineBy, HubSpotSDK::Models::Crm::PublicRelativeComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicRelativeRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteComparativeTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAbsoluteRangedTimestampRefineBy, HubSpotSDK::Models::Crm::PublicAllHistoryRefineBy, HubSpotSDK::Models::Crm::PublicTimePointOperation, HubSpotSDK::Models::Crm::PublicRangedTimeOperation)] - end - - # Indicates the type of filter being applied (PROPERTY_ASSOCIATION). - # - # @see HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter#filter_type - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - PROPERTY_ASSOCIATION = :PROPERTY_ASSOCIATION - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/crm/public_restricted_filter_branch.rb b/lib/hubspot_sdk/models/crm/public_restricted_filter_branch.rb index f592a660..8eb75c49 100644 --- a/lib/hubspot_sdk/models/crm/public_restricted_filter_branch.rb +++ b/lib/hubspot_sdk/models/crm/public_restricted_filter_branch.rb @@ -6,7 +6,7 @@ module Crm class PublicRestrictedFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filter_branches # - # @return [Array] + # @return [Array] required :filter_branches, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicRestrictedFilterBranch::FilterBranch] @@ -30,7 +30,7 @@ class PublicRestrictedFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filters # - # @return [Array] + # @return [Array] required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicRestrictedFilterBranch::Filter] } @@ -38,13 +38,13 @@ class PublicRestrictedFilterBranch < HubSpotSDK::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch} for more details. # - # @param filter_branches [Array] + # @param filter_branches [Array] # # @param filter_branch_operator [String] The logical operator used to combine filters within the restricted filter branch # # @param filter_branch_type [Symbol, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch::FilterBranchType] Specifies the type of the filter branch (RESTRICTED). # - # @param filters [Array] + # @param filters [Array] module FilterBranch extend HubSpotSDK::Internal::Type::Union @@ -63,12 +63,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end # Specifies the type of the filter branch (RESTRICTED). @@ -108,8 +106,6 @@ module Filter variant :COMMUNICATION_SUBSCRIPTION, -> { HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter } - variant :CAMPAIGN_INFLUENCED, -> { HubSpotSDK::Crm::PublicCampaignInfluencedFilter } - variant :SURVEY_MONKEY, -> { HubSpotSDK::Crm::PublicSurveyMonkeyFilter } variant :SURVEY_MONKEY_VALUE, -> { HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter } @@ -126,16 +122,12 @@ module Filter variant :IN_LIST, -> { HubSpotSDK::Crm::PublicInListFilter } - variant :NUM_ASSOCIATIONS, -> { HubSpotSDK::Crm::PublicNumAssociationsFilter } - variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilter } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter } - variant :CONSTANT, -> { HubSpotSDK::Crm::PublicConstantFilter } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] + # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] end end end diff --git a/lib/hubspot_sdk/models/crm/public_unified_events_filter_branch.rb b/lib/hubspot_sdk/models/crm/public_unified_events_filter_branch.rb index cafd4ab2..09164211 100644 --- a/lib/hubspot_sdk/models/crm/public_unified_events_filter_branch.rb +++ b/lib/hubspot_sdk/models/crm/public_unified_events_filter_branch.rb @@ -12,7 +12,7 @@ class PublicUnifiedEventsFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filter_branches # - # @return [Array] + # @return [Array] required :filter_branches, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch::FilterBranch] @@ -35,7 +35,7 @@ class PublicUnifiedEventsFilterBranch < HubSpotSDK::Internal::Type::BaseModel # @!attribute filters # - # @return [Array] + # @return [Array] required :filters, -> { HubSpotSDK::Internal::Type::ArrayOf[union: HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch::Filter] } @@ -67,13 +67,13 @@ class PublicUnifiedEventsFilterBranch < HubSpotSDK::Internal::Type::BaseModel # # @param event_type_id [String] The identifier for the type of event associated with the filter branch. # - # @param filter_branches [Array] + # @param filter_branches [Array] # # @param filter_branch_operator [String] The logical operator used to combine filters within the branch (AND). # # @param filter_branch_type [Symbol, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch::FilterBranchType] The type of the filter branch (UNIFIED_EVENTS). # - # @param filters [Array] + # @param filters [Array] # # @param operator [Symbol, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch::Operator] Defines the operation to be applied within the filter branch (HAS_COMPLETED, HAS # @@ -98,12 +98,10 @@ module FilterBranch variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch } - variant :ASSOCIATION, -> { HubSpotSDK::Crm::PublicAssociationFilterBranch } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] + # @return [Array(HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch)] end # The type of the filter branch (UNIFIED_EVENTS). @@ -143,8 +141,6 @@ module Filter variant :COMMUNICATION_SUBSCRIPTION, -> { HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter } - variant :CAMPAIGN_INFLUENCED, -> { HubSpotSDK::Crm::PublicCampaignInfluencedFilter } - variant :SURVEY_MONKEY, -> { HubSpotSDK::Crm::PublicSurveyMonkeyFilter } variant :SURVEY_MONKEY_VALUE, -> { HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter } @@ -161,16 +157,12 @@ module Filter variant :IN_LIST, -> { HubSpotSDK::Crm::PublicInListFilter } - variant :NUM_ASSOCIATIONS, -> { HubSpotSDK::Crm::PublicNumAssociationsFilter } - variant :UNIFIED_EVENTS, -> { HubSpotSDK::Crm::PublicUnifiedEventsFilter } - variant :PROPERTY_ASSOCIATION, -> { HubSpotSDK::Crm::PublicPropertyAssociationInListFilter } - variant :CONSTANT, -> { HubSpotSDK::Crm::PublicConstantFilter } # @!method self.variants - # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicNumAssociationsFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] + # @return [Array(HubSpotSDK::Models::Crm::PublicPropertyFilter, HubSpotSDK::Models::Crm::PublicAssociationInListFilter, HubSpotSDK::Models::Crm::PublicPageViewAnalyticsFilter, HubSpotSDK::Models::Crm::PublicCtaAnalyticsFilter, HubSpotSDK::Models::Crm::PublicEventAnalyticsFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionFilter, HubSpotSDK::Models::Crm::PublicFormSubmissionOnPageFilter, HubSpotSDK::Models::Crm::PublicIntegrationEventFilter, HubSpotSDK::Models::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Models::Crm::PublicCommunicationSubscriptionFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Models::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Models::Crm::PublicWebinarFilter, HubSpotSDK::Models::Crm::PublicEmailEventFilter, HubSpotSDK::Models::Crm::PublicPrivacyAnalyticsFilter, HubSpotSDK::Models::Crm::PublicAdsSearchFilter, HubSpotSDK::Models::Crm::PublicAdsTimeFilter, HubSpotSDK::Models::Crm::PublicInListFilter, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilter, HubSpotSDK::Models::Crm::PublicConstantFilter)] end # Defines the operation to be applied within the filter branch (HAS_COMPLETED, diff --git a/lib/hubspot_sdk/models/crm_object_snapshot_batch_request.rb b/lib/hubspot_sdk/models/crm_object_snapshot_batch_request.rb new file mode 100644 index 00000000..756b0bff --- /dev/null +++ b/lib/hubspot_sdk/models/crm_object_snapshot_batch_request.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class CrmObjectSnapshotBatchRequest < HubSpotSDK::Internal::Type::BaseModel + # @!attribute snapshot_requests + # An array of CrmObjectSnapshotRequest objects, each representing a request to + # create a snapshot for a specific CRM object. This property is required. + # + # @return [Array] + required :snapshot_requests, + -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::CrmObjectSnapshotRequest] }, + api_name: :snapshotRequests + + # @!method initialize(snapshot_requests:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::CrmObjectSnapshotBatchRequest} for more details. + # + # @param snapshot_requests [Array] An array of CrmObjectSnapshotRequest objects, each representing a request to cre + end + end +end diff --git a/lib/hubspot_sdk/models/crm_object_snapshot_batch_response.rb b/lib/hubspot_sdk/models/crm_object_snapshot_batch_response.rb new file mode 100644 index 00000000..acd31793 --- /dev/null +++ b/lib/hubspot_sdk/models/crm_object_snapshot_batch_response.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class CrmObjectSnapshotBatchResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute snapshot_responses + # An array of CrmObjectSnapshotResponse objects, each representing the result of a + # snapshot operation for a specific CRM object. This property is required. + # + # @return [Array] + required :snapshot_responses, + -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::CrmObjectSnapshotResponse] }, + api_name: :snapshotResponses + + # @!method initialize(snapshot_responses:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::CrmObjectSnapshotBatchResponse} for more details. + # + # @param snapshot_responses [Array] An array of CrmObjectSnapshotResponse objects, each representing the result of a + end + end +end diff --git a/lib/hubspot_sdk/models/crm_object_snapshot_request.rb b/lib/hubspot_sdk/models/crm_object_snapshot_request.rb new file mode 100644 index 00000000..02cbc672 --- /dev/null +++ b/lib/hubspot_sdk/models/crm_object_snapshot_request.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class CrmObjectSnapshotRequest < HubSpotSDK::Internal::Type::BaseModel + # @!attribute object_id_ + # An integer representing the unique identifier of the CRM object for which the + # snapshot is requested. + # + # @return [Integer] + required :object_id_, Integer, api_name: :objectId + + # @!attribute object_type_id + # A string representing the type identifier of the CRM object, specifying what + # kind of object it is within HubSpot. + # + # @return [String] + required :object_type_id, String, api_name: :objectTypeId + + # @!attribute portal_id + # An integer representing the unique identifier of the HubSpot account (portal) + # where the CRM object resides. + # + # @return [Integer] + required :portal_id, Integer, api_name: :portalId + + # @!attribute properties + # An array of strings, each representing a property of the CRM object that should + # be included in the snapshot. + # + # @return [Array] + required :properties, HubSpotSDK::Internal::Type::ArrayOf[String] + + # @!method initialize(object_id_:, object_type_id:, portal_id:, properties:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::CrmObjectSnapshotRequest} for more details. + # + # @param object_id_ [Integer] An integer representing the unique identifier of the CRM object for which the sn + # + # @param object_type_id [String] A string representing the type identifier of the CRM object, specifying what kin + # + # @param portal_id [Integer] An integer representing the unique identifier of the HubSpot account (portal) wh + # + # @param properties [Array] An array of strings, each representing a property of the CRM object that should + end + end +end diff --git a/lib/hubspot_sdk/models/crm_object_snapshot_response.rb b/lib/hubspot_sdk/models/crm_object_snapshot_response.rb new file mode 100644 index 00000000..be11553b --- /dev/null +++ b/lib/hubspot_sdk/models/crm_object_snapshot_response.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class CrmObjectSnapshotResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute object_id_ + # An integer representing the unique identifier of the CRM object for which the + # snapshot is taken. + # + # @return [Integer] + required :object_id_, Integer, api_name: :objectId + + # @!attribute object_type_id + # A string indicating the type of the CRM object, such as contact, company, or + # deal. + # + # @return [String] + required :object_type_id, String, api_name: :objectTypeId + + # @!attribute portal_id + # An integer representing the unique identifier of the HubSpot portal associated + # with the CRM object. + # + # @return [Integer] + required :portal_id, Integer, api_name: :portalId + + # @!attribute snapshot_status_id + # A UUID string representing the status identifier of the snapshot request, + # indicating the current state of the snapshot process. + # + # @return [String] + required :snapshot_status_id, String, api_name: :snapshotStatusId + + # @!method initialize(object_id_:, object_type_id:, portal_id:, snapshot_status_id:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::CrmObjectSnapshotResponse} for more details. + # + # @param object_id_ [Integer] An integer representing the unique identifier of the CRM object for which the sn + # + # @param object_type_id [String] A string indicating the type of the CRM object, such as contact, company, or dea + # + # @param portal_id [Integer] An integer representing the unique identifier of the HubSpot portal associated w + # + # @param snapshot_status_id [String] A UUID string representing the status identifier of the snapshot request, indica + end + end +end diff --git a/lib/hubspot_sdk/models/filter.rb b/lib/hubspot_sdk/models/filter.rb new file mode 100644 index 00000000..e3c4f42d --- /dev/null +++ b/lib/hubspot_sdk/models/filter.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class Filter < HubSpotSDK::Internal::Type::BaseModel + # @!attribute conditions + # An array of conditions that define the criteria for the filter. Each condition + # specifies a property, an operator, and optionally a value or values. + # + # @return [Array] + required :conditions, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Condition] } + + # @!method initialize(conditions:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::Filter} for more details. + # + # Defines a single condition for searching CRM objects, specifying the property to + # filter on, the operator to use (such as equals, greater than, or contains), and + # the value(s) to compare against. + # + # @param conditions [Array] An array of conditions that define the criteria for the filter. Each condition s + end + end +end diff --git a/lib/hubspot_sdk/models/filter_create_request.rb b/lib/hubspot_sdk/models/filter_create_request.rb new file mode 100644 index 00000000..87b8adee --- /dev/null +++ b/lib/hubspot_sdk/models/filter_create_request.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class FilterCreateRequest < HubSpotSDK::Internal::Type::BaseModel + # @!attribute filter + # Defines a single condition for searching CRM objects, specifying the property to + # filter on, the operator to use (such as equals, greater than, or contains), and + # the value(s) to compare against. + # + # @return [HubSpotSDK::Models::Filter] + required :filter, -> { HubSpotSDK::Filter } + + # @!attribute subscription_id + # The unique identifier of the subscription to which the filter will be applied. + # It is an integer formatted as int64. + # + # @return [Integer] + required :subscription_id, Integer, api_name: :subscriptionId + + # @!method initialize(filter:, subscription_id:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::FilterCreateRequest} for more details. + # + # @param filter [HubSpotSDK::Models::Filter] Defines a single condition for searching CRM objects, specifying the property to + # + # @param subscription_id [Integer] The unique identifier of the subscription to which the filter will be applied. I + end + end +end diff --git a/lib/hubspot_sdk/models/filter_create_response.rb b/lib/hubspot_sdk/models/filter_create_response.rb new file mode 100644 index 00000000..7fc50132 --- /dev/null +++ b/lib/hubspot_sdk/models/filter_create_response.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class FilterCreateResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute filter_id + # The unique identifier for the created filter. It is an integer formatted as + # int64. + # + # @return [Integer] + required :filter_id, Integer, api_name: :filterId + + # @!method initialize(filter_id:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::FilterCreateResponse} for more details. + # + # @param filter_id [Integer] The unique identifier for the created filter. It is an integer formatted as int6 + end + end +end diff --git a/lib/hubspot_sdk/models/filter_response.rb b/lib/hubspot_sdk/models/filter_response.rb new file mode 100644 index 00000000..3a334466 --- /dev/null +++ b/lib/hubspot_sdk/models/filter_response.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class FilterResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute id + # The unique identifier for the filter. It is an integer in int64 format. + # + # @return [Integer] + required :id, Integer + + # @!attribute created_at + # A Unix timestamp in milliseconds indicating when the filter was created. + # + # @return [Integer] + required :created_at, Integer, api_name: :createdAt + + # @!attribute filter + # Defines a single condition for searching CRM objects, specifying the property to + # filter on, the operator to use (such as equals, greater than, or contains), and + # the value(s) to compare against. + # + # @return [HubSpotSDK::Models::Filter] + required :filter, -> { HubSpotSDK::Filter } + + # @!method initialize(id:, created_at:, filter:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::FilterResponse} for more details. + # + # @param id [Integer] The unique identifier for the filter. It is an integer in int64 format. + # + # @param created_at [Integer] A Unix timestamp in milliseconds indicating when the filter was created. + # + # @param filter [HubSpotSDK::Models::Filter] Defines a single condition for searching CRM objects, specifying the property to + end + end +end diff --git a/lib/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rb b/lib/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rb new file mode 100644 index 00000000..c6e52dba --- /dev/null +++ b/lib/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rb @@ -0,0 +1,67 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class GdprPrivacyDeletionSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + # @!attribute actions + # + # @return [Array] + required :actions, + -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action] } + + # @!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::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType] + required :subscription_type, + enum: -> { HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType }, + api_name: :subscriptionType + + # @!method initialize(actions:, object_type_id:, portal_id:, subscription_type:) + # @param actions [Array] + # @param object_type_id [String] + # @param portal_id [Integer] + # @param subscription_type [Symbol, HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::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] + end + + # @see HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest#subscription_type + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + GDPR_PRIVACY_DELETION = :GDPR_PRIVACY_DELETION + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/hubspot_sdk/models/journal_fetch_response.rb b/lib/hubspot_sdk/models/journal_fetch_response.rb new file mode 100644 index 00000000..712c7c83 --- /dev/null +++ b/lib/hubspot_sdk/models/journal_fetch_response.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class JournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute current_offset + # The unique identifier for the current offset of the journal entry, formatted as + # a UUID. + # + # @return [String] + required :current_offset, String, api_name: :currentOffset + + # @!attribute expires_at + # The date and time when the URL will expire, in ISO 8601 format. + # + # @return [Time] + required :expires_at, Time, api_name: :expiresAt + + # @!attribute url + # The URL where the journal entry can be accessed. It is a string. + # + # @return [String] + required :url, String + + # @!method initialize(current_offset:, expires_at:, url:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::JournalFetchResponse} for more details. + # + # @param current_offset [String] The unique identifier for the current offset of the journal entry, formatted as + # + # @param expires_at [Time] The date and time when the URL will expire, in ISO 8601 format. + # + # @param url [String] The URL where the journal entry can be accessed. It is a string. + end + end +end diff --git a/lib/hubspot_sdk/models/list_membership_subscription_upsert_request.rb b/lib/hubspot_sdk/models/list_membership_subscription_upsert_request.rb new file mode 100644 index 00000000..7c55de58 --- /dev/null +++ b/lib/hubspot_sdk/models/list_membership_subscription_upsert_request.rb @@ -0,0 +1,73 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class ListMembershipSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + # @!attribute actions + # + # @return [Array] + required :actions, + -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action] } + + # @!attribute list_ids + # + # @return [Array] + required :list_ids, HubSpotSDK::Internal::Type::ArrayOf[Integer], api_name: :listIds + + # @!attribute object_ids + # + # @return [Array] + required :object_ids, HubSpotSDK::Internal::Type::ArrayOf[Integer], api_name: :objectIds + + # @!attribute portal_id + # + # @return [Integer] + required :portal_id, Integer, api_name: :portalId + + # @!attribute subscription_type + # + # @return [Symbol, HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::SubscriptionType] + required :subscription_type, + enum: -> { HubSpotSDK::ListMembershipSubscriptionUpsertRequest::SubscriptionType }, + api_name: :subscriptionType + + # @!method initialize(actions:, list_ids:, object_ids:, portal_id:, subscription_type:) + # @param actions [Array] + # @param list_ids [Array] + # @param object_ids [Array] + # @param portal_id [Integer] + # @param subscription_type [Symbol, HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::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] + end + + # @see HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest#subscription_type + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + LIST_MEMBERSHIP = :LIST_MEMBERSHIP + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/hubspot_sdk/models/object_subscription_upsert_request.rb b/lib/hubspot_sdk/models/object_subscription_upsert_request.rb new file mode 100644 index 00000000..1a272403 --- /dev/null +++ b/lib/hubspot_sdk/models/object_subscription_upsert_request.rb @@ -0,0 +1,79 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class ObjectSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + # @!attribute actions + # + # @return [Array] + required :actions, + -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::ObjectSubscriptionUpsertRequest::Action] } + + # @!attribute object_ids + # + # @return [Array] + 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 properties + # + # @return [Array] + required :properties, HubSpotSDK::Internal::Type::ArrayOf[String] + + # @!attribute subscription_type + # + # @return [Symbol, HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::SubscriptionType] + required :subscription_type, + enum: -> { HubSpotSDK::ObjectSubscriptionUpsertRequest::SubscriptionType }, + api_name: :subscriptionType + + # @!method initialize(actions:, object_ids:, object_type_id:, portal_id:, properties:, subscription_type:) + # @param actions [Array] + # @param object_ids [Array] + # @param object_type_id [String] + # @param portal_id [Integer] + # @param properties [Array] + # @param subscription_type [Symbol, HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::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] + end + + # @see HubSpotSDK::Models::ObjectSubscriptionUpsertRequest#subscription_type + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + OBJECT = :OBJECT + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/hubspot_sdk/models/property_value.rb b/lib/hubspot_sdk/models/property_value.rb index aa57d134..b4456660 100644 --- a/lib/hubspot_sdk/models/property_value.rb +++ b/lib/hubspot_sdk/models/property_value.rb @@ -211,6 +211,7 @@ module Source BIDEN = :BIDEN BILLING = :BILLING BOT = :BOT + BREEZE_AGENT = :BREEZE_AGENT CALCULATED = :CALCULATED CENTRAL_EXCHANGE_RATES = :CENTRAL_EXCHANGE_RATES CHATSPOT = :CHATSPOT @@ -235,6 +236,7 @@ module Source DEALS = :DEALS DEFAULT = :DEFAULT DELETE_OBJECTS = :DELETE_OBJECTS + DI_WRITE_TO_CRM = :DI_WRITE_TO_CRM EMAIL = :EMAIL EMAIL_INBOX_IMPORT = :EMAIL_INBOX_IMPORT EMAIL_INTEGRATION = :EMAIL_INTEGRATION diff --git a/lib/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rb b/lib/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rb index 7aae0d4e..1b843176 100644 --- a/lib/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rb +++ b/lib/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rb @@ -189,6 +189,7 @@ module HsEngagementSource BIDEN = :BIDEN BILLING = :BILLING BOT = :BOT + BREEZE_AGENT = :BREEZE_AGENT CALCULATED = :CALCULATED CENTRAL_EXCHANGE_RATES = :CENTRAL_EXCHANGE_RATES CHATSPOT = :CHATSPOT @@ -213,6 +214,7 @@ module HsEngagementSource DEALS = :DEALS DEFAULT = :DEFAULT DELETE_OBJECTS = :DELETE_OBJECTS + DI_WRITE_TO_CRM = :DI_WRITE_TO_CRM EMAIL = :EMAIL EMAIL_INBOX_IMPORT = :EMAIL_INBOX_IMPORT EMAIL_INTEGRATION = :EMAIL_INTEGRATION diff --git a/lib/hubspot_sdk/models/snapshot_status_response.rb b/lib/hubspot_sdk/models/snapshot_status_response.rb new file mode 100644 index 00000000..960841aa --- /dev/null +++ b/lib/hubspot_sdk/models/snapshot_status_response.rb @@ -0,0 +1,97 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + class SnapshotStatusResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute id + # The unique identifier for the snapshot operation, represented as a UUID. + # + # @return [String] + required :id, String + + # @!attribute initiated_at + # The timestamp indicating when the snapshot operation was initiated, represented + # as a Unix timestamp in milliseconds. + # + # @return [Integer] + required :initiated_at, Integer, api_name: :initiatedAt + + # @!attribute status + # The current status of the snapshot. Valid values include 'PENDING', + # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. + # + # @return [Symbol, HubSpotSDK::Models::SnapshotStatusResponse::Status] + required :status, enum: -> { HubSpotSDK::SnapshotStatusResponse::Status } + + # @!attribute completed_at + # The timestamp indicating when the snapshot operation was completed, represented + # as a Unix timestamp in milliseconds. + # + # @return [Integer, nil] + optional :completed_at, Integer, api_name: :completedAt + + # @!attribute error_code + # A code representing the error that occurred, if any. Possible values are + # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. + # + # @return [Symbol, HubSpotSDK::Models::SnapshotStatusResponse::ErrorCode, nil] + optional :error_code, enum: -> { HubSpotSDK::SnapshotStatusResponse::ErrorCode }, api_name: :errorCode + + # @!attribute message + # A descriptive message providing additional information about the snapshot + # operation or error. + # + # @return [String, nil] + optional :message, String + + # @!method initialize(id:, initiated_at:, status:, completed_at: nil, error_code: nil, message: nil) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::SnapshotStatusResponse} for more details. + # + # @param id [String] The unique identifier for the snapshot operation, represented as a UUID. + # + # @param initiated_at [Integer] The timestamp indicating when the snapshot operation was initiated, represented + # + # @param status [Symbol, HubSpotSDK::Models::SnapshotStatusResponse::Status] The current status of the snapshot. Valid values include 'PENDING', 'IN_PROGRESS + # + # @param completed_at [Integer] The timestamp indicating when the snapshot operation was completed, represented + # + # @param error_code [Symbol, HubSpotSDK::Models::SnapshotStatusResponse::ErrorCode] A code representing the error that occurred, if any. Possible values are 'TIMEOU + # + # @param message [String] A descriptive message providing additional information about the snapshot operat + + # The current status of the snapshot. Valid values include 'PENDING', + # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. + # + # @see HubSpotSDK::Models::SnapshotStatusResponse#status + module Status + extend HubSpotSDK::Internal::Type::Enum + + COMPLETED = :COMPLETED + EXPIRED = :EXPIRED + FAILED = :FAILED + IN_PROGRESS = :IN_PROGRESS + PENDING = :PENDING + + # @!method self.values + # @return [Array] + end + + # A code representing the error that occurred, if any. Possible values are + # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. + # + # @see HubSpotSDK::Models::SnapshotStatusResponse#error_code + module ErrorCode + extend HubSpotSDK::Internal::Type::Enum + + INTERNAL_ERROR = :INTERNAL_ERROR + PERMISSION_DENIED = :PERMISSION_DENIED + TIMEOUT = :TIMEOUT + VALIDATION_ERROR = :VALIDATION_ERROR + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/hubspot_sdk/models/subscription_upsert_request.rb b/lib/hubspot_sdk/models/subscription_upsert_request.rb new file mode 100644 index 00000000..32a7692f --- /dev/null +++ b/lib/hubspot_sdk/models/subscription_upsert_request.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module SubscriptionUpsertRequest + extend HubSpotSDK::Internal::Type::Union + + variant -> { HubSpotSDK::ObjectSubscriptionUpsertRequest } + + variant -> { HubSpotSDK::AssociationSubscriptionUpsertRequest } + + variant -> { HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest } + + variant -> { HubSpotSDK::ListMembershipSubscriptionUpsertRequest } + + variant -> { HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest } + + # @!method self.variants + # @return [Array(HubSpotSDK::Models::ObjectSubscriptionUpsertRequest, HubSpotSDK::Models::AssociationSubscriptionUpsertRequest, HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest, HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest, HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest)] + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks/action_override_request.rb b/lib/hubspot_sdk/models/webhooks/action_override_request.rb deleted file mode 100644 index 9f75d06a..00000000 --- a/lib/hubspot_sdk/models/webhooks/action_override_request.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - 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, 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, 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, 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, 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::Webhooks::ActionOverrideRequest} for more details. - # - # @param associated_object_type_ids [Array] An array of strings, each representing an associated object type ID relevant to - # - # @param list_ids [Array] An array of integers representing list IDs that are associated with the action o - # - # @param object_ids [Array] An array of integers, each representing an object ID for which the action overri - # - # @param properties [Array] An array of strings representing the properties to be overridden in the action. - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rb b/lib/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rb deleted file mode 100644 index 1d3b1d0c..00000000 --- a/lib/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class AppLifecycleEventSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - # @!attribute event_type_id - # - # @return [String] - required :event_type_id, String, api_name: :eventTypeId - - # @!attribute properties - # - # @return [Array] - required :properties, HubSpotSDK::Internal::Type::ArrayOf[String] - - # @!attribute subscription_type - # - # @return [Symbol, HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType] - required :subscription_type, - enum: -> { - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType - }, - api_name: :subscriptionType - - # @!method initialize(event_type_id:, properties:, subscription_type:) - # @param event_type_id [String] - # @param properties [Array] - # @param subscription_type [Symbol, HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType] - - # @see HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest#subscription_type - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT = :OBJECT - ASSOCIATION = :ASSOCIATION - EVENT = :EVENT - APP_LIFECYCLE_EVENT = :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP = :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION = :GDPR_PRIVACY_DELETION - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rb b/lib/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rb deleted file mode 100644 index 29a59b1d..00000000 --- a/lib/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class AssociationSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - # @!attribute actions - # - # @return [Array] - required :actions, - -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action] } - - # @!attribute associated_object_type_ids - # - # @return [Array] - required :associated_object_type_ids, - HubSpotSDK::Internal::Type::ArrayOf[String], - api_name: :associatedObjectTypeIds - - # @!attribute object_ids - # - # @return [Array] - 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::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType] - required :subscription_type, - enum: -> { HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType }, - api_name: :subscriptionType - - # @!method initialize(actions:, associated_object_type_ids:, object_ids:, object_type_id:, portal_id:, subscription_type:) - # @param actions [Array] - # @param associated_object_type_ids [Array] - # @param object_ids [Array] - # @param object_type_id [String] - # @param portal_id [Integer] - # @param subscription_type [Symbol, HubSpotSDK::Models::Webhooks::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] - end - - # @see HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest#subscription_type - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT = :OBJECT - ASSOCIATION = :ASSOCIATION - EVENT = :EVENT - APP_LIFECYCLE_EVENT = :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP = :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION = :GDPR_PRIVACY_DELETION - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rb b/lib/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rb deleted file mode 100644 index a801e63f..00000000 --- a/lib/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rb +++ /dev/null @@ -1,81 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - # @see HubSpotSDK::Resources::Webhooks#get_earliest_journal_batch - class BatchResponseJournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel - # @!attribute completed_at - # The date and time when the batch operation was completed, in ISO 8601 format. - # - # @return [Time] - required :completed_at, Time, api_name: :completedAt - - # @!attribute results - # An array of results from the batch operation, each represented as a - # JournalFetchResponse object. - # - # @return [Array] - required :results, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse] } - - # @!attribute started_at - # The date and time when the batch operation started, in ISO 8601 format. - # - # @return [Time] - required :started_at, Time, api_name: :startedAt - - # @!attribute status - # The current status of the batch operation. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - # - # @return [Symbol, HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse::Status] - required :status, enum: -> { HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status } - - # @!attribute links - # A map of link names to associated URIs related to the batch operation. - # - # @return [Hash{Symbol=>String}, nil] - optional :links, HubSpotSDK::Internal::Type::HashOf[String] - - # @!attribute requested_at - # The date and time when the batch operation was requested, in ISO 8601 format. - # - # @return [Time, nil] - optional :requested_at, Time, api_name: :requestedAt - - # @!method initialize(completed_at:, results:, started_at:, status:, links: nil, requested_at: nil) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse} for more - # details. - # - # @param completed_at [Time] The date and time when the batch operation was completed, in ISO 8601 format. - # - # @param results [Array] An array of results from the batch operation, each represented as a JournalFetch - # - # @param started_at [Time] The date and time when the batch operation started, in ISO 8601 format. - # - # @param status [Symbol, HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse::Status] The current status of the batch operation. Valid values include 'PENDING', 'PROC - # - # @param links [Hash{Symbol=>String}] A map of link names to associated URIs related to the batch operation. - # - # @param requested_at [Time] The date and time when the batch operation was requested, in ISO 8601 format. - - # The current status of the batch operation. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - # - # @see HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse#status - module Status - extend HubSpotSDK::Internal::Type::Enum - - CANCELED = :CANCELED - COMPLETE = :COMPLETE - PENDING = :PENDING - PROCESSING = :PROCESSING - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rb b/lib/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rb deleted file mode 100644 index 4ca8ec49..00000000 --- a/lib/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class BatchResponseJournalFetchResponseWithErrors < HubSpotSDK::Internal::Type::BaseModel - # @!attribute completed_at - # The date and time when the batch process was completed, in ISO 8601 format. - # - # @return [Time] - required :completed_at, Time, api_name: :completedAt - - # @!attribute results - # An array of journal fetch responses, each representing a result from the batch - # process. - # - # @return [Array] - required :results, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse] } - - # @!attribute started_at - # The date and time when the batch process started, in ISO 8601 format. - # - # @return [Time] - required :started_at, Time, api_name: :startedAt - - # @!attribute status - # The current status of the batch process. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - # - # @return [Symbol, HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status] - required :status, enum: -> { HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status } - - # @!attribute errors - # An array of standard errors that occurred during the batch process, providing - # details about each error. - # - # @return [Array, nil] - optional :errors, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::StandardError] } - - # @!attribute links - # A map of link names to associated URIs, providing additional context or actions - # related to the batch process. - # - # @return [Hash{Symbol=>String}, nil] - optional :links, HubSpotSDK::Internal::Type::HashOf[String] - - # @!attribute num_errors - # The number of errors that occurred during the batch process. - # - # @return [Integer, nil] - optional :num_errors, Integer, api_name: :numErrors - - # @!attribute requested_at - # The date and time when the batch request was made, in ISO 8601 format. - # - # @return [Time, nil] - optional :requested_at, Time, api_name: :requestedAt - - # @!method initialize(completed_at:, results:, started_at:, status:, errors: nil, links: nil, num_errors: nil, requested_at: nil) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponseWithErrors} for - # more details. - # - # @param completed_at [Time] The date and time when the batch process was completed, in ISO 8601 format. - # - # @param results [Array] An array of journal fetch responses, each representing a result from the batch p - # - # @param started_at [Time] The date and time when the batch process started, in ISO 8601 format. - # - # @param status [Symbol, HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status] The current status of the batch process. Valid values include 'PENDING', 'PROCES - # - # @param errors [Array] An array of standard errors that occurred during the batch process, providing de - # - # @param links [Hash{Symbol=>String}] A map of link names to associated URIs, providing additional context or actions - # - # @param num_errors [Integer] The number of errors that occurred during the batch process. - # - # @param requested_at [Time] The date and time when the batch request was made, in ISO 8601 format. - - # The current status of the batch process. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - # - # @see HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponseWithErrors#status - module Status - extend HubSpotSDK::Internal::Type::Enum - - CANCELED = :CANCELED - COMPLETE = :COMPLETE - PENDING = :PENDING - PROCESSING = :PROCESSING - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/collection_response_subscription_response_no_paging.rb b/lib/hubspot_sdk/models/webhooks/collection_response_subscription_response_no_paging.rb index 8e39ea24..35d258b4 100644 --- a/lib/hubspot_sdk/models/webhooks/collection_response_subscription_response_no_paging.rb +++ b/lib/hubspot_sdk/models/webhooks/collection_response_subscription_response_no_paging.rb @@ -3,7 +3,6 @@ module HubSpotSDK module Models module Webhooks - # @see HubSpotSDK::Resources::Webhooks#list_journal_subscriptions class CollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel # @!attribute results # An array of SubscriptionResponse objects, each representing a subscription's diff --git a/lib/hubspot_sdk/models/webhooks/condition.rb b/lib/hubspot_sdk/models/webhooks/condition.rb deleted file mode 100644 index 082eb150..00000000 --- a/lib/hubspot_sdk/models/webhooks/condition.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class Condition < HubSpotSDK::Internal::Type::BaseModel - # @!attribute filter_type - # A string indicating the type of filter being applied. Valid value is - # 'CRM_OBJECT_PROPERTY'. - # - # @return [Symbol, HubSpotSDK::Models::Webhooks::Condition::FilterType] - required :filter_type, enum: -> { HubSpotSDK::Webhooks::Condition::FilterType }, api_name: :filterType - - # @!attribute operator - # A string specifying the operation to be performed in the condition. Valid values - # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', - # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. - # - # @return [Symbol, HubSpotSDK::Models::Webhooks::Condition::Operator] - required :operator, enum: -> { HubSpotSDK::Webhooks::Condition::Operator } - - # @!attribute property - # A string representing the specific property of the CRM object that the condition - # applies to. - # - # @return [String] - required :property, String - - # @!attribute value - # A string representing the value to be compared against the specified property - # when using single-value operators. - # - # @return [String, nil] - optional :value, String - - # @!attribute values - # An array of strings used to specify multiple values for comparison when using - # operators that support multiple values, such as 'IN' or 'NOT_IN'. - # - # @return [Array, nil] - optional :values, HubSpotSDK::Internal::Type::ArrayOf[String] - - # @!method initialize(filter_type:, operator:, property:, value: nil, values: nil) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::Condition} for more details. - # - # @param filter_type [Symbol, HubSpotSDK::Models::Webhooks::Condition::FilterType] A string indicating the type of filter being applied. Valid value is 'CRM_OBJECT - # - # @param operator [Symbol, HubSpotSDK::Models::Webhooks::Condition::Operator] A string specifying the operation to be performed in the condition. Valid values - # - # @param property [String] A string representing the specific property of the CRM object that the condition - # - # @param value [String] A string representing the value to be compared against the specified property wh - # - # @param values [Array] An array of strings used to specify multiple values for comparison when using op - - # A string indicating the type of filter being applied. Valid value is - # 'CRM_OBJECT_PROPERTY'. - # - # @see HubSpotSDK::Models::Webhooks::Condition#filter_type - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - CRM_OBJECT_PROPERTY = :CRM_OBJECT_PROPERTY - - # @!method self.values - # @return [Array] - end - - # A string specifying the operation to be performed in the condition. Valid values - # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', - # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. - # - # @see HubSpotSDK::Models::Webhooks::Condition#operator - module Operator - extend HubSpotSDK::Internal::Type::Enum - - CONTAINS = :CONTAINS - ENDS_WITH = :ENDS_WITH - EQ = :EQ - GT = :GT - GTE = :GTE - IN = :IN - IS_EMPTY = :IS_EMPTY - IS_NOT_EMPTY = :IS_NOT_EMPTY - LT = :LT - LTE = :LTE - N_EQ = :N_EQ - NOT_IN = :NOT_IN - STARTS_WITH = :STARTS_WITH - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rb b/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rb deleted file mode 100644 index e823245b..00000000 --- a/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class CrmObjectSnapshotBatchRequest < HubSpotSDK::Internal::Type::BaseModel - # @!attribute snapshot_requests - # An array of CrmObjectSnapshotRequest objects, each representing a request to - # create a snapshot for a specific CRM object. This property is required. - # - # @return [Array] - required :snapshot_requests, - -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest] }, - api_name: :snapshotRequests - - # @!method initialize(snapshot_requests:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::CrmObjectSnapshotBatchRequest} for more details. - # - # @param snapshot_requests [Array] An array of CrmObjectSnapshotRequest objects, each representing a request to cre - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rb b/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rb deleted file mode 100644 index 7a183eee..00000000 --- a/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - # @see HubSpotSDK::Resources::Webhooks#create_crm_snapshots - class CrmObjectSnapshotBatchResponse < HubSpotSDK::Internal::Type::BaseModel - # @!attribute snapshot_responses - # An array of CrmObjectSnapshotResponse objects, each representing the result of a - # snapshot operation for a specific CRM object. This property is required. - # - # @return [Array] - required :snapshot_responses, - -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::CrmObjectSnapshotResponse] }, - api_name: :snapshotResponses - - # @!method initialize(snapshot_responses:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::CrmObjectSnapshotBatchResponse} for more details. - # - # @param snapshot_responses [Array] An array of CrmObjectSnapshotResponse objects, each representing the result of a - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rb b/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rb deleted file mode 100644 index 987eefe5..00000000 --- a/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class CrmObjectSnapshotRequest < HubSpotSDK::Internal::Type::BaseModel - # @!attribute object_id_ - # An integer representing the unique identifier of the CRM object for which the - # snapshot is requested. - # - # @return [Integer] - required :object_id_, Integer, api_name: :objectId - - # @!attribute object_type_id - # A string representing the type identifier of the CRM object, specifying what - # kind of object it is within HubSpot. - # - # @return [String] - required :object_type_id, String, api_name: :objectTypeId - - # @!attribute portal_id - # An integer representing the unique identifier of the HubSpot account (portal) - # where the CRM object resides. - # - # @return [Integer] - required :portal_id, Integer, api_name: :portalId - - # @!attribute properties - # An array of strings, each representing a property of the CRM object that should - # be included in the snapshot. - # - # @return [Array] - required :properties, HubSpotSDK::Internal::Type::ArrayOf[String] - - # @!method initialize(object_id_:, object_type_id:, portal_id:, properties:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::CrmObjectSnapshotRequest} for more details. - # - # @param object_id_ [Integer] An integer representing the unique identifier of the CRM object for which the sn - # - # @param object_type_id [String] A string representing the type identifier of the CRM object, specifying what kin - # - # @param portal_id [Integer] An integer representing the unique identifier of the HubSpot account (portal) wh - # - # @param properties [Array] An array of strings, each representing a property of the CRM object that should - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rb b/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rb deleted file mode 100644 index 3f08cdfc..00000000 --- a/lib/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class CrmObjectSnapshotResponse < HubSpotSDK::Internal::Type::BaseModel - # @!attribute object_id_ - # An integer representing the unique identifier of the CRM object for which the - # snapshot is taken. - # - # @return [Integer] - required :object_id_, Integer, api_name: :objectId - - # @!attribute object_type_id - # A string indicating the type of the CRM object, such as contact, company, or - # deal. - # - # @return [String] - required :object_type_id, String, api_name: :objectTypeId - - # @!attribute portal_id - # An integer representing the unique identifier of the HubSpot portal associated - # with the CRM object. - # - # @return [Integer] - required :portal_id, Integer, api_name: :portalId - - # @!attribute snapshot_status_id - # A UUID string representing the status identifier of the snapshot request, - # indicating the current state of the snapshot process. - # - # @return [String] - required :snapshot_status_id, String, api_name: :snapshotStatusId - - # @!method initialize(object_id_:, object_type_id:, portal_id:, snapshot_status_id:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::CrmObjectSnapshotResponse} for more details. - # - # @param object_id_ [Integer] An integer representing the unique identifier of the CRM object for which the sn - # - # @param object_type_id [String] A string indicating the type of the CRM object, such as contact, company, or dea - # - # @param portal_id [Integer] An integer representing the unique identifier of the HubSpot portal associated w - # - # @param snapshot_status_id [String] A UUID string representing the status identifier of the snapshot request, indica - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/filter.rb b/lib/hubspot_sdk/models/webhooks/filter.rb deleted file mode 100644 index c9f0ff5f..00000000 --- a/lib/hubspot_sdk/models/webhooks/filter.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class Filter < HubSpotSDK::Internal::Type::BaseModel - # @!attribute conditions - # An array of conditions that define the criteria for the filter. Each condition - # specifies a property, an operator, and optionally a value or values. - # - # @return [Array] - required :conditions, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::Condition] } - - # @!method initialize(conditions:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::Filter} for more details. - # - # Defines a single condition for searching CRM objects, specifying the property to - # filter on, the operator to use (such as equals, greater than, or contains), and - # the value(s) to compare against. - # - # @param conditions [Array] An array of conditions that define the criteria for the filter. Each condition s - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/filter_create_request.rb b/lib/hubspot_sdk/models/webhooks/filter_create_request.rb deleted file mode 100644 index 1b98e890..00000000 --- a/lib/hubspot_sdk/models/webhooks/filter_create_request.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class FilterCreateRequest < HubSpotSDK::Internal::Type::BaseModel - # @!attribute filter - # Defines a single condition for searching CRM objects, specifying the property to - # filter on, the operator to use (such as equals, greater than, or contains), and - # the value(s) to compare against. - # - # @return [HubSpotSDK::Models::Webhooks::Filter] - required :filter, -> { HubSpotSDK::Webhooks::Filter } - - # @!attribute subscription_id - # The unique identifier of the subscription to which the filter will be applied. - # It is an integer formatted as int64. - # - # @return [Integer] - required :subscription_id, Integer, api_name: :subscriptionId - - # @!method initialize(filter:, subscription_id:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::FilterCreateRequest} for more details. - # - # @param filter [HubSpotSDK::Models::Webhooks::Filter] Defines a single condition for searching CRM objects, specifying the property to - # - # @param subscription_id [Integer] The unique identifier of the subscription to which the filter will be applied. I - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/filter_create_response.rb b/lib/hubspot_sdk/models/webhooks/filter_create_response.rb deleted file mode 100644 index f26cd364..00000000 --- a/lib/hubspot_sdk/models/webhooks/filter_create_response.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - # @see HubSpotSDK::Resources::Webhooks#create_subscription_filter - class FilterCreateResponse < HubSpotSDK::Internal::Type::BaseModel - # @!attribute filter_id - # The unique identifier for the created filter. It is an integer formatted as - # int64. - # - # @return [Integer] - required :filter_id, Integer, api_name: :filterId - - # @!method initialize(filter_id:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::FilterCreateResponse} for more details. - # - # @param filter_id [Integer] The unique identifier for the created filter. It is an integer formatted as int6 - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/filter_response.rb b/lib/hubspot_sdk/models/webhooks/filter_response.rb deleted file mode 100644 index 4ce7d3ae..00000000 --- a/lib/hubspot_sdk/models/webhooks/filter_response.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - # @see HubSpotSDK::Resources::Webhooks#get_subscription_filter - class FilterResponse < HubSpotSDK::Internal::Type::BaseModel - # @!attribute id - # The unique identifier for the filter. It is an integer in int64 format. - # - # @return [Integer] - required :id, Integer - - # @!attribute created_at - # A Unix timestamp in milliseconds indicating when the filter was created. - # - # @return [Integer] - required :created_at, Integer, api_name: :createdAt - - # @!attribute filter - # Defines a single condition for searching CRM objects, specifying the property to - # filter on, the operator to use (such as equals, greater than, or contains), and - # the value(s) to compare against. - # - # @return [HubSpotSDK::Models::Webhooks::Filter] - required :filter, -> { HubSpotSDK::Webhooks::Filter } - - # @!method initialize(id:, created_at:, filter:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::FilterResponse} for more details. - # - # @param id [Integer] The unique identifier for the filter. It is an integer in int64 format. - # - # @param created_at [Integer] A Unix timestamp in milliseconds indicating when the filter was created. - # - # @param filter [HubSpotSDK::Models::Webhooks::Filter] Defines a single condition for searching CRM objects, specifying the property to - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rb b/lib/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rb deleted file mode 100644 index 5a29838d..00000000 --- a/lib/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rb +++ /dev/null @@ -1,76 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class GdprPrivacyDeletionSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - # @!attribute actions - # - # @return [Array] - required :actions, - -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action] } - - # @!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::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType] - required :subscription_type, - enum: -> { - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType - }, - api_name: :subscriptionType - - # @!method initialize(actions:, object_type_id:, portal_id:, subscription_type:) - # @param actions [Array] - # @param object_type_id [String] - # @param portal_id [Integer] - # @param subscription_type [Symbol, HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::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] - end - - # @see HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest#subscription_type - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT = :OBJECT - ASSOCIATION = :ASSOCIATION - EVENT = :EVENT - APP_LIFECYCLE_EVENT = :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP = :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION = :GDPR_PRIVACY_DELETION - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/journal_fetch_response.rb b/lib/hubspot_sdk/models/webhooks/journal_fetch_response.rb deleted file mode 100644 index 3b976102..00000000 --- a/lib/hubspot_sdk/models/webhooks/journal_fetch_response.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class JournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel - # @!attribute current_offset - # The unique identifier for the current offset of the journal entry, formatted as - # a UUID. - # - # @return [String] - required :current_offset, String, api_name: :currentOffset - - # @!attribute expires_at - # The date and time when the URL will expire, in ISO 8601 format. - # - # @return [Time] - required :expires_at, Time, api_name: :expiresAt - - # @!attribute url - # The URL where the journal entry can be accessed. It is a string. - # - # @return [String] - required :url, String - - # @!method initialize(current_offset:, expires_at:, url:) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::JournalFetchResponse} for more details. - # - # @param current_offset [String] The unique identifier for the current offset of the journal entry, formatted as - # - # @param expires_at [Time] The date and time when the URL will expire, in ISO 8601 format. - # - # @param url [String] The URL where the journal entry can be accessed. It is a string. - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rb b/lib/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rb deleted file mode 100644 index b0b2557b..00000000 --- a/lib/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rb +++ /dev/null @@ -1,80 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class ListMembershipSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - # @!attribute actions - # - # @return [Array] - required :actions, - -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action] } - - # @!attribute list_ids - # - # @return [Array] - required :list_ids, HubSpotSDK::Internal::Type::ArrayOf[Integer], api_name: :listIds - - # @!attribute object_ids - # - # @return [Array] - required :object_ids, HubSpotSDK::Internal::Type::ArrayOf[Integer], api_name: :objectIds - - # @!attribute portal_id - # - # @return [Integer] - required :portal_id, Integer, api_name: :portalId - - # @!attribute subscription_type - # - # @return [Symbol, HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType] - required :subscription_type, - enum: -> { HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType }, - api_name: :subscriptionType - - # @!method initialize(actions:, list_ids:, object_ids:, portal_id:, subscription_type:) - # @param actions [Array] - # @param list_ids [Array] - # @param object_ids [Array] - # @param portal_id [Integer] - # @param subscription_type [Symbol, HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::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] - end - - # @see HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest#subscription_type - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT = :OBJECT - ASSOCIATION = :ASSOCIATION - EVENT = :EVENT - APP_LIFECYCLE_EVENT = :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP = :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION = :GDPR_PRIVACY_DELETION - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rb b/lib/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rb deleted file mode 100644 index 2cfa1fd6..00000000 --- a/lib/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rb +++ /dev/null @@ -1,86 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - class ObjectSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - # @!attribute actions - # - # @return [Array] - required :actions, - -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action] } - - # @!attribute object_ids - # - # @return [Array] - 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 properties - # - # @return [Array] - required :properties, HubSpotSDK::Internal::Type::ArrayOf[String] - - # @!attribute subscription_type - # - # @return [Symbol, HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType] - required :subscription_type, - enum: -> { HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType }, - api_name: :subscriptionType - - # @!method initialize(actions:, object_ids:, object_type_id:, portal_id:, properties:, subscription_type:) - # @param actions [Array] - # @param object_ids [Array] - # @param object_type_id [String] - # @param portal_id [Integer] - # @param properties [Array] - # @param subscription_type [Symbol, HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::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] - end - - # @see HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest#subscription_type - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT = :OBJECT - ASSOCIATION = :ASSOCIATION - EVENT = :EVENT - APP_LIFECYCLE_EVENT = :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP = :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION = :GDPR_PRIVACY_DELETION - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb b/lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb deleted file mode 100644 index 1cb0132e..00000000 --- a/lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb +++ /dev/null @@ -1,102 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - # @see HubSpotSDK::Resources::Webhooks#get_journal_status - class SnapshotStatusResponse < HubSpotSDK::Internal::Type::BaseModel - # @!attribute id - # The unique identifier for the snapshot operation, represented as a UUID. - # - # @return [String] - required :id, String - - # @!attribute initiated_at - # The timestamp indicating when the snapshot operation was initiated, represented - # as a Unix timestamp in milliseconds. - # - # @return [Integer] - required :initiated_at, Integer, api_name: :initiatedAt - - # @!attribute status - # The current status of the snapshot. Valid values include 'PENDING', - # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. - # - # @return [Symbol, HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::Status] - required :status, enum: -> { HubSpotSDK::Webhooks::SnapshotStatusResponse::Status } - - # @!attribute completed_at - # The timestamp indicating when the snapshot operation was completed, represented - # as a Unix timestamp in milliseconds. - # - # @return [Integer, nil] - optional :completed_at, Integer, api_name: :completedAt - - # @!attribute error_code - # A code representing the error that occurred, if any. Possible values are - # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. - # - # @return [Symbol, HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::ErrorCode, nil] - optional :error_code, - enum: -> { HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode }, - api_name: :errorCode - - # @!attribute message - # A descriptive message providing additional information about the snapshot - # operation or error. - # - # @return [String, nil] - optional :message, String - - # @!method initialize(id:, initiated_at:, status:, completed_at: nil, error_code: nil, message: nil) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::SnapshotStatusResponse} for more details. - # - # @param id [String] The unique identifier for the snapshot operation, represented as a UUID. - # - # @param initiated_at [Integer] The timestamp indicating when the snapshot operation was initiated, represented - # - # @param status [Symbol, HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::Status] The current status of the snapshot. Valid values include 'PENDING', 'IN_PROGRESS - # - # @param completed_at [Integer] The timestamp indicating when the snapshot operation was completed, represented - # - # @param error_code [Symbol, HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::ErrorCode] A code representing the error that occurred, if any. Possible values are 'TIMEOU - # - # @param message [String] A descriptive message providing additional information about the snapshot operat - - # The current status of the snapshot. Valid values include 'PENDING', - # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. - # - # @see HubSpotSDK::Models::Webhooks::SnapshotStatusResponse#status - module Status - extend HubSpotSDK::Internal::Type::Enum - - COMPLETED = :COMPLETED - EXPIRED = :EXPIRED - FAILED = :FAILED - IN_PROGRESS = :IN_PROGRESS - PENDING = :PENDING - - # @!method self.values - # @return [Array] - end - - # A code representing the error that occurred, if any. Possible values are - # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. - # - # @see HubSpotSDK::Models::Webhooks::SnapshotStatusResponse#error_code - module ErrorCode - extend HubSpotSDK::Internal::Type::Enum - - INTERNAL_ERROR = :INTERNAL_ERROR - PERMISSION_DENIED = :PERMISSION_DENIED - TIMEOUT = :TIMEOUT - VALIDATION_ERROR = :VALIDATION_ERROR - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/subscription_response_1.rb b/lib/hubspot_sdk/models/webhooks/subscription_response_1.rb index dc3f99b1..d772a73f 100644 --- a/lib/hubspot_sdk/models/webhooks/subscription_response_1.rb +++ b/lib/hubspot_sdk/models/webhooks/subscription_response_1.rb @@ -3,7 +3,6 @@ module HubSpotSDK module Models module Webhooks - # @see HubSpotSDK::Resources::Webhooks#create_journal_subscription class SubscriptionResponse1 < HubSpotSDK::Internal::Type::BaseModel # @!attribute id # The unique identifier for the subscription. It is an integer formatted as int64. @@ -61,9 +60,9 @@ class SubscriptionResponse1 < HubSpotSDK::Internal::Type::BaseModel # An object containing action overrides, where each key is an action and the value # is an ActionOverrideRequest object. # - # @return [Hash{Symbol=>HubSpotSDK::Models::Webhooks::ActionOverrideRequest}, nil] + # @return [Hash{Symbol=>HubSpotSDK::Models::ActionOverrideRequest}, nil] optional :action_overrides, - -> { HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::Webhooks::ActionOverrideRequest] }, + -> { HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest] }, api_name: :actionOverrides # @!attribute associated_object_type_ids @@ -134,7 +133,7 @@ class SubscriptionResponse1 < HubSpotSDK::Internal::Type::BaseModel # # @param updated_at [Time] The date and time when the subscription was last updated, in ISO 8601 format. # - # @param action_overrides [Hash{Symbol=>HubSpotSDK::Models::Webhooks::ActionOverrideRequest}] An object containing action overrides, where each key is an action and the value + # @param action_overrides [Hash{Symbol=>HubSpotSDK::Models::ActionOverrideRequest}] An object containing action overrides, where each key is an action and the value # # @param associated_object_type_ids [Array] A list of associated object type IDs. Each ID is a string. # diff --git a/lib/hubspot_sdk/models/webhooks/subscription_upsert_request.rb b/lib/hubspot_sdk/models/webhooks/subscription_upsert_request.rb deleted file mode 100644 index 7276984e..00000000 --- a/lib/hubspot_sdk/models/webhooks/subscription_upsert_request.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -module HubSpotSDK - module Models - module Webhooks - module SubscriptionUpsertRequest - extend HubSpotSDK::Internal::Type::Union - - variant -> { HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest } - - variant -> { HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest } - - variant -> { HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest } - - variant -> { HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest } - - variant -> { HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest } - - # @!method self.variants - # @return [Array(HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest, HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest, HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest, HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest, HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest)] - end - end - end -end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rb index 44b9e8f0..c13b96cf 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rb @@ -4,7 +4,7 @@ module HubSpotSDK module Models module Webhooks # @see HubSpotSDK::Resources::Webhooks#create_crm_snapshots - class WebhookCreateCrmSnapshotsParams < HubSpotSDK::Models::Webhooks::CrmObjectSnapshotBatchRequest + class WebhookCreateCrmSnapshotsParams < HubSpotSDK::Models::CrmObjectSnapshotBatchRequest extend HubSpotSDK::Internal::Type::RequestParameters::Converter include HubSpotSDK::Internal::Type::RequestParameters diff --git a/lib/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rb index 4a02950c..82d7cf93 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rb @@ -4,7 +4,7 @@ module HubSpotSDK module Models module Webhooks # @see HubSpotSDK::Resources::Webhooks#create_subscription_filter - class WebhookCreateSubscriptionFilterParams < HubSpotSDK::Models::Webhooks::FilterCreateRequest + class WebhookCreateSubscriptionFilterParams < HubSpotSDK::Models::FilterCreateRequest extend HubSpotSDK::Internal::Type::RequestParameters::Converter include HubSpotSDK::Internal::Type::RequestParameters diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_batch_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_batch_params.rb index 46703191..55465b11 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_batch_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_batch_params.rb @@ -14,8 +14,8 @@ class WebhookGetEarliestJournalBatchParams < HubSpotSDK::Internal::Type::BaseMod required :count, Integer # @!attribute install_portal_id - # The ID of the portal installation to filter the webhook journal entries by. This - # is an integer value. + # The ID of the portal installation. This is an integer value that specifies which + # portal's data to access. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -27,7 +27,7 @@ class WebhookGetEarliestJournalBatchParams < HubSpotSDK::Internal::Type::BaseMod # # @param count [Integer] # - # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries by. This + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value that specifies which # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_entry_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_entry_params.rb index 53297671..602228a5 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_entry_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_entry_params.rb @@ -9,8 +9,8 @@ class WebhookGetEarliestJournalEntryParams < HubSpotSDK::Internal::Type::BaseMod include HubSpotSDK::Internal::Type::RequestParameters # @!attribute install_portal_id - # The ID of the portal installation to filter the journal entries. It is an - # integer. + # The ID of the portal installation to filter the journal entries by. This is an + # integer value. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -20,7 +20,7 @@ class WebhookGetEarliestJournalEntryParams < HubSpotSDK::Internal::Type::BaseMod # {HubSpotSDK::Models::Webhooks::WebhookGetEarliestJournalEntryParams} for more # details. # - # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries. It is an intege + # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries by. This is an i # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_batch_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_batch_params.rb index c5eb77a1..b7cc25b1 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_batch_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_batch_params.rb @@ -14,7 +14,8 @@ class WebhookGetEarliestLocalJournalBatchParams < HubSpotSDK::Internal::Type::Ba required :count, Integer # @!attribute install_portal_id - # The ID of the portal where the webhooks are installed. This is an integer value. + # The ID of the portal installation to filter the webhook journal entries. This is + # an optional integer parameter. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -26,7 +27,7 @@ class WebhookGetEarliestLocalJournalBatchParams < HubSpotSDK::Internal::Type::Ba # # @param count [Integer] # - # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This is an integer value. + # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_entry_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_entry_params.rb index ca5abf92..f70574d3 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_entry_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_entry_params.rb @@ -9,8 +9,8 @@ class WebhookGetEarliestLocalJournalEntryParams < HubSpotSDK::Internal::Type::Ba include HubSpotSDK::Internal::Type::RequestParameters # @!attribute install_portal_id - # The ID of the portal installation to filter the journal entries by. This - # parameter is optional and should be an integer. + # The ID of the portal for which to retrieve the earliest webhook journal entries. + # This parameter is optional and should be an integer. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -20,7 +20,7 @@ class WebhookGetEarliestLocalJournalEntryParams < HubSpotSDK::Internal::Type::Ba # {HubSpotSDK::Models::Webhooks::WebhookGetEarliestLocalJournalEntryParams} for # more details. # - # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries by. This paramet + # @param install_portal_id [Integer] The ID of the portal for which to retrieve the earliest webhook journal entries. # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_journal_batch_by_request_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_journal_batch_by_request_params.rb index 88d2e038..ce649690 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_journal_batch_by_request_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_journal_batch_by_request_params.rb @@ -9,7 +9,8 @@ class WebhookGetJournalBatchByRequestParams < HubSpotSDK::Models::BatchInputStri include HubSpotSDK::Internal::Type::RequestParameters # @!attribute install_portal_id - # The ID of the portal where the webhooks are installed. This is an integer value. + # An integer representing the ID of the portal installation for which the webhooks + # journal data should be retrieved. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -19,7 +20,7 @@ class WebhookGetJournalBatchByRequestParams < HubSpotSDK::Models::BatchInputStri # {HubSpotSDK::Models::Webhooks::WebhookGetJournalBatchByRequestParams} for more # details. # - # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This is an integer value. + # @param install_portal_id [Integer] An integer representing the ID of the portal installation for which the webhooks # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_journal_batch_from_offset_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_journal_batch_from_offset_params.rb index f0ae9691..b2f35803 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_journal_batch_from_offset_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_journal_batch_from_offset_params.rb @@ -19,22 +19,17 @@ class WebhookGetJournalBatchFromOffsetParams < HubSpotSDK::Internal::Type::BaseM required :count, Integer # @!attribute install_portal_id - # The ID of the portal installation. This is an integer value used to specify the - # portal context for the request. + # The ID of the portal installation. This is an integer value. # # @return [Integer, nil] optional :install_portal_id, Integer # @!method initialize(offset:, count:, install_portal_id: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::Webhooks::WebhookGetJournalBatchFromOffsetParams} for more - # details. - # # @param offset [String] # # @param count [Integer] # - # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value used to specify the + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value. # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_latest_journal_batch_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_latest_journal_batch_params.rb index 5dff1937..2117b7dc 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_latest_journal_batch_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_latest_journal_batch_params.rb @@ -14,8 +14,8 @@ class WebhookGetLatestJournalBatchParams < HubSpotSDK::Internal::Type::BaseModel required :count, Integer # @!attribute install_portal_id - # The ID of the portal installation. This is an integer value used to identify the - # specific portal. + # The ID of the portal installation. This is an integer value used to specify the + # portal context for the request. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -27,7 +27,7 @@ class WebhookGetLatestJournalBatchParams < HubSpotSDK::Internal::Type::BaseModel # # @param count [Integer] # - # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value used to identify the + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value used to specify the # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_latest_journal_entry_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_latest_journal_entry_params.rb index d59257ee..71d3f8cb 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_latest_journal_entry_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_latest_journal_entry_params.rb @@ -9,8 +9,8 @@ class WebhookGetLatestJournalEntryParams < HubSpotSDK::Internal::Type::BaseModel include HubSpotSDK::Internal::Type::RequestParameters # @!attribute install_portal_id - # The ID of the portal installation to filter the journal entries. It is an - # integer value. + # The unique identifier of the portal installation for which to retrieve the + # latest journal entries. This parameter is optional and should be an integer. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -20,7 +20,7 @@ class WebhookGetLatestJournalEntryParams < HubSpotSDK::Internal::Type::BaseModel # {HubSpotSDK::Models::Webhooks::WebhookGetLatestJournalEntryParams} for more # details. # - # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries. It is an intege + # @param install_portal_id [Integer] The unique identifier of the portal installation for which to retrieve the lates # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_batch_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_batch_params.rb index 3cead2c3..279627ee 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_batch_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_batch_params.rb @@ -14,8 +14,8 @@ class WebhookGetLatestLocalJournalBatchParams < HubSpotSDK::Internal::Type::Base required :count, Integer # @!attribute install_portal_id - # The ID of the portal installation. This parameter is optional and used to filter - # the journal entries by a specific portal. + # The ID of the portal where the webhook journal is installed. This parameter is + # optional and used to specify the target portal. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -27,7 +27,7 @@ class WebhookGetLatestLocalJournalBatchParams < HubSpotSDK::Internal::Type::Base # # @param count [Integer] # - # @param install_portal_id [Integer] The ID of the portal installation. This parameter is optional and used to filter + # @param install_portal_id [Integer] The ID of the portal where the webhook journal is installed. This parameter is o # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_entry_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_entry_params.rb index 66182cf7..3daf2b5e 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_entry_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_entry_params.rb @@ -9,8 +9,8 @@ class WebhookGetLatestLocalJournalEntryParams < HubSpotSDK::Internal::Type::Base include HubSpotSDK::Internal::Type::RequestParameters # @!attribute install_portal_id - # The ID of the portal for which to retrieve the latest journal entries. This - # parameter is optional and should be an integer. + # The ID of the portal for which to retrieve the latest journal entries. This is + # an integer value. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -20,7 +20,7 @@ class WebhookGetLatestLocalJournalEntryParams < HubSpotSDK::Internal::Type::Base # {HubSpotSDK::Models::Webhooks::WebhookGetLatestLocalJournalEntryParams} for more # details. # - # @param install_portal_id [Integer] The ID of the portal for which to retrieve the latest journal entries. This para + # @param install_portal_id [Integer] The ID of the portal for which to retrieve the latest journal entries. This is a # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_by_request_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_by_request_params.rb index afec2a02..613ddeb5 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_by_request_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_by_request_params.rb @@ -10,7 +10,7 @@ class WebhookGetLocalJournalBatchByRequestParams < HubSpotSDK::Models::BatchInpu # @!attribute install_portal_id # The ID of the portal where the webhooks are installed. This parameter is - # optional and is used to specify the target portal. + # optional and is used to specify the target portal for the operation. # # @return [Integer, nil] optional :install_portal_id, Integer diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_from_offset_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_from_offset_params.rb index 0ce7b534..531de0b0 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_from_offset_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_from_offset_params.rb @@ -19,8 +19,8 @@ class WebhookGetLocalJournalBatchFromOffsetParams < HubSpotSDK::Internal::Type:: required :count, Integer # @!attribute install_portal_id - # The ID of the portal installation. This is an integer value used to specify the - # portal context for the request. + # The ID of the portal where the webhooks are installed. This is an optional + # parameter. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -34,7 +34,7 @@ class WebhookGetLocalJournalBatchFromOffsetParams < HubSpotSDK::Internal::Type:: # # @param count [Integer] # - # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value used to specify the + # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This is an optional param # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_next_journal_entries_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_next_journal_entries_params.rb index 49b9a2a9..e6919042 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_next_journal_entries_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_next_journal_entries_params.rb @@ -14,8 +14,7 @@ class WebhookGetNextJournalEntriesParams < HubSpotSDK::Internal::Type::BaseModel required :offset, String # @!attribute install_portal_id - # The ID of the portal installation to filter the webhook journal entries. This is - # an optional parameter. + # The ID of the portal where the webhooks are installed. This is an integer value. # # @return [Integer, nil] optional :install_portal_id, Integer @@ -27,7 +26,7 @@ class WebhookGetNextJournalEntriesParams < HubSpotSDK::Internal::Type::BaseModel # # @param offset [String] # - # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is + # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This is an integer value. # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_get_next_local_journal_entries_params.rb b/lib/hubspot_sdk/models/webhooks/webhook_get_next_local_journal_entries_params.rb index fac842db..e60814c1 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_get_next_local_journal_entries_params.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_get_next_local_journal_entries_params.rb @@ -14,15 +14,20 @@ class WebhookGetNextLocalJournalEntriesParams < HubSpotSDK::Internal::Type::Base required :offset, String # @!attribute install_portal_id - # The ID of the portal where the webhook is installed. This is an integer value. + # The ID of the portal installation to filter the webhook journal entries. This is + # an integer value. # # @return [Integer, nil] optional :install_portal_id, Integer # @!method initialize(offset:, install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::Webhooks::WebhookGetNextLocalJournalEntriesParams} for more + # details. + # # @param offset [String] # - # @param install_portal_id [Integer] The ID of the portal where the webhook is installed. This is an integer value. + # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rb b/lib/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rb index 6979987c..3bdf7277 100644 --- a/lib/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rb +++ b/lib/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rb @@ -5,7 +5,7 @@ module Models module Webhooks # @type [HubSpotSDK::Internal::Type::Converter] WebhookListSubscriptionFiltersResponse = - HubSpotSDK::Internal::Type::ArrayOf[-> { HubSpotSDK::Webhooks::FilterResponse }] + HubSpotSDK::Internal::Type::ArrayOf[-> { HubSpotSDK::FilterResponse }] end end end diff --git a/lib/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rb b/lib/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rb new file mode 100644 index 00000000..ecf93b6e --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + class CollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel + # @!attribute results + # An array of subscription responses, where each item contains details about a + # specific subscription. Each item follows the SubscriptionResponse schema. + # + # @return [Array] + required :results, + -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::WebhooksJournal::SubscriptionResponse] } + + # @!method initialize(results:) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging} + # for more details. + # + # @param results [Array] An array of subscription responses, where each item contains details about a spe + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rb new file mode 100644 index 00000000..9d38329f --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + # @see HubSpotSDK::Resources::WebhooksJournal::Journal::Batch#get_earliest + class BatchGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute count + # + # @return [Integer] + required :count, Integer + + # @!attribute install_portal_id + # The ID of the portal installation. This is an integer value that specifies which + # portal's data to access. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(count:, install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetEarliestParams} for more + # details. + # + # @param count [Integer] + # + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value that specifies which + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rb new file mode 100644 index 00000000..e5b91065 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + # @see HubSpotSDK::Resources::WebhooksJournal::Journal::Batch#get_from_offset + class BatchGetFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute offset + # + # @return [String] + required :offset, String + + # @!attribute count + # + # @return [Integer] + required :count, Integer + + # @!attribute install_portal_id + # The ID of the portal installation. This is an integer value. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(offset:, count:, install_portal_id: nil, request_options: {}) + # @param offset [String] + # + # @param count [Integer] + # + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rb new file mode 100644 index 00000000..b1c36709 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + # @see HubSpotSDK::Resources::WebhooksJournal::Journal::Batch#get_latest + class BatchGetLatestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute count + # + # @return [Integer] + required :count, Integer + + # @!attribute install_portal_id + # The ID of the portal installation. This is an integer value used to specify the + # portal context for the request. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(count:, install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetLatestParams} for more + # details. + # + # @param count [Integer] + # + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value used to specify the + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rb new file mode 100644 index 00000000..807dd3a6 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + # @see HubSpotSDK::Resources::WebhooksJournal::Journal::Batch#get + class BatchGetParams < HubSpotSDK::Models::BatchInputString + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute install_portal_id + # An integer representing the ID of the portal installation for which the webhooks + # journal data should be retrieved. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetParams} for more details. + # + # @param install_portal_id [Integer] An integer representing the ID of the portal installation for which the webhooks + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rb new file mode 100644 index 00000000..64127b23 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rb @@ -0,0 +1,29 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::Journal#get_earliest + class JournalGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute install_portal_id + # The ID of the portal installation to filter the journal entries by. This is an + # integer value. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalGetEarliestParams} for more + # details. + # + # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries by. This is an i + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rb new file mode 100644 index 00000000..dce57cc9 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::Journal#get_next_from_offset + class JournalGetNextFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute offset + # + # @return [String] + required :offset, String + + # @!attribute install_portal_id + # The ID of the portal where the webhooks are installed. This is an integer value. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(offset:, install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalGetNextFromOffsetParams} for more + # details. + # + # @param offset [String] + # + # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This is an integer value. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rb new file mode 100644 index 00000000..39f0efd0 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::Journal#get_status + class JournalGetStatusParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute status_id + # + # @return [String] + required :status_id, String + + # @!method initialize(status_id:, request_options: {}) + # @param status_id [String] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rb new file mode 100644 index 00000000..53decb75 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module JournalLocal + # @see HubSpotSDK::Resources::WebhooksJournal::JournalLocal::Batch#get_earliest + class BatchGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute count + # + # @return [Integer] + required :count, Integer + + # @!attribute install_portal_id + # The ID of the portal installation to filter the webhook journal entries. This is + # an optional integer parameter. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(count:, install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocal::BatchGetEarliestParams} for + # more details. + # + # @param count [Integer] + # + # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rb new file mode 100644 index 00000000..b6465772 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module JournalLocal + # @see HubSpotSDK::Resources::WebhooksJournal::JournalLocal::Batch#get_from_offset + class BatchGetFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute offset + # + # @return [String] + required :offset, String + + # @!attribute count + # + # @return [Integer] + required :count, Integer + + # @!attribute install_portal_id + # The ID of the portal where the webhooks are installed. This is an optional + # parameter. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(offset:, count:, install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocal::BatchGetFromOffsetParams} + # for more details. + # + # @param offset [String] + # + # @param count [Integer] + # + # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This is an optional param + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rb new file mode 100644 index 00000000..58b22933 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module JournalLocal + # @see HubSpotSDK::Resources::WebhooksJournal::JournalLocal::Batch#get + class BatchGetParams < HubSpotSDK::Models::BatchInputString + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute install_portal_id + # The ID of the portal where the webhooks are installed. This parameter is + # optional and is used to specify the target portal for the operation. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocal::BatchGetParams} for more + # details. + # + # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This parameter is optiona + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rb new file mode 100644 index 00000000..eac48ec8 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rb @@ -0,0 +1,29 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::JournalLocal#get_earliest + class JournalLocalGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute install_portal_id + # The ID of the portal for which to retrieve the earliest webhook journal entries. + # This parameter is optional and should be an integer. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocalGetEarliestParams} for more + # details. + # + # @param install_portal_id [Integer] The ID of the portal for which to retrieve the earliest webhook journal entries. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rb new file mode 100644 index 00000000..7949b812 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rb @@ -0,0 +1,29 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::JournalLocal#get_latest + class JournalLocalGetLatestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute install_portal_id + # The unique identifier of the portal installation for which to retrieve the + # latest journal entries. This parameter is optional and should be an integer. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocalGetLatestParams} for more + # details. + # + # @param install_portal_id [Integer] The unique identifier of the portal installation for which to retrieve the lates + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rb new file mode 100644 index 00000000..85a8fae5 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::JournalLocal#get_next_from_offset + class JournalLocalGetNextFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute offset + # + # @return [String] + required :offset, String + + # @!attribute install_portal_id + # The ID of the portal installation to filter the webhook journal entries. This is + # an integer value. + # + # @return [Integer, nil] + optional :install_portal_id, Integer + + # @!method initialize(offset:, install_portal_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocalGetNextFromOffsetParams} for + # more details. + # + # @param offset [String] + # + # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rb new file mode 100644 index 00000000..a4349797 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::JournalLocal#get_status + class JournalLocalGetStatusParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute status_id + # + # @return [String] + required :status_id, String + + # @!method initialize(status_id:, request_options: {}) + # @param status_id [String] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rb b/lib/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rb new file mode 100644 index 00000000..d710e0d3 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::Snapshots#create + class SnapshotCreateParams < HubSpotSDK::Models::CrmObjectSnapshotBatchRequest + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!method initialize(request_options: {}) + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscription_create_params.rb b/lib/hubspot_sdk/models/webhooks_journal/subscription_create_params.rb new file mode 100644 index 00000000..653fb0e3 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscription_create_params.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::Subscriptions#create + class SubscriptionCreateParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!method initialize(request_options: {}) + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rb b/lib/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rb new file mode 100644 index 00000000..60fd0159 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::Subscriptions#delete_for_portal + class SubscriptionDeleteForPortalParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute portal_id + # + # @return [Integer] + required :portal_id, Integer + + # @!method initialize(portal_id:, request_options: {}) + # @param portal_id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rb b/lib/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rb new file mode 100644 index 00000000..2f9a119f --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::Subscriptions#delete + class SubscriptionDeleteParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute subscription_id + # + # @return [Integer] + required :subscription_id, Integer + + # @!method initialize(subscription_id:, request_options: {}) + # @param subscription_id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscription_get_params.rb b/lib/hubspot_sdk/models/webhooks_journal/subscription_get_params.rb new file mode 100644 index 00000000..f8e01d7e --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscription_get_params.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::Subscriptions#get + class SubscriptionGetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute subscription_id + # + # @return [Integer] + required :subscription_id, Integer + + # @!method initialize(subscription_id:, request_options: {}) + # @param subscription_id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscription_list_params.rb b/lib/hubspot_sdk/models/webhooks_journal/subscription_list_params.rb new file mode 100644 index 00000000..d51928ef --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscription_list_params.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + # @see HubSpotSDK::Resources::WebhooksJournal::Subscriptions#list + class SubscriptionListParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!method initialize(request_options: {}) + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscription_response.rb b/lib/hubspot_sdk/models/webhooks_journal/subscription_response.rb new file mode 100644 index 00000000..15430240 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscription_response.rb @@ -0,0 +1,194 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel + # @!attribute id + # The unique identifier for the subscription, represented as an integer. + # + # @return [Integer] + required :id, Integer + + # @!attribute actions + # An array of actions associated with the subscription. Valid actions include + # 'CREATE', 'UPDATE', 'DELETE', 'MERGE', 'RESTORE', 'ASSOCIATION_ADDED', + # 'ASSOCIATION_REMOVED', 'SNAPSHOT', 'APP_INSTALL', 'APP_UNINSTALL', + # 'ADDED_TO_LIST', 'REMOVED_FROM_LIST', and 'GDPR_DELETE'. + # + # @return [Array] + required :actions, + -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action] } + + # @!attribute app_id + # The unique identifier for the app associated with the subscription, represented + # as an integer. + # + # @return [Integer] + required :app_id, Integer, api_name: :appId + + # @!attribute created_at + # The date and time when the subscription was created, in ISO 8601 format. + # + # @return [Time] + required :created_at, Time, api_name: :createdAt + + # @!attribute object_type_id + # The identifier for the type of object associated with the subscription, + # represented as a string. + # + # @return [String] + required :object_type_id, String, api_name: :objectTypeId + + # @!attribute subscription_type + # The type of subscription, indicating the nature of events it pertains to. Valid + # values include 'OBJECT', 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', + # 'LIST_MEMBERSHIP', and 'GDPR_PRIVACY_DELETION'. + # + # @return [Symbol, HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::SubscriptionType] + required :subscription_type, + enum: -> { HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType }, + api_name: :subscriptionType + + # @!attribute updated_at + # The date and time when the subscription was last updated, in ISO 8601 format. + # + # @return [Time] + required :updated_at, Time, api_name: :updatedAt + + # @!attribute action_overrides + # An object containing overrides for actions, where each key is an action and the + # value is an ActionOverrideRequest object. + # + # @return [Hash{Symbol=>HubSpotSDK::Models::ActionOverrideRequest}, nil] + optional :action_overrides, + -> { HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest] }, + api_name: :actionOverrides + + # @!attribute associated_object_type_ids + # An array of strings representing the IDs of associated object types. + # + # @return [Array, nil] + optional :associated_object_type_ids, + HubSpotSDK::Internal::Type::ArrayOf[String], + api_name: :associatedObjectTypeIds + + # @!attribute created_by + # The unique identifier of the user who created the subscription, represented as + # an integer. + # + # @return [Integer, nil] + optional :created_by, Integer, api_name: :createdBy + + # @!attribute deleted_at + # The date and time when the subscription was deleted, in ISO 8601 format, if + # applicable. + # + # @return [Time, nil] + optional :deleted_at, Time, api_name: :deletedAt + + # @!attribute list_ids + # An array of integers representing the IDs of lists associated with the + # subscription. + # + # @return [Array, nil] + optional :list_ids, HubSpotSDK::Internal::Type::ArrayOf[Integer], api_name: :listIds + + # @!attribute object_ids + # An array of integers representing the IDs of objects associated with the + # subscription. + # + # @return [Array, nil] + optional :object_ids, HubSpotSDK::Internal::Type::ArrayOf[Integer], api_name: :objectIds + + # @!attribute portal_id + # The unique identifier for the portal associated with the subscription, + # represented as an integer. + # + # @return [Integer, nil] + optional :portal_id, Integer, api_name: :portalId + + # @!attribute properties + # An array of strings representing the properties associated with the + # subscription. + # + # @return [Array, nil] + optional :properties, HubSpotSDK::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, actions:, app_id:, created_at:, object_type_id:, subscription_type:, updated_at:, action_overrides: nil, associated_object_type_ids: nil, created_by: nil, deleted_at: nil, list_ids: nil, object_ids: nil, portal_id: nil, properties: nil) + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse} for more details. + # + # @param id [Integer] The unique identifier for the subscription, represented as an integer. + # + # @param actions [Array] An array of actions associated with the subscription. Valid actions include 'CRE + # + # @param app_id [Integer] The unique identifier for the app associated with the subscription, represented + # + # @param created_at [Time] The date and time when the subscription was created, in ISO 8601 format. + # + # @param object_type_id [String] The identifier for the type of object associated with the subscription, represen + # + # @param subscription_type [Symbol, HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::SubscriptionType] The type of subscription, indicating the nature of events it pertains to. Valid + # + # @param updated_at [Time] The date and time when the subscription was last updated, in ISO 8601 format. + # + # @param action_overrides [Hash{Symbol=>HubSpotSDK::Models::ActionOverrideRequest}] An object containing overrides for actions, where each key is an action and the + # + # @param associated_object_type_ids [Array] An array of strings representing the IDs of associated object types. + # + # @param created_by [Integer] The unique identifier of the user who created the subscription, represented as a + # + # @param deleted_at [Time] The date and time when the subscription was deleted, in ISO 8601 format, if appl + # + # @param list_ids [Array] An array of integers representing the IDs of lists associated with the subscript + # + # @param object_ids [Array] An array of integers representing the IDs of objects associated with the subscri + # + # @param portal_id [Integer] The unique identifier for the portal associated with the subscription, represent + # + # @param properties [Array] An array of strings representing the properties associated with the subscription + + 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] + end + + # The type of subscription, indicating the nature of events it pertains to. Valid + # values include 'OBJECT', 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', + # 'LIST_MEMBERSHIP', and 'GDPR_PRIVACY_DELETION'. + # + # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse#subscription_type + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + APP_LIFECYCLE_EVENT = :APP_LIFECYCLE_EVENT + ASSOCIATION = :ASSOCIATION + EVENT = :EVENT + GDPR_PRIVACY_DELETION = :GDPR_PRIVACY_DELETION + LIST_MEMBERSHIP = :LIST_MEMBERSHIP + OBJECT = :OBJECT + + # @!method self.values + # @return [Array] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rb b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rb new file mode 100644 index 00000000..9f2d6a8b --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + # @see HubSpotSDK::Resources::WebhooksJournal::Subscriptions::Filters#create + class FilterCreateParams < HubSpotSDK::Models::FilterCreateRequest + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!method initialize(request_options: {}) + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rb b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rb new file mode 100644 index 00000000..fd090167 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + # @see HubSpotSDK::Resources::WebhooksJournal::Subscriptions::Filters#delete + class FilterDeleteParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute filter_id + # + # @return [Integer] + required :filter_id, Integer + + # @!method initialize(filter_id:, request_options: {}) + # @param filter_id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rb b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rb new file mode 100644 index 00000000..0bc70ed1 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + # @see HubSpotSDK::Resources::WebhooksJournal::Subscriptions::Filters#get + class FilterGetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute filter_id + # + # @return [Integer] + required :filter_id, Integer + + # @!method initialize(filter_id:, request_options: {}) + # @param filter_id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rb b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rb new file mode 100644 index 00000000..f87b10b8 --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + # @see HubSpotSDK::Resources::WebhooksJournal::Subscriptions::Filters#list + class FilterListParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + # @!attribute subscription_id + # + # @return [Integer] + required :subscription_id, Integer + + # @!method initialize(subscription_id:, request_options: {}) + # @param subscription_id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}] + end + end + end + end +end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rb b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rb new file mode 100644 index 00000000..408abd0c --- /dev/null +++ b/lib/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + # @type [HubSpotSDK::Internal::Type::Converter] + FilterListResponse = HubSpotSDK::Internal::Type::ArrayOf[-> { HubSpotSDK::FilterResponse }] + end + end + end +end diff --git a/lib/hubspot_sdk/resources/auth/oauth.rb b/lib/hubspot_sdk/resources/auth/oauth.rb index ed94671a..5b0a48b4 100644 --- a/lib/hubspot_sdk/resources/auth/oauth.rb +++ b/lib/hubspot_sdk/resources/auth/oauth.rb @@ -18,7 +18,7 @@ class OAuth # @param scope [String] # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [StringIO] + # @return [HubSpotSDK::Models::Auth::AccessTokenResponse, HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse] # # @see HubSpotSDK::Models::Auth::OAuthCreateTokenParams def create_token(params = {}) @@ -26,9 +26,9 @@ def create_token(params = {}) @client.request( method: :post, path: "oauth/2026-03/token", - headers: {"content-type" => "application/x-www-form-urlencoded", "accept" => "*/*"}, + headers: {"content-type" => "application/x-www-form-urlencoded"}, body: parsed, - model: StringIO, + model: HubSpotSDK::Auth::TokenResponseIf, options: options ) end diff --git a/lib/hubspot_sdk/resources/cms/url_redirects.rb b/lib/hubspot_sdk/resources/cms/url_redirects.rb index ddd76a66..408ae85e 100644 --- a/lib/hubspot_sdk/resources/cms/url_redirects.rb +++ b/lib/hubspot_sdk/resources/cms/url_redirects.rb @@ -175,6 +175,71 @@ def delete(url_redirect_id, params = {}) ) end + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::Cms::URLRedirectCreateURLMappingParams} for more details. + # + # @overload create_url_mapping(id:, created:, destination:, is_match_full_url:, is_match_query_string:, is_only_after_not_found:, is_pattern:, is_protocol_agnostic:, is_trailing_slash_optional:, precedence:, redirect_style:, route_prefix:, updated:, request_options: {}) + # + # @param id [String] The unique ID of this URL redirect. + # + # @param created [Time] The date and time when the URL mapping was initially created. + # + # @param destination [String] The destination URL, where the target URL should be redirected if it matches the + # + # @param is_match_full_url [Boolean] Whether the `routePrefix` should match on the entire URL, including the domain. + # + # @param is_match_query_string [Boolean] Whether the `routePrefix` should match on the entire URL path, including the que + # + # @param is_only_after_not_found [Boolean] Whether the URL redirect mapping should apply only if a live page on the URL isn + # + # @param is_pattern [Boolean] Whether the `routePrefix` should match based on pattern. + # + # @param is_protocol_agnostic [Boolean] Whether the `routePrefix` should match both HTTP and HTTPS protocols. + # + # @param is_trailing_slash_optional [Boolean] Whether a trailing slash will be ignored. + # + # @param precedence [Integer] Used to prioritize URL redirection. If a given URL matches more than one redirec + # + # @param redirect_style [Integer] The type of redirect to create. Options include: 301 (permanent), 302 (temporary + # + # @param route_prefix [String] The target incoming URL, path, or pattern to match for redirection. + # + # @param updated [Time] The date and time when the URL mapping was last modified. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [StringIO] + # + # @see HubSpotSDK::Models::Cms::URLRedirectCreateURLMappingParams + def create_url_mapping(params) + parsed, options = HubSpotSDK::Cms::URLRedirectCreateURLMappingParams.dump_request(params) + @client.request( + method: :post, + path: "cms/url-redirects/2026-03/url-mappings", + headers: {"content-type" => "*/*", "accept" => "*/*"}, + body: parsed, + model: StringIO, + options: options + ) + end + + # @overload delete_url_mapping(id, request_options: {}) + # + # @param id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [nil] + # + # @see HubSpotSDK::Models::Cms::URLRedirectDeleteURLMappingParams + def delete_url_mapping(id, params = {}) + @client.request( + method: :delete, + path: ["cms/url-redirects/2026-03/url-mappings/%1$s", id], + model: NilClass, + options: params[:request_options] + ) + end + # Returns the details for a single existing URL redirect by ID. # # @overload get(url_redirect_id, request_options: {}) @@ -194,6 +259,41 @@ def get(url_redirect_id, params = {}) ) end + # @overload get_url_mapping(id, request_options: {}) + # + # @param id [Integer] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [StringIO] + # + # @see HubSpotSDK::Models::Cms::URLRedirectGetURLMappingParams + def get_url_mapping(id, params = {}) + @client.request( + method: :get, + path: ["cms/url-redirects/2026-03/url-mappings/%1$s", id], + headers: {"accept" => "*/*"}, + model: StringIO, + options: params[:request_options] + ) + end + + # @overload list_url_mappings(request_options: {}) + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [StringIO] + # + # @see HubSpotSDK::Models::Cms::URLRedirectListURLMappingsParams + def list_url_mappings(params = {}) + @client.request( + method: :get, + path: "cms/url-redirects/2026-03/url-mappings", + headers: {"accept" => "*/*"}, + model: StringIO, + options: params[:request_options] + ) + end + # @api private # # @param client [HubSpotSDK::Client] diff --git a/lib/hubspot_sdk/resources/conversations/visitor_identification.rb b/lib/hubspot_sdk/resources/conversations/visitor_identification.rb index a1b10cf2..673f7387 100644 --- a/lib/hubspot_sdk/resources/conversations/visitor_identification.rb +++ b/lib/hubspot_sdk/resources/conversations/visitor_identification.rb @@ -14,10 +14,12 @@ class VisitorIdentification # the chat widget, so that it treats the visitor as a known contact. This allows # support agents to recognize and assist the visitor more effectively. # - # @overload generate_token(email:, first_name: nil, last_name: nil, request_options: {}) + # @overload generate_token(email:, hs_customer_agent_context:, first_name: nil, last_name: nil, request_options: {}) # # @param email [String] The email of the visitor that you wish to identify # + # @param hs_customer_agent_context [Hash{Symbol=>String}] + # # @param first_name [String] The first name of the visitor that you wish to identify. This value will only be # # @param last_name [String] The last name of the visitor that you wish to identify. This value will only be diff --git a/lib/hubspot_sdk/resources/crm/lists.rb b/lib/hubspot_sdk/resources/crm/lists.rb index ca337421..ef02e07a 100644 --- a/lib/hubspot_sdk/resources/crm/lists.rb +++ b/lib/hubspot_sdk/resources/crm/lists.rb @@ -17,7 +17,7 @@ class Lists # # @param custom_properties [Hash{Symbol=>String}] The list of custom properties to tie to the list. Custom property name is the ke # - # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Filter branch object containing filtering criteria for the list + # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Filter branch object containing filtering criteria for the list # # @param list_folder_id [Integer] The ID of the folder that the list should be created in. If left blank, then the # @@ -615,7 +615,7 @@ def schedule_conversion(list_id, params = {}) # # @param list_id [String] Path param # - # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Body param: Updated filtering criteria for the list + # @param filter_branch [HubSpotSDK::Models::Crm::PublicOrFilterBranch, HubSpotSDK::Models::Crm::PublicAndFilterBranch, HubSpotSDK::Models::Crm::PublicNotAllFilterBranch, HubSpotSDK::Models::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Models::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Models::Crm::PublicUnifiedEventsFilterBranch, HubSpotSDK::Models::Crm::PublicAssociationFilterBranch] Body param: Updated filtering criteria for the list # # @param enroll_objects_in_workflows [Boolean] Query param # diff --git a/lib/hubspot_sdk/resources/webhooks.rb b/lib/hubspot_sdk/resources/webhooks.rb index 30c707e6..559f24f1 100644 --- a/lib/hubspot_sdk/resources/webhooks.rb +++ b/lib/hubspot_sdk/resources/webhooks.rb @@ -35,19 +35,18 @@ def create_batch_event_subscriptions(app_id, params) # {HubSpotSDK::Models::Webhooks::WebhookCreateCrmSnapshotsParams} for more # details. # - # Create a batch of CRM object snapshots for the specified portal. This endpoint - # allows you to capture the state of CRM objects at a specific point in time, - # which can be useful for auditing or historical analysis. The request requires a - # list of CRM object snapshot requests, each specifying the portal ID, object ID, - # object type ID, and properties to include in the snapshot. + # Create a batch of CRM object snapshots in HubSpot. This endpoint is used to + # capture the current state of specified CRM objects for later reference or + # analysis. It requires a JSON payload containing the details of the CRM objects + # to snapshot. This operation is exempt from daily and ten-secondly rate limits. # # @overload create_crm_snapshots(snapshot_requests:, request_options: {}) # - # @param snapshot_requests [Array] An array of CrmObjectSnapshotRequest objects, each representing a request to cre + # @param snapshot_requests [Array] An array of CrmObjectSnapshotRequest objects, each representing a request to cre # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::CrmObjectSnapshotBatchResponse] + # @return [HubSpotSDK::Models::CrmObjectSnapshotBatchResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookCreateCrmSnapshotsParams def create_crm_snapshots(params) @@ -56,7 +55,7 @@ def create_crm_snapshots(params) method: :post, path: "webhooks-journal/snapshots/2026-03/crm", body: parsed, - model: HubSpotSDK::Webhooks::CrmObjectSnapshotBatchResponse, + model: HubSpotSDK::CrmObjectSnapshotBatchResponse, options: options ) end @@ -97,18 +96,19 @@ def create_event_subscription(app_id, params) ) end - # Create a new webhook subscription for the specified portal in the HubSpot - # account. This endpoint allows you to define the subscription details, including - # the types of events you want to subscribe to. The request body must include the - # necessary subscription information as defined by the SubscriptionUpsertRequest - # schema. + # Create a new subscription in the Webhooks Journal for the specified version. + # This endpoint allows you to define the subscription details by providing the + # necessary information in the request body. It supports various types of + # subscriptions, including object, association, event, app lifecycle event, list + # membership, and GDPR privacy deletion. Ensure that all required fields are + # included in the request to successfully create a subscription. # # @overload create_journal_subscription(subscription_upsert_request:, request_options: {}) # - # @param subscription_upsert_request [HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest, HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest, HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest, HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest, HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest] + # @param subscription_upsert_request [HubSpotSDK::Models::ObjectSubscriptionUpsertRequest, HubSpotSDK::Models::AssociationSubscriptionUpsertRequest, HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest, HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest, HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest] # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::SubscriptionResponse1] + # @return [HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookCreateJournalSubscriptionParams def create_journal_subscription(params) @@ -117,7 +117,7 @@ def create_journal_subscription(params) method: :post, path: "webhooks-journal/subscriptions/2026-03", body: parsed[:subscription_upsert_request], - model: HubSpotSDK::Webhooks::SubscriptionResponse1, + model: HubSpotSDK::WebhooksJournal::SubscriptionResponse, options: options ) end @@ -126,20 +126,20 @@ def create_journal_subscription(params) # {HubSpotSDK::Models::Webhooks::WebhookCreateSubscriptionFilterParams} for more # details. # - # Create a new filter for a webhook subscription in your HubSpot account. This - # endpoint allows you to define specific conditions that a webhook event must meet - # to trigger the subscription. It is useful for managing and customizing the - # behavior of webhook subscriptions based on specific criteria. + # Create a new filter for a specific webhook subscription in the HubSpot account. + # This endpoint allows you to define conditions that determine when a webhook + # should be triggered. The filter is associated with a subscription identified by + # its ID, and the request must include the filter details. # # @overload create_subscription_filter(filter:, subscription_id:, request_options: {}) # - # @param filter [HubSpotSDK::Models::Webhooks::Filter] Defines a single condition for searching CRM objects, specifying the property to + # @param filter [HubSpotSDK::Models::Filter] Defines a single condition for searching CRM objects, specifying the property to # # @param subscription_id [Integer] The unique identifier of the subscription to which the filter will be applied. I # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::FilterCreateResponse] + # @return [HubSpotSDK::Models::FilterCreateResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookCreateSubscriptionFilterParams def create_subscription_filter(params) @@ -148,7 +148,7 @@ def create_subscription_filter(params) method: :post, path: "webhooks-journal/subscriptions/2026-03/filters", body: parsed, - model: HubSpotSDK::Webhooks::FilterCreateResponse, + model: HubSpotSDK::FilterCreateResponse, options: options ) end @@ -180,13 +180,17 @@ def delete_event_subscription(subscription_id, params) ) end + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::Webhooks::WebhookDeleteJournalSubscriptionParams} for more + # details. + # # Delete a specific webhook journal subscription using its unique identifier. This # operation is useful for managing and cleaning up subscriptions that are no - # longer needed or relevant. + # longer needed in your HubSpot account. # # @overload delete_journal_subscription(subscription_id, request_options: {}) # - # @param subscription_id [Integer] The unique identifier of the subscription to delete. + # @param subscription_id [Integer] The unique identifier of the subscription to delete. It must be provided as an i # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -207,12 +211,13 @@ def delete_journal_subscription(subscription_id, params = {}) # for more details. # # Delete a webhook journal subscription for a specific portal. This operation - # removes the subscription associated with the given portalId, and no content is - # returned upon successful deletion. + # removes the subscription associated with the given portalId, ensuring that no + # further webhook events are sent for this portal. Use this endpoint to manage and + # clean up subscriptions that are no longer needed. # # @overload delete_journal_subscription_for_portal(portal_id, request_options: {}) # - # @param portal_id [Integer] The unique identifier of the portal whose webhook journal subscription is to be + # @param portal_id [Integer] The unique identifier of the portal for which the webhook journal subscription i # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -249,10 +254,9 @@ def delete_settings(app_id, params = {}) ) end - # Delete a specific filter associated with a webhook journal subscription. This - # operation is useful for managing and cleaning up filters that are no longer - # needed in your subscription setup. The endpoint requires the unique identifier - # of the filter to be deleted. + # Remove a specific filter from the webhooks journal subscriptions. This operation + # is useful for managing and cleaning up filters that are no longer needed. Once + # deleted, the filter cannot be recovered. # # @overload delete_subscription_filter(filter_id, request_options: {}) # @@ -276,19 +280,20 @@ def delete_subscription_filter(filter_id, params = {}) # {HubSpotSDK::Models::Webhooks::WebhookGetEarliestJournalBatchParams} for more # details. # - # Retrieve the earliest batch of webhook journal entries up to the specified - # count. This endpoint is useful for fetching historical webhook data in batches, - # allowing you to process or analyze the earliest entries first. + # Retrieve the earliest batch of webhook journal entries for a specified count. + # This endpoint is useful for accessing historical webhook data in batches, + # allowing you to process or analyze older entries. The number of entries + # retrieved is determined by the count parameter. # # @overload get_earliest_journal_batch(count, install_portal_id: nil, request_options: {}) # - # @param count [Integer] The maximum number of journal entries to retrieve in the batch. This must be an + # @param count [Integer] The number of earliest journal entries to retrieve. This must be an integer with # - # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries by. This + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value that specifies which # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse] + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetEarliestJournalBatchParams def get_earliest_journal_batch(count, params = {}) @@ -298,7 +303,7 @@ def get_earliest_journal_batch(count, params = {}) method: :get, path: ["webhooks-journal/journal/2026-03/batch/earliest/%1$s", count], query: query.transform_keys(install_portal_id: "installPortalId"), - model: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse, + model: HubSpotSDK::BatchResponseJournalFetchResponse, options: options ) end @@ -307,13 +312,13 @@ def get_earliest_journal_batch(count, params = {}) # {HubSpotSDK::Models::Webhooks::WebhookGetEarliestJournalEntryParams} for more # details. # - # Retrieve the earliest entry from the webhooks journal for the specified version. - # This endpoint is useful for accessing the oldest records available in the - # journal, which can be helpful for auditing or historical data analysis. + # Retrieve the earliest entry from the webhooks journal for the specified portal. + # This endpoint is useful for accessing the first recorded webhook event in the + # journal, which can be helpful for auditing or debugging purposes. # # @overload get_earliest_journal_entry(install_portal_id: nil, request_options: {}) # - # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries. It is an intege + # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries by. This is an i # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -337,19 +342,20 @@ def get_earliest_journal_entry(params = {}) # {HubSpotSDK::Models::Webhooks::WebhookGetEarliestLocalJournalBatchParams} for # more details. # - # Retrieve the earliest batch of webhook journal entries based on the specified - # count. This endpoint is useful for fetching a specific number of the earliest - # entries in the webhook journal for analysis or processing. + # Retrieve the earliest batch of webhook journal entries. This endpoint is useful + # for accessing the oldest available data in the webhook journal, allowing users + # to process or analyze historical webhook events. The number of entries to fetch + # is specified by the 'count' path parameter. # # @overload get_earliest_local_journal_batch(count, install_portal_id: nil, request_options: {}) # - # @param count [Integer] The number of earliest entries to retrieve from the webhook journal. Must be an + # @param count [Integer] The number of earliest webhook journal entries to retrieve. This is a required i # - # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This is an integer value. + # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse] + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetEarliestLocalJournalBatchParams def get_earliest_local_journal_batch(count, params = {}) @@ -359,7 +365,7 @@ def get_earliest_local_journal_batch(count, params = {}) method: :get, path: ["webhooks-journal/journal-local/2026-03/batch/earliest/%1$s", count], query: query.transform_keys(install_portal_id: "installPortalId"), - model: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse, + model: HubSpotSDK::BatchResponseJournalFetchResponse, options: options ) end @@ -368,13 +374,13 @@ def get_earliest_local_journal_batch(count, params = {}) # {HubSpotSDK::Models::Webhooks::WebhookGetEarliestLocalJournalEntryParams} for # more details. # - # Retrieve the earliest entry from the webhooks journal for the specified portal. - # This endpoint is useful for accessing the oldest records in the journal, which - # can be helpful for auditing or tracking purposes. + # Retrieve the earliest webhook journal entries for the specified portal. This + # endpoint can be used to access the oldest records available in the webhook + # journal, which may be useful for auditing or historical analysis. # # @overload get_earliest_local_journal_entry(install_portal_id: nil, request_options: {}) # - # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries by. This paramet + # @param install_portal_id [Integer] The ID of the portal for which to retrieve the earliest webhook journal entries. # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -425,20 +431,21 @@ def get_event_subscription(subscription_id, params) # {HubSpotSDK::Models::Webhooks::WebhookGetJournalBatchByRequestParams} for more # details. # - # Perform a batch read operation on the webhooks journal for the specified date. - # This endpoint allows you to retrieve multiple entries from the webhooks journal - # in a single request, which can be useful for processing large amounts of data - # efficiently. + # Execute a batch read operation on the webhooks journal for the specified date, + # 2026-03. This endpoint allows you to retrieve multiple entries from the webhooks + # journal in a single request, which can be useful for processing large amounts of + # data efficiently. Ensure that the request body is provided in the required + # format. # # @overload get_journal_batch_by_request(inputs:, install_portal_id: nil, request_options: {}) # # @param inputs [Array] Body param: Strings to input. # - # @param install_portal_id [Integer] Query param: The ID of the portal where the webhooks are installed. This is an i + # @param install_portal_id [Integer] Query param: An integer representing the ID of the portal installation for which # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse] + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetJournalBatchByRequestParams def get_journal_batch_by_request(params) @@ -450,7 +457,7 @@ def get_journal_batch_by_request(params) path: "webhooks-journal/journal/2026-03/batch/read", query: query.transform_keys(install_portal_id: "installPortalId"), body: parsed.except(*query_params), - model: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse, + model: HubSpotSDK::BatchResponseJournalFetchResponse, options: options ) end @@ -460,20 +467,20 @@ def get_journal_batch_by_request(params) # details. # # Retrieve a batch of webhook journal entries starting from a specified offset. - # This endpoint allows you to fetch a specified number of entries, making it - # useful for paginating through large sets of webhook journal data. + # This endpoint allows you to fetch a defined number of entries, which can be + # useful for processing large datasets in manageable chunks. # # @overload get_journal_batch_from_offset(count, offset:, install_portal_id: nil, request_options: {}) # - # @param count [Integer] Path param: The number of journal entries to fetch in the batch. This is an inte + # @param count [Integer] Path param: The number of journal entries to retrieve. This must be an integer w # - # @param offset [String] Path param: The starting point for fetching the next batch of journal entries. T + # @param offset [String] Path param: The starting point for fetching the journal entries. This is a strin # - # @param install_portal_id [Integer] Query param: The ID of the portal installation. This is an integer value used to + # @param install_portal_id [Integer] Query param: The ID of the portal installation. This is an integer value. # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse] + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetJournalBatchFromOffsetParams def get_journal_batch_from_offset(count, params) @@ -487,14 +494,15 @@ def get_journal_batch_from_offset(count, params) method: :get, path: ["webhooks-journal/journal/2026-03/batch/%1$s/next/%2$s", offset, count], query: query.transform_keys(install_portal_id: "installPortalId"), - model: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse, + model: HubSpotSDK::BatchResponseJournalFetchResponse, options: options ) end - # Retrieve the status of a specific webhook journal entry using its status ID. - # This endpoint is useful for checking the current state of a webhook process, - # such as whether it is pending, in progress, completed, failed, or expired. + # Retrieve the status of a specific webhook journal entry using its unique status + # ID. This endpoint provides detailed information about the status, including + # whether it is pending, in progress, completed, failed, or expired. It is useful + # for monitoring and managing the state of webhook journal entries. # # @overload get_journal_status(status_id, request_options: {}) # @@ -502,36 +510,36 @@ def get_journal_batch_from_offset(count, params) # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::SnapshotStatusResponse] + # @return [HubSpotSDK::Models::SnapshotStatusResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetJournalStatusParams def get_journal_status(status_id, params = {}) @client.request( method: :get, path: ["webhooks-journal/journal/2026-03/status/%1$s", status_id], - model: HubSpotSDK::Webhooks::SnapshotStatusResponse, + model: HubSpotSDK::SnapshotStatusResponse, options: params[:request_options] ) end # Retrieve details of a specific webhook subscription using its unique identifier. # This endpoint is useful for obtaining information about a particular - # subscription's configuration and status within the HubSpot account. + # subscription, such as its actions, object type, and associated properties. # # @overload get_journal_subscription(subscription_id, request_options: {}) # - # @param subscription_id [Integer] The unique identifier of the subscription to retrieve. It must be an integer. + # @param subscription_id [Integer] The unique identifier of the subscription to retrieve. # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::SubscriptionResponse1] + # @return [HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetJournalSubscriptionParams def get_journal_subscription(subscription_id, params = {}) @client.request( method: :get, path: ["webhooks-journal/subscriptions/2026-03/%1$s", subscription_id], - model: HubSpotSDK::Webhooks::SubscriptionResponse1, + model: HubSpotSDK::WebhooksJournal::SubscriptionResponse, options: params[:request_options] ) end @@ -540,19 +548,20 @@ def get_journal_subscription(subscription_id, params = {}) # {HubSpotSDK::Models::Webhooks::WebhookGetLatestJournalBatchParams} for more # details. # - # Retrieve the latest batch of webhook journal entries. This endpoint allows you - # to specify the number of entries to fetch, providing a way to access recent - # webhook activity within your HubSpot account. + # Retrieve the latest batch of webhook journal entries up to the specified count. + # This endpoint is useful for fetching recent webhook data for analysis or + # processing. The count parameter determines the maximum number of entries to + # return. # # @overload get_latest_journal_batch(count, install_portal_id: nil, request_options: {}) # - # @param count [Integer] The number of journal entries to retrieve. This is a required integer parameter + # @param count [Integer] The maximum number of journal entries to retrieve. This is a required integer pa # - # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value used to identify the + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value used to specify the # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse] + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetLatestJournalBatchParams def get_latest_journal_batch(count, params = {}) @@ -562,7 +571,7 @@ def get_latest_journal_batch(count, params = {}) method: :get, path: ["webhooks-journal/journal/2026-03/batch/latest/%1$s", count], query: query.transform_keys(install_portal_id: "installPortalId"), - model: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse, + model: HubSpotSDK::BatchResponseJournalFetchResponse, options: options ) end @@ -572,13 +581,12 @@ def get_latest_journal_batch(count, params = {}) # details. # # Retrieve the latest entries from the webhooks journal for the specified portal. - # This endpoint is useful for accessing the most recent webhook events processed - # by your HubSpot account. It allows you to filter the results by the portal ID to - # ensure you are retrieving data relevant to a specific installation. + # This endpoint is useful for accessing the most recent webhook events and their + # statuses, allowing you to monitor and debug webhook activity effectively. # # @overload get_latest_journal_entry(install_portal_id: nil, request_options: {}) # - # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries. It is an intege + # @param install_portal_id [Integer] The unique identifier of the portal installation for which to retrieve the lates # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -602,19 +610,19 @@ def get_latest_journal_entry(params = {}) # {HubSpotSDK::Models::Webhooks::WebhookGetLatestLocalJournalBatchParams} for more # details. # - # Retrieve the latest batch of webhook journal entries. This endpoint is useful - # for accessing the most recent data entries processed by the webhook journal. It - # requires specifying the number of entries to retrieve. + # Retrieve the latest batch of webhook journal entries. This endpoint allows you + # to specify the number of entries to fetch, providing a way to access the most + # recent webhook events processed by your HubSpot account. # # @overload get_latest_local_journal_batch(count, install_portal_id: nil, request_options: {}) # # @param count [Integer] The number of journal entries to retrieve. Must be an integer with a minimum val # - # @param install_portal_id [Integer] The ID of the portal installation. This parameter is optional and used to filter + # @param install_portal_id [Integer] The ID of the portal where the webhook journal is installed. This parameter is o # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse] + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetLatestLocalJournalBatchParams def get_latest_local_journal_batch(count, params = {}) @@ -624,7 +632,7 @@ def get_latest_local_journal_batch(count, params = {}) method: :get, path: ["webhooks-journal/journal-local/2026-03/batch/latest/%1$s", count], query: query.transform_keys(install_portal_id: "installPortalId"), - model: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse, + model: HubSpotSDK::BatchResponseJournalFetchResponse, options: options ) end @@ -635,11 +643,12 @@ def get_latest_local_journal_batch(count, params = {}) # # Retrieve the latest entries from the webhooks journal for the specified portal. # This endpoint is useful for accessing the most recent webhook events that have - # been logged, allowing you to process or analyze them as needed. + # been logged, allowing for real-time monitoring or debugging of webhook + # activities. # # @overload get_latest_local_journal_entry(install_portal_id: nil, request_options: {}) # - # @param install_portal_id [Integer] The ID of the portal for which to retrieve the latest journal entries. This para + # @param install_portal_id [Integer] The ID of the portal for which to retrieve the latest journal entries. This is a # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -663,11 +672,10 @@ def get_latest_local_journal_entry(params = {}) # {HubSpotSDK::Models::Webhooks::WebhookGetLocalJournalBatchByRequestParams} for # more details. # - # Perform a batch read operation on the webhooks journal. This endpoint allows you - # to read multiple entries from the journal in a single request. It requires a - # JSON request body specifying the inputs to be read. The response includes the - # results of the batch read operation, and may return multiple statuses if there - # are errors. + # Execute a batch read operation on the webhooks journal. This endpoint allows you + # to retrieve a batch of webhook journal entries by providing the necessary input + # data. It is useful for processing multiple records in a single request, + # streamlining data retrieval tasks. # # @overload get_local_journal_batch_by_request(inputs:, install_portal_id: nil, request_options: {}) # @@ -677,7 +685,7 @@ def get_latest_local_journal_entry(params = {}) # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse] + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetLocalJournalBatchByRequestParams def get_local_journal_batch_by_request(params) @@ -689,7 +697,7 @@ def get_local_journal_batch_by_request(params) path: "webhooks-journal/journal-local/2026-03/batch/read", query: query.transform_keys(install_portal_id: "installPortalId"), body: parsed.except(*query_params), - model: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse, + model: HubSpotSDK::BatchResponseJournalFetchResponse, options: options ) end @@ -699,20 +707,20 @@ def get_local_journal_batch_by_request(params) # more details. # # Retrieve a batch of webhook journal entries starting from a specified offset. - # This endpoint allows you to fetch a defined number of entries, facilitating the - # processing of webhook data in manageable chunks. + # This endpoint is useful for paginating through large sets of webhook data. The + # number of entries returned is determined by the 'count' parameter. # # @overload get_local_journal_batch_from_offset(count, offset:, install_portal_id: nil, request_options: {}) # - # @param count [Integer] Path param: The number of journal entries to retrieve. This is an integer value + # @param count [Integer] Path param: The number of journal entries to retrieve in this batch. Must be an # - # @param offset [String] Path param: The starting point for fetching the batch of journal entries. This i + # @param offset [String] Path param: The starting point for the batch retrieval, specified as a string. # - # @param install_portal_id [Integer] Query param: The ID of the portal installation. This is an integer value used to + # @param install_portal_id [Integer] Query param: The ID of the portal where the webhooks are installed. This is an o # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse] + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetLocalJournalBatchFromOffsetParams def get_local_journal_batch_from_offset(count, params) @@ -726,29 +734,30 @@ def get_local_journal_batch_from_offset(count, params) method: :get, path: ["webhooks-journal/journal-local/2026-03/batch/%1$s/next/%2$s", offset, count], query: query.transform_keys(install_portal_id: "installPortalId"), - model: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse, + model: HubSpotSDK::BatchResponseJournalFetchResponse, options: options ) end # Retrieve the status of a specific webhook journal entry using its unique status - # ID. This endpoint is useful for monitoring the progress or completion of webhook - # processing tasks. + # ID. This endpoint is useful for monitoring the progress or outcome of webhook + # journal entries, allowing you to check if an entry is pending, in progress, + # completed, failed, or expired. # # @overload get_local_journal_status(status_id, request_options: {}) # - # @param status_id [String] The unique identifier (UUID) of the status to retrieve. + # @param status_id [String] The unique identifier of the status to retrieve. It should be in UUID format. # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::SnapshotStatusResponse] + # @return [HubSpotSDK::Models::SnapshotStatusResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetLocalJournalStatusParams def get_local_journal_status(status_id, params = {}) @client.request( method: :get, path: ["webhooks-journal/journal-local/2026-03/status/%1$s", status_id], - model: HubSpotSDK::Webhooks::SnapshotStatusResponse, + model: HubSpotSDK::SnapshotStatusResponse, options: params[:request_options] ) end @@ -757,15 +766,15 @@ def get_local_journal_status(status_id, params = {}) # {HubSpotSDK::Models::Webhooks::WebhookGetNextJournalEntriesParams} for more # details. # - # Retrieve the next batch of webhook journal entries starting from a specified - # offset. This endpoint is useful for paginating through large sets of webhook - # data, allowing you to continue fetching entries from where you last left off. + # Retrieve the next set of entries from the webhooks journal starting from a + # specified offset. This endpoint is useful for paginating through journal entries + # to process or analyze webhook events sequentially. # # @overload get_next_journal_entries(offset, install_portal_id: nil, request_options: {}) # - # @param offset [String] The offset from which to start retrieving the next batch of webhook journal entr + # @param offset [String] The offset string indicating the starting point for retrieving the next set of j # - # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is + # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This is an integer value. # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -790,14 +799,14 @@ def get_next_journal_entries(offset, params = {}) # details. # # Retrieve the next set of webhook journal entries starting from a specified - # offset. This endpoint is useful for paginating through webhook journal data in a - # sequential manner, allowing you to fetch entries beyond a given point. + # offset. This endpoint is useful for paginating through large sets of webhook + # data, allowing you to continue from where a previous request left off. # # @overload get_next_local_journal_entries(offset, install_portal_id: nil, request_options: {}) # - # @param offset [String] The starting point for retrieving the next set of journal entries. This is a str + # @param offset [String] The starting point for retrieving the next set of webhook journal entries. This # - # @param install_portal_id [Integer] The ID of the portal where the webhook is installed. This is an integer value. + # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -838,24 +847,25 @@ def get_settings(app_id, params = {}) ) end - # Retrieve details of a specific filter associated with a webhook subscription in - # the HubSpot account. This endpoint is useful for accessing the configuration and - # conditions of a filter by its unique identifier. + # Retrieve a specific filter associated with a webhook journal subscription. This + # endpoint allows you to access the details of the filter identified by the + # filterId, which is useful for managing and understanding the conditions applied + # to webhook events. # # @overload get_subscription_filter(filter_id, request_options: {}) # - # @param filter_id [Integer] The unique identifier of the filter to retrieve. + # @param filter_id [Integer] The unique identifier of the filter to retrieve. It is an integer value. # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::FilterResponse] + # @return [HubSpotSDK::Models::FilterResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetSubscriptionFilterParams def get_subscription_filter(filter_id, params = {}) @client.request( method: :get, path: ["webhooks-journal/subscriptions/2026-03/filters/%1$s", filter_id], - model: HubSpotSDK::Webhooks::FilterResponse, + model: HubSpotSDK::FilterResponse, options: params[:request_options] ) end @@ -880,46 +890,49 @@ def list_event_subscriptions(app_id, params = {}) ) end - # Retrieve a list of webhook journal subscriptions for the specified API version. - # This endpoint provides details about each subscription, including actions, - # object types, and associated properties. It is useful for managing and reviewing - # current webhook subscriptions. + # Retrieve a list of webhook journal subscriptions for the specified version. This + # endpoint allows you to view all active subscriptions without pagination. It is + # useful for monitoring and managing webhook subscriptions in your HubSpot + # account. # # @overload list_journal_subscriptions(request_options: {}) # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::Webhooks::CollectionResponseSubscriptionResponseNoPaging] + # @return [HubSpotSDK::Models::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging] # # @see HubSpotSDK::Models::Webhooks::WebhookListJournalSubscriptionsParams def list_journal_subscriptions(params = {}) @client.request( method: :get, path: "webhooks-journal/subscriptions/2026-03", - model: HubSpotSDK::Webhooks::CollectionResponseSubscriptionResponseNoPaging, + model: HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging, options: params[:request_options] ) end - # Retrieve the filters associated with a specific webhook subscription in the - # HubSpot account. This endpoint is useful for obtaining detailed information - # about the filters applied to a given subscription, identified by its - # subscription ID. + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::Webhooks::WebhookListSubscriptionFiltersParams} for more + # details. + # + # Retrieve the filters associated with a specific webhook subscription. This + # endpoint allows you to view the filters applied to a subscription, which can + # help in managing and understanding the conditions set for webhook events. # # @overload list_subscription_filters(subscription_id, request_options: {}) # - # @param subscription_id [Integer] The unique identifier of the subscription for which to retrieve filters. + # @param subscription_id [Integer] The unique identifier of the subscription for which to retrieve filters. This is # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Array] + # @return [Array] # # @see HubSpotSDK::Models::Webhooks::WebhookListSubscriptionFiltersParams def list_subscription_filters(subscription_id, params = {}) @client.request( method: :get, path: ["webhooks-journal/subscriptions/2026-03/filters/subscription/%1$s", subscription_id], - model: HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::FilterResponse], + model: HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::FilterResponse], options: params[:request_options] ) end diff --git a/lib/hubspot_sdk/resources/webhooks_journal.rb b/lib/hubspot_sdk/resources/webhooks_journal.rb new file mode 100644 index 00000000..37c6a579 --- /dev/null +++ b/lib/hubspot_sdk/resources/webhooks_journal.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Resources + class WebhooksJournal + # @return [HubSpotSDK::Resources::WebhooksJournal::Journal] + attr_reader :journal + + # @return [HubSpotSDK::Resources::WebhooksJournal::JournalLocal] + attr_reader :journal_local + + # @return [HubSpotSDK::Resources::WebhooksJournal::Snapshots] + attr_reader :snapshots + + # @return [HubSpotSDK::Resources::WebhooksJournal::Subscriptions] + attr_reader :subscriptions + + # @api private + # + # @param client [HubSpotSDK::Client] + def initialize(client:) + @client = client + @journal = HubSpotSDK::Resources::WebhooksJournal::Journal.new(client: client) + @journal_local = HubSpotSDK::Resources::WebhooksJournal::JournalLocal.new(client: client) + @snapshots = HubSpotSDK::Resources::WebhooksJournal::Snapshots.new(client: client) + @subscriptions = HubSpotSDK::Resources::WebhooksJournal::Subscriptions.new(client: client) + end + end + end +end diff --git a/lib/hubspot_sdk/resources/webhooks_journal/journal.rb b/lib/hubspot_sdk/resources/webhooks_journal/journal.rb new file mode 100644 index 00000000..2b421a74 --- /dev/null +++ b/lib/hubspot_sdk/resources/webhooks_journal/journal.rb @@ -0,0 +1,105 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Resources + class WebhooksJournal + class Journal + # @return [HubSpotSDK::Resources::WebhooksJournal::Journal::Batch] + attr_reader :batch + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalGetEarliestParams} for more + # details. + # + # Retrieve the earliest entry from the webhooks journal for the specified portal. + # This endpoint is useful for accessing the first recorded webhook event in the + # journal, which can be helpful for auditing or debugging purposes. + # + # @overload get_earliest(install_portal_id: nil, request_options: {}) + # + # @param install_portal_id [Integer] The ID of the portal installation to filter the journal entries by. This is an i + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [StringIO] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalGetEarliestParams + def get_earliest(params = {}) + parsed, options = HubSpotSDK::WebhooksJournal::JournalGetEarliestParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: "webhooks-journal/journal/2026-03/earliest", + query: query.transform_keys(install_portal_id: "installPortalId"), + headers: {"accept" => "*/*"}, + model: StringIO, + options: options + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalGetNextFromOffsetParams} for more + # details. + # + # Retrieve the next set of entries from the webhooks journal starting from a + # specified offset. This endpoint is useful for paginating through journal entries + # to process or analyze webhook events sequentially. + # + # @overload get_next_from_offset(offset, install_portal_id: nil, request_options: {}) + # + # @param offset [String] The offset string indicating the starting point for retrieving the next set of j + # + # @param install_portal_id [Integer] The ID of the portal where the webhooks are installed. This is an integer value. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [StringIO] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalGetNextFromOffsetParams + def get_next_from_offset(offset, params = {}) + parsed, options = HubSpotSDK::WebhooksJournal::JournalGetNextFromOffsetParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: ["webhooks-journal/journal/2026-03/offset/%1$s/next", offset], + query: query.transform_keys(install_portal_id: "installPortalId"), + headers: {"accept" => "*/*"}, + model: StringIO, + options: options + ) + end + + # Retrieve the status of a specific webhook journal entry using its unique status + # ID. This endpoint provides detailed information about the status, including + # whether it is pending, in progress, completed, failed, or expired. It is useful + # for monitoring and managing the state of webhook journal entries. + # + # @overload get_status(status_id, request_options: {}) + # + # @param status_id [String] The unique identifier (UUID) of the status to retrieve. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::SnapshotStatusResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalGetStatusParams + def get_status(status_id, params = {}) + @client.request( + method: :get, + path: ["webhooks-journal/journal/2026-03/status/%1$s", status_id], + model: HubSpotSDK::SnapshotStatusResponse, + options: params[:request_options] + ) + end + + # @api private + # + # @param client [HubSpotSDK::Client] + def initialize(client:) + @client = client + @batch = HubSpotSDK::Resources::WebhooksJournal::Journal::Batch.new(client: client) + end + end + end + end +end diff --git a/lib/hubspot_sdk/resources/webhooks_journal/journal/batch.rb b/lib/hubspot_sdk/resources/webhooks_journal/journal/batch.rb new file mode 100644 index 00000000..599ae67b --- /dev/null +++ b/lib/hubspot_sdk/resources/webhooks_journal/journal/batch.rb @@ -0,0 +1,153 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Resources + class WebhooksJournal + class Journal + class Batch + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetParams} for more details. + # + # Execute a batch read operation on the webhooks journal for the specified date, + # 2026-03. This endpoint allows you to retrieve multiple entries from the webhooks + # journal in a single request, which can be useful for processing large amounts of + # data efficiently. Ensure that the request body is provided in the required + # format. + # + # @overload get(inputs:, install_portal_id: nil, request_options: {}) + # + # @param inputs [Array] Body param: Strings to input. + # + # @param install_portal_id [Integer] Query param: An integer representing the ID of the portal installation for which + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetParams + def get(params) + query_params = [:install_portal_id] + parsed, options = HubSpotSDK::WebhooksJournal::Journal::BatchGetParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed.slice(*query_params)) + @client.request( + method: :post, + path: "webhooks-journal/journal/2026-03/batch/read", + query: query.transform_keys(install_portal_id: "installPortalId"), + body: parsed.except(*query_params), + model: HubSpotSDK::BatchResponseJournalFetchResponse, + options: options + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetEarliestParams} for more + # details. + # + # Retrieve the earliest batch of webhook journal entries for a specified count. + # This endpoint is useful for accessing historical webhook data in batches, + # allowing you to process or analyze older entries. The number of entries + # retrieved is determined by the count parameter. + # + # @overload get_earliest(count, install_portal_id: nil, request_options: {}) + # + # @param count [Integer] The number of earliest journal entries to retrieve. This must be an integer with + # + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value that specifies which + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetEarliestParams + def get_earliest(count, params = {}) + parsed, options = HubSpotSDK::WebhooksJournal::Journal::BatchGetEarliestParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: ["webhooks-journal/journal/2026-03/batch/earliest/%1$s", count], + query: query.transform_keys(install_portal_id: "installPortalId"), + model: HubSpotSDK::BatchResponseJournalFetchResponse, + options: options + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetFromOffsetParams} for + # more details. + # + # Retrieve a batch of webhook journal entries starting from a specified offset. + # This endpoint allows you to fetch a defined number of entries, which can be + # useful for processing large datasets in manageable chunks. + # + # @overload get_from_offset(count, offset:, install_portal_id: nil, request_options: {}) + # + # @param count [Integer] Path param: The number of journal entries to retrieve. This must be an integer w + # + # @param offset [String] Path param: The starting point for fetching the journal entries. This is a strin + # + # @param install_portal_id [Integer] Query param: The ID of the portal installation. This is an integer value. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetFromOffsetParams + def get_from_offset(count, params) + parsed, options = HubSpotSDK::WebhooksJournal::Journal::BatchGetFromOffsetParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + offset = + parsed.delete(:offset) do + raise ArgumentError.new("missing required path argument #{_1}") + end + @client.request( + method: :get, + path: ["webhooks-journal/journal/2026-03/batch/%1$s/next/%2$s", offset, count], + query: query.transform_keys(install_portal_id: "installPortalId"), + model: HubSpotSDK::BatchResponseJournalFetchResponse, + options: options + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetLatestParams} for more + # details. + # + # Retrieve the latest batch of webhook journal entries up to the specified count. + # This endpoint is useful for fetching recent webhook data for analysis or + # processing. The count parameter determines the maximum number of entries to + # return. + # + # @overload get_latest(count, install_portal_id: nil, request_options: {}) + # + # @param count [Integer] The maximum number of journal entries to retrieve. This is a required integer pa + # + # @param install_portal_id [Integer] The ID of the portal installation. This is an integer value used to specify the + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::Journal::BatchGetLatestParams + def get_latest(count, params = {}) + parsed, options = HubSpotSDK::WebhooksJournal::Journal::BatchGetLatestParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: ["webhooks-journal/journal/2026-03/batch/latest/%1$s", count], + query: query.transform_keys(install_portal_id: "installPortalId"), + model: HubSpotSDK::BatchResponseJournalFetchResponse, + options: options + ) + end + + # @api private + # + # @param client [HubSpotSDK::Client] + def initialize(client:) + @client = client + end + end + end + end + end +end diff --git a/lib/hubspot_sdk/resources/webhooks_journal/journal_local.rb b/lib/hubspot_sdk/resources/webhooks_journal/journal_local.rb new file mode 100644 index 00000000..65cf0fe9 --- /dev/null +++ b/lib/hubspot_sdk/resources/webhooks_journal/journal_local.rb @@ -0,0 +1,135 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Resources + class WebhooksJournal + class JournalLocal + # @return [HubSpotSDK::Resources::WebhooksJournal::JournalLocal::Batch] + attr_reader :batch + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocalGetEarliestParams} for more + # details. + # + # Retrieve the earliest webhook journal entries for the specified portal. This + # endpoint can be used to access the oldest records available in the webhook + # journal, which may be useful for auditing or historical analysis. + # + # @overload get_earliest(install_portal_id: nil, request_options: {}) + # + # @param install_portal_id [Integer] The ID of the portal for which to retrieve the earliest webhook journal entries. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [StringIO] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalLocalGetEarliestParams + def get_earliest(params = {}) + parsed, options = HubSpotSDK::WebhooksJournal::JournalLocalGetEarliestParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: "webhooks-journal/journal-local/2026-03/earliest", + query: query.transform_keys(install_portal_id: "installPortalId"), + headers: {"accept" => "*/*"}, + model: StringIO, + options: options + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocalGetLatestParams} for more + # details. + # + # Retrieve the latest entries from the webhooks journal for the specified portal. + # This endpoint is useful for accessing the most recent webhook events and their + # statuses, allowing you to monitor and debug webhook activity effectively. + # + # @overload get_latest(install_portal_id: nil, request_options: {}) + # + # @param install_portal_id [Integer] The unique identifier of the portal installation for which to retrieve the lates + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [StringIO] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalLocalGetLatestParams + def get_latest(params = {}) + parsed, options = HubSpotSDK::WebhooksJournal::JournalLocalGetLatestParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: "webhooks-journal/journal/2026-03/latest", + query: query.transform_keys(install_portal_id: "installPortalId"), + headers: {"accept" => "*/*"}, + model: StringIO, + options: options + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocalGetNextFromOffsetParams} for + # more details. + # + # Retrieve the next set of webhook journal entries starting from a specified + # offset. This endpoint is useful for paginating through large sets of webhook + # data, allowing you to continue from where a previous request left off. + # + # @overload get_next_from_offset(offset, install_portal_id: nil, request_options: {}) + # + # @param offset [String] The starting point for retrieving the next set of webhook journal entries. This + # + # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [StringIO] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalLocalGetNextFromOffsetParams + def get_next_from_offset(offset, params = {}) + parsed, options = HubSpotSDK::WebhooksJournal::JournalLocalGetNextFromOffsetParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: ["webhooks-journal/journal-local/2026-03/offset/%1$s/next", offset], + query: query.transform_keys(install_portal_id: "installPortalId"), + headers: {"accept" => "*/*"}, + model: StringIO, + options: options + ) + end + + # Retrieve the status of a specific webhook journal entry using its unique status + # ID. This endpoint is useful for monitoring the progress or outcome of webhook + # journal entries, allowing you to check if an entry is pending, in progress, + # completed, failed, or expired. + # + # @overload get_status(status_id, request_options: {}) + # + # @param status_id [String] The unique identifier of the status to retrieve. It should be in UUID format. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::SnapshotStatusResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalLocalGetStatusParams + def get_status(status_id, params = {}) + @client.request( + method: :get, + path: ["webhooks-journal/journal-local/2026-03/status/%1$s", status_id], + model: HubSpotSDK::SnapshotStatusResponse, + options: params[:request_options] + ) + end + + # @api private + # + # @param client [HubSpotSDK::Client] + def initialize(client:) + @client = client + @batch = HubSpotSDK::Resources::WebhooksJournal::JournalLocal::Batch.new(client: client) + end + end + end + end +end diff --git a/lib/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rb b/lib/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rb new file mode 100644 index 00000000..590b1ab1 --- /dev/null +++ b/lib/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rb @@ -0,0 +1,122 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Resources + class WebhooksJournal + class JournalLocal + class Batch + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocal::BatchGetParams} for more + # details. + # + # Execute a batch read operation on the webhooks journal. This endpoint allows you + # to retrieve a batch of webhook journal entries by providing the necessary input + # data. It is useful for processing multiple records in a single request, + # streamlining data retrieval tasks. + # + # @overload get(inputs:, install_portal_id: nil, request_options: {}) + # + # @param inputs [Array] Body param: Strings to input. + # + # @param install_portal_id [Integer] Query param: The ID of the portal where the webhooks are installed. This paramet + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalLocal::BatchGetParams + def get(params) + query_params = [:install_portal_id] + parsed, options = HubSpotSDK::WebhooksJournal::JournalLocal::BatchGetParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed.slice(*query_params)) + @client.request( + method: :post, + path: "webhooks-journal/journal-local/2026-03/batch/read", + query: query.transform_keys(install_portal_id: "installPortalId"), + body: parsed.except(*query_params), + model: HubSpotSDK::BatchResponseJournalFetchResponse, + options: options + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocal::BatchGetEarliestParams} for + # more details. + # + # Retrieve the earliest batch of webhook journal entries. This endpoint is useful + # for accessing the oldest available data in the webhook journal, allowing users + # to process or analyze historical webhook events. The number of entries to fetch + # is specified by the 'count' path parameter. + # + # @overload get_earliest(count, install_portal_id: nil, request_options: {}) + # + # @param count [Integer] The number of earliest webhook journal entries to retrieve. This is a required i + # + # @param install_portal_id [Integer] The ID of the portal installation to filter the webhook journal entries. This is + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalLocal::BatchGetEarliestParams + def get_earliest(count, params = {}) + parsed, options = HubSpotSDK::WebhooksJournal::JournalLocal::BatchGetEarliestParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: ["webhooks-journal/journal-local/2026-03/batch/earliest/%1$s", count], + query: query.transform_keys(install_portal_id: "installPortalId"), + model: HubSpotSDK::BatchResponseJournalFetchResponse, + options: options + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::JournalLocal::BatchGetFromOffsetParams} + # for more details. + # + # Retrieve a batch of webhook journal entries starting from a specified offset. + # This endpoint is useful for paginating through large sets of webhook data. The + # number of entries returned is determined by the 'count' parameter. + # + # @overload get_from_offset(count, offset:, install_portal_id: nil, request_options: {}) + # + # @param count [Integer] Path param: The number of journal entries to retrieve in this batch. Must be an + # + # @param offset [String] Path param: The starting point for the batch retrieval, specified as a string. + # + # @param install_portal_id [Integer] Query param: The ID of the portal where the webhooks are installed. This is an o + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::BatchResponseJournalFetchResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::JournalLocal::BatchGetFromOffsetParams + def get_from_offset(count, params) + parsed, options = + HubSpotSDK::WebhooksJournal::JournalLocal::BatchGetFromOffsetParams.dump_request(params) + query = HubSpotSDK::Internal::Util.encode_query_params(parsed) + offset = + parsed.delete(:offset) do + raise ArgumentError.new("missing required path argument #{_1}") + end + @client.request( + method: :get, + path: ["webhooks-journal/journal-local/2026-03/batch/%1$s/next/%2$s", offset, count], + query: query.transform_keys(install_portal_id: "installPortalId"), + model: HubSpotSDK::BatchResponseJournalFetchResponse, + options: options + ) + end + + # @api private + # + # @param client [HubSpotSDK::Client] + def initialize(client:) + @client = client + end + end + end + end + end +end diff --git a/lib/hubspot_sdk/resources/webhooks_journal/snapshots.rb b/lib/hubspot_sdk/resources/webhooks_journal/snapshots.rb new file mode 100644 index 00000000..5fb5be2e --- /dev/null +++ b/lib/hubspot_sdk/resources/webhooks_journal/snapshots.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Resources + class WebhooksJournal + class Snapshots + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::SnapshotCreateParams} for more details. + # + # Create a batch of CRM object snapshots in HubSpot. This endpoint is used to + # capture the current state of specified CRM objects for later reference or + # analysis. It requires a JSON payload containing the details of the CRM objects + # to snapshot. This operation is exempt from daily and ten-secondly rate limits. + # + # @overload create(snapshot_requests:, request_options: {}) + # + # @param snapshot_requests [Array] An array of CrmObjectSnapshotRequest objects, each representing a request to cre + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::CrmObjectSnapshotBatchResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::SnapshotCreateParams + def create(params) + parsed, options = HubSpotSDK::WebhooksJournal::SnapshotCreateParams.dump_request(params) + @client.request( + method: :post, + path: "webhooks-journal/snapshots/2026-03/crm", + body: parsed, + model: HubSpotSDK::CrmObjectSnapshotBatchResponse, + options: options + ) + end + + # @api private + # + # @param client [HubSpotSDK::Client] + def initialize(client:) + @client = client + end + end + end + end +end diff --git a/lib/hubspot_sdk/resources/webhooks_journal/subscriptions.rb b/lib/hubspot_sdk/resources/webhooks_journal/subscriptions.rb new file mode 100644 index 00000000..cfe443c2 --- /dev/null +++ b/lib/hubspot_sdk/resources/webhooks_journal/subscriptions.rb @@ -0,0 +1,142 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Resources + class WebhooksJournal + class Subscriptions + # @return [HubSpotSDK::Resources::WebhooksJournal::Subscriptions::Filters] + attr_reader :filters + + # Create a new subscription in the Webhooks Journal for the specified version. + # This endpoint allows you to define the subscription details by providing the + # necessary information in the request body. It supports various types of + # subscriptions, including object, association, event, app lifecycle event, list + # membership, and GDPR privacy deletion. Ensure that all required fields are + # included in the request to successfully create a subscription. + # + # @overload create(subscription_upsert_request:, request_options: {}) + # + # @param subscription_upsert_request [HubSpotSDK::Models::ObjectSubscriptionUpsertRequest, HubSpotSDK::Models::AssociationSubscriptionUpsertRequest, HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest, HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest, HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest] + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionCreateParams + def create(params) + parsed, options = HubSpotSDK::WebhooksJournal::SubscriptionCreateParams.dump_request(params) + @client.request( + method: :post, + path: "webhooks-journal/subscriptions/2026-03", + body: parsed[:subscription_upsert_request], + model: HubSpotSDK::WebhooksJournal::SubscriptionResponse, + options: options + ) + end + + # Retrieve a list of webhook journal subscriptions for the specified version. This + # endpoint allows you to view all active subscriptions without pagination. It is + # useful for monitoring and managing webhook subscriptions in your HubSpot + # account. + # + # @overload list(request_options: {}) + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging] + # + # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionListParams + def list(params = {}) + @client.request( + method: :get, + path: "webhooks-journal/subscriptions/2026-03", + model: HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging, + options: params[:request_options] + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::SubscriptionDeleteParams} for more + # details. + # + # Delete a specific webhook journal subscription using its unique identifier. This + # operation is useful for managing and cleaning up subscriptions that are no + # longer needed in your HubSpot account. + # + # @overload delete(subscription_id, request_options: {}) + # + # @param subscription_id [Integer] The unique identifier of the subscription to delete. It must be provided as an i + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [nil] + # + # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionDeleteParams + def delete(subscription_id, params = {}) + @client.request( + method: :delete, + path: ["webhooks-journal/subscriptions/2026-03/%1$s", subscription_id], + model: NilClass, + options: params[:request_options] + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::SubscriptionDeleteForPortalParams} for + # more details. + # + # Delete a webhook journal subscription for a specific portal. This operation + # removes the subscription associated with the given portalId, ensuring that no + # further webhook events are sent for this portal. Use this endpoint to manage and + # clean up subscriptions that are no longer needed. + # + # @overload delete_for_portal(portal_id, request_options: {}) + # + # @param portal_id [Integer] The unique identifier of the portal for which the webhook journal subscription i + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [nil] + # + # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionDeleteForPortalParams + def delete_for_portal(portal_id, params = {}) + @client.request( + method: :delete, + path: ["webhooks-journal/subscriptions/2026-03/portals/%1$s", portal_id], + model: NilClass, + options: params[:request_options] + ) + end + + # Retrieve details of a specific webhook subscription using its unique identifier. + # This endpoint is useful for obtaining information about a particular + # subscription, such as its actions, object type, and associated properties. + # + # @overload get(subscription_id, request_options: {}) + # + # @param subscription_id [Integer] The unique identifier of the subscription to retrieve. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionGetParams + def get(subscription_id, params = {}) + @client.request( + method: :get, + path: ["webhooks-journal/subscriptions/2026-03/%1$s", subscription_id], + model: HubSpotSDK::WebhooksJournal::SubscriptionResponse, + options: params[:request_options] + ) + end + + # @api private + # + # @param client [HubSpotSDK::Client] + def initialize(client:) + @client = client + @filters = HubSpotSDK::Resources::WebhooksJournal::Subscriptions::Filters.new(client: client) + end + end + end + end +end diff --git a/lib/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rb b/lib/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rb new file mode 100644 index 00000000..22937d5b --- /dev/null +++ b/lib/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rb @@ -0,0 +1,120 @@ +# frozen_string_literal: true + +module HubSpotSDK + module Resources + class WebhooksJournal + class Subscriptions + class Filters + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::Subscriptions::FilterCreateParams} for + # more details. + # + # Create a new filter for a specific webhook subscription in the HubSpot account. + # This endpoint allows you to define conditions that determine when a webhook + # should be triggered. The filter is associated with a subscription identified by + # its ID, and the request must include the filter details. + # + # @overload create(filter:, subscription_id:, request_options: {}) + # + # @param filter [HubSpotSDK::Models::Filter] Defines a single condition for searching CRM objects, specifying the property to + # + # @param subscription_id [Integer] The unique identifier of the subscription to which the filter will be applied. I + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::FilterCreateResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::Subscriptions::FilterCreateParams + def create(params) + parsed, options = HubSpotSDK::WebhooksJournal::Subscriptions::FilterCreateParams.dump_request(params) + @client.request( + method: :post, + path: "webhooks-journal/subscriptions/2026-03/filters", + body: parsed, + model: HubSpotSDK::FilterCreateResponse, + options: options + ) + end + + # Some parameter documentations has been truncated, see + # {HubSpotSDK::Models::WebhooksJournal::Subscriptions::FilterListParams} for more + # details. + # + # Retrieve the filters associated with a specific webhook subscription. This + # endpoint allows you to view the filters applied to a subscription, which can + # help in managing and understanding the conditions set for webhook events. + # + # @overload list(subscription_id, request_options: {}) + # + # @param subscription_id [Integer] The unique identifier of the subscription for which to retrieve filters. This is + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [Array] + # + # @see HubSpotSDK::Models::WebhooksJournal::Subscriptions::FilterListParams + def list(subscription_id, params = {}) + @client.request( + method: :get, + path: ["webhooks-journal/subscriptions/2026-03/filters/subscription/%1$s", subscription_id], + model: HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::FilterResponse], + options: params[:request_options] + ) + end + + # Remove a specific filter from the webhooks journal subscriptions. This operation + # is useful for managing and cleaning up filters that are no longer needed. Once + # deleted, the filter cannot be recovered. + # + # @overload delete(filter_id, request_options: {}) + # + # @param filter_id [Integer] The unique identifier of the filter to delete. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [nil] + # + # @see HubSpotSDK::Models::WebhooksJournal::Subscriptions::FilterDeleteParams + def delete(filter_id, params = {}) + @client.request( + method: :delete, + path: ["webhooks-journal/subscriptions/2026-03/filters/%1$s", filter_id], + model: NilClass, + options: params[:request_options] + ) + end + + # Retrieve a specific filter associated with a webhook journal subscription. This + # endpoint allows you to access the details of the filter identified by the + # filterId, which is useful for managing and understanding the conditions applied + # to webhook events. + # + # @overload get(filter_id, request_options: {}) + # + # @param filter_id [Integer] The unique identifier of the filter to retrieve. It is an integer value. + # + # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [HubSpotSDK::Models::FilterResponse] + # + # @see HubSpotSDK::Models::WebhooksJournal::Subscriptions::FilterGetParams + def get(filter_id, params = {}) + @client.request( + method: :get, + path: ["webhooks-journal/subscriptions/2026-03/filters/%1$s", filter_id], + model: HubSpotSDK::FilterResponse, + options: params[:request_options] + ) + end + + # @api private + # + # @param client [HubSpotSDK::Client] + def initialize(client:) + @client = client + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/client.rbi b/rbi/hubspot_sdk/client.rbi index 558abfd4..123030bc 100644 --- a/rbi/hubspot_sdk/client.rbi +++ b/rbi/hubspot_sdk/client.rbi @@ -61,6 +61,9 @@ module HubSpotSDK sig { returns(HubSpotSDK::Resources::Webhooks) } attr_reader :webhooks + sig { returns(HubSpotSDK::Resources::WebhooksJournal) } + attr_reader :webhooks_journal + # @api private sig { override.returns(T::Hash[String, String]) } private def auth_headers diff --git a/rbi/hubspot_sdk/models.rbi b/rbi/hubspot_sdk/models.rbi index 35858c77..5a77cf61 100644 --- a/rbi/hubspot_sdk/models.rbi +++ b/rbi/hubspot_sdk/models.rbi @@ -5,14 +5,22 @@ 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 @@ -29,6 +37,12 @@ module HubSpotSDK BatchReadInputPropertyName = HubSpotSDK::Models::BatchReadInputPropertyName + BatchResponseJournalFetchResponse = + HubSpotSDK::Models::BatchResponseJournalFetchResponse + + BatchResponseJournalFetchResponseWithErrors = + HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors + BusinessUnits = HubSpotSDK::Models::BusinessUnits Cms = HubSpotSDK::Models::Cms @@ -38,10 +52,22 @@ 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 @@ -50,14 +76,33 @@ 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 @@ -95,11 +140,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 diff --git a/rbi/hubspot_sdk/models/action_override_request.rbi b/rbi/hubspot_sdk/models/action_override_request.rbi new file mode 100644 index 00000000..3289976b --- /dev/null +++ b/rbi/hubspot_sdk/models/action_override_request.rbi @@ -0,0 +1,84 @@ +# typed: strong + +module HubSpotSDK + module Models + class ActionOverrideRequest < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::ActionOverrideRequest, + HubSpotSDK::Internal::AnyHash + ) + end + + # An array of strings, each representing an associated object type ID relevant to + # the action override. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :associated_object_type_ids + + sig { params(associated_object_type_ids: T::Array[String]).void } + attr_writer :associated_object_type_ids + + # An array of integers representing list IDs that are associated with the action + # override. The integers are in int64 format. + sig { returns(T.nilable(T::Array[Integer])) } + attr_reader :list_ids + + sig { params(list_ids: T::Array[Integer]).void } + attr_writer :list_ids + + # An array of integers, each representing an object ID for which the action + # override is applicable. The integers are in int64 format. + sig { returns(T.nilable(T::Array[Integer])) } + attr_reader :object_ids + + sig { params(object_ids: T::Array[Integer]).void } + attr_writer :object_ids + + # An array of strings representing the properties to be overridden in the action. + # Each string corresponds to a property name. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :properties + + sig { params(properties: T::Array[String]).void } + attr_writer :properties + + sig do + params( + associated_object_type_ids: T::Array[String], + list_ids: T::Array[Integer], + object_ids: T::Array[Integer], + properties: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + # An array of strings, each representing an associated object type ID relevant to + # the action override. + associated_object_type_ids: nil, + # An array of integers representing list IDs that are associated with the action + # override. The integers are in int64 format. + list_ids: nil, + # An array of integers, each representing an object ID for which the action + # override is applicable. The integers are in int64 format. + object_ids: nil, + # An array of strings representing the properties to be overridden in the action. + # Each string corresponds to a property name. + properties: nil + ) + end + + sig do + override.returns( + { + associated_object_type_ids: T::Array[String], + list_ids: T::Array[Integer], + object_ids: T::Array[Integer], + properties: T::Array[String] + } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rbi new file mode 100644 index 00000000..f91e4bca --- /dev/null +++ b/rbi/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rbi @@ -0,0 +1,81 @@ +# typed: strong + +module HubSpotSDK + module Models + class AppLifecycleEventSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :event_type_id + + sig { returns(T::Array[String]) } + attr_accessor :properties + + sig do + returns( + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ) + end + attr_accessor :subscription_type + + sig do + params( + event_type_id: String, + properties: T::Array[String], + subscription_type: + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ).returns(T.attached_class) + end + def self.new(event_type_id:, properties:, subscription_type:) + end + + sig do + override.returns( + { + event_type_id: String, + properties: T::Array[String], + subscription_type: + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::OrSymbol + } + ) + end + def to_hash + end + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + APP_LIFECYCLE_EVENT = + T.let( + :APP_LIFECYCLE_EVENT, + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/association_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/association_subscription_upsert_request.rbi new file mode 100644 index 00000000..0bfd83ac --- /dev/null +++ b/rbi/hubspot_sdk/models/association_subscription_upsert_request.rbi @@ -0,0 +1,204 @@ +# typed: strong + +module HubSpotSDK + module Models + class AssociationSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::AssociationSubscriptionUpsertRequest, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + returns( + T::Array[ + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::OrSymbol + ] + ) + end + attr_accessor :actions + + sig { returns(T::Array[String]) } + attr_accessor :associated_object_type_ids + + sig { returns(T::Array[Integer]) } + attr_accessor :object_ids + + sig { returns(String) } + attr_accessor :object_type_id + + sig { returns(Integer) } + attr_accessor :portal_id + + sig do + returns( + HubSpotSDK::AssociationSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ) + end + attr_accessor :subscription_type + + sig do + params( + actions: + T::Array[ + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::OrSymbol + ], + associated_object_type_ids: T::Array[String], + object_ids: T::Array[Integer], + object_type_id: String, + portal_id: Integer, + subscription_type: + HubSpotSDK::AssociationSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ).returns(T.attached_class) + end + def self.new( + actions:, + associated_object_type_ids:, + object_ids:, + object_type_id:, + portal_id:, + subscription_type: + ) + end + + sig do + override.returns( + { + actions: + T::Array[ + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::OrSymbol + ], + associated_object_type_ids: T::Array[String], + object_ids: T::Array[Integer], + object_type_id: String, + portal_id: Integer, + subscription_type: + HubSpotSDK::AssociationSubscriptionUpsertRequest::SubscriptionType::OrSymbol + } + ) + end + def to_hash + end + + module Action + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CREATE = + T.let( + :CREATE, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + UPDATE = + T.let( + :UPDATE, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + DELETE = + T.let( + :DELETE, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + MERGE = + T.let( + :MERGE, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + RESTORE = + T.let( + :RESTORE, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ASSOCIATION_ADDED = + T.let( + :ASSOCIATION_ADDED, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ASSOCIATION_REMOVED = + T.let( + :ASSOCIATION_REMOVED, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + SNAPSHOT = + T.let( + :SNAPSHOT, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + APP_INSTALL = + T.let( + :APP_INSTALL, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + APP_UNINSTALL = + T.let( + :APP_UNINSTALL, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ADDED_TO_LIST = + T.let( + :ADDED_TO_LIST, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + REMOVED_FROM_LIST = + T.let( + :REMOVED_FROM_LIST, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + GDPR_DELETE = + T.let( + :GDPR_DELETE, + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol + ] + ) + end + def self.values + end + end + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::AssociationSubscriptionUpsertRequest::SubscriptionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ASSOCIATION = + T.let( + :ASSOCIATION, + HubSpotSDK::AssociationSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::AssociationSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/auth/access_token_response.rbi b/rbi/hubspot_sdk/models/auth/access_token_response.rbi new file mode 100644 index 00000000..2d29bd7e --- /dev/null +++ b/rbi/hubspot_sdk/models/auth/access_token_response.rbi @@ -0,0 +1,130 @@ +# typed: strong + +module HubSpotSDK + module Models + module Auth + class AccessTokenResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::Auth::AccessTokenResponse, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :access_token + + sig { returns(Integer) } + attr_accessor :expires_in + + sig { returns(String) } + attr_accessor :refresh_token + + sig { returns(String) } + attr_accessor :token_type + + sig do + returns(HubSpotSDK::Auth::AccessTokenResponse::TokenUse::TaggedSymbol) + end + attr_accessor :token_use + + sig { returns(T.nilable(Integer)) } + attr_reader :hub_id + + sig { params(hub_id: Integer).void } + attr_writer :hub_id + + sig { returns(T.nilable(String)) } + attr_reader :id_token + + sig { params(id_token: String).void } + attr_writer :id_token + + sig { returns(T.nilable(T::Array[String])) } + attr_reader :scopes + + sig { params(scopes: T::Array[String]).void } + attr_writer :scopes + + sig { returns(T.nilable(Integer)) } + attr_reader :user_id + + sig { params(user_id: Integer).void } + attr_writer :user_id + + sig do + params( + access_token: String, + expires_in: Integer, + refresh_token: String, + token_type: String, + token_use: + HubSpotSDK::Auth::AccessTokenResponse::TokenUse::OrSymbol, + hub_id: Integer, + id_token: String, + scopes: T::Array[String], + user_id: Integer + ).returns(T.attached_class) + end + def self.new( + access_token:, + expires_in:, + refresh_token:, + token_type:, + token_use:, + hub_id: nil, + id_token: nil, + scopes: nil, + user_id: nil + ) + end + + sig do + override.returns( + { + access_token: String, + expires_in: Integer, + refresh_token: String, + token_type: String, + token_use: + HubSpotSDK::Auth::AccessTokenResponse::TokenUse::TaggedSymbol, + hub_id: Integer, + id_token: String, + scopes: T::Array[String], + user_id: Integer + } + ) + end + def to_hash + end + + module TokenUse + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, HubSpotSDK::Auth::AccessTokenResponse::TokenUse) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACCESS_TOKEN = + T.let( + :access_token, + HubSpotSDK::Auth::AccessTokenResponse::TokenUse::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::Auth::AccessTokenResponse::TokenUse::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/auth/client_credentials_token_response.rbi b/rbi/hubspot_sdk/models/auth/client_credentials_token_response.rbi new file mode 100644 index 00000000..0f6e8063 --- /dev/null +++ b/rbi/hubspot_sdk/models/auth/client_credentials_token_response.rbi @@ -0,0 +1,129 @@ +# typed: strong + +module HubSpotSDK + module Models + module Auth + class ClientCredentialsTokenResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::Auth::ClientCredentialsTokenResponse, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :access_token + + sig { returns(Integer) } + attr_accessor :expires_in + + sig { returns(String) } + attr_accessor :token_type + + sig do + returns( + HubSpotSDK::Auth::ClientCredentialsTokenResponse::TokenUse::TaggedSymbol + ) + end + attr_accessor :token_use + + sig { returns(T.nilable(Integer)) } + attr_reader :hub_id + + sig { params(hub_id: Integer).void } + attr_writer :hub_id + + sig { returns(T.nilable(String)) } + attr_reader :id_token + + sig { params(id_token: String).void } + attr_writer :id_token + + sig { returns(T.nilable(T::Array[String])) } + attr_reader :scopes + + sig { params(scopes: T::Array[String]).void } + attr_writer :scopes + + sig { returns(T.nilable(Integer)) } + attr_reader :user_id + + sig { params(user_id: Integer).void } + attr_writer :user_id + + sig do + params( + access_token: String, + expires_in: Integer, + token_type: String, + token_use: + HubSpotSDK::Auth::ClientCredentialsTokenResponse::TokenUse::OrSymbol, + hub_id: Integer, + id_token: String, + scopes: T::Array[String], + user_id: Integer + ).returns(T.attached_class) + end + def self.new( + access_token:, + expires_in:, + token_type:, + token_use:, + hub_id: nil, + id_token: nil, + scopes: nil, + user_id: nil + ) + end + + sig do + override.returns( + { + access_token: String, + expires_in: Integer, + token_type: String, + token_use: + HubSpotSDK::Auth::ClientCredentialsTokenResponse::TokenUse::TaggedSymbol, + hub_id: Integer, + id_token: String, + scopes: T::Array[String], + user_id: Integer + } + ) + end + def to_hash + end + + module TokenUse + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::Auth::ClientCredentialsTokenResponse::TokenUse + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CLIENT_CREDENTIALS = + T.let( + :client_credentials, + HubSpotSDK::Auth::ClientCredentialsTokenResponse::TokenUse::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::Auth::ClientCredentialsTokenResponse::TokenUse::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/auth/oauth_create_token_params.rbi b/rbi/hubspot_sdk/models/auth/oauth_create_token_params.rbi index 81b1121a..a7174a41 100644 --- a/rbi/hubspot_sdk/models/auth/oauth_create_token_params.rbi +++ b/rbi/hubspot_sdk/models/auth/oauth_create_token_params.rbi @@ -134,6 +134,11 @@ module HubSpotSDK :authorization_code, HubSpotSDK::Auth::OAuthCreateTokenParams::GrantType::TaggedSymbol ) + CLIENT_CREDENTIALS = + T.let( + :client_credentials, + HubSpotSDK::Auth::OAuthCreateTokenParams::GrantType::TaggedSymbol + ) REFRESH_TOKEN = T.let( :refresh_token, diff --git a/rbi/hubspot_sdk/models/auth/token_response_if.rbi b/rbi/hubspot_sdk/models/auth/token_response_if.rbi new file mode 100644 index 00000000..bddf046d --- /dev/null +++ b/rbi/hubspot_sdk/models/auth/token_response_if.rbi @@ -0,0 +1,27 @@ +# typed: strong + +module HubSpotSDK + module Models + module Auth + module TokenResponseIf + extend HubSpotSDK::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + HubSpotSDK::Auth::AccessTokenResponse, + HubSpotSDK::Auth::ClientCredentialsTokenResponse + ) + end + + sig do + override.returns( + T::Array[HubSpotSDK::Auth::TokenResponseIf::Variants] + ) + end + def self.variants + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/automation/array_field_schema.rbi b/rbi/hubspot_sdk/models/automation/array_field_schema.rbi index 814765be..766d9977 100644 --- a/rbi/hubspot_sdk/models/automation/array_field_schema.rbi +++ b/rbi/hubspot_sdk/models/automation/array_field_schema.rbi @@ -60,36 +60,6 @@ module HubSpotSDK :ARRAY, HubSpotSDK::Automation::ArrayFieldSchema::Type::TaggedSymbol ) - BOOLEAN = - T.let( - :BOOLEAN, - HubSpotSDK::Automation::ArrayFieldSchema::Type::TaggedSymbol - ) - DOUBLE = - T.let( - :DOUBLE, - HubSpotSDK::Automation::ArrayFieldSchema::Type::TaggedSymbol - ) - INTEGER = - T.let( - :INTEGER, - HubSpotSDK::Automation::ArrayFieldSchema::Type::TaggedSymbol - ) - LONG = - T.let( - :LONG, - HubSpotSDK::Automation::ArrayFieldSchema::Type::TaggedSymbol - ) - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Automation::ArrayFieldSchema::Type::TaggedSymbol - ) - STRING = - T.let( - :STRING, - HubSpotSDK::Automation::ArrayFieldSchema::Type::TaggedSymbol - ) sig do override.returns( diff --git a/rbi/hubspot_sdk/models/automation/boolean_field_schema.rbi b/rbi/hubspot_sdk/models/automation/boolean_field_schema.rbi index 736cb687..8c738bff 100644 --- a/rbi/hubspot_sdk/models/automation/boolean_field_schema.rbi +++ b/rbi/hubspot_sdk/models/automation/boolean_field_schema.rbi @@ -50,41 +50,11 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } - ARRAY = - T.let( - :ARRAY, - HubSpotSDK::Automation::BooleanFieldSchema::Type::TaggedSymbol - ) BOOLEAN = T.let( :BOOLEAN, HubSpotSDK::Automation::BooleanFieldSchema::Type::TaggedSymbol ) - DOUBLE = - T.let( - :DOUBLE, - HubSpotSDK::Automation::BooleanFieldSchema::Type::TaggedSymbol - ) - INTEGER = - T.let( - :INTEGER, - HubSpotSDK::Automation::BooleanFieldSchema::Type::TaggedSymbol - ) - LONG = - T.let( - :LONG, - HubSpotSDK::Automation::BooleanFieldSchema::Type::TaggedSymbol - ) - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Automation::BooleanFieldSchema::Type::TaggedSymbol - ) - STRING = - T.let( - :STRING, - HubSpotSDK::Automation::BooleanFieldSchema::Type::TaggedSymbol - ) sig do override.returns( diff --git a/rbi/hubspot_sdk/models/automation/double_field_schema.rbi b/rbi/hubspot_sdk/models/automation/double_field_schema.rbi index 291e4cb1..5a330080 100644 --- a/rbi/hubspot_sdk/models/automation/double_field_schema.rbi +++ b/rbi/hubspot_sdk/models/automation/double_field_schema.rbi @@ -71,41 +71,11 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } - ARRAY = - T.let( - :ARRAY, - HubSpotSDK::Automation::DoubleFieldSchema::Type::TaggedSymbol - ) - BOOLEAN = - T.let( - :BOOLEAN, - HubSpotSDK::Automation::DoubleFieldSchema::Type::TaggedSymbol - ) DOUBLE = T.let( :DOUBLE, HubSpotSDK::Automation::DoubleFieldSchema::Type::TaggedSymbol ) - INTEGER = - T.let( - :INTEGER, - HubSpotSDK::Automation::DoubleFieldSchema::Type::TaggedSymbol - ) - LONG = - T.let( - :LONG, - HubSpotSDK::Automation::DoubleFieldSchema::Type::TaggedSymbol - ) - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Automation::DoubleFieldSchema::Type::TaggedSymbol - ) - STRING = - T.let( - :STRING, - HubSpotSDK::Automation::DoubleFieldSchema::Type::TaggedSymbol - ) sig do override.returns( diff --git a/rbi/hubspot_sdk/models/automation/integer_field_schema.rbi b/rbi/hubspot_sdk/models/automation/integer_field_schema.rbi index 88bda517..56964e91 100644 --- a/rbi/hubspot_sdk/models/automation/integer_field_schema.rbi +++ b/rbi/hubspot_sdk/models/automation/integer_field_schema.rbi @@ -71,41 +71,11 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } - ARRAY = - T.let( - :ARRAY, - HubSpotSDK::Automation::IntegerFieldSchema::Type::TaggedSymbol - ) - BOOLEAN = - T.let( - :BOOLEAN, - HubSpotSDK::Automation::IntegerFieldSchema::Type::TaggedSymbol - ) - DOUBLE = - T.let( - :DOUBLE, - HubSpotSDK::Automation::IntegerFieldSchema::Type::TaggedSymbol - ) INTEGER = T.let( :INTEGER, HubSpotSDK::Automation::IntegerFieldSchema::Type::TaggedSymbol ) - LONG = - T.let( - :LONG, - HubSpotSDK::Automation::IntegerFieldSchema::Type::TaggedSymbol - ) - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Automation::IntegerFieldSchema::Type::TaggedSymbol - ) - STRING = - T.let( - :STRING, - HubSpotSDK::Automation::IntegerFieldSchema::Type::TaggedSymbol - ) sig do override.returns( diff --git a/rbi/hubspot_sdk/models/automation/long_field_schema.rbi b/rbi/hubspot_sdk/models/automation/long_field_schema.rbi index 2c2e4096..465f77a3 100644 --- a/rbi/hubspot_sdk/models/automation/long_field_schema.rbi +++ b/rbi/hubspot_sdk/models/automation/long_field_schema.rbi @@ -69,41 +69,11 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } - ARRAY = - T.let( - :ARRAY, - HubSpotSDK::Automation::LongFieldSchema::Type::TaggedSymbol - ) - BOOLEAN = - T.let( - :BOOLEAN, - HubSpotSDK::Automation::LongFieldSchema::Type::TaggedSymbol - ) - DOUBLE = - T.let( - :DOUBLE, - HubSpotSDK::Automation::LongFieldSchema::Type::TaggedSymbol - ) - INTEGER = - T.let( - :INTEGER, - HubSpotSDK::Automation::LongFieldSchema::Type::TaggedSymbol - ) LONG = T.let( :LONG, HubSpotSDK::Automation::LongFieldSchema::Type::TaggedSymbol ) - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Automation::LongFieldSchema::Type::TaggedSymbol - ) - STRING = - T.let( - :STRING, - HubSpotSDK::Automation::LongFieldSchema::Type::TaggedSymbol - ) sig do override.returns( diff --git a/rbi/hubspot_sdk/models/automation/object_field_schema.rbi b/rbi/hubspot_sdk/models/automation/object_field_schema.rbi index 3371ef84..6aae34d9 100644 --- a/rbi/hubspot_sdk/models/automation/object_field_schema.rbi +++ b/rbi/hubspot_sdk/models/automation/object_field_schema.rbi @@ -57,41 +57,11 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } - ARRAY = - T.let( - :ARRAY, - HubSpotSDK::Automation::ObjectFieldSchema::Type::TaggedSymbol - ) - BOOLEAN = - T.let( - :BOOLEAN, - HubSpotSDK::Automation::ObjectFieldSchema::Type::TaggedSymbol - ) - DOUBLE = - T.let( - :DOUBLE, - HubSpotSDK::Automation::ObjectFieldSchema::Type::TaggedSymbol - ) - INTEGER = - T.let( - :INTEGER, - HubSpotSDK::Automation::ObjectFieldSchema::Type::TaggedSymbol - ) - LONG = - T.let( - :LONG, - HubSpotSDK::Automation::ObjectFieldSchema::Type::TaggedSymbol - ) OBJECT = T.let( :OBJECT, HubSpotSDK::Automation::ObjectFieldSchema::Type::TaggedSymbol ) - STRING = - T.let( - :STRING, - HubSpotSDK::Automation::ObjectFieldSchema::Type::TaggedSymbol - ) sig do override.returns( diff --git a/rbi/hubspot_sdk/models/automation/string_field_schema.rbi b/rbi/hubspot_sdk/models/automation/string_field_schema.rbi index 96baf55c..67523bdb 100644 --- a/rbi/hubspot_sdk/models/automation/string_field_schema.rbi +++ b/rbi/hubspot_sdk/models/automation/string_field_schema.rbi @@ -73,36 +73,6 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } - ARRAY = - T.let( - :ARRAY, - HubSpotSDK::Automation::StringFieldSchema::Type::TaggedSymbol - ) - BOOLEAN = - T.let( - :BOOLEAN, - HubSpotSDK::Automation::StringFieldSchema::Type::TaggedSymbol - ) - DOUBLE = - T.let( - :DOUBLE, - HubSpotSDK::Automation::StringFieldSchema::Type::TaggedSymbol - ) - INTEGER = - T.let( - :INTEGER, - HubSpotSDK::Automation::StringFieldSchema::Type::TaggedSymbol - ) - LONG = - T.let( - :LONG, - HubSpotSDK::Automation::StringFieldSchema::Type::TaggedSymbol - ) - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Automation::StringFieldSchema::Type::TaggedSymbol - ) STRING = T.let( :STRING, diff --git a/rbi/hubspot_sdk/models/batch_response_journal_fetch_response.rbi b/rbi/hubspot_sdk/models/batch_response_journal_fetch_response.rbi new file mode 100644 index 00000000..f5760fb1 --- /dev/null +++ b/rbi/hubspot_sdk/models/batch_response_journal_fetch_response.rbi @@ -0,0 +1,139 @@ +# typed: strong + +module HubSpotSDK + module Models + class BatchResponseJournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::BatchResponseJournalFetchResponse, + HubSpotSDK::Internal::AnyHash + ) + end + + # The date and time when the batch operation was completed, in ISO 8601 format. + sig { returns(Time) } + attr_accessor :completed_at + + # An array of results from the batch operation, each represented as a + # JournalFetchResponse object. + sig { returns(T::Array[HubSpotSDK::JournalFetchResponse]) } + attr_accessor :results + + # The date and time when the batch operation started, in ISO 8601 format. + sig { returns(Time) } + attr_accessor :started_at + + # The current status of the batch operation. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + sig do + returns( + HubSpotSDK::BatchResponseJournalFetchResponse::Status::TaggedSymbol + ) + end + attr_accessor :status + + # A map of link names to associated URIs related to the batch operation. + sig { returns(T.nilable(T::Hash[Symbol, String])) } + attr_reader :links + + sig { params(links: T::Hash[Symbol, String]).void } + attr_writer :links + + # The date and time when the batch operation was requested, in ISO 8601 format. + sig { returns(T.nilable(Time)) } + attr_reader :requested_at + + sig { params(requested_at: Time).void } + attr_writer :requested_at + + sig do + params( + completed_at: Time, + results: T::Array[HubSpotSDK::JournalFetchResponse::OrHash], + started_at: Time, + status: + HubSpotSDK::BatchResponseJournalFetchResponse::Status::OrSymbol, + links: T::Hash[Symbol, String], + requested_at: Time + ).returns(T.attached_class) + end + def self.new( + # The date and time when the batch operation was completed, in ISO 8601 format. + completed_at:, + # An array of results from the batch operation, each represented as a + # JournalFetchResponse object. + results:, + # The date and time when the batch operation started, in ISO 8601 format. + started_at:, + # The current status of the batch operation. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + status:, + # A map of link names to associated URIs related to the batch operation. + links: nil, + # The date and time when the batch operation was requested, in ISO 8601 format. + requested_at: nil + ) + end + + sig do + override.returns( + { + completed_at: Time, + results: T::Array[HubSpotSDK::JournalFetchResponse], + started_at: Time, + status: + HubSpotSDK::BatchResponseJournalFetchResponse::Status::TaggedSymbol, + links: T::Hash[Symbol, String], + requested_at: Time + } + ) + end + def to_hash + end + + # The current status of the batch operation. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + module Status + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, HubSpotSDK::BatchResponseJournalFetchResponse::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CANCELED = + T.let( + :CANCELED, + HubSpotSDK::BatchResponseJournalFetchResponse::Status::TaggedSymbol + ) + COMPLETE = + T.let( + :COMPLETE, + HubSpotSDK::BatchResponseJournalFetchResponse::Status::TaggedSymbol + ) + PENDING = + T.let( + :PENDING, + HubSpotSDK::BatchResponseJournalFetchResponse::Status::TaggedSymbol + ) + PROCESSING = + T.let( + :PROCESSING, + HubSpotSDK::BatchResponseJournalFetchResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::BatchResponseJournalFetchResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rbi b/rbi/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rbi new file mode 100644 index 00000000..e31435d0 --- /dev/null +++ b/rbi/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rbi @@ -0,0 +1,168 @@ +# typed: strong + +module HubSpotSDK + module Models + class BatchResponseJournalFetchResponseWithErrors < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors, + HubSpotSDK::Internal::AnyHash + ) + end + + # The date and time when the batch process was completed, in ISO 8601 format. + sig { returns(Time) } + attr_accessor :completed_at + + # An array of journal fetch responses, each representing a result from the batch + # process. + sig { returns(T::Array[HubSpotSDK::JournalFetchResponse]) } + attr_accessor :results + + # The date and time when the batch process started, in ISO 8601 format. + sig { returns(Time) } + attr_accessor :started_at + + # The current status of the batch process. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + sig do + returns( + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status::OrSymbol + ) + end + attr_accessor :status + + # An array of standard errors that occurred during the batch process, providing + # details about each error. + sig { returns(T.nilable(T::Array[HubSpotSDK::StandardError])) } + attr_reader :errors + + sig { params(errors: T::Array[HubSpotSDK::StandardError::OrHash]).void } + attr_writer :errors + + # A map of link names to associated URIs, providing additional context or actions + # related to the batch process. + sig { returns(T.nilable(T::Hash[Symbol, String])) } + attr_reader :links + + sig { params(links: T::Hash[Symbol, String]).void } + attr_writer :links + + # The number of errors that occurred during the batch process. + sig { returns(T.nilable(Integer)) } + attr_reader :num_errors + + sig { params(num_errors: Integer).void } + attr_writer :num_errors + + # The date and time when the batch request was made, in ISO 8601 format. + sig { returns(T.nilable(Time)) } + attr_reader :requested_at + + sig { params(requested_at: Time).void } + attr_writer :requested_at + + sig do + params( + completed_at: Time, + results: T::Array[HubSpotSDK::JournalFetchResponse::OrHash], + started_at: Time, + status: + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status::OrSymbol, + errors: T::Array[HubSpotSDK::StandardError::OrHash], + links: T::Hash[Symbol, String], + num_errors: Integer, + requested_at: Time + ).returns(T.attached_class) + end + def self.new( + # The date and time when the batch process was completed, in ISO 8601 format. + completed_at:, + # An array of journal fetch responses, each representing a result from the batch + # process. + results:, + # The date and time when the batch process started, in ISO 8601 format. + started_at:, + # The current status of the batch process. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + status:, + # An array of standard errors that occurred during the batch process, providing + # details about each error. + errors: nil, + # A map of link names to associated URIs, providing additional context or actions + # related to the batch process. + links: nil, + # The number of errors that occurred during the batch process. + num_errors: nil, + # The date and time when the batch request was made, in ISO 8601 format. + requested_at: nil + ) + end + + sig do + override.returns( + { + completed_at: Time, + results: T::Array[HubSpotSDK::JournalFetchResponse], + started_at: Time, + status: + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status::OrSymbol, + errors: T::Array[HubSpotSDK::StandardError], + links: T::Hash[Symbol, String], + num_errors: Integer, + requested_at: Time + } + ) + end + def to_hash + end + + # The current status of the batch process. Valid values include 'PENDING', + # 'PROCESSING', 'CANCELED', and 'COMPLETE'. + module Status + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CANCELED = + T.let( + :CANCELED, + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol + ) + COMPLETE = + T.let( + :COMPLETE, + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol + ) + PENDING = + T.let( + :PENDING, + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol + ) + PROCESSING = + T.let( + :PROCESSING, + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/cms/content_search_result.rbi b/rbi/hubspot_sdk/models/cms/content_search_result.rbi deleted file mode 100644 index a9a48320..00000000 --- a/rbi/hubspot_sdk/models/cms/content_search_result.rbi +++ /dev/null @@ -1,4534 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Cms - class ContentSearchResult < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Cms::ContentSearchResult, - HubSpotSDK::Internal::AnyHash - ) - end - - # The ID of the content. - sig { returns(Integer) } - attr_accessor :id - - # The domain the document is hosted on. - sig { returns(String) } - attr_accessor :domain - - # The matching score of the document. - sig { returns(Float) } - attr_accessor :score - - # The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, - # `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`. - sig { returns(HubSpotSDK::Cms::ContentSearchResult::Type::OrSymbol) } - attr_accessor :type - - # The url of the document. - sig { returns(String) } - attr_accessor :url - - # Name of the author. - sig { returns(T.nilable(String)) } - attr_reader :author_full_name - - sig { params(author_full_name: String).void } - attr_writer :author_full_name - - # The error category - sig { returns(T.nilable(String)) } - attr_reader :category - - sig { params(category: String).void } - attr_writer :category - - # The ID of the document in HubSpot. - sig { returns(T.nilable(String)) } - attr_reader :combined_id - - sig { params(combined_id: String).void } - attr_writer :combined_id - - sig { returns(T.nilable(String)) } - attr_reader :content_type - - sig { params(content_type: String).void } - attr_writer :content_type - - # The result's description. The content will be determined by the value of - # `length` in the request. - sig { returns(T.nilable(String)) } - attr_reader :description - - sig { params(description: String).void } - attr_writer :description - - # URL of the featured image. - sig { returns(T.nilable(String)) } - attr_reader :featured_image_url - - sig { params(featured_image_url: String).void } - attr_writer :featured_image_url - - sig { returns(T.nilable(T::Boolean)) } - attr_reader :in_beta - - sig { params(in_beta: T::Boolean).void } - attr_writer :in_beta - - sig { returns(T.nilable(T::Boolean)) } - attr_reader :is_private - - sig { params(is_private: T::Boolean).void } - attr_writer :is_private - - # The document's language. - sig do - returns( - T.nilable(HubSpotSDK::Cms::ContentSearchResult::Language::OrSymbol) - ) - end - attr_reader :language - - sig do - params( - language: HubSpotSDK::Cms::ContentSearchResult::Language::OrSymbol - ).void - end - attr_writer :language - - # The date the content was published. - sig { returns(T.nilable(Integer)) } - attr_reader :published_date - - sig { params(published_date: Integer).void } - attr_writer :published_date - - # If a dynamic page, the row ID in the HubDB table. - sig { returns(T.nilable(Integer)) } - attr_reader :row_id - - sig { params(row_id: Integer).void } - attr_writer :row_id - - # For knowledge articles, the subcategory of the article. - sig { returns(T.nilable(String)) } - attr_reader :subcategory - - sig { params(subcategory: String).void } - attr_writer :subcategory - - # If a dynamic page, the ID of the HubDB table. - sig { returns(T.nilable(Integer)) } - attr_reader :table_id - - sig { params(table_id: Integer).void } - attr_writer :table_id - - # If a blog post, the tags associated with it. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - # The title of the returned document. - sig { returns(T.nilable(String)) } - attr_reader :title - - sig { params(title: String).void } - attr_writer :title - - sig do - params( - id: Integer, - domain: String, - score: Float, - type: HubSpotSDK::Cms::ContentSearchResult::Type::OrSymbol, - url: String, - author_full_name: String, - category: String, - combined_id: String, - content_type: String, - description: String, - featured_image_url: String, - in_beta: T::Boolean, - is_private: T::Boolean, - language: HubSpotSDK::Cms::ContentSearchResult::Language::OrSymbol, - published_date: Integer, - row_id: Integer, - subcategory: String, - table_id: Integer, - tags: T::Array[String], - title: String - ).returns(T.attached_class) - end - def self.new( - # The ID of the content. - id:, - # The domain the document is hosted on. - domain:, - # The matching score of the document. - score:, - # The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, - # `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`. - type:, - # The url of the document. - url:, - # Name of the author. - author_full_name: nil, - # The error category - category: nil, - # The ID of the document in HubSpot. - combined_id: nil, - content_type: nil, - # The result's description. The content will be determined by the value of - # `length` in the request. - description: nil, - # URL of the featured image. - featured_image_url: nil, - in_beta: nil, - is_private: nil, - # The document's language. - language: nil, - # The date the content was published. - published_date: nil, - # If a dynamic page, the row ID in the HubDB table. - row_id: nil, - # For knowledge articles, the subcategory of the article. - subcategory: nil, - # If a dynamic page, the ID of the HubDB table. - table_id: nil, - # If a blog post, the tags associated with it. - tags: nil, - # The title of the returned document. - title: nil - ) - end - - sig do - override.returns( - { - id: Integer, - domain: String, - score: Float, - type: HubSpotSDK::Cms::ContentSearchResult::Type::OrSymbol, - url: String, - author_full_name: String, - category: String, - combined_id: String, - content_type: String, - description: String, - featured_image_url: String, - in_beta: T::Boolean, - is_private: T::Boolean, - language: - HubSpotSDK::Cms::ContentSearchResult::Language::OrSymbol, - published_date: Integer, - row_id: Integer, - subcategory: String, - table_id: Integer, - tags: T::Array[String], - title: String - } - ) - end - def to_hash - end - - # The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, - # `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`. - module Type - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, HubSpotSDK::Cms::ContentSearchResult::Type) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - BLOG_POST = - T.let( - :BLOG_POST, - HubSpotSDK::Cms::ContentSearchResult::Type::TaggedSymbol - ) - KNOWLEDGE_ARTICLE = - T.let( - :KNOWLEDGE_ARTICLE, - HubSpotSDK::Cms::ContentSearchResult::Type::TaggedSymbol - ) - LANDING_PAGE = - T.let( - :LANDING_PAGE, - HubSpotSDK::Cms::ContentSearchResult::Type::TaggedSymbol - ) - LISTING_PAGE = - T.let( - :LISTING_PAGE, - HubSpotSDK::Cms::ContentSearchResult::Type::TaggedSymbol - ) - SITE_PAGE = - T.let( - :SITE_PAGE, - HubSpotSDK::Cms::ContentSearchResult::Type::TaggedSymbol - ) - STRUCTURED_CONTENT = - T.let( - :STRUCTURED_CONTENT, - HubSpotSDK::Cms::ContentSearchResult::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[HubSpotSDK::Cms::ContentSearchResult::Type::TaggedSymbol] - ) - end - def self.values - end - end - - # The document's language. - module Language - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, HubSpotSDK::Cms::ContentSearchResult::Language) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AA = - T.let( - :aa, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AB = - T.let( - :ab, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AE = - T.let( - :ae, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AF = - T.let( - :af, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AF_NA = - T.let( - :"af-na", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AF_ZA = - T.let( - :"af-za", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AGQ = - T.let( - :agq, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AGQ_CM = - T.let( - :"agq-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AK = - T.let( - :ak, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AK_GH = - T.let( - :"ak-gh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AM = - T.let( - :am, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AM_ET = - T.let( - :"am-et", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AN = - T.let( - :an, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ANN = - T.let( - :ann, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ANN_NG = - T.let( - :"ann-ng", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR = - T.let( - :ar, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_001 = - T.let( - :"ar-001", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_AE = - T.let( - :"ar-ae", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_BH = - T.let( - :"ar-bh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_DJ = - T.let( - :"ar-dj", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_DZ = - T.let( - :"ar-dz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_EG = - T.let( - :"ar-eg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_EH = - T.let( - :"ar-eh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_ER = - T.let( - :"ar-er", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_IL = - T.let( - :"ar-il", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_IQ = - T.let( - :"ar-iq", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_JO = - T.let( - :"ar-jo", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_KM = - T.let( - :"ar-km", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_KW = - T.let( - :"ar-kw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_LB = - T.let( - :"ar-lb", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_LY = - T.let( - :"ar-ly", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_MA = - T.let( - :"ar-ma", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_MR = - T.let( - :"ar-mr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_OM = - T.let( - :"ar-om", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_PS = - T.let( - :"ar-ps", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_QA = - T.let( - :"ar-qa", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_SA = - T.let( - :"ar-sa", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_SD = - T.let( - :"ar-sd", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_SO = - T.let( - :"ar-so", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_SS = - T.let( - :"ar-ss", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_SY = - T.let( - :"ar-sy", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_TD = - T.let( - :"ar-td", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_TN = - T.let( - :"ar-tn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AR_YE = - T.let( - :"ar-ye", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AS = - T.let( - :as, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AS_IN = - T.let( - :"as-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ASA = - T.let( - :asa, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ASA_TZ = - T.let( - :"asa-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AST = - T.let( - :ast, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AST_ES = - T.let( - :"ast-es", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AV = - T.let( - :av, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AY = - T.let( - :ay, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AZ = - T.let( - :az, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - AZ_AZ = - T.let( - :"az-az", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BA = - T.let( - :ba, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BAS = - T.let( - :bas, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BAS_CM = - T.let( - :"bas-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BE = - T.let( - :be, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BE_BY = - T.let( - :"be-by", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BEM = - T.let( - :bem, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BEM_ZM = - T.let( - :"bem-zm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BEZ = - T.let( - :bez, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BEZ_TZ = - T.let( - :"bez-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BG = - T.let( - :bg, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BG_BG = - T.let( - :"bg-bg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BGC = - T.let( - :bgc, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BGC_IN = - T.let( - :"bgc-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BHO = - T.let( - :bho, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BHO_IN = - T.let( - :"bho-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BI = - T.let( - :bi, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BM = - T.let( - :bm, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BM_ML = - T.let( - :"bm-ml", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BN = - T.let( - :bn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BN_BD = - T.let( - :"bn-bd", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BN_IN = - T.let( - :"bn-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BO = - T.let( - :bo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BO_CN = - T.let( - :"bo-cn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BO_IN = - T.let( - :"bo-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BR = - T.let( - :br, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BR_FR = - T.let( - :"br-fr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BRX = - T.let( - :brx, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BRX_IN = - T.let( - :"brx-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BS = - T.let( - :bs, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - BS_BA = - T.let( - :"bs-ba", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CA = - T.let( - :ca, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CA_AD = - T.let( - :"ca-ad", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CA_ES = - T.let( - :"ca-es", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CA_FR = - T.let( - :"ca-fr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CA_IT = - T.let( - :"ca-it", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CCP = - T.let( - :ccp, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CCP_BD = - T.let( - :"ccp-bd", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CCP_IN = - T.let( - :"ccp-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CE = - T.let( - :ce, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CE_RU = - T.let( - :"ce-ru", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CEB = - T.let( - :ceb, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CEB_PH = - T.let( - :"ceb-ph", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CGG = - T.let( - :cgg, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CGG_UG = - T.let( - :"cgg-ug", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CH = - T.let( - :ch, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CHR = - T.let( - :chr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CHR_US = - T.let( - :"chr-us", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CKB = - T.let( - :ckb, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CKB_IQ = - T.let( - :"ckb-iq", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CKB_IR = - T.let( - :"ckb-ir", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CO = - T.let( - :co, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CR = - T.let( - :cr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CS = - T.let( - :cs, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CS_CZ = - T.let( - :"cs-cz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CU = - T.let( - :cu, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CU_RU = - T.let( - :"cu-ru", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CV = - T.let( - :cv, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CV_RU = - T.let( - :"cv-ru", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CY = - T.let( - :cy, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - CY_GB = - T.let( - :"cy-gb", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DA = - T.let( - :da, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DA_DK = - T.let( - :"da-dk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DA_GL = - T.let( - :"da-gl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DAV = - T.let( - :dav, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DAV_KE = - T.let( - :"dav-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DE = - T.let( - :de, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DE_AT = - T.let( - :"de-at", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DE_BE = - T.let( - :"de-be", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DE_CH = - T.let( - :"de-ch", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DE_DE = - T.let( - :"de-de", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DE_GR = - T.let( - :"de-gr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DE_IT = - T.let( - :"de-it", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DE_LI = - T.let( - :"de-li", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DE_LU = - T.let( - :"de-lu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DJE = - T.let( - :dje, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DJE_NE = - T.let( - :"dje-ne", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DOI = - T.let( - :doi, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DOI_IN = - T.let( - :"doi-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DSB = - T.let( - :dsb, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DSB_DE = - T.let( - :"dsb-de", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DUA = - T.let( - :dua, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DUA_CM = - T.let( - :"dua-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DV = - T.let( - :dv, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DYO = - T.let( - :dyo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DYO_SN = - T.let( - :"dyo-sn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DZ = - T.let( - :dz, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - DZ_BT = - T.let( - :"dz-bt", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EBU = - T.let( - :ebu, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EBU_KE = - T.let( - :"ebu-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EE = - T.let( - :ee, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EE_GH = - T.let( - :"ee-gh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EE_TG = - T.let( - :"ee-tg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EL = - T.let( - :el, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EL_CY = - T.let( - :"el-cy", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EL_GR = - T.let( - :"el-gr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN = - T.let( - :en, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_001 = - T.let( - :"en-001", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_150 = - T.let( - :"en-150", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_AE = - T.let( - :"en-ae", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_AG = - T.let( - :"en-ag", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_AI = - T.let( - :"en-ai", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_AS = - T.let( - :"en-as", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_AT = - T.let( - :"en-at", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_AU = - T.let( - :"en-au", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_BB = - T.let( - :"en-bb", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_BE = - T.let( - :"en-be", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_BI = - T.let( - :"en-bi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_BM = - T.let( - :"en-bm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_BS = - T.let( - :"en-bs", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_BW = - T.let( - :"en-bw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_BZ = - T.let( - :"en-bz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_CA = - T.let( - :"en-ca", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_CC = - T.let( - :"en-cc", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_CH = - T.let( - :"en-ch", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_CK = - T.let( - :"en-ck", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_CM = - T.let( - :"en-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_CN = - T.let( - :"en-cn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_CX = - T.let( - :"en-cx", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_CY = - T.let( - :"en-cy", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_DE = - T.let( - :"en-de", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_DG = - T.let( - :"en-dg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_DK = - T.let( - :"en-dk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_DM = - T.let( - :"en-dm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_EE = - T.let( - :"en-ee", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_EG = - T.let( - :"en-eg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_ER = - T.let( - :"en-er", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_ES = - T.let( - :"en-es", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_FI = - T.let( - :"en-fi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_FJ = - T.let( - :"en-fj", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_FK = - T.let( - :"en-fk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_FM = - T.let( - :"en-fm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_FR = - T.let( - :"en-fr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_GB = - T.let( - :"en-gb", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_GD = - T.let( - :"en-gd", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_GG = - T.let( - :"en-gg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_GH = - T.let( - :"en-gh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_GI = - T.let( - :"en-gi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_GM = - T.let( - :"en-gm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_GU = - T.let( - :"en-gu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_GY = - T.let( - :"en-gy", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_HK = - T.let( - :"en-hk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_ID = - T.let( - :"en-id", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_IE = - T.let( - :"en-ie", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_IL = - T.let( - :"en-il", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_IM = - T.let( - :"en-im", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_IN = - T.let( - :"en-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_IO = - T.let( - :"en-io", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_JE = - T.let( - :"en-je", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_JM = - T.let( - :"en-jm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_KE = - T.let( - :"en-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_KI = - T.let( - :"en-ki", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_KN = - T.let( - :"en-kn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_KY = - T.let( - :"en-ky", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_LC = - T.let( - :"en-lc", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_LR = - T.let( - :"en-lr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_LS = - T.let( - :"en-ls", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_LU = - T.let( - :"en-lu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MG = - T.let( - :"en-mg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MH = - T.let( - :"en-mh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MO = - T.let( - :"en-mo", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MP = - T.let( - :"en-mp", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MS = - T.let( - :"en-ms", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MT = - T.let( - :"en-mt", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MU = - T.let( - :"en-mu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MV = - T.let( - :"en-mv", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MW = - T.let( - :"en-mw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MX = - T.let( - :"en-mx", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_MY = - T.let( - :"en-my", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_NA = - T.let( - :"en-na", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_NF = - T.let( - :"en-nf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_NG = - T.let( - :"en-ng", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_NL = - T.let( - :"en-nl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_NR = - T.let( - :"en-nr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_NU = - T.let( - :"en-nu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_NZ = - T.let( - :"en-nz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_PG = - T.let( - :"en-pg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_PH = - T.let( - :"en-ph", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_PK = - T.let( - :"en-pk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_PN = - T.let( - :"en-pn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_PR = - T.let( - :"en-pr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_PT = - T.let( - :"en-pt", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_PW = - T.let( - :"en-pw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_RW = - T.let( - :"en-rw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SB = - T.let( - :"en-sb", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SC = - T.let( - :"en-sc", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SD = - T.let( - :"en-sd", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SE = - T.let( - :"en-se", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SG = - T.let( - :"en-sg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SH = - T.let( - :"en-sh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SI = - T.let( - :"en-si", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SL = - T.let( - :"en-sl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SS = - T.let( - :"en-ss", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SX = - T.let( - :"en-sx", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_SZ = - T.let( - :"en-sz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_TC = - T.let( - :"en-tc", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_TH = - T.let( - :"en-th", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_TK = - T.let( - :"en-tk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_TN = - T.let( - :"en-tn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_TO = - T.let( - :"en-to", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_TT = - T.let( - :"en-tt", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_TV = - T.let( - :"en-tv", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_TZ = - T.let( - :"en-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_UG = - T.let( - :"en-ug", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_UM = - T.let( - :"en-um", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_US = - T.let( - :"en-us", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_VC = - T.let( - :"en-vc", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_VG = - T.let( - :"en-vg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_VI = - T.let( - :"en-vi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_VN = - T.let( - :"en-vn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_VU = - T.let( - :"en-vu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_WS = - T.let( - :"en-ws", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_ZA = - T.let( - :"en-za", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_ZM = - T.let( - :"en-zm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EN_ZW = - T.let( - :"en-zw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EO = - T.let( - :eo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EO_001 = - T.let( - :"eo-001", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES = - T.let( - :es, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_419 = - T.let( - :"es-419", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_AR = - T.let( - :"es-ar", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_BO = - T.let( - :"es-bo", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_BR = - T.let( - :"es-br", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_BZ = - T.let( - :"es-bz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_CL = - T.let( - :"es-cl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_CO = - T.let( - :"es-co", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_CR = - T.let( - :"es-cr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_CU = - T.let( - :"es-cu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_DO = - T.let( - :"es-do", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_EA = - T.let( - :"es-ea", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_EC = - T.let( - :"es-ec", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_ES = - T.let( - :"es-es", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_GQ = - T.let( - :"es-gq", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_GT = - T.let( - :"es-gt", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_HN = - T.let( - :"es-hn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_IC = - T.let( - :"es-ic", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_MX = - T.let( - :"es-mx", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_NI = - T.let( - :"es-ni", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_PA = - T.let( - :"es-pa", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_PE = - T.let( - :"es-pe", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_PH = - T.let( - :"es-ph", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_PR = - T.let( - :"es-pr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_PY = - T.let( - :"es-py", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_SV = - T.let( - :"es-sv", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_US = - T.let( - :"es-us", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_UY = - T.let( - :"es-uy", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ES_VE = - T.let( - :"es-ve", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ET = - T.let( - :et, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ET_EE = - T.let( - :"et-ee", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EU = - T.let( - :eu, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EU_ES = - T.let( - :"eu-es", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EWO = - T.let( - :ewo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - EWO_CM = - T.let( - :"ewo-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FA = - T.let( - :fa, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FA_AF = - T.let( - :"fa-af", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FA_IR = - T.let( - :"fa-ir", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF = - T.let( - :ff, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_BF = - T.let( - :"ff-bf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_CM = - T.let( - :"ff-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_GH = - T.let( - :"ff-gh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_GM = - T.let( - :"ff-gm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_GN = - T.let( - :"ff-gn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_GW = - T.let( - :"ff-gw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_LR = - T.let( - :"ff-lr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_MR = - T.let( - :"ff-mr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_NE = - T.let( - :"ff-ne", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_NG = - T.let( - :"ff-ng", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_SL = - T.let( - :"ff-sl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FF_SN = - T.let( - :"ff-sn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FI = - T.let( - :fi, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FI_FI = - T.let( - :"fi-fi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FIL = - T.let( - :fil, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FIL_PH = - T.let( - :"fil-ph", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FJ = - T.let( - :fj, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FO = - T.let( - :fo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FO_DK = - T.let( - :"fo-dk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FO_FO = - T.let( - :"fo-fo", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR = - T.let( - :fr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_BE = - T.let( - :"fr-be", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_BF = - T.let( - :"fr-bf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_BI = - T.let( - :"fr-bi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_BJ = - T.let( - :"fr-bj", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_BL = - T.let( - :"fr-bl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_CA = - T.let( - :"fr-ca", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_CD = - T.let( - :"fr-cd", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_CF = - T.let( - :"fr-cf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_CG = - T.let( - :"fr-cg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_CH = - T.let( - :"fr-ch", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_CI = - T.let( - :"fr-ci", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_CM = - T.let( - :"fr-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_DJ = - T.let( - :"fr-dj", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_DZ = - T.let( - :"fr-dz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_FR = - T.let( - :"fr-fr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_GA = - T.let( - :"fr-ga", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_GF = - T.let( - :"fr-gf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_GN = - T.let( - :"fr-gn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_GP = - T.let( - :"fr-gp", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_GQ = - T.let( - :"fr-gq", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_HT = - T.let( - :"fr-ht", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_KM = - T.let( - :"fr-km", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_LU = - T.let( - :"fr-lu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_MA = - T.let( - :"fr-ma", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_MC = - T.let( - :"fr-mc", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_MF = - T.let( - :"fr-mf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_MG = - T.let( - :"fr-mg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_ML = - T.let( - :"fr-ml", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_MQ = - T.let( - :"fr-mq", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_MR = - T.let( - :"fr-mr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_MU = - T.let( - :"fr-mu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_NC = - T.let( - :"fr-nc", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_NE = - T.let( - :"fr-ne", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_PF = - T.let( - :"fr-pf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_PM = - T.let( - :"fr-pm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_RE = - T.let( - :"fr-re", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_RW = - T.let( - :"fr-rw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_SC = - T.let( - :"fr-sc", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_SN = - T.let( - :"fr-sn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_SY = - T.let( - :"fr-sy", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_TD = - T.let( - :"fr-td", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_TG = - T.let( - :"fr-tg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_TN = - T.let( - :"fr-tn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_VU = - T.let( - :"fr-vu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_WF = - T.let( - :"fr-wf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FR_YT = - T.let( - :"fr-yt", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FRR = - T.let( - :frr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FRR_DE = - T.let( - :"frr-de", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FUR = - T.let( - :fur, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FUR_IT = - T.let( - :"fur-it", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FY = - T.let( - :fy, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - FY_NL = - T.let( - :"fy-nl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GA = - T.let( - :ga, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GA_GB = - T.let( - :"ga-gb", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GA_IE = - T.let( - :"ga-ie", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GD = - T.let( - :gd, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GD_GB = - T.let( - :"gd-gb", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GL = - T.let( - :gl, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GL_ES = - T.let( - :"gl-es", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GN = - T.let( - :gn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GSW = - T.let( - :gsw, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GSW_CH = - T.let( - :"gsw-ch", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GSW_FR = - T.let( - :"gsw-fr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GSW_LI = - T.let( - :"gsw-li", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GU = - T.let( - :gu, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GU_IN = - T.let( - :"gu-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GUZ = - T.let( - :guz, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GUZ_KE = - T.let( - :"guz-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GV = - T.let( - :gv, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - GV_IM = - T.let( - :"gv-im", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HA = - T.let( - :ha, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HA_GH = - T.let( - :"ha-gh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HA_NE = - T.let( - :"ha-ne", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HA_NG = - T.let( - :"ha-ng", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HAW = - T.let( - :haw, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HAW_US = - T.let( - :"haw-us", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HE = - T.let( - :he, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HE_IL = - T.let( - :"he-il", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HI = - T.let( - :hi, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HI_IN = - T.let( - :"hi-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HMN = - T.let( - :hmn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HO = - T.let( - :ho, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HR = - T.let( - :hr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HR_BA = - T.let( - :"hr-ba", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HR_HR = - T.let( - :"hr-hr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HSB = - T.let( - :hsb, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HSB_DE = - T.let( - :"hsb-de", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HT = - T.let( - :ht, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HU = - T.let( - :hu, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HU_HU = - T.let( - :"hu-hu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HY = - T.let( - :hy, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HY_AM = - T.let( - :"hy-am", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - HZ = - T.let( - :hz, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IA = - T.let( - :ia, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IA_001 = - T.let( - :"ia-001", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ID = - T.let( - :id, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ID_ID = - T.let( - :"id-id", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IE = - T.let( - :ie, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IG = - T.let( - :ig, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IG_NG = - T.let( - :"ig-ng", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - II = - T.let( - :ii, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - II_CN = - T.let( - :"ii-cn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IK = - T.let( - :ik, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IO = - T.let( - :io, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IS = - T.let( - :is, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IS_IS = - T.let( - :"is-is", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IT = - T.let( - :it, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IT_CH = - T.let( - :"it-ch", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IT_IT = - T.let( - :"it-it", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IT_SM = - T.let( - :"it-sm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IT_VA = - T.let( - :"it-va", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - IU = - T.let( - :iu, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - JA = - T.let( - :ja, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - JA_JP = - T.let( - :"ja-jp", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - JGO = - T.let( - :jgo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - JGO_CM = - T.let( - :"jgo-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - JMC = - T.let( - :jmc, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - JMC_TZ = - T.let( - :"jmc-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - JV = - T.let( - :jv, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - JV_ID = - T.let( - :"jv-id", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KA = - T.let( - :ka, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KA_GE = - T.let( - :"ka-ge", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KAB = - T.let( - :kab, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KAB_DZ = - T.let( - :"kab-dz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KAM = - T.let( - :kam, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KAM_KE = - T.let( - :"kam-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KAR = - T.let( - :kar, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KDE = - T.let( - :kde, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KDE_TZ = - T.let( - :"kde-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KEA = - T.let( - :kea, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KEA_CV = - T.let( - :"kea-cv", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KG = - T.let( - :kg, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KGP = - T.let( - :kgp, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KGP_BR = - T.let( - :"kgp-br", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KH = - T.let( - :kh, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KHQ = - T.let( - :khq, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KHQ_ML = - T.let( - :"khq-ml", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KI = - T.let( - :ki, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KI_KE = - T.let( - :"ki-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KJ = - T.let( - :kj, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KK = - T.let( - :kk, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KK_KZ = - T.let( - :"kk-kz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KKJ = - T.let( - :kkj, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KKJ_CM = - T.let( - :"kkj-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KL = - T.let( - :kl, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KL_GL = - T.let( - :"kl-gl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KLN = - T.let( - :kln, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KLN_KE = - T.let( - :"kln-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KM = - T.let( - :km, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KM_KH = - T.let( - :"km-kh", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KN = - T.let( - :kn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KN_IN = - T.let( - :"kn-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KO = - T.let( - :ko, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KO_KP = - T.let( - :"ko-kp", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KO_KR = - T.let( - :"ko-kr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KOK = - T.let( - :kok, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KOK_IN = - T.let( - :"kok-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KR = - T.let( - :kr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KS = - T.let( - :ks, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KS_IN = - T.let( - :"ks-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KSB = - T.let( - :ksb, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KSB_TZ = - T.let( - :"ksb-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KSF = - T.let( - :ksf, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KSF_CM = - T.let( - :"ksf-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KSH = - T.let( - :ksh, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KSH_DE = - T.let( - :"ksh-de", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KU = - T.let( - :ku, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KU_TR = - T.let( - :"ku-tr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KV = - T.let( - :kv, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KW = - T.let( - :kw, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KW_GB = - T.let( - :"kw-gb", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KY = - T.let( - :ky, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - KY_KG = - T.let( - :"ky-kg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LA = - T.let( - :la, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LAG = - T.let( - :lag, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LAG_TZ = - T.let( - :"lag-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LB = - T.let( - :lb, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LB_LU = - T.let( - :"lb-lu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LG = - T.let( - :lg, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LG_UG = - T.let( - :"lg-ug", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LI = - T.let( - :li, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LKT = - T.let( - :lkt, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LKT_US = - T.let( - :"lkt-us", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LN = - T.let( - :ln, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LN_AO = - T.let( - :"ln-ao", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LN_CD = - T.let( - :"ln-cd", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LN_CF = - T.let( - :"ln-cf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LN_CG = - T.let( - :"ln-cg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LO = - T.let( - :lo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LO_LA = - T.let( - :"lo-la", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LRC = - T.let( - :lrc, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LRC_IQ = - T.let( - :"lrc-iq", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LRC_IR = - T.let( - :"lrc-ir", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LT = - T.let( - :lt, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LT_LT = - T.let( - :"lt-lt", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LU = - T.let( - :lu, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LU_CD = - T.let( - :"lu-cd", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LUO = - T.let( - :luo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LUO_KE = - T.let( - :"luo-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LUY = - T.let( - :luy, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LUY_KE = - T.let( - :"luy-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LV = - T.let( - :lv, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - LV_LV = - T.let( - :"lv-lv", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MAI = - T.let( - :mai, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MAI_IN = - T.let( - :"mai-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MAS = - T.let( - :mas, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MAS_KE = - T.let( - :"mas-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MAS_TZ = - T.let( - :"mas-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MDF = - T.let( - :mdf, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MDF_RU = - T.let( - :"mdf-ru", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MER = - T.let( - :mer, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MER_KE = - T.let( - :"mer-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MFE = - T.let( - :mfe, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MFE_MU = - T.let( - :"mfe-mu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MG = - T.let( - :mg, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MG_MG = - T.let( - :"mg-mg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MGH = - T.let( - :mgh, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MGH_MZ = - T.let( - :"mgh-mz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MGO = - T.let( - :mgo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MGO_CM = - T.let( - :"mgo-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MH = - T.let( - :mh, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MI = - T.let( - :mi, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MI_NZ = - T.let( - :"mi-nz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MK = - T.let( - :mk, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MK_MK = - T.let( - :"mk-mk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ML = - T.let( - :ml, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ML_IN = - T.let( - :"ml-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MN = - T.let( - :mn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MN_MN = - T.let( - :"mn-mn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MNI = - T.let( - :mni, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MNI_IN = - T.let( - :"mni-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MR = - T.let( - :mr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MR_IN = - T.let( - :"mr-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MS = - T.let( - :ms, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MS_BN = - T.let( - :"ms-bn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MS_ID = - T.let( - :"ms-id", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MS_MY = - T.let( - :"ms-my", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MS_SG = - T.let( - :"ms-sg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MT = - T.let( - :mt, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MT_MT = - T.let( - :"mt-mt", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MUA = - T.let( - :mua, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MUA_CM = - T.let( - :"mua-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MY = - T.let( - :my, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MY_MM = - T.let( - :"my-mm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MZN = - T.let( - :mzn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - MZN_IR = - T.let( - :"mzn-ir", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NA = - T.let( - :na, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NAQ = - T.let( - :naq, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NAQ_NA = - T.let( - :"naq-na", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NB = - T.let( - :nb, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NB_NO = - T.let( - :"nb-no", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NB_SJ = - T.let( - :"nb-sj", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ND = - T.let( - :nd, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ND_ZW = - T.let( - :"nd-zw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NDS = - T.let( - :nds, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NDS_DE = - T.let( - :"nds-de", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NDS_NL = - T.let( - :"nds-nl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NE = - T.let( - :ne, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NE_IN = - T.let( - :"ne-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NE_NP = - T.let( - :"ne-np", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NG = - T.let( - :ng, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL = - T.let( - :nl, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL_AW = - T.let( - :"nl-aw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL_BE = - T.let( - :"nl-be", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL_BQ = - T.let( - :"nl-bq", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL_CH = - T.let( - :"nl-ch", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL_CW = - T.let( - :"nl-cw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL_LU = - T.let( - :"nl-lu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL_NL = - T.let( - :"nl-nl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL_SR = - T.let( - :"nl-sr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NL_SX = - T.let( - :"nl-sx", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NMG = - T.let( - :nmg, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NMG_CM = - T.let( - :"nmg-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NN = - T.let( - :nn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NN_NO = - T.let( - :"nn-no", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NNH = - T.let( - :nnh, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NNH_CM = - T.let( - :"nnh-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NO = - T.let( - :no, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NO_NO = - T.let( - :"no-no", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NR = - T.let( - :nr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NUS = - T.let( - :nus, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NUS_SS = - T.let( - :"nus-ss", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NV = - T.let( - :nv, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NY = - T.let( - :ny, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NYN = - T.let( - :nyn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - NYN_UG = - T.let( - :"nyn-ug", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OC = - T.let( - :oc, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OC_ES = - T.let( - :"oc-es", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OC_FR = - T.let( - :"oc-fr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OJ = - T.let( - :oj, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OM = - T.let( - :om, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OM_ET = - T.let( - :"om-et", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OM_KE = - T.let( - :"om-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OR = - T.let( - :or, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OR_IN = - T.let( - :"or-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OS = - T.let( - :os, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OS_GE = - T.let( - :"os-ge", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - OS_RU = - T.let( - :"os-ru", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PA = - T.let( - :pa, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PA_IN = - T.let( - :"pa-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PA_PK = - T.let( - :"pa-pk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PCM = - T.let( - :pcm, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PCM_NG = - T.let( - :"pcm-ng", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PI = - T.let( - :pi, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PIS = - T.let( - :pis, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PIS_SB = - T.let( - :"pis-sb", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PL = - T.let( - :pl, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PL_PL = - T.let( - :"pl-pl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PRG = - T.let( - :prg, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PRG_001 = - T.let( - :"prg-001", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PS = - T.let( - :ps, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PS_AF = - T.let( - :"ps-af", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PS_PK = - T.let( - :"ps-pk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT = - T.let( - :pt, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_AO = - T.let( - :"pt-ao", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_BR = - T.let( - :"pt-br", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_CH = - T.let( - :"pt-ch", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_CV = - T.let( - :"pt-cv", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_GQ = - T.let( - :"pt-gq", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_GW = - T.let( - :"pt-gw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_LU = - T.let( - :"pt-lu", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_MO = - T.let( - :"pt-mo", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_MZ = - T.let( - :"pt-mz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_PT = - T.let( - :"pt-pt", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_ST = - T.let( - :"pt-st", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - PT_TL = - T.let( - :"pt-tl", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - QU = - T.let( - :qu, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - QU_BO = - T.let( - :"qu-bo", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - QU_EC = - T.let( - :"qu-ec", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - QU_PE = - T.let( - :"qu-pe", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RAJ = - T.let( - :raj, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RAJ_IN = - T.let( - :"raj-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RM = - T.let( - :rm, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RM_CH = - T.let( - :"rm-ch", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RN = - T.let( - :rn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RN_BI = - T.let( - :"rn-bi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RO = - T.let( - :ro, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RO_MD = - T.let( - :"ro-md", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RO_RO = - T.let( - :"ro-ro", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ROF = - T.let( - :rof, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ROF_TZ = - T.let( - :"rof-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RU = - T.let( - :ru, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RU_BY = - T.let( - :"ru-by", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RU_KG = - T.let( - :"ru-kg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RU_KZ = - T.let( - :"ru-kz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RU_MD = - T.let( - :"ru-md", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RU_RU = - T.let( - :"ru-ru", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RU_UA = - T.let( - :"ru-ua", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RW = - T.let( - :rw, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RW_RW = - T.let( - :"rw-rw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RWK = - T.let( - :rwk, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - RWK_TZ = - T.let( - :"rwk-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SA = - T.let( - :sa, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SA_IN = - T.let( - :"sa-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SAH = - T.let( - :sah, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SAH_RU = - T.let( - :"sah-ru", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SAQ = - T.let( - :saq, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SAQ_KE = - T.let( - :"saq-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SAT = - T.let( - :sat, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SAT_IN = - T.let( - :"sat-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SBP = - T.let( - :sbp, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SBP_TZ = - T.let( - :"sbp-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SC = - T.let( - :sc, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SC_IT = - T.let( - :"sc-it", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SD = - T.let( - :sd, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SD_IN = - T.let( - :"sd-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SD_PK = - T.let( - :"sd-pk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SE = - T.let( - :se, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SE_FI = - T.let( - :"se-fi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SE_NO = - T.let( - :"se-no", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SE_SE = - T.let( - :"se-se", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SEH = - T.let( - :seh, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SEH_MZ = - T.let( - :"seh-mz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SES = - T.let( - :ses, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SES_ML = - T.let( - :"ses-ml", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SG = - T.let( - :sg, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SG_CF = - T.let( - :"sg-cf", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SHI = - T.let( - :shi, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SHI_MA = - T.let( - :"shi-ma", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SI = - T.let( - :si, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SI_LK = - T.let( - :"si-lk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SK = - T.let( - :sk, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SK_SK = - T.let( - :"sk-sk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SL = - T.let( - :sl, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SL_SI = - T.let( - :"sl-si", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SM = - T.let( - :sm, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SMN = - T.let( - :smn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SMN_FI = - T.let( - :"smn-fi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SMS = - T.let( - :sms, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SMS_FI = - T.let( - :"sms-fi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SN = - T.let( - :sn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SN_ZW = - T.let( - :"sn-zw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SO = - T.let( - :so, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SO_DJ = - T.let( - :"so-dj", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SO_ET = - T.let( - :"so-et", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SO_KE = - T.let( - :"so-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SO_SO = - T.let( - :"so-so", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SQ = - T.let( - :sq, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SQ_AL = - T.let( - :"sq-al", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SQ_MK = - T.let( - :"sq-mk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SQ_XK = - T.let( - :"sq-xk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SR = - T.let( - :sr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SR_BA = - T.let( - :"sr-ba", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SR_CS = - T.let( - :"sr-cs", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SR_ME = - T.let( - :"sr-me", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SR_RS = - T.let( - :"sr-rs", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SR_XK = - T.let( - :"sr-xk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SS = - T.let( - :ss, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ST = - T.let( - :st, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SU = - T.let( - :su, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SU_ID = - T.let( - :"su-id", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SV = - T.let( - :sv, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SV_AX = - T.let( - :"sv-ax", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SV_FI = - T.let( - :"sv-fi", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SV_SE = - T.let( - :"sv-se", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SW = - T.let( - :sw, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SW_CD = - T.let( - :"sw-cd", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SW_KE = - T.let( - :"sw-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SW_TZ = - T.let( - :"sw-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SW_UG = - T.let( - :"sw-ug", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - SY = - T.let( - :sy, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TA = - T.let( - :ta, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TA_IN = - T.let( - :"ta-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TA_LK = - T.let( - :"ta-lk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TA_MY = - T.let( - :"ta-my", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TA_SG = - T.let( - :"ta-sg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TE = - T.let( - :te, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TE_IN = - T.let( - :"te-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TEO = - T.let( - :teo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TEO_KE = - T.let( - :"teo-ke", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TEO_UG = - T.let( - :"teo-ug", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TG = - T.let( - :tg, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TG_TJ = - T.let( - :"tg-tj", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TH = - T.let( - :th, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TH_TH = - T.let( - :"th-th", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TI = - T.let( - :ti, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TI_ER = - T.let( - :"ti-er", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TI_ET = - T.let( - :"ti-et", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TK = - T.let( - :tk, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TK_TM = - T.let( - :"tk-tm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TL = - T.let( - :tl, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TN = - T.let( - :tn, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TO = - T.let( - :to, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TO_TO = - T.let( - :"to-to", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TOK = - T.let( - :tok, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TOK_001 = - T.let( - :"tok-001", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TR = - T.let( - :tr, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TR_CY = - T.let( - :"tr-cy", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TR_TR = - T.let( - :"tr-tr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TS = - T.let( - :ts, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TT = - T.let( - :tt, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TT_RU = - T.let( - :"tt-ru", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TW = - T.let( - :tw, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TWQ = - T.let( - :twq, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TWQ_NE = - T.let( - :"twq-ne", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TY = - T.let( - :ty, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TZM = - T.let( - :tzm, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - TZM_MA = - T.let( - :"tzm-ma", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UG = - T.let( - :ug, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UG_CN = - T.let( - :"ug-cn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UK = - T.let( - :uk, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UK_UA = - T.let( - :"uk-ua", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UR = - T.let( - :ur, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UR_IN = - T.let( - :"ur-in", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UR_PK = - T.let( - :"ur-pk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UZ = - T.let( - :uz, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UZ_AF = - T.let( - :"uz-af", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - UZ_UZ = - T.let( - :"uz-uz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - VAI = - T.let( - :vai, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - VAI_LR = - T.let( - :"vai-lr", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - VE = - T.let( - :ve, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - VI = - T.let( - :vi, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - VI_VN = - T.let( - :"vi-vn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - VO = - T.let( - :vo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - VO_001 = - T.let( - :"vo-001", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - VUN = - T.let( - :vun, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - VUN_TZ = - T.let( - :"vun-tz", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - WA = - T.let( - :wa, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - WAE = - T.let( - :wae, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - WAE_CH = - T.let( - :"wae-ch", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - WO = - T.let( - :wo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - WO_SN = - T.let( - :"wo-sn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - XH = - T.let( - :xh, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - XH_ZA = - T.let( - :"xh-za", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - XOG = - T.let( - :xog, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - XOG_UG = - T.let( - :"xog-ug", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YAV = - T.let( - :yav, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YAV_CM = - T.let( - :"yav-cm", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YI = - T.let( - :yi, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YI_001 = - T.let( - :"yi-001", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YO = - T.let( - :yo, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YO_BJ = - T.let( - :"yo-bj", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YO_NG = - T.let( - :"yo-ng", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YRL = - T.let( - :yrl, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YRL_BR = - T.let( - :"yrl-br", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YRL_CO = - T.let( - :"yrl-co", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YRL_VE = - T.let( - :"yrl-ve", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YUE = - T.let( - :yue, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YUE_CN = - T.let( - :"yue-cn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - YUE_HK = - T.let( - :"yue-hk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZA = - T.let( - :za, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZGH = - T.let( - :zgh, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZGH_MA = - T.let( - :"zgh-ma", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZH = - T.let( - :zh, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZH_CN = - T.let( - :"zh-cn", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZH_HANS = - T.let( - :"zh-hans", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZH_HANT = - T.let( - :"zh-hant", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZH_HK = - T.let( - :"zh-hk", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZH_MO = - T.let( - :"zh-mo", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZH_SG = - T.let( - :"zh-sg", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZH_TW = - T.let( - :"zh-tw", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZU = - T.let( - :zu, - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - ZU_ZA = - T.let( - :"zu-za", - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Cms::ContentSearchResult::Language::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/cms/inbound_db_object_type.rbi b/rbi/hubspot_sdk/models/cms/inbound_db_object_type.rbi index 1541a698..42217a62 100644 --- a/rbi/hubspot_sdk/models/cms/inbound_db_object_type.rbi +++ b/rbi/hubspot_sdk/models/cms/inbound_db_object_type.rbi @@ -181,6 +181,27 @@ module HubSpotSDK end attr_writer :status + sig do + returns( + T.nilable( + T::Array[ + HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol + ] + ) + ) + end + attr_reader :visibilities + + sig do + params( + visibilities: + T::Array[ + HubSpotSDK::Cms::InboundDBObjectType::Visibility::OrSymbol + ] + ).void + end + attr_writer :visibilities + sig do returns( T.nilable( @@ -245,6 +266,10 @@ module HubSpotSDK read_scope_name: String, singular_form: String, status: HubSpotSDK::Cms::InboundDBObjectType::Status::OrSymbol, + visibilities: + T::Array[ + HubSpotSDK::Cms::InboundDBObjectType::Visibility::OrSymbol + ], visibility: HubSpotSDK::Cms::InboundDBObjectType::Visibility::OrSymbol, write_scope_name: String @@ -289,6 +314,7 @@ module HubSpotSDK read_scope_name: nil, singular_form: nil, status: nil, + visibilities: nil, visibility: nil, write_scope_name: nil ) @@ -338,6 +364,10 @@ module HubSpotSDK singular_form: String, status: HubSpotSDK::Cms::InboundDBObjectType::Status::TaggedSymbol, + visibilities: + T::Array[ + HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol + ], visibility: HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol, write_scope_name: String @@ -512,9 +542,9 @@ module HubSpotSDK :"Customer-facing", HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol ) - CUSTOMER_FACING_PUBLIC_API = + INTERNAL_ONLY = T.let( - :"Customer-facing public API", + :"Internal only", HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol ) CUSTOMER_FACING_UI = @@ -522,9 +552,9 @@ module HubSpotSDK :"Customer-facing UI", HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol ) - INTERNAL_ONLY = + CUSTOMER_FACING_PUBLIC_API = T.let( - :"Internal only", + :"Customer-facing public API", HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol ) diff --git a/rbi/hubspot_sdk/models/cms/public_search_results.rbi b/rbi/hubspot_sdk/models/cms/public_search_results.rbi deleted file mode 100644 index 4402749e..00000000 --- a/rbi/hubspot_sdk/models/cms/public_search_results.rbi +++ /dev/null @@ -1,83 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Cms - class PublicSearchResults < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Cms::PublicSearchResults, - HubSpotSDK::Internal::AnyHash - ) - end - - # The number of results returned in a single response. - sig { returns(Integer) } - attr_accessor :limit - - # The starting point for the next set of results in pagination. - sig { returns(Integer) } - attr_accessor :offset - - # The current page number in the paginated results. - sig { returns(Integer) } - attr_accessor :page - - sig { returns(T::Array[HubSpotSDK::Cms::ContentSearchResult]) } - attr_accessor :results - - # The total number of results found for the search term. - sig { returns(Integer) } - attr_accessor :total - - # The term used in the search query. - sig { returns(T.nilable(String)) } - attr_reader :search_term - - sig { params(search_term: String).void } - attr_writer :search_term - - sig do - params( - limit: Integer, - offset: Integer, - page: Integer, - results: T::Array[HubSpotSDK::Cms::ContentSearchResult::OrHash], - total: Integer, - search_term: String - ).returns(T.attached_class) - end - def self.new( - # The number of results returned in a single response. - limit:, - # The starting point for the next set of results in pagination. - offset:, - # The current page number in the paginated results. - page:, - results:, - # The total number of results found for the search term. - total:, - # The term used in the search query. - search_term: nil - ) - end - - sig do - override.returns( - { - limit: Integer, - offset: Integer, - page: Integer, - results: T::Array[HubSpotSDK::Cms::ContentSearchResult], - total: Integer, - search_term: String - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rbi b/rbi/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rbi new file mode 100644 index 00000000..60c99b71 --- /dev/null +++ b/rbi/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rbi @@ -0,0 +1,34 @@ +# typed: strong + +module HubSpotSDK + module Models + module Cms + class URLRedirectCreateURLMappingParams < HubSpotSDK::Models::Cms::URLMapping + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::Cms::URLRedirectCreateURLMappingParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) + end + + sig do + override.returns({ request_options: HubSpotSDK::RequestOptions }) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rbi b/rbi/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rbi new file mode 100644 index 00000000..4680db7a --- /dev/null +++ b/rbi/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rbi @@ -0,0 +1,40 @@ +# typed: strong + +module HubSpotSDK + module Models + module Cms + class URLRedirectDeleteURLMappingParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::Cms::URLRedirectDeleteURLMappingParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :id + + sig do + params( + id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(id:, request_options: {}) + end + + sig do + override.returns( + { id: Integer, request_options: HubSpotSDK::RequestOptions } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rbi b/rbi/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rbi new file mode 100644 index 00000000..bf350324 --- /dev/null +++ b/rbi/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rbi @@ -0,0 +1,40 @@ +# typed: strong + +module HubSpotSDK + module Models + module Cms + class URLRedirectGetURLMappingParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::Cms::URLRedirectGetURLMappingParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :id + + sig do + params( + id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(id:, request_options: {}) + end + + sig do + override.returns( + { id: Integer, request_options: HubSpotSDK::RequestOptions } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rbi b/rbi/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rbi new file mode 100644 index 00000000..988217a0 --- /dev/null +++ b/rbi/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rbi @@ -0,0 +1,34 @@ +# typed: strong + +module HubSpotSDK + module Models + module Cms + class URLRedirectListURLMappingsParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::Cms::URLRedirectListURLMappingsParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) + end + + sig do + override.returns({ request_options: HubSpotSDK::RequestOptions }) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/condition.rbi b/rbi/hubspot_sdk/models/condition.rbi new file mode 100644 index 00000000..6243dc06 --- /dev/null +++ b/rbi/hubspot_sdk/models/condition.rbi @@ -0,0 +1,149 @@ +# typed: strong + +module HubSpotSDK + module Models + class Condition < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(HubSpotSDK::Condition, HubSpotSDK::Internal::AnyHash) + end + + # A string indicating the type of filter being applied. Valid value is + # 'CRM_OBJECT_PROPERTY'. + sig { returns(HubSpotSDK::Condition::FilterType::OrSymbol) } + attr_accessor :filter_type + + # A string specifying the operation to be performed in the condition. Valid values + # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', + # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. + sig { returns(HubSpotSDK::Condition::Operator::OrSymbol) } + attr_accessor :operator + + # A string representing the specific property of the CRM object that the condition + # applies to. + sig { returns(String) } + attr_accessor :property + + # A string representing the value to be compared against the specified property + # when using single-value operators. + sig { returns(T.nilable(String)) } + attr_reader :value + + sig { params(value: String).void } + attr_writer :value + + # An array of strings used to specify multiple values for comparison when using + # operators that support multiple values, such as 'IN' or 'NOT_IN'. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :values + + sig { params(values: T::Array[String]).void } + attr_writer :values + + sig do + params( + filter_type: HubSpotSDK::Condition::FilterType::OrSymbol, + operator: HubSpotSDK::Condition::Operator::OrSymbol, + property: String, + value: String, + values: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + # A string indicating the type of filter being applied. Valid value is + # 'CRM_OBJECT_PROPERTY'. + filter_type:, + # A string specifying the operation to be performed in the condition. Valid values + # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', + # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. + operator:, + # A string representing the specific property of the CRM object that the condition + # applies to. + property:, + # A string representing the value to be compared against the specified property + # when using single-value operators. + value: nil, + # An array of strings used to specify multiple values for comparison when using + # operators that support multiple values, such as 'IN' or 'NOT_IN'. + values: nil + ) + end + + sig do + override.returns( + { + filter_type: HubSpotSDK::Condition::FilterType::OrSymbol, + operator: HubSpotSDK::Condition::Operator::OrSymbol, + property: String, + value: String, + values: T::Array[String] + } + ) + end + def to_hash + end + + # A string indicating the type of filter being applied. Valid value is + # 'CRM_OBJECT_PROPERTY'. + module FilterType + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, HubSpotSDK::Condition::FilterType) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CRM_OBJECT_PROPERTY = + T.let( + :CRM_OBJECT_PROPERTY, + HubSpotSDK::Condition::FilterType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[HubSpotSDK::Condition::FilterType::TaggedSymbol] + ) + end + def self.values + end + end + + # A string specifying the operation to be performed in the condition. Valid values + # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', + # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. + module Operator + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, HubSpotSDK::Condition::Operator) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CONTAINS = + T.let(:CONTAINS, HubSpotSDK::Condition::Operator::TaggedSymbol) + ENDS_WITH = + T.let(:ENDS_WITH, HubSpotSDK::Condition::Operator::TaggedSymbol) + EQ = T.let(:EQ, HubSpotSDK::Condition::Operator::TaggedSymbol) + GT = T.let(:GT, HubSpotSDK::Condition::Operator::TaggedSymbol) + GTE = T.let(:GTE, HubSpotSDK::Condition::Operator::TaggedSymbol) + IN = T.let(:IN, HubSpotSDK::Condition::Operator::TaggedSymbol) + IS_EMPTY = + T.let(:IS_EMPTY, HubSpotSDK::Condition::Operator::TaggedSymbol) + IS_NOT_EMPTY = + T.let(:IS_NOT_EMPTY, HubSpotSDK::Condition::Operator::TaggedSymbol) + LT = T.let(:LT, HubSpotSDK::Condition::Operator::TaggedSymbol) + LTE = T.let(:LTE, HubSpotSDK::Condition::Operator::TaggedSymbol) + N_EQ = T.let(:N_EQ, HubSpotSDK::Condition::Operator::TaggedSymbol) + NOT_IN = T.let(:NOT_IN, HubSpotSDK::Condition::Operator::TaggedSymbol) + STARTS_WITH = + T.let(:STARTS_WITH, HubSpotSDK::Condition::Operator::TaggedSymbol) + + sig do + override.returns( + T::Array[HubSpotSDK::Condition::Operator::TaggedSymbol] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/conversations/identification_token_generation_request.rbi b/rbi/hubspot_sdk/models/conversations/identification_token_generation_request.rbi index c10c586f..4f2ab6d4 100644 --- a/rbi/hubspot_sdk/models/conversations/identification_token_generation_request.rbi +++ b/rbi/hubspot_sdk/models/conversations/identification_token_generation_request.rbi @@ -16,6 +16,9 @@ module HubSpotSDK sig { returns(String) } attr_accessor :email + sig { returns(T::Hash[Symbol, String]) } + attr_accessor :hs_customer_agent_context + # The first name of the visitor that you wish to identify. This value will only be # set in HubSpot for new contacts and existing contacts where first name is # unknown. Optional. @@ -35,13 +38,17 @@ module HubSpotSDK attr_writer :last_name sig do - params(email: String, first_name: String, last_name: String).returns( - T.attached_class - ) + params( + email: String, + hs_customer_agent_context: T::Hash[Symbol, String], + first_name: String, + last_name: String + ).returns(T.attached_class) end def self.new( # The email of the visitor that you wish to identify email:, + hs_customer_agent_context:, # The first name of the visitor that you wish to identify. This value will only be # set in HubSpot for new contacts and existing contacts where first name is # unknown. Optional. @@ -55,7 +62,12 @@ module HubSpotSDK sig do override.returns( - { email: String, first_name: String, last_name: String } + { + email: String, + hs_customer_agent_context: T::Hash[Symbol, String], + first_name: String, + last_name: String + } ) end def to_hash diff --git a/rbi/hubspot_sdk/models/conversations/pre_resolved_contact.rbi b/rbi/hubspot_sdk/models/conversations/pre_resolved_contact.rbi index 229f0f31..04b35131 100644 --- a/rbi/hubspot_sdk/models/conversations/pre_resolved_contact.rbi +++ b/rbi/hubspot_sdk/models/conversations/pre_resolved_contact.rbi @@ -1437,6 +1437,11 @@ module HubSpotSDK :hs_source_portal_id, HubSpotSDK::Conversations::PreResolvedContact::ContactPropertiesLeadingToMatch::TaggedSymbol ) + HS_SOURCED_CONTACT_ORIGIN = + T.let( + :hs_sourced_contact_origin, + HubSpotSDK::Conversations::PreResolvedContact::ContactPropertiesLeadingToMatch::TaggedSymbol + ) HS_STATE_CODE = T.let( :hs_state_code, diff --git a/rbi/hubspot_sdk/models/crm/filter.rbi b/rbi/hubspot_sdk/models/crm/crm_filter.rbi similarity index 66% rename from rbi/hubspot_sdk/models/crm/filter.rbi rename to rbi/hubspot_sdk/models/crm/crm_filter.rbi index 7303851c..5f597f6d 100644 --- a/rbi/hubspot_sdk/models/crm/filter.rbi +++ b/rbi/hubspot_sdk/models/crm/crm_filter.rbi @@ -3,14 +3,14 @@ module HubSpotSDK module Models module Crm - class Filter < HubSpotSDK::Internal::Type::BaseModel + class CrmFilter < HubSpotSDK::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(HubSpotSDK::Crm::Filter, HubSpotSDK::Internal::AnyHash) + T.any(HubSpotSDK::Crm::CrmFilter, HubSpotSDK::Internal::AnyHash) end # The comparison operator used in the filter, such as "EQ" or "GT". - sig { returns(HubSpotSDK::Crm::Filter::Operator::OrSymbol) } + sig { returns(HubSpotSDK::Crm::CrmFilter::Operator::OrSymbol) } attr_accessor :operator # The name of the property to apply the filter to. @@ -43,7 +43,7 @@ module HubSpotSDK # the value(s) to compare against. sig do params( - operator: HubSpotSDK::Crm::Filter::Operator::OrSymbol, + operator: HubSpotSDK::Crm::CrmFilter::Operator::OrSymbol, property_name: String, high_value: String, value: String, @@ -67,7 +67,7 @@ module HubSpotSDK sig do override.returns( { - operator: HubSpotSDK::Crm::Filter::Operator::OrSymbol, + operator: HubSpotSDK::Crm::CrmFilter::Operator::OrSymbol, property_name: String, high_value: String, value: String, @@ -83,44 +83,44 @@ module HubSpotSDK extend HubSpotSDK::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, HubSpotSDK::Crm::Filter::Operator) } + T.type_alias { T.all(Symbol, HubSpotSDK::Crm::CrmFilter::Operator) } OrSymbol = T.type_alias { T.any(Symbol, String) } BETWEEN = - T.let(:BETWEEN, HubSpotSDK::Crm::Filter::Operator::TaggedSymbol) + T.let(:BETWEEN, HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol) CONTAINS_TOKEN = T.let( :CONTAINS_TOKEN, - HubSpotSDK::Crm::Filter::Operator::TaggedSymbol + HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol ) - EQ = T.let(:EQ, HubSpotSDK::Crm::Filter::Operator::TaggedSymbol) - GT = T.let(:GT, HubSpotSDK::Crm::Filter::Operator::TaggedSymbol) - GTE = T.let(:GTE, HubSpotSDK::Crm::Filter::Operator::TaggedSymbol) + EQ = T.let(:EQ, HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol) + GT = T.let(:GT, HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol) + GTE = T.let(:GTE, HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol) HAS_PROPERTY = T.let( :HAS_PROPERTY, - HubSpotSDK::Crm::Filter::Operator::TaggedSymbol + HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol ) - IN = T.let(:IN, HubSpotSDK::Crm::Filter::Operator::TaggedSymbol) - LT = T.let(:LT, HubSpotSDK::Crm::Filter::Operator::TaggedSymbol) - LTE = T.let(:LTE, HubSpotSDK::Crm::Filter::Operator::TaggedSymbol) - NEQ = T.let(:NEQ, HubSpotSDK::Crm::Filter::Operator::TaggedSymbol) + IN = T.let(:IN, HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol) + LT = T.let(:LT, HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol) + LTE = T.let(:LTE, HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol) + NEQ = T.let(:NEQ, HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol) NOT_CONTAINS_TOKEN = T.let( :NOT_CONTAINS_TOKEN, - HubSpotSDK::Crm::Filter::Operator::TaggedSymbol + HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol ) NOT_HAS_PROPERTY = T.let( :NOT_HAS_PROPERTY, - HubSpotSDK::Crm::Filter::Operator::TaggedSymbol + HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol ) NOT_IN = - T.let(:NOT_IN, HubSpotSDK::Crm::Filter::Operator::TaggedSymbol) + T.let(:NOT_IN, HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol) sig do override.returns( - T::Array[HubSpotSDK::Crm::Filter::Operator::TaggedSymbol] + T::Array[HubSpotSDK::Crm::CrmFilter::Operator::TaggedSymbol] ) end def self.values diff --git a/rbi/hubspot_sdk/models/crm/filter_group.rbi b/rbi/hubspot_sdk/models/crm/filter_group.rbi index 27c2746e..7ed841b4 100644 --- a/rbi/hubspot_sdk/models/crm/filter_group.rbi +++ b/rbi/hubspot_sdk/models/crm/filter_group.rbi @@ -9,18 +9,20 @@ module HubSpotSDK T.any(HubSpotSDK::Crm::FilterGroup, HubSpotSDK::Internal::AnyHash) end - sig { returns(T::Array[HubSpotSDK::Crm::Filter]) } + sig { returns(T::Array[HubSpotSDK::Crm::CrmFilter]) } attr_accessor :filters sig do - params(filters: T::Array[HubSpotSDK::Crm::Filter::OrHash]).returns( + params(filters: T::Array[HubSpotSDK::Crm::CrmFilter::OrHash]).returns( T.attached_class ) end def self.new(filters:) end - sig { override.returns({ filters: T::Array[HubSpotSDK::Crm::Filter] }) } + sig do + override.returns({ filters: T::Array[HubSpotSDK::Crm::CrmFilter] }) + end def to_hash end end diff --git a/rbi/hubspot_sdk/models/crm/list_create_request.rbi b/rbi/hubspot_sdk/models/crm/list_create_request.rbi index 6b88c7ce..440d5980 100644 --- a/rbi/hubspot_sdk/models/crm/list_create_request.rbi +++ b/rbi/hubspot_sdk/models/crm/list_create_request.rbi @@ -44,7 +44,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ) @@ -62,7 +61,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch::OrHash, HubSpotSDK::Crm::PublicRestrictedFilterBranch::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::OrHash, HubSpotSDK::Crm::PublicAssociationFilterBranch::OrHash ) ).void @@ -112,7 +110,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch::OrHash, HubSpotSDK::Crm::PublicRestrictedFilterBranch::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::OrHash, HubSpotSDK::Crm::PublicAssociationFilterBranch::OrHash ), list_folder_id: Integer, @@ -157,7 +154,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ), list_folder_id: Integer, @@ -182,7 +178,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end diff --git a/rbi/hubspot_sdk/models/crm/list_filter_update_request.rbi b/rbi/hubspot_sdk/models/crm/list_filter_update_request.rbi index 3697d173..784c8dfb 100644 --- a/rbi/hubspot_sdk/models/crm/list_filter_update_request.rbi +++ b/rbi/hubspot_sdk/models/crm/list_filter_update_request.rbi @@ -22,7 +22,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ) @@ -39,7 +38,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch::OrHash, HubSpotSDK::Crm::PublicRestrictedFilterBranch::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::OrHash, HubSpotSDK::Crm::PublicAssociationFilterBranch::OrHash ) ).returns(T.attached_class) @@ -61,7 +59,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) } @@ -83,7 +80,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end diff --git a/rbi/hubspot_sdk/models/crm/public_and_filter_branch.rbi b/rbi/hubspot_sdk/models/crm/public_and_filter_branch.rbi index 2ea54038..d18c924e 100644 --- a/rbi/hubspot_sdk/models/crm/public_and_filter_branch.rbi +++ b/rbi/hubspot_sdk/models/crm/public_and_filter_branch.rbi @@ -22,7 +22,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ] @@ -56,7 +55,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -65,9 +63,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -86,7 +82,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -106,7 +101,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter::OrHash, HubSpotSDK::Crm::PublicEmailSubscriptionFilter::OrHash, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter::OrHash, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter::OrHash, HubSpotSDK::Crm::PublicWebinarFilter::OrHash, @@ -115,9 +109,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter::OrHash, HubSpotSDK::Crm::PublicAdsTimeFilter::OrHash, HubSpotSDK::Crm::PublicInListFilter::OrHash, - HubSpotSDK::Crm::PublicNumAssociationsFilter::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilter::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::OrHash, HubSpotSDK::Crm::PublicConstantFilter::OrHash ) ] @@ -145,7 +137,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -165,7 +156,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -174,9 +164,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -198,7 +186,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end @@ -260,7 +247,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -269,9 +255,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) end diff --git a/rbi/hubspot_sdk/models/crm/public_association_filter_branch.rbi b/rbi/hubspot_sdk/models/crm/public_association_filter_branch.rbi index 4bc0a59b..12f64be8 100644 --- a/rbi/hubspot_sdk/models/crm/public_association_filter_branch.rbi +++ b/rbi/hubspot_sdk/models/crm/public_association_filter_branch.rbi @@ -31,7 +31,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ] @@ -65,7 +64,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -74,9 +72,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -106,7 +102,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -126,7 +121,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter::OrHash, HubSpotSDK::Crm::PublicEmailSubscriptionFilter::OrHash, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter::OrHash, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter::OrHash, HubSpotSDK::Crm::PublicWebinarFilter::OrHash, @@ -135,9 +129,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter::OrHash, HubSpotSDK::Crm::PublicAdsTimeFilter::OrHash, HubSpotSDK::Crm::PublicInListFilter::OrHash, - HubSpotSDK::Crm::PublicNumAssociationsFilter::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilter::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::OrHash, HubSpotSDK::Crm::PublicConstantFilter::OrHash ) ], @@ -179,7 +171,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -199,7 +190,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -208,9 +198,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ], @@ -234,7 +222,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end @@ -296,7 +283,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -305,9 +291,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) end diff --git a/rbi/hubspot_sdk/models/crm/public_campaign_influenced_filter.rbi b/rbi/hubspot_sdk/models/crm/public_campaign_influenced_filter.rbi deleted file mode 100644 index 6b1fe17e..00000000 --- a/rbi/hubspot_sdk/models/crm/public_campaign_influenced_filter.rbi +++ /dev/null @@ -1,86 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Crm - class PublicCampaignInfluencedFilter < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, - HubSpotSDK::Internal::AnyHash - ) - end - - # The ID of the campaign that influences the filter. - sig { returns(String) } - attr_accessor :campaign_id - - # Indicates the type of filter (CAMPAIGN_INFLUENCED). - sig do - returns( - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::FilterType::OrSymbol - ) - end - attr_accessor :filter_type - - sig do - params( - campaign_id: String, - filter_type: - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::FilterType::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # The ID of the campaign that influences the filter. - campaign_id:, - # Indicates the type of filter (CAMPAIGN_INFLUENCED). - filter_type: - ) - end - - sig do - override.returns( - { - campaign_id: String, - filter_type: - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::FilterType::OrSymbol - } - ) - end - def to_hash - end - - # Indicates the type of filter (CAMPAIGN_INFLUENCED). - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::FilterType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CAMPAIGN_INFLUENCED = - T.let( - :CAMPAIGN_INFLUENCED, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::FilterType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::FilterType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/crm/public_crm_search_request.rbi b/rbi/hubspot_sdk/models/crm/public_crm_search_request.rbi index 28cbfa1f..f57c25bc 100644 --- a/rbi/hubspot_sdk/models/crm/public_crm_search_request.rbi +++ b/rbi/hubspot_sdk/models/crm/public_crm_search_request.rbi @@ -15,7 +15,7 @@ module HubSpotSDK sig { returns(T::Array[HubSpotSDK::Crm::FilterGroup]) } attr_accessor :filter_groups - sig { returns(T::Array[HubSpotSDK::Crm::Filter]) } + sig { returns(T::Array[HubSpotSDK::Crm::CrmFilter]) } attr_accessor :filters # Defines the order in which the CRM records should be returned. @@ -32,7 +32,7 @@ module HubSpotSDK sig do params( filter_groups: T::Array[HubSpotSDK::Crm::FilterGroup::OrHash], - filters: T::Array[HubSpotSDK::Crm::Filter::OrHash], + filters: T::Array[HubSpotSDK::Crm::CrmFilter::OrHash], sorts: T::Array[String], query: String ).returns(T.attached_class) @@ -51,7 +51,7 @@ module HubSpotSDK override.returns( { filter_groups: T::Array[HubSpotSDK::Crm::FilterGroup], - filters: T::Array[HubSpotSDK::Crm::Filter], + filters: T::Array[HubSpotSDK::Crm::CrmFilter], sorts: T::Array[String], query: String } diff --git a/rbi/hubspot_sdk/models/crm/public_export_list_request.rbi b/rbi/hubspot_sdk/models/crm/public_export_list_request.rbi index 100612e0..25ba1b62 100644 --- a/rbi/hubspot_sdk/models/crm/public_export_list_request.rbi +++ b/rbi/hubspot_sdk/models/crm/public_export_list_request.rbi @@ -200,6 +200,11 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } + CSV = + T.let( + :CSV, + HubSpotSDK::Crm::PublicExportListRequest::Format::TaggedSymbol + ) XLS = T.let( :XLS, @@ -210,11 +215,6 @@ module HubSpotSDK :XLSX, HubSpotSDK::Crm::PublicExportListRequest::Format::TaggedSymbol ) - CSV = - T.let( - :CSV, - HubSpotSDK::Crm::PublicExportListRequest::Format::TaggedSymbol - ) sig do override.returns( @@ -236,9 +236,39 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } - EN = + AF_ZA = T.let( - :EN, + :AF_ZA, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + AR_EG = + T.let( + :AR_EG, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + BG = + T.let( + :BG, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + BN = + T.let( + :BN, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + CA_ES = + T.let( + :CA_ES, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + CS = + T.let( + :CS, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + DA_DK = + T.let( + :DA_DK, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) DE = @@ -246,29 +276,74 @@ module HubSpotSDK :DE, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) + EL_GR = + T.let( + :EL_GR, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + EN = + T.let( + :EN, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + EN_GB = + T.let( + :EN_GB, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) ES = T.let( :ES, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) + ES_MX = + T.let( + :ES_MX, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + ET_EE = + T.let( + :ET_EE, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + FI = + T.let( + :FI, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) FR = T.let( :FR, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) - JA = + FR_CA = T.let( - :JA, + :FR_CA, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) - NL = + HE_IL = T.let( - :NL, + :HE_IL, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) - PT_BR = + HI_IN = T.let( - :PT_BR, + :HI_IN, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + HR = + T.let( + :HR, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + HU = + T.let( + :HU, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + ID = + T.let( + :ID, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) IT = @@ -276,29 +351,29 @@ module HubSpotSDK :IT, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) - PL = + JA = T.let( - :PL, + :JA, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) - SV = + KO_KR = T.let( - :SV, + :KO_KR, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) - FI = + LT_LT = T.let( - :FI, + :LT_LT, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) - ZH_TW = + MS = T.let( - :ZH_TW, + :MS, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) - DA_DK = + NL = T.let( - :DA_DK, + :NL, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) NO = @@ -306,9 +381,44 @@ module HubSpotSDK :NO, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) - KO_KR = + PL = T.let( - :KO_KR, + :PL, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + PT_BR = + T.let( + :PT_BR, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + PT_PT = + T.let( + :PT_PT, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + RO = + T.let( + :RO, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + RU = + T.let( + :RU, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + SK_SK = + T.let( + :SK_SK, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + SL = + T.let( + :SL, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + SV = + T.let( + :SV, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) TH = @@ -316,11 +426,41 @@ module HubSpotSDK :TH, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) + TL = + T.let( + :TL, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + TR = + T.let( + :TR, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + UK = + T.let( + :UK, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + VI_VN = + T.let( + :VI_VN, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) ZH_CN = T.let( :ZH_CN, HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol ) + ZH_HK = + T.let( + :ZH_HK, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) + ZH_TW = + T.let( + :ZH_TW, + HubSpotSDK::Crm::PublicExportListRequest::Language::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/hubspot_sdk/models/crm/public_export_view_request.rbi b/rbi/hubspot_sdk/models/crm/public_export_view_request.rbi index 800b3451..48d522e2 100644 --- a/rbi/hubspot_sdk/models/crm/public_export_view_request.rbi +++ b/rbi/hubspot_sdk/models/crm/public_export_view_request.rbi @@ -210,6 +210,11 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } + CSV = + T.let( + :CSV, + HubSpotSDK::Crm::PublicExportViewRequest::Format::TaggedSymbol + ) XLS = T.let( :XLS, @@ -220,11 +225,6 @@ module HubSpotSDK :XLSX, HubSpotSDK::Crm::PublicExportViewRequest::Format::TaggedSymbol ) - CSV = - T.let( - :CSV, - HubSpotSDK::Crm::PublicExportViewRequest::Format::TaggedSymbol - ) sig do override.returns( @@ -246,9 +246,39 @@ module HubSpotSDK end OrSymbol = T.type_alias { T.any(Symbol, String) } - EN = + AF_ZA = T.let( - :EN, + :AF_ZA, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + AR_EG = + T.let( + :AR_EG, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + BG = + T.let( + :BG, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + BN = + T.let( + :BN, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + CA_ES = + T.let( + :CA_ES, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + CS = + T.let( + :CS, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + DA_DK = + T.let( + :DA_DK, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) DE = @@ -256,29 +286,74 @@ module HubSpotSDK :DE, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) + EL_GR = + T.let( + :EL_GR, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + EN = + T.let( + :EN, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + EN_GB = + T.let( + :EN_GB, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) ES = T.let( :ES, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) + ES_MX = + T.let( + :ES_MX, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + ET_EE = + T.let( + :ET_EE, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + FI = + T.let( + :FI, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) FR = T.let( :FR, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) - JA = + FR_CA = T.let( - :JA, + :FR_CA, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) - NL = + HE_IL = T.let( - :NL, + :HE_IL, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) - PT_BR = + HI_IN = T.let( - :PT_BR, + :HI_IN, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + HR = + T.let( + :HR, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + HU = + T.let( + :HU, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + ID = + T.let( + :ID, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) IT = @@ -286,29 +361,29 @@ module HubSpotSDK :IT, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) - PL = + JA = T.let( - :PL, + :JA, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) - SV = + KO_KR = T.let( - :SV, + :KO_KR, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) - FI = + LT_LT = T.let( - :FI, + :LT_LT, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) - ZH_TW = + MS = T.let( - :ZH_TW, + :MS, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) - DA_DK = + NL = T.let( - :DA_DK, + :NL, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) NO = @@ -316,9 +391,44 @@ module HubSpotSDK :NO, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) - KO_KR = + PL = T.let( - :KO_KR, + :PL, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + PT_BR = + T.let( + :PT_BR, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + PT_PT = + T.let( + :PT_PT, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + RO = + T.let( + :RO, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + RU = + T.let( + :RU, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + SK_SK = + T.let( + :SK_SK, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + SL = + T.let( + :SL, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + SV = + T.let( + :SV, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) TH = @@ -326,11 +436,41 @@ module HubSpotSDK :TH, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) + TL = + T.let( + :TL, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + TR = + T.let( + :TR, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + UK = + T.let( + :UK, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + VI_VN = + T.let( + :VI_VN, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) ZH_CN = T.let( :ZH_CN, HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol ) + ZH_HK = + T.let( + :ZH_HK, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) + ZH_TW = + T.let( + :ZH_TW, + HubSpotSDK::Crm::PublicExportViewRequest::Language::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/hubspot_sdk/models/crm/public_not_all_filter_branch.rbi b/rbi/hubspot_sdk/models/crm/public_not_all_filter_branch.rbi index 13844f4e..bd515673 100644 --- a/rbi/hubspot_sdk/models/crm/public_not_all_filter_branch.rbi +++ b/rbi/hubspot_sdk/models/crm/public_not_all_filter_branch.rbi @@ -22,7 +22,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ] @@ -56,7 +55,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -65,9 +63,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -86,7 +82,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -106,7 +101,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter::OrHash, HubSpotSDK::Crm::PublicEmailSubscriptionFilter::OrHash, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter::OrHash, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter::OrHash, HubSpotSDK::Crm::PublicWebinarFilter::OrHash, @@ -115,9 +109,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter::OrHash, HubSpotSDK::Crm::PublicAdsTimeFilter::OrHash, HubSpotSDK::Crm::PublicInListFilter::OrHash, - HubSpotSDK::Crm::PublicNumAssociationsFilter::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilter::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::OrHash, HubSpotSDK::Crm::PublicConstantFilter::OrHash ) ] @@ -145,7 +137,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -165,7 +156,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -174,9 +164,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -198,7 +186,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end @@ -260,7 +247,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -269,9 +255,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) end diff --git a/rbi/hubspot_sdk/models/crm/public_not_any_filter_branch.rbi b/rbi/hubspot_sdk/models/crm/public_not_any_filter_branch.rbi index 40082da9..2f099e5e 100644 --- a/rbi/hubspot_sdk/models/crm/public_not_any_filter_branch.rbi +++ b/rbi/hubspot_sdk/models/crm/public_not_any_filter_branch.rbi @@ -22,7 +22,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ] @@ -57,7 +56,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -66,9 +64,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -87,7 +83,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -107,7 +102,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter::OrHash, HubSpotSDK::Crm::PublicEmailSubscriptionFilter::OrHash, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter::OrHash, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter::OrHash, HubSpotSDK::Crm::PublicWebinarFilter::OrHash, @@ -116,9 +110,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter::OrHash, HubSpotSDK::Crm::PublicAdsTimeFilter::OrHash, HubSpotSDK::Crm::PublicInListFilter::OrHash, - HubSpotSDK::Crm::PublicNumAssociationsFilter::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilter::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::OrHash, HubSpotSDK::Crm::PublicConstantFilter::OrHash ) ] @@ -147,7 +139,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -167,7 +158,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -176,9 +166,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -200,7 +188,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end @@ -262,7 +249,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -271,9 +257,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) end diff --git a/rbi/hubspot_sdk/models/crm/public_num_associations_filter.rbi b/rbi/hubspot_sdk/models/crm/public_num_associations_filter.rbi deleted file mode 100644 index 8fc4fa67..00000000 --- a/rbi/hubspot_sdk/models/crm/public_num_associations_filter.rbi +++ /dev/null @@ -1,170 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Crm - class PublicNumAssociationsFilter < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Crm::PublicNumAssociationsFilter, - HubSpotSDK::Internal::AnyHash - ) - end - - # Defines the category of the association (HUBSPOT_DEFINED, USER_DEFINED, - # INTEGRATOR_DEFINED, WORK). - sig { returns(String) } - attr_accessor :association_category - - # The ID representing the type of association being filtered. - sig { returns(Integer) } - attr_accessor :association_type_id - - # Specifies the criteria for refining the association filter. - sig do - returns( - T.any( - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy, - HubSpotSDK::Crm::PublicSetOccurrencesRefineBy, - HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAllHistoryRefineBy, - HubSpotSDK::Crm::PublicTimePointOperation, - HubSpotSDK::Crm::PublicRangedTimeOperation - ) - ) - end - attr_accessor :coalescing_refine_by - - # Indicates the type of filter being applied (NUM_ASSOCIATIONS). - sig do - returns( - HubSpotSDK::Crm::PublicNumAssociationsFilter::FilterType::OrSymbol - ) - end - attr_accessor :filter_type - - sig do - params( - association_category: String, - association_type_id: Integer, - coalescing_refine_by: - T.any( - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy::OrHash, - HubSpotSDK::Crm::PublicSetOccurrencesRefineBy::OrHash, - HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy::OrHash, - HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy::OrHash, - HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy::OrHash, - HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy::OrHash, - HubSpotSDK::Crm::PublicAllHistoryRefineBy::OrHash, - HubSpotSDK::Crm::PublicTimePointOperation::OrHash, - HubSpotSDK::Crm::PublicRangedTimeOperation::OrHash - ), - filter_type: - HubSpotSDK::Crm::PublicNumAssociationsFilter::FilterType::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Defines the category of the association (HUBSPOT_DEFINED, USER_DEFINED, - # INTEGRATOR_DEFINED, WORK). - association_category:, - # The ID representing the type of association being filtered. - association_type_id:, - # Specifies the criteria for refining the association filter. - coalescing_refine_by:, - # Indicates the type of filter being applied (NUM_ASSOCIATIONS). - filter_type: - ) - end - - sig do - override.returns( - { - association_category: String, - association_type_id: Integer, - coalescing_refine_by: - T.any( - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy, - HubSpotSDK::Crm::PublicSetOccurrencesRefineBy, - HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAllHistoryRefineBy, - HubSpotSDK::Crm::PublicTimePointOperation, - HubSpotSDK::Crm::PublicRangedTimeOperation - ), - filter_type: - HubSpotSDK::Crm::PublicNumAssociationsFilter::FilterType::OrSymbol - } - ) - end - def to_hash - end - - # Specifies the criteria for refining the association filter. - module CoalescingRefineBy - extend HubSpotSDK::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy, - HubSpotSDK::Crm::PublicSetOccurrencesRefineBy, - HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAllHistoryRefineBy, - HubSpotSDK::Crm::PublicTimePointOperation, - HubSpotSDK::Crm::PublicRangedTimeOperation - ) - end - - sig do - override.returns( - T::Array[ - HubSpotSDK::Crm::PublicNumAssociationsFilter::CoalescingRefineBy::Variants - ] - ) - end - def self.variants - end - end - - # Indicates the type of filter being applied (NUM_ASSOCIATIONS). - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Crm::PublicNumAssociationsFilter::FilterType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - NUM_ASSOCIATIONS = - T.let( - :NUM_ASSOCIATIONS, - HubSpotSDK::Crm::PublicNumAssociationsFilter::FilterType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Crm::PublicNumAssociationsFilter::FilterType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/crm/public_object_list.rbi b/rbi/hubspot_sdk/models/crm/public_object_list.rbi index b0d1bc2b..3f791958 100644 --- a/rbi/hubspot_sdk/models/crm/public_object_list.rbi +++ b/rbi/hubspot_sdk/models/crm/public_object_list.rbi @@ -76,7 +76,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch::OrHash, HubSpotSDK::Crm::PublicRestrictedFilterBranch::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::OrHash, HubSpotSDK::Crm::PublicAssociationFilterBranch::OrHash ) ).void @@ -151,7 +150,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch::OrHash, HubSpotSDK::Crm::PublicRestrictedFilterBranch::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::OrHash, HubSpotSDK::Crm::PublicAssociationFilterBranch::OrHash ), filters_updated_at: Time, @@ -238,7 +236,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end diff --git a/rbi/hubspot_sdk/models/crm/public_or_filter_branch.rbi b/rbi/hubspot_sdk/models/crm/public_or_filter_branch.rbi index 8acddc4f..07ecc5ec 100644 --- a/rbi/hubspot_sdk/models/crm/public_or_filter_branch.rbi +++ b/rbi/hubspot_sdk/models/crm/public_or_filter_branch.rbi @@ -22,7 +22,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ] @@ -56,7 +55,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -65,9 +63,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -86,7 +82,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -106,7 +101,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter::OrHash, HubSpotSDK::Crm::PublicEmailSubscriptionFilter::OrHash, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter::OrHash, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter::OrHash, HubSpotSDK::Crm::PublicWebinarFilter::OrHash, @@ -115,9 +109,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter::OrHash, HubSpotSDK::Crm::PublicAdsTimeFilter::OrHash, HubSpotSDK::Crm::PublicInListFilter::OrHash, - HubSpotSDK::Crm::PublicNumAssociationsFilter::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilter::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::OrHash, HubSpotSDK::Crm::PublicConstantFilter::OrHash ) ] @@ -145,7 +137,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -165,7 +156,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -174,9 +164,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -198,7 +186,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end @@ -260,7 +247,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -269,9 +255,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) end diff --git a/rbi/hubspot_sdk/models/crm/public_property_association_filter_branch.rbi b/rbi/hubspot_sdk/models/crm/public_property_association_filter_branch.rbi deleted file mode 100644 index f58aded9..00000000 --- a/rbi/hubspot_sdk/models/crm/public_property_association_filter_branch.rbi +++ /dev/null @@ -1,318 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Crm - class PublicPropertyAssociationFilterBranch < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, - HubSpotSDK::Internal::AnyHash - ) - end - - sig do - returns( - T::Array[ - T.any( - HubSpotSDK::Crm::PublicOrFilterBranch, - HubSpotSDK::Crm::PublicAndFilterBranch, - HubSpotSDK::Crm::PublicNotAllFilterBranch, - HubSpotSDK::Crm::PublicNotAnyFilterBranch, - HubSpotSDK::Crm::PublicRestrictedFilterBranch, - HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, - HubSpotSDK::Crm::PublicAssociationFilterBranch - ) - ] - ) - end - attr_accessor :filter_branches - - # The logical operator used to combine filters within the branch. - sig { returns(String) } - attr_accessor :filter_branch_operator - - # The type of the filter branch (PROPERTY_ASSOCIATION). - sig do - returns( - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::FilterBranchType::OrSymbol - ) - end - attr_accessor :filter_branch_type - - sig do - returns( - T::Array[ - T.any( - HubSpotSDK::Crm::PublicPropertyFilter, - HubSpotSDK::Crm::PublicAssociationInListFilter, - HubSpotSDK::Crm::PublicPageViewAnalyticsFilter, - HubSpotSDK::Crm::PublicCtaAnalyticsFilter, - HubSpotSDK::Crm::PublicEventAnalyticsFilter, - HubSpotSDK::Crm::PublicFormSubmissionFilter, - HubSpotSDK::Crm::PublicFormSubmissionOnPageFilter, - HubSpotSDK::Crm::PublicIntegrationEventFilter, - HubSpotSDK::Crm::PublicEmailSubscriptionFilter, - HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, - HubSpotSDK::Crm::PublicSurveyMonkeyFilter, - HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, - HubSpotSDK::Crm::PublicWebinarFilter, - HubSpotSDK::Crm::PublicEmailEventFilter, - HubSpotSDK::Crm::PublicPrivacyAnalyticsFilter, - HubSpotSDK::Crm::PublicAdsSearchFilter, - HubSpotSDK::Crm::PublicAdsTimeFilter, - HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, - HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, - HubSpotSDK::Crm::PublicConstantFilter - ) - ] - ) - end - attr_accessor :filters - - # The ID representing the type of object associated with the filter branch. - sig { returns(String) } - attr_accessor :object_type_id - - # Defines the operation to be applied within the filter branch (IN_LIST, - # NOT_IN_LIST). - sig { returns(String) } - attr_accessor :operator - - # The property that is associated with the object ID in the filter branch. - sig { returns(String) } - attr_accessor :property_with_object_id - - sig do - params( - filter_branches: - T::Array[ - T.any( - HubSpotSDK::Crm::PublicOrFilterBranch, - HubSpotSDK::Crm::PublicAndFilterBranch, - HubSpotSDK::Crm::PublicNotAllFilterBranch, - HubSpotSDK::Crm::PublicNotAnyFilterBranch, - HubSpotSDK::Crm::PublicRestrictedFilterBranch, - HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, - HubSpotSDK::Crm::PublicAssociationFilterBranch - ) - ], - filter_branch_operator: String, - filter_branch_type: - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::FilterBranchType::OrSymbol, - filters: - T::Array[ - T.any( - HubSpotSDK::Crm::PublicPropertyFilter::OrHash, - HubSpotSDK::Crm::PublicAssociationInListFilter::OrHash, - HubSpotSDK::Crm::PublicPageViewAnalyticsFilter::OrHash, - HubSpotSDK::Crm::PublicCtaAnalyticsFilter::OrHash, - HubSpotSDK::Crm::PublicEventAnalyticsFilter::OrHash, - HubSpotSDK::Crm::PublicFormSubmissionFilter::OrHash, - HubSpotSDK::Crm::PublicFormSubmissionOnPageFilter::OrHash, - HubSpotSDK::Crm::PublicIntegrationEventFilter::OrHash, - HubSpotSDK::Crm::PublicEmailSubscriptionFilter::OrHash, - HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter::OrHash, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::OrHash, - HubSpotSDK::Crm::PublicSurveyMonkeyFilter::OrHash, - HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter::OrHash, - HubSpotSDK::Crm::PublicWebinarFilter::OrHash, - HubSpotSDK::Crm::PublicEmailEventFilter::OrHash, - HubSpotSDK::Crm::PublicPrivacyAnalyticsFilter::OrHash, - HubSpotSDK::Crm::PublicAdsSearchFilter::OrHash, - HubSpotSDK::Crm::PublicAdsTimeFilter::OrHash, - HubSpotSDK::Crm::PublicInListFilter::OrHash, - HubSpotSDK::Crm::PublicNumAssociationsFilter::OrHash, - HubSpotSDK::Crm::PublicUnifiedEventsFilter::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::OrHash, - HubSpotSDK::Crm::PublicConstantFilter::OrHash - ) - ], - object_type_id: String, - operator: String, - property_with_object_id: String - ).returns(T.attached_class) - end - def self.new( - filter_branches:, - # The logical operator used to combine filters within the branch. - filter_branch_operator:, - # The type of the filter branch (PROPERTY_ASSOCIATION). - filter_branch_type:, - filters:, - # The ID representing the type of object associated with the filter branch. - object_type_id:, - # Defines the operation to be applied within the filter branch (IN_LIST, - # NOT_IN_LIST). - operator:, - # The property that is associated with the object ID in the filter branch. - property_with_object_id: - ) - end - - sig do - override.returns( - { - filter_branches: - T::Array[ - T.any( - HubSpotSDK::Crm::PublicOrFilterBranch, - HubSpotSDK::Crm::PublicAndFilterBranch, - HubSpotSDK::Crm::PublicNotAllFilterBranch, - HubSpotSDK::Crm::PublicNotAnyFilterBranch, - HubSpotSDK::Crm::PublicRestrictedFilterBranch, - HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, - HubSpotSDK::Crm::PublicAssociationFilterBranch - ) - ], - filter_branch_operator: String, - filter_branch_type: - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::FilterBranchType::OrSymbol, - filters: - T::Array[ - T.any( - HubSpotSDK::Crm::PublicPropertyFilter, - HubSpotSDK::Crm::PublicAssociationInListFilter, - HubSpotSDK::Crm::PublicPageViewAnalyticsFilter, - HubSpotSDK::Crm::PublicCtaAnalyticsFilter, - HubSpotSDK::Crm::PublicEventAnalyticsFilter, - HubSpotSDK::Crm::PublicFormSubmissionFilter, - HubSpotSDK::Crm::PublicFormSubmissionOnPageFilter, - HubSpotSDK::Crm::PublicIntegrationEventFilter, - HubSpotSDK::Crm::PublicEmailSubscriptionFilter, - HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, - HubSpotSDK::Crm::PublicSurveyMonkeyFilter, - HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, - HubSpotSDK::Crm::PublicWebinarFilter, - HubSpotSDK::Crm::PublicEmailEventFilter, - HubSpotSDK::Crm::PublicPrivacyAnalyticsFilter, - HubSpotSDK::Crm::PublicAdsSearchFilter, - HubSpotSDK::Crm::PublicAdsTimeFilter, - HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, - HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, - HubSpotSDK::Crm::PublicConstantFilter - ) - ], - object_type_id: String, - operator: String, - property_with_object_id: String - } - ) - end - def to_hash - end - - module FilterBranch - extend HubSpotSDK::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - HubSpotSDK::Crm::PublicOrFilterBranch, - HubSpotSDK::Crm::PublicAndFilterBranch, - HubSpotSDK::Crm::PublicNotAllFilterBranch, - HubSpotSDK::Crm::PublicNotAnyFilterBranch, - HubSpotSDK::Crm::PublicRestrictedFilterBranch, - HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, - HubSpotSDK::Crm::PublicAssociationFilterBranch - ) - end - - sig do - override.returns( - T::Array[ - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::FilterBranch::Variants - ] - ) - end - def self.variants - end - end - - # The type of the filter branch (PROPERTY_ASSOCIATION). - module FilterBranchType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::FilterBranchType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PROPERTY_ASSOCIATION = - T.let( - :PROPERTY_ASSOCIATION, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::FilterBranchType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::FilterBranchType::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Filter - extend HubSpotSDK::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - HubSpotSDK::Crm::PublicPropertyFilter, - HubSpotSDK::Crm::PublicAssociationInListFilter, - HubSpotSDK::Crm::PublicPageViewAnalyticsFilter, - HubSpotSDK::Crm::PublicCtaAnalyticsFilter, - HubSpotSDK::Crm::PublicEventAnalyticsFilter, - HubSpotSDK::Crm::PublicFormSubmissionFilter, - HubSpotSDK::Crm::PublicFormSubmissionOnPageFilter, - HubSpotSDK::Crm::PublicIntegrationEventFilter, - HubSpotSDK::Crm::PublicEmailSubscriptionFilter, - HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, - HubSpotSDK::Crm::PublicSurveyMonkeyFilter, - HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, - HubSpotSDK::Crm::PublicWebinarFilter, - HubSpotSDK::Crm::PublicEmailEventFilter, - HubSpotSDK::Crm::PublicPrivacyAnalyticsFilter, - HubSpotSDK::Crm::PublicAdsSearchFilter, - HubSpotSDK::Crm::PublicAdsTimeFilter, - HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, - HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, - HubSpotSDK::Crm::PublicConstantFilter - ) - end - - sig do - override.returns( - T::Array[ - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::Filter::Variants - ] - ) - end - def self.variants - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/crm/public_property_association_in_list_filter.rbi b/rbi/hubspot_sdk/models/crm/public_property_association_in_list_filter.rbi deleted file mode 100644 index 131571b5..00000000 --- a/rbi/hubspot_sdk/models/crm/public_property_association_in_list_filter.rbi +++ /dev/null @@ -1,189 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Crm - class PublicPropertyAssociationInListFilter < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, - HubSpotSDK::Internal::AnyHash - ) - end - - # Specifies the criteria for refining the filter by coalescing. - sig do - returns( - T.any( - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy, - HubSpotSDK::Crm::PublicSetOccurrencesRefineBy, - HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAllHistoryRefineBy, - HubSpotSDK::Crm::PublicTimePointOperation, - HubSpotSDK::Crm::PublicRangedTimeOperation - ) - ) - end - attr_accessor :coalescing_refine_by - - # Indicates the type of filter being applied (PROPERTY_ASSOCIATION). - sig do - returns( - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::FilterType::OrSymbol - ) - end - attr_accessor :filter_type - - # The ID of the list used in the property association filter. - sig { returns(String) } - attr_accessor :list_id - - # Defines the operation to be applied by the filter (IN_LIST, NOT_IN_LIST). - sig { returns(String) } - attr_accessor :operator - - # The property associated with the object ID in the filter. - sig { returns(String) } - attr_accessor :property_with_object_id - - # The ID representing the type of object that the property association filter is - # targeting. - sig { returns(T.nilable(String)) } - attr_reader :to_object_type_id - - sig { params(to_object_type_id: String).void } - attr_writer :to_object_type_id - - sig do - params( - coalescing_refine_by: - T.any( - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy::OrHash, - HubSpotSDK::Crm::PublicSetOccurrencesRefineBy::OrHash, - HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy::OrHash, - HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy::OrHash, - HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy::OrHash, - HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy::OrHash, - HubSpotSDK::Crm::PublicAllHistoryRefineBy::OrHash, - HubSpotSDK::Crm::PublicTimePointOperation::OrHash, - HubSpotSDK::Crm::PublicRangedTimeOperation::OrHash - ), - filter_type: - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::FilterType::OrSymbol, - list_id: String, - operator: String, - property_with_object_id: String, - to_object_type_id: String - ).returns(T.attached_class) - end - def self.new( - # Specifies the criteria for refining the filter by coalescing. - coalescing_refine_by:, - # Indicates the type of filter being applied (PROPERTY_ASSOCIATION). - filter_type:, - # The ID of the list used in the property association filter. - list_id:, - # Defines the operation to be applied by the filter (IN_LIST, NOT_IN_LIST). - operator:, - # The property associated with the object ID in the filter. - property_with_object_id:, - # The ID representing the type of object that the property association filter is - # targeting. - to_object_type_id: nil - ) - end - - sig do - override.returns( - { - coalescing_refine_by: - T.any( - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy, - HubSpotSDK::Crm::PublicSetOccurrencesRefineBy, - HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAllHistoryRefineBy, - HubSpotSDK::Crm::PublicTimePointOperation, - HubSpotSDK::Crm::PublicRangedTimeOperation - ), - filter_type: - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::FilterType::OrSymbol, - list_id: String, - operator: String, - property_with_object_id: String, - to_object_type_id: String - } - ) - end - def to_hash - end - - # Specifies the criteria for refining the filter by coalescing. - module CoalescingRefineBy - extend HubSpotSDK::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy, - HubSpotSDK::Crm::PublicSetOccurrencesRefineBy, - HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy, - HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy, - HubSpotSDK::Crm::PublicAllHistoryRefineBy, - HubSpotSDK::Crm::PublicTimePointOperation, - HubSpotSDK::Crm::PublicRangedTimeOperation - ) - end - - sig do - override.returns( - T::Array[ - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::CoalescingRefineBy::Variants - ] - ) - end - def self.variants - end - end - - # Indicates the type of filter being applied (PROPERTY_ASSOCIATION). - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::FilterType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PROPERTY_ASSOCIATION = - T.let( - :PROPERTY_ASSOCIATION, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::FilterType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::FilterType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/crm/public_restricted_filter_branch.rbi b/rbi/hubspot_sdk/models/crm/public_restricted_filter_branch.rbi index 965d389f..c31a8c98 100644 --- a/rbi/hubspot_sdk/models/crm/public_restricted_filter_branch.rbi +++ b/rbi/hubspot_sdk/models/crm/public_restricted_filter_branch.rbi @@ -22,7 +22,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ] @@ -57,7 +56,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -66,9 +64,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -87,7 +83,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -107,7 +102,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter::OrHash, HubSpotSDK::Crm::PublicEmailSubscriptionFilter::OrHash, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter::OrHash, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter::OrHash, HubSpotSDK::Crm::PublicWebinarFilter::OrHash, @@ -116,9 +110,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter::OrHash, HubSpotSDK::Crm::PublicAdsTimeFilter::OrHash, HubSpotSDK::Crm::PublicInListFilter::OrHash, - HubSpotSDK::Crm::PublicNumAssociationsFilter::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilter::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::OrHash, HubSpotSDK::Crm::PublicConstantFilter::OrHash ) ] @@ -147,7 +139,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -167,7 +158,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -176,9 +166,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -200,7 +188,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end @@ -262,7 +249,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -271,9 +257,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) end diff --git a/rbi/hubspot_sdk/models/crm/public_unified_events_filter_branch.rbi b/rbi/hubspot_sdk/models/crm/public_unified_events_filter_branch.rbi index 9bd91d83..6dd2a3ec 100644 --- a/rbi/hubspot_sdk/models/crm/public_unified_events_filter_branch.rbi +++ b/rbi/hubspot_sdk/models/crm/public_unified_events_filter_branch.rbi @@ -26,7 +26,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ] @@ -60,7 +59,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -69,9 +67,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ] @@ -175,7 +171,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -195,7 +190,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter::OrHash, HubSpotSDK::Crm::PublicEmailSubscriptionFilter::OrHash, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter::OrHash, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyFilter::OrHash, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter::OrHash, HubSpotSDK::Crm::PublicWebinarFilter::OrHash, @@ -204,9 +198,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter::OrHash, HubSpotSDK::Crm::PublicAdsTimeFilter::OrHash, HubSpotSDK::Crm::PublicInListFilter::OrHash, - HubSpotSDK::Crm::PublicNumAssociationsFilter::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilter::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter::OrHash, HubSpotSDK::Crm::PublicConstantFilter::OrHash ) ], @@ -269,7 +261,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) ], @@ -289,7 +280,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -298,9 +288,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) ], @@ -348,7 +336,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch, HubSpotSDK::Crm::PublicRestrictedFilterBranch, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch, HubSpotSDK::Crm::PublicAssociationFilterBranch ) end @@ -410,7 +397,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicIntegrationEventFilter, HubSpotSDK::Crm::PublicEmailSubscriptionFilter, HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter, - HubSpotSDK::Crm::PublicCampaignInfluencedFilter, HubSpotSDK::Crm::PublicSurveyMonkeyFilter, HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter, HubSpotSDK::Crm::PublicWebinarFilter, @@ -419,9 +405,7 @@ module HubSpotSDK HubSpotSDK::Crm::PublicAdsSearchFilter, HubSpotSDK::Crm::PublicAdsTimeFilter, HubSpotSDK::Crm::PublicInListFilter, - HubSpotSDK::Crm::PublicNumAssociationsFilter, HubSpotSDK::Crm::PublicUnifiedEventsFilter, - HubSpotSDK::Crm::PublicPropertyAssociationInListFilter, HubSpotSDK::Crm::PublicConstantFilter ) end diff --git a/rbi/hubspot_sdk/models/crm_object_snapshot_batch_request.rbi b/rbi/hubspot_sdk/models/crm_object_snapshot_batch_request.rbi new file mode 100644 index 00000000..4e4597af --- /dev/null +++ b/rbi/hubspot_sdk/models/crm_object_snapshot_batch_request.rbi @@ -0,0 +1,41 @@ +# typed: strong + +module HubSpotSDK + module Models + class CrmObjectSnapshotBatchRequest < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::CrmObjectSnapshotBatchRequest, + HubSpotSDK::Internal::AnyHash + ) + end + + # An array of CrmObjectSnapshotRequest objects, each representing a request to + # create a snapshot for a specific CRM object. This property is required. + sig { returns(T::Array[HubSpotSDK::CrmObjectSnapshotRequest]) } + attr_accessor :snapshot_requests + + sig do + params( + snapshot_requests: + T::Array[HubSpotSDK::CrmObjectSnapshotRequest::OrHash] + ).returns(T.attached_class) + end + def self.new( + # An array of CrmObjectSnapshotRequest objects, each representing a request to + # create a snapshot for a specific CRM object. This property is required. + snapshot_requests: + ) + end + + sig do + override.returns( + { snapshot_requests: T::Array[HubSpotSDK::CrmObjectSnapshotRequest] } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/crm_object_snapshot_batch_response.rbi b/rbi/hubspot_sdk/models/crm_object_snapshot_batch_response.rbi new file mode 100644 index 00000000..01f40b1f --- /dev/null +++ b/rbi/hubspot_sdk/models/crm_object_snapshot_batch_response.rbi @@ -0,0 +1,43 @@ +# typed: strong + +module HubSpotSDK + module Models + class CrmObjectSnapshotBatchResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::CrmObjectSnapshotBatchResponse, + HubSpotSDK::Internal::AnyHash + ) + end + + # An array of CrmObjectSnapshotResponse objects, each representing the result of a + # snapshot operation for a specific CRM object. This property is required. + sig { returns(T::Array[HubSpotSDK::CrmObjectSnapshotResponse]) } + attr_accessor :snapshot_responses + + sig do + params( + snapshot_responses: + T::Array[HubSpotSDK::CrmObjectSnapshotResponse::OrHash] + ).returns(T.attached_class) + end + def self.new( + # An array of CrmObjectSnapshotResponse objects, each representing the result of a + # snapshot operation for a specific CRM object. This property is required. + snapshot_responses: + ) + end + + sig do + override.returns( + { + snapshot_responses: T::Array[HubSpotSDK::CrmObjectSnapshotResponse] + } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/crm_object_snapshot_request.rbi b/rbi/hubspot_sdk/models/crm_object_snapshot_request.rbi new file mode 100644 index 00000000..549a7160 --- /dev/null +++ b/rbi/hubspot_sdk/models/crm_object_snapshot_request.rbi @@ -0,0 +1,72 @@ +# typed: strong + +module HubSpotSDK + module Models + class CrmObjectSnapshotRequest < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::CrmObjectSnapshotRequest, + HubSpotSDK::Internal::AnyHash + ) + end + + # An integer representing the unique identifier of the CRM object for which the + # snapshot is requested. + sig { returns(Integer) } + attr_accessor :object_id_ + + # A string representing the type identifier of the CRM object, specifying what + # kind of object it is within HubSpot. + sig { returns(String) } + attr_accessor :object_type_id + + # An integer representing the unique identifier of the HubSpot account (portal) + # where the CRM object resides. + sig { returns(Integer) } + attr_accessor :portal_id + + # An array of strings, each representing a property of the CRM object that should + # be included in the snapshot. + sig { returns(T::Array[String]) } + attr_accessor :properties + + sig do + params( + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + properties: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + # An integer representing the unique identifier of the CRM object for which the + # snapshot is requested. + object_id_:, + # A string representing the type identifier of the CRM object, specifying what + # kind of object it is within HubSpot. + object_type_id:, + # An integer representing the unique identifier of the HubSpot account (portal) + # where the CRM object resides. + portal_id:, + # An array of strings, each representing a property of the CRM object that should + # be included in the snapshot. + properties: + ) + end + + sig do + override.returns( + { + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + properties: T::Array[String] + } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/crm_object_snapshot_response.rbi b/rbi/hubspot_sdk/models/crm_object_snapshot_response.rbi new file mode 100644 index 00000000..0c079825 --- /dev/null +++ b/rbi/hubspot_sdk/models/crm_object_snapshot_response.rbi @@ -0,0 +1,72 @@ +# typed: strong + +module HubSpotSDK + module Models + class CrmObjectSnapshotResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::CrmObjectSnapshotResponse, + HubSpotSDK::Internal::AnyHash + ) + end + + # An integer representing the unique identifier of the CRM object for which the + # snapshot is taken. + sig { returns(Integer) } + attr_accessor :object_id_ + + # A string indicating the type of the CRM object, such as contact, company, or + # deal. + sig { returns(String) } + attr_accessor :object_type_id + + # An integer representing the unique identifier of the HubSpot portal associated + # with the CRM object. + sig { returns(Integer) } + attr_accessor :portal_id + + # A UUID string representing the status identifier of the snapshot request, + # indicating the current state of the snapshot process. + sig { returns(String) } + attr_accessor :snapshot_status_id + + sig do + params( + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + snapshot_status_id: String + ).returns(T.attached_class) + end + def self.new( + # An integer representing the unique identifier of the CRM object for which the + # snapshot is taken. + object_id_:, + # A string indicating the type of the CRM object, such as contact, company, or + # deal. + object_type_id:, + # An integer representing the unique identifier of the HubSpot portal associated + # with the CRM object. + portal_id:, + # A UUID string representing the status identifier of the snapshot request, + # indicating the current state of the snapshot process. + snapshot_status_id: + ) + end + + sig do + override.returns( + { + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + snapshot_status_id: String + } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/filter.rbi b/rbi/hubspot_sdk/models/filter.rbi new file mode 100644 index 00000000..397c9666 --- /dev/null +++ b/rbi/hubspot_sdk/models/filter.rbi @@ -0,0 +1,36 @@ +# typed: strong + +module HubSpotSDK + module Models + class Filter < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(HubSpotSDK::Filter, HubSpotSDK::Internal::AnyHash) + end + + # An array of conditions that define the criteria for the filter. Each condition + # specifies a property, an operator, and optionally a value or values. + sig { returns(T::Array[HubSpotSDK::Condition]) } + attr_accessor :conditions + + # Defines a single condition for searching CRM objects, specifying the property to + # filter on, the operator to use (such as equals, greater than, or contains), and + # the value(s) to compare against. + sig do + params(conditions: T::Array[HubSpotSDK::Condition::OrHash]).returns( + T.attached_class + ) + end + def self.new( + # An array of conditions that define the criteria for the filter. Each condition + # specifies a property, an operator, and optionally a value or values. + conditions: + ) + end + + sig { override.returns({ conditions: T::Array[HubSpotSDK::Condition] }) } + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/filter_create_request.rbi b/rbi/hubspot_sdk/models/filter_create_request.rbi new file mode 100644 index 00000000..3e559aba --- /dev/null +++ b/rbi/hubspot_sdk/models/filter_create_request.rbi @@ -0,0 +1,51 @@ +# typed: strong + +module HubSpotSDK + module Models + class FilterCreateRequest < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(HubSpotSDK::FilterCreateRequest, HubSpotSDK::Internal::AnyHash) + end + + # Defines a single condition for searching CRM objects, specifying the property to + # filter on, the operator to use (such as equals, greater than, or contains), and + # the value(s) to compare against. + sig { returns(HubSpotSDK::Filter) } + attr_reader :filter + + sig { params(filter: HubSpotSDK::Filter::OrHash).void } + attr_writer :filter + + # The unique identifier of the subscription to which the filter will be applied. + # It is an integer formatted as int64. + sig { returns(Integer) } + attr_accessor :subscription_id + + sig do + params( + filter: HubSpotSDK::Filter::OrHash, + subscription_id: Integer + ).returns(T.attached_class) + end + def self.new( + # Defines a single condition for searching CRM objects, specifying the property to + # filter on, the operator to use (such as equals, greater than, or contains), and + # the value(s) to compare against. + filter:, + # The unique identifier of the subscription to which the filter will be applied. + # It is an integer formatted as int64. + subscription_id: + ) + end + + sig do + override.returns( + { filter: HubSpotSDK::Filter, subscription_id: Integer } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/filter_create_response.rbi b/rbi/hubspot_sdk/models/filter_create_response.rbi new file mode 100644 index 00000000..0d56d1d6 --- /dev/null +++ b/rbi/hubspot_sdk/models/filter_create_response.rbi @@ -0,0 +1,29 @@ +# typed: strong + +module HubSpotSDK + module Models + class FilterCreateResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(HubSpotSDK::FilterCreateResponse, HubSpotSDK::Internal::AnyHash) + end + + # The unique identifier for the created filter. It is an integer formatted as + # int64. + sig { returns(Integer) } + attr_accessor :filter_id + + sig { params(filter_id: Integer).returns(T.attached_class) } + def self.new( + # The unique identifier for the created filter. It is an integer formatted as + # int64. + filter_id: + ) + end + + sig { override.returns({ filter_id: Integer }) } + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/filter_response.rbi b/rbi/hubspot_sdk/models/filter_response.rbi new file mode 100644 index 00000000..6d289c5a --- /dev/null +++ b/rbi/hubspot_sdk/models/filter_response.rbi @@ -0,0 +1,56 @@ +# typed: strong + +module HubSpotSDK + module Models + class FilterResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(HubSpotSDK::FilterResponse, HubSpotSDK::Internal::AnyHash) + end + + # The unique identifier for the filter. It is an integer in int64 format. + sig { returns(Integer) } + attr_accessor :id + + # A Unix timestamp in milliseconds indicating when the filter was created. + sig { returns(Integer) } + attr_accessor :created_at + + # Defines a single condition for searching CRM objects, specifying the property to + # filter on, the operator to use (such as equals, greater than, or contains), and + # the value(s) to compare against. + sig { returns(HubSpotSDK::Filter) } + attr_reader :filter + + sig { params(filter: HubSpotSDK::Filter::OrHash).void } + attr_writer :filter + + sig do + params( + id: Integer, + created_at: Integer, + filter: HubSpotSDK::Filter::OrHash + ).returns(T.attached_class) + end + def self.new( + # The unique identifier for the filter. It is an integer in int64 format. + id:, + # A Unix timestamp in milliseconds indicating when the filter was created. + created_at:, + # Defines a single condition for searching CRM objects, specifying the property to + # filter on, the operator to use (such as equals, greater than, or contains), and + # the value(s) to compare against. + filter: + ) + end + + sig do + override.returns( + { id: Integer, created_at: Integer, filter: HubSpotSDK::Filter } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rbi new file mode 100644 index 00000000..785833d8 --- /dev/null +++ b/rbi/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rbi @@ -0,0 +1,187 @@ +# typed: strong + +module HubSpotSDK + module Models + class GdprPrivacyDeletionSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + returns( + T::Array[ + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::OrSymbol + ] + ) + end + attr_accessor :actions + + sig { returns(String) } + attr_accessor :object_type_id + + sig { returns(Integer) } + attr_accessor :portal_id + + sig do + returns( + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ) + end + attr_accessor :subscription_type + + sig do + params( + actions: + T::Array[ + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::OrSymbol + ], + object_type_id: String, + portal_id: Integer, + subscription_type: + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ).returns(T.attached_class) + end + def self.new(actions:, object_type_id:, portal_id:, subscription_type:) + end + + sig do + override.returns( + { + actions: + T::Array[ + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::OrSymbol + ], + object_type_id: String, + portal_id: Integer, + subscription_type: + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::OrSymbol + } + ) + end + def to_hash + end + + module Action + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CREATE = + T.let( + :CREATE, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + UPDATE = + T.let( + :UPDATE, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + DELETE = + T.let( + :DELETE, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + MERGE = + T.let( + :MERGE, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + RESTORE = + T.let( + :RESTORE, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ASSOCIATION_ADDED = + T.let( + :ASSOCIATION_ADDED, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ASSOCIATION_REMOVED = + T.let( + :ASSOCIATION_REMOVED, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + SNAPSHOT = + T.let( + :SNAPSHOT, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + APP_INSTALL = + T.let( + :APP_INSTALL, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + APP_UNINSTALL = + T.let( + :APP_UNINSTALL, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ADDED_TO_LIST = + T.let( + :ADDED_TO_LIST, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + REMOVED_FROM_LIST = + T.let( + :REMOVED_FROM_LIST, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + GDPR_DELETE = + T.let( + :GDPR_DELETE, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol + ] + ) + end + def self.values + end + end + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + GDPR_PRIVACY_DELETION = + T.let( + :GDPR_PRIVACY_DELETION, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/journal_fetch_response.rbi b/rbi/hubspot_sdk/models/journal_fetch_response.rbi new file mode 100644 index 00000000..9e88ded1 --- /dev/null +++ b/rbi/hubspot_sdk/models/journal_fetch_response.rbi @@ -0,0 +1,49 @@ +# typed: strong + +module HubSpotSDK + module Models + class JournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(HubSpotSDK::JournalFetchResponse, HubSpotSDK::Internal::AnyHash) + end + + # The unique identifier for the current offset of the journal entry, formatted as + # a UUID. + sig { returns(String) } + attr_accessor :current_offset + + # The date and time when the URL will expire, in ISO 8601 format. + sig { returns(Time) } + attr_accessor :expires_at + + # The URL where the journal entry can be accessed. It is a string. + sig { returns(String) } + attr_accessor :url + + sig do + params(current_offset: String, expires_at: Time, url: String).returns( + T.attached_class + ) + end + def self.new( + # The unique identifier for the current offset of the journal entry, formatted as + # a UUID. + current_offset:, + # The date and time when the URL will expire, in ISO 8601 format. + expires_at:, + # The URL where the journal entry can be accessed. It is a string. + url: + ) + end + + sig do + override.returns( + { current_offset: String, expires_at: Time, url: String } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/hubspot_sdk/models/list_membership_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/list_membership_subscription_upsert_request.rbi new file mode 100644 index 00000000..9410a437 --- /dev/null +++ b/rbi/hubspot_sdk/models/list_membership_subscription_upsert_request.rbi @@ -0,0 +1,198 @@ +# typed: strong + +module HubSpotSDK + module Models + class ListMembershipSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::ListMembershipSubscriptionUpsertRequest, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + returns( + T::Array[ + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::OrSymbol + ] + ) + end + attr_accessor :actions + + sig { returns(T::Array[Integer]) } + attr_accessor :list_ids + + sig { returns(T::Array[Integer]) } + attr_accessor :object_ids + + sig { returns(Integer) } + attr_accessor :portal_id + + sig do + returns( + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ) + end + attr_accessor :subscription_type + + sig do + params( + actions: + T::Array[ + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::OrSymbol + ], + list_ids: T::Array[Integer], + object_ids: T::Array[Integer], + portal_id: Integer, + subscription_type: + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ).returns(T.attached_class) + end + def self.new( + actions:, + list_ids:, + object_ids:, + portal_id:, + subscription_type: + ) + end + + sig do + override.returns( + { + actions: + T::Array[ + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::OrSymbol + ], + list_ids: T::Array[Integer], + object_ids: T::Array[Integer], + portal_id: Integer, + subscription_type: + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::SubscriptionType::OrSymbol + } + ) + end + def to_hash + end + + module Action + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CREATE = + T.let( + :CREATE, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + UPDATE = + T.let( + :UPDATE, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + DELETE = + T.let( + :DELETE, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + MERGE = + T.let( + :MERGE, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + RESTORE = + T.let( + :RESTORE, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ASSOCIATION_ADDED = + T.let( + :ASSOCIATION_ADDED, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ASSOCIATION_REMOVED = + T.let( + :ASSOCIATION_REMOVED, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + SNAPSHOT = + T.let( + :SNAPSHOT, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + APP_INSTALL = + T.let( + :APP_INSTALL, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + APP_UNINSTALL = + T.let( + :APP_UNINSTALL, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ADDED_TO_LIST = + T.let( + :ADDED_TO_LIST, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + REMOVED_FROM_LIST = + T.let( + :REMOVED_FROM_LIST, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + GDPR_DELETE = + T.let( + :GDPR_DELETE, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol + ] + ) + end + def self.values + end + end + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::SubscriptionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + LIST_MEMBERSHIP = + T.let( + :LIST_MEMBERSHIP, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/object_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/object_subscription_upsert_request.rbi new file mode 100644 index 00000000..d904b150 --- /dev/null +++ b/rbi/hubspot_sdk/models/object_subscription_upsert_request.rbi @@ -0,0 +1,201 @@ +# typed: strong + +module HubSpotSDK + module Models + class ObjectSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::ObjectSubscriptionUpsertRequest, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + returns( + T::Array[ + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::OrSymbol + ] + ) + end + attr_accessor :actions + + sig { returns(T::Array[Integer]) } + attr_accessor :object_ids + + sig { returns(String) } + attr_accessor :object_type_id + + sig { returns(Integer) } + attr_accessor :portal_id + + sig { returns(T::Array[String]) } + attr_accessor :properties + + sig do + returns( + HubSpotSDK::ObjectSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ) + end + attr_accessor :subscription_type + + sig do + params( + actions: + T::Array[ + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::OrSymbol + ], + object_ids: T::Array[Integer], + object_type_id: String, + portal_id: Integer, + properties: T::Array[String], + subscription_type: + HubSpotSDK::ObjectSubscriptionUpsertRequest::SubscriptionType::OrSymbol + ).returns(T.attached_class) + end + def self.new( + actions:, + object_ids:, + object_type_id:, + portal_id:, + properties:, + subscription_type: + ) + end + + sig do + override.returns( + { + actions: + T::Array[ + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::OrSymbol + ], + object_ids: T::Array[Integer], + object_type_id: String, + portal_id: Integer, + properties: T::Array[String], + subscription_type: + HubSpotSDK::ObjectSubscriptionUpsertRequest::SubscriptionType::OrSymbol + } + ) + end + def to_hash + end + + module Action + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, HubSpotSDK::ObjectSubscriptionUpsertRequest::Action) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CREATE = + T.let( + :CREATE, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + UPDATE = + T.let( + :UPDATE, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + DELETE = + T.let( + :DELETE, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + MERGE = + T.let( + :MERGE, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + RESTORE = + T.let( + :RESTORE, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ASSOCIATION_ADDED = + T.let( + :ASSOCIATION_ADDED, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ASSOCIATION_REMOVED = + T.let( + :ASSOCIATION_REMOVED, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + SNAPSHOT = + T.let( + :SNAPSHOT, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + APP_INSTALL = + T.let( + :APP_INSTALL, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + APP_UNINSTALL = + T.let( + :APP_UNINSTALL, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + ADDED_TO_LIST = + T.let( + :ADDED_TO_LIST, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + REMOVED_FROM_LIST = + T.let( + :REMOVED_FROM_LIST, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + GDPR_DELETE = + T.let( + :GDPR_DELETE, + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol + ] + ) + end + def self.values + end + end + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::ObjectSubscriptionUpsertRequest::SubscriptionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + OBJECT = + T.let( + :OBJECT, + HubSpotSDK::ObjectSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::ObjectSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/property_value.rbi b/rbi/hubspot_sdk/models/property_value.rbi index 2117f09a..558e6bfb 100644 --- a/rbi/hubspot_sdk/models/property_value.rbi +++ b/rbi/hubspot_sdk/models/property_value.rbi @@ -292,6 +292,8 @@ module HubSpotSDK BILLING = T.let(:BILLING, HubSpotSDK::PropertyValue::Source::TaggedSymbol) BOT = T.let(:BOT, HubSpotSDK::PropertyValue::Source::TaggedSymbol) + BREEZE_AGENT = + T.let(:BREEZE_AGENT, HubSpotSDK::PropertyValue::Source::TaggedSymbol) CALCULATED = T.let(:CALCULATED, HubSpotSDK::PropertyValue::Source::TaggedSymbol) CENTRAL_EXCHANGE_RATES = @@ -371,6 +373,11 @@ module HubSpotSDK :DELETE_OBJECTS, HubSpotSDK::PropertyValue::Source::TaggedSymbol ) + DI_WRITE_TO_CRM = + T.let( + :DI_WRITE_TO_CRM, + HubSpotSDK::PropertyValue::Source::TaggedSymbol + ) EMAIL = T.let(:EMAIL, HubSpotSDK::PropertyValue::Source::TaggedSymbol) EMAIL_INBOX_IMPORT = T.let( diff --git a/rbi/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rbi b/rbi/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rbi index a8ef0578..3bd2f3ad 100644 --- a/rbi/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rbi +++ b/rbi/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rbi @@ -363,6 +363,11 @@ module HubSpotSDK :BOT, HubSpotSDK::Scheduler::ExternalCalendarMeetingEventResponseProperties::HsEngagementSource::TaggedSymbol ) + BREEZE_AGENT = + T.let( + :BREEZE_AGENT, + HubSpotSDK::Scheduler::ExternalCalendarMeetingEventResponseProperties::HsEngagementSource::TaggedSymbol + ) CALCULATED = T.let( :CALCULATED, @@ -483,6 +488,11 @@ module HubSpotSDK :DELETE_OBJECTS, HubSpotSDK::Scheduler::ExternalCalendarMeetingEventResponseProperties::HsEngagementSource::TaggedSymbol ) + DI_WRITE_TO_CRM = + T.let( + :DI_WRITE_TO_CRM, + HubSpotSDK::Scheduler::ExternalCalendarMeetingEventResponseProperties::HsEngagementSource::TaggedSymbol + ) EMAIL = T.let( :EMAIL, diff --git a/rbi/hubspot_sdk/models/snapshot_status_response.rbi b/rbi/hubspot_sdk/models/snapshot_status_response.rbi new file mode 100644 index 00000000..bce413b8 --- /dev/null +++ b/rbi/hubspot_sdk/models/snapshot_status_response.rbi @@ -0,0 +1,197 @@ +# typed: strong + +module HubSpotSDK + module Models + class SnapshotStatusResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::SnapshotStatusResponse, + HubSpotSDK::Internal::AnyHash + ) + end + + # The unique identifier for the snapshot operation, represented as a UUID. + sig { returns(String) } + attr_accessor :id + + # The timestamp indicating when the snapshot operation was initiated, represented + # as a Unix timestamp in milliseconds. + sig { returns(Integer) } + attr_accessor :initiated_at + + # The current status of the snapshot. Valid values include 'PENDING', + # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. + sig { returns(HubSpotSDK::SnapshotStatusResponse::Status::TaggedSymbol) } + attr_accessor :status + + # The timestamp indicating when the snapshot operation was completed, represented + # as a Unix timestamp in milliseconds. + sig { returns(T.nilable(Integer)) } + attr_reader :completed_at + + sig { params(completed_at: Integer).void } + attr_writer :completed_at + + # A code representing the error that occurred, if any. Possible values are + # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. + sig do + returns( + T.nilable(HubSpotSDK::SnapshotStatusResponse::ErrorCode::TaggedSymbol) + ) + end + attr_reader :error_code + + sig do + params( + error_code: HubSpotSDK::SnapshotStatusResponse::ErrorCode::OrSymbol + ).void + end + attr_writer :error_code + + # A descriptive message providing additional information about the snapshot + # operation or error. + sig { returns(T.nilable(String)) } + attr_reader :message + + sig { params(message: String).void } + attr_writer :message + + sig do + params( + id: String, + initiated_at: Integer, + status: HubSpotSDK::SnapshotStatusResponse::Status::OrSymbol, + completed_at: Integer, + error_code: HubSpotSDK::SnapshotStatusResponse::ErrorCode::OrSymbol, + message: String + ).returns(T.attached_class) + end + def self.new( + # The unique identifier for the snapshot operation, represented as a UUID. + id:, + # The timestamp indicating when the snapshot operation was initiated, represented + # as a Unix timestamp in milliseconds. + initiated_at:, + # The current status of the snapshot. Valid values include 'PENDING', + # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. + status:, + # The timestamp indicating when the snapshot operation was completed, represented + # as a Unix timestamp in milliseconds. + completed_at: nil, + # A code representing the error that occurred, if any. Possible values are + # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. + error_code: nil, + # A descriptive message providing additional information about the snapshot + # operation or error. + message: nil + ) + end + + sig do + override.returns( + { + id: String, + initiated_at: Integer, + status: HubSpotSDK::SnapshotStatusResponse::Status::TaggedSymbol, + completed_at: Integer, + error_code: + HubSpotSDK::SnapshotStatusResponse::ErrorCode::TaggedSymbol, + message: String + } + ) + end + def to_hash + end + + # The current status of the snapshot. Valid values include 'PENDING', + # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. + module Status + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, HubSpotSDK::SnapshotStatusResponse::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + COMPLETED = + T.let( + :COMPLETED, + HubSpotSDK::SnapshotStatusResponse::Status::TaggedSymbol + ) + EXPIRED = + T.let( + :EXPIRED, + HubSpotSDK::SnapshotStatusResponse::Status::TaggedSymbol + ) + FAILED = + T.let( + :FAILED, + HubSpotSDK::SnapshotStatusResponse::Status::TaggedSymbol + ) + IN_PROGRESS = + T.let( + :IN_PROGRESS, + HubSpotSDK::SnapshotStatusResponse::Status::TaggedSymbol + ) + PENDING = + T.let( + :PENDING, + HubSpotSDK::SnapshotStatusResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[HubSpotSDK::SnapshotStatusResponse::Status::TaggedSymbol] + ) + end + def self.values + end + end + + # A code representing the error that occurred, if any. Possible values are + # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. + module ErrorCode + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, HubSpotSDK::SnapshotStatusResponse::ErrorCode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERNAL_ERROR = + T.let( + :INTERNAL_ERROR, + HubSpotSDK::SnapshotStatusResponse::ErrorCode::TaggedSymbol + ) + PERMISSION_DENIED = + T.let( + :PERMISSION_DENIED, + HubSpotSDK::SnapshotStatusResponse::ErrorCode::TaggedSymbol + ) + TIMEOUT = + T.let( + :TIMEOUT, + HubSpotSDK::SnapshotStatusResponse::ErrorCode::TaggedSymbol + ) + VALIDATION_ERROR = + T.let( + :VALIDATION_ERROR, + HubSpotSDK::SnapshotStatusResponse::ErrorCode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::SnapshotStatusResponse::ErrorCode::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/subscription_upsert_request.rbi new file mode 100644 index 00000000..e3215052 --- /dev/null +++ b/rbi/hubspot_sdk/models/subscription_upsert_request.rbi @@ -0,0 +1,28 @@ +# typed: strong + +module HubSpotSDK + module Models + module SubscriptionUpsertRequest + extend HubSpotSDK::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + HubSpotSDK::ObjectSubscriptionUpsertRequest, + HubSpotSDK::AssociationSubscriptionUpsertRequest, + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest + ) + end + + sig do + override.returns( + T::Array[HubSpotSDK::SubscriptionUpsertRequest::Variants] + ) + end + def self.variants + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks/action_override_request.rbi b/rbi/hubspot_sdk/models/webhooks/action_override_request.rbi deleted file mode 100644 index 2e3a3c77..00000000 --- a/rbi/hubspot_sdk/models/webhooks/action_override_request.rbi +++ /dev/null @@ -1,86 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class ActionOverrideRequest < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::ActionOverrideRequest, - HubSpotSDK::Internal::AnyHash - ) - end - - # An array of strings, each representing an associated object type ID relevant to - # the action override. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :associated_object_type_ids - - sig { params(associated_object_type_ids: T::Array[String]).void } - attr_writer :associated_object_type_ids - - # An array of integers representing list IDs that are associated with the action - # override. The integers are in int64 format. - sig { returns(T.nilable(T::Array[Integer])) } - attr_reader :list_ids - - sig { params(list_ids: T::Array[Integer]).void } - attr_writer :list_ids - - # An array of integers, each representing an object ID for which the action - # override is applicable. The integers are in int64 format. - sig { returns(T.nilable(T::Array[Integer])) } - attr_reader :object_ids - - sig { params(object_ids: T::Array[Integer]).void } - attr_writer :object_ids - - # An array of strings representing the properties to be overridden in the action. - # Each string corresponds to a property name. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :properties - - sig { params(properties: T::Array[String]).void } - attr_writer :properties - - sig do - params( - associated_object_type_ids: T::Array[String], - list_ids: T::Array[Integer], - object_ids: T::Array[Integer], - properties: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # An array of strings, each representing an associated object type ID relevant to - # the action override. - associated_object_type_ids: nil, - # An array of integers representing list IDs that are associated with the action - # override. The integers are in int64 format. - list_ids: nil, - # An array of integers, each representing an object ID for which the action - # override is applicable. The integers are in int64 format. - object_ids: nil, - # An array of strings representing the properties to be overridden in the action. - # Each string corresponds to a property name. - properties: nil - ) - end - - sig do - override.returns( - { - associated_object_type_ids: T::Array[String], - list_ids: T::Array[Integer], - object_ids: T::Array[Integer], - properties: T::Array[String] - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rbi deleted file mode 100644 index 4bf6e5f5..00000000 --- a/rbi/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rbi +++ /dev/null @@ -1,108 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class AppLifecycleEventSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest, - HubSpotSDK::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :event_type_id - - sig { returns(T::Array[String]) } - attr_accessor :properties - - sig do - returns( - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ) - end - attr_accessor :subscription_type - - sig do - params( - event_type_id: String, - properties: T::Array[String], - subscription_type: - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ).returns(T.attached_class) - end - def self.new(event_type_id:, properties:, subscription_type:) - end - - sig do - override.returns( - { - event_type_id: String, - properties: T::Array[String], - subscription_type: - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::OrSymbol - } - ) - end - def to_hash - end - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - ASSOCIATION = - T.let( - :ASSOCIATION, - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - EVENT = - T.let( - :EVENT, - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - APP_LIFECYCLE_EVENT = - T.let( - :APP_LIFECYCLE_EVENT, - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - LIST_MEMBERSHIP = - T.let( - :LIST_MEMBERSHIP, - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - GDPR_PRIVACY_DELETION = - T.let( - :GDPR_PRIVACY_DELETION, - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rbi deleted file mode 100644 index 1e92062b..00000000 --- a/rbi/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rbi +++ /dev/null @@ -1,231 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class AssociationSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest, - HubSpotSDK::Internal::AnyHash - ) - end - - sig do - returns( - T::Array[ - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::OrSymbol - ] - ) - end - attr_accessor :actions - - sig { returns(T::Array[String]) } - attr_accessor :associated_object_type_ids - - sig { returns(T::Array[Integer]) } - attr_accessor :object_ids - - sig { returns(String) } - attr_accessor :object_type_id - - sig { returns(Integer) } - attr_accessor :portal_id - - sig do - returns( - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ) - end - attr_accessor :subscription_type - - sig do - params( - actions: - T::Array[ - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::OrSymbol - ], - associated_object_type_ids: T::Array[String], - object_ids: T::Array[Integer], - object_type_id: String, - portal_id: Integer, - subscription_type: - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ).returns(T.attached_class) - end - def self.new( - actions:, - associated_object_type_ids:, - object_ids:, - object_type_id:, - portal_id:, - subscription_type: - ) - end - - sig do - override.returns( - { - actions: - T::Array[ - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::OrSymbol - ], - associated_object_type_ids: T::Array[String], - object_ids: T::Array[Integer], - object_type_id: String, - portal_id: Integer, - subscription_type: - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::OrSymbol - } - ) - end - def to_hash - end - - module Action - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CREATE = - T.let( - :CREATE, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - UPDATE = - T.let( - :UPDATE, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - DELETE = - T.let( - :DELETE, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - MERGE = - T.let( - :MERGE, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - RESTORE = - T.let( - :RESTORE, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ASSOCIATION_ADDED = - T.let( - :ASSOCIATION_ADDED, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ASSOCIATION_REMOVED = - T.let( - :ASSOCIATION_REMOVED, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - SNAPSHOT = - T.let( - :SNAPSHOT, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - APP_INSTALL = - T.let( - :APP_INSTALL, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - APP_UNINSTALL = - T.let( - :APP_UNINSTALL, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ADDED_TO_LIST = - T.let( - :ADDED_TO_LIST, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - REMOVED_FROM_LIST = - T.let( - :REMOVED_FROM_LIST, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - GDPR_DELETE = - T.let( - :GDPR_DELETE, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - ASSOCIATION = - T.let( - :ASSOCIATION, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - EVENT = - T.let( - :EVENT, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - APP_LIFECYCLE_EVENT = - T.let( - :APP_LIFECYCLE_EVENT, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - LIST_MEMBERSHIP = - T.let( - :LIST_MEMBERSHIP, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - GDPR_PRIVACY_DELETION = - T.let( - :GDPR_PRIVACY_DELETION, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rbi b/rbi/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rbi deleted file mode 100644 index 617b74fe..00000000 --- a/rbi/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rbi +++ /dev/null @@ -1,145 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class BatchResponseJournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse, - HubSpotSDK::Internal::AnyHash - ) - end - - # The date and time when the batch operation was completed, in ISO 8601 format. - sig { returns(Time) } - attr_accessor :completed_at - - # An array of results from the batch operation, each represented as a - # JournalFetchResponse object. - sig { returns(T::Array[HubSpotSDK::Webhooks::JournalFetchResponse]) } - attr_accessor :results - - # The date and time when the batch operation started, in ISO 8601 format. - sig { returns(Time) } - attr_accessor :started_at - - # The current status of the batch operation. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - sig do - returns( - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status::TaggedSymbol - ) - end - attr_accessor :status - - # A map of link names to associated URIs related to the batch operation. - sig { returns(T.nilable(T::Hash[Symbol, String])) } - attr_reader :links - - sig { params(links: T::Hash[Symbol, String]).void } - attr_writer :links - - # The date and time when the batch operation was requested, in ISO 8601 format. - sig { returns(T.nilable(Time)) } - attr_reader :requested_at - - sig { params(requested_at: Time).void } - attr_writer :requested_at - - sig do - params( - completed_at: Time, - results: - T::Array[HubSpotSDK::Webhooks::JournalFetchResponse::OrHash], - started_at: Time, - status: - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status::OrSymbol, - links: T::Hash[Symbol, String], - requested_at: Time - ).returns(T.attached_class) - end - def self.new( - # The date and time when the batch operation was completed, in ISO 8601 format. - completed_at:, - # An array of results from the batch operation, each represented as a - # JournalFetchResponse object. - results:, - # The date and time when the batch operation started, in ISO 8601 format. - started_at:, - # The current status of the batch operation. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - status:, - # A map of link names to associated URIs related to the batch operation. - links: nil, - # The date and time when the batch operation was requested, in ISO 8601 format. - requested_at: nil - ) - end - - sig do - override.returns( - { - completed_at: Time, - results: T::Array[HubSpotSDK::Webhooks::JournalFetchResponse], - started_at: Time, - status: - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status::TaggedSymbol, - links: T::Hash[Symbol, String], - requested_at: Time - } - ) - end - def to_hash - end - - # The current status of the batch operation. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - module Status - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CANCELED = - T.let( - :CANCELED, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status::TaggedSymbol - ) - COMPLETE = - T.let( - :COMPLETE, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status::TaggedSymbol - ) - PENDING = - T.let( - :PENDING, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status::TaggedSymbol - ) - PROCESSING = - T.let( - :PROCESSING, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rbi b/rbi/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rbi deleted file mode 100644 index 4adbec9c..00000000 --- a/rbi/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rbi +++ /dev/null @@ -1,171 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class BatchResponseJournalFetchResponseWithErrors < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors, - HubSpotSDK::Internal::AnyHash - ) - end - - # The date and time when the batch process was completed, in ISO 8601 format. - sig { returns(Time) } - attr_accessor :completed_at - - # An array of journal fetch responses, each representing a result from the batch - # process. - sig { returns(T::Array[HubSpotSDK::Webhooks::JournalFetchResponse]) } - attr_accessor :results - - # The date and time when the batch process started, in ISO 8601 format. - sig { returns(Time) } - attr_accessor :started_at - - # The current status of the batch process. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - sig do - returns( - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status::OrSymbol - ) - end - attr_accessor :status - - # An array of standard errors that occurred during the batch process, providing - # details about each error. - sig { returns(T.nilable(T::Array[HubSpotSDK::StandardError])) } - attr_reader :errors - - sig { params(errors: T::Array[HubSpotSDK::StandardError::OrHash]).void } - attr_writer :errors - - # A map of link names to associated URIs, providing additional context or actions - # related to the batch process. - sig { returns(T.nilable(T::Hash[Symbol, String])) } - attr_reader :links - - sig { params(links: T::Hash[Symbol, String]).void } - attr_writer :links - - # The number of errors that occurred during the batch process. - sig { returns(T.nilable(Integer)) } - attr_reader :num_errors - - sig { params(num_errors: Integer).void } - attr_writer :num_errors - - # The date and time when the batch request was made, in ISO 8601 format. - sig { returns(T.nilable(Time)) } - attr_reader :requested_at - - sig { params(requested_at: Time).void } - attr_writer :requested_at - - sig do - params( - completed_at: Time, - results: - T::Array[HubSpotSDK::Webhooks::JournalFetchResponse::OrHash], - started_at: Time, - status: - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status::OrSymbol, - errors: T::Array[HubSpotSDK::StandardError::OrHash], - links: T::Hash[Symbol, String], - num_errors: Integer, - requested_at: Time - ).returns(T.attached_class) - end - def self.new( - # The date and time when the batch process was completed, in ISO 8601 format. - completed_at:, - # An array of journal fetch responses, each representing a result from the batch - # process. - results:, - # The date and time when the batch process started, in ISO 8601 format. - started_at:, - # The current status of the batch process. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - status:, - # An array of standard errors that occurred during the batch process, providing - # details about each error. - errors: nil, - # A map of link names to associated URIs, providing additional context or actions - # related to the batch process. - links: nil, - # The number of errors that occurred during the batch process. - num_errors: nil, - # The date and time when the batch request was made, in ISO 8601 format. - requested_at: nil - ) - end - - sig do - override.returns( - { - completed_at: Time, - results: T::Array[HubSpotSDK::Webhooks::JournalFetchResponse], - started_at: Time, - status: - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status::OrSymbol, - errors: T::Array[HubSpotSDK::StandardError], - links: T::Hash[Symbol, String], - num_errors: Integer, - requested_at: Time - } - ) - end - def to_hash - end - - # The current status of the batch process. Valid values include 'PENDING', - # 'PROCESSING', 'CANCELED', and 'COMPLETE'. - module Status - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CANCELED = - T.let( - :CANCELED, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol - ) - COMPLETE = - T.let( - :COMPLETE, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol - ) - PENDING = - T.let( - :PENDING, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol - ) - PROCESSING = - T.let( - :PROCESSING, - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::BatchResponseJournalFetchResponseWithErrors::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/condition.rbi b/rbi/hubspot_sdk/models/webhooks/condition.rbi deleted file mode 100644 index f1278c3f..00000000 --- a/rbi/hubspot_sdk/models/webhooks/condition.rbi +++ /dev/null @@ -1,190 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class Condition < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::Condition, - HubSpotSDK::Internal::AnyHash - ) - end - - # A string indicating the type of filter being applied. Valid value is - # 'CRM_OBJECT_PROPERTY'. - sig { returns(HubSpotSDK::Webhooks::Condition::FilterType::OrSymbol) } - attr_accessor :filter_type - - # A string specifying the operation to be performed in the condition. Valid values - # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', - # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. - sig { returns(HubSpotSDK::Webhooks::Condition::Operator::OrSymbol) } - attr_accessor :operator - - # A string representing the specific property of the CRM object that the condition - # applies to. - sig { returns(String) } - attr_accessor :property - - # A string representing the value to be compared against the specified property - # when using single-value operators. - sig { returns(T.nilable(String)) } - attr_reader :value - - sig { params(value: String).void } - attr_writer :value - - # An array of strings used to specify multiple values for comparison when using - # operators that support multiple values, such as 'IN' or 'NOT_IN'. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :values - - sig { params(values: T::Array[String]).void } - attr_writer :values - - sig do - params( - filter_type: HubSpotSDK::Webhooks::Condition::FilterType::OrSymbol, - operator: HubSpotSDK::Webhooks::Condition::Operator::OrSymbol, - property: String, - value: String, - values: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # A string indicating the type of filter being applied. Valid value is - # 'CRM_OBJECT_PROPERTY'. - filter_type:, - # A string specifying the operation to be performed in the condition. Valid values - # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', - # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. - operator:, - # A string representing the specific property of the CRM object that the condition - # applies to. - property:, - # A string representing the value to be compared against the specified property - # when using single-value operators. - value: nil, - # An array of strings used to specify multiple values for comparison when using - # operators that support multiple values, such as 'IN' or 'NOT_IN'. - values: nil - ) - end - - sig do - override.returns( - { - filter_type: - HubSpotSDK::Webhooks::Condition::FilterType::OrSymbol, - operator: HubSpotSDK::Webhooks::Condition::Operator::OrSymbol, - property: String, - value: String, - values: T::Array[String] - } - ) - end - def to_hash - end - - # A string indicating the type of filter being applied. Valid value is - # 'CRM_OBJECT_PROPERTY'. - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, HubSpotSDK::Webhooks::Condition::FilterType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CRM_OBJECT_PROPERTY = - T.let( - :CRM_OBJECT_PROPERTY, - HubSpotSDK::Webhooks::Condition::FilterType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::Condition::FilterType::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A string specifying the operation to be performed in the condition. Valid values - # include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', - # 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. - module Operator - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, HubSpotSDK::Webhooks::Condition::Operator) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CONTAINS = - T.let( - :CONTAINS, - HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol - ) - ENDS_WITH = - T.let( - :ENDS_WITH, - HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol - ) - EQ = - T.let(:EQ, HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol) - GT = - T.let(:GT, HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol) - GTE = - T.let(:GTE, HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol) - IN = - T.let(:IN, HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol) - IS_EMPTY = - T.let( - :IS_EMPTY, - HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol - ) - IS_NOT_EMPTY = - T.let( - :IS_NOT_EMPTY, - HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol - ) - LT = - T.let(:LT, HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol) - LTE = - T.let(:LTE, HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol) - N_EQ = - T.let( - :N_EQ, - HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol - ) - NOT_IN = - T.let( - :NOT_IN, - HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol - ) - STARTS_WITH = - T.let( - :STARTS_WITH, - HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol - ) - - sig do - override.returns( - T::Array[HubSpotSDK::Webhooks::Condition::Operator::TaggedSymbol] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rbi b/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rbi deleted file mode 100644 index cc52e64c..00000000 --- a/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rbi +++ /dev/null @@ -1,48 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class CrmObjectSnapshotBatchRequest < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::CrmObjectSnapshotBatchRequest, - HubSpotSDK::Internal::AnyHash - ) - end - - # An array of CrmObjectSnapshotRequest objects, each representing a request to - # create a snapshot for a specific CRM object. This property is required. - sig do - returns(T::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest]) - end - attr_accessor :snapshot_requests - - sig do - params( - snapshot_requests: - T::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest::OrHash] - ).returns(T.attached_class) - end - def self.new( - # An array of CrmObjectSnapshotRequest objects, each representing a request to - # create a snapshot for a specific CRM object. This property is required. - snapshot_requests: - ) - end - - sig do - override.returns( - { - snapshot_requests: - T::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest] - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rbi b/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rbi deleted file mode 100644 index 931b635c..00000000 --- a/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rbi +++ /dev/null @@ -1,48 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class CrmObjectSnapshotBatchResponse < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::CrmObjectSnapshotBatchResponse, - HubSpotSDK::Internal::AnyHash - ) - end - - # An array of CrmObjectSnapshotResponse objects, each representing the result of a - # snapshot operation for a specific CRM object. This property is required. - sig do - returns(T::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotResponse]) - end - attr_accessor :snapshot_responses - - sig do - params( - snapshot_responses: - T::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotResponse::OrHash] - ).returns(T.attached_class) - end - def self.new( - # An array of CrmObjectSnapshotResponse objects, each representing the result of a - # snapshot operation for a specific CRM object. This property is required. - snapshot_responses: - ) - end - - sig do - override.returns( - { - snapshot_responses: - T::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotResponse] - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rbi b/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rbi deleted file mode 100644 index 431192b2..00000000 --- a/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rbi +++ /dev/null @@ -1,74 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class CrmObjectSnapshotRequest < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::CrmObjectSnapshotRequest, - HubSpotSDK::Internal::AnyHash - ) - end - - # An integer representing the unique identifier of the CRM object for which the - # snapshot is requested. - sig { returns(Integer) } - attr_accessor :object_id_ - - # A string representing the type identifier of the CRM object, specifying what - # kind of object it is within HubSpot. - sig { returns(String) } - attr_accessor :object_type_id - - # An integer representing the unique identifier of the HubSpot account (portal) - # where the CRM object resides. - sig { returns(Integer) } - attr_accessor :portal_id - - # An array of strings, each representing a property of the CRM object that should - # be included in the snapshot. - sig { returns(T::Array[String]) } - attr_accessor :properties - - sig do - params( - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - properties: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # An integer representing the unique identifier of the CRM object for which the - # snapshot is requested. - object_id_:, - # A string representing the type identifier of the CRM object, specifying what - # kind of object it is within HubSpot. - object_type_id:, - # An integer representing the unique identifier of the HubSpot account (portal) - # where the CRM object resides. - portal_id:, - # An array of strings, each representing a property of the CRM object that should - # be included in the snapshot. - properties: - ) - end - - sig do - override.returns( - { - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - properties: T::Array[String] - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rbi b/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rbi deleted file mode 100644 index 0d74d28d..00000000 --- a/rbi/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rbi +++ /dev/null @@ -1,74 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class CrmObjectSnapshotResponse < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::CrmObjectSnapshotResponse, - HubSpotSDK::Internal::AnyHash - ) - end - - # An integer representing the unique identifier of the CRM object for which the - # snapshot is taken. - sig { returns(Integer) } - attr_accessor :object_id_ - - # A string indicating the type of the CRM object, such as contact, company, or - # deal. - sig { returns(String) } - attr_accessor :object_type_id - - # An integer representing the unique identifier of the HubSpot portal associated - # with the CRM object. - sig { returns(Integer) } - attr_accessor :portal_id - - # A UUID string representing the status identifier of the snapshot request, - # indicating the current state of the snapshot process. - sig { returns(String) } - attr_accessor :snapshot_status_id - - sig do - params( - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - snapshot_status_id: String - ).returns(T.attached_class) - end - def self.new( - # An integer representing the unique identifier of the CRM object for which the - # snapshot is taken. - object_id_:, - # A string indicating the type of the CRM object, such as contact, company, or - # deal. - object_type_id:, - # An integer representing the unique identifier of the HubSpot portal associated - # with the CRM object. - portal_id:, - # A UUID string representing the status identifier of the snapshot request, - # indicating the current state of the snapshot process. - snapshot_status_id: - ) - end - - sig do - override.returns( - { - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - snapshot_status_id: String - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/filter.rbi b/rbi/hubspot_sdk/models/webhooks/filter.rbi deleted file mode 100644 index 136ceeb3..00000000 --- a/rbi/hubspot_sdk/models/webhooks/filter.rbi +++ /dev/null @@ -1,42 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class Filter < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(HubSpotSDK::Webhooks::Filter, HubSpotSDK::Internal::AnyHash) - end - - # An array of conditions that define the criteria for the filter. Each condition - # specifies a property, an operator, and optionally a value or values. - sig { returns(T::Array[HubSpotSDK::Webhooks::Condition]) } - attr_accessor :conditions - - # Defines a single condition for searching CRM objects, specifying the property to - # filter on, the operator to use (such as equals, greater than, or contains), and - # the value(s) to compare against. - sig do - params( - conditions: T::Array[HubSpotSDK::Webhooks::Condition::OrHash] - ).returns(T.attached_class) - end - def self.new( - # An array of conditions that define the criteria for the filter. Each condition - # specifies a property, an operator, and optionally a value or values. - conditions: - ) - end - - sig do - override.returns( - { conditions: T::Array[HubSpotSDK::Webhooks::Condition] } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/filter_create_request.rbi b/rbi/hubspot_sdk/models/webhooks/filter_create_request.rbi deleted file mode 100644 index ae76afb1..00000000 --- a/rbi/hubspot_sdk/models/webhooks/filter_create_request.rbi +++ /dev/null @@ -1,56 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class FilterCreateRequest < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::FilterCreateRequest, - HubSpotSDK::Internal::AnyHash - ) - end - - # Defines a single condition for searching CRM objects, specifying the property to - # filter on, the operator to use (such as equals, greater than, or contains), and - # the value(s) to compare against. - sig { returns(HubSpotSDK::Webhooks::Filter) } - attr_reader :filter - - sig { params(filter: HubSpotSDK::Webhooks::Filter::OrHash).void } - attr_writer :filter - - # The unique identifier of the subscription to which the filter will be applied. - # It is an integer formatted as int64. - sig { returns(Integer) } - attr_accessor :subscription_id - - sig do - params( - filter: HubSpotSDK::Webhooks::Filter::OrHash, - subscription_id: Integer - ).returns(T.attached_class) - end - def self.new( - # Defines a single condition for searching CRM objects, specifying the property to - # filter on, the operator to use (such as equals, greater than, or contains), and - # the value(s) to compare against. - filter:, - # The unique identifier of the subscription to which the filter will be applied. - # It is an integer formatted as int64. - subscription_id: - ) - end - - sig do - override.returns( - { filter: HubSpotSDK::Webhooks::Filter, subscription_id: Integer } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/filter_create_response.rbi b/rbi/hubspot_sdk/models/webhooks/filter_create_response.rbi deleted file mode 100644 index cc4e26dd..00000000 --- a/rbi/hubspot_sdk/models/webhooks/filter_create_response.rbi +++ /dev/null @@ -1,34 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class FilterCreateResponse < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::FilterCreateResponse, - HubSpotSDK::Internal::AnyHash - ) - end - - # The unique identifier for the created filter. It is an integer formatted as - # int64. - sig { returns(Integer) } - attr_accessor :filter_id - - sig { params(filter_id: Integer).returns(T.attached_class) } - def self.new( - # The unique identifier for the created filter. It is an integer formatted as - # int64. - filter_id: - ) - end - - sig { override.returns({ filter_id: Integer }) } - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/filter_response.rbi b/rbi/hubspot_sdk/models/webhooks/filter_response.rbi deleted file mode 100644 index 75278873..00000000 --- a/rbi/hubspot_sdk/models/webhooks/filter_response.rbi +++ /dev/null @@ -1,65 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class FilterResponse < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::FilterResponse, - HubSpotSDK::Internal::AnyHash - ) - end - - # The unique identifier for the filter. It is an integer in int64 format. - sig { returns(Integer) } - attr_accessor :id - - # A Unix timestamp in milliseconds indicating when the filter was created. - sig { returns(Integer) } - attr_accessor :created_at - - # Defines a single condition for searching CRM objects, specifying the property to - # filter on, the operator to use (such as equals, greater than, or contains), and - # the value(s) to compare against. - sig { returns(HubSpotSDK::Webhooks::Filter) } - attr_reader :filter - - sig { params(filter: HubSpotSDK::Webhooks::Filter::OrHash).void } - attr_writer :filter - - sig do - params( - id: Integer, - created_at: Integer, - filter: HubSpotSDK::Webhooks::Filter::OrHash - ).returns(T.attached_class) - end - def self.new( - # The unique identifier for the filter. It is an integer in int64 format. - id:, - # A Unix timestamp in milliseconds indicating when the filter was created. - created_at:, - # Defines a single condition for searching CRM objects, specifying the property to - # filter on, the operator to use (such as equals, greater than, or contains), and - # the value(s) to compare against. - filter: - ) - end - - sig do - override.returns( - { - id: Integer, - created_at: Integer, - filter: HubSpotSDK::Webhooks::Filter - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rbi deleted file mode 100644 index efd15514..00000000 --- a/rbi/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rbi +++ /dev/null @@ -1,214 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class GdprPrivacyDeletionSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest, - HubSpotSDK::Internal::AnyHash - ) - end - - sig do - returns( - T::Array[ - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::OrSymbol - ] - ) - end - attr_accessor :actions - - sig { returns(String) } - attr_accessor :object_type_id - - sig { returns(Integer) } - attr_accessor :portal_id - - sig do - returns( - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ) - end - attr_accessor :subscription_type - - sig do - params( - actions: - T::Array[ - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::OrSymbol - ], - object_type_id: String, - portal_id: Integer, - subscription_type: - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ).returns(T.attached_class) - end - def self.new(actions:, object_type_id:, portal_id:, subscription_type:) - end - - sig do - override.returns( - { - actions: - T::Array[ - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::OrSymbol - ], - object_type_id: String, - portal_id: Integer, - subscription_type: - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::OrSymbol - } - ) - end - def to_hash - end - - module Action - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CREATE = - T.let( - :CREATE, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - UPDATE = - T.let( - :UPDATE, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - DELETE = - T.let( - :DELETE, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - MERGE = - T.let( - :MERGE, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - RESTORE = - T.let( - :RESTORE, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ASSOCIATION_ADDED = - T.let( - :ASSOCIATION_ADDED, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ASSOCIATION_REMOVED = - T.let( - :ASSOCIATION_REMOVED, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - SNAPSHOT = - T.let( - :SNAPSHOT, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - APP_INSTALL = - T.let( - :APP_INSTALL, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - APP_UNINSTALL = - T.let( - :APP_UNINSTALL, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ADDED_TO_LIST = - T.let( - :ADDED_TO_LIST, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - REMOVED_FROM_LIST = - T.let( - :REMOVED_FROM_LIST, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - GDPR_DELETE = - T.let( - :GDPR_DELETE, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - ASSOCIATION = - T.let( - :ASSOCIATION, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - EVENT = - T.let( - :EVENT, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - APP_LIFECYCLE_EVENT = - T.let( - :APP_LIFECYCLE_EVENT, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - LIST_MEMBERSHIP = - T.let( - :LIST_MEMBERSHIP, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - GDPR_PRIVACY_DELETION = - T.let( - :GDPR_PRIVACY_DELETION, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/journal_fetch_response.rbi b/rbi/hubspot_sdk/models/webhooks/journal_fetch_response.rbi deleted file mode 100644 index 20b89ddd..00000000 --- a/rbi/hubspot_sdk/models/webhooks/journal_fetch_response.rbi +++ /dev/null @@ -1,54 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class JournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::JournalFetchResponse, - HubSpotSDK::Internal::AnyHash - ) - end - - # The unique identifier for the current offset of the journal entry, formatted as - # a UUID. - sig { returns(String) } - attr_accessor :current_offset - - # The date and time when the URL will expire, in ISO 8601 format. - sig { returns(Time) } - attr_accessor :expires_at - - # The URL where the journal entry can be accessed. It is a string. - sig { returns(String) } - attr_accessor :url - - sig do - params(current_offset: String, expires_at: Time, url: String).returns( - T.attached_class - ) - end - def self.new( - # The unique identifier for the current offset of the journal entry, formatted as - # a UUID. - current_offset:, - # The date and time when the URL will expire, in ISO 8601 format. - expires_at:, - # The URL where the journal entry can be accessed. It is a string. - url: - ) - end - - sig do - override.returns( - { current_offset: String, expires_at: Time, url: String } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rbi deleted file mode 100644 index 73e52820..00000000 --- a/rbi/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rbi +++ /dev/null @@ -1,225 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class ListMembershipSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest, - HubSpotSDK::Internal::AnyHash - ) - end - - sig do - returns( - T::Array[ - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::OrSymbol - ] - ) - end - attr_accessor :actions - - sig { returns(T::Array[Integer]) } - attr_accessor :list_ids - - sig { returns(T::Array[Integer]) } - attr_accessor :object_ids - - sig { returns(Integer) } - attr_accessor :portal_id - - sig do - returns( - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ) - end - attr_accessor :subscription_type - - sig do - params( - actions: - T::Array[ - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::OrSymbol - ], - list_ids: T::Array[Integer], - object_ids: T::Array[Integer], - portal_id: Integer, - subscription_type: - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ).returns(T.attached_class) - end - def self.new( - actions:, - list_ids:, - object_ids:, - portal_id:, - subscription_type: - ) - end - - sig do - override.returns( - { - actions: - T::Array[ - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::OrSymbol - ], - list_ids: T::Array[Integer], - object_ids: T::Array[Integer], - portal_id: Integer, - subscription_type: - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::OrSymbol - } - ) - end - def to_hash - end - - module Action - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CREATE = - T.let( - :CREATE, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - UPDATE = - T.let( - :UPDATE, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - DELETE = - T.let( - :DELETE, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - MERGE = - T.let( - :MERGE, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - RESTORE = - T.let( - :RESTORE, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ASSOCIATION_ADDED = - T.let( - :ASSOCIATION_ADDED, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ASSOCIATION_REMOVED = - T.let( - :ASSOCIATION_REMOVED, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - SNAPSHOT = - T.let( - :SNAPSHOT, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - APP_INSTALL = - T.let( - :APP_INSTALL, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - APP_UNINSTALL = - T.let( - :APP_UNINSTALL, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ADDED_TO_LIST = - T.let( - :ADDED_TO_LIST, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - REMOVED_FROM_LIST = - T.let( - :REMOVED_FROM_LIST, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - GDPR_DELETE = - T.let( - :GDPR_DELETE, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - ASSOCIATION = - T.let( - :ASSOCIATION, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - EVENT = - T.let( - :EVENT, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - APP_LIFECYCLE_EVENT = - T.let( - :APP_LIFECYCLE_EVENT, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - LIST_MEMBERSHIP = - T.let( - :LIST_MEMBERSHIP, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - GDPR_PRIVACY_DELETION = - T.let( - :GDPR_PRIVACY_DELETION, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rbi deleted file mode 100644 index e1a6ce4d..00000000 --- a/rbi/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rbi +++ /dev/null @@ -1,231 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class ObjectSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest, - HubSpotSDK::Internal::AnyHash - ) - end - - sig do - returns( - T::Array[ - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::OrSymbol - ] - ) - end - attr_accessor :actions - - sig { returns(T::Array[Integer]) } - attr_accessor :object_ids - - sig { returns(String) } - attr_accessor :object_type_id - - sig { returns(Integer) } - attr_accessor :portal_id - - sig { returns(T::Array[String]) } - attr_accessor :properties - - sig do - returns( - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ) - end - attr_accessor :subscription_type - - sig do - params( - actions: - T::Array[ - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::OrSymbol - ], - object_ids: T::Array[Integer], - object_type_id: String, - portal_id: Integer, - properties: T::Array[String], - subscription_type: - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::OrSymbol - ).returns(T.attached_class) - end - def self.new( - actions:, - object_ids:, - object_type_id:, - portal_id:, - properties:, - subscription_type: - ) - end - - sig do - override.returns( - { - actions: - T::Array[ - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::OrSymbol - ], - object_ids: T::Array[Integer], - object_type_id: String, - portal_id: Integer, - properties: T::Array[String], - subscription_type: - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::OrSymbol - } - ) - end - def to_hash - end - - module Action - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CREATE = - T.let( - :CREATE, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - UPDATE = - T.let( - :UPDATE, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - DELETE = - T.let( - :DELETE, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - MERGE = - T.let( - :MERGE, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - RESTORE = - T.let( - :RESTORE, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ASSOCIATION_ADDED = - T.let( - :ASSOCIATION_ADDED, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ASSOCIATION_REMOVED = - T.let( - :ASSOCIATION_REMOVED, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - SNAPSHOT = - T.let( - :SNAPSHOT, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - APP_INSTALL = - T.let( - :APP_INSTALL, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - APP_UNINSTALL = - T.let( - :APP_UNINSTALL, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - ADDED_TO_LIST = - T.let( - :ADDED_TO_LIST, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - REMOVED_FROM_LIST = - T.let( - :REMOVED_FROM_LIST, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - GDPR_DELETE = - T.let( - :GDPR_DELETE, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - OBJECT = - T.let( - :OBJECT, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - ASSOCIATION = - T.let( - :ASSOCIATION, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - EVENT = - T.let( - :EVENT, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - APP_LIFECYCLE_EVENT = - T.let( - :APP_LIFECYCLE_EVENT, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - LIST_MEMBERSHIP = - T.let( - :LIST_MEMBERSHIP, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - GDPR_PRIVACY_DELETION = - T.let( - :GDPR_PRIVACY_DELETION, - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::SubscriptionType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/snapshot_status_response.rbi b/rbi/hubspot_sdk/models/webhooks/snapshot_status_response.rbi deleted file mode 100644 index de9c9baf..00000000 --- a/rbi/hubspot_sdk/models/webhooks/snapshot_status_response.rbi +++ /dev/null @@ -1,217 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - class SnapshotStatusResponse < HubSpotSDK::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::SnapshotStatusResponse, - HubSpotSDK::Internal::AnyHash - ) - end - - # The unique identifier for the snapshot operation, represented as a UUID. - sig { returns(String) } - attr_accessor :id - - # The timestamp indicating when the snapshot operation was initiated, represented - # as a Unix timestamp in milliseconds. - sig { returns(Integer) } - attr_accessor :initiated_at - - # The current status of the snapshot. Valid values include 'PENDING', - # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. - sig do - returns( - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status::TaggedSymbol - ) - end - attr_accessor :status - - # The timestamp indicating when the snapshot operation was completed, represented - # as a Unix timestamp in milliseconds. - sig { returns(T.nilable(Integer)) } - attr_reader :completed_at - - sig { params(completed_at: Integer).void } - attr_writer :completed_at - - # A code representing the error that occurred, if any. Possible values are - # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. - sig do - returns( - T.nilable( - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode::TaggedSymbol - ) - ) - end - attr_reader :error_code - - sig do - params( - error_code: - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode::OrSymbol - ).void - end - attr_writer :error_code - - # A descriptive message providing additional information about the snapshot - # operation or error. - sig { returns(T.nilable(String)) } - attr_reader :message - - sig { params(message: String).void } - attr_writer :message - - sig do - params( - id: String, - initiated_at: Integer, - status: - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status::OrSymbol, - completed_at: Integer, - error_code: - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode::OrSymbol, - message: String - ).returns(T.attached_class) - end - def self.new( - # The unique identifier for the snapshot operation, represented as a UUID. - id:, - # The timestamp indicating when the snapshot operation was initiated, represented - # as a Unix timestamp in milliseconds. - initiated_at:, - # The current status of the snapshot. Valid values include 'PENDING', - # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. - status:, - # The timestamp indicating when the snapshot operation was completed, represented - # as a Unix timestamp in milliseconds. - completed_at: nil, - # A code representing the error that occurred, if any. Possible values are - # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. - error_code: nil, - # A descriptive message providing additional information about the snapshot - # operation or error. - message: nil - ) - end - - sig do - override.returns( - { - id: String, - initiated_at: Integer, - status: - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status::TaggedSymbol, - completed_at: Integer, - error_code: - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode::TaggedSymbol, - message: String - } - ) - end - def to_hash - end - - # The current status of the snapshot. Valid values include 'PENDING', - # 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. - module Status - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - COMPLETED = - T.let( - :COMPLETED, - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status::TaggedSymbol - ) - EXPIRED = - T.let( - :EXPIRED, - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status::TaggedSymbol - ) - FAILED = - T.let( - :FAILED, - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status::TaggedSymbol - ) - IN_PROGRESS = - T.let( - :IN_PROGRESS, - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status::TaggedSymbol - ) - PENDING = - T.let( - :PENDING, - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::SnapshotStatusResponse::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A code representing the error that occurred, if any. Possible values are - # 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. - module ErrorCode - extend HubSpotSDK::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERNAL_ERROR = - T.let( - :INTERNAL_ERROR, - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode::TaggedSymbol - ) - PERMISSION_DENIED = - T.let( - :PERMISSION_DENIED, - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode::TaggedSymbol - ) - TIMEOUT = - T.let( - :TIMEOUT, - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode::TaggedSymbol - ) - VALIDATION_ERROR = - T.let( - :VALIDATION_ERROR, - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/subscription_response_1.rbi b/rbi/hubspot_sdk/models/webhooks/subscription_response_1.rbi index 1ed90c81..8985b9aa 100644 --- a/rbi/hubspot_sdk/models/webhooks/subscription_response_1.rbi +++ b/rbi/hubspot_sdk/models/webhooks/subscription_response_1.rbi @@ -23,7 +23,7 @@ module HubSpotSDK sig do returns( T::Array[ - HubSpotSDK::Webhooks::SubscriptionResponse1::Action::TaggedSymbol + HubSpotSDK::Webhooks::SubscriptionResponse1::Action::OrSymbol ] ) end @@ -48,7 +48,7 @@ module HubSpotSDK # 'GDPR_PRIVACY_DELETION'. sig do returns( - HubSpotSDK::Webhooks::SubscriptionResponse1::SubscriptionType::TaggedSymbol + HubSpotSDK::Webhooks::SubscriptionResponse1::SubscriptionType::OrSymbol ) end attr_accessor :subscription_type @@ -60,21 +60,14 @@ module HubSpotSDK # An object containing action overrides, where each key is an action and the value # is an ActionOverrideRequest object. sig do - returns( - T.nilable( - T::Hash[Symbol, HubSpotSDK::Webhooks::ActionOverrideRequest] - ) - ) + returns(T.nilable(T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest])) end attr_reader :action_overrides sig do params( action_overrides: - T::Hash[ - Symbol, - HubSpotSDK::Webhooks::ActionOverrideRequest::OrHash - ] + T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest::OrHash] ).void end attr_writer :action_overrides @@ -148,10 +141,7 @@ module HubSpotSDK HubSpotSDK::Webhooks::SubscriptionResponse1::SubscriptionType::OrSymbol, updated_at: Time, action_overrides: - T::Hash[ - Symbol, - HubSpotSDK::Webhooks::ActionOverrideRequest::OrHash - ], + T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest::OrHash], associated_object_type_ids: T::Array[String], created_by: Integer, deleted_at: Time, @@ -215,16 +205,16 @@ module HubSpotSDK id: Integer, actions: T::Array[ - HubSpotSDK::Webhooks::SubscriptionResponse1::Action::TaggedSymbol + HubSpotSDK::Webhooks::SubscriptionResponse1::Action::OrSymbol ], app_id: Integer, created_at: Time, object_type_id: String, subscription_type: - HubSpotSDK::Webhooks::SubscriptionResponse1::SubscriptionType::TaggedSymbol, + HubSpotSDK::Webhooks::SubscriptionResponse1::SubscriptionType::OrSymbol, updated_at: Time, action_overrides: - T::Hash[Symbol, HubSpotSDK::Webhooks::ActionOverrideRequest], + T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], associated_object_type_ids: T::Array[String], created_by: Integer, deleted_at: Time, diff --git a/rbi/hubspot_sdk/models/webhooks/subscription_upsert_request.rbi b/rbi/hubspot_sdk/models/webhooks/subscription_upsert_request.rbi deleted file mode 100644 index dc8552e5..00000000 --- a/rbi/hubspot_sdk/models/webhooks/subscription_upsert_request.rbi +++ /dev/null @@ -1,30 +0,0 @@ -# typed: strong - -module HubSpotSDK - module Models - module Webhooks - module SubscriptionUpsertRequest - extend HubSpotSDK::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest, - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest - ) - end - - sig do - override.returns( - T::Array[HubSpotSDK::Webhooks::SubscriptionUpsertRequest::Variants] - ) - end - def self.variants - end - end - end - end -end diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rbi index c3b5c83d..7e0ba778 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rbi @@ -3,7 +3,7 @@ module HubSpotSDK module Models module Webhooks - class WebhookCreateCrmSnapshotsParams < HubSpotSDK::Models::Webhooks::CrmObjectSnapshotBatchRequest + class WebhookCreateCrmSnapshotsParams < HubSpotSDK::Models::CrmObjectSnapshotBatchRequest extend HubSpotSDK::Internal::Type::RequestParameters::Converter include HubSpotSDK::Internal::Type::RequestParameters diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rbi index 8b73ade1..a7212ca6 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rbi @@ -3,7 +3,7 @@ module HubSpotSDK module Models module Webhooks - class WebhookCreateSubscriptionFilterParams < HubSpotSDK::Models::Webhooks::FilterCreateRequest + class WebhookCreateSubscriptionFilterParams < HubSpotSDK::Models::FilterCreateRequest extend HubSpotSDK::Internal::Type::RequestParameters::Converter include HubSpotSDK::Internal::Type::RequestParameters diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_batch_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_batch_params.rbi index af6f0271..5587ef76 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_batch_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_batch_params.rbi @@ -18,8 +18,8 @@ module HubSpotSDK sig { returns(Integer) } attr_accessor :count - # The ID of the portal installation to filter the webhook journal entries by. This - # is an integer value. + # The ID of the portal installation. This is an integer value that specifies which + # portal's data to access. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -35,8 +35,8 @@ module HubSpotSDK end def self.new( count:, - # The ID of the portal installation to filter the webhook journal entries by. This - # is an integer value. + # The ID of the portal installation. This is an integer value that specifies which + # portal's data to access. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_entry_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_entry_params.rbi index 88ec6eba..4ef3f68c 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_entry_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_journal_entry_params.rbi @@ -15,8 +15,8 @@ module HubSpotSDK ) end - # The ID of the portal installation to filter the journal entries. It is an - # integer. + # The ID of the portal installation to filter the journal entries by. This is an + # integer value. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -30,8 +30,8 @@ module HubSpotSDK ).returns(T.attached_class) end def self.new( - # The ID of the portal installation to filter the journal entries. It is an - # integer. + # The ID of the portal installation to filter the journal entries by. This is an + # integer value. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_batch_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_batch_params.rbi index d509e0d8..2d19a49e 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_batch_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_batch_params.rbi @@ -18,7 +18,8 @@ module HubSpotSDK sig { returns(Integer) } attr_accessor :count - # The ID of the portal where the webhooks are installed. This is an integer value. + # The ID of the portal installation to filter the webhook journal entries. This is + # an optional integer parameter. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -34,7 +35,8 @@ module HubSpotSDK end def self.new( count:, - # The ID of the portal where the webhooks are installed. This is an integer value. + # The ID of the portal installation to filter the webhook journal entries. This is + # an optional integer parameter. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_entry_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_entry_params.rbi index 16f1fe5d..637fb528 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_entry_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_earliest_local_journal_entry_params.rbi @@ -15,8 +15,8 @@ module HubSpotSDK ) end - # The ID of the portal installation to filter the journal entries by. This - # parameter is optional and should be an integer. + # The ID of the portal for which to retrieve the earliest webhook journal entries. + # This parameter is optional and should be an integer. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -30,8 +30,8 @@ module HubSpotSDK ).returns(T.attached_class) end def self.new( - # The ID of the portal installation to filter the journal entries by. This - # parameter is optional and should be an integer. + # The ID of the portal for which to retrieve the earliest webhook journal entries. + # This parameter is optional and should be an integer. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_journal_batch_by_request_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_journal_batch_by_request_params.rbi index 5fe418e3..035536c6 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_journal_batch_by_request_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_journal_batch_by_request_params.rbi @@ -15,7 +15,8 @@ module HubSpotSDK ) end - # The ID of the portal where the webhooks are installed. This is an integer value. + # An integer representing the ID of the portal installation for which the webhooks + # journal data should be retrieved. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -29,7 +30,8 @@ module HubSpotSDK ).returns(T.attached_class) end def self.new( - # The ID of the portal where the webhooks are installed. This is an integer value. + # An integer representing the ID of the portal installation for which the webhooks + # journal data should be retrieved. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_journal_batch_from_offset_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_journal_batch_from_offset_params.rbi index ce66b041..e8d31ddd 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_journal_batch_from_offset_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_journal_batch_from_offset_params.rbi @@ -21,8 +21,7 @@ module HubSpotSDK sig { returns(Integer) } attr_accessor :count - # The ID of the portal installation. This is an integer value used to specify the - # portal context for the request. + # The ID of the portal installation. This is an integer value. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -40,8 +39,7 @@ module HubSpotSDK def self.new( offset:, count:, - # The ID of the portal installation. This is an integer value used to specify the - # portal context for the request. + # The ID of the portal installation. This is an integer value. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_journal_batch_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_journal_batch_params.rbi index 7b90ba7b..ab35a541 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_journal_batch_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_journal_batch_params.rbi @@ -18,8 +18,8 @@ module HubSpotSDK sig { returns(Integer) } attr_accessor :count - # The ID of the portal installation. This is an integer value used to identify the - # specific portal. + # The ID of the portal installation. This is an integer value used to specify the + # portal context for the request. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -35,8 +35,8 @@ module HubSpotSDK end def self.new( count:, - # The ID of the portal installation. This is an integer value used to identify the - # specific portal. + # The ID of the portal installation. This is an integer value used to specify the + # portal context for the request. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_journal_entry_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_journal_entry_params.rbi index 3ef294cc..ab4e2cc4 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_journal_entry_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_journal_entry_params.rbi @@ -15,8 +15,8 @@ module HubSpotSDK ) end - # The ID of the portal installation to filter the journal entries. It is an - # integer value. + # The unique identifier of the portal installation for which to retrieve the + # latest journal entries. This parameter is optional and should be an integer. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -30,8 +30,8 @@ module HubSpotSDK ).returns(T.attached_class) end def self.new( - # The ID of the portal installation to filter the journal entries. It is an - # integer value. + # The unique identifier of the portal installation for which to retrieve the + # latest journal entries. This parameter is optional and should be an integer. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_batch_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_batch_params.rbi index 1156e9e7..a877e1ba 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_batch_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_batch_params.rbi @@ -18,8 +18,8 @@ module HubSpotSDK sig { returns(Integer) } attr_accessor :count - # The ID of the portal installation. This parameter is optional and used to filter - # the journal entries by a specific portal. + # The ID of the portal where the webhook journal is installed. This parameter is + # optional and used to specify the target portal. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -35,8 +35,8 @@ module HubSpotSDK end def self.new( count:, - # The ID of the portal installation. This parameter is optional and used to filter - # the journal entries by a specific portal. + # The ID of the portal where the webhook journal is installed. This parameter is + # optional and used to specify the target portal. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_entry_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_entry_params.rbi index fdcaa58f..5ae35534 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_entry_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_latest_local_journal_entry_params.rbi @@ -15,8 +15,8 @@ module HubSpotSDK ) end - # The ID of the portal for which to retrieve the latest journal entries. This - # parameter is optional and should be an integer. + # The ID of the portal for which to retrieve the latest journal entries. This is + # an integer value. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -30,8 +30,8 @@ module HubSpotSDK ).returns(T.attached_class) end def self.new( - # The ID of the portal for which to retrieve the latest journal entries. This - # parameter is optional and should be an integer. + # The ID of the portal for which to retrieve the latest journal entries. This is + # an integer value. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_by_request_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_by_request_params.rbi index f2c8dd9c..a935210d 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_by_request_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_by_request_params.rbi @@ -16,7 +16,7 @@ module HubSpotSDK end # The ID of the portal where the webhooks are installed. This parameter is - # optional and is used to specify the target portal. + # optional and is used to specify the target portal for the operation. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -31,7 +31,7 @@ module HubSpotSDK end def self.new( # The ID of the portal where the webhooks are installed. This parameter is - # optional and is used to specify the target portal. + # optional and is used to specify the target portal for the operation. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_from_offset_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_from_offset_params.rbi index a8ec1c4f..3f59a9fc 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_from_offset_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_local_journal_batch_from_offset_params.rbi @@ -21,8 +21,8 @@ module HubSpotSDK sig { returns(Integer) } attr_accessor :count - # The ID of the portal installation. This is an integer value used to specify the - # portal context for the request. + # The ID of the portal where the webhooks are installed. This is an optional + # parameter. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -40,8 +40,8 @@ module HubSpotSDK def self.new( offset:, count:, - # The ID of the portal installation. This is an integer value used to specify the - # portal context for the request. + # The ID of the portal where the webhooks are installed. This is an optional + # parameter. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_next_journal_entries_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_next_journal_entries_params.rbi index 460f0e30..56088a1e 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_next_journal_entries_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_next_journal_entries_params.rbi @@ -18,8 +18,7 @@ module HubSpotSDK sig { returns(String) } attr_accessor :offset - # The ID of the portal installation to filter the webhook journal entries. This is - # an optional parameter. + # The ID of the portal where the webhooks are installed. This is an integer value. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -35,8 +34,7 @@ module HubSpotSDK end def self.new( offset:, - # The ID of the portal installation to filter the webhook journal entries. This is - # an optional parameter. + # The ID of the portal where the webhooks are installed. This is an integer value. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_get_next_local_journal_entries_params.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_get_next_local_journal_entries_params.rbi index 56f971f4..ddadd560 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_get_next_local_journal_entries_params.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_get_next_local_journal_entries_params.rbi @@ -18,7 +18,8 @@ module HubSpotSDK sig { returns(String) } attr_accessor :offset - # The ID of the portal where the webhook is installed. This is an integer value. + # The ID of the portal installation to filter the webhook journal entries. This is + # an integer value. sig { returns(T.nilable(Integer)) } attr_reader :install_portal_id @@ -34,7 +35,8 @@ module HubSpotSDK end def self.new( offset:, - # The ID of the portal where the webhook is installed. This is an integer value. + # The ID of the portal installation to filter the webhook journal entries. This is + # an integer value. install_portal_id: nil, request_options: {} ) diff --git a/rbi/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rbi b/rbi/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rbi index ee95c71b..ffb85765 100644 --- a/rbi/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rbi +++ b/rbi/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rbi @@ -5,9 +5,7 @@ module HubSpotSDK module Webhooks WebhookListSubscriptionFiltersResponse = T.let( - HubSpotSDK::Internal::Type::ArrayOf[ - HubSpotSDK::Webhooks::FilterResponse - ], + HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::FilterResponse], HubSpotSDK::Internal::Type::Converter ) end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbi b/rbi/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbi new file mode 100644 index 00000000..8dadb7e1 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbi @@ -0,0 +1,50 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class CollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging, + HubSpotSDK::Internal::AnyHash + ) + end + + # An array of subscription responses, where each item contains details about a + # specific subscription. Each item follows the SubscriptionResponse schema. + sig do + returns(T::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse]) + end + attr_accessor :results + + sig do + params( + results: + T::Array[ + HubSpotSDK::WebhooksJournal::SubscriptionResponse::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # An array of subscription responses, where each item contains details about a + # specific subscription. Each item follows the SubscriptionResponse schema. + results: + ) + end + + sig do + override.returns( + { + results: + T::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rbi new file mode 100644 index 00000000..d9056fc6 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rbi @@ -0,0 +1,61 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + class BatchGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::Journal::BatchGetEarliestParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :count + + # The ID of the portal installation. This is an integer value that specifies which + # portal's data to access. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + count:, + # The ID of the portal installation. This is an integer value that specifies which + # portal's data to access. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rbi new file mode 100644 index 00000000..bd7bc7ec --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rbi @@ -0,0 +1,65 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + class BatchGetFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::Journal::BatchGetFromOffsetParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :offset + + sig { returns(Integer) } + attr_accessor :count + + # The ID of the portal installation. This is an integer value. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + offset: String, + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + offset:, + count:, + # The ID of the portal installation. This is an integer value. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + offset: String, + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rbi new file mode 100644 index 00000000..7636762d --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rbi @@ -0,0 +1,61 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + class BatchGetLatestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::Journal::BatchGetLatestParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :count + + # The ID of the portal installation. This is an integer value used to specify the + # portal context for the request. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + count:, + # The ID of the portal installation. This is an integer value used to specify the + # portal context for the request. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rbi new file mode 100644 index 00000000..e3bbe5bd --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rbi @@ -0,0 +1,55 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + class BatchGetParams < HubSpotSDK::Models::BatchInputString + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::Journal::BatchGetParams, + HubSpotSDK::Internal::AnyHash + ) + end + + # An integer representing the ID of the portal installation for which the webhooks + # journal data should be retrieved. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # An integer representing the ID of the portal installation for which the webhooks + # journal data should be retrieved. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rbi new file mode 100644 index 00000000..dd9edbd1 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rbi @@ -0,0 +1,53 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class JournalGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalGetEarliestParams, + HubSpotSDK::Internal::AnyHash + ) + end + + # The ID of the portal installation to filter the journal entries by. This is an + # integer value. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # The ID of the portal installation to filter the journal entries by. This is an + # integer value. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rbi new file mode 100644 index 00000000..b981233a --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rbi @@ -0,0 +1,57 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class JournalGetNextFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalGetNextFromOffsetParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :offset + + # The ID of the portal where the webhooks are installed. This is an integer value. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + offset:, + # The ID of the portal where the webhooks are installed. This is an integer value. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rbi new file mode 100644 index 00000000..49b18ee8 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rbi @@ -0,0 +1,40 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class JournalGetStatusParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalGetStatusParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :status_id + + sig do + params( + status_id: String, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(status_id:, request_options: {}) + end + + sig do + override.returns( + { status_id: String, request_options: HubSpotSDK::RequestOptions } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rbi new file mode 100644 index 00000000..2a67a967 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rbi @@ -0,0 +1,61 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module JournalLocal + class BatchGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalLocal::BatchGetEarliestParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :count + + # The ID of the portal installation to filter the webhook journal entries. This is + # an optional integer parameter. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + count:, + # The ID of the portal installation to filter the webhook journal entries. This is + # an optional integer parameter. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rbi new file mode 100644 index 00000000..5f59b841 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rbi @@ -0,0 +1,67 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module JournalLocal + class BatchGetFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalLocal::BatchGetFromOffsetParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :offset + + sig { returns(Integer) } + attr_accessor :count + + # The ID of the portal where the webhooks are installed. This is an optional + # parameter. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + offset: String, + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + offset:, + count:, + # The ID of the portal where the webhooks are installed. This is an optional + # parameter. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + offset: String, + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rbi new file mode 100644 index 00000000..808d3811 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rbi @@ -0,0 +1,55 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module JournalLocal + class BatchGetParams < HubSpotSDK::Models::BatchInputString + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalLocal::BatchGetParams, + HubSpotSDK::Internal::AnyHash + ) + end + + # The ID of the portal where the webhooks are installed. This parameter is + # optional and is used to specify the target portal for the operation. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # The ID of the portal where the webhooks are installed. This parameter is + # optional and is used to specify the target portal for the operation. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rbi new file mode 100644 index 00000000..083b0e2d --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rbi @@ -0,0 +1,53 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class JournalLocalGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalLocalGetEarliestParams, + HubSpotSDK::Internal::AnyHash + ) + end + + # The ID of the portal for which to retrieve the earliest webhook journal entries. + # This parameter is optional and should be an integer. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # The ID of the portal for which to retrieve the earliest webhook journal entries. + # This parameter is optional and should be an integer. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rbi new file mode 100644 index 00000000..a3b38b04 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rbi @@ -0,0 +1,53 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class JournalLocalGetLatestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalLocalGetLatestParams, + HubSpotSDK::Internal::AnyHash + ) + end + + # The unique identifier of the portal installation for which to retrieve the + # latest journal entries. This parameter is optional and should be an integer. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # The unique identifier of the portal installation for which to retrieve the + # latest journal entries. This parameter is optional and should be an integer. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rbi new file mode 100644 index 00000000..c63d95ee --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rbi @@ -0,0 +1,59 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class JournalLocalGetNextFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalLocalGetNextFromOffsetParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :offset + + # The ID of the portal installation to filter the webhook journal entries. This is + # an integer value. + sig { returns(T.nilable(Integer)) } + attr_reader :install_portal_id + + sig { params(install_portal_id: Integer).void } + attr_writer :install_portal_id + + sig do + params( + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + offset:, + # The ID of the portal installation to filter the webhook journal entries. This is + # an integer value. + install_portal_id: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rbi new file mode 100644 index 00000000..81d39fed --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rbi @@ -0,0 +1,40 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class JournalLocalGetStatusParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::JournalLocalGetStatusParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :status_id + + sig do + params( + status_id: String, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(status_id:, request_options: {}) + end + + sig do + override.returns( + { status_id: String, request_options: HubSpotSDK::RequestOptions } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rbi new file mode 100644 index 00000000..53c6f2d7 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rbi @@ -0,0 +1,34 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class SnapshotCreateParams < HubSpotSDK::Models::CrmObjectSnapshotBatchRequest + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::SnapshotCreateParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) + end + + sig do + override.returns({ request_options: HubSpotSDK::RequestOptions }) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscription_create_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscription_create_params.rbi new file mode 100644 index 00000000..ea0ec524 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscription_create_params.rbi @@ -0,0 +1,34 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class SubscriptionCreateParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::SubscriptionCreateParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) + end + + sig do + override.returns({ request_options: HubSpotSDK::RequestOptions }) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rbi new file mode 100644 index 00000000..fea31bd4 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rbi @@ -0,0 +1,40 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class SubscriptionDeleteForPortalParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::SubscriptionDeleteForPortalParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :portal_id + + sig do + params( + portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(portal_id:, request_options: {}) + end + + sig do + override.returns( + { portal_id: Integer, request_options: HubSpotSDK::RequestOptions } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rbi new file mode 100644 index 00000000..78da11f5 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rbi @@ -0,0 +1,43 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class SubscriptionDeleteParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::SubscriptionDeleteParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :subscription_id + + sig do + params( + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(subscription_id:, request_options: {}) + end + + sig do + override.returns( + { + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscription_get_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscription_get_params.rbi new file mode 100644 index 00000000..8c5cb8d3 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscription_get_params.rbi @@ -0,0 +1,43 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class SubscriptionGetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::SubscriptionGetParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :subscription_id + + sig do + params( + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(subscription_id:, request_options: {}) + end + + sig do + override.returns( + { + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscription_list_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscription_list_params.rbi new file mode 100644 index 00000000..259a3d7a --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscription_list_params.rbi @@ -0,0 +1,34 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class SubscriptionListParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::SubscriptionListParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) + end + + sig do + override.returns({ request_options: HubSpotSDK::RequestOptions }) + end + def to_hash + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscription_response.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscription_response.rbi new file mode 100644 index 00000000..a1de15ad --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscription_response.rbi @@ -0,0 +1,379 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::SubscriptionResponse, + HubSpotSDK::Internal::AnyHash + ) + end + + # The unique identifier for the subscription, represented as an integer. + sig { returns(Integer) } + attr_accessor :id + + # An array of actions associated with the subscription. Valid actions include + # 'CREATE', 'UPDATE', 'DELETE', 'MERGE', 'RESTORE', 'ASSOCIATION_ADDED', + # 'ASSOCIATION_REMOVED', 'SNAPSHOT', 'APP_INSTALL', 'APP_UNINSTALL', + # 'ADDED_TO_LIST', 'REMOVED_FROM_LIST', and 'GDPR_DELETE'. + sig do + returns( + T::Array[ + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ] + ) + end + attr_accessor :actions + + # The unique identifier for the app associated with the subscription, represented + # as an integer. + sig { returns(Integer) } + attr_accessor :app_id + + # The date and time when the subscription was created, in ISO 8601 format. + sig { returns(Time) } + attr_accessor :created_at + + # The identifier for the type of object associated with the subscription, + # represented as a string. + sig { returns(String) } + attr_accessor :object_type_id + + # The type of subscription, indicating the nature of events it pertains to. Valid + # values include 'OBJECT', 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', + # 'LIST_MEMBERSHIP', and 'GDPR_PRIVACY_DELETION'. + sig do + returns( + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + ) + end + attr_accessor :subscription_type + + # The date and time when the subscription was last updated, in ISO 8601 format. + sig { returns(Time) } + attr_accessor :updated_at + + # An object containing overrides for actions, where each key is an action and the + # value is an ActionOverrideRequest object. + sig do + returns(T.nilable(T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest])) + end + attr_reader :action_overrides + + sig do + params( + action_overrides: + T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest::OrHash] + ).void + end + attr_writer :action_overrides + + # An array of strings representing the IDs of associated object types. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :associated_object_type_ids + + sig { params(associated_object_type_ids: T::Array[String]).void } + attr_writer :associated_object_type_ids + + # The unique identifier of the user who created the subscription, represented as + # an integer. + sig { returns(T.nilable(Integer)) } + attr_reader :created_by + + sig { params(created_by: Integer).void } + attr_writer :created_by + + # The date and time when the subscription was deleted, in ISO 8601 format, if + # applicable. + sig { returns(T.nilable(Time)) } + attr_reader :deleted_at + + sig { params(deleted_at: Time).void } + attr_writer :deleted_at + + # An array of integers representing the IDs of lists associated with the + # subscription. + sig { returns(T.nilable(T::Array[Integer])) } + attr_reader :list_ids + + sig { params(list_ids: T::Array[Integer]).void } + attr_writer :list_ids + + # An array of integers representing the IDs of objects associated with the + # subscription. + sig { returns(T.nilable(T::Array[Integer])) } + attr_reader :object_ids + + sig { params(object_ids: T::Array[Integer]).void } + attr_writer :object_ids + + # The unique identifier for the portal associated with the subscription, + # represented as an integer. + sig { returns(T.nilable(Integer)) } + attr_reader :portal_id + + sig { params(portal_id: Integer).void } + attr_writer :portal_id + + # An array of strings representing the properties associated with the + # subscription. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :properties + + sig { params(properties: T::Array[String]).void } + attr_writer :properties + + sig do + params( + id: Integer, + actions: + T::Array[ + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::OrSymbol + ], + app_id: Integer, + created_at: Time, + object_type_id: String, + subscription_type: + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::OrSymbol, + updated_at: Time, + action_overrides: + T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest::OrHash], + associated_object_type_ids: T::Array[String], + created_by: Integer, + deleted_at: Time, + list_ids: T::Array[Integer], + object_ids: T::Array[Integer], + portal_id: Integer, + properties: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + # The unique identifier for the subscription, represented as an integer. + id:, + # An array of actions associated with the subscription. Valid actions include + # 'CREATE', 'UPDATE', 'DELETE', 'MERGE', 'RESTORE', 'ASSOCIATION_ADDED', + # 'ASSOCIATION_REMOVED', 'SNAPSHOT', 'APP_INSTALL', 'APP_UNINSTALL', + # 'ADDED_TO_LIST', 'REMOVED_FROM_LIST', and 'GDPR_DELETE'. + actions:, + # The unique identifier for the app associated with the subscription, represented + # as an integer. + app_id:, + # The date and time when the subscription was created, in ISO 8601 format. + created_at:, + # The identifier for the type of object associated with the subscription, + # represented as a string. + object_type_id:, + # The type of subscription, indicating the nature of events it pertains to. Valid + # values include 'OBJECT', 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', + # 'LIST_MEMBERSHIP', and 'GDPR_PRIVACY_DELETION'. + subscription_type:, + # The date and time when the subscription was last updated, in ISO 8601 format. + updated_at:, + # An object containing overrides for actions, where each key is an action and the + # value is an ActionOverrideRequest object. + action_overrides: nil, + # An array of strings representing the IDs of associated object types. + associated_object_type_ids: nil, + # The unique identifier of the user who created the subscription, represented as + # an integer. + created_by: nil, + # The date and time when the subscription was deleted, in ISO 8601 format, if + # applicable. + deleted_at: nil, + # An array of integers representing the IDs of lists associated with the + # subscription. + list_ids: nil, + # An array of integers representing the IDs of objects associated with the + # subscription. + object_ids: nil, + # The unique identifier for the portal associated with the subscription, + # represented as an integer. + portal_id: nil, + # An array of strings representing the properties associated with the + # subscription. + properties: nil + ) + end + + sig do + override.returns( + { + id: Integer, + actions: + T::Array[ + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ], + app_id: Integer, + created_at: Time, + object_type_id: String, + subscription_type: + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol, + updated_at: Time, + action_overrides: + T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], + associated_object_type_ids: T::Array[String], + created_by: Integer, + deleted_at: Time, + list_ids: T::Array[Integer], + object_ids: T::Array[Integer], + portal_id: Integer, + properties: T::Array[String] + } + ) + end + def to_hash + end + + module Action + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CREATE = + T.let( + :CREATE, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + UPDATE = + T.let( + :UPDATE, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + DELETE = + T.let( + :DELETE, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + MERGE = + T.let( + :MERGE, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + RESTORE = + T.let( + :RESTORE, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + ASSOCIATION_ADDED = + T.let( + :ASSOCIATION_ADDED, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + ASSOCIATION_REMOVED = + T.let( + :ASSOCIATION_REMOVED, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + SNAPSHOT = + T.let( + :SNAPSHOT, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + APP_INSTALL = + T.let( + :APP_INSTALL, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + APP_UNINSTALL = + T.let( + :APP_UNINSTALL, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + ADDED_TO_LIST = + T.let( + :ADDED_TO_LIST, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + REMOVED_FROM_LIST = + T.let( + :REMOVED_FROM_LIST, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + GDPR_DELETE = + T.let( + :GDPR_DELETE, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + ] + ) + end + def self.values + end + end + + # The type of subscription, indicating the nature of events it pertains to. Valid + # values include 'OBJECT', 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', + # 'LIST_MEMBERSHIP', and 'GDPR_PRIVACY_DELETION'. + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + APP_LIFECYCLE_EVENT = + T.let( + :APP_LIFECYCLE_EVENT, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + ) + ASSOCIATION = + T.let( + :ASSOCIATION, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + ) + EVENT = + T.let( + :EVENT, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + ) + GDPR_PRIVACY_DELETION = + T.let( + :GDPR_PRIVACY_DELETION, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + ) + LIST_MEMBERSHIP = + T.let( + :LIST_MEMBERSHIP, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + ) + OBJECT = + T.let( + :OBJECT, + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rbi new file mode 100644 index 00000000..6a6ad74e --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rbi @@ -0,0 +1,36 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + class FilterCreateParams < HubSpotSDK::Models::FilterCreateRequest + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::Subscriptions::FilterCreateParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig do + params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) + end + + sig do + override.returns({ request_options: HubSpotSDK::RequestOptions }) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rbi new file mode 100644 index 00000000..881000f1 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rbi @@ -0,0 +1,45 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + class FilterDeleteParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::Subscriptions::FilterDeleteParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :filter_id + + sig do + params( + filter_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(filter_id:, request_options: {}) + end + + sig do + override.returns( + { + filter_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rbi new file mode 100644 index 00000000..4c9ca45d --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rbi @@ -0,0 +1,45 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + class FilterGetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::Subscriptions::FilterGetParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :filter_id + + sig do + params( + filter_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(filter_id:, request_options: {}) + end + + sig do + override.returns( + { + filter_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rbi new file mode 100644 index 00000000..84669a7b --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rbi @@ -0,0 +1,45 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + class FilterListParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + HubSpotSDK::WebhooksJournal::Subscriptions::FilterListParams, + HubSpotSDK::Internal::AnyHash + ) + end + + sig { returns(Integer) } + attr_accessor :subscription_id + + sig do + params( + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(subscription_id:, request_options: {}) + end + + sig do + override.returns( + { + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + ) + end + def to_hash + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rbi b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rbi new file mode 100644 index 00000000..728ffb13 --- /dev/null +++ b/rbi/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rbi @@ -0,0 +1,15 @@ +# typed: strong + +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + FilterListResponse = + T.let( + HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::FilterResponse], + HubSpotSDK::Internal::Type::Converter + ) + end + end + end +end diff --git a/rbi/hubspot_sdk/resources/auth/oauth.rbi b/rbi/hubspot_sdk/resources/auth/oauth.rbi index fbe0fe06..809c78c8 100644 --- a/rbi/hubspot_sdk/resources/auth/oauth.rbi +++ b/rbi/hubspot_sdk/resources/auth/oauth.rbi @@ -17,7 +17,7 @@ module HubSpotSDK refresh_token: String, scope: String, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(StringIO) + ).returns(HubSpotSDK::Auth::TokenResponseIf::Variants) end def create_token( client_id: nil, diff --git a/rbi/hubspot_sdk/resources/cms/url_redirects.rbi b/rbi/hubspot_sdk/resources/cms/url_redirects.rbi index b9adebc0..17c3484c 100644 --- a/rbi/hubspot_sdk/resources/cms/url_redirects.rbi +++ b/rbi/hubspot_sdk/resources/cms/url_redirects.rbi @@ -163,6 +163,71 @@ module HubSpotSDK def delete(url_redirect_id, request_options: {}) end + sig do + params( + id: String, + created: Time, + destination: String, + is_match_full_url: T::Boolean, + is_match_query_string: T::Boolean, + is_only_after_not_found: T::Boolean, + is_pattern: T::Boolean, + is_protocol_agnostic: T::Boolean, + is_trailing_slash_optional: T::Boolean, + precedence: Integer, + redirect_style: Integer, + route_prefix: String, + updated: Time, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(StringIO) + end + def create_url_mapping( + # The unique ID of this URL redirect. + id:, + # The date and time when the URL mapping was initially created. + created:, + # The destination URL, where the target URL should be redirected if it matches the + # `routePrefix`. + destination:, + # Whether the `routePrefix` should match on the entire URL, including the domain. + is_match_full_url:, + # Whether the `routePrefix` should match on the entire URL path, including the + # query string. + is_match_query_string:, + # Whether the URL redirect mapping should apply only if a live page on the URL + # isn't found. If False, the URL redirect mapping will take precedence over any + # existing page. + is_only_after_not_found:, + # Whether the `routePrefix` should match based on pattern. + is_pattern:, + # Whether the `routePrefix` should match both HTTP and HTTPS protocols. + is_protocol_agnostic:, + # Whether a trailing slash will be ignored. + is_trailing_slash_optional:, + # Used to prioritize URL redirection. If a given URL matches more than one + # redirect, the one with the **lower** precedence will be used. + precedence:, + # The type of redirect to create. Options include: 301 (permanent), 302 + # (temporary), or 305 (proxy). Find more details + # [here](https://knowledge.hubspot.com/cos-general/how-to-redirect-a-hubspot-page). + redirect_style:, + # The target incoming URL, path, or pattern to match for redirection. + route_prefix:, + # The date and time when the URL mapping was last modified. + updated:, + request_options: {} + ) + end + + sig do + params( + id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).void + end + def delete_url_mapping(id, request_options: {}) + end + # Returns the details for a single existing URL redirect by ID. sig do params( @@ -173,6 +238,23 @@ module HubSpotSDK def get(url_redirect_id, request_options: {}) end + sig do + params( + id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(StringIO) + end + def get_url_mapping(id, request_options: {}) + end + + sig do + params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( + StringIO + ) + end + def list_url_mappings(request_options: {}) + end + # @api private sig { params(client: HubSpotSDK::Client).returns(T.attached_class) } def self.new(client:) diff --git a/rbi/hubspot_sdk/resources/conversations/visitor_identification.rbi b/rbi/hubspot_sdk/resources/conversations/visitor_identification.rbi index 4da11904..be9ad5a5 100644 --- a/rbi/hubspot_sdk/resources/conversations/visitor_identification.rbi +++ b/rbi/hubspot_sdk/resources/conversations/visitor_identification.rbi @@ -12,6 +12,7 @@ module HubSpotSDK sig do params( email: String, + hs_customer_agent_context: T::Hash[Symbol, String], first_name: String, last_name: String, request_options: HubSpotSDK::RequestOptions::OrHash @@ -20,6 +21,7 @@ module HubSpotSDK def generate_token( # The email of the visitor that you wish to identify email:, + hs_customer_agent_context:, # The first name of the visitor that you wish to identify. This value will only be # set in HubSpot for new contacts and existing contacts where first name is # unknown. Optional. diff --git a/rbi/hubspot_sdk/resources/crm/lists.rbi b/rbi/hubspot_sdk/resources/crm/lists.rbi index 68f75b38..8e7612d2 100644 --- a/rbi/hubspot_sdk/resources/crm/lists.rbi +++ b/rbi/hubspot_sdk/resources/crm/lists.rbi @@ -18,7 +18,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch::OrHash, HubSpotSDK::Crm::PublicRestrictedFilterBranch::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::OrHash, HubSpotSDK::Crm::PublicAssociationFilterBranch::OrHash ), list_folder_id: Integer, @@ -412,7 +411,6 @@ module HubSpotSDK HubSpotSDK::Crm::PublicNotAnyFilterBranch::OrHash, HubSpotSDK::Crm::PublicRestrictedFilterBranch::OrHash, HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch::OrHash, - HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch::OrHash, HubSpotSDK::Crm::PublicAssociationFilterBranch::OrHash ), enroll_objects_in_workflows: T::Boolean, diff --git a/rbi/hubspot_sdk/resources/webhooks.rbi b/rbi/hubspot_sdk/resources/webhooks.rbi index 7d0a634e..b0121319 100644 --- a/rbi/hubspot_sdk/resources/webhooks.rbi +++ b/rbi/hubspot_sdk/resources/webhooks.rbi @@ -24,17 +24,16 @@ module HubSpotSDK ) end - # Create a batch of CRM object snapshots for the specified portal. This endpoint - # allows you to capture the state of CRM objects at a specific point in time, - # which can be useful for auditing or historical analysis. The request requires a - # list of CRM object snapshot requests, each specifying the portal ID, object ID, - # object type ID, and properties to include in the snapshot. + # Create a batch of CRM object snapshots in HubSpot. This endpoint is used to + # capture the current state of specified CRM objects for later reference or + # analysis. It requires a JSON payload containing the details of the CRM objects + # to snapshot. This operation is exempt from daily and ten-secondly rate limits. sig do params( snapshot_requests: - T::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest::OrHash], + T::Array[HubSpotSDK::CrmObjectSnapshotRequest::OrHash], request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::CrmObjectSnapshotBatchResponse) + ).returns(HubSpotSDK::CrmObjectSnapshotBatchResponse) end def create_crm_snapshots( # An array of CrmObjectSnapshotRequest objects, each representing a request to @@ -78,23 +77,24 @@ module HubSpotSDK ) end - # Create a new webhook subscription for the specified portal in the HubSpot - # account. This endpoint allows you to define the subscription details, including - # the types of events you want to subscribe to. The request body must include the - # necessary subscription information as defined by the SubscriptionUpsertRequest - # schema. + # Create a new subscription in the Webhooks Journal for the specified version. + # This endpoint allows you to define the subscription details by providing the + # necessary information in the request body. It supports various types of + # subscriptions, including object, association, event, app lifecycle event, list + # membership, and GDPR privacy deletion. Ensure that all required fields are + # included in the request to successfully create a subscription. sig do params( subscription_upsert_request: T.any( - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest::OrHash, - HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest::OrHash, - HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::OrHash, - HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest::OrHash, - HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::OrHash + HubSpotSDK::ObjectSubscriptionUpsertRequest::OrHash, + HubSpotSDK::AssociationSubscriptionUpsertRequest::OrHash, + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest::OrHash, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::OrHash, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::OrHash ), request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::SubscriptionResponse1) + ).returns(HubSpotSDK::WebhooksJournal::SubscriptionResponse) end def create_journal_subscription( subscription_upsert_request:, @@ -102,16 +102,16 @@ module HubSpotSDK ) end - # Create a new filter for a webhook subscription in your HubSpot account. This - # endpoint allows you to define specific conditions that a webhook event must meet - # to trigger the subscription. It is useful for managing and customizing the - # behavior of webhook subscriptions based on specific criteria. + # Create a new filter for a specific webhook subscription in the HubSpot account. + # This endpoint allows you to define conditions that determine when a webhook + # should be triggered. The filter is associated with a subscription identified by + # its ID, and the request must include the filter details. sig do params( - filter: HubSpotSDK::Webhooks::Filter::OrHash, + filter: HubSpotSDK::Filter::OrHash, subscription_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::FilterCreateResponse) + ).returns(HubSpotSDK::FilterCreateResponse) end def create_subscription_filter( # Defines a single condition for searching CRM objects, specifying the property to @@ -144,7 +144,7 @@ module HubSpotSDK # Delete a specific webhook journal subscription using its unique identifier. This # operation is useful for managing and cleaning up subscriptions that are no - # longer needed or relevant. + # longer needed in your HubSpot account. sig do params( subscription_id: Integer, @@ -152,15 +152,17 @@ module HubSpotSDK ).void end def delete_journal_subscription( - # The unique identifier of the subscription to delete. + # The unique identifier of the subscription to delete. It must be provided as an + # integer. subscription_id, request_options: {} ) end # Delete a webhook journal subscription for a specific portal. This operation - # removes the subscription associated with the given portalId, and no content is - # returned upon successful deletion. + # removes the subscription associated with the given portalId, ensuring that no + # further webhook events are sent for this portal. Use this endpoint to manage and + # clean up subscriptions that are no longer needed. sig do params( portal_id: Integer, @@ -168,8 +170,8 @@ module HubSpotSDK ).void end def delete_journal_subscription_for_portal( - # The unique identifier of the portal whose webhook journal subscription is to be - # deleted. + # The unique identifier of the portal for which the webhook journal subscription + # is to be deleted. portal_id, request_options: {} ) @@ -190,10 +192,9 @@ module HubSpotSDK ) end - # Delete a specific filter associated with a webhook journal subscription. This - # operation is useful for managing and cleaning up filters that are no longer - # needed in your subscription setup. The endpoint requires the unique identifier - # of the filter to be deleted. + # Remove a specific filter from the webhooks journal subscriptions. This operation + # is useful for managing and cleaning up filters that are no longer needed. Once + # deleted, the filter cannot be recovered. sig do params( filter_id: Integer, @@ -207,30 +208,31 @@ module HubSpotSDK ) end - # Retrieve the earliest batch of webhook journal entries up to the specified - # count. This endpoint is useful for fetching historical webhook data in batches, - # allowing you to process or analyze the earliest entries first. + # Retrieve the earliest batch of webhook journal entries for a specified count. + # This endpoint is useful for accessing historical webhook data in batches, + # allowing you to process or analyze older entries. The number of entries + # retrieved is determined by the count parameter. sig do params( count: Integer, install_portal_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse) + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) end def get_earliest_journal_batch( - # The maximum number of journal entries to retrieve in the batch. This must be an - # integer with a minimum value of 1. + # The number of earliest journal entries to retrieve. This must be an integer with + # a minimum value of 1. count, - # The ID of the portal installation to filter the webhook journal entries by. This - # is an integer value. + # The ID of the portal installation. This is an integer value that specifies which + # portal's data to access. install_portal_id: nil, request_options: {} ) end - # Retrieve the earliest entry from the webhooks journal for the specified version. - # This endpoint is useful for accessing the oldest records available in the - # journal, which can be helpful for auditing or historical data analysis. + # Retrieve the earliest entry from the webhooks journal for the specified portal. + # This endpoint is useful for accessing the first recorded webhook event in the + # journal, which can be helpful for auditing or debugging purposes. sig do params( install_portal_id: Integer, @@ -238,36 +240,38 @@ module HubSpotSDK ).returns(StringIO) end def get_earliest_journal_entry( - # The ID of the portal installation to filter the journal entries. It is an - # integer. + # The ID of the portal installation to filter the journal entries by. This is an + # integer value. install_portal_id: nil, request_options: {} ) end - # Retrieve the earliest batch of webhook journal entries based on the specified - # count. This endpoint is useful for fetching a specific number of the earliest - # entries in the webhook journal for analysis or processing. + # Retrieve the earliest batch of webhook journal entries. This endpoint is useful + # for accessing the oldest available data in the webhook journal, allowing users + # to process or analyze historical webhook events. The number of entries to fetch + # is specified by the 'count' path parameter. sig do params( count: Integer, install_portal_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse) + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) end def get_earliest_local_journal_batch( - # The number of earliest entries to retrieve from the webhook journal. Must be an - # integer with a minimum value of 1. + # The number of earliest webhook journal entries to retrieve. This is a required + # integer parameter with a minimum value of 1. count, - # The ID of the portal where the webhooks are installed. This is an integer value. + # The ID of the portal installation to filter the webhook journal entries. This is + # an optional integer parameter. install_portal_id: nil, request_options: {} ) end - # Retrieve the earliest entry from the webhooks journal for the specified portal. - # This endpoint is useful for accessing the oldest records in the journal, which - # can be helpful for auditing or tracking purposes. + # Retrieve the earliest webhook journal entries for the specified portal. This + # endpoint can be used to access the oldest records available in the webhook + # journal, which may be useful for auditing or historical analysis. sig do params( install_portal_id: Integer, @@ -275,8 +279,8 @@ module HubSpotSDK ).returns(StringIO) end def get_earliest_local_journal_entry( - # The ID of the portal installation to filter the journal entries by. This - # parameter is optional and should be an integer. + # The ID of the portal for which to retrieve the earliest webhook journal entries. + # This parameter is optional and should be an integer. install_portal_id: nil, request_options: {} ) @@ -299,60 +303,61 @@ module HubSpotSDK ) end - # Perform a batch read operation on the webhooks journal for the specified date. - # This endpoint allows you to retrieve multiple entries from the webhooks journal - # in a single request, which can be useful for processing large amounts of data - # efficiently. + # Execute a batch read operation on the webhooks journal for the specified date, + # 2026-03. This endpoint allows you to retrieve multiple entries from the webhooks + # journal in a single request, which can be useful for processing large amounts of + # data efficiently. Ensure that the request body is provided in the required + # format. sig do params( inputs: T::Array[String], install_portal_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse) + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) end def get_journal_batch_by_request( # Body param: Strings to input. inputs:, - # Query param: The ID of the portal where the webhooks are installed. This is an - # integer value. + # Query param: An integer representing the ID of the portal installation for which + # the webhooks journal data should be retrieved. install_portal_id: nil, request_options: {} ) end # Retrieve a batch of webhook journal entries starting from a specified offset. - # This endpoint allows you to fetch a specified number of entries, making it - # useful for paginating through large sets of webhook journal data. + # This endpoint allows you to fetch a defined number of entries, which can be + # useful for processing large datasets in manageable chunks. sig do params( count: Integer, offset: String, install_portal_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse) + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) end def get_journal_batch_from_offset( - # Path param: The number of journal entries to fetch in the batch. This is an - # integer value with a minimum of 1. + # Path param: The number of journal entries to retrieve. This must be an integer + # with a minimum value of 1. count, - # Path param: The starting point for fetching the next batch of journal entries. - # This is a string value that indicates the offset position. + # Path param: The starting point for fetching the journal entries. This is a + # string value. offset:, - # Query param: The ID of the portal installation. This is an integer value used to - # specify the portal context for the request. + # Query param: The ID of the portal installation. This is an integer value. install_portal_id: nil, request_options: {} ) end - # Retrieve the status of a specific webhook journal entry using its status ID. - # This endpoint is useful for checking the current state of a webhook process, - # such as whether it is pending, in progress, completed, failed, or expired. + # Retrieve the status of a specific webhook journal entry using its unique status + # ID. This endpoint provides detailed information about the status, including + # whether it is pending, in progress, completed, failed, or expired. It is useful + # for monitoring and managing the state of webhook journal entries. sig do params( status_id: String, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::SnapshotStatusResponse) + ).returns(HubSpotSDK::SnapshotStatusResponse) end def get_journal_status( # The unique identifier (UUID) of the status to retrieve. @@ -363,45 +368,45 @@ module HubSpotSDK # Retrieve details of a specific webhook subscription using its unique identifier. # This endpoint is useful for obtaining information about a particular - # subscription's configuration and status within the HubSpot account. + # subscription, such as its actions, object type, and associated properties. sig do params( subscription_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::SubscriptionResponse1) + ).returns(HubSpotSDK::WebhooksJournal::SubscriptionResponse) end def get_journal_subscription( - # The unique identifier of the subscription to retrieve. It must be an integer. + # The unique identifier of the subscription to retrieve. subscription_id, request_options: {} ) end - # Retrieve the latest batch of webhook journal entries. This endpoint allows you - # to specify the number of entries to fetch, providing a way to access recent - # webhook activity within your HubSpot account. + # Retrieve the latest batch of webhook journal entries up to the specified count. + # This endpoint is useful for fetching recent webhook data for analysis or + # processing. The count parameter determines the maximum number of entries to + # return. sig do params( count: Integer, install_portal_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse) + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) end def get_latest_journal_batch( - # The number of journal entries to retrieve. This is a required integer parameter - # with a minimum value of 1. + # The maximum number of journal entries to retrieve. This is a required integer + # parameter with a minimum value of 1. count, - # The ID of the portal installation. This is an integer value used to identify the - # specific portal. + # The ID of the portal installation. This is an integer value used to specify the + # portal context for the request. install_portal_id: nil, request_options: {} ) end # Retrieve the latest entries from the webhooks journal for the specified portal. - # This endpoint is useful for accessing the most recent webhook events processed - # by your HubSpot account. It allows you to filter the results by the portal ID to - # ensure you are retrieving data relevant to a specific installation. + # This endpoint is useful for accessing the most recent webhook events and their + # statuses, allowing you to monitor and debug webhook activity effectively. sig do params( install_portal_id: Integer, @@ -409,29 +414,29 @@ module HubSpotSDK ).returns(StringIO) end def get_latest_journal_entry( - # The ID of the portal installation to filter the journal entries. It is an - # integer value. + # The unique identifier of the portal installation for which to retrieve the + # latest journal entries. This parameter is optional and should be an integer. install_portal_id: nil, request_options: {} ) end - # Retrieve the latest batch of webhook journal entries. This endpoint is useful - # for accessing the most recent data entries processed by the webhook journal. It - # requires specifying the number of entries to retrieve. + # Retrieve the latest batch of webhook journal entries. This endpoint allows you + # to specify the number of entries to fetch, providing a way to access the most + # recent webhook events processed by your HubSpot account. sig do params( count: Integer, install_portal_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse) + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) end def get_latest_local_journal_batch( # The number of journal entries to retrieve. Must be an integer with a minimum # value of 1. count, - # The ID of the portal installation. This parameter is optional and used to filter - # the journal entries by a specific portal. + # The ID of the portal where the webhook journal is installed. This parameter is + # optional and used to specify the target portal. install_portal_id: nil, request_options: {} ) @@ -439,7 +444,8 @@ module HubSpotSDK # Retrieve the latest entries from the webhooks journal for the specified portal. # This endpoint is useful for accessing the most recent webhook events that have - # been logged, allowing you to process or analyze them as needed. + # been logged, allowing for real-time monitoring or debugging of webhook + # activities. sig do params( install_portal_id: Integer, @@ -447,79 +453,79 @@ module HubSpotSDK ).returns(StringIO) end def get_latest_local_journal_entry( - # The ID of the portal for which to retrieve the latest journal entries. This - # parameter is optional and should be an integer. + # The ID of the portal for which to retrieve the latest journal entries. This is + # an integer value. install_portal_id: nil, request_options: {} ) end - # Perform a batch read operation on the webhooks journal. This endpoint allows you - # to read multiple entries from the journal in a single request. It requires a - # JSON request body specifying the inputs to be read. The response includes the - # results of the batch read operation, and may return multiple statuses if there - # are errors. + # Execute a batch read operation on the webhooks journal. This endpoint allows you + # to retrieve a batch of webhook journal entries by providing the necessary input + # data. It is useful for processing multiple records in a single request, + # streamlining data retrieval tasks. sig do params( inputs: T::Array[String], install_portal_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse) + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) end def get_local_journal_batch_by_request( # Body param: Strings to input. inputs:, # Query param: The ID of the portal where the webhooks are installed. This - # parameter is optional and is used to specify the target portal. + # parameter is optional and is used to specify the target portal for the + # operation. install_portal_id: nil, request_options: {} ) end # Retrieve a batch of webhook journal entries starting from a specified offset. - # This endpoint allows you to fetch a defined number of entries, facilitating the - # processing of webhook data in manageable chunks. + # This endpoint is useful for paginating through large sets of webhook data. The + # number of entries returned is determined by the 'count' parameter. sig do params( count: Integer, offset: String, install_portal_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse) + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) end def get_local_journal_batch_from_offset( - # Path param: The number of journal entries to retrieve. This is an integer value - # with a minimum of 1. + # Path param: The number of journal entries to retrieve in this batch. Must be an + # integer with a minimum value of 1. count, - # Path param: The starting point for fetching the batch of journal entries. This - # is a string value that indicates the offset position. + # Path param: The starting point for the batch retrieval, specified as a string. offset:, - # Query param: The ID of the portal installation. This is an integer value used to - # specify the portal context for the request. + # Query param: The ID of the portal where the webhooks are installed. This is an + # optional parameter. install_portal_id: nil, request_options: {} ) end # Retrieve the status of a specific webhook journal entry using its unique status - # ID. This endpoint is useful for monitoring the progress or completion of webhook - # processing tasks. + # ID. This endpoint is useful for monitoring the progress or outcome of webhook + # journal entries, allowing you to check if an entry is pending, in progress, + # completed, failed, or expired. sig do params( status_id: String, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::SnapshotStatusResponse) + ).returns(HubSpotSDK::SnapshotStatusResponse) end def get_local_journal_status( - # The unique identifier (UUID) of the status to retrieve. + # The unique identifier of the status to retrieve. It should be in UUID format. status_id, request_options: {} ) end - # Retrieve the next batch of webhook journal entries starting from a specified - # offset. This endpoint is useful for paginating through large sets of webhook - # data, allowing you to continue fetching entries from where you last left off. + # Retrieve the next set of entries from the webhooks journal starting from a + # specified offset. This endpoint is useful for paginating through journal entries + # to process or analyze webhook events sequentially. sig do params( offset: String, @@ -528,20 +534,18 @@ module HubSpotSDK ).returns(StringIO) end def get_next_journal_entries( - # The offset from which to start retrieving the next batch of webhook journal - # entries. This parameter is required and identifies the starting point for the - # batch retrieval. + # The offset string indicating the starting point for retrieving the next set of + # journal entries. offset, - # The ID of the portal installation to filter the webhook journal entries. This is - # an optional parameter. + # The ID of the portal where the webhooks are installed. This is an integer value. install_portal_id: nil, request_options: {} ) end # Retrieve the next set of webhook journal entries starting from a specified - # offset. This endpoint is useful for paginating through webhook journal data in a - # sequential manner, allowing you to fetch entries beyond a given point. + # offset. This endpoint is useful for paginating through large sets of webhook + # data, allowing you to continue from where a previous request left off. sig do params( offset: String, @@ -550,10 +554,11 @@ module HubSpotSDK ).returns(StringIO) end def get_next_local_journal_entries( - # The starting point for retrieving the next set of journal entries. This is a - # string value. + # The starting point for retrieving the next set of webhook journal entries. This + # is a string value that represents the current position in the journal. offset, - # The ID of the portal where the webhook is installed. This is an integer value. + # The ID of the portal installation to filter the webhook journal entries. This is + # an integer value. install_portal_id: nil, request_options: {} ) @@ -574,17 +579,18 @@ module HubSpotSDK ) end - # Retrieve details of a specific filter associated with a webhook subscription in - # the HubSpot account. This endpoint is useful for accessing the configuration and - # conditions of a filter by its unique identifier. + # Retrieve a specific filter associated with a webhook journal subscription. This + # endpoint allows you to access the details of the filter identified by the + # filterId, which is useful for managing and understanding the conditions applied + # to webhook events. sig do params( filter_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::Webhooks::FilterResponse) + ).returns(HubSpotSDK::FilterResponse) end def get_subscription_filter( - # The unique identifier of the filter to retrieve. + # The unique identifier of the filter to retrieve. It is an integer value. filter_id, request_options: {} ) @@ -604,30 +610,30 @@ module HubSpotSDK ) end - # Retrieve a list of webhook journal subscriptions for the specified API version. - # This endpoint provides details about each subscription, including actions, - # object types, and associated properties. It is useful for managing and reviewing - # current webhook subscriptions. + # Retrieve a list of webhook journal subscriptions for the specified version. This + # endpoint allows you to view all active subscriptions without pagination. It is + # useful for monitoring and managing webhook subscriptions in your HubSpot + # account. sig do params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( - HubSpotSDK::Webhooks::CollectionResponseSubscriptionResponseNoPaging + HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging ) end def list_journal_subscriptions(request_options: {}) end - # Retrieve the filters associated with a specific webhook subscription in the - # HubSpot account. This endpoint is useful for obtaining detailed information - # about the filters applied to a given subscription, identified by its - # subscription ID. + # Retrieve the filters associated with a specific webhook subscription. This + # endpoint allows you to view the filters applied to a subscription, which can + # help in managing and understanding the conditions set for webhook events. sig do params( subscription_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(T::Array[HubSpotSDK::Webhooks::FilterResponse]) + ).returns(T::Array[HubSpotSDK::FilterResponse]) end def list_subscription_filters( - # The unique identifier of the subscription for which to retrieve filters. + # The unique identifier of the subscription for which to retrieve filters. This is + # an integer value. subscription_id, request_options: {} ) diff --git a/rbi/hubspot_sdk/resources/webhooks_journal.rbi b/rbi/hubspot_sdk/resources/webhooks_journal.rbi new file mode 100644 index 00000000..fe55746d --- /dev/null +++ b/rbi/hubspot_sdk/resources/webhooks_journal.rbi @@ -0,0 +1,24 @@ +# typed: strong + +module HubSpotSDK + module Resources + class WebhooksJournal + sig { returns(HubSpotSDK::Resources::WebhooksJournal::Journal) } + attr_reader :journal + + sig { returns(HubSpotSDK::Resources::WebhooksJournal::JournalLocal) } + attr_reader :journal_local + + sig { returns(HubSpotSDK::Resources::WebhooksJournal::Snapshots) } + attr_reader :snapshots + + sig { returns(HubSpotSDK::Resources::WebhooksJournal::Subscriptions) } + attr_reader :subscriptions + + # @api private + sig { params(client: HubSpotSDK::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end +end diff --git a/rbi/hubspot_sdk/resources/webhooks_journal/journal.rbi b/rbi/hubspot_sdk/resources/webhooks_journal/journal.rbi new file mode 100644 index 00000000..42f57aec --- /dev/null +++ b/rbi/hubspot_sdk/resources/webhooks_journal/journal.rbi @@ -0,0 +1,71 @@ +# typed: strong + +module HubSpotSDK + module Resources + class WebhooksJournal + class Journal + sig { returns(HubSpotSDK::Resources::WebhooksJournal::Journal::Batch) } + attr_reader :batch + + # Retrieve the earliest entry from the webhooks journal for the specified portal. + # This endpoint is useful for accessing the first recorded webhook event in the + # journal, which can be helpful for auditing or debugging purposes. + sig do + params( + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(StringIO) + end + def get_earliest( + # The ID of the portal installation to filter the journal entries by. This is an + # integer value. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve the next set of entries from the webhooks journal starting from a + # specified offset. This endpoint is useful for paginating through journal entries + # to process or analyze webhook events sequentially. + sig do + params( + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(StringIO) + end + def get_next_from_offset( + # The offset string indicating the starting point for retrieving the next set of + # journal entries. + offset, + # The ID of the portal where the webhooks are installed. This is an integer value. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve the status of a specific webhook journal entry using its unique status + # ID. This endpoint provides detailed information about the status, including + # whether it is pending, in progress, completed, failed, or expired. It is useful + # for monitoring and managing the state of webhook journal entries. + sig do + params( + status_id: String, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::SnapshotStatusResponse) + end + def get_status( + # The unique identifier (UUID) of the status to retrieve. + status_id, + request_options: {} + ) + end + + # @api private + sig { params(client: HubSpotSDK::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end + end +end diff --git a/rbi/hubspot_sdk/resources/webhooks_journal/journal/batch.rbi b/rbi/hubspot_sdk/resources/webhooks_journal/journal/batch.rbi new file mode 100644 index 00000000..7634c84c --- /dev/null +++ b/rbi/hubspot_sdk/resources/webhooks_journal/journal/batch.rbi @@ -0,0 +1,106 @@ +# typed: strong + +module HubSpotSDK + module Resources + class WebhooksJournal + class Journal + class Batch + # Execute a batch read operation on the webhooks journal for the specified date, + # 2026-03. This endpoint allows you to retrieve multiple entries from the webhooks + # journal in a single request, which can be useful for processing large amounts of + # data efficiently. Ensure that the request body is provided in the required + # format. + sig do + params( + inputs: T::Array[String], + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) + end + def get( + # Body param: Strings to input. + inputs:, + # Query param: An integer representing the ID of the portal installation for which + # the webhooks journal data should be retrieved. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve the earliest batch of webhook journal entries for a specified count. + # This endpoint is useful for accessing historical webhook data in batches, + # allowing you to process or analyze older entries. The number of entries + # retrieved is determined by the count parameter. + sig do + params( + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) + end + def get_earliest( + # The number of earliest journal entries to retrieve. This must be an integer with + # a minimum value of 1. + count, + # The ID of the portal installation. This is an integer value that specifies which + # portal's data to access. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve a batch of webhook journal entries starting from a specified offset. + # This endpoint allows you to fetch a defined number of entries, which can be + # useful for processing large datasets in manageable chunks. + sig do + params( + count: Integer, + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) + end + def get_from_offset( + # Path param: The number of journal entries to retrieve. This must be an integer + # with a minimum value of 1. + count, + # Path param: The starting point for fetching the journal entries. This is a + # string value. + offset:, + # Query param: The ID of the portal installation. This is an integer value. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve the latest batch of webhook journal entries up to the specified count. + # This endpoint is useful for fetching recent webhook data for analysis or + # processing. The count parameter determines the maximum number of entries to + # return. + sig do + params( + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) + end + def get_latest( + # The maximum number of journal entries to retrieve. This is a required integer + # parameter with a minimum value of 1. + count, + # The ID of the portal installation. This is an integer value used to specify the + # portal context for the request. + install_portal_id: nil, + request_options: {} + ) + end + + # @api private + sig { params(client: HubSpotSDK::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/resources/webhooks_journal/journal_local.rbi b/rbi/hubspot_sdk/resources/webhooks_journal/journal_local.rbi new file mode 100644 index 00000000..bcf98e76 --- /dev/null +++ b/rbi/hubspot_sdk/resources/webhooks_journal/journal_local.rbi @@ -0,0 +1,91 @@ +# typed: strong + +module HubSpotSDK + module Resources + class WebhooksJournal + class JournalLocal + sig do + returns(HubSpotSDK::Resources::WebhooksJournal::JournalLocal::Batch) + end + attr_reader :batch + + # Retrieve the earliest webhook journal entries for the specified portal. This + # endpoint can be used to access the oldest records available in the webhook + # journal, which may be useful for auditing or historical analysis. + sig do + params( + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(StringIO) + end + def get_earliest( + # The ID of the portal for which to retrieve the earliest webhook journal entries. + # This parameter is optional and should be an integer. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve the latest entries from the webhooks journal for the specified portal. + # This endpoint is useful for accessing the most recent webhook events and their + # statuses, allowing you to monitor and debug webhook activity effectively. + sig do + params( + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(StringIO) + end + def get_latest( + # The unique identifier of the portal installation for which to retrieve the + # latest journal entries. This parameter is optional and should be an integer. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve the next set of webhook journal entries starting from a specified + # offset. This endpoint is useful for paginating through large sets of webhook + # data, allowing you to continue from where a previous request left off. + sig do + params( + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(StringIO) + end + def get_next_from_offset( + # The starting point for retrieving the next set of webhook journal entries. This + # is a string value that represents the current position in the journal. + offset, + # The ID of the portal installation to filter the webhook journal entries. This is + # an integer value. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve the status of a specific webhook journal entry using its unique status + # ID. This endpoint is useful for monitoring the progress or outcome of webhook + # journal entries, allowing you to check if an entry is pending, in progress, + # completed, failed, or expired. + sig do + params( + status_id: String, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::SnapshotStatusResponse) + end + def get_status( + # The unique identifier of the status to retrieve. It should be in UUID format. + status_id, + request_options: {} + ) + end + + # @api private + sig { params(client: HubSpotSDK::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end + end +end diff --git a/rbi/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rbi b/rbi/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rbi new file mode 100644 index 00000000..14535334 --- /dev/null +++ b/rbi/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rbi @@ -0,0 +1,84 @@ +# typed: strong + +module HubSpotSDK + module Resources + class WebhooksJournal + class JournalLocal + class Batch + # Execute a batch read operation on the webhooks journal. This endpoint allows you + # to retrieve a batch of webhook journal entries by providing the necessary input + # data. It is useful for processing multiple records in a single request, + # streamlining data retrieval tasks. + sig do + params( + inputs: T::Array[String], + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) + end + def get( + # Body param: Strings to input. + inputs:, + # Query param: The ID of the portal where the webhooks are installed. This + # parameter is optional and is used to specify the target portal for the + # operation. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve the earliest batch of webhook journal entries. This endpoint is useful + # for accessing the oldest available data in the webhook journal, allowing users + # to process or analyze historical webhook events. The number of entries to fetch + # is specified by the 'count' path parameter. + sig do + params( + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) + end + def get_earliest( + # The number of earliest webhook journal entries to retrieve. This is a required + # integer parameter with a minimum value of 1. + count, + # The ID of the portal installation to filter the webhook journal entries. This is + # an optional integer parameter. + install_portal_id: nil, + request_options: {} + ) + end + + # Retrieve a batch of webhook journal entries starting from a specified offset. + # This endpoint is useful for paginating through large sets of webhook data. The + # number of entries returned is determined by the 'count' parameter. + sig do + params( + count: Integer, + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::BatchResponseJournalFetchResponse) + end + def get_from_offset( + # Path param: The number of journal entries to retrieve in this batch. Must be an + # integer with a minimum value of 1. + count, + # Path param: The starting point for the batch retrieval, specified as a string. + offset:, + # Query param: The ID of the portal where the webhooks are installed. This is an + # optional parameter. + install_portal_id: nil, + request_options: {} + ) + end + + # @api private + sig { params(client: HubSpotSDK::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end + end + end +end diff --git a/rbi/hubspot_sdk/resources/webhooks_journal/snapshots.rbi b/rbi/hubspot_sdk/resources/webhooks_journal/snapshots.rbi new file mode 100644 index 00000000..586fc3fc --- /dev/null +++ b/rbi/hubspot_sdk/resources/webhooks_journal/snapshots.rbi @@ -0,0 +1,33 @@ +# typed: strong + +module HubSpotSDK + module Resources + class WebhooksJournal + class Snapshots + # Create a batch of CRM object snapshots in HubSpot. This endpoint is used to + # capture the current state of specified CRM objects for later reference or + # analysis. It requires a JSON payload containing the details of the CRM objects + # to snapshot. This operation is exempt from daily and ten-secondly rate limits. + sig do + params( + snapshot_requests: + T::Array[HubSpotSDK::CrmObjectSnapshotRequest::OrHash], + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::CrmObjectSnapshotBatchResponse) + end + def create( + # An array of CrmObjectSnapshotRequest objects, each representing a request to + # create a snapshot for a specific CRM object. This property is required. + snapshot_requests:, + request_options: {} + ) + end + + # @api private + sig { params(client: HubSpotSDK::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end + end +end diff --git a/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions.rbi b/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions.rbi new file mode 100644 index 00000000..fb1bed90 --- /dev/null +++ b/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions.rbi @@ -0,0 +1,106 @@ +# typed: strong + +module HubSpotSDK + module Resources + class WebhooksJournal + class Subscriptions + sig do + returns( + HubSpotSDK::Resources::WebhooksJournal::Subscriptions::Filters + ) + end + attr_reader :filters + + # Create a new subscription in the Webhooks Journal for the specified version. + # This endpoint allows you to define the subscription details by providing the + # necessary information in the request body. It supports various types of + # subscriptions, including object, association, event, app lifecycle event, list + # membership, and GDPR privacy deletion. Ensure that all required fields are + # included in the request to successfully create a subscription. + sig do + params( + subscription_upsert_request: + T.any( + HubSpotSDK::ObjectSubscriptionUpsertRequest::OrHash, + HubSpotSDK::AssociationSubscriptionUpsertRequest::OrHash, + HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest::OrHash, + HubSpotSDK::ListMembershipSubscriptionUpsertRequest::OrHash, + HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::OrHash + ), + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::WebhooksJournal::SubscriptionResponse) + end + def create(subscription_upsert_request:, request_options: {}) + end + + # Retrieve a list of webhook journal subscriptions for the specified version. This + # endpoint allows you to view all active subscriptions without pagination. It is + # useful for monitoring and managing webhook subscriptions in your HubSpot + # account. + sig do + params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( + HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging + ) + end + def list(request_options: {}) + end + + # Delete a specific webhook journal subscription using its unique identifier. This + # operation is useful for managing and cleaning up subscriptions that are no + # longer needed in your HubSpot account. + sig do + params( + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).void + end + def delete( + # The unique identifier of the subscription to delete. It must be provided as an + # integer. + subscription_id, + request_options: {} + ) + end + + # Delete a webhook journal subscription for a specific portal. This operation + # removes the subscription associated with the given portalId, ensuring that no + # further webhook events are sent for this portal. Use this endpoint to manage and + # clean up subscriptions that are no longer needed. + sig do + params( + portal_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).void + end + def delete_for_portal( + # The unique identifier of the portal for which the webhook journal subscription + # is to be deleted. + portal_id, + request_options: {} + ) + end + + # Retrieve details of a specific webhook subscription using its unique identifier. + # This endpoint is useful for obtaining information about a particular + # subscription, such as its actions, object type, and associated properties. + sig do + params( + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::WebhooksJournal::SubscriptionResponse) + end + def get( + # The unique identifier of the subscription to retrieve. + subscription_id, + request_options: {} + ) + end + + # @api private + sig { params(client: HubSpotSDK::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end + end +end diff --git a/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rbi b/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rbi new file mode 100644 index 00000000..a0c9f9e6 --- /dev/null +++ b/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rbi @@ -0,0 +1,89 @@ +# typed: strong + +module HubSpotSDK + module Resources + class WebhooksJournal + class Subscriptions + class Filters + # Create a new filter for a specific webhook subscription in the HubSpot account. + # This endpoint allows you to define conditions that determine when a webhook + # should be triggered. The filter is associated with a subscription identified by + # its ID, and the request must include the filter details. + sig do + params( + filter: HubSpotSDK::Filter::OrHash, + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::FilterCreateResponse) + end + def create( + # Defines a single condition for searching CRM objects, specifying the property to + # filter on, the operator to use (such as equals, greater than, or contains), and + # the value(s) to compare against. + filter:, + # The unique identifier of the subscription to which the filter will be applied. + # It is an integer formatted as int64. + subscription_id:, + request_options: {} + ) + end + + # Retrieve the filters associated with a specific webhook subscription. This + # endpoint allows you to view the filters applied to a subscription, which can + # help in managing and understanding the conditions set for webhook events. + sig do + params( + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(T::Array[HubSpotSDK::FilterResponse]) + end + def list( + # The unique identifier of the subscription for which to retrieve filters. This is + # an integer value. + subscription_id, + request_options: {} + ) + end + + # Remove a specific filter from the webhooks journal subscriptions. This operation + # is useful for managing and cleaning up filters that are no longer needed. Once + # deleted, the filter cannot be recovered. + sig do + params( + filter_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).void + end + def delete( + # The unique identifier of the filter to delete. + filter_id, + request_options: {} + ) + end + + # Retrieve a specific filter associated with a webhook journal subscription. This + # endpoint allows you to access the details of the filter identified by the + # filterId, which is useful for managing and understanding the conditions applied + # to webhook events. + sig do + params( + filter_id: Integer, + request_options: HubSpotSDK::RequestOptions::OrHash + ).returns(HubSpotSDK::FilterResponse) + end + def get( + # The unique identifier of the filter to retrieve. It is an integer value. + filter_id, + request_options: {} + ) + end + + # @api private + sig { params(client: HubSpotSDK::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end + end + end +end diff --git a/sig/hubspot_sdk/client.rbs b/sig/hubspot_sdk/client.rbs index ccfc5db5..decc19d2 100644 --- a/sig/hubspot_sdk/client.rbs +++ b/sig/hubspot_sdk/client.rbs @@ -42,6 +42,8 @@ module HubSpotSDK attr_reader webhooks: HubSpotSDK::Resources::Webhooks + attr_reader webhooks_journal: HubSpotSDK::Resources::WebhooksJournal + private def auth_headers: -> ::Hash[String, String] private def auth_query: -> ::Hash[String, String] diff --git a/sig/hubspot_sdk/models.rbs b/sig/hubspot_sdk/models.rbs index 81ec947d..8070ef74 100644 --- a/sig/hubspot_sdk/models.rbs +++ b/sig/hubspot_sdk/models.rbs @@ -3,14 +3,20 @@ module HubSpotSDK module Account = HubSpotSDK::Models::Account + class ActionOverrideRequest = HubSpotSDK::Models::ActionOverrideRequest + class ActionResponse = HubSpotSDK::Models::ActionResponse + class AppLifecycleEventSubscriptionUpsertRequest = HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest + class AssociationDefinition = HubSpotSDK::Models::AssociationDefinition class AssociationDefinitionEgg = HubSpotSDK::Models::AssociationDefinitionEgg class AssociationSpec = HubSpotSDK::Models::AssociationSpec + class AssociationSubscriptionUpsertRequest = HubSpotSDK::Models::AssociationSubscriptionUpsertRequest + module Auth = HubSpotSDK::Models::Auth module Automation = HubSpotSDK::Models::Automation @@ -27,6 +33,10 @@ module HubSpotSDK class BatchReadInputPropertyName = HubSpotSDK::Models::BatchReadInputPropertyName + class BatchResponseJournalFetchResponse = HubSpotSDK::Models::BatchResponseJournalFetchResponse + + class BatchResponseJournalFetchResponseWithErrors = HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors + module BusinessUnits = HubSpotSDK::Models::BusinessUnits module Cms = HubSpotSDK::Models::Cms @@ -35,10 +45,20 @@ module HubSpotSDK module CommunicationPreferences = HubSpotSDK::Models::CommunicationPreferences + class Condition = HubSpotSDK::Models::Condition + module Conversations = HubSpotSDK::Models::Conversations module Crm = HubSpotSDK::Models::Crm + class CrmObjectSnapshotBatchRequest = HubSpotSDK::Models::CrmObjectSnapshotBatchRequest + + class CrmObjectSnapshotBatchResponse = HubSpotSDK::Models::CrmObjectSnapshotBatchResponse + + class CrmObjectSnapshotRequest = HubSpotSDK::Models::CrmObjectSnapshotRequest + + class CrmObjectSnapshotResponse = HubSpotSDK::Models::CrmObjectSnapshotResponse + class ErrorData = HubSpotSDK::Models::ErrorData class ErrorDetail = HubSpotSDK::Models::ErrorDetail @@ -47,14 +67,30 @@ module HubSpotSDK module Files = HubSpotSDK::Models::Files + class Filter = HubSpotSDK::Models::Filter + + class FilterCreateRequest = HubSpotSDK::Models::FilterCreateRequest + + class FilterCreateResponse = HubSpotSDK::Models::FilterCreateResponse + + class FilterResponse = HubSpotSDK::Models::FilterResponse + class ForwardPaging = HubSpotSDK::Models::ForwardPaging + class GdprPrivacyDeletionSubscriptionUpsertRequest = HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest + + class JournalFetchResponse = HubSpotSDK::Models::JournalFetchResponse + + class ListMembershipSubscriptionUpsertRequest = HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest + module Marketing = HubSpotSDK::Models::Marketing module Meta = HubSpotSDK::Models::Meta class NextPage = HubSpotSDK::Models::NextPage + class ObjectSubscriptionUpsertRequest = HubSpotSDK::Models::ObjectSubscriptionUpsertRequest + class ObjectTypeDefinition = HubSpotSDK::Models::ObjectTypeDefinition class ObjectTypeDefinitionLabels = HubSpotSDK::Models::ObjectTypeDefinitionLabels @@ -91,11 +127,17 @@ module HubSpotSDK module Settings = HubSpotSDK::Models::Settings + class SnapshotStatusResponse = HubSpotSDK::Models::SnapshotStatusResponse + class StandardError = HubSpotSDK::Models::StandardError + module SubscriptionUpsertRequest = HubSpotSDK::Models::SubscriptionUpsertRequest + class TaskLocator = HubSpotSDK::Models::TaskLocator class VersionUser = HubSpotSDK::Models::VersionUser module Webhooks = HubSpotSDK::Models::Webhooks + + module WebhooksJournal = HubSpotSDK::Models::WebhooksJournal end diff --git a/sig/hubspot_sdk/models/action_override_request.rbs b/sig/hubspot_sdk/models/action_override_request.rbs new file mode 100644 index 00000000..59aeec82 --- /dev/null +++ b/sig/hubspot_sdk/models/action_override_request.rbs @@ -0,0 +1,43 @@ +module HubSpotSDK + module Models + type action_override_request = + { + associated_object_type_ids: ::Array[String], + list_ids: ::Array[Integer], + object_ids: ::Array[Integer], + properties: ::Array[String] + } + + class ActionOverrideRequest < HubSpotSDK::Internal::Type::BaseModel + attr_reader associated_object_type_ids: ::Array[String]? + + def associated_object_type_ids=: (::Array[String]) -> ::Array[String] + + attr_reader list_ids: ::Array[Integer]? + + def list_ids=: (::Array[Integer]) -> ::Array[Integer] + + attr_reader object_ids: ::Array[Integer]? + + def object_ids=: (::Array[Integer]) -> ::Array[Integer] + + attr_reader properties: ::Array[String]? + + def properties=: (::Array[String]) -> ::Array[String] + + def initialize: ( + ?associated_object_type_ids: ::Array[String], + ?list_ids: ::Array[Integer], + ?object_ids: ::Array[Integer], + ?properties: ::Array[String] + ) -> void + + def to_hash: -> { + associated_object_type_ids: ::Array[String], + list_ids: ::Array[Integer], + object_ids: ::Array[Integer], + properties: ::Array[String] + } + end + end +end diff --git a/sig/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rbs new file mode 100644 index 00000000..7c9b66a8 --- /dev/null +++ b/sig/hubspot_sdk/models/app_lifecycle_event_subscription_upsert_request.rbs @@ -0,0 +1,40 @@ +module HubSpotSDK + module Models + type app_lifecycle_event_subscription_upsert_request = + { + event_type_id: String, + properties: ::Array[String], + subscription_type: HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest::subscription_type + } + + class AppLifecycleEventSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + attr_accessor event_type_id: String + + attr_accessor properties: ::Array[String] + + attr_accessor subscription_type: HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest::subscription_type + + def initialize: ( + event_type_id: String, + properties: ::Array[String], + subscription_type: HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest::subscription_type + ) -> void + + def to_hash: -> { + event_type_id: String, + properties: ::Array[String], + subscription_type: HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest::subscription_type + } + + type subscription_type = :APP_LIFECYCLE_EVENT + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + APP_LIFECYCLE_EVENT: :APP_LIFECYCLE_EVENT + + def self?.values: -> ::Array[HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest::subscription_type] + end + end + end +end diff --git a/sig/hubspot_sdk/models/association_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/association_subscription_upsert_request.rbs new file mode 100644 index 00000000..f0119236 --- /dev/null +++ b/sig/hubspot_sdk/models/association_subscription_upsert_request.rbs @@ -0,0 +1,90 @@ +module HubSpotSDK + module Models + type association_subscription_upsert_request = + { + actions: ::Array[HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::action], + associated_object_type_ids: ::Array[String], + object_ids: ::Array[Integer], + object_type_id: String, + portal_id: Integer, + subscription_type: HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::subscription_type + } + + class AssociationSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + attr_accessor actions: ::Array[HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::action] + + attr_accessor associated_object_type_ids: ::Array[String] + + attr_accessor object_ids: ::Array[Integer] + + attr_accessor object_type_id: String + + attr_accessor portal_id: Integer + + attr_accessor subscription_type: HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::subscription_type + + def initialize: ( + actions: ::Array[HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::action], + associated_object_type_ids: ::Array[String], + object_ids: ::Array[Integer], + object_type_id: String, + portal_id: Integer, + subscription_type: HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::subscription_type + ) -> void + + def to_hash: -> { + actions: ::Array[HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::action], + associated_object_type_ids: ::Array[String], + object_ids: ::Array[Integer], + object_type_id: String, + portal_id: Integer, + subscription_type: HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::subscription_type + } + + type action = + :CREATE + | :UPDATE + | :DELETE + | :MERGE + | :RESTORE + | :ASSOCIATION_ADDED + | :ASSOCIATION_REMOVED + | :SNAPSHOT + | :APP_INSTALL + | :APP_UNINSTALL + | :ADDED_TO_LIST + | :REMOVED_FROM_LIST + | :GDPR_DELETE + + 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 + + def self?.values: -> ::Array[HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::action] + end + + type subscription_type = :ASSOCIATION + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + ASSOCIATION: :ASSOCIATION + + def self?.values: -> ::Array[HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::subscription_type] + end + end + end +end diff --git a/sig/hubspot_sdk/models/auth/access_token_response.rbs b/sig/hubspot_sdk/models/auth/access_token_response.rbs new file mode 100644 index 00000000..e5d48b97 --- /dev/null +++ b/sig/hubspot_sdk/models/auth/access_token_response.rbs @@ -0,0 +1,80 @@ +module HubSpotSDK + module Models + module Auth + type access_token_response = + { + access_token: String, + expires_in: Integer, + refresh_token: String, + token_type: String, + token_use: HubSpotSDK::Models::Auth::AccessTokenResponse::token_use, + hub_id: Integer, + id_token: String, + scopes: ::Array[String], + user_id: Integer + } + + class AccessTokenResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor access_token: String + + attr_accessor expires_in: Integer + + attr_accessor refresh_token: String + + attr_accessor token_type: String + + attr_accessor token_use: HubSpotSDK::Models::Auth::AccessTokenResponse::token_use + + attr_reader hub_id: Integer? + + def hub_id=: (Integer) -> Integer + + attr_reader id_token: String? + + def id_token=: (String) -> String + + attr_reader scopes: ::Array[String]? + + def scopes=: (::Array[String]) -> ::Array[String] + + attr_reader user_id: Integer? + + def user_id=: (Integer) -> Integer + + def initialize: ( + access_token: String, + expires_in: Integer, + refresh_token: String, + token_type: String, + token_use: HubSpotSDK::Models::Auth::AccessTokenResponse::token_use, + ?hub_id: Integer, + ?id_token: String, + ?scopes: ::Array[String], + ?user_id: Integer + ) -> void + + def to_hash: -> { + access_token: String, + expires_in: Integer, + refresh_token: String, + token_type: String, + token_use: HubSpotSDK::Models::Auth::AccessTokenResponse::token_use, + hub_id: Integer, + id_token: String, + scopes: ::Array[String], + user_id: Integer + } + + type token_use = :access_token + + module TokenUse + extend HubSpotSDK::Internal::Type::Enum + + ACCESS_TOKEN: :access_token + + def self?.values: -> ::Array[HubSpotSDK::Models::Auth::AccessTokenResponse::token_use] + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/auth/client_credentials_token_response.rbs b/sig/hubspot_sdk/models/auth/client_credentials_token_response.rbs new file mode 100644 index 00000000..cbaf8aa4 --- /dev/null +++ b/sig/hubspot_sdk/models/auth/client_credentials_token_response.rbs @@ -0,0 +1,75 @@ +module HubSpotSDK + module Models + module Auth + type client_credentials_token_response = + { + access_token: String, + expires_in: Integer, + token_type: String, + token_use: HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse::token_use, + hub_id: Integer, + id_token: String, + scopes: ::Array[String], + user_id: Integer + } + + class ClientCredentialsTokenResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor access_token: String + + attr_accessor expires_in: Integer + + attr_accessor token_type: String + + attr_accessor token_use: HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse::token_use + + attr_reader hub_id: Integer? + + def hub_id=: (Integer) -> Integer + + attr_reader id_token: String? + + def id_token=: (String) -> String + + attr_reader scopes: ::Array[String]? + + def scopes=: (::Array[String]) -> ::Array[String] + + attr_reader user_id: Integer? + + def user_id=: (Integer) -> Integer + + def initialize: ( + access_token: String, + expires_in: Integer, + token_type: String, + token_use: HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse::token_use, + ?hub_id: Integer, + ?id_token: String, + ?scopes: ::Array[String], + ?user_id: Integer + ) -> void + + def to_hash: -> { + access_token: String, + expires_in: Integer, + token_type: String, + token_use: HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse::token_use, + hub_id: Integer, + id_token: String, + scopes: ::Array[String], + user_id: Integer + } + + type token_use = :client_credentials + + module TokenUse + extend HubSpotSDK::Internal::Type::Enum + + CLIENT_CREDENTIALS: :client_credentials + + def self?.values: -> ::Array[HubSpotSDK::Models::Auth::ClientCredentialsTokenResponse::token_use] + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/auth/oauth_create_token_params.rbs b/sig/hubspot_sdk/models/auth/oauth_create_token_params.rbs index 965f4fa7..06849568 100644 --- a/sig/hubspot_sdk/models/auth/oauth_create_token_params.rbs +++ b/sig/hubspot_sdk/models/auth/oauth_create_token_params.rbs @@ -76,12 +76,14 @@ module HubSpotSDK request_options: HubSpotSDK::RequestOptions } - type grant_type = :authorization_code | :refresh_token + type grant_type = + :authorization_code | :client_credentials | :refresh_token module GrantType extend HubSpotSDK::Internal::Type::Enum AUTHORIZATION_CODE: :authorization_code + CLIENT_CREDENTIALS: :client_credentials REFRESH_TOKEN: :refresh_token def self?.values: -> ::Array[HubSpotSDK::Models::Auth::OAuthCreateTokenParams::grant_type] diff --git a/sig/hubspot_sdk/models/auth/token_response_if.rbs b/sig/hubspot_sdk/models/auth/token_response_if.rbs new file mode 100644 index 00000000..b894609e --- /dev/null +++ b/sig/hubspot_sdk/models/auth/token_response_if.rbs @@ -0,0 +1,15 @@ +module HubSpotSDK + module Models + module Auth + type token_response_if = + HubSpotSDK::Auth::AccessTokenResponse + | HubSpotSDK::Auth::ClientCredentialsTokenResponse + + module TokenResponseIf + extend HubSpotSDK::Internal::Type::Union + + def self?.variants: -> ::Array[HubSpotSDK::Models::Auth::token_response_if] + end + end + end +end diff --git a/sig/hubspot_sdk/models/automation/array_field_schema.rbs b/sig/hubspot_sdk/models/automation/array_field_schema.rbs index 400a765f..d759ee9e 100644 --- a/sig/hubspot_sdk/models/automation/array_field_schema.rbs +++ b/sig/hubspot_sdk/models/automation/array_field_schema.rbs @@ -22,19 +22,12 @@ module HubSpotSDK type: HubSpotSDK::Models::Automation::ArrayFieldSchema::type_ } - type type_ = - :ARRAY | :BOOLEAN | :DOUBLE | :INTEGER | :LONG | :OBJECT | :STRING + type type_ = :ARRAY module Type extend HubSpotSDK::Internal::Type::Enum ARRAY: :ARRAY - BOOLEAN: :BOOLEAN - DOUBLE: :DOUBLE - INTEGER: :INTEGER - LONG: :LONG - OBJECT: :OBJECT - STRING: :STRING def self?.values: -> ::Array[HubSpotSDK::Models::Automation::ArrayFieldSchema::type_] end diff --git a/sig/hubspot_sdk/models/automation/boolean_field_schema.rbs b/sig/hubspot_sdk/models/automation/boolean_field_schema.rbs index 818eaf02..77f9b39f 100644 --- a/sig/hubspot_sdk/models/automation/boolean_field_schema.rbs +++ b/sig/hubspot_sdk/models/automation/boolean_field_schema.rbs @@ -15,19 +15,12 @@ module HubSpotSDK type: HubSpotSDK::Models::Automation::BooleanFieldSchema::type_ } - type type_ = - :ARRAY | :BOOLEAN | :DOUBLE | :INTEGER | :LONG | :OBJECT | :STRING + type type_ = :BOOLEAN module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY: :ARRAY BOOLEAN: :BOOLEAN - DOUBLE: :DOUBLE - INTEGER: :INTEGER - LONG: :LONG - OBJECT: :OBJECT - STRING: :STRING def self?.values: -> ::Array[HubSpotSDK::Models::Automation::BooleanFieldSchema::type_] end diff --git a/sig/hubspot_sdk/models/automation/double_field_schema.rbs b/sig/hubspot_sdk/models/automation/double_field_schema.rbs index 2c823901..9f6096d9 100644 --- a/sig/hubspot_sdk/models/automation/double_field_schema.rbs +++ b/sig/hubspot_sdk/models/automation/double_field_schema.rbs @@ -31,19 +31,12 @@ module HubSpotSDK minimum: Float } - type type_ = - :ARRAY | :BOOLEAN | :DOUBLE | :INTEGER | :LONG | :OBJECT | :STRING + type type_ = :DOUBLE module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY: :ARRAY - BOOLEAN: :BOOLEAN DOUBLE: :DOUBLE - INTEGER: :INTEGER - LONG: :LONG - OBJECT: :OBJECT - STRING: :STRING def self?.values: -> ::Array[HubSpotSDK::Models::Automation::DoubleFieldSchema::type_] end diff --git a/sig/hubspot_sdk/models/automation/integer_field_schema.rbs b/sig/hubspot_sdk/models/automation/integer_field_schema.rbs index 09ad4281..e179b7a0 100644 --- a/sig/hubspot_sdk/models/automation/integer_field_schema.rbs +++ b/sig/hubspot_sdk/models/automation/integer_field_schema.rbs @@ -31,19 +31,12 @@ module HubSpotSDK minimum: Integer } - type type_ = - :ARRAY | :BOOLEAN | :DOUBLE | :INTEGER | :LONG | :OBJECT | :STRING + type type_ = :INTEGER module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY: :ARRAY - BOOLEAN: :BOOLEAN - DOUBLE: :DOUBLE INTEGER: :INTEGER - LONG: :LONG - OBJECT: :OBJECT - STRING: :STRING def self?.values: -> ::Array[HubSpotSDK::Models::Automation::IntegerFieldSchema::type_] end diff --git a/sig/hubspot_sdk/models/automation/long_field_schema.rbs b/sig/hubspot_sdk/models/automation/long_field_schema.rbs index 326ecc85..c8367c70 100644 --- a/sig/hubspot_sdk/models/automation/long_field_schema.rbs +++ b/sig/hubspot_sdk/models/automation/long_field_schema.rbs @@ -31,19 +31,12 @@ module HubSpotSDK minimum: Integer } - type type_ = - :ARRAY | :BOOLEAN | :DOUBLE | :INTEGER | :LONG | :OBJECT | :STRING + type type_ = :LONG module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY: :ARRAY - BOOLEAN: :BOOLEAN - DOUBLE: :DOUBLE - INTEGER: :INTEGER LONG: :LONG - OBJECT: :OBJECT - STRING: :STRING def self?.values: -> ::Array[HubSpotSDK::Models::Automation::LongFieldSchema::type_] end diff --git a/sig/hubspot_sdk/models/automation/object_field_schema.rbs b/sig/hubspot_sdk/models/automation/object_field_schema.rbs index e5161395..563f10ca 100644 --- a/sig/hubspot_sdk/models/automation/object_field_schema.rbs +++ b/sig/hubspot_sdk/models/automation/object_field_schema.rbs @@ -22,19 +22,12 @@ module HubSpotSDK type: HubSpotSDK::Models::Automation::ObjectFieldSchema::type_ } - type type_ = - :ARRAY | :BOOLEAN | :DOUBLE | :INTEGER | :LONG | :OBJECT | :STRING + type type_ = :OBJECT module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY: :ARRAY - BOOLEAN: :BOOLEAN - DOUBLE: :DOUBLE - INTEGER: :INTEGER - LONG: :LONG OBJECT: :OBJECT - STRING: :STRING def self?.values: -> ::Array[HubSpotSDK::Models::Automation::ObjectFieldSchema::type_] end diff --git a/sig/hubspot_sdk/models/automation/string_field_schema.rbs b/sig/hubspot_sdk/models/automation/string_field_schema.rbs index 6714d82c..ef0a5859 100644 --- a/sig/hubspot_sdk/models/automation/string_field_schema.rbs +++ b/sig/hubspot_sdk/models/automation/string_field_schema.rbs @@ -26,18 +26,11 @@ module HubSpotSDK format_: HubSpotSDK::Models::Automation::StringFieldSchema::format_ } - type type_ = - :ARRAY | :BOOLEAN | :DOUBLE | :INTEGER | :LONG | :OBJECT | :STRING + type type_ = :STRING module Type extend HubSpotSDK::Internal::Type::Enum - ARRAY: :ARRAY - BOOLEAN: :BOOLEAN - DOUBLE: :DOUBLE - INTEGER: :INTEGER - LONG: :LONG - OBJECT: :OBJECT STRING: :STRING def self?.values: -> ::Array[HubSpotSDK::Models::Automation::StringFieldSchema::type_] diff --git a/sig/hubspot_sdk/models/batch_response_journal_fetch_response.rbs b/sig/hubspot_sdk/models/batch_response_journal_fetch_response.rbs new file mode 100644 index 00000000..4262bdce --- /dev/null +++ b/sig/hubspot_sdk/models/batch_response_journal_fetch_response.rbs @@ -0,0 +1,62 @@ +module HubSpotSDK + module Models + type batch_response_journal_fetch_response = + { + completed_at: Time, + results: ::Array[HubSpotSDK::JournalFetchResponse], + started_at: Time, + status: HubSpotSDK::Models::BatchResponseJournalFetchResponse::status, + links: ::Hash[Symbol, String], + requested_at: Time + } + + class BatchResponseJournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor completed_at: Time + + attr_accessor results: ::Array[HubSpotSDK::JournalFetchResponse] + + attr_accessor started_at: Time + + attr_accessor status: HubSpotSDK::Models::BatchResponseJournalFetchResponse::status + + attr_reader links: ::Hash[Symbol, String]? + + def links=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String] + + attr_reader requested_at: Time? + + def requested_at=: (Time) -> Time + + def initialize: ( + completed_at: Time, + results: ::Array[HubSpotSDK::JournalFetchResponse], + started_at: Time, + status: HubSpotSDK::Models::BatchResponseJournalFetchResponse::status, + ?links: ::Hash[Symbol, String], + ?requested_at: Time + ) -> void + + def to_hash: -> { + completed_at: Time, + results: ::Array[HubSpotSDK::JournalFetchResponse], + started_at: Time, + status: HubSpotSDK::Models::BatchResponseJournalFetchResponse::status, + links: ::Hash[Symbol, String], + requested_at: Time + } + + type status = :CANCELED | :COMPLETE | :PENDING | :PROCESSING + + module Status + extend HubSpotSDK::Internal::Type::Enum + + CANCELED: :CANCELED + COMPLETE: :COMPLETE + PENDING: :PENDING + PROCESSING: :PROCESSING + + def self?.values: -> ::Array[HubSpotSDK::Models::BatchResponseJournalFetchResponse::status] + end + end + end +end diff --git a/sig/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rbs b/sig/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rbs new file mode 100644 index 00000000..54576407 --- /dev/null +++ b/sig/hubspot_sdk/models/batch_response_journal_fetch_response_with_errors.rbs @@ -0,0 +1,78 @@ +module HubSpotSDK + module Models + type batch_response_journal_fetch_response_with_errors = + { + completed_at: Time, + results: ::Array[HubSpotSDK::JournalFetchResponse], + started_at: Time, + status: HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors::status, + errors: ::Array[HubSpotSDK::StandardError], + links: ::Hash[Symbol, String], + num_errors: Integer, + requested_at: Time + } + + class BatchResponseJournalFetchResponseWithErrors < HubSpotSDK::Internal::Type::BaseModel + attr_accessor completed_at: Time + + attr_accessor results: ::Array[HubSpotSDK::JournalFetchResponse] + + attr_accessor started_at: Time + + attr_accessor status: HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors::status + + attr_reader errors: ::Array[HubSpotSDK::StandardError]? + + def errors=: ( + ::Array[HubSpotSDK::StandardError] + ) -> ::Array[HubSpotSDK::StandardError] + + attr_reader links: ::Hash[Symbol, String]? + + def links=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String] + + attr_reader num_errors: Integer? + + def num_errors=: (Integer) -> Integer + + attr_reader requested_at: Time? + + def requested_at=: (Time) -> Time + + def initialize: ( + completed_at: Time, + results: ::Array[HubSpotSDK::JournalFetchResponse], + started_at: Time, + status: HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors::status, + ?errors: ::Array[HubSpotSDK::StandardError], + ?links: ::Hash[Symbol, String], + ?num_errors: Integer, + ?requested_at: Time + ) -> void + + def to_hash: -> { + completed_at: Time, + results: ::Array[HubSpotSDK::JournalFetchResponse], + started_at: Time, + status: HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors::status, + errors: ::Array[HubSpotSDK::StandardError], + links: ::Hash[Symbol, String], + num_errors: Integer, + requested_at: Time + } + + type status = :CANCELED | :COMPLETE | :PENDING | :PROCESSING + + module Status + extend HubSpotSDK::Internal::Type::Enum + + CANCELED: :CANCELED + COMPLETE: :COMPLETE + PENDING: :PENDING + PROCESSING: :PROCESSING + + def self?.values: -> ::Array[HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors::status] + end + end + end +end diff --git a/sig/hubspot_sdk/models/cms/content_search_result.rbs b/sig/hubspot_sdk/models/cms/content_search_result.rbs deleted file mode 100644 index 1e99cd1c..00000000 --- a/sig/hubspot_sdk/models/cms/content_search_result.rbs +++ /dev/null @@ -1,1865 +0,0 @@ -module HubSpotSDK - module Models - module Cms - type content_search_result = - { - id: Integer, - domain: String, - score: Float, - type: HubSpotSDK::Models::Cms::ContentSearchResult::type_, - url: String, - author_full_name: String, - category: String, - combined_id: String, - content_type: String, - description: String, - featured_image_url: String, - in_beta: bool, - is_private: bool, - language: HubSpotSDK::Models::Cms::ContentSearchResult::language, - published_date: Integer, - row_id: Integer, - subcategory: String, - table_id: Integer, - tags: ::Array[String], - title: String - } - - class ContentSearchResult < HubSpotSDK::Internal::Type::BaseModel - attr_accessor id: Integer - - attr_accessor domain: String - - attr_accessor score: Float - - attr_accessor type: HubSpotSDK::Models::Cms::ContentSearchResult::type_ - - attr_accessor url: String - - attr_reader author_full_name: String? - - def author_full_name=: (String) -> String - - attr_reader category: String? - - def category=: (String) -> String - - attr_reader combined_id: String? - - def combined_id=: (String) -> String - - attr_reader content_type: String? - - def content_type=: (String) -> String - - attr_reader description: String? - - def description=: (String) -> String - - attr_reader featured_image_url: String? - - def featured_image_url=: (String) -> String - - attr_reader in_beta: bool? - - def in_beta=: (bool) -> bool - - attr_reader is_private: bool? - - def is_private=: (bool) -> bool - - attr_reader language: HubSpotSDK::Models::Cms::ContentSearchResult::language? - - def language=: ( - HubSpotSDK::Models::Cms::ContentSearchResult::language - ) -> HubSpotSDK::Models::Cms::ContentSearchResult::language - - attr_reader published_date: Integer? - - def published_date=: (Integer) -> Integer - - attr_reader row_id: Integer? - - def row_id=: (Integer) -> Integer - - attr_reader subcategory: String? - - def subcategory=: (String) -> String - - attr_reader table_id: Integer? - - def table_id=: (Integer) -> Integer - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_reader title: String? - - def title=: (String) -> String - - def initialize: ( - id: Integer, - domain: String, - score: Float, - type: HubSpotSDK::Models::Cms::ContentSearchResult::type_, - url: String, - ?author_full_name: String, - ?category: String, - ?combined_id: String, - ?content_type: String, - ?description: String, - ?featured_image_url: String, - ?in_beta: bool, - ?is_private: bool, - ?language: HubSpotSDK::Models::Cms::ContentSearchResult::language, - ?published_date: Integer, - ?row_id: Integer, - ?subcategory: String, - ?table_id: Integer, - ?tags: ::Array[String], - ?title: String - ) -> void - - def to_hash: -> { - id: Integer, - domain: String, - score: Float, - type: HubSpotSDK::Models::Cms::ContentSearchResult::type_, - url: String, - author_full_name: String, - category: String, - combined_id: String, - content_type: String, - description: String, - featured_image_url: String, - in_beta: bool, - is_private: bool, - language: HubSpotSDK::Models::Cms::ContentSearchResult::language, - published_date: Integer, - row_id: Integer, - subcategory: String, - table_id: Integer, - tags: ::Array[String], - title: String - } - - type type_ = - :BLOG_POST - | :KNOWLEDGE_ARTICLE - | :LANDING_PAGE - | :LISTING_PAGE - | :SITE_PAGE - | :STRUCTURED_CONTENT - - module Type - extend HubSpotSDK::Internal::Type::Enum - - BLOG_POST: :BLOG_POST - KNOWLEDGE_ARTICLE: :KNOWLEDGE_ARTICLE - LANDING_PAGE: :LANDING_PAGE - LISTING_PAGE: :LISTING_PAGE - SITE_PAGE: :SITE_PAGE - STRUCTURED_CONTENT: :STRUCTURED_CONTENT - - def self?.values: -> ::Array[HubSpotSDK::Models::Cms::ContentSearchResult::type_] - end - - type language = - :aa - | :ab - | :ae - | :af - | :"af-na" - | :"af-za" - | :agq - | :"agq-cm" - | :ak - | :"ak-gh" - | :am - | :"am-et" - | :an - | :ann - | :"ann-ng" - | :ar - | :"ar-001" - | :"ar-ae" - | :"ar-bh" - | :"ar-dj" - | :"ar-dz" - | :"ar-eg" - | :"ar-eh" - | :"ar-er" - | :"ar-il" - | :"ar-iq" - | :"ar-jo" - | :"ar-km" - | :"ar-kw" - | :"ar-lb" - | :"ar-ly" - | :"ar-ma" - | :"ar-mr" - | :"ar-om" - | :"ar-ps" - | :"ar-qa" - | :"ar-sa" - | :"ar-sd" - | :"ar-so" - | :"ar-ss" - | :"ar-sy" - | :"ar-td" - | :"ar-tn" - | :"ar-ye" - | :as - | :"as-in" - | :asa - | :"asa-tz" - | :ast - | :"ast-es" - | :av - | :ay - | :az - | :"az-az" - | :ba - | :bas - | :"bas-cm" - | :be - | :"be-by" - | :bem - | :"bem-zm" - | :bez - | :"bez-tz" - | :bg - | :"bg-bg" - | :bgc - | :"bgc-in" - | :bho - | :"bho-in" - | :bi - | :bm - | :"bm-ml" - | :bn - | :"bn-bd" - | :"bn-in" - | :bo - | :"bo-cn" - | :"bo-in" - | :br - | :"br-fr" - | :brx - | :"brx-in" - | :bs - | :"bs-ba" - | :ca - | :"ca-ad" - | :"ca-es" - | :"ca-fr" - | :"ca-it" - | :ccp - | :"ccp-bd" - | :"ccp-in" - | :ce - | :"ce-ru" - | :ceb - | :"ceb-ph" - | :cgg - | :"cgg-ug" - | :ch - | :chr - | :"chr-us" - | :ckb - | :"ckb-iq" - | :"ckb-ir" - | :co - | :cr - | :cs - | :"cs-cz" - | :cu - | :"cu-ru" - | :cv - | :"cv-ru" - | :cy - | :"cy-gb" - | :da - | :"da-dk" - | :"da-gl" - | :dav - | :"dav-ke" - | :de - | :"de-at" - | :"de-be" - | :"de-ch" - | :"de-de" - | :"de-gr" - | :"de-it" - | :"de-li" - | :"de-lu" - | :dje - | :"dje-ne" - | :doi - | :"doi-in" - | :dsb - | :"dsb-de" - | :dua - | :"dua-cm" - | :dv - | :dyo - | :"dyo-sn" - | :dz - | :"dz-bt" - | :ebu - | :"ebu-ke" - | :ee - | :"ee-gh" - | :"ee-tg" - | :el - | :"el-cy" - | :"el-gr" - | :en - | :"en-001" - | :"en-150" - | :"en-ae" - | :"en-ag" - | :"en-ai" - | :"en-as" - | :"en-at" - | :"en-au" - | :"en-bb" - | :"en-be" - | :"en-bi" - | :"en-bm" - | :"en-bs" - | :"en-bw" - | :"en-bz" - | :"en-ca" - | :"en-cc" - | :"en-ch" - | :"en-ck" - | :"en-cm" - | :"en-cn" - | :"en-cx" - | :"en-cy" - | :"en-de" - | :"en-dg" - | :"en-dk" - | :"en-dm" - | :"en-ee" - | :"en-eg" - | :"en-er" - | :"en-es" - | :"en-fi" - | :"en-fj" - | :"en-fk" - | :"en-fm" - | :"en-fr" - | :"en-gb" - | :"en-gd" - | :"en-gg" - | :"en-gh" - | :"en-gi" - | :"en-gm" - | :"en-gu" - | :"en-gy" - | :"en-hk" - | :"en-id" - | :"en-ie" - | :"en-il" - | :"en-im" - | :"en-in" - | :"en-io" - | :"en-je" - | :"en-jm" - | :"en-ke" - | :"en-ki" - | :"en-kn" - | :"en-ky" - | :"en-lc" - | :"en-lr" - | :"en-ls" - | :"en-lu" - | :"en-mg" - | :"en-mh" - | :"en-mo" - | :"en-mp" - | :"en-ms" - | :"en-mt" - | :"en-mu" - | :"en-mv" - | :"en-mw" - | :"en-mx" - | :"en-my" - | :"en-na" - | :"en-nf" - | :"en-ng" - | :"en-nl" - | :"en-nr" - | :"en-nu" - | :"en-nz" - | :"en-pg" - | :"en-ph" - | :"en-pk" - | :"en-pn" - | :"en-pr" - | :"en-pt" - | :"en-pw" - | :"en-rw" - | :"en-sb" - | :"en-sc" - | :"en-sd" - | :"en-se" - | :"en-sg" - | :"en-sh" - | :"en-si" - | :"en-sl" - | :"en-ss" - | :"en-sx" - | :"en-sz" - | :"en-tc" - | :"en-th" - | :"en-tk" - | :"en-tn" - | :"en-to" - | :"en-tt" - | :"en-tv" - | :"en-tz" - | :"en-ug" - | :"en-um" - | :"en-us" - | :"en-vc" - | :"en-vg" - | :"en-vi" - | :"en-vn" - | :"en-vu" - | :"en-ws" - | :"en-za" - | :"en-zm" - | :"en-zw" - | :eo - | :"eo-001" - | :es - | :"es-419" - | :"es-ar" - | :"es-bo" - | :"es-br" - | :"es-bz" - | :"es-cl" - | :"es-co" - | :"es-cr" - | :"es-cu" - | :"es-do" - | :"es-ea" - | :"es-ec" - | :"es-es" - | :"es-gq" - | :"es-gt" - | :"es-hn" - | :"es-ic" - | :"es-mx" - | :"es-ni" - | :"es-pa" - | :"es-pe" - | :"es-ph" - | :"es-pr" - | :"es-py" - | :"es-sv" - | :"es-us" - | :"es-uy" - | :"es-ve" - | :et - | :"et-ee" - | :eu - | :"eu-es" - | :ewo - | :"ewo-cm" - | :fa - | :"fa-af" - | :"fa-ir" - | :ff - | :"ff-bf" - | :"ff-cm" - | :"ff-gh" - | :"ff-gm" - | :"ff-gn" - | :"ff-gw" - | :"ff-lr" - | :"ff-mr" - | :"ff-ne" - | :"ff-ng" - | :"ff-sl" - | :"ff-sn" - | :fi - | :"fi-fi" - | :fil - | :"fil-ph" - | :fj - | :fo - | :"fo-dk" - | :"fo-fo" - | :fr - | :"fr-be" - | :"fr-bf" - | :"fr-bi" - | :"fr-bj" - | :"fr-bl" - | :"fr-ca" - | :"fr-cd" - | :"fr-cf" - | :"fr-cg" - | :"fr-ch" - | :"fr-ci" - | :"fr-cm" - | :"fr-dj" - | :"fr-dz" - | :"fr-fr" - | :"fr-ga" - | :"fr-gf" - | :"fr-gn" - | :"fr-gp" - | :"fr-gq" - | :"fr-ht" - | :"fr-km" - | :"fr-lu" - | :"fr-ma" - | :"fr-mc" - | :"fr-mf" - | :"fr-mg" - | :"fr-ml" - | :"fr-mq" - | :"fr-mr" - | :"fr-mu" - | :"fr-nc" - | :"fr-ne" - | :"fr-pf" - | :"fr-pm" - | :"fr-re" - | :"fr-rw" - | :"fr-sc" - | :"fr-sn" - | :"fr-sy" - | :"fr-td" - | :"fr-tg" - | :"fr-tn" - | :"fr-vu" - | :"fr-wf" - | :"fr-yt" - | :frr - | :"frr-de" - | :fur - | :"fur-it" - | :fy - | :"fy-nl" - | :ga - | :"ga-gb" - | :"ga-ie" - | :gd - | :"gd-gb" - | :gl - | :"gl-es" - | :gn - | :gsw - | :"gsw-ch" - | :"gsw-fr" - | :"gsw-li" - | :gu - | :"gu-in" - | :guz - | :"guz-ke" - | :gv - | :"gv-im" - | :ha - | :"ha-gh" - | :"ha-ne" - | :"ha-ng" - | :haw - | :"haw-us" - | :he - | :"he-il" - | :hi - | :"hi-in" - | :hmn - | :ho - | :hr - | :"hr-ba" - | :"hr-hr" - | :hsb - | :"hsb-de" - | :ht - | :hu - | :"hu-hu" - | :hy - | :"hy-am" - | :hz - | :ia - | :"ia-001" - | :id - | :"id-id" - | :ie - | :ig - | :"ig-ng" - | :ii - | :"ii-cn" - | :ik - | :io - | :is - | :"is-is" - | :it - | :"it-ch" - | :"it-it" - | :"it-sm" - | :"it-va" - | :iu - | :ja - | :"ja-jp" - | :jgo - | :"jgo-cm" - | :jmc - | :"jmc-tz" - | :jv - | :"jv-id" - | :ka - | :"ka-ge" - | :kab - | :"kab-dz" - | :kam - | :"kam-ke" - | :kar - | :kde - | :"kde-tz" - | :kea - | :"kea-cv" - | :kg - | :kgp - | :"kgp-br" - | :kh - | :khq - | :"khq-ml" - | :ki - | :"ki-ke" - | :kj - | :kk - | :"kk-kz" - | :kkj - | :"kkj-cm" - | :kl - | :"kl-gl" - | :kln - | :"kln-ke" - | :km - | :"km-kh" - | :kn - | :"kn-in" - | :ko - | :"ko-kp" - | :"ko-kr" - | :kok - | :"kok-in" - | :kr - | :ks - | :"ks-in" - | :ksb - | :"ksb-tz" - | :ksf - | :"ksf-cm" - | :ksh - | :"ksh-de" - | :ku - | :"ku-tr" - | :kv - | :kw - | :"kw-gb" - | :ky - | :"ky-kg" - | :la - | :lag - | :"lag-tz" - | :lb - | :"lb-lu" - | :lg - | :"lg-ug" - | :li - | :lkt - | :"lkt-us" - | :ln - | :"ln-ao" - | :"ln-cd" - | :"ln-cf" - | :"ln-cg" - | :lo - | :"lo-la" - | :lrc - | :"lrc-iq" - | :"lrc-ir" - | :lt - | :"lt-lt" - | :lu - | :"lu-cd" - | :luo - | :"luo-ke" - | :luy - | :"luy-ke" - | :lv - | :"lv-lv" - | :mai - | :"mai-in" - | :mas - | :"mas-ke" - | :"mas-tz" - | :mdf - | :"mdf-ru" - | :mer - | :"mer-ke" - | :mfe - | :"mfe-mu" - | :mg - | :"mg-mg" - | :mgh - | :"mgh-mz" - | :mgo - | :"mgo-cm" - | :mh - | :mi - | :"mi-nz" - | :mk - | :"mk-mk" - | :ml - | :"ml-in" - | :mn - | :"mn-mn" - | :mni - | :"mni-in" - | :mr - | :"mr-in" - | :ms - | :"ms-bn" - | :"ms-id" - | :"ms-my" - | :"ms-sg" - | :mt - | :"mt-mt" - | :mua - | :"mua-cm" - | :my - | :"my-mm" - | :mzn - | :"mzn-ir" - | :na - | :naq - | :"naq-na" - | :nb - | :"nb-no" - | :"nb-sj" - | :nd - | :"nd-zw" - | :nds - | :"nds-de" - | :"nds-nl" - | :ne - | :"ne-in" - | :"ne-np" - | :ng - | :nl - | :"nl-aw" - | :"nl-be" - | :"nl-bq" - | :"nl-ch" - | :"nl-cw" - | :"nl-lu" - | :"nl-nl" - | :"nl-sr" - | :"nl-sx" - | :nmg - | :"nmg-cm" - | :nn - | :"nn-no" - | :nnh - | :"nnh-cm" - | :no - | :"no-no" - | :nr - | :nus - | :"nus-ss" - | :nv - | :ny - | :nyn - | :"nyn-ug" - | :oc - | :"oc-es" - | :"oc-fr" - | :oj - | :om - | :"om-et" - | :"om-ke" - | :or - | :"or-in" - | :os - | :"os-ge" - | :"os-ru" - | :pa - | :"pa-in" - | :"pa-pk" - | :pcm - | :"pcm-ng" - | :pi - | :pis - | :"pis-sb" - | :pl - | :"pl-pl" - | :prg - | :"prg-001" - | :ps - | :"ps-af" - | :"ps-pk" - | :pt - | :"pt-ao" - | :"pt-br" - | :"pt-ch" - | :"pt-cv" - | :"pt-gq" - | :"pt-gw" - | :"pt-lu" - | :"pt-mo" - | :"pt-mz" - | :"pt-pt" - | :"pt-st" - | :"pt-tl" - | :qu - | :"qu-bo" - | :"qu-ec" - | :"qu-pe" - | :raj - | :"raj-in" - | :rm - | :"rm-ch" - | :rn - | :"rn-bi" - | :ro - | :"ro-md" - | :"ro-ro" - | :rof - | :"rof-tz" - | :ru - | :"ru-by" - | :"ru-kg" - | :"ru-kz" - | :"ru-md" - | :"ru-ru" - | :"ru-ua" - | :rw - | :"rw-rw" - | :rwk - | :"rwk-tz" - | :sa - | :"sa-in" - | :sah - | :"sah-ru" - | :saq - | :"saq-ke" - | :sat - | :"sat-in" - | :sbp - | :"sbp-tz" - | :sc - | :"sc-it" - | :sd - | :"sd-in" - | :"sd-pk" - | :se - | :"se-fi" - | :"se-no" - | :"se-se" - | :seh - | :"seh-mz" - | :ses - | :"ses-ml" - | :sg - | :"sg-cf" - | :shi - | :"shi-ma" - | :si - | :"si-lk" - | :sk - | :"sk-sk" - | :sl - | :"sl-si" - | :sm - | :smn - | :"smn-fi" - | :sms - | :"sms-fi" - | :sn - | :"sn-zw" - | :so - | :"so-dj" - | :"so-et" - | :"so-ke" - | :"so-so" - | :sq - | :"sq-al" - | :"sq-mk" - | :"sq-xk" - | :sr - | :"sr-ba" - | :"sr-cs" - | :"sr-me" - | :"sr-rs" - | :"sr-xk" - | :ss - | :st - | :su - | :"su-id" - | :sv - | :"sv-ax" - | :"sv-fi" - | :"sv-se" - | :sw - | :"sw-cd" - | :"sw-ke" - | :"sw-tz" - | :"sw-ug" - | :sy - | :ta - | :"ta-in" - | :"ta-lk" - | :"ta-my" - | :"ta-sg" - | :te - | :"te-in" - | :teo - | :"teo-ke" - | :"teo-ug" - | :tg - | :"tg-tj" - | :th - | :"th-th" - | :ti - | :"ti-er" - | :"ti-et" - | :tk - | :"tk-tm" - | :tl - | :tn - | :to - | :"to-to" - | :tok - | :"tok-001" - | :tr - | :"tr-cy" - | :"tr-tr" - | :ts - | :tt - | :"tt-ru" - | :tw - | :twq - | :"twq-ne" - | :ty - | :tzm - | :"tzm-ma" - | :ug - | :"ug-cn" - | :uk - | :"uk-ua" - | :ur - | :"ur-in" - | :"ur-pk" - | :uz - | :"uz-af" - | :"uz-uz" - | :vai - | :"vai-lr" - | :ve - | :vi - | :"vi-vn" - | :vo - | :"vo-001" - | :vun - | :"vun-tz" - | :wa - | :wae - | :"wae-ch" - | :wo - | :"wo-sn" - | :xh - | :"xh-za" - | :xog - | :"xog-ug" - | :yav - | :"yav-cm" - | :yi - | :"yi-001" - | :yo - | :"yo-bj" - | :"yo-ng" - | :yrl - | :"yrl-br" - | :"yrl-co" - | :"yrl-ve" - | :yue - | :"yue-cn" - | :"yue-hk" - | :za - | :zgh - | :"zgh-ma" - | :zh - | :"zh-cn" - | :"zh-hans" - | :"zh-hant" - | :"zh-hk" - | :"zh-mo" - | :"zh-sg" - | :"zh-tw" - | :zu - | :"zu-za" - - module Language - extend HubSpotSDK::Internal::Type::Enum - - AA: :aa - AB: :ab - AE: :ae - AF: :af - AF_NA: :"af-na" - AF_ZA: :"af-za" - AGQ: :agq - AGQ_CM: :"agq-cm" - AK: :ak - AK_GH: :"ak-gh" - AM: :am - AM_ET: :"am-et" - AN: :an - ANN: :ann - ANN_NG: :"ann-ng" - AR: :ar - AR_001: :"ar-001" - AR_AE: :"ar-ae" - AR_BH: :"ar-bh" - AR_DJ: :"ar-dj" - AR_DZ: :"ar-dz" - AR_EG: :"ar-eg" - AR_EH: :"ar-eh" - AR_ER: :"ar-er" - AR_IL: :"ar-il" - AR_IQ: :"ar-iq" - AR_JO: :"ar-jo" - AR_KM: :"ar-km" - AR_KW: :"ar-kw" - AR_LB: :"ar-lb" - AR_LY: :"ar-ly" - AR_MA: :"ar-ma" - AR_MR: :"ar-mr" - AR_OM: :"ar-om" - AR_PS: :"ar-ps" - AR_QA: :"ar-qa" - AR_SA: :"ar-sa" - AR_SD: :"ar-sd" - AR_SO: :"ar-so" - AR_SS: :"ar-ss" - AR_SY: :"ar-sy" - AR_TD: :"ar-td" - AR_TN: :"ar-tn" - AR_YE: :"ar-ye" - AS: :as - AS_IN: :"as-in" - ASA: :asa - ASA_TZ: :"asa-tz" - AST: :ast - AST_ES: :"ast-es" - AV: :av - AY: :ay - AZ: :az - AZ_AZ: :"az-az" - BA: :ba - BAS: :bas - BAS_CM: :"bas-cm" - BE: :be - BE_BY: :"be-by" - BEM: :bem - BEM_ZM: :"bem-zm" - BEZ: :bez - BEZ_TZ: :"bez-tz" - BG: :bg - BG_BG: :"bg-bg" - BGC: :bgc - BGC_IN: :"bgc-in" - BHO: :bho - BHO_IN: :"bho-in" - BI: :bi - BM: :bm - BM_ML: :"bm-ml" - BN: :bn - BN_BD: :"bn-bd" - BN_IN: :"bn-in" - BO: :bo - BO_CN: :"bo-cn" - BO_IN: :"bo-in" - BR: :br - BR_FR: :"br-fr" - BRX: :brx - BRX_IN: :"brx-in" - BS: :bs - BS_BA: :"bs-ba" - CA: :ca - CA_AD: :"ca-ad" - CA_ES: :"ca-es" - CA_FR: :"ca-fr" - CA_IT: :"ca-it" - CCP: :ccp - CCP_BD: :"ccp-bd" - CCP_IN: :"ccp-in" - CE: :ce - CE_RU: :"ce-ru" - CEB: :ceb - CEB_PH: :"ceb-ph" - CGG: :cgg - CGG_UG: :"cgg-ug" - CH: :ch - CHR: :chr - CHR_US: :"chr-us" - CKB: :ckb - CKB_IQ: :"ckb-iq" - CKB_IR: :"ckb-ir" - CO: :co - CR: :cr - CS: :cs - CS_CZ: :"cs-cz" - CU: :cu - CU_RU: :"cu-ru" - CV: :cv - CV_RU: :"cv-ru" - CY: :cy - CY_GB: :"cy-gb" - DA: :da - DA_DK: :"da-dk" - DA_GL: :"da-gl" - DAV: :dav - DAV_KE: :"dav-ke" - DE: :de - DE_AT: :"de-at" - DE_BE: :"de-be" - DE_CH: :"de-ch" - DE_DE: :"de-de" - DE_GR: :"de-gr" - DE_IT: :"de-it" - DE_LI: :"de-li" - DE_LU: :"de-lu" - DJE: :dje - DJE_NE: :"dje-ne" - DOI: :doi - DOI_IN: :"doi-in" - DSB: :dsb - DSB_DE: :"dsb-de" - DUA: :dua - DUA_CM: :"dua-cm" - DV: :dv - DYO: :dyo - DYO_SN: :"dyo-sn" - DZ: :dz - DZ_BT: :"dz-bt" - EBU: :ebu - EBU_KE: :"ebu-ke" - EE: :ee - EE_GH: :"ee-gh" - EE_TG: :"ee-tg" - EL: :el - EL_CY: :"el-cy" - EL_GR: :"el-gr" - EN: :en - EN_001: :"en-001" - EN_150: :"en-150" - EN_AE: :"en-ae" - EN_AG: :"en-ag" - EN_AI: :"en-ai" - EN_AS: :"en-as" - EN_AT: :"en-at" - EN_AU: :"en-au" - EN_BB: :"en-bb" - EN_BE: :"en-be" - EN_BI: :"en-bi" - EN_BM: :"en-bm" - EN_BS: :"en-bs" - EN_BW: :"en-bw" - EN_BZ: :"en-bz" - EN_CA: :"en-ca" - EN_CC: :"en-cc" - EN_CH: :"en-ch" - EN_CK: :"en-ck" - EN_CM: :"en-cm" - EN_CN: :"en-cn" - EN_CX: :"en-cx" - EN_CY: :"en-cy" - EN_DE: :"en-de" - EN_DG: :"en-dg" - EN_DK: :"en-dk" - EN_DM: :"en-dm" - EN_EE: :"en-ee" - EN_EG: :"en-eg" - EN_ER: :"en-er" - EN_ES: :"en-es" - EN_FI: :"en-fi" - EN_FJ: :"en-fj" - EN_FK: :"en-fk" - EN_FM: :"en-fm" - EN_FR: :"en-fr" - EN_GB: :"en-gb" - EN_GD: :"en-gd" - EN_GG: :"en-gg" - EN_GH: :"en-gh" - EN_GI: :"en-gi" - EN_GM: :"en-gm" - EN_GU: :"en-gu" - EN_GY: :"en-gy" - EN_HK: :"en-hk" - EN_ID: :"en-id" - EN_IE: :"en-ie" - EN_IL: :"en-il" - EN_IM: :"en-im" - EN_IN: :"en-in" - EN_IO: :"en-io" - EN_JE: :"en-je" - EN_JM: :"en-jm" - EN_KE: :"en-ke" - EN_KI: :"en-ki" - EN_KN: :"en-kn" - EN_KY: :"en-ky" - EN_LC: :"en-lc" - EN_LR: :"en-lr" - EN_LS: :"en-ls" - EN_LU: :"en-lu" - EN_MG: :"en-mg" - EN_MH: :"en-mh" - EN_MO: :"en-mo" - EN_MP: :"en-mp" - EN_MS: :"en-ms" - EN_MT: :"en-mt" - EN_MU: :"en-mu" - EN_MV: :"en-mv" - EN_MW: :"en-mw" - EN_MX: :"en-mx" - EN_MY: :"en-my" - EN_NA: :"en-na" - EN_NF: :"en-nf" - EN_NG: :"en-ng" - EN_NL: :"en-nl" - EN_NR: :"en-nr" - EN_NU: :"en-nu" - EN_NZ: :"en-nz" - EN_PG: :"en-pg" - EN_PH: :"en-ph" - EN_PK: :"en-pk" - EN_PN: :"en-pn" - EN_PR: :"en-pr" - EN_PT: :"en-pt" - EN_PW: :"en-pw" - EN_RW: :"en-rw" - EN_SB: :"en-sb" - EN_SC: :"en-sc" - EN_SD: :"en-sd" - EN_SE: :"en-se" - EN_SG: :"en-sg" - EN_SH: :"en-sh" - EN_SI: :"en-si" - EN_SL: :"en-sl" - EN_SS: :"en-ss" - EN_SX: :"en-sx" - EN_SZ: :"en-sz" - EN_TC: :"en-tc" - EN_TH: :"en-th" - EN_TK: :"en-tk" - EN_TN: :"en-tn" - EN_TO: :"en-to" - EN_TT: :"en-tt" - EN_TV: :"en-tv" - EN_TZ: :"en-tz" - EN_UG: :"en-ug" - EN_UM: :"en-um" - EN_US: :"en-us" - EN_VC: :"en-vc" - EN_VG: :"en-vg" - EN_VI: :"en-vi" - EN_VN: :"en-vn" - EN_VU: :"en-vu" - EN_WS: :"en-ws" - EN_ZA: :"en-za" - EN_ZM: :"en-zm" - EN_ZW: :"en-zw" - EO: :eo - EO_001: :"eo-001" - ES: :es - ES_419: :"es-419" - ES_AR: :"es-ar" - ES_BO: :"es-bo" - ES_BR: :"es-br" - ES_BZ: :"es-bz" - ES_CL: :"es-cl" - ES_CO: :"es-co" - ES_CR: :"es-cr" - ES_CU: :"es-cu" - ES_DO: :"es-do" - ES_EA: :"es-ea" - ES_EC: :"es-ec" - ES_ES: :"es-es" - ES_GQ: :"es-gq" - ES_GT: :"es-gt" - ES_HN: :"es-hn" - ES_IC: :"es-ic" - ES_MX: :"es-mx" - ES_NI: :"es-ni" - ES_PA: :"es-pa" - ES_PE: :"es-pe" - ES_PH: :"es-ph" - ES_PR: :"es-pr" - ES_PY: :"es-py" - ES_SV: :"es-sv" - ES_US: :"es-us" - ES_UY: :"es-uy" - ES_VE: :"es-ve" - ET: :et - ET_EE: :"et-ee" - EU: :eu - EU_ES: :"eu-es" - EWO: :ewo - EWO_CM: :"ewo-cm" - FA: :fa - FA_AF: :"fa-af" - FA_IR: :"fa-ir" - FF: :ff - FF_BF: :"ff-bf" - FF_CM: :"ff-cm" - FF_GH: :"ff-gh" - FF_GM: :"ff-gm" - FF_GN: :"ff-gn" - FF_GW: :"ff-gw" - FF_LR: :"ff-lr" - FF_MR: :"ff-mr" - FF_NE: :"ff-ne" - FF_NG: :"ff-ng" - FF_SL: :"ff-sl" - FF_SN: :"ff-sn" - FI: :fi - FI_FI: :"fi-fi" - FIL: :fil - FIL_PH: :"fil-ph" - FJ: :fj - FO: :fo - FO_DK: :"fo-dk" - FO_FO: :"fo-fo" - FR: :fr - FR_BE: :"fr-be" - FR_BF: :"fr-bf" - FR_BI: :"fr-bi" - FR_BJ: :"fr-bj" - FR_BL: :"fr-bl" - FR_CA: :"fr-ca" - FR_CD: :"fr-cd" - FR_CF: :"fr-cf" - FR_CG: :"fr-cg" - FR_CH: :"fr-ch" - FR_CI: :"fr-ci" - FR_CM: :"fr-cm" - FR_DJ: :"fr-dj" - FR_DZ: :"fr-dz" - FR_FR: :"fr-fr" - FR_GA: :"fr-ga" - FR_GF: :"fr-gf" - FR_GN: :"fr-gn" - FR_GP: :"fr-gp" - FR_GQ: :"fr-gq" - FR_HT: :"fr-ht" - FR_KM: :"fr-km" - FR_LU: :"fr-lu" - FR_MA: :"fr-ma" - FR_MC: :"fr-mc" - FR_MF: :"fr-mf" - FR_MG: :"fr-mg" - FR_ML: :"fr-ml" - FR_MQ: :"fr-mq" - FR_MR: :"fr-mr" - FR_MU: :"fr-mu" - FR_NC: :"fr-nc" - FR_NE: :"fr-ne" - FR_PF: :"fr-pf" - FR_PM: :"fr-pm" - FR_RE: :"fr-re" - FR_RW: :"fr-rw" - FR_SC: :"fr-sc" - FR_SN: :"fr-sn" - FR_SY: :"fr-sy" - FR_TD: :"fr-td" - FR_TG: :"fr-tg" - FR_TN: :"fr-tn" - FR_VU: :"fr-vu" - FR_WF: :"fr-wf" - FR_YT: :"fr-yt" - FRR: :frr - FRR_DE: :"frr-de" - FUR: :fur - FUR_IT: :"fur-it" - FY: :fy - FY_NL: :"fy-nl" - GA: :ga - GA_GB: :"ga-gb" - GA_IE: :"ga-ie" - GD: :gd - GD_GB: :"gd-gb" - GL: :gl - GL_ES: :"gl-es" - GN: :gn - GSW: :gsw - GSW_CH: :"gsw-ch" - GSW_FR: :"gsw-fr" - GSW_LI: :"gsw-li" - GU: :gu - GU_IN: :"gu-in" - GUZ: :guz - GUZ_KE: :"guz-ke" - GV: :gv - GV_IM: :"gv-im" - HA: :ha - HA_GH: :"ha-gh" - HA_NE: :"ha-ne" - HA_NG: :"ha-ng" - HAW: :haw - HAW_US: :"haw-us" - HE: :he - HE_IL: :"he-il" - HI: :hi - HI_IN: :"hi-in" - HMN: :hmn - HO: :ho - HR: :hr - HR_BA: :"hr-ba" - HR_HR: :"hr-hr" - HSB: :hsb - HSB_DE: :"hsb-de" - HT: :ht - HU: :hu - HU_HU: :"hu-hu" - HY: :hy - HY_AM: :"hy-am" - HZ: :hz - IA: :ia - IA_001: :"ia-001" - ID: :id - ID_ID: :"id-id" - IE: :ie - IG: :ig - IG_NG: :"ig-ng" - II: :ii - II_CN: :"ii-cn" - IK: :ik - IO: :io - IS: :is - IS_IS: :"is-is" - IT: :it - IT_CH: :"it-ch" - IT_IT: :"it-it" - IT_SM: :"it-sm" - IT_VA: :"it-va" - IU: :iu - JA: :ja - JA_JP: :"ja-jp" - JGO: :jgo - JGO_CM: :"jgo-cm" - JMC: :jmc - JMC_TZ: :"jmc-tz" - JV: :jv - JV_ID: :"jv-id" - KA: :ka - KA_GE: :"ka-ge" - KAB: :kab - KAB_DZ: :"kab-dz" - KAM: :kam - KAM_KE: :"kam-ke" - KAR: :kar - KDE: :kde - KDE_TZ: :"kde-tz" - KEA: :kea - KEA_CV: :"kea-cv" - KG: :kg - KGP: :kgp - KGP_BR: :"kgp-br" - KH: :kh - KHQ: :khq - KHQ_ML: :"khq-ml" - KI: :ki - KI_KE: :"ki-ke" - KJ: :kj - KK: :kk - KK_KZ: :"kk-kz" - KKJ: :kkj - KKJ_CM: :"kkj-cm" - KL: :kl - KL_GL: :"kl-gl" - KLN: :kln - KLN_KE: :"kln-ke" - KM: :km - KM_KH: :"km-kh" - KN: :kn - KN_IN: :"kn-in" - KO: :ko - KO_KP: :"ko-kp" - KO_KR: :"ko-kr" - KOK: :kok - KOK_IN: :"kok-in" - KR: :kr - KS: :ks - KS_IN: :"ks-in" - KSB: :ksb - KSB_TZ: :"ksb-tz" - KSF: :ksf - KSF_CM: :"ksf-cm" - KSH: :ksh - KSH_DE: :"ksh-de" - KU: :ku - KU_TR: :"ku-tr" - KV: :kv - KW: :kw - KW_GB: :"kw-gb" - KY: :ky - KY_KG: :"ky-kg" - LA: :la - LAG: :lag - LAG_TZ: :"lag-tz" - LB: :lb - LB_LU: :"lb-lu" - LG: :lg - LG_UG: :"lg-ug" - LI: :li - LKT: :lkt - LKT_US: :"lkt-us" - LN: :ln - LN_AO: :"ln-ao" - LN_CD: :"ln-cd" - LN_CF: :"ln-cf" - LN_CG: :"ln-cg" - LO: :lo - LO_LA: :"lo-la" - LRC: :lrc - LRC_IQ: :"lrc-iq" - LRC_IR: :"lrc-ir" - LT: :lt - LT_LT: :"lt-lt" - LU: :lu - LU_CD: :"lu-cd" - LUO: :luo - LUO_KE: :"luo-ke" - LUY: :luy - LUY_KE: :"luy-ke" - LV: :lv - LV_LV: :"lv-lv" - MAI: :mai - MAI_IN: :"mai-in" - MAS: :mas - MAS_KE: :"mas-ke" - MAS_TZ: :"mas-tz" - MDF: :mdf - MDF_RU: :"mdf-ru" - MER: :mer - MER_KE: :"mer-ke" - MFE: :mfe - MFE_MU: :"mfe-mu" - MG: :mg - MG_MG: :"mg-mg" - MGH: :mgh - MGH_MZ: :"mgh-mz" - MGO: :mgo - MGO_CM: :"mgo-cm" - MH: :mh - MI: :mi - MI_NZ: :"mi-nz" - MK: :mk - MK_MK: :"mk-mk" - ML: :ml - ML_IN: :"ml-in" - MN: :mn - MN_MN: :"mn-mn" - MNI: :mni - MNI_IN: :"mni-in" - MR: :mr - MR_IN: :"mr-in" - MS: :ms - MS_BN: :"ms-bn" - MS_ID: :"ms-id" - MS_MY: :"ms-my" - MS_SG: :"ms-sg" - MT: :mt - MT_MT: :"mt-mt" - MUA: :mua - MUA_CM: :"mua-cm" - MY: :my - MY_MM: :"my-mm" - MZN: :mzn - MZN_IR: :"mzn-ir" - NA: :na - NAQ: :naq - NAQ_NA: :"naq-na" - NB: :nb - NB_NO: :"nb-no" - NB_SJ: :"nb-sj" - ND: :nd - ND_ZW: :"nd-zw" - NDS: :nds - NDS_DE: :"nds-de" - NDS_NL: :"nds-nl" - NE: :ne - NE_IN: :"ne-in" - NE_NP: :"ne-np" - NG: :ng - NL: :nl - NL_AW: :"nl-aw" - NL_BE: :"nl-be" - NL_BQ: :"nl-bq" - NL_CH: :"nl-ch" - NL_CW: :"nl-cw" - NL_LU: :"nl-lu" - NL_NL: :"nl-nl" - NL_SR: :"nl-sr" - NL_SX: :"nl-sx" - NMG: :nmg - NMG_CM: :"nmg-cm" - NN: :nn - NN_NO: :"nn-no" - NNH: :nnh - NNH_CM: :"nnh-cm" - NO: :no - NO_NO: :"no-no" - NR: :nr - NUS: :nus - NUS_SS: :"nus-ss" - NV: :nv - NY: :ny - NYN: :nyn - NYN_UG: :"nyn-ug" - OC: :oc - OC_ES: :"oc-es" - OC_FR: :"oc-fr" - OJ: :oj - OM: :om - OM_ET: :"om-et" - OM_KE: :"om-ke" - OR: :or - OR_IN: :"or-in" - OS: :os - OS_GE: :"os-ge" - OS_RU: :"os-ru" - PA: :pa - PA_IN: :"pa-in" - PA_PK: :"pa-pk" - PCM: :pcm - PCM_NG: :"pcm-ng" - PI: :pi - PIS: :pis - PIS_SB: :"pis-sb" - PL: :pl - PL_PL: :"pl-pl" - PRG: :prg - PRG_001: :"prg-001" - PS: :ps - PS_AF: :"ps-af" - PS_PK: :"ps-pk" - PT: :pt - PT_AO: :"pt-ao" - PT_BR: :"pt-br" - PT_CH: :"pt-ch" - PT_CV: :"pt-cv" - PT_GQ: :"pt-gq" - PT_GW: :"pt-gw" - PT_LU: :"pt-lu" - PT_MO: :"pt-mo" - PT_MZ: :"pt-mz" - PT_PT: :"pt-pt" - PT_ST: :"pt-st" - PT_TL: :"pt-tl" - QU: :qu - QU_BO: :"qu-bo" - QU_EC: :"qu-ec" - QU_PE: :"qu-pe" - RAJ: :raj - RAJ_IN: :"raj-in" - RM: :rm - RM_CH: :"rm-ch" - RN: :rn - RN_BI: :"rn-bi" - RO: :ro - RO_MD: :"ro-md" - RO_RO: :"ro-ro" - ROF: :rof - ROF_TZ: :"rof-tz" - RU: :ru - RU_BY: :"ru-by" - RU_KG: :"ru-kg" - RU_KZ: :"ru-kz" - RU_MD: :"ru-md" - RU_RU: :"ru-ru" - RU_UA: :"ru-ua" - RW: :rw - RW_RW: :"rw-rw" - RWK: :rwk - RWK_TZ: :"rwk-tz" - SA: :sa - SA_IN: :"sa-in" - SAH: :sah - SAH_RU: :"sah-ru" - SAQ: :saq - SAQ_KE: :"saq-ke" - SAT: :sat - SAT_IN: :"sat-in" - SBP: :sbp - SBP_TZ: :"sbp-tz" - SC: :sc - SC_IT: :"sc-it" - SD: :sd - SD_IN: :"sd-in" - SD_PK: :"sd-pk" - SE: :se - SE_FI: :"se-fi" - SE_NO: :"se-no" - SE_SE: :"se-se" - SEH: :seh - SEH_MZ: :"seh-mz" - SES: :ses - SES_ML: :"ses-ml" - SG: :sg - SG_CF: :"sg-cf" - SHI: :shi - SHI_MA: :"shi-ma" - SI: :si - SI_LK: :"si-lk" - SK: :sk - SK_SK: :"sk-sk" - SL: :sl - SL_SI: :"sl-si" - SM: :sm - SMN: :smn - SMN_FI: :"smn-fi" - SMS: :sms - SMS_FI: :"sms-fi" - SN: :sn - SN_ZW: :"sn-zw" - SO: :so - SO_DJ: :"so-dj" - SO_ET: :"so-et" - SO_KE: :"so-ke" - SO_SO: :"so-so" - SQ: :sq - SQ_AL: :"sq-al" - SQ_MK: :"sq-mk" - SQ_XK: :"sq-xk" - SR: :sr - SR_BA: :"sr-ba" - SR_CS: :"sr-cs" - SR_ME: :"sr-me" - SR_RS: :"sr-rs" - SR_XK: :"sr-xk" - SS: :ss - ST: :st - SU: :su - SU_ID: :"su-id" - SV: :sv - SV_AX: :"sv-ax" - SV_FI: :"sv-fi" - SV_SE: :"sv-se" - SW: :sw - SW_CD: :"sw-cd" - SW_KE: :"sw-ke" - SW_TZ: :"sw-tz" - SW_UG: :"sw-ug" - SY: :sy - TA: :ta - TA_IN: :"ta-in" - TA_LK: :"ta-lk" - TA_MY: :"ta-my" - TA_SG: :"ta-sg" - TE: :te - TE_IN: :"te-in" - TEO: :teo - TEO_KE: :"teo-ke" - TEO_UG: :"teo-ug" - TG: :tg - TG_TJ: :"tg-tj" - TH: :th - TH_TH: :"th-th" - TI: :ti - TI_ER: :"ti-er" - TI_ET: :"ti-et" - TK: :tk - TK_TM: :"tk-tm" - TL: :tl - TN: :tn - TO: :to - TO_TO: :"to-to" - TOK: :tok - TOK_001: :"tok-001" - TR: :tr - TR_CY: :"tr-cy" - TR_TR: :"tr-tr" - TS: :ts - TT: :tt - TT_RU: :"tt-ru" - TW: :tw - TWQ: :twq - TWQ_NE: :"twq-ne" - TY: :ty - TZM: :tzm - TZM_MA: :"tzm-ma" - UG: :ug - UG_CN: :"ug-cn" - UK: :uk - UK_UA: :"uk-ua" - UR: :ur - UR_IN: :"ur-in" - UR_PK: :"ur-pk" - UZ: :uz - UZ_AF: :"uz-af" - UZ_UZ: :"uz-uz" - VAI: :vai - VAI_LR: :"vai-lr" - VE: :ve - VI: :vi - VI_VN: :"vi-vn" - VO: :vo - VO_001: :"vo-001" - VUN: :vun - VUN_TZ: :"vun-tz" - WA: :wa - WAE: :wae - WAE_CH: :"wae-ch" - WO: :wo - WO_SN: :"wo-sn" - XH: :xh - XH_ZA: :"xh-za" - XOG: :xog - XOG_UG: :"xog-ug" - YAV: :yav - YAV_CM: :"yav-cm" - YI: :yi - YI_001: :"yi-001" - YO: :yo - YO_BJ: :"yo-bj" - YO_NG: :"yo-ng" - YRL: :yrl - YRL_BR: :"yrl-br" - YRL_CO: :"yrl-co" - YRL_VE: :"yrl-ve" - YUE: :yue - YUE_CN: :"yue-cn" - YUE_HK: :"yue-hk" - ZA: :za - ZGH: :zgh - ZGH_MA: :"zgh-ma" - ZH: :zh - ZH_CN: :"zh-cn" - ZH_HANS: :"zh-hans" - ZH_HANT: :"zh-hant" - ZH_HK: :"zh-hk" - ZH_MO: :"zh-mo" - ZH_SG: :"zh-sg" - ZH_TW: :"zh-tw" - ZU: :zu - ZU_ZA: :"zu-za" - - def self?.values: -> ::Array[HubSpotSDK::Models::Cms::ContentSearchResult::language] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/cms/inbound_db_object_type.rbs b/sig/hubspot_sdk/models/cms/inbound_db_object_type.rbs index cc16c9c9..3ab9305b 100644 --- a/sig/hubspot_sdk/models/cms/inbound_db_object_type.rbs +++ b/sig/hubspot_sdk/models/cms/inbound_db_object_type.rbs @@ -41,6 +41,7 @@ module HubSpotSDK read_scope_name: String, singular_form: String, status: HubSpotSDK::Models::Cms::InboundDBObjectType::status, + visibilities: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility], visibility: HubSpotSDK::Models::Cms::InboundDBObjectType::visibility, write_scope_name: String } @@ -150,6 +151,12 @@ module HubSpotSDK HubSpotSDK::Models::Cms::InboundDBObjectType::status ) -> HubSpotSDK::Models::Cms::InboundDBObjectType::status + attr_reader visibilities: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility]? + + def visibilities=: ( + ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility] + ) -> ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility] + attr_reader visibility: HubSpotSDK::Models::Cms::InboundDBObjectType::visibility? def visibility=: ( @@ -199,6 +206,7 @@ module HubSpotSDK ?read_scope_name: String, ?singular_form: String, ?status: HubSpotSDK::Models::Cms::InboundDBObjectType::status, + ?visibilities: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility], ?visibility: HubSpotSDK::Models::Cms::InboundDBObjectType::visibility, ?write_scope_name: String ) -> void @@ -242,6 +250,7 @@ module HubSpotSDK read_scope_name: String, singular_form: String, status: HubSpotSDK::Models::Cms::InboundDBObjectType::status, + visibilities: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility], visibility: HubSpotSDK::Models::Cms::InboundDBObjectType::visibility, write_scope_name: String } @@ -306,17 +315,17 @@ module HubSpotSDK type visibility = :"Customer-facing" - | :"Customer-facing public API" - | :"Customer-facing UI" | :"Internal only" + | :"Customer-facing UI" + | :"Customer-facing public API" module Visibility extend HubSpotSDK::Internal::Type::Enum CUSTOMER_FACING: :"Customer-facing" - CUSTOMER_FACING_PUBLIC_API: :"Customer-facing public API" - CUSTOMER_FACING_UI: :"Customer-facing UI" INTERNAL_ONLY: :"Internal only" + CUSTOMER_FACING_UI: :"Customer-facing UI" + CUSTOMER_FACING_PUBLIC_API: :"Customer-facing public API" def self?.values: -> ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility] end diff --git a/sig/hubspot_sdk/models/cms/public_search_results.rbs b/sig/hubspot_sdk/models/cms/public_search_results.rbs deleted file mode 100644 index c773ebde..00000000 --- a/sig/hubspot_sdk/models/cms/public_search_results.rbs +++ /dev/null @@ -1,49 +0,0 @@ -module HubSpotSDK - module Models - module Cms - type public_search_results = - { - limit: Integer, - offset: Integer, - page: Integer, - results: ::Array[HubSpotSDK::Cms::ContentSearchResult], - total: Integer, - search_term: String - } - - class PublicSearchResults < HubSpotSDK::Internal::Type::BaseModel - attr_accessor limit: Integer - - attr_accessor offset: Integer - - attr_accessor page: Integer - - attr_accessor results: ::Array[HubSpotSDK::Cms::ContentSearchResult] - - attr_accessor total: Integer - - attr_reader search_term: String? - - def search_term=: (String) -> String - - def initialize: ( - limit: Integer, - offset: Integer, - page: Integer, - results: ::Array[HubSpotSDK::Cms::ContentSearchResult], - total: Integer, - ?search_term: String - ) -> void - - def to_hash: -> { - limit: Integer, - offset: Integer, - page: Integer, - results: ::Array[HubSpotSDK::Cms::ContentSearchResult], - total: Integer, - search_term: String - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rbs b/sig/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rbs new file mode 100644 index 00000000..2f66d1e3 --- /dev/null +++ b/sig/hubspot_sdk/models/cms/url_redirect_create_url_mapping_params.rbs @@ -0,0 +1,17 @@ +module HubSpotSDK + module Models + module Cms + type url_redirect_create_url_mapping_params = + { } & HubSpotSDK::Internal::Type::request_parameters + + class URLRedirectCreateURLMappingParams < HubSpotSDK::Models::Cms::URLMapping + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + def initialize: (?request_options: HubSpotSDK::request_opts) -> void + + def to_hash: -> { request_options: HubSpotSDK::RequestOptions } + end + end + end +end diff --git a/sig/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rbs b/sig/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rbs new file mode 100644 index 00000000..648c1830 --- /dev/null +++ b/sig/hubspot_sdk/models/cms/url_redirect_delete_url_mapping_params.rbs @@ -0,0 +1,25 @@ +module HubSpotSDK + module Models + module Cms + type url_redirect_delete_url_mapping_params = + { id: Integer } & HubSpotSDK::Internal::Type::request_parameters + + class URLRedirectDeleteURLMappingParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor id: Integer + + def initialize: ( + id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rbs b/sig/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rbs new file mode 100644 index 00000000..b97683e1 --- /dev/null +++ b/sig/hubspot_sdk/models/cms/url_redirect_get_url_mapping_params.rbs @@ -0,0 +1,25 @@ +module HubSpotSDK + module Models + module Cms + type url_redirect_get_url_mapping_params = + { id: Integer } & HubSpotSDK::Internal::Type::request_parameters + + class URLRedirectGetURLMappingParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor id: Integer + + def initialize: ( + id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rbs b/sig/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rbs new file mode 100644 index 00000000..e82cda38 --- /dev/null +++ b/sig/hubspot_sdk/models/cms/url_redirect_list_url_mappings_params.rbs @@ -0,0 +1,17 @@ +module HubSpotSDK + module Models + module Cms + type url_redirect_list_url_mappings_params = + { } & HubSpotSDK::Internal::Type::request_parameters + + class URLRedirectListURLMappingsParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + def initialize: (?request_options: HubSpotSDK::request_opts) -> void + + def to_hash: -> { request_options: HubSpotSDK::RequestOptions } + end + end + end +end diff --git a/sig/hubspot_sdk/models/condition.rbs b/sig/hubspot_sdk/models/condition.rbs new file mode 100644 index 00000000..54686463 --- /dev/null +++ b/sig/hubspot_sdk/models/condition.rbs @@ -0,0 +1,89 @@ +module HubSpotSDK + module Models + type condition = + { + filter_type: HubSpotSDK::Models::Condition::filter_type, + operator: HubSpotSDK::Models::Condition::operator, + property: String, + value: String, + values: ::Array[String] + } + + class Condition < HubSpotSDK::Internal::Type::BaseModel + attr_accessor filter_type: HubSpotSDK::Models::Condition::filter_type + + attr_accessor operator: HubSpotSDK::Models::Condition::operator + + attr_accessor property: String + + attr_reader value: String? + + def value=: (String) -> String + + attr_reader values: ::Array[String]? + + def values=: (::Array[String]) -> ::Array[String] + + def initialize: ( + filter_type: HubSpotSDK::Models::Condition::filter_type, + operator: HubSpotSDK::Models::Condition::operator, + property: String, + ?value: String, + ?values: ::Array[String] + ) -> void + + def to_hash: -> { + filter_type: HubSpotSDK::Models::Condition::filter_type, + operator: HubSpotSDK::Models::Condition::operator, + property: String, + value: String, + values: ::Array[String] + } + + type filter_type = :CRM_OBJECT_PROPERTY + + module FilterType + extend HubSpotSDK::Internal::Type::Enum + + CRM_OBJECT_PROPERTY: :CRM_OBJECT_PROPERTY + + def self?.values: -> ::Array[HubSpotSDK::Models::Condition::filter_type] + end + + type operator = + :CONTAINS + | :ENDS_WITH + | :EQ + | :GT + | :GTE + | :IN + | :IS_EMPTY + | :IS_NOT_EMPTY + | :LT + | :LTE + | :N_EQ + | :NOT_IN + | :STARTS_WITH + + module Operator + extend HubSpotSDK::Internal::Type::Enum + + CONTAINS: :CONTAINS + ENDS_WITH: :ENDS_WITH + EQ: :EQ + GT: :GT + GTE: :GTE + IN: :IN + IS_EMPTY: :IS_EMPTY + IS_NOT_EMPTY: :IS_NOT_EMPTY + LT: :LT + LTE: :LTE + N_EQ: :N_EQ + NOT_IN: :NOT_IN + STARTS_WITH: :STARTS_WITH + + def self?.values: -> ::Array[HubSpotSDK::Models::Condition::operator] + end + end + end +end diff --git a/sig/hubspot_sdk/models/conversations/identification_token_generation_request.rbs b/sig/hubspot_sdk/models/conversations/identification_token_generation_request.rbs index a250d3de..82e39e7a 100644 --- a/sig/hubspot_sdk/models/conversations/identification_token_generation_request.rbs +++ b/sig/hubspot_sdk/models/conversations/identification_token_generation_request.rbs @@ -2,11 +2,18 @@ module HubSpotSDK module Models module Conversations type identification_token_generation_request = - { email: String, first_name: String, last_name: String } + { + email: String, + hs_customer_agent_context: ::Hash[Symbol, String], + first_name: String, + last_name: String + } class IdentificationTokenGenerationRequest < HubSpotSDK::Internal::Type::BaseModel attr_accessor email: String + attr_accessor hs_customer_agent_context: ::Hash[Symbol, String] + attr_reader first_name: String? def first_name=: (String) -> String @@ -17,11 +24,17 @@ module HubSpotSDK def initialize: ( email: String, + hs_customer_agent_context: ::Hash[Symbol, String], ?first_name: String, ?last_name: String ) -> void - def to_hash: -> { email: String, first_name: String, last_name: String } + def to_hash: -> { + email: String, + hs_customer_agent_context: ::Hash[Symbol, String], + first_name: String, + last_name: String + } end end end diff --git a/sig/hubspot_sdk/models/conversations/pre_resolved_contact.rbs b/sig/hubspot_sdk/models/conversations/pre_resolved_contact.rbs index 5cb8e7f3..21f758fa 100644 --- a/sig/hubspot_sdk/models/conversations/pre_resolved_contact.rbs +++ b/sig/hubspot_sdk/models/conversations/pre_resolved_contact.rbs @@ -298,6 +298,7 @@ module HubSpotSDK | :hs_social_twitter_clicks | :hs_source_object_id | :hs_source_portal_id + | :hs_sourced_contact_origin | :hs_state_code | :hs_sub_role | :hs_testpurge @@ -691,6 +692,7 @@ module HubSpotSDK HS_SOCIAL_TWITTER_CLICKS: :hs_social_twitter_clicks HS_SOURCE_OBJECT_ID: :hs_source_object_id HS_SOURCE_PORTAL_ID: :hs_source_portal_id + HS_SOURCED_CONTACT_ORIGIN: :hs_sourced_contact_origin HS_STATE_CODE: :hs_state_code HS_SUB_ROLE: :hs_sub_role HS_TESTPURGE: :hs_testpurge diff --git a/sig/hubspot_sdk/models/crm/filter.rbs b/sig/hubspot_sdk/models/crm/crm_filter.rbs similarity index 81% rename from sig/hubspot_sdk/models/crm/filter.rbs rename to sig/hubspot_sdk/models/crm/crm_filter.rbs index 81b7e06b..a421ca38 100644 --- a/sig/hubspot_sdk/models/crm/filter.rbs +++ b/sig/hubspot_sdk/models/crm/crm_filter.rbs @@ -1,17 +1,17 @@ module HubSpotSDK module Models module Crm - type filter = + type crm_filter = { - operator: HubSpotSDK::Models::Crm::Filter::operator, + operator: HubSpotSDK::Models::Crm::CrmFilter::operator, property_name: String, high_value: String, value: String, values: ::Array[String] } - class Filter < HubSpotSDK::Internal::Type::BaseModel - attr_accessor operator: HubSpotSDK::Models::Crm::Filter::operator + class CrmFilter < HubSpotSDK::Internal::Type::BaseModel + attr_accessor operator: HubSpotSDK::Models::Crm::CrmFilter::operator attr_accessor property_name: String @@ -28,7 +28,7 @@ module HubSpotSDK def values=: (::Array[String]) -> ::Array[String] def initialize: ( - operator: HubSpotSDK::Models::Crm::Filter::operator, + operator: HubSpotSDK::Models::Crm::CrmFilter::operator, property_name: String, ?high_value: String, ?value: String, @@ -36,7 +36,7 @@ module HubSpotSDK ) -> void def to_hash: -> { - operator: HubSpotSDK::Models::Crm::Filter::operator, + operator: HubSpotSDK::Models::Crm::CrmFilter::operator, property_name: String, high_value: String, value: String, @@ -75,7 +75,7 @@ module HubSpotSDK NOT_HAS_PROPERTY: :NOT_HAS_PROPERTY NOT_IN: :NOT_IN - def self?.values: -> ::Array[HubSpotSDK::Models::Crm::Filter::operator] + def self?.values: -> ::Array[HubSpotSDK::Models::Crm::CrmFilter::operator] end end end diff --git a/sig/hubspot_sdk/models/crm/filter_group.rbs b/sig/hubspot_sdk/models/crm/filter_group.rbs index d6895257..38166954 100644 --- a/sig/hubspot_sdk/models/crm/filter_group.rbs +++ b/sig/hubspot_sdk/models/crm/filter_group.rbs @@ -1,14 +1,14 @@ module HubSpotSDK module Models module Crm - type filter_group = { filters: ::Array[HubSpotSDK::Crm::Filter] } + type filter_group = { filters: ::Array[HubSpotSDK::Crm::CrmFilter] } class FilterGroup < HubSpotSDK::Internal::Type::BaseModel - attr_accessor filters: ::Array[HubSpotSDK::Crm::Filter] + attr_accessor filters: ::Array[HubSpotSDK::Crm::CrmFilter] - def initialize: (filters: ::Array[HubSpotSDK::Crm::Filter]) -> void + def initialize: (filters: ::Array[HubSpotSDK::Crm::CrmFilter]) -> void - def to_hash: -> { filters: ::Array[HubSpotSDK::Crm::Filter] } + def to_hash: -> { filters: ::Array[HubSpotSDK::Crm::CrmFilter] } end end end diff --git a/sig/hubspot_sdk/models/crm/list_create_request.rbs b/sig/hubspot_sdk/models/crm/list_create_request.rbs index 78d523da..9d1441b2 100644 --- a/sig/hubspot_sdk/models/crm/list_create_request.rbs +++ b/sig/hubspot_sdk/models/crm/list_create_request.rbs @@ -77,7 +77,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch diff --git a/sig/hubspot_sdk/models/crm/list_filter_update_request.rbs b/sig/hubspot_sdk/models/crm/list_filter_update_request.rbs index a5bb296e..42d8af3a 100644 --- a/sig/hubspot_sdk/models/crm/list_filter_update_request.rbs +++ b/sig/hubspot_sdk/models/crm/list_filter_update_request.rbs @@ -24,7 +24,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch diff --git a/sig/hubspot_sdk/models/crm/public_and_filter_branch.rbs b/sig/hubspot_sdk/models/crm/public_and_filter_branch.rbs index 0b95dbea..f8dc6062 100644 --- a/sig/hubspot_sdk/models/crm/public_and_filter_branch.rbs +++ b/sig/hubspot_sdk/models/crm/public_and_filter_branch.rbs @@ -39,7 +39,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch @@ -69,7 +68,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicIntegrationEventFilter | HubSpotSDK::Crm::PublicEmailSubscriptionFilter | HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter - | HubSpotSDK::Crm::PublicCampaignInfluencedFilter | HubSpotSDK::Crm::PublicSurveyMonkeyFilter | HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter | HubSpotSDK::Crm::PublicWebinarFilter @@ -78,9 +76,7 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicAdsSearchFilter | HubSpotSDK::Crm::PublicAdsTimeFilter | HubSpotSDK::Crm::PublicInListFilter - | HubSpotSDK::Crm::PublicNumAssociationsFilter | HubSpotSDK::Crm::PublicUnifiedEventsFilter - | HubSpotSDK::Crm::PublicPropertyAssociationInListFilter | HubSpotSDK::Crm::PublicConstantFilter module Filter diff --git a/sig/hubspot_sdk/models/crm/public_association_filter_branch.rbs b/sig/hubspot_sdk/models/crm/public_association_filter_branch.rbs index 35a909f4..054f3267 100644 --- a/sig/hubspot_sdk/models/crm/public_association_filter_branch.rbs +++ b/sig/hubspot_sdk/models/crm/public_association_filter_branch.rbs @@ -59,7 +59,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch @@ -89,7 +88,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicIntegrationEventFilter | HubSpotSDK::Crm::PublicEmailSubscriptionFilter | HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter - | HubSpotSDK::Crm::PublicCampaignInfluencedFilter | HubSpotSDK::Crm::PublicSurveyMonkeyFilter | HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter | HubSpotSDK::Crm::PublicWebinarFilter @@ -98,9 +96,7 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicAdsSearchFilter | HubSpotSDK::Crm::PublicAdsTimeFilter | HubSpotSDK::Crm::PublicInListFilter - | HubSpotSDK::Crm::PublicNumAssociationsFilter | HubSpotSDK::Crm::PublicUnifiedEventsFilter - | HubSpotSDK::Crm::PublicPropertyAssociationInListFilter | HubSpotSDK::Crm::PublicConstantFilter module Filter diff --git a/sig/hubspot_sdk/models/crm/public_campaign_influenced_filter.rbs b/sig/hubspot_sdk/models/crm/public_campaign_influenced_filter.rbs deleted file mode 100644 index 067e4674..00000000 --- a/sig/hubspot_sdk/models/crm/public_campaign_influenced_filter.rbs +++ /dev/null @@ -1,37 +0,0 @@ -module HubSpotSDK - module Models - module Crm - type public_campaign_influenced_filter = - { - campaign_id: String, - filter_type: HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter::filter_type - } - - class PublicCampaignInfluencedFilter < HubSpotSDK::Internal::Type::BaseModel - attr_accessor campaign_id: String - - attr_accessor filter_type: HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter::filter_type - - def initialize: ( - campaign_id: String, - filter_type: HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter::filter_type - ) -> void - - def to_hash: -> { - campaign_id: String, - filter_type: HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter::filter_type - } - - type filter_type = :CAMPAIGN_INFLUENCED - - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - CAMPAIGN_INFLUENCED: :CAMPAIGN_INFLUENCED - - def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicCampaignInfluencedFilter::filter_type] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/crm/public_crm_search_request.rbs b/sig/hubspot_sdk/models/crm/public_crm_search_request.rbs index 82e4d467..77bbf776 100644 --- a/sig/hubspot_sdk/models/crm/public_crm_search_request.rbs +++ b/sig/hubspot_sdk/models/crm/public_crm_search_request.rbs @@ -4,7 +4,7 @@ module HubSpotSDK type public_crm_search_request = { filter_groups: ::Array[HubSpotSDK::Crm::FilterGroup], - filters: ::Array[HubSpotSDK::Crm::Filter], + filters: ::Array[HubSpotSDK::Crm::CrmFilter], sorts: ::Array[String], query: String } @@ -12,7 +12,7 @@ module HubSpotSDK class PublicCrmSearchRequest < HubSpotSDK::Internal::Type::BaseModel attr_accessor filter_groups: ::Array[HubSpotSDK::Crm::FilterGroup] - attr_accessor filters: ::Array[HubSpotSDK::Crm::Filter] + attr_accessor filters: ::Array[HubSpotSDK::Crm::CrmFilter] attr_accessor sorts: ::Array[String] @@ -22,14 +22,14 @@ module HubSpotSDK def initialize: ( filter_groups: ::Array[HubSpotSDK::Crm::FilterGroup], - filters: ::Array[HubSpotSDK::Crm::Filter], + filters: ::Array[HubSpotSDK::Crm::CrmFilter], sorts: ::Array[String], ?query: String ) -> void def to_hash: -> { filter_groups: ::Array[HubSpotSDK::Crm::FilterGroup], - filters: ::Array[HubSpotSDK::Crm::Filter], + filters: ::Array[HubSpotSDK::Crm::CrmFilter], sorts: ::Array[String], query: String } diff --git a/sig/hubspot_sdk/models/crm/public_export_list_request.rbs b/sig/hubspot_sdk/models/crm/public_export_list_request.rbs index fd15fd7a..cb12fcf1 100644 --- a/sig/hubspot_sdk/models/crm/public_export_list_request.rbs +++ b/sig/hubspot_sdk/models/crm/public_export_list_request.rbs @@ -93,57 +93,113 @@ module HubSpotSDK def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicExportListRequest::export_type] end - type format_ = :XLS | :XLSX | :CSV + type format_ = :CSV | :XLS | :XLSX module Format extend HubSpotSDK::Internal::Type::Enum + CSV: :CSV XLS: :XLS XLSX: :XLSX - CSV: :CSV def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicExportListRequest::format_] end type language = - :EN + :AF_ZA + | :AR_EG + | :BG + | :BN + | :CA_ES + | :CS + | :DA_DK | :DE + | :EL_GR + | :EN + | :EN_GB | :ES + | :ES_MX + | :ET_EE + | :FI | :FR + | :FR_CA + | :HE_IL + | :HI_IN + | :HR + | :HU + | :ID + | :IT | :JA + | :KO_KR + | :LT_LT + | :MS | :NL - | :PT_BR - | :IT + | :NO | :PL + | :PT_BR + | :PT_PT + | :RO + | :RU + | :SK_SK + | :SL | :SV - | :FI - | :ZH_TW - | :DA_DK - | :NO - | :KO_KR | :TH + | :TL + | :TR + | :UK + | :VI_VN | :ZH_CN + | :ZH_HK + | :ZH_TW module Language extend HubSpotSDK::Internal::Type::Enum - EN: :EN + AF_ZA: :AF_ZA + AR_EG: :AR_EG + BG: :BG + BN: :BN + CA_ES: :CA_ES + CS: :CS + DA_DK: :DA_DK DE: :DE + EL_GR: :EL_GR + EN: :EN + EN_GB: :EN_GB ES: :ES + ES_MX: :ES_MX + ET_EE: :ET_EE + FI: :FI FR: :FR + FR_CA: :FR_CA + HE_IL: :HE_IL + HI_IN: :HI_IN + HR: :HR + HU: :HU + ID: :ID + IT: :IT JA: :JA + KO_KR: :KO_KR + LT_LT: :LT_LT + MS: :MS NL: :NL - PT_BR: :PT_BR - IT: :IT + NO: :NO PL: :PL + PT_BR: :PT_BR + PT_PT: :PT_PT + RO: :RO + RU: :RU + SK_SK: :SK_SK + SL: :SL SV: :SV - FI: :FI - ZH_TW: :ZH_TW - DA_DK: :DA_DK - NO: :NO - KO_KR: :KO_KR TH: :TH + TL: :TL + TR: :TR + UK: :UK + VI_VN: :VI_VN ZH_CN: :ZH_CN + ZH_HK: :ZH_HK + ZH_TW: :ZH_TW def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicExportListRequest::language] end diff --git a/sig/hubspot_sdk/models/crm/public_export_view_request.rbs b/sig/hubspot_sdk/models/crm/public_export_view_request.rbs index 9e4b8baa..927de20a 100644 --- a/sig/hubspot_sdk/models/crm/public_export_view_request.rbs +++ b/sig/hubspot_sdk/models/crm/public_export_view_request.rbs @@ -97,57 +97,113 @@ module HubSpotSDK def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicExportViewRequest::export_type] end - type format_ = :XLS | :XLSX | :CSV + type format_ = :CSV | :XLS | :XLSX module Format extend HubSpotSDK::Internal::Type::Enum + CSV: :CSV XLS: :XLS XLSX: :XLSX - CSV: :CSV def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicExportViewRequest::format_] end type language = - :EN + :AF_ZA + | :AR_EG + | :BG + | :BN + | :CA_ES + | :CS + | :DA_DK | :DE + | :EL_GR + | :EN + | :EN_GB | :ES + | :ES_MX + | :ET_EE + | :FI | :FR + | :FR_CA + | :HE_IL + | :HI_IN + | :HR + | :HU + | :ID + | :IT | :JA + | :KO_KR + | :LT_LT + | :MS | :NL - | :PT_BR - | :IT + | :NO | :PL + | :PT_BR + | :PT_PT + | :RO + | :RU + | :SK_SK + | :SL | :SV - | :FI - | :ZH_TW - | :DA_DK - | :NO - | :KO_KR | :TH + | :TL + | :TR + | :UK + | :VI_VN | :ZH_CN + | :ZH_HK + | :ZH_TW module Language extend HubSpotSDK::Internal::Type::Enum - EN: :EN + AF_ZA: :AF_ZA + AR_EG: :AR_EG + BG: :BG + BN: :BN + CA_ES: :CA_ES + CS: :CS + DA_DK: :DA_DK DE: :DE + EL_GR: :EL_GR + EN: :EN + EN_GB: :EN_GB ES: :ES + ES_MX: :ES_MX + ET_EE: :ET_EE + FI: :FI FR: :FR + FR_CA: :FR_CA + HE_IL: :HE_IL + HI_IN: :HI_IN + HR: :HR + HU: :HU + ID: :ID + IT: :IT JA: :JA + KO_KR: :KO_KR + LT_LT: :LT_LT + MS: :MS NL: :NL - PT_BR: :PT_BR - IT: :IT + NO: :NO PL: :PL + PT_BR: :PT_BR + PT_PT: :PT_PT + RO: :RO + RU: :RU + SK_SK: :SK_SK + SL: :SL SV: :SV - FI: :FI - ZH_TW: :ZH_TW - DA_DK: :DA_DK - NO: :NO - KO_KR: :KO_KR TH: :TH + TL: :TL + TR: :TR + UK: :UK + VI_VN: :VI_VN ZH_CN: :ZH_CN + ZH_HK: :ZH_HK + ZH_TW: :ZH_TW def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicExportViewRequest::language] end diff --git a/sig/hubspot_sdk/models/crm/public_not_all_filter_branch.rbs b/sig/hubspot_sdk/models/crm/public_not_all_filter_branch.rbs index 127070a0..ff8b1a42 100644 --- a/sig/hubspot_sdk/models/crm/public_not_all_filter_branch.rbs +++ b/sig/hubspot_sdk/models/crm/public_not_all_filter_branch.rbs @@ -39,7 +39,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch @@ -69,7 +68,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicIntegrationEventFilter | HubSpotSDK::Crm::PublicEmailSubscriptionFilter | HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter - | HubSpotSDK::Crm::PublicCampaignInfluencedFilter | HubSpotSDK::Crm::PublicSurveyMonkeyFilter | HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter | HubSpotSDK::Crm::PublicWebinarFilter @@ -78,9 +76,7 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicAdsSearchFilter | HubSpotSDK::Crm::PublicAdsTimeFilter | HubSpotSDK::Crm::PublicInListFilter - | HubSpotSDK::Crm::PublicNumAssociationsFilter | HubSpotSDK::Crm::PublicUnifiedEventsFilter - | HubSpotSDK::Crm::PublicPropertyAssociationInListFilter | HubSpotSDK::Crm::PublicConstantFilter module Filter diff --git a/sig/hubspot_sdk/models/crm/public_not_any_filter_branch.rbs b/sig/hubspot_sdk/models/crm/public_not_any_filter_branch.rbs index 93a62296..f7a6ded5 100644 --- a/sig/hubspot_sdk/models/crm/public_not_any_filter_branch.rbs +++ b/sig/hubspot_sdk/models/crm/public_not_any_filter_branch.rbs @@ -39,7 +39,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch @@ -69,7 +68,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicIntegrationEventFilter | HubSpotSDK::Crm::PublicEmailSubscriptionFilter | HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter - | HubSpotSDK::Crm::PublicCampaignInfluencedFilter | HubSpotSDK::Crm::PublicSurveyMonkeyFilter | HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter | HubSpotSDK::Crm::PublicWebinarFilter @@ -78,9 +76,7 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicAdsSearchFilter | HubSpotSDK::Crm::PublicAdsTimeFilter | HubSpotSDK::Crm::PublicInListFilter - | HubSpotSDK::Crm::PublicNumAssociationsFilter | HubSpotSDK::Crm::PublicUnifiedEventsFilter - | HubSpotSDK::Crm::PublicPropertyAssociationInListFilter | HubSpotSDK::Crm::PublicConstantFilter module Filter diff --git a/sig/hubspot_sdk/models/crm/public_num_associations_filter.rbs b/sig/hubspot_sdk/models/crm/public_num_associations_filter.rbs deleted file mode 100644 index f20271b0..00000000 --- a/sig/hubspot_sdk/models/crm/public_num_associations_filter.rbs +++ /dev/null @@ -1,64 +0,0 @@ -module HubSpotSDK - module Models - module Crm - type public_num_associations_filter = - { - association_category: String, - association_type_id: Integer, - coalescing_refine_by: HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::coalescing_refine_by, - filter_type: HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::filter_type - } - - class PublicNumAssociationsFilter < HubSpotSDK::Internal::Type::BaseModel - attr_accessor association_category: String - - attr_accessor association_type_id: Integer - - attr_accessor coalescing_refine_by: HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::coalescing_refine_by - - attr_accessor filter_type: HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::filter_type - - def initialize: ( - association_category: String, - association_type_id: Integer, - coalescing_refine_by: HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::coalescing_refine_by, - filter_type: HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::filter_type - ) -> void - - def to_hash: -> { - association_category: String, - association_type_id: Integer, - coalescing_refine_by: HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::coalescing_refine_by, - filter_type: HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::filter_type - } - - type coalescing_refine_by = - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy - | HubSpotSDK::Crm::PublicSetOccurrencesRefineBy - | HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy - | HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy - | HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy - | HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy - | HubSpotSDK::Crm::PublicAllHistoryRefineBy - | HubSpotSDK::Crm::PublicTimePointOperation - | HubSpotSDK::Crm::PublicRangedTimeOperation - - module CoalescingRefineBy - extend HubSpotSDK::Internal::Type::Union - - def self?.variants: -> ::Array[HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::coalescing_refine_by] - end - - type filter_type = :NUM_ASSOCIATIONS - - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - NUM_ASSOCIATIONS: :NUM_ASSOCIATIONS - - def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicNumAssociationsFilter::filter_type] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/crm/public_object_list.rbs b/sig/hubspot_sdk/models/crm/public_object_list.rbs index 4e4aa5a9..cce09415 100644 --- a/sig/hubspot_sdk/models/crm/public_object_list.rbs +++ b/sig/hubspot_sdk/models/crm/public_object_list.rbs @@ -125,7 +125,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch diff --git a/sig/hubspot_sdk/models/crm/public_or_filter_branch.rbs b/sig/hubspot_sdk/models/crm/public_or_filter_branch.rbs index a6e29b26..5040e64e 100644 --- a/sig/hubspot_sdk/models/crm/public_or_filter_branch.rbs +++ b/sig/hubspot_sdk/models/crm/public_or_filter_branch.rbs @@ -39,7 +39,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch @@ -69,7 +68,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicIntegrationEventFilter | HubSpotSDK::Crm::PublicEmailSubscriptionFilter | HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter - | HubSpotSDK::Crm::PublicCampaignInfluencedFilter | HubSpotSDK::Crm::PublicSurveyMonkeyFilter | HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter | HubSpotSDK::Crm::PublicWebinarFilter @@ -78,9 +76,7 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicAdsSearchFilter | HubSpotSDK::Crm::PublicAdsTimeFilter | HubSpotSDK::Crm::PublicInListFilter - | HubSpotSDK::Crm::PublicNumAssociationsFilter | HubSpotSDK::Crm::PublicUnifiedEventsFilter - | HubSpotSDK::Crm::PublicPropertyAssociationInListFilter | HubSpotSDK::Crm::PublicConstantFilter module Filter diff --git a/sig/hubspot_sdk/models/crm/public_property_association_filter_branch.rbs b/sig/hubspot_sdk/models/crm/public_property_association_filter_branch.rbs deleted file mode 100644 index 6bee72a4..00000000 --- a/sig/hubspot_sdk/models/crm/public_property_association_filter_branch.rbs +++ /dev/null @@ -1,109 +0,0 @@ -module HubSpotSDK - module Models - module Crm - type public_property_association_filter_branch = - { - filter_branches: ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch], - filter_branch_operator: String, - filter_branch_type: HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch_type, - filters: ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter], - object_type_id: String, - operator: String, - property_with_object_id: String - } - - class PublicPropertyAssociationFilterBranch < HubSpotSDK::Internal::Type::BaseModel - attr_accessor filter_branches: ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch] - - attr_accessor filter_branch_operator: String - - attr_accessor filter_branch_type: HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch_type - - attr_accessor filters: ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter] - - attr_accessor object_type_id: String - - attr_accessor operator: String - - attr_accessor property_with_object_id: String - - def initialize: ( - filter_branches: ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch], - filter_branch_operator: String, - filter_branch_type: HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch_type, - filters: ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter], - object_type_id: String, - operator: String, - property_with_object_id: String - ) -> void - - def to_hash: -> { - filter_branches: ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch], - filter_branch_operator: String, - filter_branch_type: HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch_type, - filters: ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter], - object_type_id: String, - operator: String, - property_with_object_id: String - } - - type filter_branch = - HubSpotSDK::Crm::PublicOrFilterBranch - | HubSpotSDK::Crm::PublicAndFilterBranch - | HubSpotSDK::Crm::PublicNotAllFilterBranch - | HubSpotSDK::Crm::PublicNotAnyFilterBranch - | HubSpotSDK::Crm::PublicRestrictedFilterBranch - | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch - | HubSpotSDK::Crm::PublicAssociationFilterBranch - - module FilterBranch - extend HubSpotSDK::Internal::Type::Union - - def self?.variants: -> ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch] - end - - type filter_branch_type = :PROPERTY_ASSOCIATION - - module FilterBranchType - extend HubSpotSDK::Internal::Type::Enum - - PROPERTY_ASSOCIATION: :PROPERTY_ASSOCIATION - - def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter_branch_type] - end - - type filter = - HubSpotSDK::Crm::PublicPropertyFilter - | HubSpotSDK::Crm::PublicAssociationInListFilter - | HubSpotSDK::Crm::PublicPageViewAnalyticsFilter - | HubSpotSDK::Crm::PublicCtaAnalyticsFilter - | HubSpotSDK::Crm::PublicEventAnalyticsFilter - | HubSpotSDK::Crm::PublicFormSubmissionFilter - | HubSpotSDK::Crm::PublicFormSubmissionOnPageFilter - | HubSpotSDK::Crm::PublicIntegrationEventFilter - | HubSpotSDK::Crm::PublicEmailSubscriptionFilter - | HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter - | HubSpotSDK::Crm::PublicCampaignInfluencedFilter - | HubSpotSDK::Crm::PublicSurveyMonkeyFilter - | HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter - | HubSpotSDK::Crm::PublicWebinarFilter - | HubSpotSDK::Crm::PublicEmailEventFilter - | HubSpotSDK::Crm::PublicPrivacyAnalyticsFilter - | HubSpotSDK::Crm::PublicAdsSearchFilter - | HubSpotSDK::Crm::PublicAdsTimeFilter - | HubSpotSDK::Crm::PublicInListFilter - | HubSpotSDK::Crm::PublicNumAssociationsFilter - | HubSpotSDK::Crm::PublicUnifiedEventsFilter - | HubSpotSDK::Crm::PublicPropertyAssociationInListFilter - | HubSpotSDK::Crm::PublicConstantFilter - - module Filter - extend HubSpotSDK::Internal::Type::Union - - def self?.variants: -> ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationFilterBranch::filter] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/crm/public_property_association_in_list_filter.rbs b/sig/hubspot_sdk/models/crm/public_property_association_in_list_filter.rbs deleted file mode 100644 index 7db5ef59..00000000 --- a/sig/hubspot_sdk/models/crm/public_property_association_in_list_filter.rbs +++ /dev/null @@ -1,76 +0,0 @@ -module HubSpotSDK - module Models - module Crm - type public_property_association_in_list_filter = - { - coalescing_refine_by: HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::coalescing_refine_by, - filter_type: HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::filter_type, - list_id: String, - operator: String, - property_with_object_id: String, - to_object_type_id: String - } - - class PublicPropertyAssociationInListFilter < HubSpotSDK::Internal::Type::BaseModel - attr_accessor coalescing_refine_by: HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::coalescing_refine_by - - attr_accessor filter_type: HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::filter_type - - attr_accessor list_id: String - - attr_accessor operator: String - - attr_accessor property_with_object_id: String - - attr_reader to_object_type_id: String? - - def to_object_type_id=: (String) -> String - - def initialize: ( - coalescing_refine_by: HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::coalescing_refine_by, - filter_type: HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::filter_type, - list_id: String, - operator: String, - property_with_object_id: String, - ?to_object_type_id: String - ) -> void - - def to_hash: -> { - coalescing_refine_by: HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::coalescing_refine_by, - filter_type: HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::filter_type, - list_id: String, - operator: String, - property_with_object_id: String, - to_object_type_id: String - } - - type coalescing_refine_by = - HubSpotSDK::Crm::PublicNumOccurrencesRefineBy - | HubSpotSDK::Crm::PublicSetOccurrencesRefineBy - | HubSpotSDK::Crm::PublicRelativeComparativeTimestampRefineBy - | HubSpotSDK::Crm::PublicRelativeRangedTimestampRefineBy - | HubSpotSDK::Crm::PublicAbsoluteComparativeTimestampRefineBy - | HubSpotSDK::Crm::PublicAbsoluteRangedTimestampRefineBy - | HubSpotSDK::Crm::PublicAllHistoryRefineBy - | HubSpotSDK::Crm::PublicTimePointOperation - | HubSpotSDK::Crm::PublicRangedTimeOperation - - module CoalescingRefineBy - extend HubSpotSDK::Internal::Type::Union - - def self?.variants: -> ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::coalescing_refine_by] - end - - type filter_type = :PROPERTY_ASSOCIATION - - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - PROPERTY_ASSOCIATION: :PROPERTY_ASSOCIATION - - def self?.values: -> ::Array[HubSpotSDK::Models::Crm::PublicPropertyAssociationInListFilter::filter_type] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/crm/public_restricted_filter_branch.rbs b/sig/hubspot_sdk/models/crm/public_restricted_filter_branch.rbs index a239a078..7757f2d4 100644 --- a/sig/hubspot_sdk/models/crm/public_restricted_filter_branch.rbs +++ b/sig/hubspot_sdk/models/crm/public_restricted_filter_branch.rbs @@ -39,7 +39,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch @@ -69,7 +68,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicIntegrationEventFilter | HubSpotSDK::Crm::PublicEmailSubscriptionFilter | HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter - | HubSpotSDK::Crm::PublicCampaignInfluencedFilter | HubSpotSDK::Crm::PublicSurveyMonkeyFilter | HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter | HubSpotSDK::Crm::PublicWebinarFilter @@ -78,9 +76,7 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicAdsSearchFilter | HubSpotSDK::Crm::PublicAdsTimeFilter | HubSpotSDK::Crm::PublicInListFilter - | HubSpotSDK::Crm::PublicNumAssociationsFilter | HubSpotSDK::Crm::PublicUnifiedEventsFilter - | HubSpotSDK::Crm::PublicPropertyAssociationInListFilter | HubSpotSDK::Crm::PublicConstantFilter module Filter diff --git a/sig/hubspot_sdk/models/crm/public_unified_events_filter_branch.rbs b/sig/hubspot_sdk/models/crm/public_unified_events_filter_branch.rbs index aa332fb0..41f86a8f 100644 --- a/sig/hubspot_sdk/models/crm/public_unified_events_filter_branch.rbs +++ b/sig/hubspot_sdk/models/crm/public_unified_events_filter_branch.rbs @@ -67,7 +67,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicNotAnyFilterBranch | HubSpotSDK::Crm::PublicRestrictedFilterBranch | HubSpotSDK::Crm::PublicUnifiedEventsFilterBranch - | HubSpotSDK::Crm::PublicPropertyAssociationFilterBranch | HubSpotSDK::Crm::PublicAssociationFilterBranch module FilterBranch @@ -97,7 +96,6 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicIntegrationEventFilter | HubSpotSDK::Crm::PublicEmailSubscriptionFilter | HubSpotSDK::Crm::PublicCommunicationSubscriptionFilter - | HubSpotSDK::Crm::PublicCampaignInfluencedFilter | HubSpotSDK::Crm::PublicSurveyMonkeyFilter | HubSpotSDK::Crm::PublicSurveyMonkeyValueFilter | HubSpotSDK::Crm::PublicWebinarFilter @@ -106,9 +104,7 @@ module HubSpotSDK | HubSpotSDK::Crm::PublicAdsSearchFilter | HubSpotSDK::Crm::PublicAdsTimeFilter | HubSpotSDK::Crm::PublicInListFilter - | HubSpotSDK::Crm::PublicNumAssociationsFilter | HubSpotSDK::Crm::PublicUnifiedEventsFilter - | HubSpotSDK::Crm::PublicPropertyAssociationInListFilter | HubSpotSDK::Crm::PublicConstantFilter module Filter diff --git a/sig/hubspot_sdk/models/crm_object_snapshot_batch_request.rbs b/sig/hubspot_sdk/models/crm_object_snapshot_batch_request.rbs new file mode 100644 index 00000000..42b4ef71 --- /dev/null +++ b/sig/hubspot_sdk/models/crm_object_snapshot_batch_request.rbs @@ -0,0 +1,18 @@ +module HubSpotSDK + module Models + type crm_object_snapshot_batch_request = + { snapshot_requests: ::Array[HubSpotSDK::CrmObjectSnapshotRequest] } + + class CrmObjectSnapshotBatchRequest < HubSpotSDK::Internal::Type::BaseModel + attr_accessor snapshot_requests: ::Array[HubSpotSDK::CrmObjectSnapshotRequest] + + def initialize: ( + snapshot_requests: ::Array[HubSpotSDK::CrmObjectSnapshotRequest] + ) -> void + + def to_hash: -> { + snapshot_requests: ::Array[HubSpotSDK::CrmObjectSnapshotRequest] + } + end + end +end diff --git a/sig/hubspot_sdk/models/crm_object_snapshot_batch_response.rbs b/sig/hubspot_sdk/models/crm_object_snapshot_batch_response.rbs new file mode 100644 index 00000000..151eab51 --- /dev/null +++ b/sig/hubspot_sdk/models/crm_object_snapshot_batch_response.rbs @@ -0,0 +1,18 @@ +module HubSpotSDK + module Models + type crm_object_snapshot_batch_response = + { snapshot_responses: ::Array[HubSpotSDK::CrmObjectSnapshotResponse] } + + class CrmObjectSnapshotBatchResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor snapshot_responses: ::Array[HubSpotSDK::CrmObjectSnapshotResponse] + + def initialize: ( + snapshot_responses: ::Array[HubSpotSDK::CrmObjectSnapshotResponse] + ) -> void + + def to_hash: -> { + snapshot_responses: ::Array[HubSpotSDK::CrmObjectSnapshotResponse] + } + end + end +end diff --git a/sig/hubspot_sdk/models/crm_object_snapshot_request.rbs b/sig/hubspot_sdk/models/crm_object_snapshot_request.rbs new file mode 100644 index 00000000..0293dc39 --- /dev/null +++ b/sig/hubspot_sdk/models/crm_object_snapshot_request.rbs @@ -0,0 +1,35 @@ +module HubSpotSDK + module Models + type crm_object_snapshot_request = + { + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + properties: ::Array[String] + } + + class CrmObjectSnapshotRequest < HubSpotSDK::Internal::Type::BaseModel + attr_accessor object_id_: Integer + + attr_accessor object_type_id: String + + attr_accessor portal_id: Integer + + attr_accessor properties: ::Array[String] + + def initialize: ( + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + properties: ::Array[String] + ) -> void + + def to_hash: -> { + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + properties: ::Array[String] + } + end + end +end diff --git a/sig/hubspot_sdk/models/crm_object_snapshot_response.rbs b/sig/hubspot_sdk/models/crm_object_snapshot_response.rbs new file mode 100644 index 00000000..b3510e89 --- /dev/null +++ b/sig/hubspot_sdk/models/crm_object_snapshot_response.rbs @@ -0,0 +1,35 @@ +module HubSpotSDK + module Models + type crm_object_snapshot_response = + { + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + snapshot_status_id: String + } + + class CrmObjectSnapshotResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor object_id_: Integer + + attr_accessor object_type_id: String + + attr_accessor portal_id: Integer + + attr_accessor snapshot_status_id: String + + def initialize: ( + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + snapshot_status_id: String + ) -> void + + def to_hash: -> { + object_id_: Integer, + object_type_id: String, + portal_id: Integer, + snapshot_status_id: String + } + end + end +end diff --git a/sig/hubspot_sdk/models/filter.rbs b/sig/hubspot_sdk/models/filter.rbs new file mode 100644 index 00000000..ccbe78d9 --- /dev/null +++ b/sig/hubspot_sdk/models/filter.rbs @@ -0,0 +1,13 @@ +module HubSpotSDK + module Models + type filter = { conditions: ::Array[HubSpotSDK::Condition] } + + class Filter < HubSpotSDK::Internal::Type::BaseModel + attr_accessor conditions: ::Array[HubSpotSDK::Condition] + + def initialize: (conditions: ::Array[HubSpotSDK::Condition]) -> void + + def to_hash: -> { conditions: ::Array[HubSpotSDK::Condition] } + end + end +end diff --git a/sig/hubspot_sdk/models/filter_create_request.rbs b/sig/hubspot_sdk/models/filter_create_request.rbs new file mode 100644 index 00000000..fc911293 --- /dev/null +++ b/sig/hubspot_sdk/models/filter_create_request.rbs @@ -0,0 +1,19 @@ +module HubSpotSDK + module Models + type filter_create_request = + { filter: HubSpotSDK::Filter, subscription_id: Integer } + + class FilterCreateRequest < HubSpotSDK::Internal::Type::BaseModel + attr_accessor filter: HubSpotSDK::Filter + + attr_accessor subscription_id: Integer + + def initialize: ( + filter: HubSpotSDK::Filter, + subscription_id: Integer + ) -> void + + def to_hash: -> { filter: HubSpotSDK::Filter, subscription_id: Integer } + end + end +end diff --git a/sig/hubspot_sdk/models/filter_create_response.rbs b/sig/hubspot_sdk/models/filter_create_response.rbs new file mode 100644 index 00000000..fa020f95 --- /dev/null +++ b/sig/hubspot_sdk/models/filter_create_response.rbs @@ -0,0 +1,13 @@ +module HubSpotSDK + module Models + type filter_create_response = { filter_id: Integer } + + class FilterCreateResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor filter_id: Integer + + def initialize: (filter_id: Integer) -> void + + def to_hash: -> { filter_id: Integer } + end + end +end diff --git a/sig/hubspot_sdk/models/filter_response.rbs b/sig/hubspot_sdk/models/filter_response.rbs new file mode 100644 index 00000000..629eb345 --- /dev/null +++ b/sig/hubspot_sdk/models/filter_response.rbs @@ -0,0 +1,26 @@ +module HubSpotSDK + module Models + type filter_response = + { id: Integer, created_at: Integer, filter: HubSpotSDK::Filter } + + class FilterResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor id: Integer + + attr_accessor created_at: Integer + + attr_accessor filter: HubSpotSDK::Filter + + def initialize: ( + id: Integer, + created_at: Integer, + filter: HubSpotSDK::Filter + ) -> void + + def to_hash: -> { + id: Integer, + created_at: Integer, + filter: HubSpotSDK::Filter + } + end + end +end diff --git a/sig/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rbs new file mode 100644 index 00000000..35bb6ebe --- /dev/null +++ b/sig/hubspot_sdk/models/gdpr_privacy_deletion_subscription_upsert_request.rbs @@ -0,0 +1,80 @@ +module HubSpotSDK + module Models + type gdpr_privacy_deletion_subscription_upsert_request = + { + actions: ::Array[HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::action], + object_type_id: String, + portal_id: Integer, + subscription_type: HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type + } + + class GdprPrivacyDeletionSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + attr_accessor actions: ::Array[HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::action] + + attr_accessor object_type_id: String + + attr_accessor portal_id: Integer + + attr_accessor subscription_type: HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type + + def initialize: ( + actions: ::Array[HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::action], + object_type_id: String, + portal_id: Integer, + subscription_type: HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type + ) -> void + + def to_hash: -> { + actions: ::Array[HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::action], + object_type_id: String, + portal_id: Integer, + subscription_type: HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type + } + + type action = + :CREATE + | :UPDATE + | :DELETE + | :MERGE + | :RESTORE + | :ASSOCIATION_ADDED + | :ASSOCIATION_REMOVED + | :SNAPSHOT + | :APP_INSTALL + | :APP_UNINSTALL + | :ADDED_TO_LIST + | :REMOVED_FROM_LIST + | :GDPR_DELETE + + 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 + + def self?.values: -> ::Array[HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::action] + end + + type subscription_type = :GDPR_PRIVACY_DELETION + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + GDPR_PRIVACY_DELETION: :GDPR_PRIVACY_DELETION + + def self?.values: -> ::Array[HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type] + end + end + end +end diff --git a/sig/hubspot_sdk/models/journal_fetch_response.rbs b/sig/hubspot_sdk/models/journal_fetch_response.rbs new file mode 100644 index 00000000..829fdc11 --- /dev/null +++ b/sig/hubspot_sdk/models/journal_fetch_response.rbs @@ -0,0 +1,22 @@ +module HubSpotSDK + module Models + type journal_fetch_response = + { current_offset: String, expires_at: Time, url: String } + + class JournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor current_offset: String + + attr_accessor expires_at: Time + + attr_accessor url: String + + def initialize: ( + current_offset: String, + expires_at: Time, + url: String + ) -> void + + def to_hash: -> { current_offset: String, expires_at: Time, url: String } + end + end +end diff --git a/sig/hubspot_sdk/models/list_membership_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/list_membership_subscription_upsert_request.rbs new file mode 100644 index 00000000..7373f5e9 --- /dev/null +++ b/sig/hubspot_sdk/models/list_membership_subscription_upsert_request.rbs @@ -0,0 +1,85 @@ +module HubSpotSDK + module Models + type list_membership_subscription_upsert_request = + { + actions: ::Array[HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::action], + list_ids: ::Array[Integer], + object_ids: ::Array[Integer], + portal_id: Integer, + subscription_type: HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::subscription_type + } + + class ListMembershipSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + attr_accessor actions: ::Array[HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::action] + + attr_accessor list_ids: ::Array[Integer] + + attr_accessor object_ids: ::Array[Integer] + + attr_accessor portal_id: Integer + + attr_accessor subscription_type: HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::subscription_type + + def initialize: ( + actions: ::Array[HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::action], + list_ids: ::Array[Integer], + object_ids: ::Array[Integer], + portal_id: Integer, + subscription_type: HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::subscription_type + ) -> void + + def to_hash: -> { + actions: ::Array[HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::action], + list_ids: ::Array[Integer], + object_ids: ::Array[Integer], + portal_id: Integer, + subscription_type: HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::subscription_type + } + + type action = + :CREATE + | :UPDATE + | :DELETE + | :MERGE + | :RESTORE + | :ASSOCIATION_ADDED + | :ASSOCIATION_REMOVED + | :SNAPSHOT + | :APP_INSTALL + | :APP_UNINSTALL + | :ADDED_TO_LIST + | :REMOVED_FROM_LIST + | :GDPR_DELETE + + 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 + + def self?.values: -> ::Array[HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::action] + end + + type subscription_type = :LIST_MEMBERSHIP + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + LIST_MEMBERSHIP: :LIST_MEMBERSHIP + + def self?.values: -> ::Array[HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest::subscription_type] + end + end + end +end diff --git a/sig/hubspot_sdk/models/object_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/object_subscription_upsert_request.rbs new file mode 100644 index 00000000..ef09acfd --- /dev/null +++ b/sig/hubspot_sdk/models/object_subscription_upsert_request.rbs @@ -0,0 +1,90 @@ +module HubSpotSDK + module Models + type object_subscription_upsert_request = + { + actions: ::Array[HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::action], + object_ids: ::Array[Integer], + object_type_id: String, + portal_id: Integer, + properties: ::Array[String], + subscription_type: HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::subscription_type + } + + class ObjectSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel + attr_accessor actions: ::Array[HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::action] + + attr_accessor object_ids: ::Array[Integer] + + attr_accessor object_type_id: String + + attr_accessor portal_id: Integer + + attr_accessor properties: ::Array[String] + + attr_accessor subscription_type: HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::subscription_type + + def initialize: ( + actions: ::Array[HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::action], + object_ids: ::Array[Integer], + object_type_id: String, + portal_id: Integer, + properties: ::Array[String], + subscription_type: HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::subscription_type + ) -> void + + def to_hash: -> { + actions: ::Array[HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::action], + object_ids: ::Array[Integer], + object_type_id: String, + portal_id: Integer, + properties: ::Array[String], + subscription_type: HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::subscription_type + } + + type action = + :CREATE + | :UPDATE + | :DELETE + | :MERGE + | :RESTORE + | :ASSOCIATION_ADDED + | :ASSOCIATION_REMOVED + | :SNAPSHOT + | :APP_INSTALL + | :APP_UNINSTALL + | :ADDED_TO_LIST + | :REMOVED_FROM_LIST + | :GDPR_DELETE + + 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 + + def self?.values: -> ::Array[HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::action] + end + + type subscription_type = :OBJECT + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + OBJECT: :OBJECT + + def self?.values: -> ::Array[HubSpotSDK::Models::ObjectSubscriptionUpsertRequest::subscription_type] + end + end + end +end diff --git a/sig/hubspot_sdk/models/property_value.rbs b/sig/hubspot_sdk/models/property_value.rbs index 70e173e5..17e53604 100644 --- a/sig/hubspot_sdk/models/property_value.rbs +++ b/sig/hubspot_sdk/models/property_value.rbs @@ -142,6 +142,7 @@ module HubSpotSDK | :BIDEN | :BILLING | :BOT + | :BREEZE_AGENT | :CALCULATED | :CENTRAL_EXCHANGE_RATES | :CHATSPOT @@ -166,6 +167,7 @@ module HubSpotSDK | :DEALS | :DEFAULT | :DELETE_OBJECTS + | :DI_WRITE_TO_CRM | :EMAIL | :EMAIL_INBOX_IMPORT | :EMAIL_INTEGRATION @@ -262,6 +264,7 @@ module HubSpotSDK BIDEN: :BIDEN BILLING: :BILLING BOT: :BOT + BREEZE_AGENT: :BREEZE_AGENT CALCULATED: :CALCULATED CENTRAL_EXCHANGE_RATES: :CENTRAL_EXCHANGE_RATES CHATSPOT: :CHATSPOT @@ -286,6 +289,7 @@ module HubSpotSDK DEALS: :DEALS DEFAULT: :DEFAULT DELETE_OBJECTS: :DELETE_OBJECTS + DI_WRITE_TO_CRM: :DI_WRITE_TO_CRM EMAIL: :EMAIL EMAIL_INBOX_IMPORT: :EMAIL_INBOX_IMPORT EMAIL_INTEGRATION: :EMAIL_INTEGRATION diff --git a/sig/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rbs b/sig/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rbs index 7a02e2c8..e4eab56f 100644 --- a/sig/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rbs +++ b/sig/hubspot_sdk/models/scheduler/external_calendar_meeting_event_response_properties.rbs @@ -150,6 +150,7 @@ module HubSpotSDK | :BIDEN | :BILLING | :BOT + | :BREEZE_AGENT | :CALCULATED | :CENTRAL_EXCHANGE_RATES | :CHATSPOT @@ -174,6 +175,7 @@ module HubSpotSDK | :DEALS | :DEFAULT | :DELETE_OBJECTS + | :DI_WRITE_TO_CRM | :EMAIL | :EMAIL_INBOX_IMPORT | :EMAIL_INTEGRATION @@ -270,6 +272,7 @@ module HubSpotSDK BIDEN: :BIDEN BILLING: :BILLING BOT: :BOT + BREEZE_AGENT: :BREEZE_AGENT CALCULATED: :CALCULATED CENTRAL_EXCHANGE_RATES: :CENTRAL_EXCHANGE_RATES CHATSPOT: :CHATSPOT @@ -294,6 +297,7 @@ module HubSpotSDK DEALS: :DEALS DEFAULT: :DEFAULT DELETE_OBJECTS: :DELETE_OBJECTS + DI_WRITE_TO_CRM: :DI_WRITE_TO_CRM EMAIL: :EMAIL EMAIL_INBOX_IMPORT: :EMAIL_INBOX_IMPORT EMAIL_INTEGRATION: :EMAIL_INTEGRATION diff --git a/sig/hubspot_sdk/models/snapshot_status_response.rbs b/sig/hubspot_sdk/models/snapshot_status_response.rbs new file mode 100644 index 00000000..4632dfb0 --- /dev/null +++ b/sig/hubspot_sdk/models/snapshot_status_response.rbs @@ -0,0 +1,81 @@ +module HubSpotSDK + module Models + type snapshot_status_response = + { + id: String, + initiated_at: Integer, + status: HubSpotSDK::Models::SnapshotStatusResponse::status, + completed_at: Integer, + error_code: HubSpotSDK::Models::SnapshotStatusResponse::error_code, + message: String + } + + class SnapshotStatusResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor initiated_at: Integer + + attr_accessor status: HubSpotSDK::Models::SnapshotStatusResponse::status + + attr_reader completed_at: Integer? + + def completed_at=: (Integer) -> Integer + + attr_reader error_code: HubSpotSDK::Models::SnapshotStatusResponse::error_code? + + def error_code=: ( + HubSpotSDK::Models::SnapshotStatusResponse::error_code + ) -> HubSpotSDK::Models::SnapshotStatusResponse::error_code + + attr_reader message: String? + + def message=: (String) -> String + + def initialize: ( + id: String, + initiated_at: Integer, + status: HubSpotSDK::Models::SnapshotStatusResponse::status, + ?completed_at: Integer, + ?error_code: HubSpotSDK::Models::SnapshotStatusResponse::error_code, + ?message: String + ) -> void + + def to_hash: -> { + id: String, + initiated_at: Integer, + status: HubSpotSDK::Models::SnapshotStatusResponse::status, + completed_at: Integer, + error_code: HubSpotSDK::Models::SnapshotStatusResponse::error_code, + message: String + } + + type status = :COMPLETED | :EXPIRED | :FAILED | :IN_PROGRESS | :PENDING + + module Status + extend HubSpotSDK::Internal::Type::Enum + + COMPLETED: :COMPLETED + EXPIRED: :EXPIRED + FAILED: :FAILED + IN_PROGRESS: :IN_PROGRESS + PENDING: :PENDING + + def self?.values: -> ::Array[HubSpotSDK::Models::SnapshotStatusResponse::status] + end + + type error_code = + :INTERNAL_ERROR | :PERMISSION_DENIED | :TIMEOUT | :VALIDATION_ERROR + + module ErrorCode + extend HubSpotSDK::Internal::Type::Enum + + INTERNAL_ERROR: :INTERNAL_ERROR + PERMISSION_DENIED: :PERMISSION_DENIED + TIMEOUT: :TIMEOUT + VALIDATION_ERROR: :VALIDATION_ERROR + + def self?.values: -> ::Array[HubSpotSDK::Models::SnapshotStatusResponse::error_code] + end + end + end +end diff --git a/sig/hubspot_sdk/models/subscription_upsert_request.rbs b/sig/hubspot_sdk/models/subscription_upsert_request.rbs new file mode 100644 index 00000000..65e97c6d --- /dev/null +++ b/sig/hubspot_sdk/models/subscription_upsert_request.rbs @@ -0,0 +1,16 @@ +module HubSpotSDK + module Models + type subscription_upsert_request = + HubSpotSDK::ObjectSubscriptionUpsertRequest + | HubSpotSDK::AssociationSubscriptionUpsertRequest + | HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest + | HubSpotSDK::ListMembershipSubscriptionUpsertRequest + | HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest + + module SubscriptionUpsertRequest + extend HubSpotSDK::Internal::Type::Union + + def self?.variants: -> ::Array[HubSpotSDK::Models::subscription_upsert_request] + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks/action_override_request.rbs b/sig/hubspot_sdk/models/webhooks/action_override_request.rbs deleted file mode 100644 index 815f0a9e..00000000 --- a/sig/hubspot_sdk/models/webhooks/action_override_request.rbs +++ /dev/null @@ -1,45 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type action_override_request = - { - associated_object_type_ids: ::Array[String], - list_ids: ::Array[Integer], - object_ids: ::Array[Integer], - properties: ::Array[String] - } - - class ActionOverrideRequest < HubSpotSDK::Internal::Type::BaseModel - attr_reader associated_object_type_ids: ::Array[String]? - - def associated_object_type_ids=: (::Array[String]) -> ::Array[String] - - attr_reader list_ids: ::Array[Integer]? - - def list_ids=: (::Array[Integer]) -> ::Array[Integer] - - attr_reader object_ids: ::Array[Integer]? - - def object_ids=: (::Array[Integer]) -> ::Array[Integer] - - attr_reader properties: ::Array[String]? - - def properties=: (::Array[String]) -> ::Array[String] - - def initialize: ( - ?associated_object_type_ids: ::Array[String], - ?list_ids: ::Array[Integer], - ?object_ids: ::Array[Integer], - ?properties: ::Array[String] - ) -> void - - def to_hash: -> { - associated_object_type_ids: ::Array[String], - list_ids: ::Array[Integer], - object_ids: ::Array[Integer], - properties: ::Array[String] - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rbs deleted file mode 100644 index 0e706ec5..00000000 --- a/sig/hubspot_sdk/models/webhooks/app_lifecycle_event_subscription_upsert_request.rbs +++ /dev/null @@ -1,53 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type app_lifecycle_event_subscription_upsert_request = - { - event_type_id: String, - properties: ::Array[String], - subscription_type: HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::subscription_type - } - - class AppLifecycleEventSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - attr_accessor event_type_id: String - - attr_accessor properties: ::Array[String] - - attr_accessor subscription_type: HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::subscription_type - - def initialize: ( - event_type_id: String, - properties: ::Array[String], - subscription_type: HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::subscription_type - ) -> void - - def to_hash: -> { - event_type_id: String, - properties: ::Array[String], - subscription_type: HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::subscription_type - } - - type subscription_type = - :OBJECT - | :ASSOCIATION - | :EVENT - | :APP_LIFECYCLE_EVENT - | :LIST_MEMBERSHIP - | :GDPR_PRIVACY_DELETION - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT: :OBJECT - ASSOCIATION: :ASSOCIATION - EVENT: :EVENT - APP_LIFECYCLE_EVENT: :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP: :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION: :GDPR_PRIVACY_DELETION - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::AppLifecycleEventSubscriptionUpsertRequest::subscription_type] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rbs deleted file mode 100644 index 665e3e81..00000000 --- a/sig/hubspot_sdk/models/webhooks/association_subscription_upsert_request.rbs +++ /dev/null @@ -1,103 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type association_subscription_upsert_request = - { - actions: ::Array[HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::action], - associated_object_type_ids: ::Array[String], - object_ids: ::Array[Integer], - object_type_id: String, - portal_id: Integer, - subscription_type: HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::subscription_type - } - - class AssociationSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - attr_accessor actions: ::Array[HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::action] - - attr_accessor associated_object_type_ids: ::Array[String] - - attr_accessor object_ids: ::Array[Integer] - - attr_accessor object_type_id: String - - attr_accessor portal_id: Integer - - attr_accessor subscription_type: HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::subscription_type - - def initialize: ( - actions: ::Array[HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::action], - associated_object_type_ids: ::Array[String], - object_ids: ::Array[Integer], - object_type_id: String, - portal_id: Integer, - subscription_type: HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::subscription_type - ) -> void - - def to_hash: -> { - actions: ::Array[HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::action], - associated_object_type_ids: ::Array[String], - object_ids: ::Array[Integer], - object_type_id: String, - portal_id: Integer, - subscription_type: HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::subscription_type - } - - type action = - :CREATE - | :UPDATE - | :DELETE - | :MERGE - | :RESTORE - | :ASSOCIATION_ADDED - | :ASSOCIATION_REMOVED - | :SNAPSHOT - | :APP_INSTALL - | :APP_UNINSTALL - | :ADDED_TO_LIST - | :REMOVED_FROM_LIST - | :GDPR_DELETE - - 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 - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::action] - end - - type subscription_type = - :OBJECT - | :ASSOCIATION - | :EVENT - | :APP_LIFECYCLE_EVENT - | :LIST_MEMBERSHIP - | :GDPR_PRIVACY_DELETION - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT: :OBJECT - ASSOCIATION: :ASSOCIATION - EVENT: :EVENT - APP_LIFECYCLE_EVENT: :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP: :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION: :GDPR_PRIVACY_DELETION - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::AssociationSubscriptionUpsertRequest::subscription_type] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rbs b/sig/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rbs deleted file mode 100644 index c69019a6..00000000 --- a/sig/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response.rbs +++ /dev/null @@ -1,64 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type batch_response_journal_fetch_response = - { - completed_at: Time, - results: ::Array[HubSpotSDK::Webhooks::JournalFetchResponse], - started_at: Time, - status: HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse::status, - links: ::Hash[Symbol, String], - requested_at: Time - } - - class BatchResponseJournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel - attr_accessor completed_at: Time - - attr_accessor results: ::Array[HubSpotSDK::Webhooks::JournalFetchResponse] - - attr_accessor started_at: Time - - attr_accessor status: HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse::status - - attr_reader links: ::Hash[Symbol, String]? - - def links=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String] - - attr_reader requested_at: Time? - - def requested_at=: (Time) -> Time - - def initialize: ( - completed_at: Time, - results: ::Array[HubSpotSDK::Webhooks::JournalFetchResponse], - started_at: Time, - status: HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse::status, - ?links: ::Hash[Symbol, String], - ?requested_at: Time - ) -> void - - def to_hash: -> { - completed_at: Time, - results: ::Array[HubSpotSDK::Webhooks::JournalFetchResponse], - started_at: Time, - status: HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse::status, - links: ::Hash[Symbol, String], - requested_at: Time - } - - type status = :CANCELED | :COMPLETE | :PENDING | :PROCESSING - - module Status - extend HubSpotSDK::Internal::Type::Enum - - CANCELED: :CANCELED - COMPLETE: :COMPLETE - PENDING: :PENDING - PROCESSING: :PROCESSING - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponse::status] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rbs b/sig/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rbs deleted file mode 100644 index 7449bbb9..00000000 --- a/sig/hubspot_sdk/models/webhooks/batch_response_journal_fetch_response_with_errors.rbs +++ /dev/null @@ -1,80 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type batch_response_journal_fetch_response_with_errors = - { - completed_at: Time, - results: ::Array[HubSpotSDK::Webhooks::JournalFetchResponse], - started_at: Time, - status: HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponseWithErrors::status, - errors: ::Array[HubSpotSDK::StandardError], - links: ::Hash[Symbol, String], - num_errors: Integer, - requested_at: Time - } - - class BatchResponseJournalFetchResponseWithErrors < HubSpotSDK::Internal::Type::BaseModel - attr_accessor completed_at: Time - - attr_accessor results: ::Array[HubSpotSDK::Webhooks::JournalFetchResponse] - - attr_accessor started_at: Time - - attr_accessor status: HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponseWithErrors::status - - attr_reader errors: ::Array[HubSpotSDK::StandardError]? - - def errors=: ( - ::Array[HubSpotSDK::StandardError] - ) -> ::Array[HubSpotSDK::StandardError] - - attr_reader links: ::Hash[Symbol, String]? - - def links=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String] - - attr_reader num_errors: Integer? - - def num_errors=: (Integer) -> Integer - - attr_reader requested_at: Time? - - def requested_at=: (Time) -> Time - - def initialize: ( - completed_at: Time, - results: ::Array[HubSpotSDK::Webhooks::JournalFetchResponse], - started_at: Time, - status: HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponseWithErrors::status, - ?errors: ::Array[HubSpotSDK::StandardError], - ?links: ::Hash[Symbol, String], - ?num_errors: Integer, - ?requested_at: Time - ) -> void - - def to_hash: -> { - completed_at: Time, - results: ::Array[HubSpotSDK::Webhooks::JournalFetchResponse], - started_at: Time, - status: HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponseWithErrors::status, - errors: ::Array[HubSpotSDK::StandardError], - links: ::Hash[Symbol, String], - num_errors: Integer, - requested_at: Time - } - - type status = :CANCELED | :COMPLETE | :PENDING | :PROCESSING - - module Status - extend HubSpotSDK::Internal::Type::Enum - - CANCELED: :CANCELED - COMPLETE: :COMPLETE - PENDING: :PENDING - PROCESSING: :PROCESSING - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::BatchResponseJournalFetchResponseWithErrors::status] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/condition.rbs b/sig/hubspot_sdk/models/webhooks/condition.rbs deleted file mode 100644 index adc8bd15..00000000 --- a/sig/hubspot_sdk/models/webhooks/condition.rbs +++ /dev/null @@ -1,91 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type condition = - { - filter_type: HubSpotSDK::Models::Webhooks::Condition::filter_type, - operator: HubSpotSDK::Models::Webhooks::Condition::operator, - property: String, - value: String, - values: ::Array[String] - } - - class Condition < HubSpotSDK::Internal::Type::BaseModel - attr_accessor filter_type: HubSpotSDK::Models::Webhooks::Condition::filter_type - - attr_accessor operator: HubSpotSDK::Models::Webhooks::Condition::operator - - attr_accessor property: String - - attr_reader value: String? - - def value=: (String) -> String - - attr_reader values: ::Array[String]? - - def values=: (::Array[String]) -> ::Array[String] - - def initialize: ( - filter_type: HubSpotSDK::Models::Webhooks::Condition::filter_type, - operator: HubSpotSDK::Models::Webhooks::Condition::operator, - property: String, - ?value: String, - ?values: ::Array[String] - ) -> void - - def to_hash: -> { - filter_type: HubSpotSDK::Models::Webhooks::Condition::filter_type, - operator: HubSpotSDK::Models::Webhooks::Condition::operator, - property: String, - value: String, - values: ::Array[String] - } - - type filter_type = :CRM_OBJECT_PROPERTY - - module FilterType - extend HubSpotSDK::Internal::Type::Enum - - CRM_OBJECT_PROPERTY: :CRM_OBJECT_PROPERTY - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::Condition::filter_type] - end - - type operator = - :CONTAINS - | :ENDS_WITH - | :EQ - | :GT - | :GTE - | :IN - | :IS_EMPTY - | :IS_NOT_EMPTY - | :LT - | :LTE - | :N_EQ - | :NOT_IN - | :STARTS_WITH - - module Operator - extend HubSpotSDK::Internal::Type::Enum - - CONTAINS: :CONTAINS - ENDS_WITH: :ENDS_WITH - EQ: :EQ - GT: :GT - GTE: :GTE - IN: :IN - IS_EMPTY: :IS_EMPTY - IS_NOT_EMPTY: :IS_NOT_EMPTY - LT: :LT - LTE: :LTE - N_EQ: :N_EQ - NOT_IN: :NOT_IN - STARTS_WITH: :STARTS_WITH - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::Condition::operator] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rbs b/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rbs deleted file mode 100644 index b091ca73..00000000 --- a/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_request.rbs +++ /dev/null @@ -1,22 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type crm_object_snapshot_batch_request = - { - snapshot_requests: ::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest] - } - - class CrmObjectSnapshotBatchRequest < HubSpotSDK::Internal::Type::BaseModel - attr_accessor snapshot_requests: ::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest] - - def initialize: ( - snapshot_requests: ::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest] - ) -> void - - def to_hash: -> { - snapshot_requests: ::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest] - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rbs b/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rbs deleted file mode 100644 index 4d169ab7..00000000 --- a/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_batch_response.rbs +++ /dev/null @@ -1,22 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type crm_object_snapshot_batch_response = - { - snapshot_responses: ::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotResponse] - } - - class CrmObjectSnapshotBatchResponse < HubSpotSDK::Internal::Type::BaseModel - attr_accessor snapshot_responses: ::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotResponse] - - def initialize: ( - snapshot_responses: ::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotResponse] - ) -> void - - def to_hash: -> { - snapshot_responses: ::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotResponse] - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rbs b/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rbs deleted file mode 100644 index 5ec88beb..00000000 --- a/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_request.rbs +++ /dev/null @@ -1,37 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type crm_object_snapshot_request = - { - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - properties: ::Array[String] - } - - class CrmObjectSnapshotRequest < HubSpotSDK::Internal::Type::BaseModel - attr_accessor object_id_: Integer - - attr_accessor object_type_id: String - - attr_accessor portal_id: Integer - - attr_accessor properties: ::Array[String] - - def initialize: ( - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - properties: ::Array[String] - ) -> void - - def to_hash: -> { - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - properties: ::Array[String] - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rbs b/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rbs deleted file mode 100644 index 1b48e2bb..00000000 --- a/sig/hubspot_sdk/models/webhooks/crm_object_snapshot_response.rbs +++ /dev/null @@ -1,37 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type crm_object_snapshot_response = - { - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - snapshot_status_id: String - } - - class CrmObjectSnapshotResponse < HubSpotSDK::Internal::Type::BaseModel - attr_accessor object_id_: Integer - - attr_accessor object_type_id: String - - attr_accessor portal_id: Integer - - attr_accessor snapshot_status_id: String - - def initialize: ( - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - snapshot_status_id: String - ) -> void - - def to_hash: -> { - object_id_: Integer, - object_type_id: String, - portal_id: Integer, - snapshot_status_id: String - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/filter.rbs b/sig/hubspot_sdk/models/webhooks/filter.rbs deleted file mode 100644 index 6dfee16b..00000000 --- a/sig/hubspot_sdk/models/webhooks/filter.rbs +++ /dev/null @@ -1,17 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type filter = { conditions: ::Array[HubSpotSDK::Webhooks::Condition] } - - class Filter < HubSpotSDK::Internal::Type::BaseModel - attr_accessor conditions: ::Array[HubSpotSDK::Webhooks::Condition] - - def initialize: ( - conditions: ::Array[HubSpotSDK::Webhooks::Condition] - ) -> void - - def to_hash: -> { conditions: ::Array[HubSpotSDK::Webhooks::Condition] } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/filter_create_request.rbs b/sig/hubspot_sdk/models/webhooks/filter_create_request.rbs deleted file mode 100644 index d767e734..00000000 --- a/sig/hubspot_sdk/models/webhooks/filter_create_request.rbs +++ /dev/null @@ -1,24 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type filter_create_request = - { filter: HubSpotSDK::Webhooks::Filter, subscription_id: Integer } - - class FilterCreateRequest < HubSpotSDK::Internal::Type::BaseModel - attr_accessor filter: HubSpotSDK::Webhooks::Filter - - attr_accessor subscription_id: Integer - - def initialize: ( - filter: HubSpotSDK::Webhooks::Filter, - subscription_id: Integer - ) -> void - - def to_hash: -> { - filter: HubSpotSDK::Webhooks::Filter, - subscription_id: Integer - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/filter_create_response.rbs b/sig/hubspot_sdk/models/webhooks/filter_create_response.rbs deleted file mode 100644 index 9f9debb6..00000000 --- a/sig/hubspot_sdk/models/webhooks/filter_create_response.rbs +++ /dev/null @@ -1,15 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type filter_create_response = { filter_id: Integer } - - class FilterCreateResponse < HubSpotSDK::Internal::Type::BaseModel - attr_accessor filter_id: Integer - - def initialize: (filter_id: Integer) -> void - - def to_hash: -> { filter_id: Integer } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/filter_response.rbs b/sig/hubspot_sdk/models/webhooks/filter_response.rbs deleted file mode 100644 index f011b99e..00000000 --- a/sig/hubspot_sdk/models/webhooks/filter_response.rbs +++ /dev/null @@ -1,32 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type filter_response = - { - id: Integer, - created_at: Integer, - filter: HubSpotSDK::Webhooks::Filter - } - - class FilterResponse < HubSpotSDK::Internal::Type::BaseModel - attr_accessor id: Integer - - attr_accessor created_at: Integer - - attr_accessor filter: HubSpotSDK::Webhooks::Filter - - def initialize: ( - id: Integer, - created_at: Integer, - filter: HubSpotSDK::Webhooks::Filter - ) -> void - - def to_hash: -> { - id: Integer, - created_at: Integer, - filter: HubSpotSDK::Webhooks::Filter - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rbs deleted file mode 100644 index dfdfdcfa..00000000 --- a/sig/hubspot_sdk/models/webhooks/gdpr_privacy_deletion_subscription_upsert_request.rbs +++ /dev/null @@ -1,93 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type gdpr_privacy_deletion_subscription_upsert_request = - { - actions: ::Array[HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::action], - object_type_id: String, - portal_id: Integer, - subscription_type: HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type - } - - class GdprPrivacyDeletionSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - attr_accessor actions: ::Array[HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::action] - - attr_accessor object_type_id: String - - attr_accessor portal_id: Integer - - attr_accessor subscription_type: HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type - - def initialize: ( - actions: ::Array[HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::action], - object_type_id: String, - portal_id: Integer, - subscription_type: HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type - ) -> void - - def to_hash: -> { - actions: ::Array[HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::action], - object_type_id: String, - portal_id: Integer, - subscription_type: HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type - } - - type action = - :CREATE - | :UPDATE - | :DELETE - | :MERGE - | :RESTORE - | :ASSOCIATION_ADDED - | :ASSOCIATION_REMOVED - | :SNAPSHOT - | :APP_INSTALL - | :APP_UNINSTALL - | :ADDED_TO_LIST - | :REMOVED_FROM_LIST - | :GDPR_DELETE - - 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 - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::action] - end - - type subscription_type = - :OBJECT - | :ASSOCIATION - | :EVENT - | :APP_LIFECYCLE_EVENT - | :LIST_MEMBERSHIP - | :GDPR_PRIVACY_DELETION - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT: :OBJECT - ASSOCIATION: :ASSOCIATION - EVENT: :EVENT - APP_LIFECYCLE_EVENT: :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP: :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION: :GDPR_PRIVACY_DELETION - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest::subscription_type] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/journal_fetch_response.rbs b/sig/hubspot_sdk/models/webhooks/journal_fetch_response.rbs deleted file mode 100644 index 03f0acc0..00000000 --- a/sig/hubspot_sdk/models/webhooks/journal_fetch_response.rbs +++ /dev/null @@ -1,28 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type journal_fetch_response = - { current_offset: String, expires_at: Time, url: String } - - class JournalFetchResponse < HubSpotSDK::Internal::Type::BaseModel - attr_accessor current_offset: String - - attr_accessor expires_at: Time - - attr_accessor url: String - - def initialize: ( - current_offset: String, - expires_at: Time, - url: String - ) -> void - - def to_hash: -> { - current_offset: String, - expires_at: Time, - url: String - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rbs deleted file mode 100644 index 5e92bcbd..00000000 --- a/sig/hubspot_sdk/models/webhooks/list_membership_subscription_upsert_request.rbs +++ /dev/null @@ -1,98 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type list_membership_subscription_upsert_request = - { - actions: ::Array[HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::action], - list_ids: ::Array[Integer], - object_ids: ::Array[Integer], - portal_id: Integer, - subscription_type: HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::subscription_type - } - - class ListMembershipSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - attr_accessor actions: ::Array[HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::action] - - attr_accessor list_ids: ::Array[Integer] - - attr_accessor object_ids: ::Array[Integer] - - attr_accessor portal_id: Integer - - attr_accessor subscription_type: HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::subscription_type - - def initialize: ( - actions: ::Array[HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::action], - list_ids: ::Array[Integer], - object_ids: ::Array[Integer], - portal_id: Integer, - subscription_type: HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::subscription_type - ) -> void - - def to_hash: -> { - actions: ::Array[HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::action], - list_ids: ::Array[Integer], - object_ids: ::Array[Integer], - portal_id: Integer, - subscription_type: HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::subscription_type - } - - type action = - :CREATE - | :UPDATE - | :DELETE - | :MERGE - | :RESTORE - | :ASSOCIATION_ADDED - | :ASSOCIATION_REMOVED - | :SNAPSHOT - | :APP_INSTALL - | :APP_UNINSTALL - | :ADDED_TO_LIST - | :REMOVED_FROM_LIST - | :GDPR_DELETE - - 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 - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::action] - end - - type subscription_type = - :OBJECT - | :ASSOCIATION - | :EVENT - | :APP_LIFECYCLE_EVENT - | :LIST_MEMBERSHIP - | :GDPR_PRIVACY_DELETION - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT: :OBJECT - ASSOCIATION: :ASSOCIATION - EVENT: :EVENT - APP_LIFECYCLE_EVENT: :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP: :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION: :GDPR_PRIVACY_DELETION - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::ListMembershipSubscriptionUpsertRequest::subscription_type] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rbs b/sig/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rbs deleted file mode 100644 index cfd4542e..00000000 --- a/sig/hubspot_sdk/models/webhooks/object_subscription_upsert_request.rbs +++ /dev/null @@ -1,103 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type object_subscription_upsert_request = - { - actions: ::Array[HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::action], - object_ids: ::Array[Integer], - object_type_id: String, - portal_id: Integer, - properties: ::Array[String], - subscription_type: HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::subscription_type - } - - class ObjectSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel - attr_accessor actions: ::Array[HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::action] - - attr_accessor object_ids: ::Array[Integer] - - attr_accessor object_type_id: String - - attr_accessor portal_id: Integer - - attr_accessor properties: ::Array[String] - - attr_accessor subscription_type: HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::subscription_type - - def initialize: ( - actions: ::Array[HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::action], - object_ids: ::Array[Integer], - object_type_id: String, - portal_id: Integer, - properties: ::Array[String], - subscription_type: HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::subscription_type - ) -> void - - def to_hash: -> { - actions: ::Array[HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::action], - object_ids: ::Array[Integer], - object_type_id: String, - portal_id: Integer, - properties: ::Array[String], - subscription_type: HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::subscription_type - } - - type action = - :CREATE - | :UPDATE - | :DELETE - | :MERGE - | :RESTORE - | :ASSOCIATION_ADDED - | :ASSOCIATION_REMOVED - | :SNAPSHOT - | :APP_INSTALL - | :APP_UNINSTALL - | :ADDED_TO_LIST - | :REMOVED_FROM_LIST - | :GDPR_DELETE - - 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 - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::action] - end - - type subscription_type = - :OBJECT - | :ASSOCIATION - | :EVENT - | :APP_LIFECYCLE_EVENT - | :LIST_MEMBERSHIP - | :GDPR_PRIVACY_DELETION - - module SubscriptionType - extend HubSpotSDK::Internal::Type::Enum - - OBJECT: :OBJECT - ASSOCIATION: :ASSOCIATION - EVENT: :EVENT - APP_LIFECYCLE_EVENT: :APP_LIFECYCLE_EVENT - LIST_MEMBERSHIP: :LIST_MEMBERSHIP - GDPR_PRIVACY_DELETION: :GDPR_PRIVACY_DELETION - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::ObjectSubscriptionUpsertRequest::subscription_type] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/snapshot_status_response.rbs b/sig/hubspot_sdk/models/webhooks/snapshot_status_response.rbs deleted file mode 100644 index 358fe219..00000000 --- a/sig/hubspot_sdk/models/webhooks/snapshot_status_response.rbs +++ /dev/null @@ -1,83 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type snapshot_status_response = - { - id: String, - initiated_at: Integer, - status: HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::status, - completed_at: Integer, - error_code: HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::error_code, - message: String - } - - class SnapshotStatusResponse < HubSpotSDK::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor initiated_at: Integer - - attr_accessor status: HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::status - - attr_reader completed_at: Integer? - - def completed_at=: (Integer) -> Integer - - attr_reader error_code: HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::error_code? - - def error_code=: ( - HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::error_code - ) -> HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::error_code - - attr_reader message: String? - - def message=: (String) -> String - - def initialize: ( - id: String, - initiated_at: Integer, - status: HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::status, - ?completed_at: Integer, - ?error_code: HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::error_code, - ?message: String - ) -> void - - def to_hash: -> { - id: String, - initiated_at: Integer, - status: HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::status, - completed_at: Integer, - error_code: HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::error_code, - message: String - } - - type status = :COMPLETED | :EXPIRED | :FAILED | :IN_PROGRESS | :PENDING - - module Status - extend HubSpotSDK::Internal::Type::Enum - - COMPLETED: :COMPLETED - EXPIRED: :EXPIRED - FAILED: :FAILED - IN_PROGRESS: :IN_PROGRESS - PENDING: :PENDING - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::status] - end - - type error_code = - :INTERNAL_ERROR | :PERMISSION_DENIED | :TIMEOUT | :VALIDATION_ERROR - - module ErrorCode - extend HubSpotSDK::Internal::Type::Enum - - INTERNAL_ERROR: :INTERNAL_ERROR - PERMISSION_DENIED: :PERMISSION_DENIED - TIMEOUT: :TIMEOUT - VALIDATION_ERROR: :VALIDATION_ERROR - - def self?.values: -> ::Array[HubSpotSDK::Models::Webhooks::SnapshotStatusResponse::error_code] - end - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/subscription_response_1.rbs b/sig/hubspot_sdk/models/webhooks/subscription_response_1.rbs index 247d4982..40a42ce5 100644 --- a/sig/hubspot_sdk/models/webhooks/subscription_response_1.rbs +++ b/sig/hubspot_sdk/models/webhooks/subscription_response_1.rbs @@ -10,7 +10,7 @@ module HubSpotSDK object_type_id: String, subscription_type: HubSpotSDK::Models::Webhooks::SubscriptionResponse1::subscription_type, updated_at: Time, - action_overrides: ::Hash[Symbol, HubSpotSDK::Webhooks::ActionOverrideRequest], + action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], associated_object_type_ids: ::Array[String], created_by: Integer, deleted_at: Time, @@ -35,11 +35,11 @@ module HubSpotSDK attr_accessor updated_at: Time - attr_reader action_overrides: ::Hash[Symbol, HubSpotSDK::Webhooks::ActionOverrideRequest]? + attr_reader action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest]? def action_overrides=: ( - ::Hash[Symbol, HubSpotSDK::Webhooks::ActionOverrideRequest] - ) -> ::Hash[Symbol, HubSpotSDK::Webhooks::ActionOverrideRequest] + ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest] + ) -> ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest] attr_reader associated_object_type_ids: ::Array[String]? @@ -77,7 +77,7 @@ module HubSpotSDK object_type_id: String, subscription_type: HubSpotSDK::Models::Webhooks::SubscriptionResponse1::subscription_type, updated_at: Time, - ?action_overrides: ::Hash[Symbol, HubSpotSDK::Webhooks::ActionOverrideRequest], + ?action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], ?associated_object_type_ids: ::Array[String], ?created_by: Integer, ?deleted_at: Time, @@ -95,7 +95,7 @@ module HubSpotSDK object_type_id: String, subscription_type: HubSpotSDK::Models::Webhooks::SubscriptionResponse1::subscription_type, updated_at: Time, - action_overrides: ::Hash[Symbol, HubSpotSDK::Webhooks::ActionOverrideRequest], + action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], associated_object_type_ids: ::Array[String], created_by: Integer, deleted_at: Time, diff --git a/sig/hubspot_sdk/models/webhooks/subscription_upsert_request.rbs b/sig/hubspot_sdk/models/webhooks/subscription_upsert_request.rbs deleted file mode 100644 index 016c8976..00000000 --- a/sig/hubspot_sdk/models/webhooks/subscription_upsert_request.rbs +++ /dev/null @@ -1,18 +0,0 @@ -module HubSpotSDK - module Models - module Webhooks - type subscription_upsert_request = - HubSpotSDK::Webhooks::ObjectSubscriptionUpsertRequest - | HubSpotSDK::Webhooks::AssociationSubscriptionUpsertRequest - | HubSpotSDK::Webhooks::AppLifecycleEventSubscriptionUpsertRequest - | HubSpotSDK::Webhooks::ListMembershipSubscriptionUpsertRequest - | HubSpotSDK::Webhooks::GdprPrivacyDeletionSubscriptionUpsertRequest - - module SubscriptionUpsertRequest - extend HubSpotSDK::Internal::Type::Union - - def self?.variants: -> ::Array[HubSpotSDK::Models::Webhooks::subscription_upsert_request] - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rbs b/sig/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rbs index 7269ffb0..3b4d465f 100644 --- a/sig/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rbs +++ b/sig/hubspot_sdk/models/webhooks/webhook_create_crm_snapshots_params.rbs @@ -4,7 +4,7 @@ module HubSpotSDK type webhook_create_crm_snapshots_params = { } & HubSpotSDK::Internal::Type::request_parameters - class WebhookCreateCrmSnapshotsParams < HubSpotSDK::Models::Webhooks::CrmObjectSnapshotBatchRequest + class WebhookCreateCrmSnapshotsParams < HubSpotSDK::Models::CrmObjectSnapshotBatchRequest extend HubSpotSDK::Internal::Type::RequestParameters::Converter include HubSpotSDK::Internal::Type::RequestParameters diff --git a/sig/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rbs b/sig/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rbs index 68729a5b..097cb32c 100644 --- a/sig/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rbs +++ b/sig/hubspot_sdk/models/webhooks/webhook_create_subscription_filter_params.rbs @@ -4,7 +4,7 @@ module HubSpotSDK type webhook_create_subscription_filter_params = { } & HubSpotSDK::Internal::Type::request_parameters - class WebhookCreateSubscriptionFilterParams < HubSpotSDK::Models::Webhooks::FilterCreateRequest + class WebhookCreateSubscriptionFilterParams < HubSpotSDK::Models::FilterCreateRequest extend HubSpotSDK::Internal::Type::RequestParameters::Converter include HubSpotSDK::Internal::Type::RequestParameters diff --git a/sig/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rbs b/sig/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rbs index 40e040dd..2c3218b8 100644 --- a/sig/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rbs +++ b/sig/hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response.rbs @@ -2,7 +2,7 @@ module HubSpotSDK module Models module Webhooks type webhook_list_subscription_filters_response = - ::Array[HubSpotSDK::Webhooks::FilterResponse] + ::Array[HubSpotSDK::FilterResponse] WebhookListSubscriptionFiltersResponse: HubSpotSDK::Internal::Type::Converter end diff --git a/sig/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbs b/sig/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbs new file mode 100644 index 00000000..d718e94a --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbs @@ -0,0 +1,20 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type collection_response_subscription_response_no_paging = + { results: ::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] } + + class CollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel + attr_accessor results: ::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] + + def initialize: ( + results: ::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] + ) -> void + + def to_hash: -> { + results: ::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rbs new file mode 100644 index 00000000..7c66164e --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params.rbs @@ -0,0 +1,34 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + type batch_get_earliest_params = + { count: Integer, install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class BatchGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor count: Integer + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + count: Integer, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rbs new file mode 100644 index 00000000..04fe016f --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params.rbs @@ -0,0 +1,38 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + type batch_get_from_offset_params = + { offset: String, count: Integer, install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class BatchGetFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor offset: String + + attr_accessor count: Integer + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + offset: String, + count: Integer, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + offset: String, + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rbs new file mode 100644 index 00000000..a95878ea --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params.rbs @@ -0,0 +1,34 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + type batch_get_latest_params = + { count: Integer, install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class BatchGetLatestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor count: Integer + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + count: Integer, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rbs new file mode 100644 index 00000000..d6f24cb7 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal/batch_get_params.rbs @@ -0,0 +1,30 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module Journal + type batch_get_params = + { install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class BatchGetParams < HubSpotSDK::Models::BatchInputString + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + def install_portal_id: -> Integer? + + def install_portal_id=: (Integer _) -> Integer + + def initialize: ( + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rbs new file mode 100644 index 00000000..f3800279 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_get_earliest_params.rbs @@ -0,0 +1,28 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type journal_get_earliest_params = + { install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class JournalGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rbs new file mode 100644 index 00000000..67bb6209 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params.rbs @@ -0,0 +1,32 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type journal_get_next_from_offset_params = + { offset: String, install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class JournalGetNextFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor offset: String + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + offset: String, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rbs new file mode 100644 index 00000000..3fb1b4e9 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_get_status_params.rbs @@ -0,0 +1,25 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type journal_get_status_params = + { status_id: String } & HubSpotSDK::Internal::Type::request_parameters + + class JournalGetStatusParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor status_id: String + + def initialize: ( + status_id: String, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + status_id: String, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rbs new file mode 100644 index 00000000..ef56aec4 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_earliest_params.rbs @@ -0,0 +1,34 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module JournalLocal + type batch_get_earliest_params = + { count: Integer, install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class BatchGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor count: Integer + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + count: Integer, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rbs new file mode 100644 index 00000000..1e039809 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_from_offset_params.rbs @@ -0,0 +1,38 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module JournalLocal + type batch_get_from_offset_params = + { offset: String, count: Integer, install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class BatchGetFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor offset: String + + attr_accessor count: Integer + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + offset: String, + count: Integer, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + offset: String, + count: Integer, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rbs new file mode 100644 index 00000000..31490849 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_local/batch_get_params.rbs @@ -0,0 +1,30 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module JournalLocal + type batch_get_params = + { install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class BatchGetParams < HubSpotSDK::Models::BatchInputString + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + def install_portal_id: -> Integer? + + def install_portal_id=: (Integer _) -> Integer + + def initialize: ( + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rbs new file mode 100644 index 00000000..ea17c80a --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_earliest_params.rbs @@ -0,0 +1,28 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type journal_local_get_earliest_params = + { install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class JournalLocalGetEarliestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rbs new file mode 100644 index 00000000..09381dd5 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params.rbs @@ -0,0 +1,28 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type journal_local_get_latest_params = + { install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class JournalLocalGetLatestParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rbs new file mode 100644 index 00000000..8ee75f52 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params.rbs @@ -0,0 +1,32 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type journal_local_get_next_from_offset_params = + { offset: String, install_portal_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class JournalLocalGetNextFromOffsetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor offset: String + + attr_reader install_portal_id: Integer? + + def install_portal_id=: (Integer) -> Integer + + def initialize: ( + offset: String, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + offset: String, + install_portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rbs new file mode 100644 index 00000000..4c8e032b --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_local_get_status_params.rbs @@ -0,0 +1,25 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type journal_local_get_status_params = + { status_id: String } & HubSpotSDK::Internal::Type::request_parameters + + class JournalLocalGetStatusParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor status_id: String + + def initialize: ( + status_id: String, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + status_id: String, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rbs new file mode 100644 index 00000000..a3b8df68 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/snapshot_create_params.rbs @@ -0,0 +1,17 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type snapshot_create_params = + { } & HubSpotSDK::Internal::Type::request_parameters + + class SnapshotCreateParams < HubSpotSDK::Models::CrmObjectSnapshotBatchRequest + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + def initialize: (?request_options: HubSpotSDK::request_opts) -> void + + def to_hash: -> { request_options: HubSpotSDK::RequestOptions } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscription_create_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscription_create_params.rbs new file mode 100644 index 00000000..d611864c --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscription_create_params.rbs @@ -0,0 +1,17 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type subscription_create_params = + { } & HubSpotSDK::Internal::Type::request_parameters + + class SubscriptionCreateParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + def initialize: (?request_options: HubSpotSDK::request_opts) -> void + + def to_hash: -> { request_options: HubSpotSDK::RequestOptions } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rbs new file mode 100644 index 00000000..d7cbb8e6 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params.rbs @@ -0,0 +1,25 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type subscription_delete_for_portal_params = + { portal_id: Integer } & HubSpotSDK::Internal::Type::request_parameters + + class SubscriptionDeleteForPortalParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor portal_id: Integer + + def initialize: ( + portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + portal_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rbs new file mode 100644 index 00000000..e61f7df3 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscription_delete_params.rbs @@ -0,0 +1,26 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type subscription_delete_params = + { subscription_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class SubscriptionDeleteParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor subscription_id: Integer + + def initialize: ( + subscription_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscription_get_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscription_get_params.rbs new file mode 100644 index 00000000..1863e211 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscription_get_params.rbs @@ -0,0 +1,26 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type subscription_get_params = + { subscription_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class SubscriptionGetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor subscription_id: Integer + + def initialize: ( + subscription_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscription_list_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscription_list_params.rbs new file mode 100644 index 00000000..a5ae3c22 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscription_list_params.rbs @@ -0,0 +1,17 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type subscription_list_params = + { } & HubSpotSDK::Internal::Type::request_parameters + + class SubscriptionListParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + def initialize: (?request_options: HubSpotSDK::request_opts) -> void + + def to_hash: -> { request_options: HubSpotSDK::RequestOptions } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscription_response.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscription_response.rbs new file mode 100644 index 00000000..3ab587a3 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscription_response.rbs @@ -0,0 +1,166 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type subscription_response = + { + id: Integer, + actions: ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action], + app_id: Integer, + created_at: Time, + object_type_id: String, + subscription_type: HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type, + updated_at: Time, + action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], + associated_object_type_ids: ::Array[String], + created_by: Integer, + deleted_at: Time, + list_ids: ::Array[Integer], + object_ids: ::Array[Integer], + portal_id: Integer, + properties: ::Array[String] + } + + class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel + attr_accessor id: Integer + + attr_accessor actions: ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action] + + attr_accessor app_id: Integer + + attr_accessor created_at: Time + + attr_accessor object_type_id: String + + attr_accessor subscription_type: HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type + + attr_accessor updated_at: Time + + attr_reader action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest]? + + def action_overrides=: ( + ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest] + ) -> ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest] + + attr_reader associated_object_type_ids: ::Array[String]? + + def associated_object_type_ids=: (::Array[String]) -> ::Array[String] + + attr_reader created_by: Integer? + + def created_by=: (Integer) -> Integer + + attr_reader deleted_at: Time? + + def deleted_at=: (Time) -> Time + + attr_reader list_ids: ::Array[Integer]? + + def list_ids=: (::Array[Integer]) -> ::Array[Integer] + + attr_reader object_ids: ::Array[Integer]? + + def object_ids=: (::Array[Integer]) -> ::Array[Integer] + + attr_reader portal_id: Integer? + + def portal_id=: (Integer) -> Integer + + attr_reader properties: ::Array[String]? + + def properties=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: Integer, + actions: ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action], + app_id: Integer, + created_at: Time, + object_type_id: String, + subscription_type: HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type, + updated_at: Time, + ?action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], + ?associated_object_type_ids: ::Array[String], + ?created_by: Integer, + ?deleted_at: Time, + ?list_ids: ::Array[Integer], + ?object_ids: ::Array[Integer], + ?portal_id: Integer, + ?properties: ::Array[String] + ) -> void + + def to_hash: -> { + id: Integer, + actions: ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action], + app_id: Integer, + created_at: Time, + object_type_id: String, + subscription_type: HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type, + updated_at: Time, + action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], + associated_object_type_ids: ::Array[String], + created_by: Integer, + deleted_at: Time, + list_ids: ::Array[Integer], + object_ids: ::Array[Integer], + portal_id: Integer, + properties: ::Array[String] + } + + type action = + :CREATE + | :UPDATE + | :DELETE + | :MERGE + | :RESTORE + | :ASSOCIATION_ADDED + | :ASSOCIATION_REMOVED + | :SNAPSHOT + | :APP_INSTALL + | :APP_UNINSTALL + | :ADDED_TO_LIST + | :REMOVED_FROM_LIST + | :GDPR_DELETE + + 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 + + def self?.values: -> ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action] + end + + type subscription_type = + :APP_LIFECYCLE_EVENT + | :ASSOCIATION + | :EVENT + | :GDPR_PRIVACY_DELETION + | :LIST_MEMBERSHIP + | :OBJECT + + module SubscriptionType + extend HubSpotSDK::Internal::Type::Enum + + APP_LIFECYCLE_EVENT: :APP_LIFECYCLE_EVENT + ASSOCIATION: :ASSOCIATION + EVENT: :EVENT + GDPR_PRIVACY_DELETION: :GDPR_PRIVACY_DELETION + LIST_MEMBERSHIP: :LIST_MEMBERSHIP + OBJECT: :OBJECT + + def self?.values: -> ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type] + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rbs new file mode 100644 index 00000000..8ff9fde1 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params.rbs @@ -0,0 +1,19 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + type filter_create_params = + { } & HubSpotSDK::Internal::Type::request_parameters + + class FilterCreateParams < HubSpotSDK::Models::FilterCreateRequest + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + def initialize: (?request_options: HubSpotSDK::request_opts) -> void + + def to_hash: -> { request_options: HubSpotSDK::RequestOptions } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rbs new file mode 100644 index 00000000..8342ce71 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params.rbs @@ -0,0 +1,28 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + type filter_delete_params = + { filter_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class FilterDeleteParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor filter_id: Integer + + def initialize: ( + filter_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + filter_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rbs new file mode 100644 index 00000000..f25a55c3 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params.rbs @@ -0,0 +1,28 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + type filter_get_params = + { filter_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class FilterGetParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor filter_id: Integer + + def initialize: ( + filter_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + filter_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rbs new file mode 100644 index 00000000..d90ca3a6 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_params.rbs @@ -0,0 +1,28 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + type filter_list_params = + { subscription_id: Integer } + & HubSpotSDK::Internal::Type::request_parameters + + class FilterListParams < HubSpotSDK::Internal::Type::BaseModel + extend HubSpotSDK::Internal::Type::RequestParameters::Converter + include HubSpotSDK::Internal::Type::RequestParameters + + attr_accessor subscription_id: Integer + + def initialize: ( + subscription_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> void + + def to_hash: -> { + subscription_id: Integer, + request_options: HubSpotSDK::RequestOptions + } + end + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rbs b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rbs new file mode 100644 index 00000000..365c709b --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/subscriptions/filter_list_response.rbs @@ -0,0 +1,11 @@ +module HubSpotSDK + module Models + module WebhooksJournal + module Subscriptions + type filter_list_response = ::Array[HubSpotSDK::FilterResponse] + + FilterListResponse: HubSpotSDK::Internal::Type::Converter + end + end + end +end diff --git a/sig/hubspot_sdk/resources/auth/oauth.rbs b/sig/hubspot_sdk/resources/auth/oauth.rbs index 1a77cedb..5d82aeed 100644 --- a/sig/hubspot_sdk/resources/auth/oauth.rbs +++ b/sig/hubspot_sdk/resources/auth/oauth.rbs @@ -12,7 +12,7 @@ module HubSpotSDK ?refresh_token: String, ?scope: String, ?request_options: HubSpotSDK::request_opts - ) -> StringIO + ) -> HubSpotSDK::Models::Auth::token_response_if def introspect_token: ( ?token: String, diff --git a/sig/hubspot_sdk/resources/cms/url_redirects.rbs b/sig/hubspot_sdk/resources/cms/url_redirects.rbs index f96fd21f..705ff42c 100644 --- a/sig/hubspot_sdk/resources/cms/url_redirects.rbs +++ b/sig/hubspot_sdk/resources/cms/url_redirects.rbs @@ -53,11 +53,42 @@ module HubSpotSDK ?request_options: HubSpotSDK::request_opts ) -> nil + def create_url_mapping: ( + id: String, + created: Time, + destination: String, + is_match_full_url: bool, + is_match_query_string: bool, + is_only_after_not_found: bool, + is_pattern: bool, + is_protocol_agnostic: bool, + is_trailing_slash_optional: bool, + precedence: Integer, + redirect_style: Integer, + route_prefix: String, + updated: Time, + ?request_options: HubSpotSDK::request_opts + ) -> StringIO + + def delete_url_mapping: ( + Integer id, + ?request_options: HubSpotSDK::request_opts + ) -> nil + def get: ( String url_redirect_id, ?request_options: HubSpotSDK::request_opts ) -> HubSpotSDK::Cms::URLMapping + def get_url_mapping: ( + Integer id, + ?request_options: HubSpotSDK::request_opts + ) -> StringIO + + def list_url_mappings: ( + ?request_options: HubSpotSDK::request_opts + ) -> StringIO + def initialize: (client: HubSpotSDK::Client) -> void end end diff --git a/sig/hubspot_sdk/resources/conversations/visitor_identification.rbs b/sig/hubspot_sdk/resources/conversations/visitor_identification.rbs index 8a50591f..e6deb74d 100644 --- a/sig/hubspot_sdk/resources/conversations/visitor_identification.rbs +++ b/sig/hubspot_sdk/resources/conversations/visitor_identification.rbs @@ -4,6 +4,7 @@ module HubSpotSDK class VisitorIdentification def generate_token: ( email: String, + hs_customer_agent_context: ::Hash[Symbol, String], ?first_name: String, ?last_name: String, ?request_options: HubSpotSDK::request_opts diff --git a/sig/hubspot_sdk/resources/webhooks.rbs b/sig/hubspot_sdk/resources/webhooks.rbs index 7fb036b2..a3bcaee4 100644 --- a/sig/hubspot_sdk/resources/webhooks.rbs +++ b/sig/hubspot_sdk/resources/webhooks.rbs @@ -8,9 +8,9 @@ module HubSpotSDK ) -> HubSpotSDK::Webhooks::BatchResponseSubscriptionResponse def create_crm_snapshots: ( - snapshot_requests: ::Array[HubSpotSDK::Webhooks::CrmObjectSnapshotRequest], + snapshot_requests: ::Array[HubSpotSDK::CrmObjectSnapshotRequest], ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::CrmObjectSnapshotBatchResponse + ) -> HubSpotSDK::CrmObjectSnapshotBatchResponse def create_event_subscription: ( Integer app_id, @@ -23,15 +23,15 @@ module HubSpotSDK ) -> HubSpotSDK::Webhooks::SubscriptionResponse def create_journal_subscription: ( - subscription_upsert_request: HubSpotSDK::Models::Webhooks::subscription_upsert_request, + subscription_upsert_request: HubSpotSDK::Models::subscription_upsert_request, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::SubscriptionResponse1 + ) -> HubSpotSDK::WebhooksJournal::SubscriptionResponse def create_subscription_filter: ( - filter: HubSpotSDK::Webhooks::Filter, + filter: HubSpotSDK::Filter, subscription_id: Integer, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::FilterCreateResponse + ) -> HubSpotSDK::FilterCreateResponse def delete_event_subscription: ( Integer subscription_id, @@ -63,7 +63,7 @@ module HubSpotSDK Integer count, ?install_portal_id: Integer, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + ) -> HubSpotSDK::BatchResponseJournalFetchResponse def get_earliest_journal_entry: ( ?install_portal_id: Integer, @@ -74,7 +74,7 @@ module HubSpotSDK Integer count, ?install_portal_id: Integer, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + ) -> HubSpotSDK::BatchResponseJournalFetchResponse def get_earliest_local_journal_entry: ( ?install_portal_id: Integer, @@ -91,30 +91,30 @@ module HubSpotSDK inputs: ::Array[String], ?install_portal_id: Integer, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + ) -> HubSpotSDK::BatchResponseJournalFetchResponse def get_journal_batch_from_offset: ( Integer count, offset: String, ?install_portal_id: Integer, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + ) -> HubSpotSDK::BatchResponseJournalFetchResponse def get_journal_status: ( String status_id, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::SnapshotStatusResponse + ) -> HubSpotSDK::SnapshotStatusResponse def get_journal_subscription: ( Integer subscription_id, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::SubscriptionResponse1 + ) -> HubSpotSDK::WebhooksJournal::SubscriptionResponse def get_latest_journal_batch: ( Integer count, ?install_portal_id: Integer, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + ) -> HubSpotSDK::BatchResponseJournalFetchResponse def get_latest_journal_entry: ( ?install_portal_id: Integer, @@ -125,7 +125,7 @@ module HubSpotSDK Integer count, ?install_portal_id: Integer, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + ) -> HubSpotSDK::BatchResponseJournalFetchResponse def get_latest_local_journal_entry: ( ?install_portal_id: Integer, @@ -136,19 +136,19 @@ module HubSpotSDK inputs: ::Array[String], ?install_portal_id: Integer, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + ) -> HubSpotSDK::BatchResponseJournalFetchResponse def get_local_journal_batch_from_offset: ( Integer count, offset: String, ?install_portal_id: Integer, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + ) -> HubSpotSDK::BatchResponseJournalFetchResponse def get_local_journal_status: ( String status_id, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::SnapshotStatusResponse + ) -> HubSpotSDK::SnapshotStatusResponse def get_next_journal_entries: ( String offset, @@ -170,7 +170,7 @@ module HubSpotSDK def get_subscription_filter: ( Integer filter_id, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::FilterResponse + ) -> HubSpotSDK::FilterResponse def list_event_subscriptions: ( Integer app_id, @@ -179,7 +179,7 @@ module HubSpotSDK def list_journal_subscriptions: ( ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::Webhooks::CollectionResponseSubscriptionResponseNoPaging + ) -> HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging def list_subscription_filters: ( Integer subscription_id, diff --git a/sig/hubspot_sdk/resources/webhooks_journal.rbs b/sig/hubspot_sdk/resources/webhooks_journal.rbs new file mode 100644 index 00000000..334efd88 --- /dev/null +++ b/sig/hubspot_sdk/resources/webhooks_journal.rbs @@ -0,0 +1,15 @@ +module HubSpotSDK + module Resources + class WebhooksJournal + attr_reader journal: HubSpotSDK::Resources::WebhooksJournal::Journal + + attr_reader journal_local: HubSpotSDK::Resources::WebhooksJournal::JournalLocal + + attr_reader snapshots: HubSpotSDK::Resources::WebhooksJournal::Snapshots + + attr_reader subscriptions: HubSpotSDK::Resources::WebhooksJournal::Subscriptions + + def initialize: (client: HubSpotSDK::Client) -> void + end + end +end diff --git a/sig/hubspot_sdk/resources/webhooks_journal/journal.rbs b/sig/hubspot_sdk/resources/webhooks_journal/journal.rbs new file mode 100644 index 00000000..6b0496e8 --- /dev/null +++ b/sig/hubspot_sdk/resources/webhooks_journal/journal.rbs @@ -0,0 +1,27 @@ +module HubSpotSDK + module Resources + class WebhooksJournal + class Journal + attr_reader batch: HubSpotSDK::Resources::WebhooksJournal::Journal::Batch + + def get_earliest: ( + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> StringIO + + def get_next_from_offset: ( + String offset, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> StringIO + + def get_status: ( + String status_id, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::SnapshotStatusResponse + + def initialize: (client: HubSpotSDK::Client) -> void + end + end + end +end diff --git a/sig/hubspot_sdk/resources/webhooks_journal/journal/batch.rbs b/sig/hubspot_sdk/resources/webhooks_journal/journal/batch.rbs new file mode 100644 index 00000000..d8244452 --- /dev/null +++ b/sig/hubspot_sdk/resources/webhooks_journal/journal/batch.rbs @@ -0,0 +1,36 @@ +module HubSpotSDK + module Resources + class WebhooksJournal + class Journal + class Batch + def get: ( + inputs: ::Array[String], + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::BatchResponseJournalFetchResponse + + def get_earliest: ( + Integer count, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::BatchResponseJournalFetchResponse + + def get_from_offset: ( + Integer count, + offset: String, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::BatchResponseJournalFetchResponse + + def get_latest: ( + Integer count, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::BatchResponseJournalFetchResponse + + def initialize: (client: HubSpotSDK::Client) -> void + end + end + end + end +end diff --git a/sig/hubspot_sdk/resources/webhooks_journal/journal_local.rbs b/sig/hubspot_sdk/resources/webhooks_journal/journal_local.rbs new file mode 100644 index 00000000..84661cd7 --- /dev/null +++ b/sig/hubspot_sdk/resources/webhooks_journal/journal_local.rbs @@ -0,0 +1,32 @@ +module HubSpotSDK + module Resources + class WebhooksJournal + class JournalLocal + attr_reader batch: HubSpotSDK::Resources::WebhooksJournal::JournalLocal::Batch + + def get_earliest: ( + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> StringIO + + def get_latest: ( + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> StringIO + + def get_next_from_offset: ( + String offset, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> StringIO + + def get_status: ( + String status_id, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::SnapshotStatusResponse + + def initialize: (client: HubSpotSDK::Client) -> void + end + end + end +end diff --git a/sig/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rbs b/sig/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rbs new file mode 100644 index 00000000..0a598785 --- /dev/null +++ b/sig/hubspot_sdk/resources/webhooks_journal/journal_local/batch.rbs @@ -0,0 +1,30 @@ +module HubSpotSDK + module Resources + class WebhooksJournal + class JournalLocal + class Batch + def get: ( + inputs: ::Array[String], + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::BatchResponseJournalFetchResponse + + def get_earliest: ( + Integer count, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::BatchResponseJournalFetchResponse + + def get_from_offset: ( + Integer count, + offset: String, + ?install_portal_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::BatchResponseJournalFetchResponse + + def initialize: (client: HubSpotSDK::Client) -> void + end + end + end + end +end diff --git a/sig/hubspot_sdk/resources/webhooks_journal/snapshots.rbs b/sig/hubspot_sdk/resources/webhooks_journal/snapshots.rbs new file mode 100644 index 00000000..6a4fe697 --- /dev/null +++ b/sig/hubspot_sdk/resources/webhooks_journal/snapshots.rbs @@ -0,0 +1,14 @@ +module HubSpotSDK + module Resources + class WebhooksJournal + class Snapshots + def create: ( + snapshot_requests: ::Array[HubSpotSDK::CrmObjectSnapshotRequest], + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::CrmObjectSnapshotBatchResponse + + def initialize: (client: HubSpotSDK::Client) -> void + end + end + end +end diff --git a/sig/hubspot_sdk/resources/webhooks_journal/subscriptions.rbs b/sig/hubspot_sdk/resources/webhooks_journal/subscriptions.rbs new file mode 100644 index 00000000..d36be675 --- /dev/null +++ b/sig/hubspot_sdk/resources/webhooks_journal/subscriptions.rbs @@ -0,0 +1,35 @@ +module HubSpotSDK + module Resources + class WebhooksJournal + class Subscriptions + attr_reader filters: HubSpotSDK::Resources::WebhooksJournal::Subscriptions::Filters + + def create: ( + subscription_upsert_request: HubSpotSDK::Models::subscription_upsert_request, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::WebhooksJournal::SubscriptionResponse + + def list: ( + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging + + def delete: ( + Integer subscription_id, + ?request_options: HubSpotSDK::request_opts + ) -> nil + + def delete_for_portal: ( + Integer portal_id, + ?request_options: HubSpotSDK::request_opts + ) -> nil + + def get: ( + Integer subscription_id, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::WebhooksJournal::SubscriptionResponse + + def initialize: (client: HubSpotSDK::Client) -> void + end + end + end +end diff --git a/sig/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rbs b/sig/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rbs new file mode 100644 index 00000000..d8fe3412 --- /dev/null +++ b/sig/hubspot_sdk/resources/webhooks_journal/subscriptions/filters.rbs @@ -0,0 +1,32 @@ +module HubSpotSDK + module Resources + class WebhooksJournal + class Subscriptions + class Filters + def create: ( + filter: HubSpotSDK::Filter, + subscription_id: Integer, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::FilterCreateResponse + + def list: ( + Integer subscription_id, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::Models::WebhooksJournal::Subscriptions::filter_list_response + + def delete: ( + Integer filter_id, + ?request_options: HubSpotSDK::request_opts + ) -> nil + + def get: ( + Integer filter_id, + ?request_options: HubSpotSDK::request_opts + ) -> HubSpotSDK::FilterResponse + + def initialize: (client: HubSpotSDK::Client) -> void + end + end + end + end +end diff --git a/test/hubspot_sdk/resource_namespaces.rb b/test/hubspot_sdk/resource_namespaces.rb index 550c3255..6bbc452e 100644 --- a/test/hubspot_sdk/resource_namespaces.rb +++ b/test/hubspot_sdk/resource_namespaces.rb @@ -309,6 +309,12 @@ module Hubdb module Invoices end + module Journal + end + + module JournalLocal + end + module LandingPages end @@ -544,6 +550,17 @@ module Transactional module Users end + + module WebhooksJournal + module Journal + end + + module JournalLocal + end + + module Subscriptions + end + end end end end diff --git a/test/hubspot_sdk/resources/auth/oauth_test.rb b/test/hubspot_sdk/resources/auth/oauth_test.rb index afd44bde..6d460c32 100644 --- a/test/hubspot_sdk/resources/auth/oauth_test.rb +++ b/test/hubspot_sdk/resources/auth/oauth_test.rb @@ -9,7 +9,14 @@ def test_create_token response = @hubspot.auth.oauth.create_token assert_pattern do - response => StringIO + response => HubSpotSDK::Auth::TokenResponseIf + end + + assert_pattern do + case response + in HubSpotSDK::Auth::AccessTokenResponse + in HubSpotSDK::Auth::ClientCredentialsTokenResponse + end end end diff --git a/test/hubspot_sdk/resources/cms/url_redirects_test.rb b/test/hubspot_sdk/resources/cms/url_redirects_test.rb index 57de1c6c..aacf99b2 100644 --- a/test/hubspot_sdk/resources/cms/url_redirects_test.rb +++ b/test/hubspot_sdk/resources/cms/url_redirects_test.rb @@ -125,6 +125,41 @@ def test_delete end end + def test_create_url_mapping_required_params + skip("Mock server tests are disabled") + + response = + @hubspot.cms.url_redirects.create_url_mapping( + id: "id", + created: "2019-12-27T18:11:19.117Z", + destination: "destination", + is_match_full_url: true, + is_match_query_string: true, + is_only_after_not_found: true, + is_pattern: true, + is_protocol_agnostic: true, + is_trailing_slash_optional: true, + precedence: 0, + redirect_style: 0, + route_prefix: "routePrefix", + updated: "2019-12-27T18:11:19.117Z" + ) + + assert_pattern do + response => StringIO + end + end + + def test_delete_url_mapping + skip("Mock server tests are disabled") + + response = @hubspot.cms.url_redirects.delete_url_mapping(0) + + assert_pattern do + response => nil + end + end + def test_get skip("Mock server tests are disabled") @@ -152,4 +187,24 @@ def test_get } end end + + def test_get_url_mapping + skip("Mock server tests are disabled") + + response = @hubspot.cms.url_redirects.get_url_mapping(0) + + assert_pattern do + response => StringIO + end + end + + def test_list_url_mappings + skip("Mock server tests are disabled") + + response = @hubspot.cms.url_redirects.list_url_mappings + + assert_pattern do + response => StringIO + end + end end diff --git a/test/hubspot_sdk/resources/conversations/visitor_identification_test.rb b/test/hubspot_sdk/resources/conversations/visitor_identification_test.rb index a25978b2..797c5c55 100644 --- a/test/hubspot_sdk/resources/conversations/visitor_identification_test.rb +++ b/test/hubspot_sdk/resources/conversations/visitor_identification_test.rb @@ -6,7 +6,11 @@ class HubSpotSDK::Test::Resources::Conversations::VisitorIdentificationTest < Hu def test_generate_token_required_params skip("Mock server tests are disabled") - response = @hubspot.conversations.visitor_identification.generate_token(email: "email") + response = + @hubspot.conversations.visitor_identification.generate_token( + email: "email", + hs_customer_agent_context: {foo: "string"} + ) assert_pattern do response => HubSpotSDK::Conversations::IdentificationTokenResponse diff --git a/test/hubspot_sdk/resources/crm/exports_test.rb b/test/hubspot_sdk/resources/crm/exports_test.rb index f55fce75..50978d8a 100644 --- a/test/hubspot_sdk/resources/crm/exports_test.rb +++ b/test/hubspot_sdk/resources/crm/exports_test.rb @@ -13,10 +13,10 @@ def test_create_async_required_params exportInternalValuesOptions: [:NAMES], exportName: "exportName", exportType: :VIEW, - format: :XLS, + format: :CSV, includeLabeledAssociations: true, includePrimaryDisplayPropertyForAssociatedObjects: true, - language: :EN, + language: :AF_ZA, objectProperties: ["string"], objectType: "objectType", overrideAssociatedObjectsPerDefinitionPerRowLimit: true diff --git a/test/hubspot_sdk/resources/crm/lists_test.rb b/test/hubspot_sdk/resources/crm/lists_test.rb index a6f76c59..2387b857 100644 --- a/test/hubspot_sdk/resources/crm/lists_test.rb +++ b/test/hubspot_sdk/resources/crm/lists_test.rb @@ -469,31 +469,13 @@ def test_update_list_filters_required_params eventTypeId: "eventTypeId", filterBranches: [ { + associationCategory: "associationCategory", + associationTypeId: 0, filterBranches: [ { - associationCategory: "associationCategory", - associationTypeId: 0, - filterBranches: [ - { - filterBranches: [], - filterBranchOperator: "filterBranchOperator", - filterBranchType: :OR, - filters: [ - { - filterType: :PROPERTY, - operation: { - includeObjectsWithNoValueSet: true, - operationType: :BOOL, - operator: "operator", - value: true - }, - property: "property" - } - ] - } - ], + filterBranches: [], filterBranchOperator: "filterBranchOperator", - filterBranchType: :ASSOCIATION, + filterBranchType: :OR, filters: [ { filterType: :PROPERTY, @@ -505,13 +487,11 @@ def test_update_list_filters_required_params }, property: "property" } - ], - objectTypeId: "objectTypeId", - operator: "operator" + ] } ], filterBranchOperator: "filterBranchOperator", - filterBranchType: :PROPERTY_ASSOCIATION, + filterBranchType: :ASSOCIATION, filters: [ { filterType: :PROPERTY, @@ -525,8 +505,7 @@ def test_update_list_filters_required_params } ], objectTypeId: "objectTypeId", - operator: "operator", - propertyWithObjectId: "propertyWithObjectId" + operator: "operator" } ], filterBranchOperator: "filterBranchOperator", diff --git a/test/hubspot_sdk/resources/webhooks_journal/journal/batch_test.rb b/test/hubspot_sdk/resources/webhooks_journal/journal/batch_test.rb new file mode 100644 index 00000000..c95c9eaa --- /dev/null +++ b/test/hubspot_sdk/resources/webhooks_journal/journal/batch_test.rb @@ -0,0 +1,89 @@ +# frozen_string_literal: true + +require_relative "../../../test_helper" + +class HubSpotSDK::Test::Resources::WebhooksJournal::Journal::BatchTest < HubSpotSDK::Test::ResourceTest + def test_get_required_params + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal.batch.get(inputs: ["string"]) + + assert_pattern do + response => HubSpotSDK::BatchResponseJournalFetchResponse + end + + assert_pattern do + response => { + completed_at: Time, + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), + started_at: Time, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, + links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, + requested_at: Time | nil + } + end + end + + def test_get_earliest + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal.batch.get_earliest(1) + + assert_pattern do + response => HubSpotSDK::BatchResponseJournalFetchResponse + end + + assert_pattern do + response => { + completed_at: Time, + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), + started_at: Time, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, + links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, + requested_at: Time | nil + } + end + end + + def test_get_from_offset_required_params + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal.batch.get_from_offset(1, offset: "offset") + + assert_pattern do + response => HubSpotSDK::BatchResponseJournalFetchResponse + end + + assert_pattern do + response => { + completed_at: Time, + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), + started_at: Time, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, + links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, + requested_at: Time | nil + } + end + end + + def test_get_latest + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal.batch.get_latest(1) + + assert_pattern do + response => HubSpotSDK::BatchResponseJournalFetchResponse + end + + assert_pattern do + response => { + completed_at: Time, + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), + started_at: Time, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, + links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, + requested_at: Time | nil + } + end + end +end diff --git a/test/hubspot_sdk/resources/webhooks_journal/journal_local/batch_test.rb b/test/hubspot_sdk/resources/webhooks_journal/journal_local/batch_test.rb new file mode 100644 index 00000000..565f9bf3 --- /dev/null +++ b/test/hubspot_sdk/resources/webhooks_journal/journal_local/batch_test.rb @@ -0,0 +1,68 @@ +# frozen_string_literal: true + +require_relative "../../../test_helper" + +class HubSpotSDK::Test::Resources::WebhooksJournal::JournalLocal::BatchTest < HubSpotSDK::Test::ResourceTest + def test_get_required_params + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal_local.batch.get(inputs: ["string"]) + + assert_pattern do + response => HubSpotSDK::BatchResponseJournalFetchResponse + end + + assert_pattern do + response => { + completed_at: Time, + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), + started_at: Time, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, + links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, + requested_at: Time | nil + } + end + end + + def test_get_earliest + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal_local.batch.get_earliest(1) + + assert_pattern do + response => HubSpotSDK::BatchResponseJournalFetchResponse + end + + assert_pattern do + response => { + completed_at: Time, + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), + started_at: Time, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, + links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, + requested_at: Time | nil + } + end + end + + def test_get_from_offset_required_params + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal_local.batch.get_from_offset(1, offset: "offset") + + assert_pattern do + response => HubSpotSDK::BatchResponseJournalFetchResponse + end + + assert_pattern do + response => { + completed_at: Time, + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), + started_at: Time, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, + links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, + requested_at: Time | nil + } + end + end +end diff --git a/test/hubspot_sdk/resources/webhooks_journal/journal_local_test.rb b/test/hubspot_sdk/resources/webhooks_journal/journal_local_test.rb new file mode 100644 index 00000000..86f455d8 --- /dev/null +++ b/test/hubspot_sdk/resources/webhooks_journal/journal_local_test.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +require_relative "../../test_helper" + +class HubSpotSDK::Test::Resources::WebhooksJournal::JournalLocalTest < HubSpotSDK::Test::ResourceTest + def test_get_earliest + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal_local.get_earliest + + assert_pattern do + response => StringIO + end + end + + def test_get_latest + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal_local.get_latest + + assert_pattern do + response => StringIO + end + end + + def test_get_next_from_offset + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal_local.get_next_from_offset("offset") + + assert_pattern do + response => StringIO + end + end + + def test_get_status + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal_local.get_status("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + + assert_pattern do + response => HubSpotSDK::SnapshotStatusResponse + end + + assert_pattern do + response => { + id: String, + initiated_at: Integer, + status: HubSpotSDK::SnapshotStatusResponse::Status, + completed_at: Integer | nil, + error_code: HubSpotSDK::SnapshotStatusResponse::ErrorCode | nil, + message: String | nil + } + end + end +end diff --git a/test/hubspot_sdk/resources/webhooks_journal/journal_test.rb b/test/hubspot_sdk/resources/webhooks_journal/journal_test.rb new file mode 100644 index 00000000..c4c207ec --- /dev/null +++ b/test/hubspot_sdk/resources/webhooks_journal/journal_test.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true + +require_relative "../../test_helper" + +class HubSpotSDK::Test::Resources::WebhooksJournal::JournalTest < HubSpotSDK::Test::ResourceTest + def test_get_earliest + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal.get_earliest + + assert_pattern do + response => StringIO + end + end + + def test_get_next_from_offset + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal.get_next_from_offset("offset") + + assert_pattern do + response => StringIO + end + end + + def test_get_status + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.journal.get_status("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + + assert_pattern do + response => HubSpotSDK::SnapshotStatusResponse + end + + assert_pattern do + response => { + id: String, + initiated_at: Integer, + status: HubSpotSDK::SnapshotStatusResponse::Status, + completed_at: Integer | nil, + error_code: HubSpotSDK::SnapshotStatusResponse::ErrorCode | nil, + message: String | nil + } + end + end +end diff --git a/test/hubspot_sdk/resources/webhooks_journal/snapshots_test.rb b/test/hubspot_sdk/resources/webhooks_journal/snapshots_test.rb new file mode 100644 index 00000000..a35984d7 --- /dev/null +++ b/test/hubspot_sdk/resources/webhooks_journal/snapshots_test.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +require_relative "../../test_helper" + +class HubSpotSDK::Test::Resources::WebhooksJournal::SnapshotsTest < HubSpotSDK::Test::ResourceTest + def test_create_required_params + skip("Mock server tests are disabled") + + response = + @hubspot.webhooks_journal.snapshots.create( + snapshot_requests: [{objectId: 0, objectTypeId: "objectTypeId", portalId: 0, properties: ["string"]}] + ) + + assert_pattern do + response => HubSpotSDK::CrmObjectSnapshotBatchResponse + end + + assert_pattern do + response => { + snapshot_responses: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::CrmObjectSnapshotResponse]) + } + end + end +end diff --git a/test/hubspot_sdk/resources/webhooks_journal/subscriptions/filters_test.rb b/test/hubspot_sdk/resources/webhooks_journal/subscriptions/filters_test.rb new file mode 100644 index 00000000..bcf25381 --- /dev/null +++ b/test/hubspot_sdk/resources/webhooks_journal/subscriptions/filters_test.rb @@ -0,0 +1,63 @@ +# frozen_string_literal: true + +require_relative "../../../test_helper" + +class HubSpotSDK::Test::Resources::WebhooksJournal::Subscriptions::FiltersTest < HubSpotSDK::Test::ResourceTest + def test_create_required_params + skip("Mock server tests are disabled") + + response = + @hubspot.webhooks_journal.subscriptions.filters.create( + filter: {conditions: [{filterType: :CRM_OBJECT_PROPERTY, operator: :CONTAINS, property: "property"}]}, + subscription_id: 0 + ) + + assert_pattern do + response => HubSpotSDK::FilterCreateResponse + end + + assert_pattern do + response => { + filter_id: Integer + } + end + end + + def test_list + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.subscriptions.filters.list(0) + + assert_pattern do + response => ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::FilterResponse]) + end + end + + def test_delete + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.subscriptions.filters.delete(0) + + assert_pattern do + response => nil + end + end + + def test_get + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.subscriptions.filters.get(0) + + assert_pattern do + response => HubSpotSDK::FilterResponse + end + + assert_pattern do + response => { + id: Integer, + created_at: Integer, + filter: HubSpotSDK::Filter + } + end + end +end diff --git a/test/hubspot_sdk/resources/webhooks_journal/subscriptions_test.rb b/test/hubspot_sdk/resources/webhooks_journal/subscriptions_test.rb new file mode 100644 index 00000000..969c165f --- /dev/null +++ b/test/hubspot_sdk/resources/webhooks_journal/subscriptions_test.rb @@ -0,0 +1,111 @@ +# frozen_string_literal: true + +require_relative "../../test_helper" + +class HubSpotSDK::Test::Resources::WebhooksJournal::SubscriptionsTest < HubSpotSDK::Test::ResourceTest + def test_create_required_params + skip("Mock server tests are disabled") + + response = + @hubspot.webhooks_journal.subscriptions.create( + subscription_upsert_request: { + actions: [:CREATE], + objectIds: [0], + objectTypeId: "objectTypeId", + portalId: 0, + properties: ["string"], + subscriptionType: :OBJECT + } + ) + + assert_pattern do + response => HubSpotSDK::WebhooksJournal::SubscriptionResponse + end + + assert_pattern do + response => { + id: Integer, + actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action]), + app_id: Integer, + created_at: Time, + object_type_id: String, + subscription_type: HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType, + updated_at: Time, + action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest]) | nil, + associated_object_type_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil, + created_by: Integer | nil, + deleted_at: Time | nil, + list_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[Integer]) | nil, + object_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[Integer]) | nil, + portal_id: Integer | nil, + properties: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil + } + end + end + + def test_list + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.subscriptions.list + + assert_pattern do + response => HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging + end + + assert_pattern do + response => { + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::WebhooksJournal::SubscriptionResponse]) + } + end + end + + def test_delete + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.subscriptions.delete(0) + + assert_pattern do + response => nil + end + end + + def test_delete_for_portal + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.subscriptions.delete_for_portal(0) + + assert_pattern do + response => nil + end + end + + def test_get + skip("Mock server tests are disabled") + + response = @hubspot.webhooks_journal.subscriptions.get(0) + + assert_pattern do + response => HubSpotSDK::WebhooksJournal::SubscriptionResponse + end + + assert_pattern do + response => { + id: Integer, + actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action]), + app_id: Integer, + created_at: Time, + object_type_id: String, + subscription_type: HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType, + updated_at: Time, + action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest]) | nil, + associated_object_type_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil, + created_by: Integer | nil, + deleted_at: Time | nil, + list_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[Integer]) | nil, + object_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[Integer]) | nil, + portal_id: Integer | nil, + properties: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil + } + end + end +end diff --git a/test/hubspot_sdk/resources/webhooks_journal_test.rb b/test/hubspot_sdk/resources/webhooks_journal_test.rb new file mode 100644 index 00000000..f40d6775 --- /dev/null +++ b/test/hubspot_sdk/resources/webhooks_journal_test.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +require_relative "../test_helper" + +class HubSpotSDK::Test::Resources::WebhooksJournalTest < HubSpotSDK::Test::ResourceTest +end diff --git a/test/hubspot_sdk/resources/webhooks_test.rb b/test/hubspot_sdk/resources/webhooks_test.rb index 50d16c2b..d28e6339 100644 --- a/test/hubspot_sdk/resources/webhooks_test.rb +++ b/test/hubspot_sdk/resources/webhooks_test.rb @@ -33,12 +33,12 @@ def test_create_crm_snapshots_required_params ) assert_pattern do - response => HubSpotSDK::Webhooks::CrmObjectSnapshotBatchResponse + response => HubSpotSDK::CrmObjectSnapshotBatchResponse end assert_pattern do response => { - snapshot_responses: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::CrmObjectSnapshotResponse]) + snapshot_responses: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::CrmObjectSnapshotResponse]) } end end @@ -83,19 +83,19 @@ def test_create_journal_subscription_required_params ) assert_pattern do - response => HubSpotSDK::Webhooks::SubscriptionResponse1 + response => HubSpotSDK::WebhooksJournal::SubscriptionResponse end assert_pattern do response => { id: Integer, - actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::Webhooks::SubscriptionResponse1::Action]), + actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action]), app_id: Integer, created_at: Time, object_type_id: String, - subscription_type: HubSpotSDK::Webhooks::SubscriptionResponse1::SubscriptionType, + subscription_type: HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType, updated_at: Time, - action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::Webhooks::ActionOverrideRequest]) | nil, + action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest]) | nil, associated_object_type_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil, created_by: Integer | nil, deleted_at: Time | nil, @@ -117,7 +117,7 @@ def test_create_subscription_filter_required_params ) assert_pattern do - response => HubSpotSDK::Webhooks::FilterCreateResponse + response => HubSpotSDK::FilterCreateResponse end assert_pattern do @@ -183,15 +183,15 @@ def test_get_earliest_journal_batch response = @hubspot.webhooks.get_earliest_journal_batch(1) assert_pattern do - response => HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + response => HubSpotSDK::BatchResponseJournalFetchResponse end assert_pattern do response => { completed_at: Time, - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse]), + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), started_at: Time, - status: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, requested_at: Time | nil } @@ -214,15 +214,15 @@ def test_get_earliest_local_journal_batch response = @hubspot.webhooks.get_earliest_local_journal_batch(1) assert_pattern do - response => HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + response => HubSpotSDK::BatchResponseJournalFetchResponse end assert_pattern do response => { completed_at: Time, - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse]), + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), started_at: Time, - status: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, requested_at: Time | nil } @@ -268,15 +268,15 @@ def test_get_journal_batch_by_request_required_params response = @hubspot.webhooks.get_journal_batch_by_request(inputs: ["string"]) assert_pattern do - response => HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + response => HubSpotSDK::BatchResponseJournalFetchResponse end assert_pattern do response => { completed_at: Time, - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse]), + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), started_at: Time, - status: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, requested_at: Time | nil } @@ -289,15 +289,15 @@ def test_get_journal_batch_from_offset_required_params response = @hubspot.webhooks.get_journal_batch_from_offset(1, offset: "offset") assert_pattern do - response => HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + response => HubSpotSDK::BatchResponseJournalFetchResponse end assert_pattern do response => { completed_at: Time, - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse]), + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), started_at: Time, - status: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, requested_at: Time | nil } @@ -310,16 +310,16 @@ def test_get_journal_status response = @hubspot.webhooks.get_journal_status("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") assert_pattern do - response => HubSpotSDK::Webhooks::SnapshotStatusResponse + response => HubSpotSDK::SnapshotStatusResponse end assert_pattern do response => { id: String, initiated_at: Integer, - status: HubSpotSDK::Webhooks::SnapshotStatusResponse::Status, + status: HubSpotSDK::SnapshotStatusResponse::Status, completed_at: Integer | nil, - error_code: HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode | nil, + error_code: HubSpotSDK::SnapshotStatusResponse::ErrorCode | nil, message: String | nil } end @@ -331,19 +331,19 @@ def test_get_journal_subscription response = @hubspot.webhooks.get_journal_subscription(0) assert_pattern do - response => HubSpotSDK::Webhooks::SubscriptionResponse1 + response => HubSpotSDK::WebhooksJournal::SubscriptionResponse end assert_pattern do response => { id: Integer, - actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::Webhooks::SubscriptionResponse1::Action]), + actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action]), app_id: Integer, created_at: Time, object_type_id: String, - subscription_type: HubSpotSDK::Webhooks::SubscriptionResponse1::SubscriptionType, + subscription_type: HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType, updated_at: Time, - action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::Webhooks::ActionOverrideRequest]) | nil, + action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest]) | nil, associated_object_type_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil, created_by: Integer | nil, deleted_at: Time | nil, @@ -361,15 +361,15 @@ def test_get_latest_journal_batch response = @hubspot.webhooks.get_latest_journal_batch(1) assert_pattern do - response => HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + response => HubSpotSDK::BatchResponseJournalFetchResponse end assert_pattern do response => { completed_at: Time, - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse]), + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), started_at: Time, - status: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, requested_at: Time | nil } @@ -392,15 +392,15 @@ def test_get_latest_local_journal_batch response = @hubspot.webhooks.get_latest_local_journal_batch(1) assert_pattern do - response => HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + response => HubSpotSDK::BatchResponseJournalFetchResponse end assert_pattern do response => { completed_at: Time, - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse]), + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), started_at: Time, - status: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, requested_at: Time | nil } @@ -423,15 +423,15 @@ def test_get_local_journal_batch_by_request_required_params response = @hubspot.webhooks.get_local_journal_batch_by_request(inputs: ["string"]) assert_pattern do - response => HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + response => HubSpotSDK::BatchResponseJournalFetchResponse end assert_pattern do response => { completed_at: Time, - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse]), + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), started_at: Time, - status: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, requested_at: Time | nil } @@ -444,15 +444,15 @@ def test_get_local_journal_batch_from_offset_required_params response = @hubspot.webhooks.get_local_journal_batch_from_offset(1, offset: "offset") assert_pattern do - response => HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse + response => HubSpotSDK::BatchResponseJournalFetchResponse end assert_pattern do response => { completed_at: Time, - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::JournalFetchResponse]), + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::JournalFetchResponse]), started_at: Time, - status: HubSpotSDK::Webhooks::BatchResponseJournalFetchResponse::Status, + status: HubSpotSDK::BatchResponseJournalFetchResponse::Status, links: ^(HubSpotSDK::Internal::Type::HashOf[String]) | nil, requested_at: Time | nil } @@ -465,16 +465,16 @@ def test_get_local_journal_status response = @hubspot.webhooks.get_local_journal_status("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") assert_pattern do - response => HubSpotSDK::Webhooks::SnapshotStatusResponse + response => HubSpotSDK::SnapshotStatusResponse end assert_pattern do response => { id: String, initiated_at: Integer, - status: HubSpotSDK::Webhooks::SnapshotStatusResponse::Status, + status: HubSpotSDK::SnapshotStatusResponse::Status, completed_at: Integer | nil, - error_code: HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode | nil, + error_code: HubSpotSDK::SnapshotStatusResponse::ErrorCode | nil, message: String | nil } end @@ -525,14 +525,14 @@ def test_get_subscription_filter response = @hubspot.webhooks.get_subscription_filter(0) assert_pattern do - response => HubSpotSDK::Webhooks::FilterResponse + response => HubSpotSDK::FilterResponse end assert_pattern do response => { id: Integer, created_at: Integer, - filter: HubSpotSDK::Webhooks::Filter + filter: HubSpotSDK::Filter } end end @@ -559,12 +559,12 @@ def test_list_journal_subscriptions response = @hubspot.webhooks.list_journal_subscriptions assert_pattern do - response => HubSpotSDK::Webhooks::CollectionResponseSubscriptionResponseNoPaging + response => HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging end assert_pattern do response => { - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::SubscriptionResponse1]) + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::WebhooksJournal::SubscriptionResponse]) } end end @@ -575,7 +575,7 @@ def test_list_subscription_filters response = @hubspot.webhooks.list_subscription_filters(0) assert_pattern do - response => ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::FilterResponse]) + response => ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::FilterResponse]) end end From 3d34c492a5eefe1d09bcdfb45219f977dae37002 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 11:54:40 +0000 Subject: [PATCH 5/6] feat(api): manual updates --- .stats.yml | 4 +- lib/hubspot_sdk.rb | 4 +- .../models/cms/inbound_db_object_type.rb | 29 ++++-- ...sponse_subscription_response_no_paging.rb} | 10 +- ...se.rb => journal_subscription_response.rb} | 19 ++-- lib/hubspot_sdk/resources/webhooks.rb | 12 +-- .../webhooks_journal/subscriptions.rb | 12 +-- .../models/cms/inbound_db_object_type.rbi | 96 ++++++++++++++----- ...ponse_subscription_response_no_paging.rbi} | 14 ++- ....rbi => journal_subscription_response.rbi} | 62 ++++++------ rbi/hubspot_sdk/resources/webhooks.rbi | 6 +- .../webhooks_journal/subscriptions.rbi | 6 +- .../models/cms/inbound_db_object_type.rbs | 39 +++++--- ...sponse_subscription_response_no_paging.rbs | 20 ---- ...sponse_subscription_response_no_paging.rbs | 22 +++++ ....rbs => journal_subscription_response.rbs} | 24 ++--- sig/hubspot_sdk/resources/webhooks.rbs | 6 +- .../webhooks_journal/subscriptions.rbs | 6 +- .../webhooks_journal/subscriptions_test.rb | 16 ++-- test/hubspot_sdk/resources/webhooks_test.rb | 16 ++-- 20 files changed, 252 insertions(+), 171 deletions(-) rename lib/hubspot_sdk/models/webhooks_journal/{collection_response_subscription_response_no_paging.rb => journal_collection_response_subscription_response_no_paging.rb} (62%) rename lib/hubspot_sdk/models/webhooks_journal/{subscription_response.rb => journal_subscription_response.rb} (90%) rename rbi/hubspot_sdk/models/webhooks_journal/{collection_response_subscription_response_no_paging.rbi => journal_collection_response_subscription_response_no_paging.rbi} (66%) rename rbi/hubspot_sdk/models/webhooks_journal/{subscription_response.rbi => journal_subscription_response.rbi} (78%) delete mode 100644 sig/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbs create mode 100644 sig/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rbs rename sig/hubspot_sdk/models/webhooks_journal/{subscription_response.rbs => journal_subscription_response.rbs} (88%) diff --git a/.stats.yml b/.stats.yml index 60d51403..65bc8df1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 959 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-5471b42def181422e461f5657935bcc5d80f62e169b34b60d017257cab8ed6a7.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-3260c0cfb88ce2653c37c4c97e1dd39b965df4f2c14177677bc46d95b104525d.yml openapi_spec_hash: 93b8671a542b331e067319184c943fdd -config_hash: 42a440e814378897b5ca0c2ad29c7f99 +config_hash: 0bcc56e67986936da66e382674e17c79 diff --git a/lib/hubspot_sdk.rb b/lib/hubspot_sdk.rb index b0aa76ee..c641c293 100644 --- a/lib/hubspot_sdk.rb +++ b/lib/hubspot_sdk.rb @@ -2027,11 +2027,11 @@ require_relative "hubspot_sdk/models/webhooks/webhook_list_subscription_filters_response" require_relative "hubspot_sdk/models/webhooks/webhook_update_event_subscription_params" require_relative "hubspot_sdk/models/webhooks/webhook_update_settings_params" -require_relative "hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging" require_relative "hubspot_sdk/models/webhooks_journal/journal/batch_get_earliest_params" require_relative "hubspot_sdk/models/webhooks_journal/journal/batch_get_from_offset_params" require_relative "hubspot_sdk/models/webhooks_journal/journal/batch_get_latest_params" require_relative "hubspot_sdk/models/webhooks_journal/journal/batch_get_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging" require_relative "hubspot_sdk/models/webhooks_journal/journal_get_earliest_params" require_relative "hubspot_sdk/models/webhooks_journal/journal_get_next_from_offset_params" require_relative "hubspot_sdk/models/webhooks_journal/journal_get_status_params" @@ -2042,13 +2042,13 @@ require_relative "hubspot_sdk/models/webhooks_journal/journal_local_get_latest_params" require_relative "hubspot_sdk/models/webhooks_journal/journal_local_get_next_from_offset_params" require_relative "hubspot_sdk/models/webhooks_journal/journal_local_get_status_params" +require_relative "hubspot_sdk/models/webhooks_journal/journal_subscription_response" require_relative "hubspot_sdk/models/webhooks_journal/snapshot_create_params" require_relative "hubspot_sdk/models/webhooks_journal/subscription_create_params" require_relative "hubspot_sdk/models/webhooks_journal/subscription_delete_for_portal_params" require_relative "hubspot_sdk/models/webhooks_journal/subscription_delete_params" require_relative "hubspot_sdk/models/webhooks_journal/subscription_get_params" require_relative "hubspot_sdk/models/webhooks_journal/subscription_list_params" -require_relative "hubspot_sdk/models/webhooks_journal/subscription_response" require_relative "hubspot_sdk/models/webhooks_journal/subscriptions/filter_create_params" require_relative "hubspot_sdk/models/webhooks_journal/subscriptions/filter_delete_params" require_relative "hubspot_sdk/models/webhooks_journal/subscriptions/filter_get_params" diff --git a/lib/hubspot_sdk/models/cms/inbound_db_object_type.rb b/lib/hubspot_sdk/models/cms/inbound_db_object_type.rb index 563f972b..d892ea25 100644 --- a/lib/hubspot_sdk/models/cms/inbound_db_object_type.rb +++ b/lib/hubspot_sdk/models/cms/inbound_db_object_type.rb @@ -210,23 +210,23 @@ class InboundDBObjectType < HubSpotSDK::Internal::Type::BaseModel # @return [Symbol, HubSpotSDK::Models::Cms::InboundDBObjectType::Status, nil] optional :status, enum: -> { HubSpotSDK::Cms::InboundDBObjectType::Status } - # @!attribute visibilities - # - # @return [Array, nil] - optional :visibilities, - -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::Cms::InboundDBObjectType::Visibility] } - # @!attribute visibility # # @return [Symbol, HubSpotSDK::Models::Cms::InboundDBObjectType::Visibility, nil] optional :visibility, enum: -> { HubSpotSDK::Cms::InboundDBObjectType::Visibility } + # @!attribute visibility_values + # + # @return [Array, nil] + optional :visibility_values, + -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue] } + # @!attribute write_scope_name # # @return [String, nil] optional :write_scope_name, String, api_name: :writeScopeName - # @!method initialize(id:, allows_sensitive_properties:, create_date_property_name:, default_search_property_names:, deleted:, fully_qualified_name:, has_custom_properties:, has_default_properties:, has_external_object_ids:, has_owners:, has_pipelines:, indexed_for_filters_and_reports:, last_modified_property_name:, meta_type:, meta_type_id:, name:, object_type_id:, object_type_id_string:, permissioning_type:, pipeline_property_name:, pipeline_stage_property_name:, required_properties:, restorable:, scope_mappings:, secondary_display_label_property_names:, access_scope_name: nil, created_at: nil, description: nil, integration_app_id: nil, janus_group: nil, owner_portal_id: nil, pipeline_close_date_property_name: nil, pipeline_time_to_close_property_name: nil, plural_form: nil, primary_display_label_property_name: nil, read_scope_name: nil, singular_form: nil, status: nil, visibilities: nil, visibility: nil, write_scope_name: nil) + # @!method initialize(id:, allows_sensitive_properties:, create_date_property_name:, default_search_property_names:, deleted:, fully_qualified_name:, has_custom_properties:, has_default_properties:, has_external_object_ids:, has_owners:, has_pipelines:, indexed_for_filters_and_reports:, last_modified_property_name:, meta_type:, meta_type_id:, name:, object_type_id:, object_type_id_string:, permissioning_type:, pipeline_property_name:, pipeline_stage_property_name:, required_properties:, restorable:, scope_mappings:, secondary_display_label_property_names:, access_scope_name: nil, created_at: nil, description: nil, integration_app_id: nil, janus_group: nil, owner_portal_id: nil, pipeline_close_date_property_name: nil, pipeline_time_to_close_property_name: nil, plural_form: nil, primary_display_label_property_name: nil, read_scope_name: nil, singular_form: nil, status: nil, visibility: nil, visibility_values: nil, write_scope_name: nil) # @param id [Integer] # @param allows_sensitive_properties [Boolean] # @param create_date_property_name [String] @@ -265,8 +265,8 @@ class InboundDBObjectType < HubSpotSDK::Internal::Type::BaseModel # @param read_scope_name [String] # @param singular_form [String] # @param status [Symbol, HubSpotSDK::Models::Cms::InboundDBObjectType::Status] - # @param visibilities [Array] # @param visibility [Symbol, HubSpotSDK::Models::Cms::InboundDBObjectType::Visibility] + # @param visibility_values [Array] # @param write_scope_name [String] # @see HubSpotSDK::Models::Cms::InboundDBObjectType#meta_type @@ -313,9 +313,22 @@ module Status # @return [Array] end + # @see HubSpotSDK::Models::Cms::InboundDBObjectType#visibility module Visibility extend HubSpotSDK::Internal::Type::Enum + CUSTOMER_FACING = :"Customer-facing" + CUSTOMER_FACING_PUBLIC_API = :"Customer-facing public API" + CUSTOMER_FACING_UI = :"Customer-facing UI" + INTERNAL_ONLY = :"Internal only" + + # @!method self.values + # @return [Array] + end + + module VisibilityValue + extend HubSpotSDK::Internal::Type::Enum + CUSTOMER_FACING = :"Customer-facing" INTERNAL_ONLY = :"Internal only" CUSTOMER_FACING_UI = :"Customer-facing UI" diff --git a/lib/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rb similarity index 62% rename from lib/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rb rename to lib/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rb index ecf93b6e..77e5430e 100644 --- a/lib/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rb +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rb @@ -3,21 +3,21 @@ module HubSpotSDK module Models module WebhooksJournal - class CollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel + class JournalCollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel # @!attribute results # An array of subscription responses, where each item contains details about a # specific subscription. Each item follows the SubscriptionResponse schema. # - # @return [Array] + # @return [Array] required :results, - -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::WebhooksJournal::SubscriptionResponse] } + -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse] } # @!method initialize(results:) # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging} + # {HubSpotSDK::Models::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging} # for more details. # - # @param results [Array] An array of subscription responses, where each item contains details about a spe + # @param results [Array] An array of subscription responses, where each item contains details about a spe end end end diff --git a/lib/hubspot_sdk/models/webhooks_journal/subscription_response.rb b/lib/hubspot_sdk/models/webhooks_journal/journal_subscription_response.rb similarity index 90% rename from lib/hubspot_sdk/models/webhooks_journal/subscription_response.rb rename to lib/hubspot_sdk/models/webhooks_journal/journal_subscription_response.rb index 15430240..b1f784af 100644 --- a/lib/hubspot_sdk/models/webhooks_journal/subscription_response.rb +++ b/lib/hubspot_sdk/models/webhooks_journal/journal_subscription_response.rb @@ -3,7 +3,7 @@ module HubSpotSDK module Models module WebhooksJournal - class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel + class JournalSubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel # @!attribute id # The unique identifier for the subscription, represented as an integer. # @@ -16,9 +16,9 @@ class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel # 'ASSOCIATION_REMOVED', 'SNAPSHOT', 'APP_INSTALL', 'APP_UNINSTALL', # 'ADDED_TO_LIST', 'REMOVED_FROM_LIST', and 'GDPR_DELETE'. # - # @return [Array] + # @return [Array] required :actions, - -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action] } + -> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action] } # @!attribute app_id # The unique identifier for the app associated with the subscription, represented @@ -45,9 +45,9 @@ class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel # values include 'OBJECT', 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', # 'LIST_MEMBERSHIP', and 'GDPR_PRIVACY_DELETION'. # - # @return [Symbol, HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::SubscriptionType] + # @return [Symbol, HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType] required :subscription_type, - enum: -> { HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType }, + enum: -> { HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType }, api_name: :subscriptionType # @!attribute updated_at @@ -117,11 +117,12 @@ class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel # @!method initialize(id:, actions:, app_id:, created_at:, object_type_id:, subscription_type:, updated_at:, action_overrides: nil, associated_object_type_ids: nil, created_by: nil, deleted_at: nil, list_ids: nil, object_ids: nil, portal_id: nil, properties: nil) # Some parameter documentations has been truncated, see - # {HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse} for more details. + # {HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse} for more + # details. # # @param id [Integer] The unique identifier for the subscription, represented as an integer. # - # @param actions [Array] An array of actions associated with the subscription. Valid actions include 'CRE + # @param actions [Array] An array of actions associated with the subscription. Valid actions include 'CRE # # @param app_id [Integer] The unique identifier for the app associated with the subscription, represented # @@ -129,7 +130,7 @@ class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel # # @param object_type_id [String] The identifier for the type of object associated with the subscription, represen # - # @param subscription_type [Symbol, HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::SubscriptionType] The type of subscription, indicating the nature of events it pertains to. Valid + # @param subscription_type [Symbol, HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType] The type of subscription, indicating the nature of events it pertains to. Valid # # @param updated_at [Time] The date and time when the subscription was last updated, in ISO 8601 format. # @@ -174,7 +175,7 @@ module Action # values include 'OBJECT', 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', # 'LIST_MEMBERSHIP', and 'GDPR_PRIVACY_DELETION'. # - # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse#subscription_type + # @see HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse#subscription_type module SubscriptionType extend HubSpotSDK::Internal::Type::Enum diff --git a/lib/hubspot_sdk/resources/webhooks.rb b/lib/hubspot_sdk/resources/webhooks.rb index 559f24f1..71bd664e 100644 --- a/lib/hubspot_sdk/resources/webhooks.rb +++ b/lib/hubspot_sdk/resources/webhooks.rb @@ -108,7 +108,7 @@ def create_event_subscription(app_id, params) # @param subscription_upsert_request [HubSpotSDK::Models::ObjectSubscriptionUpsertRequest, HubSpotSDK::Models::AssociationSubscriptionUpsertRequest, HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest, HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest, HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest] # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse] + # @return [HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookCreateJournalSubscriptionParams def create_journal_subscription(params) @@ -117,7 +117,7 @@ def create_journal_subscription(params) method: :post, path: "webhooks-journal/subscriptions/2026-03", body: parsed[:subscription_upsert_request], - model: HubSpotSDK::WebhooksJournal::SubscriptionResponse, + model: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse, options: options ) end @@ -532,14 +532,14 @@ def get_journal_status(status_id, params = {}) # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse] + # @return [HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse] # # @see HubSpotSDK::Models::Webhooks::WebhookGetJournalSubscriptionParams def get_journal_subscription(subscription_id, params = {}) @client.request( method: :get, path: ["webhooks-journal/subscriptions/2026-03/%1$s", subscription_id], - model: HubSpotSDK::WebhooksJournal::SubscriptionResponse, + model: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse, options: params[:request_options] ) end @@ -899,14 +899,14 @@ def list_event_subscriptions(app_id, params = {}) # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging] + # @return [HubSpotSDK::Models::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging] # # @see HubSpotSDK::Models::Webhooks::WebhookListJournalSubscriptionsParams def list_journal_subscriptions(params = {}) @client.request( method: :get, path: "webhooks-journal/subscriptions/2026-03", - model: HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging, + model: HubSpotSDK::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging, options: params[:request_options] ) end diff --git a/lib/hubspot_sdk/resources/webhooks_journal/subscriptions.rb b/lib/hubspot_sdk/resources/webhooks_journal/subscriptions.rb index cfe443c2..a7811fca 100644 --- a/lib/hubspot_sdk/resources/webhooks_journal/subscriptions.rb +++ b/lib/hubspot_sdk/resources/webhooks_journal/subscriptions.rb @@ -19,7 +19,7 @@ class Subscriptions # @param subscription_upsert_request [HubSpotSDK::Models::ObjectSubscriptionUpsertRequest, HubSpotSDK::Models::AssociationSubscriptionUpsertRequest, HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest, HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest, HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest] # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse] + # @return [HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse] # # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionCreateParams def create(params) @@ -28,7 +28,7 @@ def create(params) method: :post, path: "webhooks-journal/subscriptions/2026-03", body: parsed[:subscription_upsert_request], - model: HubSpotSDK::WebhooksJournal::SubscriptionResponse, + model: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse, options: options ) end @@ -42,14 +42,14 @@ def create(params) # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging] + # @return [HubSpotSDK::Models::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging] # # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionListParams def list(params = {}) @client.request( method: :get, path: "webhooks-journal/subscriptions/2026-03", - model: HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging, + model: HubSpotSDK::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging, options: params[:request_options] ) end @@ -117,14 +117,14 @@ def delete_for_portal(portal_id, params = {}) # # @param request_options [HubSpotSDK::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse] + # @return [HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse] # # @see HubSpotSDK::Models::WebhooksJournal::SubscriptionGetParams def get(subscription_id, params = {}) @client.request( method: :get, path: ["webhooks-journal/subscriptions/2026-03/%1$s", subscription_id], - model: HubSpotSDK::WebhooksJournal::SubscriptionResponse, + model: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse, options: params[:request_options] ) end diff --git a/rbi/hubspot_sdk/models/cms/inbound_db_object_type.rbi b/rbi/hubspot_sdk/models/cms/inbound_db_object_type.rbi index 42217a62..28fe0cd2 100644 --- a/rbi/hubspot_sdk/models/cms/inbound_db_object_type.rbi +++ b/rbi/hubspot_sdk/models/cms/inbound_db_object_type.rbi @@ -184,40 +184,40 @@ module HubSpotSDK sig do returns( T.nilable( - T::Array[ - HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol - ] + HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol ) ) end - attr_reader :visibilities + attr_reader :visibility sig do params( - visibilities: - T::Array[ - HubSpotSDK::Cms::InboundDBObjectType::Visibility::OrSymbol - ] + visibility: + HubSpotSDK::Cms::InboundDBObjectType::Visibility::OrSymbol ).void end - attr_writer :visibilities + attr_writer :visibility sig do returns( T.nilable( - HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol + T::Array[ + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue::TaggedSymbol + ] ) ) end - attr_reader :visibility + attr_reader :visibility_values sig do params( - visibility: - HubSpotSDK::Cms::InboundDBObjectType::Visibility::OrSymbol + visibility_values: + T::Array[ + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue::OrSymbol + ] ).void end - attr_writer :visibility + attr_writer :visibility_values sig { returns(T.nilable(String)) } attr_reader :write_scope_name @@ -266,12 +266,12 @@ module HubSpotSDK read_scope_name: String, singular_form: String, status: HubSpotSDK::Cms::InboundDBObjectType::Status::OrSymbol, - visibilities: - T::Array[ - HubSpotSDK::Cms::InboundDBObjectType::Visibility::OrSymbol - ], visibility: HubSpotSDK::Cms::InboundDBObjectType::Visibility::OrSymbol, + visibility_values: + T::Array[ + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue::OrSymbol + ], write_scope_name: String ).returns(T.attached_class) end @@ -314,8 +314,8 @@ module HubSpotSDK read_scope_name: nil, singular_form: nil, status: nil, - visibilities: nil, visibility: nil, + visibility_values: nil, write_scope_name: nil ) end @@ -364,12 +364,12 @@ module HubSpotSDK singular_form: String, status: HubSpotSDK::Cms::InboundDBObjectType::Status::TaggedSymbol, - visibilities: - T::Array[ - HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol - ], visibility: HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol, + visibility_values: + T::Array[ + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue::TaggedSymbol + ], write_scope_name: String } ) @@ -542,26 +542,70 @@ module HubSpotSDK :"Customer-facing", HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol ) + CUSTOMER_FACING_PUBLIC_API = + T.let( + :"Customer-facing public API", + HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol + ) + CUSTOMER_FACING_UI = + T.let( + :"Customer-facing UI", + HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol + ) INTERNAL_ONLY = T.let( :"Internal only", HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol ) + + sig do + override.returns( + T::Array[ + HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol + ] + ) + end + def self.values + end + end + + module VisibilityValue + extend HubSpotSDK::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CUSTOMER_FACING = + T.let( + :"Customer-facing", + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue::TaggedSymbol + ) + INTERNAL_ONLY = + T.let( + :"Internal only", + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue::TaggedSymbol + ) CUSTOMER_FACING_UI = T.let( :"Customer-facing UI", - HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue::TaggedSymbol ) CUSTOMER_FACING_PUBLIC_API = T.let( :"Customer-facing public API", - HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue::TaggedSymbol ) sig do override.returns( T::Array[ - HubSpotSDK::Cms::InboundDBObjectType::Visibility::TaggedSymbol + HubSpotSDK::Cms::InboundDBObjectType::VisibilityValue::TaggedSymbol ] ) end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rbi similarity index 66% rename from rbi/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbi rename to rbi/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rbi index 8dadb7e1..e82ce48a 100644 --- a/rbi/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbi +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rbi @@ -3,11 +3,11 @@ module HubSpotSDK module Models module WebhooksJournal - class CollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel + class JournalCollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging, + HubSpotSDK::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging, HubSpotSDK::Internal::AnyHash ) end @@ -15,7 +15,9 @@ module HubSpotSDK # An array of subscription responses, where each item contains details about a # specific subscription. Each item follows the SubscriptionResponse schema. sig do - returns(T::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse]) + returns( + T::Array[HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse] + ) end attr_accessor :results @@ -23,7 +25,7 @@ module HubSpotSDK params( results: T::Array[ - HubSpotSDK::WebhooksJournal::SubscriptionResponse::OrHash + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::OrHash ] ).returns(T.attached_class) end @@ -38,7 +40,9 @@ module HubSpotSDK override.returns( { results: - T::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] + T::Array[ + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse + ] } ) end diff --git a/rbi/hubspot_sdk/models/webhooks_journal/subscription_response.rbi b/rbi/hubspot_sdk/models/webhooks_journal/journal_subscription_response.rbi similarity index 78% rename from rbi/hubspot_sdk/models/webhooks_journal/subscription_response.rbi rename to rbi/hubspot_sdk/models/webhooks_journal/journal_subscription_response.rbi index a1de15ad..de633c65 100644 --- a/rbi/hubspot_sdk/models/webhooks_journal/subscription_response.rbi +++ b/rbi/hubspot_sdk/models/webhooks_journal/journal_subscription_response.rbi @@ -3,11 +3,11 @@ module HubSpotSDK module Models module WebhooksJournal - class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel + class JournalSubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - HubSpotSDK::WebhooksJournal::SubscriptionResponse, + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse, HubSpotSDK::Internal::AnyHash ) end @@ -23,7 +23,7 @@ module HubSpotSDK sig do returns( T::Array[ - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ] ) end @@ -48,7 +48,7 @@ module HubSpotSDK # 'LIST_MEMBERSHIP', and 'GDPR_PRIVACY_DELETION'. sig do returns( - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::TaggedSymbol ) end attr_accessor :subscription_type @@ -132,13 +132,13 @@ module HubSpotSDK id: Integer, actions: T::Array[ - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::OrSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::OrSymbol ], app_id: Integer, created_at: Time, object_type_id: String, subscription_type: - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::OrSymbol, + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::OrSymbol, updated_at: Time, action_overrides: T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest::OrHash], @@ -205,13 +205,13 @@ module HubSpotSDK id: Integer, actions: T::Array[ - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ], app_id: Integer, created_at: Time, object_type_id: String, subscription_type: - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol, + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::TaggedSymbol, updated_at: Time, action_overrides: T::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], @@ -235,7 +235,7 @@ module HubSpotSDK T.type_alias do T.all( Symbol, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -243,73 +243,73 @@ module HubSpotSDK CREATE = T.let( :CREATE, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) UPDATE = T.let( :UPDATE, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) DELETE = T.let( :DELETE, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) MERGE = T.let( :MERGE, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) RESTORE = T.let( :RESTORE, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) ASSOCIATION_ADDED = T.let( :ASSOCIATION_ADDED, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) ASSOCIATION_REMOVED = T.let( :ASSOCIATION_REMOVED, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) SNAPSHOT = T.let( :SNAPSHOT, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) APP_INSTALL = T.let( :APP_INSTALL, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) APP_UNINSTALL = T.let( :APP_UNINSTALL, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) ADDED_TO_LIST = T.let( :ADDED_TO_LIST, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) REMOVED_FROM_LIST = T.let( :REMOVED_FROM_LIST, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) GDPR_DELETE = T.let( :GDPR_DELETE, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ) sig do override.returns( T::Array[ - HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action::TaggedSymbol ] ) end @@ -327,7 +327,7 @@ module HubSpotSDK T.type_alias do T.all( Symbol, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -335,38 +335,38 @@ module HubSpotSDK APP_LIFECYCLE_EVENT = T.let( :APP_LIFECYCLE_EVENT, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::TaggedSymbol ) ASSOCIATION = T.let( :ASSOCIATION, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::TaggedSymbol ) EVENT = T.let( :EVENT, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::TaggedSymbol ) GDPR_PRIVACY_DELETION = T.let( :GDPR_PRIVACY_DELETION, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::TaggedSymbol ) LIST_MEMBERSHIP = T.let( :LIST_MEMBERSHIP, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::TaggedSymbol ) OBJECT = T.let( :OBJECT, - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::TaggedSymbol ) sig do override.returns( T::Array[ - HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType::TaggedSymbol + HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType::TaggedSymbol ] ) end diff --git a/rbi/hubspot_sdk/resources/webhooks.rbi b/rbi/hubspot_sdk/resources/webhooks.rbi index b0121319..10b9c715 100644 --- a/rbi/hubspot_sdk/resources/webhooks.rbi +++ b/rbi/hubspot_sdk/resources/webhooks.rbi @@ -94,7 +94,7 @@ module HubSpotSDK HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::OrHash ), request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::WebhooksJournal::SubscriptionResponse) + ).returns(HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse) end def create_journal_subscription( subscription_upsert_request:, @@ -373,7 +373,7 @@ module HubSpotSDK params( subscription_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::WebhooksJournal::SubscriptionResponse) + ).returns(HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse) end def get_journal_subscription( # The unique identifier of the subscription to retrieve. @@ -616,7 +616,7 @@ module HubSpotSDK # account. sig do params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( - HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging + HubSpotSDK::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging ) end def list_journal_subscriptions(request_options: {}) diff --git a/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions.rbi b/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions.rbi index fb1bed90..800fd018 100644 --- a/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions.rbi +++ b/rbi/hubspot_sdk/resources/webhooks_journal/subscriptions.rbi @@ -28,7 +28,7 @@ module HubSpotSDK HubSpotSDK::GdprPrivacyDeletionSubscriptionUpsertRequest::OrHash ), request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::WebhooksJournal::SubscriptionResponse) + ).returns(HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse) end def create(subscription_upsert_request:, request_options: {}) end @@ -39,7 +39,7 @@ module HubSpotSDK # account. sig do params(request_options: HubSpotSDK::RequestOptions::OrHash).returns( - HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging + HubSpotSDK::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging ) end def list(request_options: {}) @@ -87,7 +87,7 @@ module HubSpotSDK params( subscription_id: Integer, request_options: HubSpotSDK::RequestOptions::OrHash - ).returns(HubSpotSDK::WebhooksJournal::SubscriptionResponse) + ).returns(HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse) end def get( # The unique identifier of the subscription to retrieve. diff --git a/sig/hubspot_sdk/models/cms/inbound_db_object_type.rbs b/sig/hubspot_sdk/models/cms/inbound_db_object_type.rbs index 3ab9305b..a5fd6780 100644 --- a/sig/hubspot_sdk/models/cms/inbound_db_object_type.rbs +++ b/sig/hubspot_sdk/models/cms/inbound_db_object_type.rbs @@ -41,8 +41,8 @@ module HubSpotSDK read_scope_name: String, singular_form: String, status: HubSpotSDK::Models::Cms::InboundDBObjectType::status, - visibilities: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility], visibility: HubSpotSDK::Models::Cms::InboundDBObjectType::visibility, + visibility_values: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility_value], write_scope_name: String } @@ -151,18 +151,18 @@ module HubSpotSDK HubSpotSDK::Models::Cms::InboundDBObjectType::status ) -> HubSpotSDK::Models::Cms::InboundDBObjectType::status - attr_reader visibilities: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility]? - - def visibilities=: ( - ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility] - ) -> ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility] - attr_reader visibility: HubSpotSDK::Models::Cms::InboundDBObjectType::visibility? def visibility=: ( HubSpotSDK::Models::Cms::InboundDBObjectType::visibility ) -> HubSpotSDK::Models::Cms::InboundDBObjectType::visibility + attr_reader visibility_values: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility_value]? + + def visibility_values=: ( + ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility_value] + ) -> ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility_value] + attr_reader write_scope_name: String? def write_scope_name=: (String) -> String @@ -206,8 +206,8 @@ module HubSpotSDK ?read_scope_name: String, ?singular_form: String, ?status: HubSpotSDK::Models::Cms::InboundDBObjectType::status, - ?visibilities: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility], ?visibility: HubSpotSDK::Models::Cms::InboundDBObjectType::visibility, + ?visibility_values: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility_value], ?write_scope_name: String ) -> void @@ -250,8 +250,8 @@ module HubSpotSDK read_scope_name: String, singular_form: String, status: HubSpotSDK::Models::Cms::InboundDBObjectType::status, - visibilities: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility], visibility: HubSpotSDK::Models::Cms::InboundDBObjectType::visibility, + visibility_values: ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility_value], write_scope_name: String } @@ -314,12 +314,29 @@ module HubSpotSDK end type visibility = + :"Customer-facing" + | :"Customer-facing public API" + | :"Customer-facing UI" + | :"Internal only" + + module Visibility + extend HubSpotSDK::Internal::Type::Enum + + CUSTOMER_FACING: :"Customer-facing" + CUSTOMER_FACING_PUBLIC_API: :"Customer-facing public API" + CUSTOMER_FACING_UI: :"Customer-facing UI" + INTERNAL_ONLY: :"Internal only" + + def self?.values: -> ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility] + end + + type visibility_value = :"Customer-facing" | :"Internal only" | :"Customer-facing UI" | :"Customer-facing public API" - module Visibility + module VisibilityValue extend HubSpotSDK::Internal::Type::Enum CUSTOMER_FACING: :"Customer-facing" @@ -327,7 +344,7 @@ module HubSpotSDK CUSTOMER_FACING_UI: :"Customer-facing UI" CUSTOMER_FACING_PUBLIC_API: :"Customer-facing public API" - def self?.values: -> ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility] + def self?.values: -> ::Array[HubSpotSDK::Models::Cms::InboundDBObjectType::visibility_value] end end end diff --git a/sig/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbs b/sig/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbs deleted file mode 100644 index d718e94a..00000000 --- a/sig/hubspot_sdk/models/webhooks_journal/collection_response_subscription_response_no_paging.rbs +++ /dev/null @@ -1,20 +0,0 @@ -module HubSpotSDK - module Models - module WebhooksJournal - type collection_response_subscription_response_no_paging = - { results: ::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] } - - class CollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel - attr_accessor results: ::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] - - def initialize: ( - results: ::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] - ) -> void - - def to_hash: -> { - results: ::Array[HubSpotSDK::WebhooksJournal::SubscriptionResponse] - } - end - end - end -end diff --git a/sig/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rbs new file mode 100644 index 00000000..bfe79816 --- /dev/null +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_collection_response_subscription_response_no_paging.rbs @@ -0,0 +1,22 @@ +module HubSpotSDK + module Models + module WebhooksJournal + type journal_collection_response_subscription_response_no_paging = + { + results: ::Array[HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse] + } + + class JournalCollectionResponseSubscriptionResponseNoPaging < HubSpotSDK::Internal::Type::BaseModel + attr_accessor results: ::Array[HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse] + + def initialize: ( + results: ::Array[HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse] + ) -> void + + def to_hash: -> { + results: ::Array[HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse] + } + end + end + end +end diff --git a/sig/hubspot_sdk/models/webhooks_journal/subscription_response.rbs b/sig/hubspot_sdk/models/webhooks_journal/journal_subscription_response.rbs similarity index 88% rename from sig/hubspot_sdk/models/webhooks_journal/subscription_response.rbs rename to sig/hubspot_sdk/models/webhooks_journal/journal_subscription_response.rbs index 3ab587a3..00cc8aaf 100644 --- a/sig/hubspot_sdk/models/webhooks_journal/subscription_response.rbs +++ b/sig/hubspot_sdk/models/webhooks_journal/journal_subscription_response.rbs @@ -1,14 +1,14 @@ module HubSpotSDK module Models module WebhooksJournal - type subscription_response = + type journal_subscription_response = { id: Integer, - actions: ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action], + actions: ::Array[HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::action], app_id: Integer, created_at: Time, object_type_id: String, - subscription_type: HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type, + subscription_type: HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::subscription_type, updated_at: Time, action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], associated_object_type_ids: ::Array[String], @@ -20,10 +20,10 @@ module HubSpotSDK properties: ::Array[String] } - class SubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel + class JournalSubscriptionResponse < HubSpotSDK::Internal::Type::BaseModel attr_accessor id: Integer - attr_accessor actions: ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action] + attr_accessor actions: ::Array[HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::action] attr_accessor app_id: Integer @@ -31,7 +31,7 @@ module HubSpotSDK attr_accessor object_type_id: String - attr_accessor subscription_type: HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type + attr_accessor subscription_type: HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::subscription_type attr_accessor updated_at: Time @@ -71,11 +71,11 @@ module HubSpotSDK def initialize: ( id: Integer, - actions: ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action], + actions: ::Array[HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::action], app_id: Integer, created_at: Time, object_type_id: String, - subscription_type: HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type, + subscription_type: HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::subscription_type, updated_at: Time, ?action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], ?associated_object_type_ids: ::Array[String], @@ -89,11 +89,11 @@ module HubSpotSDK def to_hash: -> { id: Integer, - actions: ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action], + actions: ::Array[HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::action], app_id: Integer, created_at: Time, object_type_id: String, - subscription_type: HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type, + subscription_type: HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::subscription_type, updated_at: Time, action_overrides: ::Hash[Symbol, HubSpotSDK::ActionOverrideRequest], associated_object_type_ids: ::Array[String], @@ -137,7 +137,7 @@ module HubSpotSDK REMOVED_FROM_LIST: :REMOVED_FROM_LIST GDPR_DELETE: :GDPR_DELETE - def self?.values: -> ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::action] + def self?.values: -> ::Array[HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::action] end type subscription_type = @@ -158,7 +158,7 @@ module HubSpotSDK LIST_MEMBERSHIP: :LIST_MEMBERSHIP OBJECT: :OBJECT - def self?.values: -> ::Array[HubSpotSDK::Models::WebhooksJournal::SubscriptionResponse::subscription_type] + def self?.values: -> ::Array[HubSpotSDK::Models::WebhooksJournal::JournalSubscriptionResponse::subscription_type] end end end diff --git a/sig/hubspot_sdk/resources/webhooks.rbs b/sig/hubspot_sdk/resources/webhooks.rbs index a3bcaee4..1430c0e0 100644 --- a/sig/hubspot_sdk/resources/webhooks.rbs +++ b/sig/hubspot_sdk/resources/webhooks.rbs @@ -25,7 +25,7 @@ module HubSpotSDK def create_journal_subscription: ( subscription_upsert_request: HubSpotSDK::Models::subscription_upsert_request, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::WebhooksJournal::SubscriptionResponse + ) -> HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse def create_subscription_filter: ( filter: HubSpotSDK::Filter, @@ -108,7 +108,7 @@ module HubSpotSDK def get_journal_subscription: ( Integer subscription_id, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::WebhooksJournal::SubscriptionResponse + ) -> HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse def get_latest_journal_batch: ( Integer count, @@ -179,7 +179,7 @@ module HubSpotSDK def list_journal_subscriptions: ( ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging + ) -> HubSpotSDK::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging def list_subscription_filters: ( Integer subscription_id, diff --git a/sig/hubspot_sdk/resources/webhooks_journal/subscriptions.rbs b/sig/hubspot_sdk/resources/webhooks_journal/subscriptions.rbs index d36be675..837d187e 100644 --- a/sig/hubspot_sdk/resources/webhooks_journal/subscriptions.rbs +++ b/sig/hubspot_sdk/resources/webhooks_journal/subscriptions.rbs @@ -7,11 +7,11 @@ module HubSpotSDK def create: ( subscription_upsert_request: HubSpotSDK::Models::subscription_upsert_request, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::WebhooksJournal::SubscriptionResponse + ) -> HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse def list: ( ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging + ) -> HubSpotSDK::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging def delete: ( Integer subscription_id, @@ -26,7 +26,7 @@ module HubSpotSDK def get: ( Integer subscription_id, ?request_options: HubSpotSDK::request_opts - ) -> HubSpotSDK::WebhooksJournal::SubscriptionResponse + ) -> HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse def initialize: (client: HubSpotSDK::Client) -> void end diff --git a/test/hubspot_sdk/resources/webhooks_journal/subscriptions_test.rb b/test/hubspot_sdk/resources/webhooks_journal/subscriptions_test.rb index 969c165f..b045d406 100644 --- a/test/hubspot_sdk/resources/webhooks_journal/subscriptions_test.rb +++ b/test/hubspot_sdk/resources/webhooks_journal/subscriptions_test.rb @@ -19,17 +19,17 @@ def test_create_required_params ) assert_pattern do - response => HubSpotSDK::WebhooksJournal::SubscriptionResponse + response => HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse end assert_pattern do response => { id: Integer, - actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action]), + actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action]), app_id: Integer, created_at: Time, object_type_id: String, - subscription_type: HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType, + subscription_type: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType, updated_at: Time, action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest]) | nil, associated_object_type_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil, @@ -49,12 +49,12 @@ def test_list response = @hubspot.webhooks_journal.subscriptions.list assert_pattern do - response => HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging + response => HubSpotSDK::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging end assert_pattern do response => { - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::WebhooksJournal::SubscriptionResponse]) + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse]) } end end @@ -85,17 +85,17 @@ def test_get response = @hubspot.webhooks_journal.subscriptions.get(0) assert_pattern do - response => HubSpotSDK::WebhooksJournal::SubscriptionResponse + response => HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse end assert_pattern do response => { id: Integer, - actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action]), + actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action]), app_id: Integer, created_at: Time, object_type_id: String, - subscription_type: HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType, + subscription_type: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType, updated_at: Time, action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest]) | nil, associated_object_type_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil, diff --git a/test/hubspot_sdk/resources/webhooks_test.rb b/test/hubspot_sdk/resources/webhooks_test.rb index d28e6339..d0f7976d 100644 --- a/test/hubspot_sdk/resources/webhooks_test.rb +++ b/test/hubspot_sdk/resources/webhooks_test.rb @@ -83,17 +83,17 @@ def test_create_journal_subscription_required_params ) assert_pattern do - response => HubSpotSDK::WebhooksJournal::SubscriptionResponse + response => HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse end assert_pattern do response => { id: Integer, - actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action]), + actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action]), app_id: Integer, created_at: Time, object_type_id: String, - subscription_type: HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType, + subscription_type: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType, updated_at: Time, action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest]) | nil, associated_object_type_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil, @@ -331,17 +331,17 @@ def test_get_journal_subscription response = @hubspot.webhooks.get_journal_subscription(0) assert_pattern do - response => HubSpotSDK::WebhooksJournal::SubscriptionResponse + response => HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse end assert_pattern do response => { id: Integer, - actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::SubscriptionResponse::Action]), + actions: ^(HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::Action]), app_id: Integer, created_at: Time, object_type_id: String, - subscription_type: HubSpotSDK::WebhooksJournal::SubscriptionResponse::SubscriptionType, + subscription_type: HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse::SubscriptionType, updated_at: Time, action_overrides: ^(HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::ActionOverrideRequest]) | nil, associated_object_type_ids: ^(HubSpotSDK::Internal::Type::ArrayOf[String]) | nil, @@ -559,12 +559,12 @@ def test_list_journal_subscriptions response = @hubspot.webhooks.list_journal_subscriptions assert_pattern do - response => HubSpotSDK::WebhooksJournal::CollectionResponseSubscriptionResponseNoPaging + response => HubSpotSDK::WebhooksJournal::JournalCollectionResponseSubscriptionResponseNoPaging end assert_pattern do response => { - results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::WebhooksJournal::SubscriptionResponse]) + results: ^(HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::WebhooksJournal::JournalSubscriptionResponse]) } end end From 57c944582455604bba540ad702c2ee5c0e2b3e81 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 11:55:14 +0000 Subject: [PATCH 6/6] release: 0.1.0-alpha.9 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 15 +++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/hubspot_sdk/version.rb | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 332798e1..347d8bf7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.8" + ".": "0.1.0-alpha.9" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d70be2d..6f8aa109 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index 2e7a1bd8..3da4df15 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/README.md b/README.md index e368a49d..5ef7a826 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "hubspot-sdk", "~> 0.1.0.pre.alpha.8" +gem "hubspot-sdk", "~> 0.1.0.pre.alpha.9" ``` diff --git a/lib/hubspot_sdk/version.rb b/lib/hubspot_sdk/version.rb index e1ed3caa..2106c2f2 100644 --- a/lib/hubspot_sdk/version.rb +++ b/lib/hubspot_sdk/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module HubSpotSDK - VERSION = "0.1.0.pre.alpha.8" + VERSION = "0.1.0.pre.alpha.9" end