llama-cloud 0.1.1__tar.gz → 0.1.3__tar.gz

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.

Potentially problematic release.


This version of llama-cloud might be problematic. Click here for more details.

Files changed (228) hide show
  1. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/PKG-INFO +3 -1
  2. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/__init__.py +6 -0
  3. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/organizations/client.py +486 -0
  4. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/parsing/client.py +24 -0
  5. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/__init__.py +6 -0
  6. llama_cloud-0.1.3/llama_cloud/types/base.py +0 -0
  7. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/llama_parse_parameters.py +3 -0
  8. llama_cloud-0.1.3/llama_cloud/types/permission.py +40 -0
  9. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/retrieval_mode.py +4 -0
  10. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/retrieve_results.py +3 -0
  11. llama_cloud-0.1.3/llama_cloud/types/role.py +41 -0
  12. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/user_organization.py +2 -0
  13. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/user_organization_create.py +2 -0
  14. llama_cloud-0.1.3/llama_cloud/types/user_organization_role.py +42 -0
  15. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/vertex_embedding_mode.py +2 -9
  16. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/pyproject.toml +2 -1
  17. llama_cloud-0.1.1/llama_cloud/types/base.py +0 -29
  18. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/LICENSE +0 -0
  19. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/README.md +0 -0
  20. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/client.py +0 -0
  21. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/core/__init__.py +0 -0
  22. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/core/api_error.py +0 -0
  23. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/core/client_wrapper.py +0 -0
  24. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/core/datetime_utils.py +0 -0
  25. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/core/jsonable_encoder.py +0 -0
  26. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/core/remove_none_from_dict.py +0 -0
  27. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/environment.py +0 -0
  28. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/errors/__init__.py +0 -0
  29. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/errors/unprocessable_entity_error.py +0 -0
  30. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/__init__.py +0 -0
  31. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/component_definitions/__init__.py +0 -0
  32. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/component_definitions/client.py +0 -0
  33. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/data_sinks/__init__.py +0 -0
  34. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/data_sinks/client.py +0 -0
  35. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/data_sinks/types/__init__.py +0 -0
  36. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/data_sinks/types/data_sink_update_component.py +0 -0
  37. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/data_sources/__init__.py +0 -0
  38. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/data_sources/client.py +0 -0
  39. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/data_sources/types/__init__.py +0 -0
  40. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/data_sources/types/data_source_update_component.py +0 -0
  41. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/data_sources/types/data_source_update_custom_metadata_value.py +0 -0
  42. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/evals/__init__.py +0 -0
  43. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/evals/client.py +0 -0
  44. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/extraction/__init__.py +0 -0
  45. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/extraction/client.py +0 -0
  46. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/extraction/types/__init__.py +0 -0
  47. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/extraction/types/extraction_schema_create_data_schema_value.py +0 -0
  48. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/extraction/types/extraction_schema_update_data_schema_value.py +0 -0
  49. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/files/__init__.py +0 -0
  50. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/files/client.py +0 -0
  51. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/files/types/__init__.py +0 -0
  52. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/files/types/file_create_resource_info_value.py +0 -0
  53. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/organizations/__init__.py +0 -0
  54. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/parsing/__init__.py +0 -0
  55. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/pipelines/__init__.py +0 -0
  56. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/pipelines/client.py +0 -0
  57. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/pipelines/types/__init__.py +0 -0
  58. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/pipelines/types/pipeline_file_update_custom_metadata_value.py +0 -0
  59. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/pipelines/types/pipeline_update_embedding_config.py +0 -0
  60. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/pipelines/types/pipeline_update_transform_config.py +0 -0
  61. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/projects/__init__.py +0 -0
  62. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/resources/projects/client.py +0 -0
  63. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/advanced_mode_transform_config.py +0 -0
  64. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/advanced_mode_transform_config_chunking_config.py +0 -0
  65. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/advanced_mode_transform_config_segmentation_config.py +0 -0
  66. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/auto_transform_config.py +0 -0
  67. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/azure_open_ai_embedding.py +0 -0
  68. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/azure_open_ai_embedding_config.py +0 -0
  69. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/base_prompt_template.py +0 -0
  70. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/bedrock_embedding.py +0 -0
  71. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/bedrock_embedding_config.py +0 -0
  72. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/box_auth_mechanism.py +0 -0
  73. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/character_chunking_config.py +0 -0
  74. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/character_splitter.py +0 -0
  75. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/chat_data.py +0 -0
  76. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/chat_message.py +0 -0
  77. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_az_storage_blob_data_source.py +0 -0
  78. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_azure_ai_search_vector_store.py +0 -0
  79. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_box_data_source.py +0 -0
  80. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_confluence_data_source.py +0 -0
  81. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_document.py +0 -0
  82. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_document_create.py +0 -0
  83. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_google_drive_data_source.py +0 -0
  84. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_jira_data_source.py +0 -0
  85. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_milvus_vector_store.py +0 -0
  86. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_mongo_db_atlas_vector_search.py +0 -0
  87. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_notion_page_data_source.py +0 -0
  88. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_one_drive_data_source.py +0 -0
  89. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_pinecone_vector_store.py +0 -0
  90. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_postgres_vector_store.py +0 -0
  91. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_qdrant_vector_store.py +0 -0
  92. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_s_3_data_source.py +0 -0
  93. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_sharepoint_data_source.py +0 -0
  94. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cloud_slack_data_source.py +0 -0
  95. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/code_splitter.py +0 -0
  96. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cohere_embedding.py +0 -0
  97. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/cohere_embedding_config.py +0 -0
  98. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/configurable_data_sink_names.py +0 -0
  99. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/configurable_data_source_names.py +0 -0
  100. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/configurable_transformation_definition.py +0 -0
  101. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/configurable_transformation_names.py +0 -0
  102. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/configured_transformation_item.py +0 -0
  103. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/configured_transformation_item_component.py +0 -0
  104. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_sink.py +0 -0
  105. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_sink_component.py +0 -0
  106. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_sink_create.py +0 -0
  107. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_sink_create_component.py +0 -0
  108. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_sink_definition.py +0 -0
  109. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_source.py +0 -0
  110. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_source_component.py +0 -0
  111. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_source_create.py +0 -0
  112. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_source_create_component.py +0 -0
  113. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_source_create_custom_metadata_value.py +0 -0
  114. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_source_custom_metadata_value.py +0 -0
  115. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/data_source_definition.py +0 -0
  116. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/element_segmentation_config.py +0 -0
  117. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/eval_dataset.py +0 -0
  118. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/eval_dataset_job_params.py +0 -0
  119. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/eval_dataset_job_record.py +0 -0
  120. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/eval_execution_params.py +0 -0
  121. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/eval_execution_params_override.py +0 -0
  122. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/eval_metric.py +0 -0
  123. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/eval_question.py +0 -0
  124. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/eval_question_create.py +0 -0
  125. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/eval_question_result.py +0 -0
  126. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/extraction_job.py +0 -0
  127. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/extraction_result.py +0 -0
  128. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/extraction_result_data_value.py +0 -0
  129. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/extraction_schema.py +0 -0
  130. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/extraction_schema_data_schema_value.py +0 -0
  131. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/file.py +0 -0
  132. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/file_resource_info_value.py +0 -0
  133. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/filter_condition.py +0 -0
  134. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/filter_operator.py +0 -0
  135. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/gemini_embedding.py +0 -0
  136. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/gemini_embedding_config.py +0 -0
  137. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/http_validation_error.py +0 -0
  138. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/hugging_face_inference_api_embedding.py +0 -0
  139. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/hugging_face_inference_api_embedding_config.py +0 -0
  140. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/hugging_face_inference_api_embedding_token.py +0 -0
  141. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/ingestion_error_response.py +0 -0
  142. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/input_message.py +0 -0
  143. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/job_name_mapping.py +0 -0
  144. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/llama_parse_supported_file_extensions.py +0 -0
  145. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/llm.py +0 -0
  146. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/llm_model_data.py +0 -0
  147. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/llm_parameters.py +0 -0
  148. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/local_eval.py +0 -0
  149. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/local_eval_results.py +0 -0
  150. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/local_eval_sets.py +0 -0
  151. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/managed_ingestion_status.py +0 -0
  152. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/managed_ingestion_status_response.py +0 -0
  153. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/markdown_element_node_parser.py +0 -0
  154. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/markdown_node_parser.py +0 -0
  155. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/message_annotation.py +0 -0
  156. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/message_role.py +0 -0
  157. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/metadata_filter.py +0 -0
  158. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/metadata_filter_value.py +0 -0
  159. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/metadata_filters.py +0 -0
  160. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/metadata_filters_filters_item.py +0 -0
  161. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/metric_result.py +0 -0
  162. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/node_parser.py +0 -0
  163. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/node_relationship.py +0 -0
  164. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/none_chunking_config.py +0 -0
  165. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/none_segmentation_config.py +0 -0
  166. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/object_type.py +0 -0
  167. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/open_ai_embedding.py +0 -0
  168. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/open_ai_embedding_config.py +0 -0
  169. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/organization.py +0 -0
  170. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/organization_create.py +0 -0
  171. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/page_screenshot_metadata.py +0 -0
  172. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/page_screenshot_node_with_score.py +0 -0
  173. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/page_segmentation_config.py +0 -0
  174. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/page_splitter_node_parser.py +0 -0
  175. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/parser_languages.py +0 -0
  176. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/parsing_history_item.py +0 -0
  177. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/parsing_job.py +0 -0
  178. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/parsing_job_json_result.py +0 -0
  179. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/parsing_job_markdown_result.py +0 -0
  180. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/parsing_job_text_result.py +0 -0
  181. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/parsing_usage.py +0 -0
  182. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/partition_names.py +0 -0
  183. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline.py +0 -0
  184. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_configuration_hashes.py +0 -0
  185. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_create.py +0 -0
  186. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_create_embedding_config.py +0 -0
  187. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_create_transform_config.py +0 -0
  188. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_data_source.py +0 -0
  189. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_data_source_component.py +0 -0
  190. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_data_source_create.py +0 -0
  191. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_data_source_custom_metadata_value.py +0 -0
  192. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_deployment.py +0 -0
  193. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_embedding_config.py +0 -0
  194. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_file.py +0 -0
  195. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_file_config_hash_value.py +0 -0
  196. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_file_create.py +0 -0
  197. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_file_create_custom_metadata_value.py +0 -0
  198. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_file_custom_metadata_value.py +0 -0
  199. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_file_resource_info_value.py +0 -0
  200. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_transform_config.py +0 -0
  201. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pipeline_type.py +0 -0
  202. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/playground_session.py +0 -0
  203. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pooling.py +0 -0
  204. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/preset_retrieval_params.py +0 -0
  205. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/presigned_url.py +0 -0
  206. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/project.py +0 -0
  207. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/project_create.py +0 -0
  208. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/prompt_mixin_prompts.py +0 -0
  209. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/prompt_spec.py +0 -0
  210. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/pydantic_program_mode.py +0 -0
  211. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/related_node_info.py +0 -0
  212. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/semantic_chunking_config.py +0 -0
  213. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/sentence_chunking_config.py +0 -0
  214. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/sentence_splitter.py +0 -0
  215. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/status_enum.py +0 -0
  216. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/supported_llm_model.py +0 -0
  217. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/supported_llm_model_names.py +0 -0
  218. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/text_node.py +0 -0
  219. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/text_node_relationships_value.py +0 -0
  220. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/text_node_with_score.py +0 -0
  221. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/token_chunking_config.py +0 -0
  222. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/token_text_splitter.py +0 -0
  223. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/transformation_category_names.py +0 -0
  224. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/user_organization_delete.py +0 -0
  225. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/validation_error.py +0 -0
  226. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/validation_error_loc_item.py +0 -0
  227. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/vertex_ai_embedding_config.py +0 -0
  228. {llama_cloud-0.1.1 → llama_cloud-0.1.3}/llama_cloud/types/vertex_text_embedding.py +0 -0
