structifyai 1.158.0__py3-none-any.whl → 1.176.1__py3-none-any.whl

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 (364) hide show
  1. structify/_base_client.py +140 -11
  2. structify/_client.py +1116 -253
  3. structify/_models.py +16 -1
  4. structify/_streaming.py +12 -10
  5. structify/_types.py +12 -2
  6. structify/_version.py +1 -1
  7. structify/lib/__init__.py +5 -0
  8. structify/lib/cost_confirmation.py +63 -0
  9. structify/pagination.py +63 -1
  10. structify/resources/__init__.py +57 -27
  11. structify/resources/admin/__init__.py +26 -40
  12. structify/resources/admin/admin.py +39 -71
  13. structify/resources/admin/chat_templates.py +382 -0
  14. structify/resources/admin/jobs.py +76 -3
  15. structify/resources/admin/sandbox.py +184 -0
  16. structify/resources/admin/teams.py +88 -0
  17. structify/resources/admin/users.py +28 -238
  18. structify/resources/chat.py +232 -0
  19. structify/resources/connector_catalog/__init__.py +33 -0
  20. structify/resources/connector_catalog/admin.py +1510 -0
  21. structify/resources/connector_catalog/connector_catalog.py +394 -0
  22. structify/resources/connectors/__init__.py +33 -0
  23. structify/resources/{connectors.py → connectors/connectors.py} +1155 -325
  24. structify/resources/connectors/type_snippets.py +169 -0
  25. structify/resources/datasets/datasets.py +0 -4
  26. structify/resources/documents.py +1 -123
  27. structify/resources/external.py +35 -2
  28. structify/resources/jobs.py +19 -336
  29. structify/resources/nango.py +234 -0
  30. structify/resources/polars.py +225 -103
  31. structify/resources/sandbox.py +13 -110
  32. structify/resources/scrape.py +0 -16
  33. structify/resources/sessions.py +241 -153
  34. structify/resources/slack.py +1 -151
  35. structify/resources/structure.py +120 -48
  36. structify/resources/teams.py +96 -0
  37. structify/resources/user/__init__.py +14 -0
  38. structify/resources/user/api_keys.py +380 -0
  39. structify/resources/user/user.py +209 -2
  40. structify/resources/whitelabel.py +294 -187
  41. structify/resources/whitelabel_service.py +222 -0
  42. structify/resources/{report.py → wiki.py} +237 -210
  43. structify/resources/workflow_schedule.py +4 -5
  44. structify/types/__init__.py +67 -36
  45. structify/types/add_member_response.py +35 -4
  46. structify/types/admin/__init__.py +13 -88
  47. structify/types/admin/admin_dataset_return.py +6 -0
  48. structify/types/admin/{user_get_credits_response.py → admin_delete_jobs_response.py} +3 -3
  49. structify/types/admin/admin_list_jobs_response.py +35 -1
  50. structify/types/admin/admin_sandbox.py +38 -0
  51. structify/types/admin/chat_template_create_params.py +21 -0
  52. structify/types/admin/{human_llm_start_next_job_params.py → chat_template_list_params.py} +3 -3
  53. structify/types/admin/{human_llm_get_jobs_response.py → chat_template_list_response.py} +3 -3
  54. structify/types/admin/chat_template_update_params.py +22 -0
  55. structify/types/admin/{user_add_credits_response.py → expire_grants_response.py} +5 -3
  56. structify/types/admin/impersonate_response.py +17 -0
  57. structify/types/admin/{next_action_get_batched_training_data_params.py → job_delete_params.py} +2 -2
  58. structify/types/admin/{user_get_credits_params.py → sandbox_list_params.py} +4 -4
  59. structify/types/admin/sandbox_type.py +7 -0
  60. structify/types/admin/{user_set_credits_params.py → team_expire_grants_params.py} +4 -4
  61. structify/types/admin/user.py +16 -0
  62. structify/types/admin/user_create_params.py +1 -0
  63. structify/types/admin/{training_dataset_delete_params.py → user_impersonate_params.py} +3 -3
  64. structify/types/admin/user_list_response.py +14 -4
  65. structify/types/admin_grant_access_response.py +2 -0
  66. structify/types/{slack_user_mapping_response.py → admin_issue_found_response.py} +3 -5
  67. structify/types/chat_add_git_commit_response.py +2 -0
  68. structify/types/{admin/human_llm_get_next_step_params.py → chat_admin_issue_found_params.py} +4 -4
  69. structify/types/chat_create_session_params.py +7 -0
  70. structify/types/chat_dependency.py +17 -0
  71. structify/types/chat_event.py +51 -239
  72. structify/types/chat_get_git_commit_response.py +2 -0
  73. structify/types/chat_get_session_timeline_response.py +31 -1
  74. structify/types/{job_get_steps_response.py → chat_list_templates_response.py} +3 -3
  75. structify/types/chat_prompt.py +2 -0
  76. structify/types/chat_revert_to_commit_response.py +2 -0
  77. structify/types/chat_session.py +14 -0
  78. structify/types/chat_session_with_messages.py +33 -1
  79. structify/types/chat_template.py +31 -0
  80. structify/types/chat_update_session_params.py +2 -0
  81. structify/types/code_generate_code_params.py +7 -0
  82. structify/types/connector.py +16 -25
  83. structify/types/connector_auth_method.py +29 -0
  84. structify/types/connector_auth_method_with_fields.py +15 -0
  85. structify/types/connector_catalog/__init__.py +32 -0
  86. structify/types/connector_catalog/admin_batch_create_credential_fields_params.py +14 -0
  87. structify/types/connector_catalog/admin_batch_create_credential_fields_response.py +10 -0
  88. structify/types/connector_catalog/admin_batch_create_scopes_params.py +14 -0
  89. structify/types/connector_catalog/admin_create_auth_method_params.py +22 -0
  90. structify/types/connector_catalog/admin_create_catalog_params.py +22 -0
  91. structify/types/connector_catalog/admin_create_credential_field_params.py +28 -0
  92. structify/types/connector_catalog/admin_create_scope_params.py +19 -0
  93. structify/types/connector_catalog/admin_list_nango_pending_response.py +10 -0
  94. structify/types/{admin/training_dataset_get_datum_info_params.py → connector_catalog/admin_list_scopes_params.py} +3 -3
  95. structify/types/connector_catalog/admin_update_auth_method_params.py +16 -0
  96. structify/types/connector_catalog/admin_update_catalog_params.py +20 -0
  97. structify/types/connector_catalog/admin_update_credential_field_params.py +26 -0
  98. structify/types/connector_catalog/admin_update_scope_params.py +18 -0
  99. structify/types/connector_catalog/admin_upload_logo_params.py +13 -0
  100. structify/types/connector_catalog/batch_create_scopes_response.py +12 -0
  101. structify/types/connector_catalog/connector_auth_method_scope.py +25 -0
  102. structify/types/connector_catalog/connector_catalog.py +26 -0
  103. structify/types/connector_catalog/create_credential_field_request_param.py +28 -0
  104. structify/types/connector_catalog/create_scope_request_param.py +19 -0
  105. structify/types/connector_catalog/list_scopes_response.py +12 -0
  106. structify/types/connector_catalog/pending_nango_integration.py +17 -0
  107. structify/types/{admin/user_set_credits_response.py → connector_catalog/upload_logo_response.py} +3 -3
  108. structify/types/connector_catalog_list_params.py +20 -0
  109. structify/types/connector_catalog_list_response.py +22 -0
  110. structify/types/connector_catalog_with_methods.py +15 -0
  111. structify/types/connector_category.py +7 -0
  112. structify/types/connector_create_params.py +11 -25
  113. structify/types/connector_credential_field.py +34 -0
  114. structify/types/connector_delete_schema_object_params.py +35 -0
  115. structify/types/connector_explore_params.py +19 -0
  116. structify/types/connector_explorer_chat.py +9 -84
  117. structify/types/connector_get_clarification_requests_response.py +36 -0
  118. structify/types/connector_get_response.py +2 -0
  119. structify/types/connector_list_with_snippets_params.py +12 -0
  120. structify/types/connector_list_with_snippets_response.py +10 -0
  121. structify/types/connector_search_tables_params.py +15 -0
  122. structify/types/connector_search_tables_response.py +160 -0
  123. structify/types/connector_store_response.py +21 -0
  124. structify/types/connector_summaries_params.py +15 -0
  125. structify/types/connector_summaries_response.py +10 -0
  126. structify/types/connector_summary.py +16 -0
  127. structify/types/connector_table_info.py +15 -0
  128. structify/types/connector_update_column_params.py +12 -0
  129. structify/types/connector_update_params.py +4 -25
  130. structify/types/connector_update_table_params.py +14 -0
  131. structify/types/connector_with_secrets.py +2 -0
  132. structify/types/connector_with_snippets.py +11 -0
  133. structify/types/connectors/__init__.py +6 -0
  134. structify/types/connectors/snippet.py +20 -0
  135. structify/types/connectors/type_snippet_upsert_params.py +12 -0
  136. structify/types/create_chat_session_response.py +2 -0
  137. structify/types/dataset_create_params.py +0 -2
  138. structify/types/dataset_descriptor.py +6 -0
  139. structify/types/dataset_descriptor_param.py +6 -0
  140. structify/types/dataset_get_response.py +6 -0
  141. structify/types/dataset_list_response.py +6 -0
  142. structify/types/dataset_view_table_response.py +3 -1
  143. structify/types/delete_chat_session_response.py +2 -0
  144. structify/types/delete_schema_object_request_param.py +35 -0
  145. structify/types/delete_schema_object_response.py +13 -0
  146. structify/types/edge_spec_param.py +13 -0
  147. structify/types/entity_get_source_entities_response.py +0 -2
  148. structify/types/entity_list_jobs_response.py +3 -3
  149. structify/types/entity_view_response.py +0 -2
  150. structify/types/estimate_cost_response.py +9 -0
  151. structify/types/exploration_phase_id.py +79 -0
  152. structify/types/finalize_dag_response.py +11 -0
  153. structify/types/get_chat_session_response.py +14 -6
  154. structify/types/get_dependencies_response.py +15 -0
  155. structify/types/get_job_events_response.py +20 -0
  156. structify/types/get_node_response.py +10 -0
  157. structify/types/job_cancel_response.py +3 -3
  158. structify/types/job_event_body.py +108 -1
  159. structify/types/job_get_source_entities_response.py +0 -2
  160. structify/types/job_list_params.py +1 -1
  161. structify/types/job_list_response.py +35 -1
  162. structify/types/knowledge_graph.py +6 -0
  163. structify/types/knowledge_graph_param.py +6 -0
  164. structify/types/list_chat_sessions_response.py +2 -0
  165. structify/types/list_collaborators_response.py +4 -0
  166. structify/types/list_tables_response.py +12 -0
  167. structify/types/llm_information_store.py +62 -28
  168. structify/types/merge_config.py +2 -0
  169. structify/types/merge_config_param.py +2 -0
  170. structify/types/message.py +2 -0
  171. structify/types/nango_create_session_params.py +21 -0
  172. structify/types/nango_create_session_response.py +15 -0
  173. structify/types/nango_list_integrations_response.py +28 -0
  174. structify/types/{session_create_node_params.py → node_spec_param.py} +4 -4
  175. structify/types/refresh_session_response.py +15 -0
  176. structify/types/sandbox.py +8 -2
  177. structify/types/sandbox_get_params.py +2 -1
  178. structify/types/scrape_list_params.py +1 -22
  179. structify/types/scrape_list_response.py +2 -0
  180. structify/types/scrape_scrape_params.py +1 -14
  181. structify/types/scrape_scrape_response.py +2 -0
  182. structify/types/select_team_response.py +3 -1
  183. structify/types/{connector_approve_version_params.py → session_confirm_node_params.py} +3 -3
  184. structify/types/session_finalize_dag_params.py +20 -0
  185. structify/types/session_get_events_response.py +2 -0
  186. structify/types/session_request_confirmation_params.py +13 -0
  187. structify/types/session_upload_node_output_data_params.py +3 -0
  188. structify/types/slack_event_payload_param.py +18 -2
  189. structify/types/slack_events_params.py +18 -2
  190. structify/types/source_list_response.py +0 -2
  191. structify/types/structure_enhance_property_params.py +2 -17
  192. structify/types/structure_enhance_relationship_params.py +2 -17
  193. structify/types/structure_find_relationship_params.py +2 -18
  194. structify/types/structure_pdf_params.py +22 -0
  195. structify/types/structure_pdf_response.py +11 -0
  196. structify/types/structure_run_async_params.py +10 -17
  197. structify/types/table.py +2 -0
  198. structify/types/table_param.py +2 -0
  199. structify/types/team.py +14 -0
  200. structify/types/{admin/training_dataset_remove_datum_params.py → team_create_link_code_params.py} +3 -3
  201. structify/types/team_update_params.py +10 -0
  202. structify/types/team_wiki_page.py +28 -0
  203. structify/types/teams_link_code_response.py +13 -0
  204. structify/types/token_response.py +6 -2
  205. structify/types/tool_invocation.py +468 -0
  206. structify/types/tool_result.py +99 -0
  207. structify/types/update_table_response.py +46 -0
  208. structify/types/usage_group_key.py +14 -1
  209. structify/types/user/__init__.py +4 -0
  210. structify/types/{admin/training_dataset_size_params.py → user/api_key_create_params.py} +5 -5
  211. structify/types/user/api_key_info.py +24 -0
  212. structify/types/user/create_api_key_response.py +12 -0
  213. structify/types/user/list_api_keys_response.py +12 -0
  214. structify/types/user_enrich_params.py +11 -0
  215. structify/types/user_info.py +22 -0
  216. structify/types/user_refresh_params.py +13 -0
  217. structify/types/user_transactions_response.py +5 -5
  218. structify/types/user_update_params.py +32 -12
  219. structify/types/user_usage_response.py +0 -2
  220. structify/types/wiki_connector_reference.py +63 -0
  221. structify/types/wiki_create_params.py +16 -0
  222. structify/types/{admin/training_dataset_list_response.py → wiki_list_response.py} +4 -2
  223. structify/types/wiki_page_with_references.py +12 -0
  224. structify/types/wiki_update_params.py +16 -0
  225. structify/types/workflow_dag.py +2 -0
  226. structify/types/workflow_node_execution_status.py +3 -1
  227. structify/types/workflow_schedule_info.py +2 -2
  228. structify/types/workflow_session_node.py +10 -0
  229. {structifyai-1.158.0.dist-info → structifyai-1.176.1.dist-info}/METADATA +67 -4
  230. structifyai-1.176.1.dist-info/RECORD +496 -0
  231. {structifyai-1.158.0.dist-info → structifyai-1.176.1.dist-info}/licenses/LICENSE +1 -1
  232. structify/resources/admin/human_llm.py +0 -819
  233. structify/resources/admin/next_action.py +0 -656
  234. structify/resources/admin/training_datasets.py +0 -2028
  235. structify/resources/external/__init__.py +0 -61
  236. structify/resources/external/external.py +0 -166
  237. structify/resources/external/news.py +0 -519
  238. structify/resources/external/people.py +0 -998
  239. structify/resources/external/search_api.py +0 -1525
  240. structify/types/active_version_data.py +0 -21
  241. structify/types/active_version_response.py +0 -13
  242. structify/types/admin/action_training_data_entry.py +0 -219
  243. structify/types/admin/action_training_data_response.py +0 -12
  244. structify/types/admin/datum_status.py +0 -19
  245. structify/types/admin/delete_action_training_data_response.py +0 -9
  246. structify/types/admin/human_llm_add_search_for_job_params.py +0 -13
  247. structify/types/admin/human_llm_add_to_dataset_params.py +0 -186
  248. structify/types/admin/human_llm_finish_job_params.py +0 -13
  249. structify/types/admin/human_llm_get_jobs_params.py +0 -12
  250. structify/types/admin/human_llm_get_next_step_response.py +0 -196
  251. structify/types/admin/human_llm_job.py +0 -73
  252. structify/types/admin/human_llm_prelabel_step_response.py +0 -184
  253. structify/types/admin/human_llm_update_step_params.py +0 -186
  254. structify/types/admin/labeling_stats.py +0 -24
  255. structify/types/admin/next_action_add_training_datum_params.py +0 -203
  256. structify/types/admin/next_action_delete_training_data_params.py +0 -12
  257. structify/types/admin/next_action_get_training_data_params.py +0 -25
  258. structify/types/admin/next_action_get_training_datum_params.py +0 -12
  259. structify/types/admin/next_action_label_training_datum_params.py +0 -90
  260. structify/types/admin/step_choices.py +0 -32
  261. structify/types/admin/training_dataset_add_datum_params.py +0 -13
  262. structify/types/admin/training_dataset_add_params.py +0 -12
  263. structify/types/admin/training_dataset_download_datum_params.py +0 -13
  264. structify/types/admin/training_dataset_get_labeller_stats_params.py +0 -23
  265. structify/types/admin/training_dataset_get_labeller_stats_response.py +0 -10
  266. structify/types/admin/training_dataset_get_next_for_labeling_params.py +0 -15
  267. structify/types/admin/training_dataset_get_next_for_qa_params.py +0 -18
  268. structify/types/admin/training_dataset_get_next_suspicious_params.py +0 -23
  269. structify/types/admin/training_dataset_label_datum_params.py +0 -188
  270. structify/types/admin/training_dataset_list_datums_params.py +0 -17
  271. structify/types/admin/training_dataset_list_datums_response.py +0 -33
  272. structify/types/admin/training_dataset_mark_datum_suspicious_params.py +0 -19
  273. structify/types/admin/training_dataset_size_response.py +0 -37
  274. structify/types/admin/training_dataset_suspicious_count_params.py +0 -23
  275. structify/types/admin/training_dataset_suspicious_count_response.py +0 -9
  276. structify/types/admin/training_dataset_switch_dataset_params.py +0 -13
  277. structify/types/admin/training_dataset_update_datum_status_params.py +0 -18
  278. structify/types/admin/training_dataset_upload_labeled_step_params.py +0 -15
  279. structify/types/admin/training_dataset_verify_datum_params.py +0 -17
  280. structify/types/admin/training_datum_response.py +0 -405
  281. structify/types/admin/user_add_credits_params.py +0 -18
  282. structify/types/chat_prompt_param.py +0 -255
  283. structify/types/connector_column_descriptor.py +0 -21
  284. structify/types/connector_relational_database_descriptor.py +0 -13
  285. structify/types/connector_table_descriptor.py +0 -22
  286. structify/types/document_structure_params.py +0 -21
  287. structify/types/document_structure_response.py +0 -8
  288. structify/types/execution_step.py +0 -198
  289. structify/types/external/__init__.py +0 -96
  290. structify/types/external/companies_search_response.py +0 -28
  291. structify/types/external/company_search_result.py +0 -69
  292. structify/types/external/enriched_organization.py +0 -69
  293. structify/types/external/everything_response.py +0 -19
  294. structify/types/external/google_maps_result.py +0 -38
  295. structify/types/external/google_search_response.py +0 -19
  296. structify/types/external/google_search_result.py +0 -21
  297. structify/types/external/job_posting.py +0 -54
  298. structify/types/external/job_postings_response.py +0 -19
  299. structify/types/external/location_coordinates.py +0 -13
  300. structify/types/external/location_response.py +0 -16
  301. structify/types/external/location_result.py +0 -24
  302. structify/types/external/news_article.py +0 -33
  303. structify/types/external/news_everything_params.py +0 -45
  304. structify/types/external/news_source.py +0 -15
  305. structify/types/external/news_source_detail.py +0 -28
  306. structify/types/external/news_sources_params.py +0 -19
  307. structify/types/external/news_top_headlines_params.py +0 -28
  308. structify/types/external/organization_detail.py +0 -87
  309. structify/types/external/people_match_response.py +0 -18
  310. structify/types/external/people_search_response.py +0 -28
  311. structify/types/external/person_companies_search_params.py +0 -63
  312. structify/types/external/person_match.py +0 -60
  313. structify/types/external/person_organization_job_postings_params.py +0 -16
  314. structify/types/external/person_organizations_enrich_params.py +0 -16
  315. structify/types/external/person_people_match_params.py +0 -49
  316. structify/types/external/person_people_search_params.py +0 -57
  317. structify/types/external/person_search_result.py +0 -48
  318. structify/types/external/search_api_google_flights_calendar_params.py +0 -28
  319. structify/types/external/search_api_google_flights_calendar_response.py +0 -8
  320. structify/types/external/search_api_google_flights_location_search_params.py +0 -16
  321. structify/types/external/search_api_google_flights_location_search_response.py +0 -8
  322. structify/types/external/search_api_google_flights_search_params.py +0 -43
  323. structify/types/external/search_api_google_flights_search_response.py +0 -8
  324. structify/types/external/search_api_google_maps_place_details_params.py +0 -16
  325. structify/types/external/search_api_google_maps_place_details_response.py +0 -8
  326. structify/types/external/search_api_google_maps_place_photos_params.py +0 -16
  327. structify/types/external/search_api_google_maps_place_photos_response.py +0 -8
  328. structify/types/external/search_api_google_maps_place_reviews_params.py +0 -19
  329. structify/types/external/search_api_google_maps_place_reviews_response.py +0 -8
  330. structify/types/external/search_api_google_maps_search_params.py +0 -22
  331. structify/types/external/search_api_google_maps_search_response.py +0 -10
  332. structify/types/external/search_api_google_scholar_author_search_params.py +0 -22
  333. structify/types/external/search_api_google_scholar_author_search_response.py +0 -8
  334. structify/types/external/search_api_google_scholar_citations_params.py +0 -22
  335. structify/types/external/search_api_google_scholar_citations_response.py +0 -8
  336. structify/types/external/search_api_google_scholar_search_params.py +0 -28
  337. structify/types/external/search_api_google_scholar_search_response.py +0 -8
  338. structify/types/external/search_api_google_search_params.py +0 -25
  339. structify/types/external/search_api_location_search_params.py +0 -22
  340. structify/types/external/sources_response.py +0 -16
  341. structify/types/external/top_headlines_response.py +0 -19
  342. structify/types/job_delete_response.py +0 -7
  343. structify/types/job_get_response.py +0 -62
  344. structify/types/job_get_step_graph_response.py +0 -233
  345. structify/types/job_get_step_response.py +0 -196
  346. structify/types/message_param.py +0 -35
  347. structify/types/pending_version_response.py +0 -21
  348. structify/types/report_missing_params.py +0 -18
  349. structify/types/report_missing_response.py +0 -7
  350. structify/types/report_relationship_params.py +0 -18
  351. structify/types/report_relationship_response.py +0 -7
  352. structify/types/report_step_params.py +0 -15
  353. structify/types/report_step_response.py +0 -7
  354. structify/types/report_wrong_params.py +0 -18
  355. structify/types/report_wrong_response.py +0 -7
  356. structify/types/sandbox_create_params.py +0 -20
  357. structify/types/session_create_edge_params.py +0 -13
  358. structify/types/slack_connection_status.py +0 -15
  359. structify/types/slack_user_mapping_params.py +0 -18
  360. structify/types/tool_metadata_param.py +0 -17
  361. structify/types/user_team.py +0 -35
  362. structify/types/workflow_schedule_get_response.py +0 -10
  363. structifyai-1.158.0.dist-info/RECORD +0 -530
  364. {structifyai-1.158.0.dist-info → structifyai-1.176.1.dist-info}/WHEEL +0 -0
