llama-cloud 0.1.23__py3-none-any.whl → 0.1.24__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.

Potentially problematic release.


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

Files changed (88) hide show
  1. llama_cloud/__init__.py +6 -70
  2. llama_cloud/client.py +0 -3
  3. llama_cloud/resources/__init__.py +1 -20
  4. llama_cloud/resources/data_sources/__init__.py +2 -2
  5. llama_cloud/resources/data_sources/client.py +5 -5
  6. llama_cloud/resources/data_sources/types/__init__.py +1 -2
  7. llama_cloud/resources/files/__init__.py +0 -3
  8. llama_cloud/resources/files/client.py +18 -19
  9. llama_cloud/resources/jobs/client.py +8 -0
  10. llama_cloud/resources/llama_extract/__init__.py +0 -8
  11. llama_cloud/resources/llama_extract/client.py +92 -24
  12. llama_cloud/resources/llama_extract/types/__init__.py +0 -8
  13. llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema.py +2 -4
  14. llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema.py +2 -4
  15. llama_cloud/resources/llama_extract/types/extract_job_create_batch_data_schema_override.py +2 -4
  16. llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema.py +2 -4
  17. llama_cloud/resources/organizations/client.py +14 -4
  18. llama_cloud/resources/parsing/client.py +8 -0
  19. llama_cloud/resources/pipelines/__init__.py +0 -4
  20. llama_cloud/resources/pipelines/client.py +29 -20
  21. llama_cloud/resources/pipelines/types/__init__.py +0 -4
  22. llama_cloud/types/__init__.py +6 -50
  23. llama_cloud/types/composite_retrieval_result.py +5 -1
  24. llama_cloud/types/data_source.py +2 -2
  25. llama_cloud/types/data_source_create.py +2 -2
  26. llama_cloud/types/extract_agent.py +2 -4
  27. llama_cloud/types/extract_job_create_data_schema_override.py +2 -4
  28. llama_cloud/types/extract_models.py +20 -8
  29. llama_cloud/types/extract_resultset.py +2 -2
  30. llama_cloud/types/extract_resultset_data.py +2 -4
  31. llama_cloud/types/extract_run.py +3 -4
  32. llama_cloud/types/extract_run_data.py +2 -4
  33. llama_cloud/types/extract_schema_validate_response.py +2 -2
  34. llama_cloud/types/file.py +3 -4
  35. llama_cloud/types/{llm_config_result.py → file_id_presigned_url.py} +9 -5
  36. llama_cloud/types/json_type.py +9 -0
  37. llama_cloud/types/legacy_parse_job_config.py +1 -0
  38. llama_cloud/types/llama_extract_settings.py +3 -1
  39. llama_cloud/types/llama_parse_parameters.py +1 -0
  40. llama_cloud/types/page_figure_metadata.py +1 -0
  41. llama_cloud/types/{llm_configs_response.py → page_figure_node_with_score.py} +9 -4
  42. llama_cloud/types/parse_job_config.py +1 -0
  43. llama_cloud/types/pipeline_data_source.py +2 -2
  44. llama_cloud/types/pipeline_file.py +5 -8
  45. llama_cloud/types/pipeline_file_create.py +2 -2
  46. llama_cloud/types/preset_retrieval_params.py +8 -6
  47. llama_cloud/types/retrieve_results.py +5 -1
  48. llama_cloud/types/supported_llm_model_names.py +12 -4
  49. llama_cloud/types/user_organization_delete.py +1 -0
  50. {llama_cloud-0.1.23.dist-info → llama_cloud-0.1.24.dist-info}/METADATA +1 -1
  51. {llama_cloud-0.1.23.dist-info → llama_cloud-0.1.24.dist-info}/RECORD +53 -87
  52. llama_cloud/resources/admin/__init__.py +0 -2
  53. llama_cloud/resources/admin/client.py +0 -78
  54. llama_cloud/resources/data_sources/types/data_source_update_custom_metadata_value.py +0 -7
  55. llama_cloud/resources/files/types/__init__.py +0 -7
  56. llama_cloud/resources/files/types/file_create_from_url_resource_info_value.py +0 -7
  57. llama_cloud/resources/files/types/file_create_permission_info_value.py +0 -7
  58. llama_cloud/resources/files/types/file_create_resource_info_value.py +0 -5
  59. llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema_zero_value.py +0 -7
  60. llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema_zero_value.py +0 -7
  61. llama_cloud/resources/llama_extract/types/extract_job_create_batch_data_schema_override_zero_value.py +0 -7
  62. llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema_zero_value.py +0 -7
  63. llama_cloud/resources/pipelines/types/pipeline_file_update_custom_metadata_value.py +0 -7
  64. llama_cloud/resources/pipelines/types/retrieval_params_search_filters_inference_schema_value.py +0 -7
  65. llama_cloud/types/data_source_create_custom_metadata_value.py +0 -7
  66. llama_cloud/types/data_source_custom_metadata_value.py +0 -7
  67. llama_cloud/types/extract_agent_data_schema_value.py +0 -5
  68. llama_cloud/types/extract_job_create_data_schema_override_zero_value.py +0 -7
  69. llama_cloud/types/extract_resultset_data_item_value.py +0 -7
  70. llama_cloud/types/extract_resultset_data_zero_value.py +0 -7
  71. llama_cloud/types/extract_resultset_extraction_metadata_value.py +0 -7
  72. llama_cloud/types/extract_run_data_item_value.py +0 -5
  73. llama_cloud/types/extract_run_data_schema_value.py +0 -5
  74. llama_cloud/types/extract_run_data_zero_value.py +0 -5
  75. llama_cloud/types/extract_run_extraction_metadata_value.py +0 -7
  76. llama_cloud/types/extract_schema_validate_response_data_schema_value.py +0 -7
  77. llama_cloud/types/file_permission_info_value.py +0 -5
  78. llama_cloud/types/file_resource_info_value.py +0 -5
  79. llama_cloud/types/llm_config_result_llm_type.py +0 -33
  80. llama_cloud/types/pipeline_data_source_custom_metadata_value.py +0 -7
  81. llama_cloud/types/pipeline_file_config_hash_value.py +0 -5
  82. llama_cloud/types/pipeline_file_create_custom_metadata_value.py +0 -7
  83. llama_cloud/types/pipeline_file_custom_metadata_value.py +0 -7
  84. llama_cloud/types/pipeline_file_permission_info_value.py +0 -7
  85. llama_cloud/types/pipeline_file_resource_info_value.py +0 -7
  86. llama_cloud/types/preset_retrieval_params_search_filters_inference_schema_value.py +0 -7
  87. {llama_cloud-0.1.23.dist-info → llama_cloud-0.1.24.dist-info}/LICENSE +0 -0
  88. {llama_cloud-0.1.23.dist-info → llama_cloud-0.1.24.dist-info}/WHEEL +0 -0