@@ -1,10 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-cloud
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary:
5
+ License: MIT
5
6
  Author: Logan Markewich
6
7
  Author-email: logan@runllama.ai
7
8
  Requires-Python: >=3.8,<4
9
+ Classifier: License :: OSI Approved :: MIT License
8
10
  Classifier: Programming Language :: Python :: 3
9
11
  Classifier: Programming Language :: Python :: 3.8
10
12
  Classifier: Programming Language :: Python :: 3.9
@@ -131,6 +131,7 @@ from .types import (
131
131
  ParsingJobTextResult,
132
132
  ParsingUsage,
133
133
  PartitionNames,
134
+ Permission,
134
135
  Pipeline,
135
136
  PipelineConfigurationHashes,
136
137
  PipelineCreate,
@@ -178,6 +179,7 @@ from .types import (
178
179
  RelatedNodeInfo,
179
180
  RetrievalMode,
180
181
  RetrieveResults,
182
+ Role,
181
183
  SemanticChunkingConfig,
182
184
  SentenceChunkingConfig,
183
185
  SentenceSplitter,
@@ -193,6 +195,7 @@ from .types import (
193
195
  UserOrganization,
194
196
  UserOrganizationCreate,
195
197
  UserOrganizationDelete,
198
+ UserOrganizationRole,
196
199
  ValidationError,
197
200
  ValidationErrorLocItem,
198
201
  VertexAiEmbeddingConfig,
@@ -368,6 +371,7 @@ __all__ = [
368
371
  "ParsingJobTextResult",
369
372
  "ParsingUsage",
370
373
  "PartitionNames",
374
+ "Permission",
371
375
  "Pipeline",
372
376
  "PipelineConfigurationHashes",
373
377
  "PipelineCreate",
@@ -425,6 +429,7 @@ __all__ = [
425
429
  "RelatedNodeInfo",
426
430
  "RetrievalMode",
427
431
  "RetrieveResults",
432
+ "Role",
428
433
  "SemanticChunkingConfig",
429
434
  "SentenceChunkingConfig",
430
435
  "SentenceSplitter",
@@ -441,6 +446,7 @@ __all__ = [
441
446
  "UserOrganization",
442
447
  "UserOrganizationCreate",
443
448
  "UserOrganizationDelete",
449
+ "UserOrganizationRole",
444
450
  "ValidationError",
445
451
  "ValidationErrorLocItem",
446
452
  "VertexAiEmbeddingConfig",
@@ -7,13 +7,17 @@ from json.decoder import JSONDecodeError
7
7
  from ...core.api_error import ApiError
8
8
  from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
9
9
  from ...core.jsonable_encoder import jsonable_encoder
10
+ from ...core.remove_none_from_dict import remove_none_from_dict
10
11
  from ...errors.unprocessable_entity_error import UnprocessableEntityError
11
12
  from ...types.http_validation_error import HttpValidationError
12
13
  from ...types.organization import Organization
13
14
  from ...types.organization_create import OrganizationCreate
15
+ from ...types.project import Project
16
+ from ...types.role import Role
14
17
  from ...types.user_organization import UserOrganization
15
18
  from ...types.user_organization_create import UserOrganizationCreate
16
19
  from ...types.user_organization_delete import UserOrganizationDelete
20
+ from ...types.user_organization_role import UserOrganizationRole
17
21
 
18
22
  try:
19
23
  import pydantic
@@ -446,6 +450,247 @@ class OrganizationsClient:
446
450
  raise ApiError(status_code=_response.status_code, body=_response.text)
447
451
  raise ApiError(status_code=_response.status_code, body=_response_json)
448
452
 
453
+ def list_roles(self, organization_id: str) -> typing.List[Role]:
454
+ """
455
+ List all roles in an organization.
456
+
457
+ Parameters:
458
+ - organization_id: str.
459
+ ---
460
+ from llama_cloud.client import LlamaCloud
461
+
462
+ client = LlamaCloud(
463
+ token="YOUR_TOKEN",
464
+ )
465
+ client.organizations.list_roles(
466
+ organization_id="string",
467
+ )
468
+ """
469
+ _response = self._client_wrapper.httpx_client.request(
470
+ "GET",
471
+ urllib.parse.urljoin(
472
+ f"{self._client_wrapper.get_base_url()}/", f"api/v1/organizations/{organization_id}/roles"
473
+ ),
474
+ headers=self._client_wrapper.get_headers(),
475
+ timeout=60,
476
+ )
477
+ if 200 <= _response.status_code < 300:
478
+ return pydantic.parse_obj_as(typing.List[Role], _response.json()) # type: ignore
479
+ if _response.status_code == 422:
480
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
481
+ try:
482
+ _response_json = _response.json()
483
+ except JSONDecodeError:
484
+ raise ApiError(status_code=_response.status_code, body=_response.text)
485
+ raise ApiError(status_code=_response.status_code, body=_response_json)
486
+
487
+ def get_user_role(self, organization_id: str) -> UserOrganizationRole:
488
+ """
489
+ Get the role of a user in an organization.
490
+
491
+ Parameters:
492
+ - organization_id: str.
493
+ ---
494
+ from llama_cloud.client import LlamaCloud
495
+
496
+ client = LlamaCloud(
497
+ token="YOUR_TOKEN",
498
+ )
499
+ client.organizations.get_user_role(
500
+ organization_id="string",
501
+ )
502
+ """
503
+ _response = self._client_wrapper.httpx_client.request(
504
+ "GET",
505
+ urllib.parse.urljoin(
506
+ f"{self._client_wrapper.get_base_url()}/", f"api/v1/organizations/{organization_id}/users/roles"
507
+ ),
508
+ headers=self._client_wrapper.get_headers(),
509
+ timeout=60,
510
+ )
511
+ if 200 <= _response.status_code < 300:
512
+ return pydantic.parse_obj_as(UserOrganizationRole, _response.json()) # type: ignore
513
+ if _response.status_code == 422:
514
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
515
+ try:
516
+ _response_json = _response.json()
517
+ except JSONDecodeError:
518
+ raise ApiError(status_code=_response.status_code, body=_response.text)
519
+ raise ApiError(status_code=_response.status_code, body=_response_json)
520
+
521
+ def assign_role_to_user_in_organization(
522
+ self, organization_id: str, *, user_id: str, user_organization_role_create_organization_id: str, role_id: str
523
+ ) -> UserOrganizationRole:
524
+ """
525
+ Assign a role to a user in an organization.
526
+
527
+ Parameters:
528
+ - organization_id: str.
529
+
530
+ - user_id: str. The user's ID.
531
+
532
+ - user_organization_role_create_organization_id: str. The organization's ID.
533
+
534
+ - role_id: str. The role's ID.
535
+ ---
536
+ from llama_cloud.client import LlamaCloud
537
+
538
+ client = LlamaCloud(
539
+ token="YOUR_TOKEN",
540
+ )
541
+ client.organizations.assign_role_to_user_in_organization(
542
+ organization_id="string",
543
+ user_id="string",
544
+ user_organization_role_create_organization_id="string",
545
+ role_id="string",
546
+ )
547
+ """
548
+ _response = self._client_wrapper.httpx_client.request(
549
+ "PUT",
550
+ urllib.parse.urljoin(
551
+ f"{self._client_wrapper.get_base_url()}/", f"api/v1/organizations/{organization_id}/users/roles"
552
+ ),
553
+ json=jsonable_encoder(
554
+ {
555
+ "user_id": user_id,
556
+ "organization_id": user_organization_role_create_organization_id,
557
+ "role_id": role_id,
558
+ }
559
+ ),
560
+ headers=self._client_wrapper.get_headers(),
561
+ timeout=60,
562
+ )
563
+ if 200 <= _response.status_code < 300:
564
+ return pydantic.parse_obj_as(UserOrganizationRole, _response.json()) # type: ignore
565
+ if _response.status_code == 422:
566
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
567
+ try:
568
+ _response_json = _response.json()
569
+ except JSONDecodeError:
570
+ raise ApiError(status_code=_response.status_code, body=_response.text)
571
+ raise ApiError(status_code=_response.status_code, body=_response_json)
572
+
573
+ def list_projects_by_user(self, organization_id: str, user_id: str) -> typing.List[Project]:
574
+ """
575
+ List all projects for a user in an organization.
576
+
577
+ Parameters:
578
+ - organization_id: str.
579
+
580
+ - user_id: str.
581
+ ---
582
+ from llama_cloud.client import LlamaCloud
583
+
584
+ client = LlamaCloud(
585
+ token="YOUR_TOKEN",
586
+ )
587
+ client.organizations.list_projects_by_user(
588
+ organization_id="string",
589
+ user_id="string",
590
+ )
591
+ """
592
+ _response = self._client_wrapper.httpx_client.request(
593
+ "GET",
594
+ urllib.parse.urljoin(
595
+ f"{self._client_wrapper.get_base_url()}/",
596
+ f"api/v1/organizations/{organization_id}/users/{user_id}/projects",
597
+ ),
598
+ headers=self._client_wrapper.get_headers(),
599
+ timeout=60,
600
+ )
601
+ if 200 <= _response.status_code < 300:
602
+ return pydantic.parse_obj_as(typing.List[Project], _response.json()) # type: ignore
603
+ if _response.status_code == 422:
604
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
605
+ try:
606
+ _response_json = _response.json()
607
+ except JSONDecodeError:
608
+ raise ApiError(status_code=_response.status_code, body=_response.text)
609
+ raise ApiError(status_code=_response.status_code, body=_response_json)
610
+
611
+ def add_user_to_project(self, organization_id: str, user_id: str, *, project_id: str) -> typing.Any:
612
+ """
613
+ Add a user to a project.
614
+
615
+ Parameters:
616
+ - organization_id: str.
617
+
618
+ - user_id: str.
619
+
620
+ - project_id: str.
621
+ ---
622
+ from llama_cloud.client import LlamaCloud
623
+
624
+ client = LlamaCloud(
625
+ token="YOUR_TOKEN",
626
+ )
627
+ client.organizations.add_user_to_project(
628
+ organization_id="string",
629
+ user_id="string",
630
+ project_id="string",
631
+ )
632
+ """
633
+ _response = self._client_wrapper.httpx_client.request(
634
+ "PUT",
635
+ urllib.parse.urljoin(
636
+ f"{self._client_wrapper.get_base_url()}/",
637
+ f"api/v1/organizations/{organization_id}/users/{user_id}/projects",
638
+ ),
639
+ params=remove_none_from_dict({"project_id": project_id}),
640
+ headers=self._client_wrapper.get_headers(),
641
+ timeout=60,
642
+ )
643
+ if 200 <= _response.status_code < 300:
644
+ return pydantic.parse_obj_as(typing.Any, _response.json()) # type: ignore
645
+ if _response.status_code == 422:
646
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
647
+ try:
648
+ _response_json = _response.json()
649
+ except JSONDecodeError:
650
+ raise ApiError(status_code=_response.status_code, body=_response.text)
651
+ raise ApiError(status_code=_response.status_code, body=_response_json)
652
+
653
+ def remove_user_from_project(self, organization_id: str, user_id: str, project_id: str) -> typing.Any:
654
+ """
655
+ Remove a user from a project.
656
+
657
+ Parameters:
658
+ - organization_id: str.
659
+
660
+ - user_id: str.
661
+
662
+ - project_id: str.
663
+ ---
664
+ from llama_cloud.client import LlamaCloud
665
+
666
+ client = LlamaCloud(
667
+ token="YOUR_TOKEN",
668
+ )
669
+ client.organizations.remove_user_from_project(
670
+ organization_id="string",
671
+ user_id="string",
672
+ project_id="string",
673
+ )
674
+ """
675
+ _response = self._client_wrapper.httpx_client.request(
676
+ "DELETE",
677
+ urllib.parse.urljoin(
678
+ f"{self._client_wrapper.get_base_url()}/",
679
+ f"api/v1/organizations/{organization_id}/users/{user_id}/projects/{project_id}",
680
+ ),
681
+ headers=self._client_wrapper.get_headers(),
682
+ timeout=60,
683
+ )
684
+ if 200 <= _response.status_code < 300:
685
+ return pydantic.parse_obj_as(typing.Any, _response.json()) # type: ignore
686
+ if _response.status_code == 422:
687
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
688
+ try:
689
+ _response_json = _response.json()
690
+ except JSONDecodeError:
691
+ raise ApiError(status_code=_response.status_code, body=_response.text)
692
+ raise ApiError(status_code=_response.status_code, body=_response_json)
693
+
449
694
 
450
695
  class AsyncOrganizationsClient:
451
696
  def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -865,3 +1110,244 @@ class AsyncOrganizationsClient:
865
1110
  except JSONDecodeError:
866
1111
  raise ApiError(status_code=_response.status_code, body=_response.text)
867
1112
  raise ApiError(status_code=_response.status_code, body=_response_json)
1113
+
1114
+ async def list_roles(self, organization_id: str) -> typing.List[Role]:
1115
+ """
1116
+ List all roles in an organization.
1117
+
1118
+ Parameters:
1119
+ - organization_id: str.
1120
+ ---
1121
+ from llama_cloud.client import AsyncLlamaCloud
1122
+
1123
+ client = AsyncLlamaCloud(
1124
+ token="YOUR_TOKEN",
1125
+ )
1126
+ await client.organizations.list_roles(
1127
+ organization_id="string",
1128
+ )
1129
+ """
1130
+ _response = await self._client_wrapper.httpx_client.request(
1131
+ "GET",
1132
+ urllib.parse.urljoin(
1133
+ f"{self._client_wrapper.get_base_url()}/", f"api/v1/organizations/{organization_id}/roles"
1134
+ ),
1135
+ headers=self._client_wrapper.get_headers(),
1136
+ timeout=60,
1137
+ )
1138
+ if 200 <= _response.status_code < 300:
1139
+ return pydantic.parse_obj_as(typing.List[Role], _response.json()) # type: ignore
1140
+ if _response.status_code == 422:
1141
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
1142
+ try:
1143
+ _response_json = _response.json()
1144
+ except JSONDecodeError:
1145
+ raise ApiError(status_code=_response.status_code, body=_response.text)
1146
+ raise ApiError(status_code=_response.status_code, body=_response_json)
1147
+
1148
+ async def get_user_role(self, organization_id: str) -> UserOrganizationRole:
1149
+ """
1150
+ Get the role of a user in an organization.
1151
+
1152
+ Parameters:
1153
+ - organization_id: str.
1154
+ ---
1155
+ from llama_cloud.client import AsyncLlamaCloud
1156
+
1157
+ client = AsyncLlamaCloud(
1158
+ token="YOUR_TOKEN",
1159
+ )
1160
+ await client.organizations.get_user_role(
1161
+ organization_id="string",
1162
+ )
1163
+ """
1164
+ _response = await self._client_wrapper.httpx_client.request(
1165
+ "GET",
1166
+ urllib.parse.urljoin(
1167
+ f"{self._client_wrapper.get_base_url()}/", f"api/v1/organizations/{organization_id}/users/roles"
1168
+ ),
1169
+ headers=self._client_wrapper.get_headers(),
1170
+ timeout=60,
1171
+ )
1172
+ if 200 <= _response.status_code < 300:
1173
+ return pydantic.parse_obj_as(UserOrganizationRole, _response.json()) # type: ignore
1174
+ if _response.status_code == 422:
1175
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
1176
+ try:
1177
+ _response_json = _response.json()
1178
+ except JSONDecodeError:
1179
+ raise ApiError(status_code=_response.status_code, body=_response.text)
1180
+ raise ApiError(status_code=_response.status_code, body=_response_json)
1181
+
1182
+ async def assign_role_to_user_in_organization(
1183
+ self, organization_id: str, *, user_id: str, user_organization_role_create_organization_id: str, role_id: str
1184
+ ) -> UserOrganizationRole:
1185
+ """
1186
+ Assign a role to a user in an organization.
1187
+
1188
+ Parameters:
1189
+ - organization_id: str.
1190
+
1191
+ - user_id: str. The user's ID.
1192
+
1193
+ - user_organization_role_create_organization_id: str. The organization's ID.
1194
+
1195
+ - role_id: str. The role's ID.
1196
+ ---
1197
+ from llama_cloud.client import AsyncLlamaCloud
1198
+
1199
+ client = AsyncLlamaCloud(
1200
+ token="YOUR_TOKEN",
1201
+ )
1202
+ await client.organizations.assign_role_to_user_in_organization(
1203
+ organization_id="string",
1204
+ user_id="string",
1205
+ user_organization_role_create_organization_id="string",
1206
+ role_id="string",
1207
+ )
1208
+ """
1209
+ _response = await self._client_wrapper.httpx_client.request(
1210
+ "PUT",
1211
+ urllib.parse.urljoin(
1212
+ f"{self._client_wrapper.get_base_url()}/", f"api/v1/organizations/{organization_id}/users/roles"
1213
+ ),
1214
+ json=jsonable_encoder(
1215
+ {
1216
+ "user_id": user_id,
1217
+ "organization_id": user_organization_role_create_organization_id,
1218
+ "role_id": role_id,
1219
+ }
1220
+ ),
1221
+ headers=self._client_wrapper.get_headers(),
1222
+ timeout=60,
1223
+ )
1224
+ if 200 <= _response.status_code < 300:
1225
+ return pydantic.parse_obj_as(UserOrganizationRole, _response.json()) # type: ignore
1226
+ if _response.status_code == 422:
1227
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
1228
+ try:
1229
+ _response_json = _response.json()
1230
+ except JSONDecodeError:
1231
+ raise ApiError(status_code=_response.status_code, body=_response.text)
1232
+ raise ApiError(status_code=_response.status_code, body=_response_json)
1233
+
1234
+ async def list_projects_by_user(self, organization_id: str, user_id: str) -> typing.List[Project]:
1235
+ """
1236
+ List all projects for a user in an organization.
1237
+
1238
+ Parameters:
1239
+ - organization_id: str.
1240
+
1241
+ - user_id: str.
1242
+ ---
1243
+ from llama_cloud.client import AsyncLlamaCloud
1244
+
1245
+ client = AsyncLlamaCloud(
1246
+ token="YOUR_TOKEN",
1247
+ )
1248
+ await client.organizations.list_projects_by_user(
1249
+ organization_id="string",
1250
+ user_id="string",
1251
+ )
1252
+ """
1253
+ _response = await self._client_wrapper.httpx_client.request(
1254
+ "GET",
1255
+ urllib.parse.urljoin(
1256
+ f"{self._client_wrapper.get_base_url()}/",
1257
+ f"api/v1/organizations/{organization_id}/users/{user_id}/projects",
1258
+ ),
1259
+ headers=self._client_wrapper.get_headers(),
1260
+ timeout=60,
1261
+ )
1262
+ if 200 <= _response.status_code < 300:
1263
+ return pydantic.parse_obj_as(typing.List[Project], _response.json()) # type: ignore
1264
+ if _response.status_code == 422:
1265
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
1266
+ try:
1267
+ _response_json = _response.json()
1268
+ except JSONDecodeError:
1269
+ raise ApiError(status_code=_response.status_code, body=_response.text)
1270
+ raise ApiError(status_code=_response.status_code, body=_response_json)
1271
+
1272
+ async def add_user_to_project(self, organization_id: str, user_id: str, *, project_id: str) -> typing.Any:
1273
+ """
1274
+ Add a user to a project.
1275
+
1276
+ Parameters:
1277
+ - organization_id: str.
1278
+
1279
+ - user_id: str.
1280
+
1281
+ - project_id: str.
1282
+ ---
1283
+ from llama_cloud.client import AsyncLlamaCloud
1284
+
1285
+ client = AsyncLlamaCloud(
1286
+ token="YOUR_TOKEN",
1287
+ )
1288
+ await client.organizations.add_user_to_project(
1289
+ organization_id="string",
1290
+ user_id="string",
1291
+ project_id="string",
1292
+ )
1293
+ """
1294
+ _response = await self._client_wrapper.httpx_client.request(
1295
+ "PUT",
1296
+ urllib.parse.urljoin(
1297
+ f"{self._client_wrapper.get_base_url()}/",
1298
+ f"api/v1/organizations/{organization_id}/users/{user_id}/projects",
1299
+ ),
1300
+ params=remove_none_from_dict({"project_id": project_id}),
1301
+ headers=self._client_wrapper.get_headers(),
1302
+ timeout=60,
1303
+ )
1304
+ if 200 <= _response.status_code < 300:
1305
+ return pydantic.parse_obj_as(typing.Any, _response.json()) # type: ignore
1306
+ if _response.status_code == 422:
1307
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
1308
+ try:
1309
+ _response_json = _response.json()
1310
+ except JSONDecodeError:
1311
+ raise ApiError(status_code=_response.status_code, body=_response.text)
1312
+ raise ApiError(status_code=_response.status_code, body=_response_json)
1313
+
1314
+ async def remove_user_from_project(self, organization_id: str, user_id: str, project_id: str) -> typing.Any:
1315
+ """
1316
+ Remove a user from a project.
1317
+
1318
+ Parameters:
1319
+ - organization_id: str.
1320
+
1321
+ - user_id: str.
1322
+
1323
+ - project_id: str.
1324
+ ---
1325
+ from llama_cloud.client import AsyncLlamaCloud
1326
+
1327
+ client = AsyncLlamaCloud(
1328
+ token="YOUR_TOKEN",
1329
+ )
1330
+ await client.organizations.remove_user_from_project(
1331
+ organization_id="string",
1332
+ user_id="string",
1333
+ project_id="string",
1334
+ )
1335
+ """
1336
+ _response = await self._client_wrapper.httpx_client.request(
1337
+ "DELETE",
1338
+ urllib.parse.urljoin(
1339
+ f"{self._client_wrapper.get_base_url()}/",
1340
+ f"api/v1/organizations/{organization_id}/users/{user_id}/projects/{project_id}",
1341
+ ),
1342
+ headers=self._client_wrapper.get_headers(),
1343
+ timeout=60,
1344
+ )
1345
+ if 200 <= _response.status_code < 300:
1346
+ return pydantic.parse_obj_as(typing.Any, _response.json()) # type: ignore
1347
+ if _response.status_code == 422:
1348
+ raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
1349
+ try:
1350
+ _response_json = _response.json()
1351
+ except JSONDecodeError:
1352
+ raise ApiError(status_code=_response.status_code, body=_response.text)
1353
+ raise ApiError(status_code=_response.status_code, body=_response_json)
@@ -109,6 +109,7 @@ class ParsingClient:
109
109
  gpt_4_o_mode: bool,
110
110
  fast_mode: bool,
111
111
  premium_mode: bool,
112
+ continuous_mode: bool,
112
113
  gpt_4_o_api_key: str,
113
114
  do_not_unroll_columns: bool,
114
115
  page_separator: str,
@@ -121,7 +122,9 @@ class ParsingClient:
121
122
  page_suffix: str,
122
123
  webhook_url: str,
123
124
  take_screenshot: bool,
125
+ is_formatting_instruction: bool,
124
126
  disable_ocr: bool,
127
+ annotate_links: bool,
125
128
  disable_reconstruction: bool,
126
129
  input_s_3_path: str,
127
130
  output_s_3_path_prefix: str,
@@ -151,6 +154,8 @@ class ParsingClient:
151
154
 
152
155
  - premium_mode: bool.
153
156
 
157
+ - continuous_mode: bool.
158
+
154
159
  - gpt_4_o_api_key: str.
155
160
 
156
161
  - do_not_unroll_columns: bool.
@@ -175,8 +180,12 @@ class ParsingClient:
175
180
 
176
181
  - take_screenshot: bool.
177
182
 
183
+ - is_formatting_instruction: bool.
184
+
178
185
  - disable_ocr: bool.
179
186
 
187
+ - annotate_links: bool.
188
+
180
189
  - disable_reconstruction: bool.
181
190
 
182
191
  - input_s_3_path: str.
@@ -202,6 +211,7 @@ class ParsingClient:
202
211
  "gpt4o_mode": gpt_4_o_mode,
203
212
  "fast_mode": fast_mode,
204
213
  "premium_mode": premium_mode,
214
+ "continuous_mode": continuous_mode,
205
215
  "gpt4o_api_key": gpt_4_o_api_key,
206
216
  "do_not_unroll_columns": do_not_unroll_columns,
207
217
  "page_separator": page_separator,
@@ -214,7 +224,9 @@ class ParsingClient:
214
224
  "page_suffix": page_suffix,
215
225
  "webhook_url": webhook_url,
216
226
  "take_screenshot": take_screenshot,
227
+ "is_formatting_instruction": is_formatting_instruction,
217
228
  "disable_ocr": disable_ocr,
229
+ "annotate_links": annotate_links,
218
230
  "disable_reconstruction": disable_reconstruction,
219
231
  "input_s3_path": input_s_3_path,
220
232
  "output_s3_path_prefix": output_s_3_path_prefix,
@@ -678,6 +690,7 @@ class AsyncParsingClient:
678
690
  gpt_4_o_mode: bool,
679
691
  fast_mode: bool,
680
692
  premium_mode: bool,
693
+ continuous_mode: bool,
681
694
  gpt_4_o_api_key: str,
682
695
  do_not_unroll_columns: bool,
683
696
  page_separator: str,
@@ -690,7 +703,9 @@ class AsyncParsingClient:
690
703
  page_suffix: str,
691
704
  webhook_url: str,
692
705
  take_screenshot: bool,
706
+ is_formatting_instruction: bool,
693
707
  disable_ocr: bool,
708
+ annotate_links: bool,
694
709
  disable_reconstruction: bool,
695
710
  input_s_3_path: str,
696
711
  output_s_3_path_prefix: str,
@@ -720,6 +735,8 @@ class AsyncParsingClient:
720
735
 
721
736
  - premium_mode: bool.
722
737
 
738
+ - continuous_mode: bool.
739
+
723
740
  - gpt_4_o_api_key: str.
724
741
 
725
742
  - do_not_unroll_columns: bool.
@@ -744,8 +761,12 @@ class AsyncParsingClient:
744
761
 
745
762
  - take_screenshot: bool.
746
763
 
764
+ - is_formatting_instruction: bool.
765
+
747
766
  - disable_ocr: bool.
748
767
 
768
+ - annotate_links: bool.
769
+
749
770
  - disable_reconstruction: bool.
750
771
 
751
772
  - input_s_3_path: str.
@@ -771,6 +792,7 @@ class AsyncParsingClient:
771
792
  "gpt4o_mode": gpt_4_o_mode,
772
793
  "fast_mode": fast_mode,
773
794
  "premium_mode": premium_mode,
795
+ "continuous_mode": continuous_mode,
774
796
  "gpt4o_api_key": gpt_4_o_api_key,
775
797
  "do_not_unroll_columns": do_not_unroll_columns,
776
798
  "page_separator": page_separator,
@@ -783,7 +805,9 @@ class AsyncParsingClient:
783
805
  "page_suffix": page_suffix,
784
806
  "webhook_url": webhook_url,
785
807
  "take_screenshot": take_screenshot,
808
+ "is_formatting_instruction": is_formatting_instruction,
786
809
  "disable_ocr": disable_ocr,
810
+ "annotate_links": annotate_links,
787
811
  "disable_reconstruction": disable_reconstruction,
788
812
  "input_s3_path": input_s_3_path,
789
813
  "output_s3_path_prefix": output_s_3_path_prefix,