thecompaniesapi 1.0.1

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.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/.env.example +4 -0
  3. data/.github/workflows/release.yml +106 -0
  4. data/.github/workflows/tests.yml +93 -0
  5. data/.gitignore +146 -0
  6. data/CODE_OF_CONDUCT.md +74 -0
  7. data/Gemfile +7 -0
  8. data/Gemfile.lock +36 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +551 -0
  11. data/Rakefile +25 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/lib/thecompaniesapi/client.rb +643 -0
  15. data/lib/thecompaniesapi/error.rb +28 -0
  16. data/lib/thecompaniesapi/generated/models/action.rb +91 -0
  17. data/lib/thecompaniesapi/generated/models/company_v2.rb +136 -0
  18. data/lib/thecompaniesapi/generated/models/email_pattern.rb +51 -0
  19. data/lib/thecompaniesapi/generated/models/job_title.rb +81 -0
  20. data/lib/thecompaniesapi/generated/models/list.rb +141 -0
  21. data/lib/thecompaniesapi/generated/models/list_analytics.rb +46 -0
  22. data/lib/thecompaniesapi/generated/models/llmanswer.rb +66 -0
  23. data/lib/thecompaniesapi/generated/models/nominatim_city.rb +101 -0
  24. data/lib/thecompaniesapi/generated/models/nominatim_continent.rb +111 -0
  25. data/lib/thecompaniesapi/generated/models/nominatim_country.rb +121 -0
  26. data/lib/thecompaniesapi/generated/models/nominatim_county.rb +96 -0
  27. data/lib/thecompaniesapi/generated/models/nominatim_state.rb +96 -0
  28. data/lib/thecompaniesapi/generated/models/page_contents_ideated.rb +171 -0
  29. data/lib/thecompaniesapi/generated/models/page_contents_link.rb +41 -0
  30. data/lib/thecompaniesapi/generated/models/page_contents_page.rb +71 -0
  31. data/lib/thecompaniesapi/generated/models/pagination_meta.rb +76 -0
  32. data/lib/thecompaniesapi/generated/models/prompt.rb +91 -0
  33. data/lib/thecompaniesapi/generated/models/segmentation_condition.rb +56 -0
  34. data/lib/thecompaniesapi/generated/models/team.rb +101 -0
  35. data/lib/thecompaniesapi/generated/models/technology.rb +96 -0
  36. data/lib/thecompaniesapi/generated/models/user.rb +101 -0
  37. data/lib/thecompaniesapi/generated/operations_map.rb +11 -0
  38. data/lib/thecompaniesapi/generated/requests/ask_company_request.rb +60 -0
  39. data/lib/thecompaniesapi/generated/requests/count_companies_post_request.rb +50 -0
  40. data/lib/thecompaniesapi/generated/requests/create_list_request.rb +70 -0
  41. data/lib/thecompaniesapi/generated/requests/export_companies_analytics_request.rb +70 -0
  42. data/lib/thecompaniesapi/generated/requests/fetch_companies_in_list_post_request.rb +70 -0
  43. data/lib/thecompaniesapi/generated/requests/product_prompt_request.rb +65 -0
  44. data/lib/thecompaniesapi/generated/requests/prompt_to_segmentation_request.rb +55 -0
  45. data/lib/thecompaniesapi/generated/requests/request_action_request.rb +80 -0
  46. data/lib/thecompaniesapi/generated/requests/retry_action_request.rb +30 -0
  47. data/lib/thecompaniesapi/generated/requests/search_companies_post_request.rb +90 -0
  48. data/lib/thecompaniesapi/generated/requests/toggle_companies_in_list_request.rb +50 -0
  49. data/lib/thecompaniesapi/generated/requests/update_list_request.rb +65 -0
  50. data/lib/thecompaniesapi/generated/requests/update_team_request.rb +45 -0
  51. data/lib/thecompaniesapi/generated/responses/ask_company_response.rb +38 -0
  52. data/lib/thecompaniesapi/generated/responses/count_companies_post_response.rb +34 -0
  53. data/lib/thecompaniesapi/generated/responses/count_companies_response.rb +34 -0
  54. data/lib/thecompaniesapi/generated/responses/create_list_response.rb +25 -0
  55. data/lib/thecompaniesapi/generated/responses/delete_list_response.rb +25 -0
  56. data/lib/thecompaniesapi/generated/responses/delete_prompt_response.rb +25 -0
  57. data/lib/thecompaniesapi/generated/responses/enrich_job_titles_response.rb +25 -0
  58. data/lib/thecompaniesapi/generated/responses/export_companies_analytics_response.rb +38 -0
  59. data/lib/thecompaniesapi/generated/responses/fetch_actions_response.rb +38 -0
  60. data/lib/thecompaniesapi/generated/responses/fetch_api_health_response.rb +42 -0
  61. data/lib/thecompaniesapi/generated/responses/fetch_companies_analytics_response.rb +38 -0
  62. data/lib/thecompaniesapi/generated/responses/fetch_companies_in_list_post_response.rb +42 -0
  63. data/lib/thecompaniesapi/generated/responses/fetch_companies_in_list_response.rb +42 -0
  64. data/lib/thecompaniesapi/generated/responses/fetch_company_by_email_response.rb +42 -0
  65. data/lib/thecompaniesapi/generated/responses/fetch_company_by_social_response.rb +25 -0
  66. data/lib/thecompaniesapi/generated/responses/fetch_company_context_response.rb +38 -0
  67. data/lib/thecompaniesapi/generated/responses/fetch_company_email_patterns_response.rb +25 -0
  68. data/lib/thecompaniesapi/generated/responses/fetch_company_in_list_response.rb +25 -0
  69. data/lib/thecompaniesapi/generated/responses/fetch_company_response.rb +25 -0
  70. data/lib/thecompaniesapi/generated/responses/fetch_lists_response.rb +38 -0
  71. data/lib/thecompaniesapi/generated/responses/fetch_open_api_response.rb +30 -0
  72. data/lib/thecompaniesapi/generated/responses/fetch_prompts_response.rb +38 -0
  73. data/lib/thecompaniesapi/generated/responses/fetch_team_response.rb +25 -0
  74. data/lib/thecompaniesapi/generated/responses/fetch_user_response.rb +25 -0
  75. data/lib/thecompaniesapi/generated/responses/product_prompt_response.rb +42 -0
  76. data/lib/thecompaniesapi/generated/responses/prompt_to_segmentation_response.rb +42 -0
  77. data/lib/thecompaniesapi/generated/responses/request_action_response.rb +34 -0
  78. data/lib/thecompaniesapi/generated/responses/retry_action_response.rb +34 -0
  79. data/lib/thecompaniesapi/generated/responses/search_cities_response.rb +38 -0
  80. data/lib/thecompaniesapi/generated/responses/search_companies_by_name_response.rb +38 -0
  81. data/lib/thecompaniesapi/generated/responses/search_companies_by_prompt_response.rb +38 -0
  82. data/lib/thecompaniesapi/generated/responses/search_companies_post_response.rb +42 -0
  83. data/lib/thecompaniesapi/generated/responses/search_companies_response.rb +42 -0
  84. data/lib/thecompaniesapi/generated/responses/search_continents_response.rb +38 -0
  85. data/lib/thecompaniesapi/generated/responses/search_counties_response.rb +38 -0
  86. data/lib/thecompaniesapi/generated/responses/search_countries_response.rb +38 -0
  87. data/lib/thecompaniesapi/generated/responses/search_industries_response.rb +38 -0
  88. data/lib/thecompaniesapi/generated/responses/search_industries_similar_response.rb +38 -0
  89. data/lib/thecompaniesapi/generated/responses/search_similar_companies_response.rb +38 -0
  90. data/lib/thecompaniesapi/generated/responses/search_states_response.rb +38 -0
  91. data/lib/thecompaniesapi/generated/responses/search_technologies_response.rb +38 -0
  92. data/lib/thecompaniesapi/generated/responses/toggle_companies_in_list_response.rb +25 -0
  93. data/lib/thecompaniesapi/generated/responses/update_list_response.rb +25 -0
  94. data/lib/thecompaniesapi/generated/responses/update_team_response.rb +25 -0
  95. data/lib/thecompaniesapi/http_client.rb +146 -0
  96. data/lib/thecompaniesapi/version.rb +3 -0
  97. data/lib/thecompaniesapi.rb +7 -0
  98. data/script/generate_client.rb +653 -0
  99. data/thecompaniesapi.gemspec +34 -0
  100. metadata +188 -0
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TheCompaniesAPI
4
+ module Generated
5
+ ##
6
+ # Operations map auto-generated from OpenAPI schema
7
+ module OperationsMap
8
+ OPERATIONS = {"fetchApiHealth"=>{"path"=>"/", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get the health status of the API.", "parameters"=>[], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get the health status of the API.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"healthy"=>{"type"=>"boolean"}, "nodeName"=>{"type"=>"string"}, "report"=>{"type"=>"object", "additionalProperties"=>{"type"=>"object", "properties"=>{"displayName"=>{"type"=>"string"}, "health"=>{"type"=>"object", "properties"=>{"healthy"=>{"type"=>"boolean"}}, "required"=>["healthy"]}}, "required"=>["displayName", "health"]}}}, "required"=>["healthy", "nodeName", "report"]}}}}}}, "fetchOpenApi"=>{"path"=>"/v2/openapi", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get the current OpenAPI specification.", "parameters"=>[], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get the current OpenAPI specification.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{}}}}}}}, "fetchActions"=>{"path"=>"/v2/actions", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get and filter your actions.", "parameters"=>[{"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"full", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"type"=>"number"}}, "required"=>false, "name"=>"ids", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"listId", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["active", "completed", "failed", "pending"]}, "required"=>false, "name"=>"status", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"teamId", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["jobs:request", "companies:added"]}, "required"=>false, "name"=>"type", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get and filter your actions.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"actions"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/Action"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["actions", "meta"]}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["invalidListId"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "requestAction"=>{"path"=>"/v2/actions", "method"=>"POST", "path_params"=>[], "summary"=>"", "description"=>"Request or estimate a new action.", "parameters"=>[], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"domains"=>{"type"=>"array", "items"=>{"type"=>"string"}, "maxItems"=>100000}, "estimate"=>{"type"=>"boolean"}, "fields"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"description"=>{"type"=>"string"}, "key"=>{"type"=>"string"}, "type"=>{"type"=>"string", "enum"=>["array|boolean", "array|number", "array|string", "boolean", "number", "string"]}, "values"=>{"type"=>"array", "items"=>{"type"=>"string"}}}, "required"=>["key", "type"]}}, "job"=>{"type"=>"string", "enum"=>["ask-domain", "ask-list", "enrich-companies", "enrich-list", "cleanup-list"]}, "listId"=>{"type"=>"number"}, "names"=>{"type"=>"array", "items"=>{"type"=>"string"}}, "promptId"=>{"type"=>"number"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "question"=>{"type"=>"string"}, "type"=>{"type"=>"string", "enum"=>["jobs:request", "companies:added"]}}, "required"=>["type"]}}}}, "responses"=>{"200"=>{"description"=>"Request or estimate a new action.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"actions"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/Action"}}}, "required"=>["actions"]}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["invalidListId", "typeMissing"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["invalidPromptId"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "retryAction"=>{"path"=>"/v2/actions/{actionId}/retry", "method"=>"POST", "path_params"=>["actionId"], "summary"=>"", "description"=>"Ask for a retry of failed action.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"actionId", "in"=>"path"}], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{}}}}}, "responses"=>{"200"=>{"description"=>"Ask for a retry of failed action.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"action"=>{"$ref"=>"#/components/schemas/Action"}}, "required"=>["action"]}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["invalidActionId", "actionTypeInvalid"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchCompanies"=>{"path"=>"/v2/companies", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search companies using a segmentation query.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"actionId", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"domainsToExclude", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"linkedinToExclude", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "required"=>false, "name"=>"query", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"type"=>"string", "enum"=>["about.name", "domain.domain"]}}, "required"=>false, "name"=>"searchFields", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"simplified", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>100}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"key"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "missing"=>{"type"=>"string", "enum"=>["_first", "_last"]}, "order"=>{"type"=>"string", "enum"=>["asc", "desc"]}}, "required"=>["key", "order"]}}, "required"=>false, "name"=>"sortFields", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search companies using a segmentation query.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"companies"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/CompanyV2"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}}, "required"=>["companies", "meta", "query"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchCompaniesPost"=>{"path"=>"/v2/companies", "method"=>"POST", "path_params"=>[], "summary"=>"", "description"=>"Search companies using a segmentation query.", "parameters"=>[], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"actionId"=>{"type"=>"number"}, "domainsToExclude"=>{"type"=>"string"}, "linkedinToExclude"=>{"type"=>"string"}, "page"=>{"type"=>"number"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "search"=>{"type"=>"string"}, "searchFields"=>{"type"=>"array", "items"=>{"type"=>"string", "enum"=>["about.name", "domain.domain"]}}, "simplified"=>{"type"=>"boolean"}, "size"=>{"type"=>"number", "minimum"=>1, "maximum"=>100}, "sortFields"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"key"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "missing"=>{"type"=>"string", "enum"=>["_first", "_last"]}, "order"=>{"type"=>"string", "enum"=>["asc", "desc"]}}, "required"=>["key", "order"]}}, "sortKey"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "sortOrder"=>{"type"=>"string", "enum"=>["asc", "desc"]}}}}}}, "responses"=>{"200"=>{"description"=>"Search companies using a segmentation query.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"companies"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/CompanyV2"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}}, "required"=>["companies", "meta", "query"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchCompany"=>{"path"=>"/v2/companies/{domain}", "method"=>"GET", "path_params"=>["domain"], "summary"=>"", "description"=>"Get a single company data by its domain.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>true, "name"=>"domain", "in"=>"path"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"refresh", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"simplified", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get a single company data by its domain.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/CompanyV2"}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "404"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["companyNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchCompaniesByName"=>{"path"=>"/v2/companies/by-name", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search companies by name.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"countries", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"exactWordsMatch", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"listsToExclude", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>true, "name"=>"name", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"type"=>"string", "enum"=>["about.name", "domain.domain"]}}, "required"=>false, "name"=>"searchFields", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"simplified", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>25}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"key"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "missing"=>{"type"=>"string", "enum"=>["_first", "_last"]}, "order"=>{"type"=>"string", "enum"=>["asc", "desc"]}}, "required"=>["key", "order"]}}, "required"=>false, "name"=>"sortFields", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search companies by name.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"companies"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/CompanyV2"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["companies", "meta"]}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["companyNameEmpty"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchCompaniesByPrompt"=>{"path"=>"/v2/companies/by-prompt", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search companies by prompt.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"listsToExclude", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>true, "name"=>"prompt", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>0, "maximum"=>2}, "required"=>false, "name"=>"similarity", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"simplified", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>50}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"key"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "missing"=>{"type"=>"string", "enum"=>["_first", "_last"]}, "order"=>{"type"=>"string", "enum"=>["asc", "desc"]}}, "required"=>["key", "order"]}}, "required"=>false, "name"=>"sortFields", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search companies by prompt.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"companies"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/CompanyV2"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["companies", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchSimilarCompanies"=>{"path"=>"/v2/companies/similar", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get similar companies from one or many domains.", "parameters"=>[{"schema"=>{"type"=>"array", "items"=>{"type"=>"string"}, "maxItems"=>100}, "required"=>true, "name"=>"domains", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"proximityExact", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["close", "far", "near"]}, "required"=>false, "name"=>"proximityTerm", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"simplified", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>100}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"key"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "missing"=>{"type"=>"string", "enum"=>["_first", "_last"]}, "order"=>{"type"=>"string", "enum"=>["asc", "desc"]}}, "required"=>["key", "order"]}}, "required"=>false, "name"=>"sortFields", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get similar companies from one or many domains.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"companies"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/CompanyV2"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["companies", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "countCompanies"=>{"path"=>"/v2/companies/count", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get the count of companies using a segmentation query.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"actionId", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "required"=>false, "name"=>"query", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"type"=>"string", "enum"=>["about.name", "domain.domain"]}}, "required"=>false, "name"=>"searchFields", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get the count of companies using a segmentation query.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"count"=>{"type"=>"number"}}, "required"=>["count"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "countCompaniesPost"=>{"path"=>"/v2/companies/count", "method"=>"POST", "path_params"=>[], "summary"=>"", "description"=>"Get the count of companies using a segmentation body.", "parameters"=>[], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"actionId"=>{"type"=>"number"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "search"=>{"type"=>"string"}, "searchFields"=>{"type"=>"array", "items"=>{"type"=>"string", "enum"=>["about.name", "domain.domain"]}}}}}}}, "responses"=>{"200"=>{"description"=>"Get the count of companies using a segmentation body.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"count"=>{"type"=>"number"}}, "required"=>["count"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchCompanyByEmail"=>{"path"=>"/v2/companies/by-email", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get a company data by email.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>true, "name"=>"email", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"refresh", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"simplified", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get a company data by email.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"company"=>{"$ref"=>"#/components/schemas/CompanyV2"}, "email"=>{"type"=>"object", "properties"=>{"address"=>{"type"=>"string"}, "domain"=>{"type"=>"string"}, "fullName"=>{"type"=>"object", "properties"=>{"first"=>{"type"=>"string"}, "last"=>{"type"=>"string"}, "middle"=>{"type"=>"string"}}}, "isDisposable"=>{"type"=>"boolean"}, "isFree"=>{"type"=>"boolean"}, "isSubaddress"=>{"type"=>"boolean"}, "isValid"=>{"type"=>"boolean"}, "isValidFormat"=>{"type"=>"boolean"}, "name"=>{"type"=>"string"}, "pattern"=>{"type"=>"string"}}, "required"=>["domain", "fullName", "isDisposable", "isFree", "isSubaddress", "isValid", "isValidFormat", "name"]}, "meta"=>{"type"=>"object", "properties"=>{"freeRequest"=>{"type"=>"boolean"}}}}, "required"=>["email"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchCompanyBySocial"=>{"path"=>"/v2/companies/by-social", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get a company data by social media.", "parameters"=>[{"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"angellist", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"dribbble", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"facebook", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"github", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"instagram", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"linkedin", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"pinterest", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"refresh", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"simplified", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"snapchat", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"souncloud", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"tiktok", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"twitter", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"wellfound", "in"=>"query"}, {"schema"=>{"type"=>"string", "format"=>"uri"}, "required"=>false, "name"=>"youtube", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get a company data by social media.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/CompanyV2"}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchCompanyEmailPatterns"=>{"path"=>"/v2/companies/{domain}/email-patterns", "method"=>"GET", "path_params"=>["domain"], "summary"=>"", "description"=>"Get email patterns for a company by its domain.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>true, "name"=>"domain", "in"=>"path"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"emailsCount", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>0, "maximum"=>100}, "required"=>false, "name"=>"precision", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get email patterns for a company by its domain.", "content"=>{"application/json"=>{"schema"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/EmailPattern"}}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "404"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["companyNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "askCompany"=>{"path"=>"/v2/companies/{domain}/ask", "method"=>"POST", "path_params"=>["domain"], "summary"=>"", "description"=>"Ask a question about a company by its domain.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>true, "name"=>"domain", "in"=>"path"}], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"explain"=>{"type"=>"boolean"}, "fields"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"description"=>{"type"=>"string"}, "key"=>{"type"=>"string"}, "type"=>{"type"=>"string", "enum"=>["array|boolean", "array|number", "array|string", "boolean", "number", "string"]}, "values"=>{"type"=>"array", "items"=>{"type"=>"string"}}}, "required"=>["key", "type"]}}, "listId"=>{"type"=>"number"}, "model"=>{"type"=>"string", "enum"=>["small", "large"]}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "question"=>{"type"=>"string"}}, "required"=>["question"]}}}}, "responses"=>{"200"=>{"description"=>"Ask a question about a company by its domain.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"meta"=>{"type"=>"object", "properties"=>{"cost"=>{"type"=>"number"}, "model"=>{"type"=>"string", "enum"=>["small", "large"]}, "score"=>{"type"=>"number"}}, "required"=>["cost", "model"]}, "prompt"=>{"allOf"=>[{"$ref"=>"#/components/schemas/Prompt"}, {"type"=>"object", "properties"=>{"response"=>{"type"=>"object", "properties"=>{"all"=>{"type"=>"boolean"}, "cost"=>{"type"=>"number"}, "count"=>{"type"=>"number"}, "domain"=>{"type"=>"string"}, "error"=>{"type"=>"string"}, "action"=>{"type"=>"object", "properties"=>{"cost"=>{"type"=>"number"}, "data"=>{"type"=>"object", "properties"=>{"answer"=>{"$ref"=>"#/components/schemas/LLMAnswer"}, "domains"=>{"type"=>"array", "items"=>{"type"=>"string"}}, "fields"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"description"=>{"type"=>"string"}, "key"=>{"type"=>"string"}, "type"=>{"type"=>"string", "enum"=>["array|boolean", "array|number", "array|string", "boolean", "number", "string"]}, "values"=>{"type"=>"array", "items"=>{"type"=>"string"}}}, "required"=>["key", "type"]}}, "job"=>{"type"=>"string", "enum"=>["ask-list"]}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "question"=>{"type"=>"string"}}, "required"=>["answer", "fields", "job", "question"]}, "listId"=>{"type"=>"number"}, "promptId"=>{"type"=>"number"}, "status"=>{"type"=>"string", "enum"=>["pending"]}, "type"=>{"type"=>"string", "enum"=>["jobs:request"]}}, "required"=>["promptId", "status", "type"]}, "answer"=>{"type"=>"object", "properties"=>{"explanation"=>{"type"=>"string"}, "output"=>{"type"=>"object", "additionalProperties"=>{}}, "score"=>{"type"=>"number"}}, "required"=>["output", "score"]}}}}, "required"=>["response"]}], "description"=>"A natural language request made to the platform resolving to a specific action or search segment."}}, "required"=>["meta", "prompt"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "404"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["companyNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchCompanyContext"=>{"path"=>"/v2/companies/{domain}/context", "method"=>"GET", "path_params"=>["domain"], "summary"=>"", "description"=>"Get the full context of a company by its domain.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>true, "name"=>"domain", "in"=>"path"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get the full context of a company by its domain.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"context"=>{"type"=>"object", "properties"=>{"company"=>{"$ref"=>"#/components/schemas/CompanyV2"}, "domain"=>{"type"=>"string"}, "ideated"=>{"$ref"=>"#/components/schemas/PageContentsIdeated"}, "sources"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/PageContentsPage"}}}, "required"=>["domain"]}, "meta"=>{"type"=>"object", "properties"=>{"cost"=>{"type"=>"number"}, "tokens"=>{"type"=>"number"}}, "required"=>["cost", "tokens"]}}, "required"=>["meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "404"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["companyNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchCompaniesAnalytics"=>{"path"=>"/v2/companies/analytics", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Fetch analytics data for search segmentations and lists.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"actionId", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.tld", "finances.revenue", "finances.stockExchange", "locations.headquarters.city.code", "locations.headquarters.continent.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "technologies.categories"]}, "required"=>true, "name"=>"attribute", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"listId", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "required"=>false, "name"=>"query", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>10000}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sort", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Fetch analytics data for search segmentations and lists.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"data"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"count"=>{"type"=>"number"}, "name"=>{"type"=>"string"}, "percentageOfAll"=>{"type"=>"number"}, "percentageOfTotal"=>{"type"=>"number"}}, "required"=>["count", "name", "percentageOfAll", "percentageOfTotal"]}}, "meta"=>{"type"=>"object", "properties"=>{"listId"=>{"type"=>"number"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "totalDatapoints"=>{"type"=>"number"}, "totalDocuments"=>{"type"=>"number"}, "totalValues"=>{"type"=>"number"}}, "required"=>["query", "totalDatapoints", "totalDocuments", "totalValues"]}}, "required"=>["data", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "exportCompaniesAnalytics"=>{"path"=>"/v2/companies/analytics/export", "method"=>"POST", "path_params"=>[], "summary"=>"", "description"=>"Export analytics data for search segmentations and lists.", "parameters"=>[], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"actionId"=>{"type"=>"number"}, "attributes"=>{"type"=>"array", "items"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.tld", "finances.revenue", "finances.stockExchange", "locations.headquarters.city.code", "locations.headquarters.continent.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "technologies.categories"]}}, "format"=>{"type"=>"string", "enum"=>["csv", "json", "txt", "xls", "xml"]}, "full"=>{"type"=>"boolean"}, "listId"=>{"type"=>"number"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "size"=>{"type"=>"number", "minimum"=>1, "maximum"=>10000}, "sort"=>{"type"=>"string", "enum"=>["asc", "desc"]}}}}}}, "responses"=>{"200"=>{"description"=>"Export analytics data for search segmentations and lists.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"data"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"count"=>{"type"=>"number"}, "name"=>{"type"=>"string"}, "percentageOfAll"=>{"type"=>"number"}, "percentageOfTotal"=>{"type"=>"number"}}, "required"=>["count", "name", "percentageOfAll", "percentageOfTotal"]}}, "meta"=>{"type"=>"object", "properties"=>{"listId"=>{"type"=>"number"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "totalDatapoints"=>{"type"=>"number"}, "totalDocuments"=>{"type"=>"number"}, "totalValues"=>{"type"=>"number"}}, "required"=>["query", "totalDatapoints", "totalDocuments", "totalValues"]}}, "required"=>["data", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchIndustries"=>{"path"=>"/v2/industries", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search industries.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>100}, "required"=>false, "name"=>"size", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search industries.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"industries"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"companiesCount"=>{"type"=>["number", "null"]}, "name"=>{"type"=>"string"}, "slug"=>{}}, "required"=>["companiesCount", "name"]}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["industries", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchIndustriesSimilar"=>{"path"=>"/v2/industries/similar", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get similar industries from one or many industries.", "parameters"=>[{"schema"=>{"type"=>"array", "items"=>{"type"=>"string"}}, "required"=>true, "name"=>"industries", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>100}, "required"=>false, "name"=>"size", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get similar industries from one or many industries.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"industries"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"companiesCount"=>{"type"=>["number", "null"]}, "name"=>{"type"=>"string"}, "slug"=>{}}, "required"=>["companiesCount", "name"]}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["industries", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchTechnologies"=>{"path"=>"/v2/technologies", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search technologies.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>100}, "required"=>false, "name"=>"size", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search technologies.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}, "technologies"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/Technology"}}}, "required"=>["meta", "technologies"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchCities"=>{"path"=>"/v2/locations/cities", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search cities.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"filters", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>20}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["counts.companies"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search cities.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"cities"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/NominatimCity"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["cities", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchCounties"=>{"path"=>"/v2/locations/counties", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search counties.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>20}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["counts.companies"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search counties.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"counties"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/NominatimCounty"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["counties", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchCountries"=>{"path"=>"/v2/locations/countries", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search countries.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"filters", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>20}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["counts.companies"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search countries.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"countries"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/NominatimCountry"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["countries", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchStates"=>{"path"=>"/v2/locations/states", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search states.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>20}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["counts.companies"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search states.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}, "states"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/NominatimState"}}}, "required"=>["meta", "states"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "searchContinents"=>{"path"=>"/v2/locations/continents", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Search continents.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>20}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["counts.companies"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Search continents.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"continents"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/NominatimContinent"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["continents", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "enrichJobTitles"=>{"path"=>"/v2/job-titles/enrich", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Enrich job titles.", "parameters"=>[{"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"name", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Enrich job titles.", "content"=>{"application/json"=>{"schema"=>{"anyOf"=>[{"$ref"=>"#/components/schemas/JobTitle"}, {"type"=>"object", "additionalProperties"=>{}}]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchLists"=>{"path"=>"/v2/lists", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get and filter your lists.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>500}, "required"=>false, "name"=>"size", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get and filter your lists.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"lists"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/List"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}}, "required"=>["lists", "meta"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "createList"=>{"path"=>"/v2/lists", "method"=>"POST", "path_params"=>[], "summary"=>"", "description"=>"Create a new list.", "parameters"=>[], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"dynamic"=>{"type"=>"boolean"}, "imported"=>{"type"=>"boolean"}, "mailFrequency"=>{"type"=>"string", "enum"=>["disabled", "daily", "weekly", "monthly"]}, "maxCompanies"=>{"type"=>"number"}, "name"=>{"type"=>"string", "maxLength"=>255}, "processInitialized"=>{"type"=>"boolean"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "similarDomains"=>{"type"=>"array", "items"=>{"type"=>"string"}}}, "required"=>["name"]}}}}, "responses"=>{"200"=>{"description"=>"Create a new list.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/List"}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "updateList"=>{"path"=>"/v2/lists/{listId}", "method"=>"PATCH", "path_params"=>["listId"], "summary"=>"", "description"=>"Update a list.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"listId", "in"=>"path"}], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"dynamic"=>{"type"=>"boolean"}, "lastSeen"=>{"type"=>"boolean"}, "mailFrequency"=>{"type"=>"string", "enum"=>["disabled", "daily", "weekly", "monthly"]}, "maxCompanies"=>{"type"=>["number", "null"], "minimum"=>0, "maximum"=>1000000}, "name"=>{"type"=>"string", "maxLength"=>255}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "resync"=>{"type"=>"boolean"}}}}}}, "responses"=>{"200"=>{"description"=>"Update a list.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/List"}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["listNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["userCurrentTeamIsNotInstanceOwner"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "deleteList"=>{"path"=>"/v2/lists/{listId}", "method"=>"DELETE", "path_params"=>["listId"], "summary"=>"", "description"=>"Delete a list.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"listId", "in"=>"path"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Delete a list.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/List"}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["listNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["userCurrentTeamIsNotInstanceOwner"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchCompaniesInList"=>{"path"=>"/v2/lists/{listId}/companies", "method"=>"GET", "path_params"=>["listId"], "summary"=>"", "description"=>"Get companies in a list with a segmentation query.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"listId", "in"=>"path"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"actionId", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "required"=>false, "name"=>"query", "in"=>"query"}, {"schema"=>{"type"=>"boolean"}, "required"=>false, "name"=>"simplified", "in"=>"query"}, {"schema"=>{"type"=>"number", "minimum"=>1, "maximum"=>100}, "required"=>false, "name"=>"size", "in"=>"query"}, {"schema"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"key"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "missing"=>{"type"=>"string", "enum"=>["_first", "_last"]}, "order"=>{"type"=>"string", "enum"=>["asc", "desc"]}}, "required"=>["key", "order"]}}, "required"=>false, "name"=>"sortFields", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "required"=>false, "name"=>"sortKey", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["asc", "desc"]}, "required"=>false, "name"=>"sortOrder", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get companies in a list with a segmentation query.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"companies"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/CompanyV2"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}}, "required"=>["companies", "meta"]}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["listNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["userCurrentTeamIsNotInstanceOwner"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchCompaniesInListPost"=>{"path"=>"/v2/lists/{listId}/companies", "method"=>"POST", "path_params"=>["listId"], "summary"=>"", "description"=>"Get companies in a list with a segmentation body.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"listId", "in"=>"path"}], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"actionId"=>{"type"=>"number"}, "page"=>{"type"=>"number"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "simplified"=>{"type"=>"boolean"}, "size"=>{"type"=>"number", "minimum"=>1, "maximum"=>100}, "sortFields"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"key"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "missing"=>{"type"=>"string", "enum"=>["_first", "_last"]}, "order"=>{"type"=>"string", "enum"=>["asc", "desc"]}}, "required"=>["key", "order"]}}, "sortKey"=>{"type"=>"string", "enum"=>["about.businessType", "about.industries", "about.industry", "about.name", "about.totalEmployees", "about.yearFounded", "analytics.monthlyVisitors", "apps", "codes.naics", "codes.sic", "contacts", "domain.domain", "domain.tld", "finances.revenue", "locations.headquarters.city.code", "locations.headquarters.country.code", "locations.headquarters.county.code", "locations.headquarters.state.code", "meta.score", "meta.syncedAt", "socials", "technologies.active", "urls"]}, "sortOrder"=>{"type"=>"string", "enum"=>["asc", "desc"]}}}}}}, "responses"=>{"200"=>{"description"=>"Get companies in a list with a segmentation body.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"companies"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/CompanyV2"}}, "meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}}, "required"=>["companies", "meta"]}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["listNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["userCurrentTeamIsNotInstanceOwner"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchCompanyInList"=>{"path"=>"/v2/lists/{listId}/companies/{domain}", "method"=>"GET", "path_params"=>["listId", "domain"], "summary"=>"", "description"=>"Get a company in a list.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"listId", "in"=>"path"}, {"schema"=>{"type"=>"string"}, "required"=>true, "name"=>"domain", "in"=>"path"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get a company in a list.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/CompanyV2"}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["listNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["userCurrentTeamIsNotInstanceOwner"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "404"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["companyNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "toggleCompaniesInList"=>{"path"=>"/v2/lists/{listId}/companies/toggle", "method"=>"PATCH", "path_params"=>["listId"], "summary"=>"", "description"=>"Toggle one or more companies in a list.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"listId", "in"=>"path"}], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"action"=>{"type"=>"string", "enum"=>["attach", "detach"]}, "companyIds"=>{"type"=>"array", "items"=>{"type"=>"number"}}, "domains"=>{"type"=>"array", "items"=>{"type"=>"string"}}, "refresh"=>{"type"=>"boolean"}}, "required"=>["action"]}}}}, "responses"=>{"200"=>{"description"=>"Toggle one or more companies in a list.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/List"}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["listNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["userCurrentTeamIsNotInstanceOwner"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "404"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["companyNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchTeam"=>{"path"=>"/v2/teams/{teamId}", "method"=>"GET", "path_params"=>["teamId"], "summary"=>"", "description"=>"Get team information.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"teamId", "in"=>"path"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get team information.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/Team"}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["userNotInTeam"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "404"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["teamNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "updateTeam"=>{"path"=>"/v2/teams/{teamId}", "method"=>"PATCH", "path_params"=>["teamId"], "summary"=>"", "description"=>"Update a team.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"teamId", "in"=>"path"}], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"country"=>{"type"=>"string", "maxLength"=>255}, "name"=>{"type"=>"string", "maxLength"=>255}, "websiteUrl"=>{"type"=>"string", "maxLength"=>255}}}}}}, "responses"=>{"200"=>{"description"=>"Update a team.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/Team"}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["userNotInTeam"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "404"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["teamNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchUser"=>{"path"=>"/v2/user", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Get current user information.", "parameters"=>[], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Get current user information.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/User"}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "fetchPrompts"=>{"path"=>"/v2/prompts", "method"=>"GET", "path_params"=>[], "summary"=>"", "description"=>"Fetch prompts history.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"companyId", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["analytics", "api", "companies", "company", "documentation", "enrichment", "landing", "list", "similarity"]}, "required"=>false, "name"=>"context", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["ask", "cleanup", "enrich", "product", "search", "similar"]}, "required"=>false, "name"=>"feature", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"limit", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"listId", "in"=>"query"}, {"schema"=>{"type"=>"string", "enum"=>["small", "large"]}, "required"=>false, "name"=>"model", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"page", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"prompt", "in"=>"query"}, {"schema"=>{"type"=>"string"}, "required"=>false, "name"=>"search", "in"=>"query"}, {"schema"=>{"type"=>"number"}, "required"=>false, "name"=>"size", "in"=>"query"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Fetch prompts history.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}, "prompts"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/Prompt"}}}, "required"=>["meta", "prompts"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "deletePrompt"=>{"path"=>"/v2/prompts/{promptId}", "method"=>"DELETE", "path_params"=>["promptId"], "summary"=>"", "description"=>"Delete a prompt.", "parameters"=>[{"schema"=>{"type"=>"number"}, "required"=>true, "name"=>"promptId", "in"=>"path"}], "request_body"=>nil, "responses"=>{"200"=>{"description"=>"Delete a prompt.", "content"=>{"application/json"=>{"schema"=>{"$ref"=>"#/components/schemas/Prompt"}}}}, "400"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["promptNotFound"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["userCurrentTeamIsNotInstanceOwner"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "productPrompt"=>{"path"=>"/v2/prompts/product", "method"=>"POST", "path_params"=>[], "summary"=>"", "description"=>"Query the product prompt.", "parameters"=>[], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"companyId"=>{"type"=>"number"}, "context"=>{"type"=>"string", "enum"=>["analytics", "api", "companies", "company", "documentation", "enrichment", "landing", "list", "similarity"]}, "feature"=>{"type"=>"string", "enum"=>["ask", "cleanup", "enrich", "product", "search", "similar"]}, "force"=>{"type"=>"boolean"}, "listId"=>{"type"=>"number"}, "model"=>{"type"=>"string", "enum"=>["small", "large"]}, "prompt"=>{"type"=>"string"}}, "required"=>["prompt"]}}}}, "responses"=>{"200"=>{"description"=>"Query the product prompt.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}, "prompt"=>{"$ref"=>"#/components/schemas/Prompt"}, "response"=>{"anyOf"=>[{"type"=>"object", "properties"=>{"all"=>{"type"=>"boolean"}, "cost"=>{"type"=>"number"}, "count"=>{"type"=>"number"}, "domain"=>{"type"=>"string"}, "error"=>{"type"=>"string"}, "action"=>{"type"=>"object", "properties"=>{"cost"=>{"type"=>"number"}, "data"=>{"type"=>"object", "properties"=>{"answer"=>{"$ref"=>"#/components/schemas/LLMAnswer"}, "domains"=>{"type"=>"array", "items"=>{"type"=>"string"}}, "fields"=>{"type"=>"array", "items"=>{"type"=>"object", "properties"=>{"description"=>{"type"=>"string"}, "key"=>{"type"=>"string"}, "type"=>{"type"=>"string", "enum"=>["array|boolean", "array|number", "array|string", "boolean", "number", "string"]}, "values"=>{"type"=>"array", "items"=>{"type"=>"string"}}}, "required"=>["key", "type"]}}, "job"=>{"type"=>"string", "enum"=>["ask-list"]}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}, "question"=>{"type"=>"string"}}, "required"=>["answer", "fields", "job", "question"]}, "listId"=>{"type"=>"number"}, "promptId"=>{"type"=>"number"}, "status"=>{"type"=>"string", "enum"=>["pending"]}, "type"=>{"type"=>"string", "enum"=>["jobs:request"]}}, "required"=>["promptId", "status", "type"]}, "answer"=>{"type"=>"object", "properties"=>{"explanation"=>{"type"=>"string"}, "output"=>{"type"=>"object", "additionalProperties"=>{}}, "score"=>{"type"=>"number"}}, "required"=>["output", "score"]}}}, {"type"=>"object", "properties"=>{"all"=>{"type"=>"boolean"}, "cost"=>{"type"=>"number"}, "count"=>{"type"=>"number"}, "domain"=>{"type"=>"string"}, "error"=>{"type"=>"string"}, "action"=>{"type"=>"object", "properties"=>{"cost"=>{"type"=>"number", "enum"=>[0]}, "data"=>{"type"=>"object", "properties"=>{"domains"=>{"type"=>"array", "items"=>{"type"=>"string"}}, "job"=>{"type"=>"string", "enum"=>["cleanup-list"]}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}}, "required"=>["job"]}, "listId"=>{"type"=>"number"}, "promptId"=>{"type"=>"number"}, "status"=>{"type"=>"string", "enum"=>["pending"]}, "type"=>{"type"=>"string", "enum"=>["jobs:request"]}}, "required"=>["promptId", "status", "type"]}}}, {"type"=>"object", "properties"=>{"all"=>{"type"=>"boolean"}, "cost"=>{"type"=>"number"}, "count"=>{"type"=>"number"}, "domain"=>{"type"=>"string"}, "error"=>{"type"=>"string"}, "action"=>{"type"=>"object", "properties"=>{"cost"=>{"type"=>"number"}, "data"=>{"type"=>"object", "properties"=>{"domains"=>{"type"=>"array", "items"=>{"type"=>"string"}}, "job"=>{"type"=>"string", "enum"=>["enrich-companies", "enrich-list"]}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}}, "required"=>["job"]}, "listId"=>{"type"=>"number"}, "promptId"=>{"type"=>"number"}, "status"=>{"type"=>"string", "enum"=>["pending"]}, "type"=>{"type"=>"string", "enum"=>["jobs:request"]}}, "required"=>["data", "promptId", "status", "type"]}}}, {"type"=>"object", "properties"=>{"all"=>{"type"=>"boolean"}, "cost"=>{"type"=>"number"}, "count"=>{"type"=>"number"}, "domain"=>{"type"=>"string"}, "error"=>{"type"=>"string"}, "domains"=>{"type"=>"array", "items"=>{"type"=>"string"}}, "listId"=>{"type"=>"number"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}}}, {"type"=>"object", "properties"=>{"all"=>{"type"=>"boolean"}, "cost"=>{"type"=>"number"}, "count"=>{"type"=>"number"}, "domain"=>{"type"=>"string"}, "error"=>{"type"=>"string"}, "domains"=>{"type"=>"array", "items"=>{"type"=>"string"}}}}]}}, "required"=>["meta", "prompt", "response"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}, "403"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["noCreditsRemaining"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}, "promptToSegmentation"=>{"path"=>"/v2/prompts/segmentation", "method"=>"POST", "path_params"=>[], "summary"=>"", "description"=>"Convert a query to a segmentation.", "parameters"=>[], "request_body"=>{"content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"context"=>{"type"=>"string", "enum"=>["analytics", "api", "companies", "company", "documentation", "enrichment", "landing", "list", "similarity"]}, "force"=>{"type"=>"boolean"}, "listId"=>{"type"=>"number"}, "model"=>{"type"=>"string", "enum"=>["small", "large"]}, "prompt"=>{"type"=>"string"}}, "required"=>["prompt"]}}}}, "responses"=>{"200"=>{"description"=>"Convert a query to a segmentation.", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"meta"=>{"$ref"=>"#/components/schemas/PaginationMeta"}, "prompt"=>{"$ref"=>"#/components/schemas/Prompt"}, "response"=>{"type"=>"object", "properties"=>{"all"=>{"type"=>"boolean"}, "cost"=>{"type"=>"number"}, "count"=>{"type"=>"number"}, "domain"=>{"type"=>"string"}, "error"=>{"type"=>"string"}, "domains"=>{"type"=>"array", "items"=>{"type"=>"string"}}, "listId"=>{"type"=>"number"}, "query"=>{"type"=>"array", "items"=>{"$ref"=>"#/components/schemas/SegmentationCondition"}}}}}, "required"=>["meta", "prompt", "response"]}}}}, "401"=>{"description"=>"The error message", "content"=>{"application/json"=>{"schema"=>{"type"=>"object", "properties"=>{"details"=>{}, "messages"=>{"type"=>"string", "enum"=>["tokenNotFound", "invalidApiSecret", "missingApiSecret", "userNotAuthenticated"]}, "status"=>{"type"=>"number", "minimum"=>400, "maximum"=>511}}, "required"=>["messages", "status"]}}}}}}}
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TheCompaniesAPI
4
+ module Generated
5
+ module Requests
6
+ ##
7
+ # AskCompanyRequest - API request class
8
+ #
9
+ class AskCompanyRequest
10
+ # @return [Boolean] explain
11
+ attr_accessor :explain
12
+
13
+ # @return [Array] fields
14
+ attr_accessor :fields
15
+
16
+ # @return [Float] listId
17
+ attr_accessor :list_id
18
+
19
+ # @return [String] model
20
+ attr_accessor :model
21
+
22
+ # @return [Array] query
23
+ attr_accessor :query
24
+
25
+ # @return [String] question
26
+ attr_accessor :question
27
+
28
+ ##
29
+ # Initialize a new AskCompanyRequest
30
+ #
31
+ # @param data [Hash] Request data
32
+ def initialize(data = {})
33
+ @explain = data['explain'] || data[:explain]
34
+ @fields = data['fields'] || data[:fields]
35
+ @list_id = data['listId'] || data[:list_id]
36
+ @model = data['model'] || data[:model]
37
+ @query = data['query'] || data[:query]
38
+ @question = data['question'] || data[:question]
39
+ end
40
+
41
+ ##
42
+ # Convert to hash for API request
43
+ #
44
+ # @return [Hash] Hash representation
45
+ def to_hash
46
+ {
47
+ 'explain' => @explain,
48
+ 'fields' => @fields,
49
+ 'listId' => @list_id,
50
+ 'model' => @model,
51
+ 'query' => @query,
52
+ 'question' => @question,
53
+ }.compact
54
+ end
55
+
56
+ alias_method :to_h, :to_hash
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TheCompaniesAPI
4
+ module Generated
5
+ module Requests
6
+ ##
7
+ # CountCompaniesPostRequest - API request class
8
+ #
9
+ class CountCompaniesPostRequest
10
+ # @return [Float] actionId
11
+ attr_accessor :action_id
12
+
13
+ # @return [Array] query
14
+ attr_accessor :query
15
+
16
+ # @return [String] search
17
+ attr_accessor :search
18
+
19
+ # @return [Array] searchFields
20
+ attr_accessor :search_fields
21
+
22
+ ##
23
+ # Initialize a new CountCompaniesPostRequest
24
+ #
25
+ # @param data [Hash] Request data
26
+ def initialize(data = {})
27
+ @action_id = data['actionId'] || data[:action_id]
28
+ @query = data['query'] || data[:query]
29
+ @search = data['search'] || data[:search]
30
+ @search_fields = data['searchFields'] || data[:search_fields]
31
+ end
32
+
33
+ ##
34
+ # Convert to hash for API request
35
+ #
36
+ # @return [Hash] Hash representation
37
+ def to_hash
38
+ {
39
+ 'actionId' => @action_id,
40
+ 'query' => @query,
41
+ 'search' => @search,
42
+ 'searchFields' => @search_fields,
43
+ }.compact
44
+ end
45
+
46
+ alias_method :to_h, :to_hash
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TheCompaniesAPI
4
+ module Generated
5
+ module Requests
6
+ ##
7
+ # CreateListRequest - API request class
8
+ #
9
+ class CreateListRequest
10
+ # @return [Boolean] dynamic
11
+ attr_accessor :dynamic
12
+
13
+ # @return [Boolean] imported
14
+ attr_accessor :imported
15
+
16
+ # @return [String] mailFrequency
17
+ attr_accessor :mail_frequency
18
+
19
+ # @return [Float] maxCompanies
20
+ attr_accessor :max_companies
21
+
22
+ # @return [String] name
23
+ attr_accessor :name
24
+
25
+ # @return [Boolean] processInitialized
26
+ attr_accessor :process_initialized
27
+
28
+ # @return [Array] query
29
+ attr_accessor :query
30
+
31
+ # @return [Array] similarDomains
32
+ attr_accessor :similar_domains
33
+
34
+ ##
35
+ # Initialize a new CreateListRequest
36
+ #
37
+ # @param data [Hash] Request data
38
+ def initialize(data = {})
39
+ @dynamic = data['dynamic'] || data[:dynamic]
40
+ @imported = data['imported'] || data[:imported]
41
+ @mail_frequency = data['mailFrequency'] || data[:mail_frequency]
42
+ @max_companies = data['maxCompanies'] || data[:max_companies]
43
+ @name = data['name'] || data[:name]
44
+ @process_initialized = data['processInitialized'] || data[:process_initialized]
45
+ @query = data['query'] || data[:query]
46
+ @similar_domains = data['similarDomains'] || data[:similar_domains]
47
+ end
48
+
49
+ ##
50
+ # Convert to hash for API request
51
+ #
52
+ # @return [Hash] Hash representation
53
+ def to_hash
54
+ {
55
+ 'dynamic' => @dynamic,
56
+ 'imported' => @imported,
57
+ 'mailFrequency' => @mail_frequency,
58
+ 'maxCompanies' => @max_companies,
59
+ 'name' => @name,
60
+ 'processInitialized' => @process_initialized,
61
+ 'query' => @query,
62
+ 'similarDomains' => @similar_domains,
63
+ }.compact
64
+ end
65
+
66
+ alias_method :to_h, :to_hash
67
+ end
68
+ end
69
+ end
70
+ end