mencoro 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +304 -0
- data/Rakefile +10 -0
- data/docs/AcceptedJobResource.md +22 -0
- data/docs/AccountApi.md +141 -0
- data/docs/AiResponseReportResource.md +28 -0
- data/docs/AiResponseResource.md +36 -0
- data/docs/AnalyticsApi.md +1320 -0
- data/docs/ApplyClusteringJobOutcome.md +26 -0
- data/docs/ApplyClusteringJobOutcomeClustersInner.md +22 -0
- data/docs/ApplyClusteringJobOutcomeFailedInner.md +22 -0
- data/docs/ApplyClusteringJobOutcomeSkippedClustersInner.md +20 -0
- data/docs/ApplyClusteringJobOutcomeSuccessfulInner.md +20 -0
- data/docs/AsyncJobResource.md +24 -0
- data/docs/BatchChangeTrackedQueryCheckFrequencyRequestData.md +20 -0
- data/docs/BatchChangeTrackedQueryPassesRequestData.md +20 -0
- data/docs/BatchCreateQueryClustersOutcome.md +20 -0
- data/docs/BatchCreateQueryClustersOutcomeFailedInner.md +22 -0
- data/docs/BatchCreateQueryClustersOutcomeSuccessfulInner.md +20 -0
- data/docs/BatchCreateQueryClustersRequestData.md +18 -0
- data/docs/BatchCreateTrackedQueriesRequestData.md +30 -0
- data/docs/BatchCreateTrackedQueriesResultResource.md +20 -0
- data/docs/BatchCreateTrackedQueriesResultResourceFailedInner.md +26 -0
- data/docs/BatchCreateTrackedQueriesResultResourceSuccessfulInner.md +24 -0
- data/docs/BatchForceCheckTrackedQueries200Response.md +20 -0
- data/docs/BatchForceCheckTrackedQueries200ResponseFailedInner.md +22 -0
- data/docs/BatchPauseTrackedQueries200Response.md +20 -0
- data/docs/BatchPauseTrackedQueries200ResponseFailedInner.md +22 -0
- data/docs/BatchPauseTrackedQueries200ResponseSuccessfulInner.md +18 -0
- data/docs/BatchResumeTrackedQueries200Response.md +20 -0
- data/docs/BatchTargetsRequestData.md +18 -0
- data/docs/BatchWriteOutcome.md +20 -0
- data/docs/BatchWriteOutcomeFailedInner.md +22 -0
- data/docs/BillingApi.md +77 -0
- data/docs/BrandProfileResource.md +24 -0
- data/docs/BulkAddClustersToTrackedQueries200Response.md +20 -0
- data/docs/BulkAddClustersToTrackedQueriesRequest.md +20 -0
- data/docs/BulkRemoveClustersFromTrackedQueries200Response.md +20 -0
- data/docs/BulkRemoveClustersFromTrackedQueriesRequest.md +20 -0
- data/docs/CapturesApi.md +267 -0
- data/docs/ChangeMemberRoleRequest.md +18 -0
- data/docs/ChangeTrackedQueryCheckFrequencyRequestData.md +18 -0
- data/docs/ChangeTrackedQueryPassesRequestData.md +18 -0
- data/docs/CitationResource.md +36 -0
- data/docs/ClusterMembershipRequestData.md +18 -0
- data/docs/ClustersApi.md +465 -0
- data/docs/CompetitorResource.md +24 -0
- data/docs/CreateCompetitorRequest.md +22 -0
- data/docs/CreateInvitation200Response.md +22 -0
- data/docs/CreateInvitation201Response.md +32 -0
- data/docs/CreateInvitationRequest.md +20 -0
- data/docs/CreateOrganization201Response.md +22 -0
- data/docs/CreateOrganizationRequest.md +18 -0
- data/docs/CreateProjectRequest.md +24 -0
- data/docs/CreateProjectRequestCompetitorsInner.md +22 -0
- data/docs/CreateQueryCluster409Response.md +22 -0
- data/docs/CreateQueryClusterRequest.md +18 -0
- data/docs/DeleteQueryCluster200Response.md +22 -0
- data/docs/DiscoveryApi.md +311 -0
- data/docs/EntitlementsResource.md +38 -0
- data/docs/GetAvailableFilters200Response.md +22 -0
- data/docs/GetAvailableFilters200ResponseClustersInner.md +20 -0
- data/docs/GetMeStats200Response.md +20 -0
- data/docs/GetMeStats200ResponseOrganizations.md +18 -0
- data/docs/GetMeStats200ResponseProjects.md +20 -0
- data/docs/GetMembershipStats200Response.md +30 -0
- data/docs/GetMentionSamples400Response.md +24 -0
- data/docs/GetMentionSamples400ResponseDetailsValueInner.md +22 -0
- data/docs/GetMetricGlossary200Response.md +18 -0
- data/docs/GetMetricGlossary200ResponseMetricsInner.md +30 -0
- data/docs/GetOrganizationOverview200Response.md +20 -0
- data/docs/GetOrganizationOverview200ResponseAggregate.md +30 -0
- data/docs/GetOrganizationOverview200ResponseProjectsInner.md +32 -0
- data/docs/GetOrganizationStats200Response.md +22 -0
- data/docs/GetOrganizationStats200ResponseInvitations.md +18 -0
- data/docs/GetOrganizationStats200ResponseMembers.md +18 -0
- data/docs/GetOrganizationStats200ResponseProjects.md +20 -0
- data/docs/GetShareOfVoiceFormula200Response.md +24 -0
- data/docs/GetTrackingCoverage200Response.md +30 -0
- data/docs/GetTrackingCoverage200ResponseSampleInner.md +28 -0
- data/docs/InvitationResource.md +30 -0
- data/docs/InvitationsApi.md +243 -0
- data/docs/JobsApi.md +79 -0
- data/docs/KeywordListingResource.md +88 -0
- data/docs/KeywordListingResourceMentionTypeCounts.md +26 -0
- data/docs/ListAiResponses200Response.md +20 -0
- data/docs/ListCompetitors200Response.md +20 -0
- data/docs/ListInvitations200Response.md +20 -0
- data/docs/ListKeywordListings200Response.md +24 -0
- data/docs/ListMembers200Response.md +20 -0
- data/docs/ListOrganizations200Response.md +20 -0
- data/docs/ListProjects200Response.md +20 -0
- data/docs/ListQueryClusters200Response.md +20 -0
- data/docs/ListSearchSnapshots200Response.md +20 -0
- data/docs/ListShoppingSnapshots200Response.md +20 -0
- data/docs/MeResource.md +34 -0
- data/docs/MemberResource.md +28 -0
- data/docs/MembersApi.md +391 -0
- data/docs/OperationEffect.md +22 -0
- data/docs/OrganizationOperationsApi.md +77 -0
- data/docs/OrganizationResource.md +32 -0
- data/docs/OrganizationsApi.md +807 -0
- data/docs/PreviewOrganizationOperation200Response.md +34 -0
- data/docs/PreviewOrganizationOperation200ResponseOrganization.md +20 -0
- data/docs/PreviewOrganizationOperationRequest.md +24 -0
- data/docs/ProjectDetailResource.md +32 -0
- data/docs/ProjectDetailResourceCompetitorsInner.md +24 -0
- data/docs/ProjectResource.md +50 -0
- data/docs/ProjectedMonthlyChecksResource.md +20 -0
- data/docs/ProjectsApi.md +999 -0
- data/docs/QueryClusterResource.md +22 -0
- data/docs/ReportAiResponseRequest.md +22 -0
- data/docs/SearchResultResource.md +32 -0
- data/docs/SearchSnapshotResource.md +28 -0
- data/docs/SearchTrackedQueries200Response.md +20 -0
- data/docs/ShoppingOfferResource.md +38 -0
- data/docs/ShoppingSnapshotResource.md +28 -0
- data/docs/StartBrandDiscoveryJobRequest.md +20 -0
- data/docs/StartBrandNameSuggestionJobRequest.md +24 -0
- data/docs/StartClusteringJobRequestData.md +22 -0
- data/docs/StartKeywordDiscoveryJobRequest.md +24 -0
- data/docs/StartPromptDiscoveryJobRequest.md +24 -0
- data/docs/SubmittedChecksResource.md +20 -0
- data/docs/SubscriptionResource.md +42 -0
- data/docs/TrackedQueriesApi.md +1549 -0
- data/docs/TrackedQueryCountResource.md +20 -0
- data/docs/TrackedQueryDetailResource.md +38 -0
- data/docs/TrackedQueryResource.md +52 -0
- data/docs/TrackedQueryUsageResource.md +18 -0
- data/docs/UpdateOrganizationRequest.md +22 -0
- data/docs/UpdateProjectBrandProfileRequest.md +20 -0
- data/docs/UpdateProjectRequest.md +18 -0
- data/git_push.sh +57 -0
- data/lib/mencoro/api/account_api.rb +136 -0
- data/lib/mencoro/api/analytics_api.rb +1555 -0
- data/lib/mencoro/api/billing_api.rb +85 -0
- data/lib/mencoro/api/captures_api.rb +338 -0
- data/lib/mencoro/api/clusters_api.rb +548 -0
- data/lib/mencoro/api/discovery_api.rb +360 -0
- data/lib/mencoro/api/invitations_api.rb +302 -0
- data/lib/mencoro/api/jobs_api.rb +91 -0
- data/lib/mencoro/api/members_api.rb +453 -0
- data/lib/mencoro/api/organization_operations_api.rb +90 -0
- data/lib/mencoro/api/organizations_api.rb +835 -0
- data/lib/mencoro/api/projects_api.rb +1158 -0
- data/lib/mencoro/api/tracked_queries_api.rb +1792 -0
- data/lib/mencoro/api_client.rb +441 -0
- data/lib/mencoro/api_error.rb +58 -0
- data/lib/mencoro/api_model_base.rb +88 -0
- data/lib/mencoro/configuration.rb +392 -0
- data/lib/mencoro/models/accepted_job_resource.rb +220 -0
- data/lib/mencoro/models/ai_response_report_resource.rb +311 -0
- data/lib/mencoro/models/ai_response_resource.rb +412 -0
- data/lib/mencoro/models/apply_clustering_job_outcome.rb +199 -0
- data/lib/mencoro/models/apply_clustering_job_outcome_clusters_inner.rb +165 -0
- data/lib/mencoro/models/apply_clustering_job_outcome_failed_inner.rb +165 -0
- data/lib/mencoro/models/apply_clustering_job_outcome_skipped_clusters_inner.rb +156 -0
- data/lib/mencoro/models/apply_clustering_job_outcome_successful_inner.rb +158 -0
- data/lib/mencoro/models/async_job_resource.rb +256 -0
- data/lib/mencoro/models/batch_change_tracked_query_check_frequency_request_data.rb +237 -0
- data/lib/mencoro/models/batch_change_tracked_query_passes_request_data.rb +231 -0
- data/lib/mencoro/models/batch_create_query_clusters_outcome.rb +163 -0
- data/lib/mencoro/models/batch_create_query_clusters_outcome_failed_inner.rb +165 -0
- data/lib/mencoro/models/batch_create_query_clusters_outcome_successful_inner.rb +156 -0
- data/lib/mencoro/models/batch_create_query_clusters_request_data.rb +186 -0
- data/lib/mencoro/models/batch_create_tracked_queries_request_data.rb +399 -0
- data/lib/mencoro/models/batch_create_tracked_queries_result_resource.rb +163 -0
- data/lib/mencoro/models/batch_create_tracked_queries_result_resource_failed_inner.rb +183 -0
- data/lib/mencoro/models/batch_create_tracked_queries_result_resource_successful_inner.rb +174 -0
- data/lib/mencoro/models/batch_force_check_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/batch_force_check_tracked_queries200_response_failed_inner.rb +165 -0
- data/lib/mencoro/models/batch_pause_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/batch_pause_tracked_queries200_response_failed_inner.rb +165 -0
- data/lib/mencoro/models/batch_pause_tracked_queries200_response_successful_inner.rb +147 -0
- data/lib/mencoro/models/batch_resume_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/batch_targets_request_data.rb +186 -0
- data/lib/mencoro/models/batch_write_outcome.rb +163 -0
- data/lib/mencoro/models/batch_write_outcome_failed_inner.rb +166 -0
- data/lib/mencoro/models/brand_profile_resource.rb +235 -0
- data/lib/mencoro/models/bulk_add_clusters_to_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/bulk_add_clusters_to_tracked_queries_request.rb +218 -0
- data/lib/mencoro/models/bulk_remove_clusters_from_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/bulk_remove_clusters_from_tracked_queries_request.rb +218 -0
- data/lib/mencoro/models/change_member_role_request.rb +181 -0
- data/lib/mencoro/models/change_tracked_query_check_frequency_request_data.rb +190 -0
- data/lib/mencoro/models/change_tracked_query_passes_request_data.rb +184 -0
- data/lib/mencoro/models/citation_resource.rb +306 -0
- data/lib/mencoro/models/cluster_membership_request_data.rb +186 -0
- data/lib/mencoro/models/competitor_resource.rb +250 -0
- data/lib/mencoro/models/create_competitor_request.rb +247 -0
- data/lib/mencoro/models/create_invitation200_response.rb +202 -0
- data/lib/mencoro/models/create_invitation201_response.rb +347 -0
- data/lib/mencoro/models/create_invitation_request.rb +192 -0
- data/lib/mencoro/models/create_organization201_response.rb +166 -0
- data/lib/mencoro/models/create_organization_request.rb +175 -0
- data/lib/mencoro/models/create_project_request.rb +307 -0
- data/lib/mencoro/models/create_project_request_competitors_inner.rb +256 -0
- data/lib/mencoro/models/create_query_cluster409_response.rb +165 -0
- data/lib/mencoro/models/create_query_cluster_request.rb +167 -0
- data/lib/mencoro/models/delete_query_cluster200_response.rb +168 -0
- data/lib/mencoro/models/entitlements_resource.rb +328 -0
- data/lib/mencoro/models/get_available_filters200_response.rb +173 -0
- data/lib/mencoro/models/get_available_filters200_response_clusters_inner.rb +157 -0
- data/lib/mencoro/models/get_me_stats200_response.rb +156 -0
- data/lib/mencoro/models/get_me_stats200_response_organizations.rb +167 -0
- data/lib/mencoro/models/get_me_stats200_response_projects.rb +196 -0
- data/lib/mencoro/models/get_membership_stats200_response.rb +322 -0
- data/lib/mencoro/models/get_mention_samples400_response.rb +231 -0
- data/lib/mencoro/models/get_mention_samples400_response_details_value_inner.rb +168 -0
- data/lib/mencoro/models/get_metric_glossary200_response.rb +149 -0
- data/lib/mencoro/models/get_metric_glossary200_response_metrics_inner.rb +240 -0
- data/lib/mencoro/models/get_organization_overview200_response.rb +158 -0
- data/lib/mencoro/models/get_organization_overview200_response_aggregate.rb +209 -0
- data/lib/mencoro/models/get_organization_overview200_response_projects_inner.rb +218 -0
- data/lib/mencoro/models/get_organization_stats200_response.rb +165 -0
- data/lib/mencoro/models/get_organization_stats200_response_invitations.rb +167 -0
- data/lib/mencoro/models/get_organization_stats200_response_members.rb +167 -0
- data/lib/mencoro/models/get_organization_stats200_response_projects.rb +196 -0
- data/lib/mencoro/models/get_share_of_voice_formula200_response.rb +182 -0
- data/lib/mencoro/models/get_tracking_coverage200_response.rb +209 -0
- data/lib/mencoro/models/get_tracking_coverage200_response_sample_inner.rb +229 -0
- data/lib/mencoro/models/invitation_resource.rb +331 -0
- data/lib/mencoro/models/keyword_listing_resource.rb +798 -0
- data/lib/mencoro/models/keyword_listing_resource_mention_type_counts.rb +184 -0
- data/lib/mencoro/models/list_ai_responses200_response.rb +159 -0
- data/lib/mencoro/models/list_competitors200_response.rb +159 -0
- data/lib/mencoro/models/list_invitations200_response.rb +158 -0
- data/lib/mencoro/models/list_keyword_listings200_response.rb +180 -0
- data/lib/mencoro/models/list_members200_response.rb +158 -0
- data/lib/mencoro/models/list_organizations200_response.rb +158 -0
- data/lib/mencoro/models/list_projects200_response.rb +159 -0
- data/lib/mencoro/models/list_query_clusters200_response.rb +159 -0
- data/lib/mencoro/models/list_search_snapshots200_response.rb +159 -0
- data/lib/mencoro/models/list_shopping_snapshots200_response.rb +159 -0
- data/lib/mencoro/models/me_resource.rb +394 -0
- data/lib/mencoro/models/member_resource.rb +322 -0
- data/lib/mencoro/models/operation_effect.rb +204 -0
- data/lib/mencoro/models/organization_resource.rb +326 -0
- data/lib/mencoro/models/preview_organization_operation200_response.rb +236 -0
- data/lib/mencoro/models/preview_organization_operation200_response_organization.rb +158 -0
- data/lib/mencoro/models/preview_organization_operation_request.rb +213 -0
- data/lib/mencoro/models/project_detail_resource.rb +380 -0
- data/lib/mencoro/models/project_detail_resource_competitors_inner.rb +178 -0
- data/lib/mencoro/models/project_resource.rb +422 -0
- data/lib/mencoro/models/projected_monthly_checks_resource.rb +211 -0
- data/lib/mencoro/models/query_cluster_resource.rb +229 -0
- data/lib/mencoro/models/report_ai_response_request.rb +227 -0
- data/lib/mencoro/models/search_result_resource.rb +284 -0
- data/lib/mencoro/models/search_snapshot_resource.rb +302 -0
- data/lib/mencoro/models/search_tracked_queries200_response.rb +158 -0
- data/lib/mencoro/models/shopping_offer_resource.rb +381 -0
- data/lib/mencoro/models/shopping_snapshot_resource.rb +302 -0
- data/lib/mencoro/models/start_brand_discovery_job_request.rb +185 -0
- data/lib/mencoro/models/start_brand_name_suggestion_job_request.rb +287 -0
- data/lib/mencoro/models/start_clustering_job_request_data.rb +249 -0
- data/lib/mencoro/models/start_keyword_discovery_job_request.rb +266 -0
- data/lib/mencoro/models/start_prompt_discovery_job_request.rb +276 -0
- data/lib/mencoro/models/submitted_checks_resource.rb +195 -0
- data/lib/mencoro/models/subscription_resource.rb +362 -0
- data/lib/mencoro/models/tracked_query_count_resource.rb +193 -0
- data/lib/mencoro/models/tracked_query_detail_resource.rb +440 -0
- data/lib/mencoro/models/tracked_query_resource.rb +492 -0
- data/lib/mencoro/models/tracked_query_usage_resource.rb +175 -0
- data/lib/mencoro/models/update_organization_request.rb +195 -0
- data/lib/mencoro/models/update_project_brand_profile_request.rb +218 -0
- data/lib/mencoro/models/update_project_request.rb +182 -0
- data/lib/mencoro/version.rb +15 -0
- data/lib/mencoro.rb +169 -0
- data/mencoro.gemspec +41 -0
- data/spec/api/account_api_spec.rb +57 -0
- data/spec/api/analytics_api_spec.rb +318 -0
- data/spec/api/billing_api_spec.rb +47 -0
- data/spec/api/captures_api_spec.rb +93 -0
- data/spec/api/clusters_api_spec.rb +126 -0
- data/spec/api/discovery_api_spec.rb +94 -0
- data/spec/api/invitations_api_spec.rb +83 -0
- data/spec/api/jobs_api_spec.rb +48 -0
- data/spec/api/members_api_spec.rb +111 -0
- data/spec/api/organization_operations_api_spec.rb +47 -0
- data/spec/api/organizations_api_spec.rb +181 -0
- data/spec/api/projects_api_spec.rb +229 -0
- data/spec/api/tracked_queries_api_spec.rb +344 -0
- data/spec/models/accepted_job_resource_spec.rb +48 -0
- data/spec/models/ai_response_report_resource_spec.rb +70 -0
- data/spec/models/ai_response_resource_spec.rb +90 -0
- data/spec/models/apply_clustering_job_outcome_clusters_inner_spec.rb +48 -0
- data/spec/models/apply_clustering_job_outcome_failed_inner_spec.rb +48 -0
- data/spec/models/apply_clustering_job_outcome_skipped_clusters_inner_spec.rb +42 -0
- data/spec/models/apply_clustering_job_outcome_spec.rb +60 -0
- data/spec/models/apply_clustering_job_outcome_successful_inner_spec.rb +42 -0
- data/spec/models/async_job_resource_spec.rb +62 -0
- data/spec/models/batch_change_tracked_query_check_frequency_request_data_spec.rb +46 -0
- data/spec/models/batch_change_tracked_query_passes_request_data_spec.rb +42 -0
- data/spec/models/batch_create_query_clusters_outcome_failed_inner_spec.rb +48 -0
- data/spec/models/batch_create_query_clusters_outcome_spec.rb +42 -0
- data/spec/models/batch_create_query_clusters_outcome_successful_inner_spec.rb +42 -0
- data/spec/models/batch_create_query_clusters_request_data_spec.rb +36 -0
- data/spec/models/batch_create_tracked_queries_request_data_spec.rb +80 -0
- data/spec/models/batch_create_tracked_queries_result_resource_failed_inner_spec.rb +60 -0
- data/spec/models/batch_create_tracked_queries_result_resource_spec.rb +42 -0
- data/spec/models/batch_create_tracked_queries_result_resource_successful_inner_spec.rb +54 -0
- data/spec/models/batch_force_check_tracked_queries200_response_failed_inner_spec.rb +48 -0
- data/spec/models/batch_force_check_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/batch_pause_tracked_queries200_response_failed_inner_spec.rb +48 -0
- data/spec/models/batch_pause_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/batch_pause_tracked_queries200_response_successful_inner_spec.rb +36 -0
- data/spec/models/batch_resume_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/batch_targets_request_data_spec.rb +36 -0
- data/spec/models/batch_write_outcome_failed_inner_spec.rb +48 -0
- data/spec/models/batch_write_outcome_spec.rb +42 -0
- data/spec/models/brand_profile_resource_spec.rb +54 -0
- data/spec/models/bulk_add_clusters_to_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/bulk_add_clusters_to_tracked_queries_request_spec.rb +42 -0
- data/spec/models/bulk_remove_clusters_from_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/bulk_remove_clusters_from_tracked_queries_request_spec.rb +42 -0
- data/spec/models/change_member_role_request_spec.rb +40 -0
- data/spec/models/change_tracked_query_check_frequency_request_data_spec.rb +40 -0
- data/spec/models/change_tracked_query_passes_request_data_spec.rb +36 -0
- data/spec/models/citation_resource_spec.rb +90 -0
- data/spec/models/cluster_membership_request_data_spec.rb +36 -0
- data/spec/models/competitor_resource_spec.rb +54 -0
- data/spec/models/create_competitor_request_spec.rb +48 -0
- data/spec/models/create_invitation200_response_spec.rb +52 -0
- data/spec/models/create_invitation201_response_spec.rb +86 -0
- data/spec/models/create_invitation_request_spec.rb +46 -0
- data/spec/models/create_organization201_response_spec.rb +48 -0
- data/spec/models/create_organization_request_spec.rb +36 -0
- data/spec/models/create_project_request_competitors_inner_spec.rb +48 -0
- data/spec/models/create_project_request_spec.rb +54 -0
- data/spec/models/create_query_cluster409_response_spec.rb +48 -0
- data/spec/models/create_query_cluster_request_spec.rb +36 -0
- data/spec/models/delete_query_cluster200_response_spec.rb +48 -0
- data/spec/models/entitlements_resource_spec.rb +104 -0
- data/spec/models/get_available_filters200_response_clusters_inner_spec.rb +42 -0
- data/spec/models/get_available_filters200_response_spec.rb +48 -0
- data/spec/models/get_me_stats200_response_organizations_spec.rb +36 -0
- data/spec/models/get_me_stats200_response_projects_spec.rb +42 -0
- data/spec/models/get_me_stats200_response_spec.rb +42 -0
- data/spec/models/get_membership_stats200_response_spec.rb +72 -0
- data/spec/models/get_mention_samples400_response_details_value_inner_spec.rb +48 -0
- data/spec/models/get_mention_samples400_response_spec.rb +54 -0
- data/spec/models/get_metric_glossary200_response_metrics_inner_spec.rb +76 -0
- data/spec/models/get_metric_glossary200_response_spec.rb +36 -0
- data/spec/models/get_organization_overview200_response_aggregate_spec.rb +72 -0
- data/spec/models/get_organization_overview200_response_projects_inner_spec.rb +78 -0
- data/spec/models/get_organization_overview200_response_spec.rb +42 -0
- data/spec/models/get_organization_stats200_response_invitations_spec.rb +36 -0
- data/spec/models/get_organization_stats200_response_members_spec.rb +36 -0
- data/spec/models/get_organization_stats200_response_projects_spec.rb +42 -0
- data/spec/models/get_organization_stats200_response_spec.rb +48 -0
- data/spec/models/get_share_of_voice_formula200_response_spec.rb +54 -0
- data/spec/models/get_tracking_coverage200_response_sample_inner_spec.rb +70 -0
- data/spec/models/get_tracking_coverage200_response_spec.rb +72 -0
- data/spec/models/invitation_resource_spec.rb +80 -0
- data/spec/models/keyword_listing_resource_mention_type_counts_spec.rb +60 -0
- data/spec/models/keyword_listing_resource_spec.rb +262 -0
- data/spec/models/list_ai_responses200_response_spec.rb +42 -0
- data/spec/models/list_competitors200_response_spec.rb +42 -0
- data/spec/models/list_invitations200_response_spec.rb +42 -0
- data/spec/models/list_keyword_listings200_response_spec.rb +54 -0
- data/spec/models/list_members200_response_spec.rb +42 -0
- data/spec/models/list_organizations200_response_spec.rb +42 -0
- data/spec/models/list_projects200_response_spec.rb +42 -0
- data/spec/models/list_query_clusters200_response_spec.rb +42 -0
- data/spec/models/list_search_snapshots200_response_spec.rb +42 -0
- data/spec/models/list_shopping_snapshots200_response_spec.rb +42 -0
- data/spec/models/me_resource_spec.rb +92 -0
- data/spec/models/member_resource_spec.rb +74 -0
- data/spec/models/operation_effect_spec.rb +48 -0
- data/spec/models/organization_resource_spec.rb +86 -0
- data/spec/models/preview_organization_operation200_response_organization_spec.rb +42 -0
- data/spec/models/preview_organization_operation200_response_spec.rb +84 -0
- data/spec/models/preview_organization_operation_request_spec.rb +58 -0
- data/spec/models/project_detail_resource_competitors_inner_spec.rb +54 -0
- data/spec/models/project_detail_resource_spec.rb +82 -0
- data/spec/models/project_resource_spec.rb +136 -0
- data/spec/models/projected_monthly_checks_resource_spec.rb +42 -0
- data/spec/models/query_cluster_resource_spec.rb +48 -0
- data/spec/models/report_ai_response_request_spec.rb +52 -0
- data/spec/models/search_result_resource_spec.rb +78 -0
- data/spec/models/search_snapshot_resource_spec.rb +66 -0
- data/spec/models/search_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/shopping_offer_resource_spec.rb +96 -0
- data/spec/models/shopping_snapshot_resource_spec.rb +66 -0
- data/spec/models/start_brand_discovery_job_request_spec.rb +42 -0
- data/spec/models/start_brand_name_suggestion_job_request_spec.rb +54 -0
- data/spec/models/start_clustering_job_request_data_spec.rb +52 -0
- data/spec/models/start_keyword_discovery_job_request_spec.rb +54 -0
- data/spec/models/start_prompt_discovery_job_request_spec.rb +54 -0
- data/spec/models/submitted_checks_resource_spec.rb +42 -0
- data/spec/models/subscription_resource_spec.rb +120 -0
- data/spec/models/tracked_query_count_resource_spec.rb +42 -0
- data/spec/models/tracked_query_detail_resource_spec.rb +108 -0
- data/spec/models/tracked_query_resource_spec.rb +150 -0
- data/spec/models/tracked_query_usage_resource_spec.rb +36 -0
- data/spec/models/update_organization_request_spec.rb +48 -0
- data/spec/models/update_project_brand_profile_request_spec.rb +42 -0
- data/spec/models/update_project_request_spec.rb +36 -0
- data/spec/spec_helper.rb +111 -0
- metadata +641 -0
data/docs/ClustersApi.md
ADDED
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
# Mencoro::ClustersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mencoro.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**apply_clustering_job**](ClustersApi.md#apply_clustering_job) | **POST** /api/v1/organizations/{organizationId}/projects/{projectId}/clusters/jobs/{jobId}/apply | Apply the result of a clustering job |
|
|
8
|
+
| [**batch_create_query_clusters**](ClustersApi.md#batch_create_query_clusters) | **POST** /api/v1/organizations/{organizationId}/projects/{projectId}/clusters/batch | Create several keyword clusters at once |
|
|
9
|
+
| [**create_query_cluster**](ClustersApi.md#create_query_cluster) | **POST** /api/v1/organizations/{organizationId}/projects/{projectId}/clusters | Create a keyword cluster |
|
|
10
|
+
| [**delete_query_cluster**](ClustersApi.md#delete_query_cluster) | **DELETE** /api/v1/organizations/{organizationId}/projects/{projectId}/clusters/{clusterId} | Delete a keyword cluster |
|
|
11
|
+
| [**rename_query_cluster**](ClustersApi.md#rename_query_cluster) | **PATCH** /api/v1/organizations/{organizationId}/projects/{projectId}/clusters/{clusterId} | Rename a keyword cluster |
|
|
12
|
+
| [**start_clustering_job**](ClustersApi.md#start_clustering_job) | **POST** /api/v1/organizations/{organizationId}/projects/{projectId}/clusters/jobs | Start a keyword clustering job |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## apply_clustering_job
|
|
16
|
+
|
|
17
|
+
> <ApplyClusteringJobOutcome> apply_clustering_job(organization_id, project_id, job_id, idempotency_key)
|
|
18
|
+
|
|
19
|
+
Apply the result of a clustering job
|
|
20
|
+
|
|
21
|
+
Minimum role: manager. Writes a completed clustering job onto the tracked queries it was computed for: it creates the clusters the job proposed that the project does not have yet, then assigns each tracked query according to the merge mode the job was started with — fill_gaps leaves already grouped queries alone, add_on_top only adds, full_regroup replaces a query's clusters with the proposed set and therefore REMOVES clusters that are not in it — but only for a tracked query the job actually returned an assignment for. A tracked query the job was started over and produced no assignment for is listed under `unassigned` and left exactly as it was, under every mode; it is not treated as \"belongs to no cluster\" and is never stripped. That matters most with restrictToExistingClusters, where the model is expected to return nothing for queries that fit no existing cluster. The body must be empty: the assignments, the target tracked queries and the mode all come from the job, so this call cannot apply something the job did not produce. Synchronous and partially successful — always 200, with each tracked query under `successful` or `failed`, and nothing rolled back because one failed. A job that is not completed, or one that produced no assignments, is refused with 409. Requires the write capability and an Idempotency-Key header; repeating the key returns the first answer rather than applying twice.
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'time'
|
|
27
|
+
require 'mencoro'
|
|
28
|
+
# setup authorization
|
|
29
|
+
Mencoro.configure do |config|
|
|
30
|
+
# Configure Bearer authorization: ApiKey
|
|
31
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
api_instance = Mencoro::ClustersApi.new
|
|
35
|
+
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
36
|
+
project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
37
|
+
job_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Must be a clustering job started for this organization and project.
|
|
38
|
+
idempotency_key = 'idempotency_key_example' # String | Repeat it to retry a lost response without applying the job twice.
|
|
39
|
+
|
|
40
|
+
begin
|
|
41
|
+
# Apply the result of a clustering job
|
|
42
|
+
result = api_instance.apply_clustering_job(organization_id, project_id, job_id, idempotency_key)
|
|
43
|
+
p result
|
|
44
|
+
rescue Mencoro::ApiError => e
|
|
45
|
+
puts "Error when calling ClustersApi->apply_clustering_job: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Using the apply_clustering_job_with_http_info variant
|
|
50
|
+
|
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
|
52
|
+
|
|
53
|
+
> <Array(<ApplyClusteringJobOutcome>, Integer, Hash)> apply_clustering_job_with_http_info(organization_id, project_id, job_id, idempotency_key)
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
56
|
+
begin
|
|
57
|
+
# Apply the result of a clustering job
|
|
58
|
+
data, status_code, headers = api_instance.apply_clustering_job_with_http_info(organization_id, project_id, job_id, idempotency_key)
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => <ApplyClusteringJobOutcome>
|
|
62
|
+
rescue Mencoro::ApiError => e
|
|
63
|
+
puts "Error when calling ClustersApi->apply_clustering_job_with_http_info: #{e}"
|
|
64
|
+
end
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
| Name | Type | Description | Notes |
|
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
|
71
|
+
| **organization_id** | **String** | | |
|
|
72
|
+
| **project_id** | **String** | | |
|
|
73
|
+
| **job_id** | **String** | Must be a clustering job started for this organization and project. | |
|
|
74
|
+
| **idempotency_key** | **String** | Repeat it to retry a lost response without applying the job twice. | |
|
|
75
|
+
|
|
76
|
+
### Return type
|
|
77
|
+
|
|
78
|
+
[**ApplyClusteringJobOutcome**](ApplyClusteringJobOutcome.md)
|
|
79
|
+
|
|
80
|
+
### Authorization
|
|
81
|
+
|
|
82
|
+
[ApiKey](../README.md#ApiKey)
|
|
83
|
+
|
|
84
|
+
### HTTP request headers
|
|
85
|
+
|
|
86
|
+
- **Content-Type**: Not defined
|
|
87
|
+
- **Accept**: application/json
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## batch_create_query_clusters
|
|
91
|
+
|
|
92
|
+
> <BatchCreateQueryClustersOutcome> batch_create_query_clusters(organization_id, project_id, idempotency_key, batch_create_query_clusters_request_data)
|
|
93
|
+
|
|
94
|
+
Create several keyword clusters at once
|
|
95
|
+
|
|
96
|
+
Minimum role: manager. Creates up to 100 empty keyword clusters in one call. Names are trimmed and lower-cased and repeated names in the body are collapsed before anything is written. Partial success: the answer is always 200 and reports every name under `successful` or under `failed` — a name already taken in the project fails with query_cluster_name_already_exists and is NOT resolved to the existing cluster, while the other names are still created. Nothing is rolled back because one name failed. The clusters are created empty; no tracked query is assigned to them. The organization must not be archived; an archived project IS refused with 409, stricter than the Mencoro app, which lets cluster writes into one. Requires the write capability and an Idempotency-Key header.
|
|
97
|
+
|
|
98
|
+
### Examples
|
|
99
|
+
|
|
100
|
+
```ruby
|
|
101
|
+
require 'time'
|
|
102
|
+
require 'mencoro'
|
|
103
|
+
# setup authorization
|
|
104
|
+
Mencoro.configure do |config|
|
|
105
|
+
# Configure Bearer authorization: ApiKey
|
|
106
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
api_instance = Mencoro::ClustersApi.new
|
|
110
|
+
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
111
|
+
project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
112
|
+
idempotency_key = 'idempotency_key_example' # String | Repeat it to retry a lost response without creating the batch twice.
|
|
113
|
+
batch_create_query_clusters_request_data = Mencoro::BatchCreateQueryClustersRequestData.new({names: ['names_example']}) # BatchCreateQueryClustersRequestData |
|
|
114
|
+
|
|
115
|
+
begin
|
|
116
|
+
# Create several keyword clusters at once
|
|
117
|
+
result = api_instance.batch_create_query_clusters(organization_id, project_id, idempotency_key, batch_create_query_clusters_request_data)
|
|
118
|
+
p result
|
|
119
|
+
rescue Mencoro::ApiError => e
|
|
120
|
+
puts "Error when calling ClustersApi->batch_create_query_clusters: #{e}"
|
|
121
|
+
end
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### Using the batch_create_query_clusters_with_http_info variant
|
|
125
|
+
|
|
126
|
+
This returns an Array which contains the response data, status code and headers.
|
|
127
|
+
|
|
128
|
+
> <Array(<BatchCreateQueryClustersOutcome>, Integer, Hash)> batch_create_query_clusters_with_http_info(organization_id, project_id, idempotency_key, batch_create_query_clusters_request_data)
|
|
129
|
+
|
|
130
|
+
```ruby
|
|
131
|
+
begin
|
|
132
|
+
# Create several keyword clusters at once
|
|
133
|
+
data, status_code, headers = api_instance.batch_create_query_clusters_with_http_info(organization_id, project_id, idempotency_key, batch_create_query_clusters_request_data)
|
|
134
|
+
p status_code # => 2xx
|
|
135
|
+
p headers # => { ... }
|
|
136
|
+
p data # => <BatchCreateQueryClustersOutcome>
|
|
137
|
+
rescue Mencoro::ApiError => e
|
|
138
|
+
puts "Error when calling ClustersApi->batch_create_query_clusters_with_http_info: #{e}"
|
|
139
|
+
end
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
| Name | Type | Description | Notes |
|
|
145
|
+
| ---- | ---- | ----------- | ----- |
|
|
146
|
+
| **organization_id** | **String** | | |
|
|
147
|
+
| **project_id** | **String** | | |
|
|
148
|
+
| **idempotency_key** | **String** | Repeat it to retry a lost response without creating the batch twice. | |
|
|
149
|
+
| **batch_create_query_clusters_request_data** | [**BatchCreateQueryClustersRequestData**](BatchCreateQueryClustersRequestData.md) | | |
|
|
150
|
+
|
|
151
|
+
### Return type
|
|
152
|
+
|
|
153
|
+
[**BatchCreateQueryClustersOutcome**](BatchCreateQueryClustersOutcome.md)
|
|
154
|
+
|
|
155
|
+
### Authorization
|
|
156
|
+
|
|
157
|
+
[ApiKey](../README.md#ApiKey)
|
|
158
|
+
|
|
159
|
+
### HTTP request headers
|
|
160
|
+
|
|
161
|
+
- **Content-Type**: application/json
|
|
162
|
+
- **Accept**: application/json
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
## create_query_cluster
|
|
166
|
+
|
|
167
|
+
> <QueryClusterResource> create_query_cluster(organization_id, project_id, idempotency_key, create_query_cluster_request)
|
|
168
|
+
|
|
169
|
+
Create a keyword cluster
|
|
170
|
+
|
|
171
|
+
Minimum role: manager. Creates one empty keyword cluster in the project. The name is trimmed and lower-cased before it is stored, and it must be unique within the project: a name that already exists is refused with 409 and nothing is merged into the existing cluster. The cluster starts with no tracked queries in it — this operation does not assign anything to it. The organization must not be archived; an archived project IS refused with 409, stricter than the Mencoro app, which lets cluster writes into one. Requires the write capability and an Idempotency-Key header.
|
|
172
|
+
|
|
173
|
+
### Examples
|
|
174
|
+
|
|
175
|
+
```ruby
|
|
176
|
+
require 'time'
|
|
177
|
+
require 'mencoro'
|
|
178
|
+
# setup authorization
|
|
179
|
+
Mencoro.configure do |config|
|
|
180
|
+
# Configure Bearer authorization: ApiKey
|
|
181
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
api_instance = Mencoro::ClustersApi.new
|
|
185
|
+
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
186
|
+
project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
187
|
+
idempotency_key = '3f9d2c18-6b4a-4c77-9f10-6f2d5a7c8e21' # String | A token you choose per operation, 8 to 255 printable ASCII characters with no spaces; a UUID is the obvious choice. Repeat it to retry a lost response without creating a second cluster. The key is scoped to your API key, and it is bound to the method, the path and the body of the first attempt: repeating it with anything else changed is refused with 409 rather than replayed.
|
|
188
|
+
create_query_cluster_request = Mencoro::CreateQueryClusterRequest.new # CreateQueryClusterRequest |
|
|
189
|
+
|
|
190
|
+
begin
|
|
191
|
+
# Create a keyword cluster
|
|
192
|
+
result = api_instance.create_query_cluster(organization_id, project_id, idempotency_key, create_query_cluster_request)
|
|
193
|
+
p result
|
|
194
|
+
rescue Mencoro::ApiError => e
|
|
195
|
+
puts "Error when calling ClustersApi->create_query_cluster: #{e}"
|
|
196
|
+
end
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
#### Using the create_query_cluster_with_http_info variant
|
|
200
|
+
|
|
201
|
+
This returns an Array which contains the response data, status code and headers.
|
|
202
|
+
|
|
203
|
+
> <Array(<QueryClusterResource>, Integer, Hash)> create_query_cluster_with_http_info(organization_id, project_id, idempotency_key, create_query_cluster_request)
|
|
204
|
+
|
|
205
|
+
```ruby
|
|
206
|
+
begin
|
|
207
|
+
# Create a keyword cluster
|
|
208
|
+
data, status_code, headers = api_instance.create_query_cluster_with_http_info(organization_id, project_id, idempotency_key, create_query_cluster_request)
|
|
209
|
+
p status_code # => 2xx
|
|
210
|
+
p headers # => { ... }
|
|
211
|
+
p data # => <QueryClusterResource>
|
|
212
|
+
rescue Mencoro::ApiError => e
|
|
213
|
+
puts "Error when calling ClustersApi->create_query_cluster_with_http_info: #{e}"
|
|
214
|
+
end
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Parameters
|
|
218
|
+
|
|
219
|
+
| Name | Type | Description | Notes |
|
|
220
|
+
| ---- | ---- | ----------- | ----- |
|
|
221
|
+
| **organization_id** | **String** | | |
|
|
222
|
+
| **project_id** | **String** | | |
|
|
223
|
+
| **idempotency_key** | **String** | A token you choose per operation, 8 to 255 printable ASCII characters with no spaces; a UUID is the obvious choice. Repeat it to retry a lost response without creating a second cluster. The key is scoped to your API key, and it is bound to the method, the path and the body of the first attempt: repeating it with anything else changed is refused with 409 rather than replayed. | |
|
|
224
|
+
| **create_query_cluster_request** | [**CreateQueryClusterRequest**](CreateQueryClusterRequest.md) | | |
|
|
225
|
+
|
|
226
|
+
### Return type
|
|
227
|
+
|
|
228
|
+
[**QueryClusterResource**](QueryClusterResource.md)
|
|
229
|
+
|
|
230
|
+
### Authorization
|
|
231
|
+
|
|
232
|
+
[ApiKey](../README.md#ApiKey)
|
|
233
|
+
|
|
234
|
+
### HTTP request headers
|
|
235
|
+
|
|
236
|
+
- **Content-Type**: application/json
|
|
237
|
+
- **Accept**: application/json
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
## delete_query_cluster
|
|
241
|
+
|
|
242
|
+
> <DeleteQueryCluster200Response> delete_query_cluster(organization_id, project_id, cluster_id, idempotency_key)
|
|
243
|
+
|
|
244
|
+
Delete a keyword cluster
|
|
245
|
+
|
|
246
|
+
Minimum role: manager. Deletes one keyword cluster. The tracked queries that were in it are NOT deleted: they are unassigned from this cluster and keep every other cluster they belong to. Analytics filtered by this cluster id return nothing afterwards, including for dates before the deletion, because that filter reads current membership. This cannot be undone — recreating a cluster with the same name produces a new id and an empty cluster. The organization must not be archived, and neither must the project: an archived project IS refused with 409, stricter than the Mencoro app, which lets cluster writes into one. Requires the write capability and an Idempotency-Key header.
|
|
247
|
+
|
|
248
|
+
### Examples
|
|
249
|
+
|
|
250
|
+
```ruby
|
|
251
|
+
require 'time'
|
|
252
|
+
require 'mencoro'
|
|
253
|
+
# setup authorization
|
|
254
|
+
Mencoro.configure do |config|
|
|
255
|
+
# Configure Bearer authorization: ApiKey
|
|
256
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
api_instance = Mencoro::ClustersApi.new
|
|
260
|
+
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
261
|
+
project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
262
|
+
cluster_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Must be a cluster of the project in the path.
|
|
263
|
+
idempotency_key = 'idempotency_key_example' # String | Repeat it to retry a lost response; a fresh key answers 404 once the cluster is gone.
|
|
264
|
+
|
|
265
|
+
begin
|
|
266
|
+
# Delete a keyword cluster
|
|
267
|
+
result = api_instance.delete_query_cluster(organization_id, project_id, cluster_id, idempotency_key)
|
|
268
|
+
p result
|
|
269
|
+
rescue Mencoro::ApiError => e
|
|
270
|
+
puts "Error when calling ClustersApi->delete_query_cluster: #{e}"
|
|
271
|
+
end
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
#### Using the delete_query_cluster_with_http_info variant
|
|
275
|
+
|
|
276
|
+
This returns an Array which contains the response data, status code and headers.
|
|
277
|
+
|
|
278
|
+
> <Array(<DeleteQueryCluster200Response>, Integer, Hash)> delete_query_cluster_with_http_info(organization_id, project_id, cluster_id, idempotency_key)
|
|
279
|
+
|
|
280
|
+
```ruby
|
|
281
|
+
begin
|
|
282
|
+
# Delete a keyword cluster
|
|
283
|
+
data, status_code, headers = api_instance.delete_query_cluster_with_http_info(organization_id, project_id, cluster_id, idempotency_key)
|
|
284
|
+
p status_code # => 2xx
|
|
285
|
+
p headers # => { ... }
|
|
286
|
+
p data # => <DeleteQueryCluster200Response>
|
|
287
|
+
rescue Mencoro::ApiError => e
|
|
288
|
+
puts "Error when calling ClustersApi->delete_query_cluster_with_http_info: #{e}"
|
|
289
|
+
end
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### Parameters
|
|
293
|
+
|
|
294
|
+
| Name | Type | Description | Notes |
|
|
295
|
+
| ---- | ---- | ----------- | ----- |
|
|
296
|
+
| **organization_id** | **String** | | |
|
|
297
|
+
| **project_id** | **String** | | |
|
|
298
|
+
| **cluster_id** | **String** | Must be a cluster of the project in the path. | |
|
|
299
|
+
| **idempotency_key** | **String** | Repeat it to retry a lost response; a fresh key answers 404 once the cluster is gone. | |
|
|
300
|
+
|
|
301
|
+
### Return type
|
|
302
|
+
|
|
303
|
+
[**DeleteQueryCluster200Response**](DeleteQueryCluster200Response.md)
|
|
304
|
+
|
|
305
|
+
### Authorization
|
|
306
|
+
|
|
307
|
+
[ApiKey](../README.md#ApiKey)
|
|
308
|
+
|
|
309
|
+
### HTTP request headers
|
|
310
|
+
|
|
311
|
+
- **Content-Type**: Not defined
|
|
312
|
+
- **Accept**: application/json
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
## rename_query_cluster
|
|
316
|
+
|
|
317
|
+
> <QueryClusterResource> rename_query_cluster(organization_id, project_id, cluster_id, idempotency_key, create_query_cluster_request)
|
|
318
|
+
|
|
319
|
+
Rename a keyword cluster
|
|
320
|
+
|
|
321
|
+
Minimum role: manager. Changes the name of one keyword cluster and nothing else: the tracked queries assigned to it are untouched, and its id does not change, so nothing a client stored breaks. The new name is trimmed and lower-cased and must be unique within the project; a collision is refused with 409. Renaming to the name the cluster already has is accepted and is a no-op. The organization must not be archived; an archived project IS refused with 409, stricter than the Mencoro app, which lets cluster writes into one. Requires the write capability and an Idempotency-Key header.
|
|
322
|
+
|
|
323
|
+
### Examples
|
|
324
|
+
|
|
325
|
+
```ruby
|
|
326
|
+
require 'time'
|
|
327
|
+
require 'mencoro'
|
|
328
|
+
# setup authorization
|
|
329
|
+
Mencoro.configure do |config|
|
|
330
|
+
# Configure Bearer authorization: ApiKey
|
|
331
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
api_instance = Mencoro::ClustersApi.new
|
|
335
|
+
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
336
|
+
project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
337
|
+
cluster_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Must be a cluster of the project in the path.
|
|
338
|
+
idempotency_key = 'idempotency_key_example' # String | Repeat it to retry a lost response without renaming twice.
|
|
339
|
+
create_query_cluster_request = Mencoro::CreateQueryClusterRequest.new # CreateQueryClusterRequest |
|
|
340
|
+
|
|
341
|
+
begin
|
|
342
|
+
# Rename a keyword cluster
|
|
343
|
+
result = api_instance.rename_query_cluster(organization_id, project_id, cluster_id, idempotency_key, create_query_cluster_request)
|
|
344
|
+
p result
|
|
345
|
+
rescue Mencoro::ApiError => e
|
|
346
|
+
puts "Error when calling ClustersApi->rename_query_cluster: #{e}"
|
|
347
|
+
end
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
#### Using the rename_query_cluster_with_http_info variant
|
|
351
|
+
|
|
352
|
+
This returns an Array which contains the response data, status code and headers.
|
|
353
|
+
|
|
354
|
+
> <Array(<QueryClusterResource>, Integer, Hash)> rename_query_cluster_with_http_info(organization_id, project_id, cluster_id, idempotency_key, create_query_cluster_request)
|
|
355
|
+
|
|
356
|
+
```ruby
|
|
357
|
+
begin
|
|
358
|
+
# Rename a keyword cluster
|
|
359
|
+
data, status_code, headers = api_instance.rename_query_cluster_with_http_info(organization_id, project_id, cluster_id, idempotency_key, create_query_cluster_request)
|
|
360
|
+
p status_code # => 2xx
|
|
361
|
+
p headers # => { ... }
|
|
362
|
+
p data # => <QueryClusterResource>
|
|
363
|
+
rescue Mencoro::ApiError => e
|
|
364
|
+
puts "Error when calling ClustersApi->rename_query_cluster_with_http_info: #{e}"
|
|
365
|
+
end
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
### Parameters
|
|
369
|
+
|
|
370
|
+
| Name | Type | Description | Notes |
|
|
371
|
+
| ---- | ---- | ----------- | ----- |
|
|
372
|
+
| **organization_id** | **String** | | |
|
|
373
|
+
| **project_id** | **String** | | |
|
|
374
|
+
| **cluster_id** | **String** | Must be a cluster of the project in the path. | |
|
|
375
|
+
| **idempotency_key** | **String** | Repeat it to retry a lost response without renaming twice. | |
|
|
376
|
+
| **create_query_cluster_request** | [**CreateQueryClusterRequest**](CreateQueryClusterRequest.md) | | |
|
|
377
|
+
|
|
378
|
+
### Return type
|
|
379
|
+
|
|
380
|
+
[**QueryClusterResource**](QueryClusterResource.md)
|
|
381
|
+
|
|
382
|
+
### Authorization
|
|
383
|
+
|
|
384
|
+
[ApiKey](../README.md#ApiKey)
|
|
385
|
+
|
|
386
|
+
### HTTP request headers
|
|
387
|
+
|
|
388
|
+
- **Content-Type**: application/json
|
|
389
|
+
- **Accept**: application/json
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
## start_clustering_job
|
|
393
|
+
|
|
394
|
+
> <AcceptedJobResource> start_clustering_job(organization_id, project_id, idempotency_key, start_clustering_job_request_data)
|
|
395
|
+
|
|
396
|
+
Start a keyword clustering job
|
|
397
|
+
|
|
398
|
+
Minimum role: manager. Asks the clustering service to propose keyword clusters for up to 500 tracked queries of the project, and answers 202 with the job to poll — the work runs in the background and a 202 says it was accepted, never that it succeeded. THE JOB WRITES NOTHING: it produces a proposal, and nothing changes until it is applied through the apply operation, which is a separate call. Duplicate query texts within the selection are sent once. Requires an entitled subscription (402 otherwise) and the organization must be active and the project not archived. Rate limited to 10 starts per minute per organization, shared with the same operation in the web application. Requires the write capability and an Idempotency-Key header; repeating the key returns the first job rather than starting a second.
|
|
399
|
+
|
|
400
|
+
### Examples
|
|
401
|
+
|
|
402
|
+
```ruby
|
|
403
|
+
require 'time'
|
|
404
|
+
require 'mencoro'
|
|
405
|
+
# setup authorization
|
|
406
|
+
Mencoro.configure do |config|
|
|
407
|
+
# Configure Bearer authorization: ApiKey
|
|
408
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
api_instance = Mencoro::ClustersApi.new
|
|
412
|
+
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
413
|
+
project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
414
|
+
idempotency_key = 'idempotency_key_example' # String | Repeat it to retry a lost response without starting a second job.
|
|
415
|
+
start_clustering_job_request_data = Mencoro::StartClusteringJobRequestData.new({tracked_query_ids: ['tracked_query_ids_example'], mode: 'fill_gaps'}) # StartClusteringJobRequestData |
|
|
416
|
+
|
|
417
|
+
begin
|
|
418
|
+
# Start a keyword clustering job
|
|
419
|
+
result = api_instance.start_clustering_job(organization_id, project_id, idempotency_key, start_clustering_job_request_data)
|
|
420
|
+
p result
|
|
421
|
+
rescue Mencoro::ApiError => e
|
|
422
|
+
puts "Error when calling ClustersApi->start_clustering_job: #{e}"
|
|
423
|
+
end
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
#### Using the start_clustering_job_with_http_info variant
|
|
427
|
+
|
|
428
|
+
This returns an Array which contains the response data, status code and headers.
|
|
429
|
+
|
|
430
|
+
> <Array(<AcceptedJobResource>, Integer, Hash)> start_clustering_job_with_http_info(organization_id, project_id, idempotency_key, start_clustering_job_request_data)
|
|
431
|
+
|
|
432
|
+
```ruby
|
|
433
|
+
begin
|
|
434
|
+
# Start a keyword clustering job
|
|
435
|
+
data, status_code, headers = api_instance.start_clustering_job_with_http_info(organization_id, project_id, idempotency_key, start_clustering_job_request_data)
|
|
436
|
+
p status_code # => 2xx
|
|
437
|
+
p headers # => { ... }
|
|
438
|
+
p data # => <AcceptedJobResource>
|
|
439
|
+
rescue Mencoro::ApiError => e
|
|
440
|
+
puts "Error when calling ClustersApi->start_clustering_job_with_http_info: #{e}"
|
|
441
|
+
end
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
### Parameters
|
|
445
|
+
|
|
446
|
+
| Name | Type | Description | Notes |
|
|
447
|
+
| ---- | ---- | ----------- | ----- |
|
|
448
|
+
| **organization_id** | **String** | | |
|
|
449
|
+
| **project_id** | **String** | | |
|
|
450
|
+
| **idempotency_key** | **String** | Repeat it to retry a lost response without starting a second job. | |
|
|
451
|
+
| **start_clustering_job_request_data** | [**StartClusteringJobRequestData**](StartClusteringJobRequestData.md) | | |
|
|
452
|
+
|
|
453
|
+
### Return type
|
|
454
|
+
|
|
455
|
+
[**AcceptedJobResource**](AcceptedJobResource.md)
|
|
456
|
+
|
|
457
|
+
### Authorization
|
|
458
|
+
|
|
459
|
+
[ApiKey](../README.md#ApiKey)
|
|
460
|
+
|
|
461
|
+
### HTTP request headers
|
|
462
|
+
|
|
463
|
+
- **Content-Type**: application/json
|
|
464
|
+
- **Accept**: application/json
|
|
465
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Mencoro::CompetitorResource
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **name** | **String** | The competitor's display name | |
|
|
9
|
+
| **website_domains** | **Array<String>** | Domains a result is matched against for this competitor | |
|
|
10
|
+
| **brand_names** | **Array<String>** | Names a mention is matched against for this competitor | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'mencoro'
|
|
16
|
+
|
|
17
|
+
instance = Mencoro::CompetitorResource.new(
|
|
18
|
+
id: null,
|
|
19
|
+
name: null,
|
|
20
|
+
website_domains: null,
|
|
21
|
+
brand_names: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Mencoro::CreateCompetitorRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | The competitor's display name | [optional] |
|
|
8
|
+
| **website_domains** | **Array<String>** | Domains a result is matched against for this competitor. A full URL or a bare host. | [optional] |
|
|
9
|
+
| **brand_names** | **Array<String>** | Names a mention is matched against for this competitor | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'mencoro'
|
|
15
|
+
|
|
16
|
+
instance = Mencoro::CreateCompetitorRequest.new(
|
|
17
|
+
name: null,
|
|
18
|
+
website_domains: null,
|
|
19
|
+
brand_names: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Mencoro::CreateInvitation200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **created** | **Boolean** | Always false on a 200. | [optional] |
|
|
8
|
+
| **reason** | **String** | Why nothing was created. | [optional] |
|
|
9
|
+
| **email** | **String** | The address as it was normalised. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'mencoro'
|
|
15
|
+
|
|
16
|
+
instance = Mencoro::CreateInvitation200Response.new(
|
|
17
|
+
created: null,
|
|
18
|
+
reason: null,
|
|
19
|
+
email: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Mencoro::CreateInvitation201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **email** | **String** | | |
|
|
9
|
+
| **role** | **String** | | |
|
|
10
|
+
| **state** | **String** | | |
|
|
11
|
+
| **created_at** | **Time** | | |
|
|
12
|
+
| **expires_at** | **Time** | | |
|
|
13
|
+
| **accepted_at** | **Time** | | [optional] |
|
|
14
|
+
| **created** | **Boolean** | Always true on a 201. | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'mencoro'
|
|
20
|
+
|
|
21
|
+
instance = Mencoro::CreateInvitation201Response.new(
|
|
22
|
+
id: null,
|
|
23
|
+
email: null,
|
|
24
|
+
role: null,
|
|
25
|
+
state: null,
|
|
26
|
+
created_at: null,
|
|
27
|
+
expires_at: null,
|
|
28
|
+
accepted_at: null,
|
|
29
|
+
created: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Mencoro::CreateInvitationRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **email** | **String** | | [optional] |
|
|
8
|
+
| **role** | **String** | | [optional][default to 'viewer'] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'mencoro'
|
|
14
|
+
|
|
15
|
+
instance = Mencoro::CreateInvitationRequest.new(
|
|
16
|
+
email: null,
|
|
17
|
+
role: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Mencoro::CreateOrganization201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **status** | **String** | Always active on creation. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'mencoro'
|
|
15
|
+
|
|
16
|
+
instance = Mencoro::CreateOrganization201Response.new(
|
|
17
|
+
id: null,
|
|
18
|
+
name: null,
|
|
19
|
+
status: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Mencoro::CreateOrganizationRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'mencoro'
|
|
13
|
+
|
|
14
|
+
instance = Mencoro::CreateOrganizationRequest.new(
|
|
15
|
+
name: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Mencoro::CreateProjectRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | |
|
|
8
|
+
| **website_domains** | **Array<String>** | At least one website URL or domain to monitor. | |
|
|
9
|
+
| **brand_names** | **Array<String>** | At least one brand name to match in AI answers and search results. | |
|
|
10
|
+
| **competitors** | [**Array<CreateProjectRequestCompetitorsInner>**](CreateProjectRequestCompetitorsInner.md) | Competitors to create with the project. Optional; they can also be added later through the competitor endpoints. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'mencoro'
|
|
16
|
+
|
|
17
|
+
instance = Mencoro::CreateProjectRequest.new(
|
|
18
|
+
name: null,
|
|
19
|
+
website_domains: null,
|
|
20
|
+
brand_names: null,
|
|
21
|
+
competitors: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Mencoro::CreateProjectRequestCompetitorsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | |
|
|
8
|
+
| **website_domains** | **Array<String>** | | |
|
|
9
|
+
| **brand_names** | **Array<String>** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'mencoro'
|
|
15
|
+
|
|
16
|
+
instance = Mencoro::CreateProjectRequestCompetitorsInner.new(
|
|
17
|
+
name: null,
|
|
18
|
+
website_domains: null,
|
|
19
|
+
brand_names: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|