@@ -1,13 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
-
5
- from .._models import BaseModel
6
- from .connector_table_descriptor import ConnectorTableDescriptor
7
-
8
- __all__ = ["ConnectorRelationalDatabaseDescriptor"]
9
-
10
-
11
- class ConnectorRelationalDatabaseDescriptor(BaseModel):
12
- tables: List[ConnectorTableDescriptor]
13
- """List of tables in the database"""
@@ -1,22 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List, Optional
4
-
5
- from .._models import BaseModel
6
- from .connector_column_descriptor import ConnectorColumnDescriptor
7
-
8
- __all__ = ["ConnectorTableDescriptor"]
9
-
10
-
11
- class ConnectorTableDescriptor(BaseModel):
12
- columns: List[ConnectorColumnDescriptor]
13
- """List of columns in this table"""
14
-
15
- name: str
16
- """Name of the table"""
17
-
18
- description: Optional[str] = None
19
- """Optional description of what this table contains"""
20
-
21
- notes: Optional[str] = None
22
- """Optional notes about the table (e.g., constraints, indexes, relationships)"""
@@ -1,21 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from typing_extensions import Required, TypedDict
6
-
7
- from .._types import FileTypes
8
- from .dataset_descriptor_param import DatasetDescriptorParam
9
-
10
- __all__ = ["DocumentStructureParams"]
11
-
12
-
13
- class DocumentStructureParams(TypedDict, total=False):
14
- dataset_descriptor: Required[DatasetDescriptorParam]
15
- """A dataset is where you put multiple referential schemas.
16
-
17
- A dataset is a complete namespace where all references between schemas are held
18
- within the dataset.
19
- """
20
-
21
- content: Required[FileTypes]
@@ -1,8 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Dict
4
- from typing_extensions import TypeAlias
5
-
6
- __all__ = ["DocumentStructureResponse"]
7
-
8
- DocumentStructureResponse: TypeAlias = Dict[str, object]
@@ -1,198 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List, Union, Optional
4
- from typing_extensions import Literal, TypeAlias
5
-
6
- from pydantic import Field as FieldInfo
7
-
8
- from .._models import BaseModel
9
- from .chat_prompt import ChatPrompt
10
- from .knowledge_graph import KnowledgeGraph
11
-
12
- __all__ = [
13
- "ExecutionStep",
14
- "Response",
15
- "ResponseToolCall",
16
- "ResponseToolCallInput",
17
- "ResponseToolCallInputSave",
18
- "ResponseToolCallInputScroll",
19
- "ResponseToolCallInputScrollScroll",
20
- "ResponseToolCallInputScrollToBottom",
21
- "ResponseToolCallInputScrollToBottomScrollToBottom",
22
- "ResponseToolCallInputExit",
23
- "ResponseToolCallInputExitExit",
24
- "ResponseToolCallInputClick",
25
- "ResponseToolCallInputClickClick",
26
- "ResponseToolCallInputHover",
27
- "ResponseToolCallInputHoverHover",
28
- "ResponseToolCallInputWait",
29
- "ResponseToolCallInputWaitWait",
30
- "ResponseToolCallInputError",
31
- "ResponseToolCallInputErrorError",
32
- "ResponseToolCallInputGoogle",
33
- "ResponseToolCallInputGoogleGoogle",
34
- "ResponseToolCallInputType",
35
- "ResponseToolCallInputTypeType",
36
- "ResponseToolCallResult",
37
- "ResponseToolCallResultToolQueued",
38
- "ResponseToolCallResultToolFail",
39
- "ResponseToolCallResultInputParseFail",
40
- "ResponseToolCallResultSuccess",
41
- ]
42
-
43
-
44
- class ResponseToolCallInputSave(BaseModel):
45
- save: KnowledgeGraph = FieldInfo(alias="Save")
46
- """
47
- Knowledge graph info structured to deserialize and display in the same format
48
- that the LLM outputs. Also the first representation of an LLM output in the
49
- pipeline from raw tool output to being merged into a DB
50
- """
51
-
52
-
53
- class ResponseToolCallInputScrollScroll(BaseModel):
54
- reason: str
55
- """Dummy argument"""
56
-
57
-
58
- class ResponseToolCallInputScroll(BaseModel):
59
- scroll: ResponseToolCallInputScrollScroll = FieldInfo(alias="Scroll")
60
- """For tools with no inputs."""
61
-
62
-
63
- class ResponseToolCallInputScrollToBottomScrollToBottom(BaseModel):
64
- reason: str
65
- """Dummy argument"""
66
-
67
-
68
- class ResponseToolCallInputScrollToBottom(BaseModel):
69
- scroll_to_bottom: ResponseToolCallInputScrollToBottomScrollToBottom = FieldInfo(alias="ScrollToBottom")
70
- """For tools with no inputs."""
71
-
72
-
73
- class ResponseToolCallInputExitExit(BaseModel):
74
- reason: str
75
- """Dummy argument"""
76
-
77
-
78
- class ResponseToolCallInputExit(BaseModel):
79
- exit: ResponseToolCallInputExitExit = FieldInfo(alias="Exit")
80
- """For tools with no inputs."""
81
-
82
-
83
- class ResponseToolCallInputClickClick(BaseModel):
84
- flag: int
85
-
86
-
87
- class ResponseToolCallInputClick(BaseModel):
88
- click: ResponseToolCallInputClickClick = FieldInfo(alias="Click")
89
-
90
-
91
- class ResponseToolCallInputHoverHover(BaseModel):
92
- flag: int
93
-
94
-
95
- class ResponseToolCallInputHover(BaseModel):
96
- hover: ResponseToolCallInputHoverHover = FieldInfo(alias="Hover")
97
-
98
-
99
- class ResponseToolCallInputWaitWait(BaseModel):
100
- seconds: Optional[int] = None
101
- """Time in seconds to wait"""
102
-
103
-
104
- class ResponseToolCallInputWait(BaseModel):
105
- wait: ResponseToolCallInputWaitWait = FieldInfo(alias="Wait")
106
-
107
-
108
- class ResponseToolCallInputErrorError(BaseModel):
109
- error: str
110
-
111
-
112
- class ResponseToolCallInputError(BaseModel):
113
- error: ResponseToolCallInputErrorError = FieldInfo(alias="Error")
114
-
115
-
116
- class ResponseToolCallInputGoogleGoogle(BaseModel):
117
- query: str
118
-
119
-
120
- class ResponseToolCallInputGoogle(BaseModel):
121
- google: ResponseToolCallInputGoogleGoogle = FieldInfo(alias="Google")
122
-
123
-
124
- class ResponseToolCallInputTypeType(BaseModel):
125
- flag: int
126
-
127
- input: str
128
-
129
-
130
- class ResponseToolCallInputType(BaseModel):
131
- type: ResponseToolCallInputTypeType = FieldInfo(alias="Type")
132
-
133
-
134
- ResponseToolCallInput: TypeAlias = Union[
135
- ResponseToolCallInputSave,
136
- ResponseToolCallInputScroll,
137
- ResponseToolCallInputScrollToBottom,
138
- ResponseToolCallInputExit,
139
- ResponseToolCallInputClick,
140
- ResponseToolCallInputHover,
141
- ResponseToolCallInputWait,
142
- ResponseToolCallInputError,
143
- ResponseToolCallInputGoogle,
144
- ResponseToolCallInputType,
145
- ]
146
-
147
-
148
- class ResponseToolCallResultToolQueued(BaseModel):
149
- tool_queued: str = FieldInfo(alias="ToolQueued")
150
-
151
-
152
- class ResponseToolCallResultToolFail(BaseModel):
153
- tool_fail: str = FieldInfo(alias="ToolFail")
154
-
155
-
156
- class ResponseToolCallResultInputParseFail(BaseModel):
157
- input_parse_fail: str = FieldInfo(alias="InputParseFail")
158
-
159
-
160
- class ResponseToolCallResultSuccess(BaseModel):
161
- success: str = FieldInfo(alias="Success")
162
-
163
-
164
- ResponseToolCallResult: TypeAlias = Union[
165
- ResponseToolCallResultToolQueued,
166
- ResponseToolCallResultToolFail,
167
- ResponseToolCallResultInputParseFail,
168
- ResponseToolCallResultSuccess,
169
- None,
170
- ]
171
-
172
-
173
- class ResponseToolCall(BaseModel):
174
- input: ResponseToolCallInput
175
-
176
- name: Literal["Exit", "Save", "Wait", "Type", "Scroll", "ScrollToBottom", "Click", "Hover", "Error", "Google"]
177
-
178
- result: Optional[ResponseToolCallResult] = None
179
-
180
-
181
- class Response(BaseModel):
182
- llm: str
183
-
184
- text: str
185
-
186
- tool_calls: List[ResponseToolCall]
187
-
188
- reasoning: Optional[str] = None
189
-
190
- thinking: Optional[str] = None
191
-
192
-
193
- class ExecutionStep(BaseModel):
194
- id: str
195
-
196
- prompt: ChatPrompt
197
-
198
- response: Response
@@ -1,96 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from .job_posting import JobPosting as JobPosting
6
- from .news_source import NewsSource as NewsSource
7
- from .news_article import NewsArticle as NewsArticle
8
- from .person_match import PersonMatch as PersonMatch
9
- from .location_result import LocationResult as LocationResult
10
- from .sources_response import SourcesResponse as SourcesResponse
11
- from .location_response import LocationResponse as LocationResponse
12
- from .google_maps_result import GoogleMapsResult as GoogleMapsResult
13
- from .news_source_detail import NewsSourceDetail as NewsSourceDetail
14
- from .everything_response import EverythingResponse as EverythingResponse
15
- from .news_sources_params import NewsSourcesParams as NewsSourcesParams
16
- from .organization_detail import OrganizationDetail as OrganizationDetail
17
- from .google_search_result import GoogleSearchResult as GoogleSearchResult
18
- from .location_coordinates import LocationCoordinates as LocationCoordinates
19
- from .person_search_result import PersonSearchResult as PersonSearchResult
20
- from .company_search_result import CompanySearchResult as CompanySearchResult
21
- from .enriched_organization import EnrichedOrganization as EnrichedOrganization
22
- from .job_postings_response import JobPostingsResponse as JobPostingsResponse
23
- from .people_match_response import PeopleMatchResponse as PeopleMatchResponse
24
- from .google_search_response import GoogleSearchResponse as GoogleSearchResponse
25
- from .news_everything_params import NewsEverythingParams as NewsEverythingParams
26
- from .people_search_response import PeopleSearchResponse as PeopleSearchResponse
27
- from .top_headlines_response import TopHeadlinesResponse as TopHeadlinesResponse
28
- from .companies_search_response import CompaniesSearchResponse as CompaniesSearchResponse
29
- from .news_top_headlines_params import NewsTopHeadlinesParams as NewsTopHeadlinesParams
30
- from .person_people_match_params import PersonPeopleMatchParams as PersonPeopleMatchParams
31
- from .person_people_search_params import PersonPeopleSearchParams as PersonPeopleSearchParams
32
- from .person_companies_search_params import PersonCompaniesSearchParams as PersonCompaniesSearchParams
33
- from .search_api_google_search_params import SearchAPIGoogleSearchParams as SearchAPIGoogleSearchParams
34
- from .search_api_location_search_params import SearchAPILocationSearchParams as SearchAPILocationSearchParams
35
- from .person_organizations_enrich_params import PersonOrganizationsEnrichParams as PersonOrganizationsEnrichParams
36
- from .search_api_google_maps_search_params import SearchAPIGoogleMapsSearchParams as SearchAPIGoogleMapsSearchParams
37
- from .search_api_google_maps_search_response import (
38
- SearchAPIGoogleMapsSearchResponse as SearchAPIGoogleMapsSearchResponse,
39
- )
40
- from .person_organization_job_postings_params import (
41
- PersonOrganizationJobPostingsParams as PersonOrganizationJobPostingsParams,
42
- )
43
- from .search_api_google_flights_search_params import (
44
- SearchAPIGoogleFlightsSearchParams as SearchAPIGoogleFlightsSearchParams,
45
- )
46
- from .search_api_google_scholar_search_params import (
47
- SearchAPIGoogleScholarSearchParams as SearchAPIGoogleScholarSearchParams,
48
- )
49
- from .search_api_google_flights_calendar_params import (
50
- SearchAPIGoogleFlightsCalendarParams as SearchAPIGoogleFlightsCalendarParams,
51
- )
52
- from .search_api_google_flights_search_response import (
53
- SearchAPIGoogleFlightsSearchResponse as SearchAPIGoogleFlightsSearchResponse,
54
- )
55
- from .search_api_google_scholar_search_response import (
56
- SearchAPIGoogleScholarSearchResponse as SearchAPIGoogleScholarSearchResponse,
57
- )
58
- from .search_api_google_maps_place_photos_params import (
59
- SearchAPIGoogleMapsPlacePhotosParams as SearchAPIGoogleMapsPlacePhotosParams,
60
- )
61
- from .search_api_google_scholar_citations_params import (
62
- SearchAPIGoogleScholarCitationsParams as SearchAPIGoogleScholarCitationsParams,
63
- )
64
- from .search_api_google_flights_calendar_response import (
65
- SearchAPIGoogleFlightsCalendarResponse as SearchAPIGoogleFlightsCalendarResponse,
66
- )
67
- from .search_api_google_maps_place_details_params import (
68
- SearchAPIGoogleMapsPlaceDetailsParams as SearchAPIGoogleMapsPlaceDetailsParams,
69
- )
70
- from .search_api_google_maps_place_reviews_params import (
71
- SearchAPIGoogleMapsPlaceReviewsParams as SearchAPIGoogleMapsPlaceReviewsParams,
72
- )
73
- from .search_api_google_maps_place_photos_response import (
74
- SearchAPIGoogleMapsPlacePhotosResponse as SearchAPIGoogleMapsPlacePhotosResponse,
75
- )
76
- from .search_api_google_scholar_citations_response import (
77
- SearchAPIGoogleScholarCitationsResponse as SearchAPIGoogleScholarCitationsResponse,
78
- )
79
- from .search_api_google_maps_place_details_response import (
80
- SearchAPIGoogleMapsPlaceDetailsResponse as SearchAPIGoogleMapsPlaceDetailsResponse,
81
- )
82
- from .search_api_google_maps_place_reviews_response import (
83
- SearchAPIGoogleMapsPlaceReviewsResponse as SearchAPIGoogleMapsPlaceReviewsResponse,
84
- )
85
- from .search_api_google_scholar_author_search_params import (
86
- SearchAPIGoogleScholarAuthorSearchParams as SearchAPIGoogleScholarAuthorSearchParams,
87
- )
88
- from .search_api_google_flights_location_search_params import (
89
- SearchAPIGoogleFlightsLocationSearchParams as SearchAPIGoogleFlightsLocationSearchParams,
90
- )
91
- from .search_api_google_scholar_author_search_response import (
92
- SearchAPIGoogleScholarAuthorSearchResponse as SearchAPIGoogleScholarAuthorSearchResponse,
93
- )
94
- from .search_api_google_flights_location_search_response import (
95
- SearchAPIGoogleFlightsLocationSearchResponse as SearchAPIGoogleFlightsLocationSearchResponse,
96
- )
@@ -1,28 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Dict, List, Optional
4
-
5
- from ..._models import BaseModel
6
- from .company_search_result import CompanySearchResult
7
-
8
- __all__ = ["CompaniesSearchResponse"]
9
-
10
-
11
- class CompaniesSearchResponse(BaseModel):
12
- organizations: List[CompanySearchResult]
13
- """Array of organization results"""
14
-
15
- pagination: object
16
- """Pagination information"""
17
-
18
- breadcrumbs: Optional[List[Dict[str, object]]] = None
19
- """Breadcrumbs"""
20
-
21
- disable_eu_prospecting: Optional[bool] = None
22
- """Disable eu prospecting"""
23
-
24
- partial_results_limit: Optional[int] = None
25
- """Partial results limit"""
26
-
27
- partial_results_only: Optional[bool] = None
28
- """Partial results only"""
@@ -1,69 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Dict, List, Optional
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["CompanySearchResult"]
8
-
9
-
10
- class CompanySearchResult(BaseModel):
11
- id: str
12
- """Organization ID"""
13
-
14
- name: str
15
- """Organization name"""
16
-
17
- annual_revenue: Optional[str] = None
18
- """Annual revenue"""
19
-
20
- blog_url: Optional[str] = None
21
- """Blog URL"""
22
-
23
- description: Optional[str] = None
24
- """Description"""
25
-
26
- facebook_url: Optional[str] = None
27
- """Facebook URL"""
28
-
29
- founded_year: Optional[int] = None
30
- """Founded year"""
31
-
32
- headquarters: Optional[object] = None
33
- """Headquarters location"""
34
-
35
- industry: Optional[str] = None
36
- """Industry"""
37
-
38
- linkedin_url: Optional[str] = None
39
- """LinkedIn URL"""
40
-
41
- logo_url: Optional[str] = None
42
- """Logo URL"""
43
-
44
- naics_codes: Optional[List[str]] = None
45
- """NAICS codes"""
46
-
47
- num_employees: Optional[int] = None
48
- """Number of employees"""
49
-
50
- num_employees_range: Optional[str] = None
51
- """Number of employees range"""
52
-
53
- phone: Optional[str] = None
54
- """Phone number"""
55
-
56
- publicly_traded_symbol: Optional[str] = None
57
- """Publicly traded symbol"""
58
-
59
- sic_codes: Optional[List[str]] = None
60
- """SIC codes"""
61
-
62
- technologies: Optional[List[Dict[str, object]]] = None
63
- """Technologies used"""
64
-
65
- twitter_url: Optional[str] = None
66
- """Twitter URL"""
67
-
68
- website_url: Optional[str] = None
69
- """Website URL"""
@@ -1,69 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Dict, List, Optional
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["EnrichedOrganization"]
8
-
9
-
10
- class EnrichedOrganization(BaseModel):
11
- id: str
12
- """Unique organization ID in Apollo"""
13
-
14
- name: str
15
- """Organization name"""
16
-
17
- annual_revenue: Optional[str] = None
18
- """Annual revenue"""
19
-
20
- blog_url: Optional[str] = None
21
- """Blog URL"""
22
-
23
- description: Optional[str] = None
24
- """Description"""
25
-
26
- facebook_url: Optional[str] = None
27
- """Facebook URL"""
28
-
29
- founded_year: Optional[int] = None
30
- """Founded year"""
31
-
32
- headquarters: Optional[object] = None
33
- """Headquarters"""
34
-
35
- industry: Optional[str] = None
36
- """Industry"""
37
-
38
- linkedin_url: Optional[str] = None
39
- """LinkedIn URL"""
40
-
41
- logo_url: Optional[str] = None
42
- """Logo URL"""
43
-
44
- naics_codes: Optional[List[str]] = None
45
- """NAICS codes"""
46
-
47
- num_employees: Optional[int] = None
48
- """Employee count"""
49
-
50
- num_employees_range: Optional[str] = None
51
- """Company size"""
52
-
53
- phone: Optional[str] = None
54
- """Phone number"""
55
-
56
- publicly_traded_symbol: Optional[str] = None
57
- """Publicly traded status"""
58
-
59
- sic_codes: Optional[List[str]] = None
60
- """SIC codes"""
61
-
62
- technologies: Optional[List[Dict[str, object]]] = None
63
- """Technologies used"""
64
-
65
- twitter_url: Optional[str] = None
66
- """Twitter URL"""
67
-
68
- website_url: Optional[str] = None
69
- """Website domain"""
@@ -1,19 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
-
5
- from ..._models import BaseModel
6
- from .news_article import NewsArticle
7
-
8
- __all__ = ["EverythingResponse"]
9
-
10
-
11
- class EverythingResponse(BaseModel):
12
- articles: List[NewsArticle]
13
- """The results of the request"""
14
-
15
- status: str
16
- """The status of the request"""
17
-
18
- total_results: int
19
- """The total number of results available for your request"""
@@ -1,38 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from pydantic import Field as FieldInfo
6
-
7
- from ..._models import BaseModel
8
-
9
- __all__ = ["GoogleMapsResult"]
10
-
11
-
12
- class GoogleMapsResult(BaseModel):
13
- title: str
14
- """Place name/title"""
15
-
16
- address: Optional[str] = None
17
- """Address"""
18
-
19
- coordinates: Optional[object] = None
20
- """Coordinates"""
21
-
22
- phone: Optional[str] = None
23
- """Phone number"""
24
-
25
- place_id: Optional[str] = None
26
- """Place ID"""
27
-
28
- rating: Optional[float] = None
29
- """Rating (1-5 stars)"""
30
-
31
- reviews: Optional[int] = None
32
- """Number of reviews"""
33
-
34
- type: Optional[str] = FieldInfo(alias="type_", default=None)
35
- """Place type (restaurant, hotel, etc.)"""
36
-
37
- website: Optional[str] = None
38
- """Website URL"""
@@ -1,19 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Dict, List, Optional
4
-
5
- from ..._models import BaseModel
6
- from .google_search_result import GoogleSearchResult
7
-
8
- __all__ = ["GoogleSearchResponse"]
9
-
10
-
11
- class GoogleSearchResponse(BaseModel):
12
- organic_results: List[GoogleSearchResult]
13
- """Array of search results"""
14
-
15
- related_searches: Optional[List[Dict[str, object]]] = None
16
- """Related searches"""
17
-
18
- search_information: Optional[object] = None
19
- """Total number of results found"""
@@ -1,21 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["GoogleSearchResult"]
8
-
9
-
10
- class GoogleSearchResult(BaseModel):
11
- link: str
12
- """Search result URL"""
13
-
14
- snippet: str
15
- """Search result snippet/description"""
16
-
17
- title: str
18
- """Search result title"""
19
-
20
- display_link: Optional[str] = None
21
- """Display URL"""
@@ -1,54 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["JobPosting"]
8
-
9
-
10
- class JobPosting(BaseModel):
11
- id: str
12
- """Job posting ID"""
13
-
14
- title: str
15
- """Job title"""
16
-
17
- application_url: Optional[str] = None
18
- """Application URL"""
19
-
20
- department: Optional[str] = None
21
- """Department"""
22
-
23
- description: Optional[str] = None
24
- """Job description"""
25
-
26
- education_required: Optional[str] = None
27
- """Education required"""
28
-
29
- employment_type: Optional[str] = None
30
- """Employment type (full-time, part-time, contract, etc.)"""
31
-
32
- experience_required: Optional[str] = None
33
- """Experience required"""
34
-
35
- job_function: Optional[str] = None
36
- """Job function"""
37
-
38
- location: Optional[str] = None
39
- """Location"""
40
-
41
- posted_date: Optional[str] = None
42
- """Posted date"""
43
-
44
- remote_allowed: Optional[bool] = None
45
- """Remote work allowed"""
46
-
47
- salary_range: Optional[str] = None
48
- """Salary range"""
49
-
50
- seniority_level: Optional[str] = None
51
- """Seniority level"""
52
-
53
- url: Optional[str] = None
54
- """Job posting URL"""