llama_cloud/__init__.py CHANGED
@@ -69,8 +69,6 @@ from .types import (
69
69
  DataSourceComponent,
70
70
  DataSourceCreate,
71
71
  DataSourceCreateComponent,
72
- DataSourceCreateCustomMetadataValue,
73
- DataSourceCustomMetadataValue,
74
72
  DataSourceUpdateDispatcherConfig,
75
73
  DeleteParams,
76
74
  DocumentBlock,
@@ -99,35 +97,24 @@ from .types import (
99
97
  EmbeddingModelConfigUpdateEmbeddingConfig_VertexaiEmbedding,
100
98
  EvalExecutionParams,
101
99
  ExtractAgent,
102
- ExtractAgentDataSchemaValue,
103
100
  ExtractConfig,
104
101
  ExtractJob,
105
102
  ExtractJobCreate,
106
103
  ExtractJobCreateDataSchemaOverride,
107
- ExtractJobCreateDataSchemaOverrideZeroValue,
108
104
  ExtractMode,
109
105
  ExtractModels,
110
106
  ExtractResultset,
111
107
  ExtractResultsetData,
112
- ExtractResultsetDataItemValue,
113
- ExtractResultsetDataZeroValue,
114
- ExtractResultsetExtractionMetadataValue,
115
108
  ExtractRun,
116
109
  ExtractRunData,
117
- ExtractRunDataItemValue,
118
- ExtractRunDataSchemaValue,
119
- ExtractRunDataZeroValue,
120
- ExtractRunExtractionMetadataValue,
121
110
  ExtractSchemaValidateResponse,
122
- ExtractSchemaValidateResponseDataSchemaValue,
123
111
  ExtractState,
124
112
  ExtractTarget,
125
113
  FailPageMode,
126
114
  File,
127
115
  FileCountByStatusResponse,
116
+ FileIdPresignedUrl,
128
117
  FileParsePublic,
129
- FilePermissionInfoValue,
130
- FileResourceInfoValue,
131
118
  FilterCondition,
132
119
  FilterOperator,
133
120
  FreeCreditsUsage,
@@ -154,6 +141,7 @@ from .types import (
154
141
  JobRecordParameters_PipelineFileUpdater,
155
142
  JobRecordParameters_PipelineManagedIngestion,
156
143
  JobRecordWithUsageMetrics,
144
+ JsonType,
157
145
  LLamaParseTransformConfig,
158
146
  LegacyParseJobConfig,
159
147
  LlamaExtractSettings,
@@ -165,9 +153,6 @@ from .types import (
165
153
  LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Text,
166
154
  LlamaParseParameters,
167
155
  LlamaParseSupportedFileExtensions,
168
- LlmConfigResult,
169
- LlmConfigResultLlmType,
170
- LlmConfigsResponse,
171
156
  LlmModelData,
172
157
  LlmParameters,
173
158
  LoadFilesJobConfig,
@@ -188,6 +173,7 @@ from .types import (
188
173
  Organization,
189
174
  OrganizationCreate,
190
175
  PageFigureMetadata,
176
+ PageFigureNodeWithScore,
191
177
  PageScreenshotMetadata,
192
178
  PageScreenshotNodeWithScore,
193
179
  PageSegmentationConfig,
@@ -226,7 +212,6 @@ from .types import (
226
212
  PipelineDataSource,
227
213
  PipelineDataSourceComponent,
228
214
  PipelineDataSourceCreate,
229
- PipelineDataSourceCustomMetadataValue,
230
215
  PipelineDataSourceStatus,
231
216
  PipelineDeployment,
232
217
  PipelineEmbeddingConfig,
@@ -238,12 +223,7 @@ from .types import (
238
223
  PipelineEmbeddingConfig_OpenaiEmbedding,
239
224
  PipelineEmbeddingConfig_VertexaiEmbedding,
240
225
  PipelineFile,
241
- PipelineFileConfigHashValue,
242
226
  PipelineFileCreate,
243
- PipelineFileCreateCustomMetadataValue,
244
- PipelineFileCustomMetadataValue,
245
- PipelineFilePermissionInfoValue,
246
- PipelineFileResourceInfoValue,
247
227
  PipelineFileStatus,
248
228
  PipelineFileUpdateDispatcherConfig,
249
229
  PipelineFileUpdaterConfig,
@@ -259,7 +239,6 @@ from .types import (
259
239
  Pooling,
260
240
  PresetCompositeRetrievalParams,
261
241
  PresetRetrievalParams,
262
- PresetRetrievalParamsSearchFiltersInferenceSchemaValue,
263
242
  PresignedUrl,
264
243
  ProgressEvent,
265
244
  ProgressEventStatus,
@@ -327,7 +306,6 @@ from .errors import UnprocessableEntityError
327
306
  from .resources import (
328
307
  DataSinkUpdateComponent,
329
308
  DataSourceUpdateComponent,
330
- DataSourceUpdateCustomMetadataValue,
331
309
  EmbeddingModelConfigCreateEmbeddingConfig,
332
310
  EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding,
333
311
  EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding,
@@ -337,17 +315,9 @@ from .resources import (
337
315
  EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding,
338
316
  EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding,
339
317
  ExtractAgentCreateDataSchema,
340
- ExtractAgentCreateDataSchemaZeroValue,
341
318
  ExtractAgentUpdateDataSchema,
342
- ExtractAgentUpdateDataSchemaZeroValue,
343
319
  ExtractJobCreateBatchDataSchemaOverride,
344
- ExtractJobCreateBatchDataSchemaOverrideZeroValue,
345
320
  ExtractSchemaValidateRequestDataSchema,
346
- ExtractSchemaValidateRequestDataSchemaZeroValue,
347
- FileCreateFromUrlResourceInfoValue,
348
- FileCreatePermissionInfoValue,
349
- FileCreateResourceInfoValue,
350
- PipelineFileUpdateCustomMetadataValue,
351
321
  PipelineUpdateEmbeddingConfig,
352
322
  PipelineUpdateEmbeddingConfig_AzureEmbedding,
353
323
  PipelineUpdateEmbeddingConfig_BedrockEmbedding,
@@ -357,9 +327,7 @@ from .resources import (
357
327
  PipelineUpdateEmbeddingConfig_OpenaiEmbedding,
358
328
  PipelineUpdateEmbeddingConfig_VertexaiEmbedding,
359
329
  PipelineUpdateTransformConfig,
360
- RetrievalParamsSearchFiltersInferenceSchemaValue,
361
330
  UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction,
362
- admin,
363
331
  beta,
364
332
  chat_apps,
365
333
  data_sinks,
@@ -448,10 +416,7 @@ __all__ = [
448
416
  "DataSourceComponent",
449
417
  "DataSourceCreate",
450
418
  "DataSourceCreateComponent",
451
- "DataSourceCreateCustomMetadataValue",
452
- "DataSourceCustomMetadataValue",
453
419
  "DataSourceUpdateComponent",
454
- "DataSourceUpdateCustomMetadataValue",
455
420
  "DataSourceUpdateDispatcherConfig",
456
421
  "DeleteParams",
457
422
  "DocumentBlock",
@@ -489,45 +454,27 @@ __all__ = [
489
454
  "EvalExecutionParams",
490
455
  "ExtractAgent",
491
456
  "ExtractAgentCreateDataSchema",
492
- "ExtractAgentCreateDataSchemaZeroValue",
493
- "ExtractAgentDataSchemaValue",
494
457
  "ExtractAgentUpdateDataSchema",
495
- "ExtractAgentUpdateDataSchemaZeroValue",
496
458
  "ExtractConfig",
497
459
  "ExtractJob",
498
460
  "ExtractJobCreate",
499
461
  "ExtractJobCreateBatchDataSchemaOverride",
500
- "ExtractJobCreateBatchDataSchemaOverrideZeroValue",
501
462
  "ExtractJobCreateDataSchemaOverride",
502
- "ExtractJobCreateDataSchemaOverrideZeroValue",
503
463
  "ExtractMode",
504
464
  "ExtractModels",
505
465
  "ExtractResultset",
506
466
  "ExtractResultsetData",
507
- "ExtractResultsetDataItemValue",
508
- "ExtractResultsetDataZeroValue",
509
- "ExtractResultsetExtractionMetadataValue",
510
467
  "ExtractRun",
511
468
  "ExtractRunData",
512
- "ExtractRunDataItemValue",
513
- "ExtractRunDataSchemaValue",
514
- "ExtractRunDataZeroValue",
515
- "ExtractRunExtractionMetadataValue",
516
469
  "ExtractSchemaValidateRequestDataSchema",
517
- "ExtractSchemaValidateRequestDataSchemaZeroValue",
518
470
  "ExtractSchemaValidateResponse",
519
- "ExtractSchemaValidateResponseDataSchemaValue",
520
471
  "ExtractState",
521
472
  "ExtractTarget",
522
473
  "FailPageMode",
523
474
  "File",
524
475
  "FileCountByStatusResponse",
525
- "FileCreateFromUrlResourceInfoValue",
526
- "FileCreatePermissionInfoValue",
527
- "FileCreateResourceInfoValue",
476
+ "FileIdPresignedUrl",
528
477
  "FileParsePublic",
529
- "FilePermissionInfoValue",
530
- "FileResourceInfoValue",
531
478
  "FilterCondition",
532
479
  "FilterOperator",
533
480
  "FreeCreditsUsage",
@@ -554,6 +501,7 @@ __all__ = [
554
501
  "JobRecordParameters_PipelineFileUpdater",
555
502
  "JobRecordParameters_PipelineManagedIngestion",
556
503
  "JobRecordWithUsageMetrics",
504
+ "JsonType",
557
505
  "LLamaParseTransformConfig",
558
506
  "LegacyParseJobConfig",
559
507
  "LlamaCloudEnvironment",
@@ -566,9 +514,6 @@ __all__ = [
566
514
  "LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Text",
567
515
  "LlamaParseParameters",
568
516
  "LlamaParseSupportedFileExtensions",
569
- "LlmConfigResult",
570
- "LlmConfigResultLlmType",
571
- "LlmConfigsResponse",
572
517
  "LlmModelData",
573
518
  "LlmParameters",
574
519
  "LoadFilesJobConfig",
@@ -589,6 +534,7 @@ __all__ = [
589
534
  "Organization",
590
535
  "OrganizationCreate",
591
536
  "PageFigureMetadata",
537
+ "PageFigureNodeWithScore",
592
538
  "PageScreenshotMetadata",
593
539
  "PageScreenshotNodeWithScore",
594
540
  "PageSegmentationConfig",
@@ -627,7 +573,6 @@ __all__ = [
627
573
  "PipelineDataSource",
628
574
  "PipelineDataSourceComponent",
629
575
  "PipelineDataSourceCreate",
630
- "PipelineDataSourceCustomMetadataValue",
631
576
  "PipelineDataSourceStatus",
632
577
  "PipelineDeployment",
633
578
  "PipelineEmbeddingConfig",
@@ -639,14 +584,8 @@ __all__ = [
639
584
  "PipelineEmbeddingConfig_OpenaiEmbedding",
640
585
  "PipelineEmbeddingConfig_VertexaiEmbedding",
641
586
  "PipelineFile",
642
- "PipelineFileConfigHashValue",
643
587
  "PipelineFileCreate",
644
- "PipelineFileCreateCustomMetadataValue",
645
- "PipelineFileCustomMetadataValue",
646
- "PipelineFilePermissionInfoValue",
647
- "PipelineFileResourceInfoValue",
648
588
  "PipelineFileStatus",
649
- "PipelineFileUpdateCustomMetadataValue",
650
589
  "PipelineFileUpdateDispatcherConfig",
651
590
  "PipelineFileUpdaterConfig",
652
591
  "PipelineManagedIngestionJobParams",
@@ -670,7 +609,6 @@ __all__ = [
670
609
  "Pooling",
671
610
  "PresetCompositeRetrievalParams",
672
611
  "PresetRetrievalParams",
673
- "PresetRetrievalParamsSearchFiltersInferenceSchemaValue",
674
612
  "PresignedUrl",
675
613
  "ProgressEvent",
676
614
  "ProgressEventStatus",
@@ -701,7 +639,6 @@ __all__ = [
701
639
  "ReportStateEvent",
702
640
  "ReportUpdateEvent",
703
641
  "RetrievalMode",
704
- "RetrievalParamsSearchFiltersInferenceSchemaValue",
705
642
  "RetrieveResults",
706
643
  "Retriever",
707
644
  "RetrieverCreate",
@@ -736,7 +673,6 @@ __all__ = [
736
673
  "VertexAiEmbeddingConfig",
737
674
  "VertexEmbeddingMode",
738
675
  "VertexTextEmbedding",
739
- "admin",
740
676
  "beta",
741
677
  "chat_apps",
742
678
  "data_sinks",
llama_cloud/client.py CHANGED
@@ -6,7 +6,6 @@ import httpx
6
6
 
7
7
  from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
8
8
  from .environment import LlamaCloudEnvironment
9
- from .resources.admin.client import AdminClient, AsyncAdminClient
10
9
  from .resources.beta.client import AsyncBetaClient, BetaClient
11
10
  from .resources.chat_apps.client import AsyncChatAppsClient, ChatAppsClient
12
11
  from .resources.data_sinks.client import AsyncDataSinksClient, DataSinksClient
@@ -51,7 +50,6 @@ class LlamaCloud:
51
50
  self.evals = EvalsClient(client_wrapper=self._client_wrapper)
52
51
  self.parsing = ParsingClient(client_wrapper=self._client_wrapper)
53
52
  self.chat_apps = ChatAppsClient(client_wrapper=self._client_wrapper)
54
- self.admin = AdminClient(client_wrapper=self._client_wrapper)
55
53
  self.llama_extract = LlamaExtractClient(client_wrapper=self._client_wrapper)
56
54
  self.reports = ReportsClient(client_wrapper=self._client_wrapper)
57
55
  self.beta = BetaClient(client_wrapper=self._client_wrapper)
@@ -84,7 +82,6 @@ class AsyncLlamaCloud:
84
82
  self.evals = AsyncEvalsClient(client_wrapper=self._client_wrapper)
85
83
  self.parsing = AsyncParsingClient(client_wrapper=self._client_wrapper)
86
84
  self.chat_apps = AsyncChatAppsClient(client_wrapper=self._client_wrapper)
87
- self.admin = AsyncAdminClient(client_wrapper=self._client_wrapper)
88
85
  self.llama_extract = AsyncLlamaExtractClient(client_wrapper=self._client_wrapper)
89
86
  self.reports = AsyncReportsClient(client_wrapper=self._client_wrapper)
90
87
  self.beta = AsyncBetaClient(client_wrapper=self._client_wrapper)
@@ -1,7 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from . import (
4
- admin,
5
4
  beta,
6
5
  chat_apps,
7
6
  data_sinks,
@@ -19,7 +18,7 @@ from . import (
19
18
  retrievers,
20
19
  )
21
20
  from .data_sinks import DataSinkUpdateComponent
22
- from .data_sources import DataSourceUpdateComponent, DataSourceUpdateCustomMetadataValue
21
+ from .data_sources import DataSourceUpdateComponent
23
22
  from .embedding_model_configs import (
24
23
  EmbeddingModelConfigCreateEmbeddingConfig,
25
24
  EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding,
@@ -30,19 +29,13 @@ from .embedding_model_configs import (
30
29
  EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding,
31
30
  EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding,
32
31
  )
33
- from .files import FileCreateFromUrlResourceInfoValue, FileCreatePermissionInfoValue, FileCreateResourceInfoValue
34
32
  from .llama_extract import (
35
33
  ExtractAgentCreateDataSchema,
36
- ExtractAgentCreateDataSchemaZeroValue,
37
34
  ExtractAgentUpdateDataSchema,
38
- ExtractAgentUpdateDataSchemaZeroValue,
39
35
  ExtractJobCreateBatchDataSchemaOverride,
40
- ExtractJobCreateBatchDataSchemaOverrideZeroValue,
41
36
  ExtractSchemaValidateRequestDataSchema,
42
- ExtractSchemaValidateRequestDataSchemaZeroValue,
43
37
  )
44
38
  from .pipelines import (
45
- PipelineFileUpdateCustomMetadataValue,
46
39
  PipelineUpdateEmbeddingConfig,
47
40
  PipelineUpdateEmbeddingConfig_AzureEmbedding,
48
41
  PipelineUpdateEmbeddingConfig_BedrockEmbedding,
@@ -52,14 +45,12 @@ from .pipelines import (
52
45
  PipelineUpdateEmbeddingConfig_OpenaiEmbedding,
53
46
  PipelineUpdateEmbeddingConfig_VertexaiEmbedding,
54
47
  PipelineUpdateTransformConfig,
55
- RetrievalParamsSearchFiltersInferenceSchemaValue,
56
48
  )
57
49
  from .reports import UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction
58
50
 
59
51
  __all__ = [
60
52
  "DataSinkUpdateComponent",
61
53
  "DataSourceUpdateComponent",
62
- "DataSourceUpdateCustomMetadataValue",
63
54
  "EmbeddingModelConfigCreateEmbeddingConfig",
64
55
  "EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding",
65
56
  "EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding",
@@ -69,17 +60,9 @@ __all__ = [
69
60
  "EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding",
70
61
  "EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding",
71
62
  "ExtractAgentCreateDataSchema",
72
- "ExtractAgentCreateDataSchemaZeroValue",
73
63
  "ExtractAgentUpdateDataSchema",
74
- "ExtractAgentUpdateDataSchemaZeroValue",
75
64
  "ExtractJobCreateBatchDataSchemaOverride",
76
- "ExtractJobCreateBatchDataSchemaOverrideZeroValue",
77
65
  "ExtractSchemaValidateRequestDataSchema",
78
- "ExtractSchemaValidateRequestDataSchemaZeroValue",
79
- "FileCreateFromUrlResourceInfoValue",
80
- "FileCreatePermissionInfoValue",
81
- "FileCreateResourceInfoValue",
82
- "PipelineFileUpdateCustomMetadataValue",
83
66
  "PipelineUpdateEmbeddingConfig",
84
67
  "PipelineUpdateEmbeddingConfig_AzureEmbedding",
85
68
  "PipelineUpdateEmbeddingConfig_BedrockEmbedding",
@@ -89,9 +72,7 @@ __all__ = [
89
72
  "PipelineUpdateEmbeddingConfig_OpenaiEmbedding",
90
73
  "PipelineUpdateEmbeddingConfig_VertexaiEmbedding",
91
74
  "PipelineUpdateTransformConfig",
92
- "RetrievalParamsSearchFiltersInferenceSchemaValue",
93
75
  "UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction",
94
- "admin",
95
76
  "beta",
96
77
  "chat_apps",
97
78
  "data_sinks",
@@ -1,5 +1,5 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from .types import DataSourceUpdateComponent, DataSourceUpdateCustomMetadataValue
3
+ from .types import DataSourceUpdateComponent
4
4
 
5
- __all__ = ["DataSourceUpdateComponent", "DataSourceUpdateCustomMetadataValue"]
5
+ __all__ = ["DataSourceUpdateComponent"]
@@ -13,8 +13,8 @@ from ...types.configurable_data_source_names import ConfigurableDataSourceNames
13
13
  from ...types.data_source import DataSource
14
14
  from ...types.data_source_create import DataSourceCreate
15
15
  from ...types.http_validation_error import HttpValidationError
16
+ from ...types.json_type import JsonType
16
17
  from .types.data_source_update_component import DataSourceUpdateComponent
17
- from .types.data_source_update_custom_metadata_value import DataSourceUpdateCustomMetadataValue
18
18
 
19
19
  try:
20
20
  import pydantic
@@ -203,7 +203,7 @@ class DataSourcesClient:
203
203
  *,
204
204
  name: typing.Optional[str] = OMIT,
205
205
  source_type: ConfigurableDataSourceNames,
206
- custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[DataSourceUpdateCustomMetadataValue]]] = OMIT,
206
+ custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
207
207
  component: typing.Optional[DataSourceUpdateComponent] = OMIT,
208
208
  ) -> DataSource:
209
209
  """
@@ -216,7 +216,7 @@ class DataSourcesClient:
216
216
 
217
217
  - source_type: ConfigurableDataSourceNames.
218
218
 
219
- - custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[DataSourceUpdateCustomMetadataValue]]].
219
+ - custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
220
220
 
221
221
  - component: typing.Optional[DataSourceUpdateComponent]. Component that implements the data source
222
222
  ---
@@ -463,7 +463,7 @@ class AsyncDataSourcesClient:
463
463
  *,
464
464
  name: typing.Optional[str] = OMIT,
465
465
  source_type: ConfigurableDataSourceNames,
466
- custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[DataSourceUpdateCustomMetadataValue]]] = OMIT,
466
+ custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
467
467
  component: typing.Optional[DataSourceUpdateComponent] = OMIT,
468
468
  ) -> DataSource:
469
469
  """
@@ -476,7 +476,7 @@ class AsyncDataSourcesClient:
476
476
 
477
477
  - source_type: ConfigurableDataSourceNames.
478
478
 
479
- - custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[DataSourceUpdateCustomMetadataValue]]].
479
+ - custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
480
480
 
481
481
  - component: typing.Optional[DataSourceUpdateComponent]. Component that implements the data source
482
482
  ---
@@ -1,6 +1,5 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from .data_source_update_component import DataSourceUpdateComponent
4
- from .data_source_update_custom_metadata_value import DataSourceUpdateCustomMetadataValue
5
4
 
6
- __all__ = ["DataSourceUpdateComponent", "DataSourceUpdateCustomMetadataValue"]
5
+ __all__ = ["DataSourceUpdateComponent"]
@@ -1,5 +1,2 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from .types import FileCreateFromUrlResourceInfoValue, FileCreatePermissionInfoValue, FileCreateResourceInfoValue
4
-
5
- __all__ = ["FileCreateFromUrlResourceInfoValue", "FileCreatePermissionInfoValue", "FileCreateResourceInfoValue"]
@@ -11,13 +11,12 @@ from ...core.jsonable_encoder import jsonable_encoder
11
11
  from ...core.remove_none_from_dict import remove_none_from_dict
12
12
  from ...errors.unprocessable_entity_error import UnprocessableEntityError
13
13
  from ...types.file import File
14
+ from ...types.file_id_presigned_url import FileIdPresignedUrl
14
15
  from ...types.http_validation_error import HttpValidationError
16
+ from ...types.json_type import JsonType
15
17
  from ...types.page_figure_metadata import PageFigureMetadata
16
18
  from ...types.page_screenshot_metadata import PageScreenshotMetadata
17
19
  from ...types.presigned_url import PresignedUrl
18
- from .types.file_create_from_url_resource_info_value import FileCreateFromUrlResourceInfoValue
19
- from .types.file_create_permission_info_value import FileCreatePermissionInfoValue
20
- from .types.file_create_resource_info_value import FileCreateResourceInfoValue
21
20
 
22
21
  try:
23
22
  import pydantic
@@ -199,10 +198,10 @@ class FilesClient:
199
198
  external_file_id: typing.Optional[str] = OMIT,
200
199
  file_size: typing.Optional[int] = OMIT,
201
200
  last_modified_at: typing.Optional[dt.datetime] = OMIT,
202
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateResourceInfoValue]]] = OMIT,
203
- permission_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreatePermissionInfoValue]]] = OMIT,
201
+ resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
202
+ permission_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
204
203
  data_source_id: typing.Optional[str] = OMIT,
205
- ) -> PresignedUrl:
204
+ ) -> FileIdPresignedUrl:
206
205
  """
207
206
  Create a presigned url for uploading a file.
208
207
 
@@ -221,9 +220,9 @@ class FilesClient:
221
220
 
222
221
  - last_modified_at: typing.Optional[dt.datetime].
223
222
 
224
- - resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateResourceInfoValue]]].
223
+ - resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
225
224
 
226
- - permission_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreatePermissionInfoValue]]].
225
+ - permission_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
227
226
 
228
227
  - data_source_id: typing.Optional[str].
229
228
  ---
@@ -260,7 +259,7 @@ class FilesClient:
260
259
  timeout=60,
261
260
  )
262
261
  if 200 <= _response.status_code < 300:
263
- return pydantic.parse_obj_as(PresignedUrl, _response.json()) # type: ignore
262
+ return pydantic.parse_obj_as(FileIdPresignedUrl, _response.json()) # type: ignore
264
263
  if _response.status_code == 422:
265
264
  raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
266
265
  try:
@@ -315,7 +314,7 @@ class FilesClient:
315
314
  request_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
316
315
  verify_ssl: typing.Optional[bool] = OMIT,
317
316
  follow_redirects: typing.Optional[bool] = OMIT,
318
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateFromUrlResourceInfoValue]]] = OMIT,
317
+ resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
319
318
  ) -> File:
320
319
  """
321
320
  Upload a file to the project from a URL.
@@ -344,7 +343,7 @@ class FilesClient:
344
343
 
345
344
  - follow_redirects: typing.Optional[bool]. Whether to follow redirects when downloading the file
346
345
 
347
- - resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateFromUrlResourceInfoValue]]].
346
+ - resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
348
347
  ---
349
348
  from llama_cloud.client import LlamaCloud
350
349
 
@@ -826,10 +825,10 @@ class AsyncFilesClient:
826
825
  external_file_id: typing.Optional[str] = OMIT,
827
826
  file_size: typing.Optional[int] = OMIT,
828
827
  last_modified_at: typing.Optional[dt.datetime] = OMIT,
829
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateResourceInfoValue]]] = OMIT,
830
- permission_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreatePermissionInfoValue]]] = OMIT,
828
+ resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
829
+ permission_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
831
830
  data_source_id: typing.Optional[str] = OMIT,
832
- ) -> PresignedUrl:
831
+ ) -> FileIdPresignedUrl:
833
832
  """
834
833
  Create a presigned url for uploading a file.
835
834
 
@@ -848,9 +847,9 @@ class AsyncFilesClient:
848
847
 
849
848
  - last_modified_at: typing.Optional[dt.datetime].
850
849
 
851
- - resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateResourceInfoValue]]].
850
+ - resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
852
851
 
853
- - permission_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreatePermissionInfoValue]]].
852
+ - permission_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
854
853
 
855
854
  - data_source_id: typing.Optional[str].
856
855
  ---
@@ -887,7 +886,7 @@ class AsyncFilesClient:
887
886
  timeout=60,
888
887
  )
889
888
  if 200 <= _response.status_code < 300:
890
- return pydantic.parse_obj_as(PresignedUrl, _response.json()) # type: ignore
889
+ return pydantic.parse_obj_as(FileIdPresignedUrl, _response.json()) # type: ignore
891
890
  if _response.status_code == 422:
892
891
  raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
893
892
  try:
@@ -942,7 +941,7 @@ class AsyncFilesClient:
942
941
  request_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
943
942
  verify_ssl: typing.Optional[bool] = OMIT,
944
943
  follow_redirects: typing.Optional[bool] = OMIT,
945
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateFromUrlResourceInfoValue]]] = OMIT,
944
+ resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
946
945
  ) -> File:
947
946
  """
948
947
  Upload a file to the project from a URL.
@@ -971,7 +970,7 @@ class AsyncFilesClient:
971
970
 
972
971
  - follow_redirects: typing.Optional[bool]. Whether to follow redirects when downloading the file
973
972
 
974
- - resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateFromUrlResourceInfoValue]]].
973
+ - resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
975
974
  ---
