Skip to content

Commit c0b973c

Browse files
github-actions[bot]speakeasybotjordan-homan
authored
chore: 🐝 Update SDK - Generate 0.42.4 (#316)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/2db2473a26de998125d5cf53ccfaf5e1> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/1b820d9c7c5a64aedcba48f48cbf1b8b> # SDK update ## Versioning Version Bump Type: [patch] - 🤖 (automated) ## Python SDK Changes: * `unstructured_client.workflows.get_workflow()`: `response.reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.sources.create_source()`: * `request.create_source_connector.config` **Changed** **Breaking** ⚠️ * `response.config.[snowflake_source_connector_config].schema` **Changed** * `unstructured_client.general.partition()`: * `request.partition_parameters` **Changed** **Breaking** ⚠️ * `unstructured_client.destinations.create_destination()`: * `request.create_destination_connector.config` **Changed** **Breaking** ⚠️ * `response.config` **Changed** * `unstructured_client.workflows.update_workflow()`: * `request.update_workflow.template_id` **Added** * `response.reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.workflows.list_workflows()`: `response.[].reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.destinations.update_destination()`: * `request.update_destination_connector.config` **Changed** **Breaking** ⚠️ * `response.config` **Changed** * `unstructured_client.workflows.create_workflow()`: * `request.create_workflow.template_id` **Added** * `response.reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.sources.update_source()`: * `request.update_source_connector.config` **Changed** **Breaking** ⚠️ * `response.config.[snowflake_source_connector_config].schema` **Changed** * `unstructured_client.destinations.list_destinations()`: * `request.destination_type` **Changed** * `response.[].config` **Changed** * `unstructured_client.sources.list_sources()`: `response.[].config.[snowflake_source_connector_config].schema` **Changed** * `unstructured_client.sources.get_source()`: `response.config.[snowflake_source_connector_config].schema` **Changed** * `unstructured_client.templates.get_template()`: **Added** * `unstructured_client.jobs.list_jobs()`: `response.[].output_node_files.[]` **Changed** * `unstructured_client.jobs.download_job_output()`: * `request.node_id` **Changed** * `unstructured_client.jobs.create_job()`: **Added** * `unstructured_client.jobs.get_job()`: `response.output_node_files.[]` **Changed** * `unstructured_client.workflows.run_workflow()`: `response.output_node_files.[]` **Changed** * `unstructured_client.destinations.get_destination()`: `response.config` **Changed** * `unstructured_client.templates.list_templates()`: **Added** <details> <summary>OpenAPI Change Summary</summary> ``` ├─┬Info │ └──[🔀] version (18:16) ├─┬Paths │ ├──[➕] path (1356:5) │ ├──[➕] path (1410:5) │ ├─┬/api/v1/jobs/{job_id}/download │ │ └─┬GET │ │ └─┬Parameters │ │ ├──[🔀] description (1181:28) │ │ ├──[🔀] required (1182:25)❌ │ │ └─┬Schema │ │ ├──[➖] type (1:15945)❌ │ │ ├──[➖] format (1:15985)❌ │ │ ├──[🔀] description (1194:30) │ │ ├──[➕] anyOf (1185:17) │ │ └──[➕] anyOf (1189:17) │ └─┬/api/v1/jobs/ │ └──[➕] post (971:15) └─┬Components ├──[➕] schemas (2511:26) ├──[➕] schemas (2271:42) ├──[➕] schemas (2328:47) ├──[➕] schemas (6970:23) ├──[➕] schemas (6936:27) ├──[➕] schemas (6894:25) ├─┬partition_parameters │ ├──[➕] properties (7981:11) │ ├─┬table_ocr_agent │ │ ├──[➕] examples (7808:15) │ │ ├──[➕] examples (7809:15) │ │ ├──[➕] examples (7810:15) │ │ ├──[➕] enum (7814:15) │ │ ├──[➕] enum (7815:15) │ │ ├──[➕] enum (7816:15) │ │ ├──[➕] enum (7817:15) │ │ ├──[➕] enum (7818:15) │ │ ├──[➕] enum (7819:15) │ │ ├──[➕] type (7806:21)❌ │ │ ├──[🔀] title (7812:22) │ │ ├──[🔀] description (7821:28) │ │ ├──[🔀] default (7822:24)❌ │ │ ├──[➖] anyOf (1:99430)❌ │ │ ├──[➖] anyOf (1:99467)❌ │ │ └─┬Extensions │ │ └──[➕] x-speakeasy-unknown-values (7823:43) │ ├─┬hi_res_model_name │ │ ├──[🔀] title (7726:22) │ │ └──[🔀] description (7727:28) │ ├─┬multipage_sections │ │ ├──[➖] type (1:101553)❌ │ │ ├──[🔀] title (7934:22) │ │ ├──[🔀] description (7935:28) │ │ ├──[➖] default (1:101718)❌ │ │ ├──[➕] anyOf (7926:15) │ │ └──[➕] anyOf (7930:15) │ ├─┬split_pdf_page_range │ │ ├──[➖] items (1:105310)❌ │ │ ├──[🔀] type (8047:21)❌ │ │ ├──[🔀] title (8048:22) │ │ ├──[➖] maxItems (1:105358)❌ │ │ ├──[➖] minItems (1:105343)❌ │ │ ├──[🔀] description (8049:28) │ │ ├──[➕] default (8050:24)❌ │ │ └──[➖] example (1:105372) │ ├─┬gz_uncompressed_content_type │ │ ├──[➕] examples (7667:15) │ │ ├──[➕] type (7665:21)❌ │ │ ├──[➖] title (1:95995) │ │ ├──[➕] format (7672:23)❌ │ │ ├──[🔀] description (7673:28) │ │ ├──[➖] anyOf (1:95930)❌ │ │ └──[➖] anyOf (1:95967)❌ │ ├─┬new_after_n_chars │ │ ├──[➕] type (7938:21)❌ │ │ ├──[🔀] title (7939:22) │ │ ├──[🔀] description (7940:28) │ │ ├──[➕] default (7941:24)❌ │ │ ├──[➖] anyOf (1:101757)❌ │ │ └──[➖] anyOf (1:101795)❌ │ ├─┬split_pdf_cache_tmp_data │ │ ├──[🔀] title (8073:22) │ │ └──[🔀] description (8074:28) │ ├─┬vlm_model │ │ ├──[➖] enum (1:99128)❌ │ │ ├──[➖] enum (1:99173)❌ │ │ ├──[➖] enum (1:99257)❌ │ │ ├──[➖] enum (1:99295)❌ │ │ ├──[➖] enum (1:98875)❌ │ │ ├──[➖] enum (1:98905)❌ │ │ ├──[➖] enum (1:98988)❌ │ │ ├──[➖] enum (1:99036)❌ │ │ ├──[➖] enum (1:99084)❌ │ │ ├──[➖] enum (1:99219)❌ │ │ ├──[➖] enum (1:98845)❌ │ │ ├──[➖] enum (1:98915)❌ │ │ ├──[➖] enum (1:98933)❌ │ │ └──[➖] enum (1:98960)❌ │ ├─┬pdfminer_char_margin │ │ ├──[➕] type (7778:21)❌ │ │ ├──[🔀] title (7779:22) │ │ ├──[🔀] description (7780:28) │ │ ├──[➕] default (7781:24)❌ │ │ ├──[➖] anyOf (1:103676)❌ │ │ └──[➖] anyOf (1:103713)❌ │ ├─┬vlm_model_provider │ │ ├──[➕] examples (7829:15) │ │ └──[➕] examples (7830:15) │ ├─┬split_pdf_concurrency_level │ │ ├──[🔀] type (8087:21)❌ │ │ ├──[🔀] title (8085:22) │ │ ├──[🔀] description (8086:28) │ │ └──[🔀] default (8088:24)❌ │ ├─┬strategy │ │ ├──[➖] examples (1:98182) │ │ ├──[➖] examples (1:98190) │ │ ├──[➖] examples (1:98200) │ │ ├──[➖] enum (1:98246)❌ │ │ ├──[➖] enum (1:98256)❌ │ │ ├──[➖] enum (1:98264)❌ │ │ ├──[➖] enum (1:98276)❌ │ │ ├──[➖] enum (1:98287)❌ │ │ ├──[➖] enum (1:98238)❌ │ │ ├──[➖] type (1:98159)❌ │ │ ├──[🔀] title (7802:22) │ │ ├──[🔀] description (7803:28) │ │ ├──[➖] default (1:98420)❌ │ │ ├──[➕] anyOf (7794:15) │ │ ├──[➕] anyOf (7798:15) │ │ └─┬Extensions │ │ └──[➖] x-speakeasy-unknown-values (1:98460)❌ │ ├─┬overlap_all │ │ ├──[🔀] type (7957:21)❌ │ │ ├──[🔀] title (7958:22) │ │ ├──[🔀] description (7959:28) │ │ └──[🔀] default (7960:24)❌ │ ├─┬pdfminer_line_overlap │ │ ├──[🔀] title (8029:22) │ │ └──[🔀] description (8030:28) │ ├─┬pdfminer_line_margin │ │ ├──[🔀] title (8016:22) │ │ └──[🔀] description (8017:28) │ ├─┬ocr_languages │ │ ├──[➖] items (1:96802)❌ │ │ ├──[➖] type (1:96784)❌ │ │ ├──[🔀] title (7953:22) │ │ ├──[🔀] description (7954:28) │ │ ├──[➖] default (1:96963)❌ │ │ ├──[➕] anyOf (7945:15) │ │ └──[➕] anyOf (7949:15) │ ├─┬max_characters │ │ ├──[➕] items (7750:22)❌ │ │ ├──[➕] type (7749:21)❌ │ │ ├──[🔀] title (7753:22) │ │ ├──[🔀] description (7754:28) │ │ ├──[➕] default (7755:24)❌ │ │ ├──[➖] anyOf (1:101309)❌ │ │ └──[➖] anyOf (1:101347)❌ │ ├─┬include_page_breaks │ │ ├──[➖] type (1:96332)❌ │ │ ├──[🔀] title (7921:22) │ │ ├──[🔀] description (7922:28) │ │ ├──[➖] default (1:96493)❌ │ │ ├──[➕] anyOf (7913:15) │ │ └──[➕] anyOf (7917:15) │ ├─┬split_pdf_page │ │ ├──[🔀] type (8069:21)❌ │ │ ├──[🔀] title (8067:22) │ │ ├──[🔀] description (8068:28) │ │ └──[🔀] default (8070:24)❌ │ ├─┬overlap │ │ ├──[➕] enum (7770:15) │ │ ├──[➕] enum (7771:15) │ │ ├──[🔀] type (7767:21)❌ │ │ ├──[🔀] title (7768:22) │ │ ├──[🔀] description (7773:28) │ │ ├──[🔀] default (7774:24)❌ │ │ └─┬Extensions │ │ └──[➕] x-speakeasy-unknown-values (7775:43) │ ├─┬languages │ │ ├──[➖] items (1:96541)❌ │ │ ├──[🔀] type (7988:21)❌ │ │ ├──[🔀] title (7989:22) │ │ ├──[🔀] description (7990:28) │ │ └──[🔀] default (7991:24)❌ │ ├─┬skip_infer_table_types │ │ ├──[➖] items (1:97662)❌ │ │ ├──[➖] type (1:97644)❌ │ │ ├──[🔀] title (7978:22) │ │ ├──[🔀] description (7979:28) │ │ ├──[➖] default (1:97822)❌ │ │ ├──[➕] anyOf (7970:15) │ │ └──[➕] anyOf (7974:15) │ ├─┬include_slide_notes │ │ ├──[🔀] title (7744:22) │ │ ├──[🔀] description (7745:28) │ │ └──[🔀] default (7746:24)❌ │ ├─┬pdfminer_word_margin │ │ ├──[🔀] title (8003:22) │ │ ├──[🔀] description (8004:28) │ │ └──[➖] default (1:104628)❌ │ ├─┬split_pdf_allow_failed │ │ ├──[➕] items (7785:22)❌ │ │ ├──[🔀] type (7784:21)❌ │ │ ├──[🔀] title (7788:22) │ │ ├──[🔀] description (7789:28) │ │ └──[🔀] default (7790:24)❌ │ ├─┬include_orig_elements │ │ ├──[🔀] title (7739:22) │ │ ├──[🔀] description (7740:28) │ │ └─┬ANYOF │ │ └──[🔀] type (7732:25)❌ │ ├─┬extract_image_block_types │ │ ├──[➖] items (1:95673)❌ │ │ ├──[➖] type (1:95655)❌ │ │ ├──[🔀] title (7704:22) │ │ ├──[🔀] description (7705:28) │ │ ├──[➖] default (1:95882)❌ │ │ ├──[➕] anyOf (7696:15) │ │ └──[➕] anyOf (7700:15) │ ├─┬pdf_infer_table_structure │ │ ├──[🔀] title (7964:22) │ │ ├──[🔀] description (7965:28) │ │ └──[🔀] default (7966:24)❌ │ ├─┬similarity_threshold │ │ ├──[🔀] title (8042:22) │ │ ├──[🔀] description (8043:28) │ │ └──[➕] default (8044:24)❌ │ ├─┬split_pdf_cache_tmp_data_dir │ │ ├──[🔀] type (8081:21)❌ │ │ ├──[🔀] title (8079:22) │ │ ├──[🔀] description (8080:28) │ │ └──[🔀] default (8082:24)❌ │ ├─┬unique_element_ids │ │ ├──[➖] type (1:99696)❌ │ │ ├──[🔀] title (7864:22) │ │ ├──[🔀] description (7865:28) │ │ ├──[🔀] default (7866:24)❌ │ │ ├──[➕] anyOf (7856:15) │ │ └──[➕] anyOf (7860:15) │ ├─┬output_format │ │ ├──[➖] enum (1:97039)❌ │ │ ├──[➖] enum (1:97059)❌ │ │ ├──[➕] items (7759:22)❌ │ │ ├──[🔀] type (7758:21)❌ │ │ ├──[🔀] title (7762:22) │ │ ├──[🔀] description (7763:28) │ │ ├──[🔀] default (7764:24)❌ │ │ └─┬Extensions │ │ └──[➖] x-speakeasy-unknown-values (1:97259)❌ │ ├─┬files │ │ ├──[➖] examples (1:94708) │ │ ├──[➕] items (7709:22)❌ │ │ ├──[🔀] type (7708:21)❌ │ │ ├──[➕] title (7712:22) │ │ ├──[➖] format (1:94909)❌ │ │ ├──[🔀] description (7713:28) │ │ └──[➕] default (7714:24)❌ │ ├─┬starting_page_number │ │ ├──[➕] items (8056:22)❌ │ │ ├──[➕] type (8053:21)❌ │ │ ├──[🔀] title (8054:22) │ │ ├──[➕] maxItems (8060:25)❌ │ │ ├──[➕] minItems (8059:25)❌ │ │ ├──[🔀] description (8055:28) │ │ ├──[➕] example (8061:24) │ │ ├──[➖] anyOf (1:97862)❌ │ │ └──[➖] anyOf (1:97900)❌ │ ├─┬encoding │ │ ├──[➕] type (7982:21)❌ │ │ ├──[🔀] title (7983:22) │ │ ├──[🔀] description (7984:28) │ │ ├──[➕] default (7985:24)❌ │ │ ├──[➖] anyOf (1:95455)❌ │ │ └──[➖] anyOf (1:95492)❌ │ └─┬xml_keep_tags │ ├──[➕] examples (7828:15) │ ├──[➕] examples (7829:15) │ ├──[➕] examples (7830:15) │ ├──[➕] enum (7839:15) │ ├──[➕] enum (7840:15) │ ├──[➕] enum (7834:15) │ ├──[➕] enum (7835:15) │ ├──[➕] enum (7836:15) │ ├──[➕] enum (7837:15) │ ├──[➕] enum (7838:15) │ ├──[🔀] type (7826:21)❌ │ ├──[🔀] title (7832:22) │ ├──[🔀] description (7842:28) │ ├──[➖] default (1:100205)❌ │ └─┬Extensions │ └──[➕] x-speakeasy-unknown-values (7843:43) ├─┬DestinationConnectorInformation │ └─┬config │ ├──[➕] anyOf (3778:15) │ ├─┬ANYOF │ │ └──[🔀] $ref (2272:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (2129:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (2225:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (2795:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3553:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3367:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3639:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3890:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3968:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (4770:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (4970:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5105:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5152:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5248:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5539:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5596:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5863:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5806:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5998:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (6446:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (7318:17)❌ │ └─┬ANYOF │ └──[🔀] $ref (4171:17)❌ ├─┬AstraDBConnectorConfigInput │ ├──[➕] properties (2198:11) │ ├─┬token │ │ ├──[➖] type (1:27451)❌ │ │ ├──[🔀] title (2189:22) │ │ ├──[➕] default (2190:24)❌ │ │ ├──[➕] anyOf (2182:15) │ │ └──[➕] anyOf (2185:15) │ ├─┬collection_name │ │ ├──[🔀] type (2199:21)❌ │ │ ├──[🔀] title (2200:22) │ │ ├──[➖] pattern (1:27159)❌ │ │ └──[➕] default (2201:24)❌ │ ├─┬keyspace │ │ ├──[➕] type (2212:21)❌ │ │ ├──[🔀] title (2213:22) │ │ ├──[🔀] default (2214:24)❌ │ │ ├──[➖] anyOf (1:27193)❌ │ │ └──[➖] anyOf (1:27213)❌ │ └─┬flatten_metadata │ ├──[🔀] type (2176:21)❌ │ ├──[🔀] title (2177:22) │ ├──[➕] pattern (2178:24)❌ │ └──[➖] default (1:27560)❌ ├─┬WorkflowInformation │ └─┬reprocess_all │ ├──[➕] type (7451:21)❌ │ ├──[➕] default (7453:24)❌ │ ├──[➖] anyOf (1:92249)❌ │ └──[➖] anyOf (1:92270)❌ ├─┬DatabricksVolumesConnectorConfigInput │ └─┬schema │ └──[➕] default (3609:24)❌ ├─┬UpdateWorkflow │ ├──[➕] properties (7235:11) │ ├─┬workflow_type │ │ ├──[➕] title (7233:22) │ │ └─┬ANYOF │ │ └──[🔀] $ref (7223:15)❌ │ └─┬workflow_nodes │ ├──[🔀] title (7244:22) │ └─┬ANYOF │ ├──[➖] items (1:89762)❌ │ └──[🔀] type (7238:25)❌ ├─┬SnowflakeDestinationConnectorConfig │ └──[➕] required (6514:11)❌ ├─┬SnowflakeSourceConnectorConfig │ └──[➕] required (6663:11)❌ ├─┬NodeFileMetadata │ ├──[➕] required (5243:11)❌ │ ├──[➕] required (5244:11)❌ │ ├──[➕] properties (5234:11) │ └──[➕] properties (5230:11) ├─┬SnowflakeDestinationConnectorConfigInput │ └──[➕] required (6586:11)❌ ├─┬CreateDestinationConnector │ └─┬config │ ├──[➕] anyOf (3102:15) │ ├─┬ANYOF │ │ └──[🔀] $ref (2329:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (2173:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (2248:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (2850:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3596:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3460:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3667:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3916:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3986:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (4819:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5037:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5128:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5185:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5286:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5567:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5639:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5929:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5834:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (6060:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (6518:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (7347:17)❌ │ └─┬ANYOF │ └──[🔀] $ref (4239:17)❌ ├─┬SnowflakeSourceConnectorConfigInput │ └──[➕] required (6742:11)❌ ├─┬CreateWorkflow │ ├──[➕] properties (3252:11) │ ├─┬workflow_type │ │ └──[🔀] $ref (3238:29)❌ │ └─┬workflow_nodes │ ├──[🔀] title (3261:22) │ └─┬ANYOF │ ├──[➖] items (1:39512)❌ │ └──[🔀] type (3255:25)❌ ├─┬UpdateDestinationConnector │ └─┬config │ ├──[➕] anyOf (7082:15) │ ├─┬ANYOF │ │ └──[🔀] $ref (2329:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (2173:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (2248:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (2850:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3596:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3460:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3667:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3916:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (3986:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (4819:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5037:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5128:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5185:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5286:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5567:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5639:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5929:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (5834:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (6060:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (6518:17)❌ │ ├─┬ANYOF │ │ └──[🔀] $ref (7347:17)❌ │ └─┬ANYOF │ └──[🔀] $ref (4239:17)❌ ├─┬DatabricksVDTDestinationConnectorConfigInput │ └─┬schema │ └──[➕] default (3526:24)❌ ├─┬AstraDBConnectorConfig │ ├──[➕] properties (2150:11) │ ├─┬token │ │ ├──[➖] type (1:26879)❌ │ │ ├──[🔀] title (2144:22) │ │ ├──[➕] anyOf (2137:15) │ │ └──[➕] anyOf (2140:15) │ ├─┬collection_name │ │ ├──[🔀] type (2151:21)❌ │ │ ├──[🔀] title (2152:22) │ │ └──[➕] default (2153:24)❌ │ └─┬keyspace │ ├──[➕] type (2132:21)❌ │ ├──[🔀] title (2133:22) │ ├──[➖] anyOf (1:26681)❌ │ └──[➖] anyOf (1:26701)❌ ├─┬WorkflowJobType │ └──[➕] enum (7474:11) └─┬DestinationConnectorType └──[➕] enum (3816:11) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | | paths | 10 | 3 | | components | 356 | 207 | </details> ## PYTHON CHANGELOG No relevant generator changes Based on [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy) 1.601.0 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: Jordan Homan <jordan@unstructured.io>
1 parent 16a78c9 commit c0b973c

File tree

78 files changed

+2978
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2978
-188
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env.local
12
**/__pycache__/
23
**/.speakeasy/temp/
34
**/.speakeasy/logs/

.speakeasy/gen.lock

Lines changed: 864 additions & 10 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.601.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e
6-
sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93
5+
sourceRevisionDigest: sha256:b52b0c33c6a50addb404027e76807677297f288b2b1f22eaf9713b528ca64c9c
6+
sourceBlobDigest: sha256:15c781166845c591afeb3eec92a8ed77f867be120294a01fd34b48538d285b9a
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1754698272
10-
- 1.1.45
9+
- speakeasy-sdk-regen-1765576473
10+
- 1.2.21
1111
targets:
1212
unstructured-python:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e
16-
sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93
15+
sourceRevisionDigest: sha256:b52b0c33c6a50addb404027e76807677297f288b2b1f22eaf9713b528ca64c9c
16+
sourceBlobDigest: sha256:15c781166845c591afeb3eec92a8ed77f867be120294a01fd34b48538d285b9a
1717
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:a5e11972bfb15e43b7fcb2647b3a7b3e129e9303294f9110670280971b10780a
18+
codeSamplesRevisionDigest: sha256:43c867f2d8d6bf35ac4afe0dc12c6601d71bbf62de31b3d4c0b93c8d4778f6a9
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ with UnstructuredClient() as uc_client:
221221

222222

223223
**Inherit from [`UnstructuredClientError`](./src/unstructured_client/models/errors/unstructuredclienterror.py)**:
224-
* [`ServerError`](./src/unstructured_client/models/errors/servererror.py): Server Error. Status code `5XX`. Applicable to 1 of 27 methods.*
224+
* [`ServerError`](./src/unstructured_client/models/errors/servererror.py): Server Error. Status code `5XX`. Applicable to 1 of 30 methods.*
225225
* [`ResponseValidationError`](./src/unstructured_client/models/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
226226

227227
</details>
@@ -443,8 +443,10 @@ from unstructured_client import UnstructuredClient
443443

444444
with UnstructuredClient() as uc_client:
445445

446-
res = uc_client.workflows.run_workflow(request={
447-
"workflow_id": "e7054f23-ce92-4bf1-a1d7-7cf9cb14d013",
446+
res = uc_client.jobs.create_job(request={
447+
"body_create_job": {
448+
"request_data": "<value>",
449+
},
448450
})
449451

450452
assert res.job_information is not None

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,3 +1130,14 @@ Based on:
11301130
- [python v0.42.3] .
11311131
### Releases
11321132
- [PyPI v0.42.4] https://pypi.org/project/unstructured-client/0.42.4 - .
1133+
1134+
1135+
## 2025-12-12 21:54:13
1136+
### Changes
1137+
Based on:
1138+
- OpenAPI Doc
1139+
- Speakeasy CLI 1.601.0 (2.680.0) https://github.com/speakeasy-api/speakeasy
1140+
### Generated
1141+
- [python v0.42.4] .
1142+
### Releases
1143+
- [PyPI v0.42.4] https://pypi.org/project/unstructured-client/0.42.4 - .

_test_contract/platform_api/test_jobs.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,60 @@ def test_cancel_job(httpx_mock, platform_client: UnstructuredClient, platform_ap
165165
request = requests[0]
166166
assert request.method == "POST"
167167
assert request.url == url
168+
169+
170+
def test_create_job(httpx_mock, platform_client: UnstructuredClient, platform_api_url: str):
171+
import json
172+
173+
url = f"{platform_api_url}/api/v1/jobs/"
174+
175+
httpx_mock.add_response(
176+
method="POST",
177+
status_code=200,
178+
headers={"Content-Type": "application/json"},
179+
json={
180+
"created_at": "2025-06-22T11:37:21.648Z",
181+
"id": "fcdc4994-eea5-425c-91fa-e03f2bd8030d",
182+
"status": "SCHEDULED",
183+
"runtime": None,
184+
"workflow_id": "16b80fee-64dc-472d-8f26-1d7729b6423d",
185+
"workflow_name": "job-fcdc4994",
186+
"input_file_ids": ["upload-test-file-123"],
187+
"output_node_files": [
188+
{
189+
"node_id": "93fc2ce8-e7c8-424f-a6aa-41460fc5d35d",
190+
"file_id": "upload-test-file-123",
191+
"node_type": "partition",
192+
"node_subtype": "unstructured_api",
193+
}
194+
],
195+
"job_type": "template",
196+
},
197+
url=url,
198+
)
199+
200+
# request_data should be a JSON string containing the job creation data
201+
request_data = json.dumps({
202+
"template_id": "hi_res_partition",
203+
})
204+
205+
create_job_response = platform_client.jobs.create_job(
206+
request=operations.CreateJobRequest(
207+
body_create_job=shared.BodyCreateJob(
208+
request_data=request_data,
209+
)
210+
)
211+
)
212+
assert create_job_response.status_code == 200
213+
214+
requests = httpx_mock.get_requests()
215+
assert len(requests) == 1
216+
request = requests[0]
217+
assert request.method == "POST"
218+
assert request.url == url
219+
220+
job = create_job_response.job_information
221+
assert job.id == "fcdc4994-eea5-425c-91fa-e03f2bd8030d"
222+
assert job.status == "SCHEDULED"
223+
assert job.job_type == "template"
224+
assert job.created_at == datetime.fromisoformat("2025-06-22T11:37:21.648+00:00")
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
from datetime import datetime
2+
3+
import pytest
4+
5+
from unstructured_client import UnstructuredClient
6+
from unstructured_client.models import operations
7+
from unstructured_client.models.errors import SDKError
8+
9+
10+
def test_list_templates(httpx_mock, platform_client: UnstructuredClient, platform_api_url: str):
11+
url = f"{platform_api_url}/api/v1/templates/"
12+
13+
httpx_mock.add_response(
14+
method="GET",
15+
headers={"Content-Type": "application/json"},
16+
json=[
17+
{
18+
"id": "hi_res_partition",
19+
"name": "High Resolution Partition",
20+
"description": "Partition documents with high resolution strategy",
21+
"version": "1.0.0",
22+
"last_updated": "2024-01-01T00:00:00.000000",
23+
},
24+
{
25+
"id": "hi_res_and_enrichment",
26+
"name": "High Resolution and Enrichment",
27+
"description": "Partition with enrichment",
28+
"version": "1.0.0",
29+
"last_updated": "2024-01-01T00:00:00.000000",
30+
},
31+
],
32+
url=url,
33+
)
34+
35+
templates_response = platform_client.templates.list_templates(
36+
request=operations.ListTemplatesRequest()
37+
)
38+
assert templates_response.status_code == 200
39+
40+
requests = httpx_mock.get_requests()
41+
assert len(requests) == 1
42+
request = requests[0]
43+
assert request.method == "GET"
44+
assert request.url == url
45+
46+
templates = templates_response.response_list_templates
47+
assert templates is not None
48+
assert len(templates) == 2
49+
assert templates[0].id == "hi_res_partition"
50+
assert templates[0].name == "High Resolution Partition"
51+
assert templates[1].id == "hi_res_and_enrichment"
52+
53+
54+
def test_get_template(httpx_mock, platform_client: UnstructuredClient, platform_api_url: str):
55+
url = f"{platform_api_url}/api/v1/templates/hi_res_partition"
56+
57+
httpx_mock.add_response(
58+
method="GET",
59+
headers={"Content-Type": "application/json"},
60+
json={
61+
"id": "hi_res_partition",
62+
"name": "High Resolution Partition",
63+
"description": "Partition documents with high resolution strategy",
64+
"version": "1.0.0",
65+
"last_updated": "2024-01-01T00:00:00.000000",
66+
"nodes": [
67+
{
68+
"id": "93fc2ce8-e7c8-424f-a6aa-41460fc5d35d",
69+
"name": "partition step",
70+
"type": "partition",
71+
"subtype": "unstructured_api",
72+
"settings": {
73+
"strategy": "fast",
74+
"include_page_breaks": False,
75+
},
76+
}
77+
],
78+
},
79+
url=url,
80+
)
81+
82+
template_response = platform_client.templates.get_template(
83+
request=operations.GetTemplateRequest(template_id="hi_res_partition")
84+
)
85+
assert template_response.status_code == 200
86+
87+
requests = httpx_mock.get_requests()
88+
assert len(requests) == 1
89+
request = requests[0]
90+
assert request.method == "GET"
91+
assert request.url == url
92+
93+
template = template_response.template_detail
94+
assert template is not None
95+
assert template.id == "hi_res_partition"
96+
assert template.name == "High Resolution Partition"
97+
assert len(template.nodes) == 1
98+
assert template.nodes[0].id == "93fc2ce8-e7c8-424f-a6aa-41460fc5d35d"
99+
100+
101+
def test_get_template_not_found(
102+
httpx_mock, platform_client: UnstructuredClient, platform_api_url: str
103+
):
104+
url = f"{platform_api_url}/api/v1/templates/nonexistent_template"
105+
106+
httpx_mock.add_response(
107+
method="GET",
108+
status_code=404,
109+
headers={"Content-Type": "application/json"},
110+
json={"detail": "Template nonexistent_template not found"},
111+
url=url,
112+
)
113+
114+
with pytest.raises(SDKError) as e:
115+
platform_client.templates.get_template(
116+
request=operations.GetTemplateRequest(template_id="nonexistent_template")
117+
)
118+
119+
assert e.value.status_code == 404
120+
assert "API error occurred" in e.value.message
121+
122+
requests = httpx_mock.get_requests()
123+
assert len(requests) == 1
124+
request = requests[0]
125+
assert request.method == "GET"
126+
assert request.url == url
127+

0 commit comments

Comments
 (0)