976
975
  from llama_cloud.client import AsyncLlamaCloud
977
976
 
@@ -30,6 +30,7 @@ class JobsClient:
30
30
  job_name: typing.Optional[str] = None,
31
31
  limit: typing.Optional[int] = None,
32
32
  offset: typing.Optional[int] = None,
33
+ sort: typing.Optional[str] = None,
33
34
  include_usage_metrics: typing.Optional[bool] = None,
34
35
  project_id: typing.Optional[str] = None,
35
36
  organization_id: typing.Optional[str] = None,
@@ -48,6 +49,8 @@ class JobsClient:
48
49
 
49
50
  - offset: typing.Optional[int].
50
51
 
52
+ - sort: typing.Optional[str].
53
+
51
54
  - include_usage_metrics: typing.Optional[bool]. Deprecated: This parameter is no longer supported as we've moved to usage v2. It will be removed in a future version.
52
55
 
53
56
  - project_id: typing.Optional[str].
@@ -69,6 +72,7 @@ class JobsClient:
69
72
  "job_name": job_name,
70
73
  "limit": limit,
71
74
  "offset": offset,
75
+ "sort": sort,
72
76
  "include_usage_metrics": include_usage_metrics,
73
77
  "project_id": project_id,
74
78
  "organization_id": organization_id,
@@ -98,6 +102,7 @@ class AsyncJobsClient:
98
102
  job_name: typing.Optional[str] = None,
99
103
  limit: typing.Optional[int] = None,
100
104
  offset: typing.Optional[int] = None,
105
+ sort: typing.Optional[str] = None,
101
106
  include_usage_metrics: typing.Optional[bool] = None,
102
107
  project_id: typing.Optional[str] = None,
103
108
  organization_id: typing.Optional[str] = None,
@@ -116,6 +121,8 @@ class AsyncJobsClient:
116
121
 
117
122
  - offset: typing.Optional[int].
118
123
 
124
+ - sort: typing.Optional[str].
125
+
119
126
  - include_usage_metrics: typing.Optional[bool]. Deprecated: This parameter is no longer supported as we've moved to usage v2. It will be removed in a future version.
120
127
 
121
128
  - project_id: typing.Optional[str].
@@ -137,6 +144,7 @@ class AsyncJobsClient:
137
144
  "job_name": job_name,
138
145
  "limit": limit,
139
146
  "offset": offset,
147
+ "sort": sort,
140
148
  "include_usage_metrics": include_usage_metrics,
141
149
  "project_id": project_id,
142
150
  "organization_id": organization_id,
@@ -2,22 +2,14 @@
2
2
 
3
3
  from .types import (
4
4
  ExtractAgentCreateDataSchema,
5
- ExtractAgentCreateDataSchemaZeroValue,
6
5
  ExtractAgentUpdateDataSchema,
7
- ExtractAgentUpdateDataSchemaZeroValue,
8
6
  ExtractJobCreateBatchDataSchemaOverride,
9
- ExtractJobCreateBatchDataSchemaOverrideZeroValue,
10
7
  ExtractSchemaValidateRequestDataSchema,
11
- ExtractSchemaValidateRequestDataSchemaZeroValue,
12
8
  )
13
9
 
14
10
  __all__ = [
15
11
  "ExtractAgentCreateDataSchema",
16
- "ExtractAgentCreateDataSchemaZeroValue",
17
12
  "ExtractAgentUpdateDataSchema",
18
- "ExtractAgentUpdateDataSchemaZeroValue",
19
13
  "ExtractJobCreateBatchDataSchemaOverride",
20
- "ExtractJobCreateBatchDataSchemaOverrideZeroValue",
21
14
  "ExtractSchemaValidateRequestDataSchema",
22
- "ExtractSchemaValidateRequestDataSchemaZeroValue",
23
15
  ]