percidian 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. percidian/__init__.py +701 -0
  2. percidian/_default_clients.py +30 -0
  3. percidian/base_client.py +1007 -0
  4. percidian/batches/__init__.py +34 -0
  5. percidian/batches/client.py +505 -0
  6. percidian/batches/raw_client.py +1004 -0
  7. percidian/batches/types/__init__.py +34 -0
  8. percidian/batches/types/create_batches_request_endpoint.py +5 -0
  9. percidian/client.py +158 -0
  10. percidian/core/__init__.py +135 -0
  11. percidian/core/api_error.py +23 -0
  12. percidian/core/client_wrapper.py +140 -0
  13. percidian/core/datetime_utils.py +70 -0
  14. percidian/core/file.py +96 -0
  15. percidian/core/force_multipart.py +18 -0
  16. percidian/core/http_client.py +1047 -0
  17. percidian/core/http_response.py +63 -0
  18. percidian/core/http_sse/__init__.py +42 -0
  19. percidian/core/http_sse/_api.py +480 -0
  20. percidian/core/http_sse/_decoders.py +99 -0
  21. percidian/core/http_sse/_exceptions.py +32 -0
  22. percidian/core/http_sse/_models.py +42 -0
  23. percidian/core/idempotency.py +7 -0
  24. percidian/core/jsonable_encoder.py +170 -0
  25. percidian/core/logging.py +107 -0
  26. percidian/core/pagination.py +165 -0
  27. percidian/core/parse_error.py +36 -0
  28. percidian/core/pydantic_utilities.py +540 -0
  29. percidian/core/query_encoder.py +58 -0
  30. percidian/core/remove_none_from_dict.py +11 -0
  31. percidian/core/request_options.py +43 -0
  32. percidian/core/serialization.py +347 -0
  33. percidian/environment.py +7 -0
  34. percidian/errors/__init__.py +68 -0
  35. percidian/errors/bad_request_error.py +11 -0
  36. percidian/errors/conflict_error.py +11 -0
  37. percidian/errors/content_too_large_error.py +11 -0
  38. percidian/errors/forbidden_error.py +11 -0
  39. percidian/errors/gone_error.py +11 -0
  40. percidian/errors/not_found_error.py +11 -0
  41. percidian/errors/payment_required_error.py +11 -0
  42. percidian/errors/service_unavailable_error.py +11 -0
  43. percidian/errors/too_many_requests_error.py +11 -0
  44. percidian/errors/unauthorized_error.py +11 -0
  45. percidian/errors/unsupported_media_type_error.py +11 -0
  46. percidian/jobs/__init__.py +34 -0
  47. percidian/jobs/client.py +473 -0
  48. percidian/jobs/raw_client.py +845 -0
  49. percidian/jobs/types/__init__.py +38 -0
  50. percidian/jobs/types/get_result_jobs_response.py +9 -0
  51. percidian/jobs/types/list_jobs_request_status.py +5 -0
  52. percidian/limits/__init__.py +4 -0
  53. percidian/limits/client.py +187 -0
  54. percidian/limits/raw_client.py +277 -0
  55. percidian/ontologies/__init__.py +4 -0
  56. percidian/ontologies/client.py +558 -0
  57. percidian/ontologies/raw_client.py +864 -0
  58. percidian/py.typed +0 -0
  59. percidian/raw_base_client.py +1228 -0
  60. percidian/types/__init__.py +612 -0
  61. percidian/types/batch.py +82 -0
  62. percidian/types/batch_counts.py +51 -0
  63. percidian/types/batch_endpoint.py +5 -0
  64. percidian/types/batch_links.py +35 -0
  65. percidian/types/batch_list.py +34 -0
  66. percidian/types/batch_list_object.py +5 -0
  67. percidian/types/batch_object.py +5 -0
  68. percidian/types/batch_request.py +44 -0
  69. percidian/types/batch_request_body.py +8 -0
  70. percidian/types/batch_request_method.py +5 -0
  71. percidian/types/batch_request_url.py +5 -0
  72. percidian/types/batch_result.py +50 -0
  73. percidian/types/batch_result_error.py +31 -0
  74. percidian/types/batch_result_result.py +71 -0
  75. percidian/types/batch_result_status.py +5 -0
  76. percidian/types/batch_status.py +5 -0
  77. percidian/types/batch_webhook.py +32 -0
  78. percidian/types/batch_webhook_event.py +50 -0
  79. percidian/types/batch_webhook_event_object.py +5 -0
  80. percidian/types/batch_webhook_event_type.py +5 -0
  81. percidian/types/batch_webhook_state.py +5 -0
  82. percidian/types/cache.py +5 -0
  83. percidian/types/citation.py +52 -0
  84. percidian/types/citation_unit.py +5 -0
  85. percidian/types/confidence.py +24 -0
  86. percidian/types/csv_table.py +5 -0
  87. percidian/types/edge.py +68 -0
  88. percidian/types/endpoint_event.py +45 -0
  89. percidian/types/endpoint_event_object.py +5 -0
  90. percidian/types/endpoint_event_type.py +7 -0
  91. percidian/types/error.py +23 -0
  92. percidian/types/error_error.py +52 -0
  93. percidian/types/error_error_code.py +123 -0
  94. percidian/types/error_error_limit.py +5 -0
  95. percidian/types/extract_response.py +8 -0
  96. percidian/types/extract_text.py +49 -0
  97. percidian/types/failure_class.py +5 -0
  98. percidian/types/field_answer.py +33 -0
  99. percidian/types/field_answer_type.py +5 -0
  100. percidian/types/field_spec.py +40 -0
  101. percidian/types/field_spec_columns_value.py +28 -0
  102. percidian/types/field_spec_columns_value_type.py +5 -0
  103. percidian/types/field_spec_items.py +5 -0
  104. percidian/types/field_spec_type.py +5 -0
  105. percidian/types/fields.py +10 -0
  106. percidian/types/fields_result.py +67 -0
  107. percidian/types/fields_result_fields_value.py +9 -0
  108. percidian/types/fields_result_object.py +5 -0
  109. percidian/types/fields_result_status.py +5 -0
  110. percidian/types/instructions.py +8 -0
  111. percidian/types/job.py +89 -0
  112. percidian/types/job_accepted.py +28 -0
  113. percidian/types/job_accepted_links.py +35 -0
  114. percidian/types/job_error.py +31 -0
  115. percidian/types/job_format.py +5 -0
  116. percidian/types/job_input.py +58 -0
  117. percidian/types/job_input_object.py +5 -0
  118. percidian/types/job_list.py +34 -0
  119. percidian/types/job_list_item.py +72 -0
  120. percidian/types/job_list_item_object.py +5 -0
  121. percidian/types/job_list_item_source.py +27 -0
  122. percidian/types/job_list_item_source_kind.py +5 -0
  123. percidian/types/job_list_item_status.py +5 -0
  124. percidian/types/job_list_object.py +5 -0
  125. percidian/types/job_object.py +5 -0
  126. percidian/types/job_status.py +5 -0
  127. percidian/types/job_table.py +5 -0
  128. percidian/types/job_webhook.py +32 -0
  129. percidian/types/job_webhook_state.py +5 -0
  130. percidian/types/limits.py +65 -0
  131. percidian/types/limits_balance.py +31 -0
  132. percidian/types/limits_credit.py +5 -0
  133. percidian/types/limits_limits.py +41 -0
  134. percidian/types/limits_models_item.py +46 -0
  135. percidian/types/limits_models_item_limits.py +41 -0
  136. percidian/types/limits_models_item_remaining.py +41 -0
  137. percidian/types/limits_models_item_reset.py +31 -0
  138. percidian/types/limits_models_item_used.py +41 -0
  139. percidian/types/limits_object.py +5 -0
  140. percidian/types/limits_remaining.py +41 -0
  141. percidian/types/limits_reset.py +31 -0
  142. percidian/types/list_answer.py +32 -0
  143. percidian/types/list_answer_items_item.py +24 -0
  144. percidian/types/list_answer_type.py +5 -0
  145. percidian/types/match_node.py +63 -0
  146. percidian/types/match_node_citations_item.py +22 -0
  147. percidian/types/match_node_relations_item.py +33 -0
  148. percidian/types/match_node_relations_item_direction.py +5 -0
  149. percidian/types/match_request.py +29 -0
  150. percidian/types/match_response.py +51 -0
  151. percidian/types/match_response_object.py +5 -0
  152. percidian/types/match_response_results_item.py +24 -0
  153. percidian/types/match_response_results_item_matches_item.py +45 -0
  154. percidian/types/match_response_results_item_matches_item_outcome.py +5 -0
  155. percidian/types/match_veto.py +32 -0
  156. percidian/types/match_veto_code.py +5 -0
  157. percidian/types/metadata.py +8 -0
  158. percidian/types/model.py +6 -0
  159. percidian/types/neo4j_graph.py +33 -0
  160. percidian/types/neo4j_graph_nodes_item.py +32 -0
  161. percidian/types/neo4j_graph_relationships_item.py +37 -0
  162. percidian/types/node.py +59 -0
  163. percidian/types/node_properties_value.py +24 -0
  164. percidian/types/node_type.py +43 -0
  165. percidian/types/ontology.py +38 -0
  166. percidian/types/ontology_detail.py +21 -0
  167. percidian/types/ontology_list.py +40 -0
  168. percidian/types/ontology_list_object.py +5 -0
  169. percidian/types/ontology_list_storage.py +36 -0
  170. percidian/types/ontology_ref.py +8 -0
  171. percidian/types/ontology_summary.py +74 -0
  172. percidian/types/ontology_summary_object.py +5 -0
  173. percidian/types/ontology_versions.py +29 -0
  174. percidian/types/ontology_versions_data_item.py +23 -0
  175. percidian/types/ontology_versions_object.py +5 -0
  176. percidian/types/predicate.py +37 -0
  177. percidian/types/property_definition.py +38 -0
  178. percidian/types/property_definition_type.py +7 -0
  179. percidian/types/proposal.py +34 -0
  180. percidian/types/proposal_candidate.py +8 -0
  181. percidian/types/proposal_existing_item.py +8 -0
  182. percidian/types/proposal_existing_item_zero.py +63 -0
  183. percidian/types/proposal_existing_item_zero_citations_item.py +22 -0
  184. percidian/types/proposal_existing_item_zero_relations_item.py +33 -0
  185. percidian/types/proposal_existing_item_zero_relations_item_direction.py +5 -0
  186. percidian/types/rate_limited_error.py +23 -0
  187. percidian/types/rate_limited_error_error.py +52 -0
  188. percidian/types/rate_limited_error_error_code.py +5 -0
  189. percidian/types/rate_limited_error_error_limit.py +5 -0
  190. percidian/types/result.py +73 -0
  191. percidian/types/result_details.py +44 -0
  192. percidian/types/result_details_cache.py +5 -0
  193. percidian/types/result_details_citation_boxes.py +5 -0
  194. percidian/types/result_details_ontology.py +33 -0
  195. percidian/types/result_format.py +5 -0
  196. percidian/types/result_graph.py +33 -0
  197. percidian/types/result_object.py +5 -0
  198. percidian/types/result_status.py +5 -0
  199. percidian/types/table_answer.py +32 -0
  200. percidian/types/table_answer_type.py +5 -0
  201. percidian/types/table_cell.py +28 -0
  202. percidian/types/text_block.py +31 -0
  203. percidian/types/text_page.py +8 -0
  204. percidian/types/text_page_blocks.py +23 -0
  205. percidian/types/text_page_text.py +22 -0
  206. percidian/types/transactions.py +40 -0
  207. percidian/types/transactions_currency.py +5 -0
  208. percidian/types/transactions_data_item.py +56 -0
  209. percidian/types/transactions_data_item_object.py +5 -0
  210. percidian/types/transactions_data_item_type.py +7 -0
  211. percidian/types/transactions_object.py +5 -0
  212. percidian/types/typed_ref.py +31 -0
  213. percidian/types/unresolved.py +46 -0
  214. percidian/types/usage.py +31 -0
  215. percidian/types/usage_line.py +48 -0
  216. percidian/types/usage_line_purpose.py +5 -0
  217. percidian/types/usage_period.py +44 -0
  218. percidian/types/usage_report.py +55 -0
  219. percidian/types/usage_report_group_by.py +5 -0
  220. percidian/types/usage_report_object.py +5 -0
  221. percidian/types/webhook_attempt.py +40 -0
  222. percidian/types/webhook_attempt_error.py +7 -0
  223. percidian/types/webhook_attempt_request.py +22 -0
  224. percidian/types/webhook_attempt_trigger.py +5 -0
  225. percidian/types/webhook_delivery.py +69 -0
  226. percidian/types/webhook_delivery_detail.py +25 -0
  227. percidian/types/webhook_delivery_event_type.py +7 -0
  228. percidian/types/webhook_delivery_last_error.py +20 -0
  229. percidian/types/webhook_delivery_list.py +26 -0
  230. percidian/types/webhook_delivery_list_object.py +5 -0
  231. percidian/types/webhook_delivery_object.py +5 -0
  232. percidian/types/webhook_delivery_status.py +5 -0
  233. percidian/types/webhook_endpoint.py +61 -0
  234. percidian/types/webhook_endpoint_disabled_reason.py +5 -0
  235. percidian/types/webhook_endpoint_event_types_item.py +5 -0
  236. percidian/types/webhook_endpoint_list.py +22 -0
  237. percidian/types/webhook_endpoint_list_object.py +5 -0
  238. percidian/types/webhook_endpoint_object.py +5 -0
  239. percidian/types/webhook_endpoint_secret.py +39 -0
  240. percidian/types/webhook_endpoint_secret_object.py +5 -0
  241. percidian/types/webhook_event.py +52 -0
  242. percidian/types/webhook_event_object.py +5 -0
  243. percidian/types/webhook_event_type.py +5 -0
  244. percidian/types/webhook_recovery.py +36 -0
  245. percidian/types/webhook_recovery_object.py +5 -0
  246. percidian/types/webhook_test.py +48 -0
  247. percidian/types/webhook_test_error.py +7 -0
  248. percidian/types/webhook_test_object.py +5 -0
  249. percidian/types/webhook_test_request.py +30 -0
  250. percidian/types/webhook_test_request_method.py +5 -0
  251. percidian/types/webhook_url.py +8 -0
  252. percidian/usage/__init__.py +34 -0
  253. percidian/usage/client.py +134 -0
  254. percidian/usage/raw_client.py +236 -0
  255. percidian/usage/types/__init__.py +34 -0
  256. percidian/usage/types/get_usage_request_group_by.py +5 -0
  257. percidian/version.py +3 -0
  258. percidian/webhook_signature.py +59 -0
  259. percidian/webhooks/__init__.py +61 -0
  260. percidian/webhooks/client.py +144 -0
  261. percidian/webhooks/deliveries/__init__.py +37 -0
  262. percidian/webhooks/deliveries/client.py +342 -0
  263. percidian/webhooks/deliveries/raw_client.py +622 -0
  264. percidian/webhooks/deliveries/types/__init__.py +38 -0
  265. percidian/webhooks/deliveries/types/list_deliveries_request_event_type.py +7 -0
  266. percidian/webhooks/deliveries/types/list_deliveries_request_status.py +5 -0
  267. percidian/webhooks/endpoints/__init__.py +38 -0
  268. percidian/webhooks/endpoints/client.py +804 -0
  269. percidian/webhooks/endpoints/raw_client.py +1777 -0
  270. percidian/webhooks/endpoints/types/__init__.py +40 -0
  271. percidian/webhooks/endpoints/types/test_endpoints_request_type.py +7 -0
  272. percidian/webhooks/endpoints/types/webhook_endpoint_input_event_types_item.py +7 -0
  273. percidian/webhooks/endpoints/types/webhook_endpoint_update_event_types_item.py +7 -0
  274. percidian/webhooks/raw_client.py +150 -0
  275. percidian/webhooks/types/__init__.py +38 -0
  276. percidian/webhooks/types/get_secret_webhooks_response.py +28 -0
  277. percidian/webhooks/types/get_secret_webhooks_response_object.py +5 -0
  278. percidian-0.1.0.dist-info/METADATA +129 -0
  279. percidian-0.1.0.dist-info/RECORD +281 -0
  280. percidian-0.1.0.dist-info/WHEEL +4 -0
  281. percidian-0.1.0.dist-info/licenses/LICENSE +201 -0
percidian/__init__.py ADDED
@@ -0,0 +1,701 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ import typing
6
+ from importlib import import_module
7
+
8
+ if typing.TYPE_CHECKING:
9
+ from .types import (
10
+ Batch,
11
+ BatchCounts,
12
+ BatchEndpoint,
13
+ BatchLinks,
14
+ BatchList,
15
+ BatchListObject,
16
+ BatchObject,
17
+ BatchRequest,
18
+ BatchRequestBody,
19
+ BatchRequestMethod,
20
+ BatchRequestUrl,
21
+ BatchResult,
22
+ BatchResultError,
23
+ BatchResultResult,
24
+ BatchResultResult_Match,
25
+ BatchResultResult_Result,
26
+ BatchResultStatus,
27
+ BatchStatus,
28
+ BatchWebhook,
29
+ BatchWebhookEvent,
30
+ BatchWebhookEventObject,
31
+ BatchWebhookEventType,
32
+ BatchWebhookState,
33
+ Cache,
34
+ Citation,
35
+ CitationUnit,
36
+ Confidence,
37
+ CsvTable,
38
+ Edge,
39
+ EndpointEvent,
40
+ EndpointEventObject,
41
+ EndpointEventType,
42
+ Error,
43
+ ErrorError,
44
+ ErrorErrorCode,
45
+ ErrorErrorLimit,
46
+ ExtractResponse,
47
+ ExtractText,
48
+ FailureClass,
49
+ FieldAnswer,
50
+ FieldAnswerType,
51
+ FieldSpec,
52
+ FieldSpecColumnsValue,
53
+ FieldSpecColumnsValueType,
54
+ FieldSpecItems,
55
+ FieldSpecType,
56
+ Fields,
57
+ FieldsResult,
58
+ FieldsResultFieldsValue,
59
+ FieldsResultObject,
60
+ FieldsResultStatus,
61
+ Instructions,
62
+ Job,
63
+ JobAccepted,
64
+ JobAcceptedLinks,
65
+ JobError,
66
+ JobFormat,
67
+ JobInput,
68
+ JobInputObject,
69
+ JobList,
70
+ JobListItem,
71
+ JobListItemObject,
72
+ JobListItemSource,
73
+ JobListItemSourceKind,
74
+ JobListItemStatus,
75
+ JobListObject,
76
+ JobObject,
77
+ JobStatus,
78
+ JobTable,
79
+ JobWebhook,
80
+ JobWebhookState,
81
+ Limits,
82
+ LimitsBalance,
83
+ LimitsCredit,
84
+ LimitsLimits,
85
+ LimitsModelsItem,
86
+ LimitsModelsItemLimits,
87
+ LimitsModelsItemRemaining,
88
+ LimitsModelsItemReset,
89
+ LimitsModelsItemUsed,
90
+ LimitsObject,
91
+ LimitsRemaining,
92
+ LimitsReset,
93
+ ListAnswer,
94
+ ListAnswerItemsItem,
95
+ ListAnswerType,
96
+ MatchNode,
97
+ MatchNodeCitationsItem,
98
+ MatchNodeRelationsItem,
99
+ MatchNodeRelationsItemDirection,
100
+ MatchRequest,
101
+ MatchResponse,
102
+ MatchResponseObject,
103
+ MatchResponseResultsItem,
104
+ MatchResponseResultsItemMatchesItem,
105
+ MatchResponseResultsItemMatchesItemOutcome,
106
+ MatchVeto,
107
+ MatchVetoCode,
108
+ Metadata,
109
+ Model,
110
+ Neo4JGraph,
111
+ Neo4JGraphNodesItem,
112
+ Neo4JGraphRelationshipsItem,
113
+ Node,
114
+ NodePropertiesValue,
115
+ NodeType,
116
+ Ontology,
117
+ OntologyDetail,
118
+ OntologyList,
119
+ OntologyListObject,
120
+ OntologyListStorage,
121
+ OntologyRef,
122
+ OntologySummary,
123
+ OntologySummaryObject,
124
+ OntologyVersions,
125
+ OntologyVersionsDataItem,
126
+ OntologyVersionsObject,
127
+ Predicate,
128
+ PropertyDefinition,
129
+ PropertyDefinitionType,
130
+ Proposal,
131
+ ProposalCandidate,
132
+ ProposalExistingItem,
133
+ ProposalExistingItemZero,
134
+ ProposalExistingItemZeroCitationsItem,
135
+ ProposalExistingItemZeroRelationsItem,
136
+ ProposalExistingItemZeroRelationsItemDirection,
137
+ RateLimitedError,
138
+ RateLimitedErrorError,
139
+ RateLimitedErrorErrorCode,
140
+ RateLimitedErrorErrorLimit,
141
+ Result,
142
+ ResultDetails,
143
+ ResultDetailsCache,
144
+ ResultDetailsCitationBoxes,
145
+ ResultDetailsOntology,
146
+ ResultFormat,
147
+ ResultGraph,
148
+ ResultObject,
149
+ ResultStatus,
150
+ TableAnswer,
151
+ TableAnswerType,
152
+ TableCell,
153
+ TextBlock,
154
+ TextPage,
155
+ TextPageBlocks,
156
+ TextPageText,
157
+ Transactions,
158
+ TransactionsCurrency,
159
+ TransactionsDataItem,
160
+ TransactionsDataItemObject,
161
+ TransactionsDataItemType,
162
+ TransactionsObject,
163
+ TypedRef,
164
+ Unresolved,
165
+ Usage,
166
+ UsageLine,
167
+ UsageLinePurpose,
168
+ UsagePeriod,
169
+ UsageReport,
170
+ UsageReportGroupBy,
171
+ UsageReportObject,
172
+ WebhookAttempt,
173
+ WebhookAttemptError,
174
+ WebhookAttemptRequest,
175
+ WebhookAttemptTrigger,
176
+ WebhookDelivery,
177
+ WebhookDeliveryDetail,
178
+ WebhookDeliveryEventType,
179
+ WebhookDeliveryLastError,
180
+ WebhookDeliveryList,
181
+ WebhookDeliveryListObject,
182
+ WebhookDeliveryObject,
183
+ WebhookDeliveryStatus,
184
+ WebhookEndpoint,
185
+ WebhookEndpointDisabledReason,
186
+ WebhookEndpointEventTypesItem,
187
+ WebhookEndpointList,
188
+ WebhookEndpointListObject,
189
+ WebhookEndpointObject,
190
+ WebhookEndpointSecret,
191
+ WebhookEndpointSecretObject,
192
+ WebhookEvent,
193
+ WebhookEventObject,
194
+ WebhookEventType,
195
+ WebhookRecovery,
196
+ WebhookRecoveryObject,
197
+ WebhookTest,
198
+ WebhookTestError,
199
+ WebhookTestObject,
200
+ WebhookTestRequest,
201
+ WebhookTestRequestMethod,
202
+ WebhookUrl,
203
+ )
204
+ from .errors import (
205
+ BadRequestError,
206
+ ConflictError,
207
+ ContentTooLargeError,
208
+ ForbiddenError,
209
+ GoneError,
210
+ NotFoundError,
211
+ PaymentRequiredError,
212
+ ServiceUnavailableError,
213
+ TooManyRequestsError,
214
+ UnauthorizedError,
215
+ UnsupportedMediaTypeError,
216
+ )
217
+ from . import batches, jobs, limits, ontologies, usage, webhooks
218
+ from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient
219
+ from .batches import CreateBatchesRequestEndpoint
220
+ from .client import AsyncPercidian, Percidian
221
+ from .environment import PercidianEnvironment
222
+ from .jobs import GetResultJobsResponse, ListJobsRequestStatus
223
+ from .usage import GetUsageRequestGroupBy
224
+ from .version import __version__
225
+ from .webhook_signature import WebhookVerificationError, verify_webhook
226
+ from .webhooks import GetSecretWebhooksResponse, GetSecretWebhooksResponseObject
227
+ _dynamic_imports: typing.Dict[str, str] = {
228
+ "AsyncPercidian": ".client",
229
+ "BadRequestError": ".errors",
230
+ "Batch": ".types",
231
+ "BatchCounts": ".types",
232
+ "BatchEndpoint": ".types",
233
+ "BatchLinks": ".types",
234
+ "BatchList": ".types",
235
+ "BatchListObject": ".types",
236
+ "BatchObject": ".types",
237
+ "BatchRequest": ".types",
238
+ "BatchRequestBody": ".types",
239
+ "BatchRequestMethod": ".types",
240
+ "BatchRequestUrl": ".types",
241
+ "BatchResult": ".types",
242
+ "BatchResultError": ".types",
243
+ "BatchResultResult": ".types",
244
+ "BatchResultResult_Match": ".types",
245
+ "BatchResultResult_Result": ".types",
246
+ "BatchResultStatus": ".types",
247
+ "BatchStatus": ".types",
248
+ "BatchWebhook": ".types",
249
+ "BatchWebhookEvent": ".types",
250
+ "BatchWebhookEventObject": ".types",
251
+ "BatchWebhookEventType": ".types",
252
+ "BatchWebhookState": ".types",
253
+ "Cache": ".types",
254
+ "Citation": ".types",
255
+ "CitationUnit": ".types",
256
+ "Confidence": ".types",
257
+ "ConflictError": ".errors",
258
+ "ContentTooLargeError": ".errors",
259
+ "CreateBatchesRequestEndpoint": ".batches",
260
+ "CsvTable": ".types",
261
+ "DefaultAioHttpClient": "._default_clients",
262
+ "DefaultAsyncHttpxClient": "._default_clients",
263
+ "Edge": ".types",
264
+ "EndpointEvent": ".types",
265
+ "EndpointEventObject": ".types",
266
+ "EndpointEventType": ".types",
267
+ "Error": ".types",
268
+ "ErrorError": ".types",
269
+ "ErrorErrorCode": ".types",
270
+ "ErrorErrorLimit": ".types",
271
+ "ExtractResponse": ".types",
272
+ "ExtractText": ".types",
273
+ "FailureClass": ".types",
274
+ "FieldAnswer": ".types",
275
+ "FieldAnswerType": ".types",
276
+ "FieldSpec": ".types",
277
+ "FieldSpecColumnsValue": ".types",
278
+ "FieldSpecColumnsValueType": ".types",
279
+ "FieldSpecItems": ".types",
280
+ "FieldSpecType": ".types",
281
+ "Fields": ".types",
282
+ "FieldsResult": ".types",
283
+ "FieldsResultFieldsValue": ".types",
284
+ "FieldsResultObject": ".types",
285
+ "FieldsResultStatus": ".types",
286
+ "ForbiddenError": ".errors",
287
+ "GetResultJobsResponse": ".jobs",
288
+ "GetSecretWebhooksResponse": ".webhooks",
289
+ "GetSecretWebhooksResponseObject": ".webhooks",
290
+ "GetUsageRequestGroupBy": ".usage",
291
+ "GoneError": ".errors",
292
+ "Instructions": ".types",
293
+ "Job": ".types",
294
+ "JobAccepted": ".types",
295
+ "JobAcceptedLinks": ".types",
296
+ "JobError": ".types",
297
+ "JobFormat": ".types",
298
+ "JobInput": ".types",
299
+ "JobInputObject": ".types",
300
+ "JobList": ".types",
301
+ "JobListItem": ".types",
302
+ "JobListItemObject": ".types",
303
+ "JobListItemSource": ".types",
304
+ "JobListItemSourceKind": ".types",
305
+ "JobListItemStatus": ".types",
306
+ "JobListObject": ".types",
307
+ "JobObject": ".types",
308
+ "JobStatus": ".types",
309
+ "JobTable": ".types",
310
+ "JobWebhook": ".types",
311
+ "JobWebhookState": ".types",
312
+ "Limits": ".types",
313
+ "LimitsBalance": ".types",
314
+ "LimitsCredit": ".types",
315
+ "LimitsLimits": ".types",
316
+ "LimitsModelsItem": ".types",
317
+ "LimitsModelsItemLimits": ".types",
318
+ "LimitsModelsItemRemaining": ".types",
319
+ "LimitsModelsItemReset": ".types",
320
+ "LimitsModelsItemUsed": ".types",
321
+ "LimitsObject": ".types",
322
+ "LimitsRemaining": ".types",
323
+ "LimitsReset": ".types",
324
+ "ListAnswer": ".types",
325
+ "ListAnswerItemsItem": ".types",
326
+ "ListAnswerType": ".types",
327
+ "ListJobsRequestStatus": ".jobs",
328
+ "MatchNode": ".types",
329
+ "MatchNodeCitationsItem": ".types",
330
+ "MatchNodeRelationsItem": ".types",
331
+ "MatchNodeRelationsItemDirection": ".types",
332
+ "MatchRequest": ".types",
333
+ "MatchResponse": ".types",
334
+ "MatchResponseObject": ".types",
335
+ "MatchResponseResultsItem": ".types",
336
+ "MatchResponseResultsItemMatchesItem": ".types",
337
+ "MatchResponseResultsItemMatchesItemOutcome": ".types",
338
+ "MatchVeto": ".types",
339
+ "MatchVetoCode": ".types",
340
+ "Metadata": ".types",
341
+ "Model": ".types",
342
+ "Neo4JGraph": ".types",
343
+ "Neo4JGraphNodesItem": ".types",
344
+ "Neo4JGraphRelationshipsItem": ".types",
345
+ "Node": ".types",
346
+ "NodePropertiesValue": ".types",
347
+ "NodeType": ".types",
348
+ "NotFoundError": ".errors",
349
+ "Ontology": ".types",
350
+ "OntologyDetail": ".types",
351
+ "OntologyList": ".types",
352
+ "OntologyListObject": ".types",
353
+ "OntologyListStorage": ".types",
354
+ "OntologyRef": ".types",
355
+ "OntologySummary": ".types",
356
+ "OntologySummaryObject": ".types",
357
+ "OntologyVersions": ".types",
358
+ "OntologyVersionsDataItem": ".types",
359
+ "OntologyVersionsObject": ".types",
360
+ "PaymentRequiredError": ".errors",
361
+ "Percidian": ".client",
362
+ "PercidianEnvironment": ".environment",
363
+ "Predicate": ".types",
364
+ "PropertyDefinition": ".types",
365
+ "PropertyDefinitionType": ".types",
366
+ "Proposal": ".types",
367
+ "ProposalCandidate": ".types",
368
+ "ProposalExistingItem": ".types",
369
+ "ProposalExistingItemZero": ".types",
370
+ "ProposalExistingItemZeroCitationsItem": ".types",
371
+ "ProposalExistingItemZeroRelationsItem": ".types",
372
+ "ProposalExistingItemZeroRelationsItemDirection": ".types",
373
+ "RateLimitedError": ".types",
374
+ "RateLimitedErrorError": ".types",
375
+ "RateLimitedErrorErrorCode": ".types",
376
+ "RateLimitedErrorErrorLimit": ".types",
377
+ "Result": ".types",
378
+ "ResultDetails": ".types",
379
+ "ResultDetailsCache": ".types",
380
+ "ResultDetailsCitationBoxes": ".types",
381
+ "ResultDetailsOntology": ".types",
382
+ "ResultFormat": ".types",
383
+ "ResultGraph": ".types",
384
+ "ResultObject": ".types",
385
+ "ResultStatus": ".types",
386
+ "ServiceUnavailableError": ".errors",
387
+ "TableAnswer": ".types",
388
+ "TableAnswerType": ".types",
389
+ "TableCell": ".types",
390
+ "TextBlock": ".types",
391
+ "TextPage": ".types",
392
+ "TextPageBlocks": ".types",
393
+ "TextPageText": ".types",
394
+ "TooManyRequestsError": ".errors",
395
+ "Transactions": ".types",
396
+ "TransactionsCurrency": ".types",
397
+ "TransactionsDataItem": ".types",
398
+ "TransactionsDataItemObject": ".types",
399
+ "TransactionsDataItemType": ".types",
400
+ "TransactionsObject": ".types",
401
+ "TypedRef": ".types",
402
+ "UnauthorizedError": ".errors",
403
+ "Unresolved": ".types",
404
+ "UnsupportedMediaTypeError": ".errors",
405
+ "Usage": ".types",
406
+ "UsageLine": ".types",
407
+ "UsageLinePurpose": ".types",
408
+ "UsagePeriod": ".types",
409
+ "UsageReport": ".types",
410
+ "UsageReportGroupBy": ".types",
411
+ "UsageReportObject": ".types",
412
+ "WebhookAttempt": ".types",
413
+ "WebhookAttemptError": ".types",
414
+ "WebhookAttemptRequest": ".types",
415
+ "WebhookAttemptTrigger": ".types",
416
+ "WebhookDelivery": ".types",
417
+ "WebhookDeliveryDetail": ".types",
418
+ "WebhookDeliveryEventType": ".types",
419
+ "WebhookDeliveryLastError": ".types",
420
+ "WebhookDeliveryList": ".types",
421
+ "WebhookDeliveryListObject": ".types",
422
+ "WebhookDeliveryObject": ".types",
423
+ "WebhookDeliveryStatus": ".types",
424
+ "WebhookEndpoint": ".types",
425
+ "WebhookEndpointDisabledReason": ".types",
426
+ "WebhookEndpointEventTypesItem": ".types",
427
+ "WebhookEndpointList": ".types",
428
+ "WebhookEndpointListObject": ".types",
429
+ "WebhookEndpointObject": ".types",
430
+ "WebhookEndpointSecret": ".types",
431
+ "WebhookEndpointSecretObject": ".types",
432
+ "WebhookEvent": ".types",
433
+ "WebhookEventObject": ".types",
434
+ "WebhookEventType": ".types",
435
+ "WebhookRecovery": ".types",
436
+ "WebhookRecoveryObject": ".types",
437
+ "WebhookTest": ".types",
438
+ "WebhookTestError": ".types",
439
+ "WebhookTestObject": ".types",
440
+ "WebhookTestRequest": ".types",
441
+ "WebhookTestRequestMethod": ".types",
442
+ "WebhookUrl": ".types",
443
+ "WebhookVerificationError": ".webhook_signature",
444
+ "__version__": ".version",
445
+ "batches": ".batches",
446
+ "jobs": ".jobs",
447
+ "limits": ".limits",
448
+ "ontologies": ".ontologies",
449
+ "usage": ".usage",
450
+ "verify_webhook": ".webhook_signature",
451
+ "webhooks": ".webhooks",
452
+ }
453
+
454
+
455
+ def __getattr__(attr_name: str) -> typing.Any:
456
+ module_name = _dynamic_imports.get(attr_name)
457
+ if module_name is None:
458
+ raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
459
+ try:
460
+ module = import_module(module_name, __package__)
461
+ if module_name == f".{attr_name}":
462
+ return module
463
+ else:
464
+ return getattr(module, attr_name)
465
+ except ImportError as e:
466
+ raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
467
+ except AttributeError as e:
468
+ raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
469
+
470
+
471
+ def __dir__():
472
+ lazy_attrs = list(_dynamic_imports.keys())
473
+ return sorted(lazy_attrs)
474
+
475
+
476
+ __all__ = [
477
+ "AsyncPercidian",
478
+ "BadRequestError",
479
+ "Batch",
480
+ "BatchCounts",
481
+ "BatchEndpoint",
482
+ "BatchLinks",
483
+ "BatchList",
484
+ "BatchListObject",
485
+ "BatchObject",
486
+ "BatchRequest",
487
+ "BatchRequestBody",
488
+ "BatchRequestMethod",
489
+ "BatchRequestUrl",
490
+ "BatchResult",
491
+ "BatchResultError",
492
+ "BatchResultResult",
493
+ "BatchResultResult_Match",
494
+ "BatchResultResult_Result",
495
+ "BatchResultStatus",
496
+ "BatchStatus",
497
+ "BatchWebhook",
498
+ "BatchWebhookEvent",
499
+ "BatchWebhookEventObject",
500
+ "BatchWebhookEventType",
501
+ "BatchWebhookState",
502
+ "Cache",
503
+ "Citation",
504
+ "CitationUnit",
505
+ "Confidence",
506
+ "ConflictError",
507
+ "ContentTooLargeError",
508
+ "CreateBatchesRequestEndpoint",
509
+ "CsvTable",
510
+ "DefaultAioHttpClient",
511
+ "DefaultAsyncHttpxClient",
512
+ "Edge",
513
+ "EndpointEvent",
514
+ "EndpointEventObject",
515
+ "EndpointEventType",
516
+ "Error",
517
+ "ErrorError",
518
+ "ErrorErrorCode",
519
+ "ErrorErrorLimit",
520
+ "ExtractResponse",
521
+ "ExtractText",
522
+ "FailureClass",
523
+ "FieldAnswer",
524
+ "FieldAnswerType",
525
+ "FieldSpec",
526
+ "FieldSpecColumnsValue",
527
+ "FieldSpecColumnsValueType",
528
+ "FieldSpecItems",
529
+ "FieldSpecType",
530
+ "Fields",
531
+ "FieldsResult",
532
+ "FieldsResultFieldsValue",
533
+ "FieldsResultObject",
534
+ "FieldsResultStatus",
535
+ "ForbiddenError",
536
+ "GetResultJobsResponse",
537
+ "GetSecretWebhooksResponse",
538
+ "GetSecretWebhooksResponseObject",
539
+ "GetUsageRequestGroupBy",
540
+ "GoneError",
541
+ "Instructions",
542
+ "Job",
543
+ "JobAccepted",
544
+ "JobAcceptedLinks",
545
+ "JobError",
546
+ "JobFormat",
547
+ "JobInput",
548
+ "JobInputObject",
549
+ "JobList",
550
+ "JobListItem",
551
+ "JobListItemObject",
552
+ "JobListItemSource",
553
+ "JobListItemSourceKind",
554
+ "JobListItemStatus",
555
+ "JobListObject",
556
+ "JobObject",
557
+ "JobStatus",
558
+ "JobTable",
559
+ "JobWebhook",
560
+ "JobWebhookState",
561
+ "Limits",
562
+ "LimitsBalance",
563
+ "LimitsCredit",
564
+ "LimitsLimits",
565
+ "LimitsModelsItem",
566
+ "LimitsModelsItemLimits",
567
+ "LimitsModelsItemRemaining",
568
+ "LimitsModelsItemReset",
569
+ "LimitsModelsItemUsed",
570
+ "LimitsObject",
571
+ "LimitsRemaining",
572
+ "LimitsReset",
573
+ "ListAnswer",
574
+ "ListAnswerItemsItem",
575
+ "ListAnswerType",
576
+ "ListJobsRequestStatus",
577
+ "MatchNode",
578
+ "MatchNodeCitationsItem",
579
+ "MatchNodeRelationsItem",
580
+ "MatchNodeRelationsItemDirection",
581
+ "MatchRequest",
582
+ "MatchResponse",
583
+ "MatchResponseObject",
584
+ "MatchResponseResultsItem",
585
+ "MatchResponseResultsItemMatchesItem",
586
+ "MatchResponseResultsItemMatchesItemOutcome",
587
+ "MatchVeto",
588
+ "MatchVetoCode",
589
+ "Metadata",
590
+ "Model",
591
+ "Neo4JGraph",
592
+ "Neo4JGraphNodesItem",
593
+ "Neo4JGraphRelationshipsItem",
594
+ "Node",
595
+ "NodePropertiesValue",
596
+ "NodeType",
597
+ "NotFoundError",
598
+ "Ontology",
599
+ "OntologyDetail",
600
+ "OntologyList",
601
+ "OntologyListObject",
602
+ "OntologyListStorage",
603
+ "OntologyRef",
604
+ "OntologySummary",
605
+ "OntologySummaryObject",
606
+ "OntologyVersions",
607
+ "OntologyVersionsDataItem",
608
+ "OntologyVersionsObject",
609
+ "PaymentRequiredError",
610
+ "Percidian",
611
+ "PercidianEnvironment",
612
+ "Predicate",
613
+ "PropertyDefinition",
614
+ "PropertyDefinitionType",
615
+ "Proposal",
616
+ "ProposalCandidate",
617
+ "ProposalExistingItem",
618
+ "ProposalExistingItemZero",
619
+ "ProposalExistingItemZeroCitationsItem",
620
+ "ProposalExistingItemZeroRelationsItem",
621
+ "ProposalExistingItemZeroRelationsItemDirection",
622
+ "RateLimitedError",
623
+ "RateLimitedErrorError",
624
+ "RateLimitedErrorErrorCode",
625
+ "RateLimitedErrorErrorLimit",
626
+ "Result",
627
+ "ResultDetails",
628
+ "ResultDetailsCache",
629
+ "ResultDetailsCitationBoxes",
630
+ "ResultDetailsOntology",
631
+ "ResultFormat",
632
+ "ResultGraph",
633
+ "ResultObject",
634
+ "ResultStatus",
635
+ "ServiceUnavailableError",
636
+ "TableAnswer",
637
+ "TableAnswerType",
638
+ "TableCell",
639
+ "TextBlock",
640
+ "TextPage",
641
+ "TextPageBlocks",
642
+ "TextPageText",
643
+ "TooManyRequestsError",
644
+ "Transactions",
645
+ "TransactionsCurrency",
646
+ "TransactionsDataItem",
647
+ "TransactionsDataItemObject",
648
+ "TransactionsDataItemType",
649
+ "TransactionsObject",
650
+ "TypedRef",
651
+ "UnauthorizedError",
652
+ "Unresolved",
653
+ "UnsupportedMediaTypeError",
654
+ "Usage",
655
+ "UsageLine",
656
+ "UsageLinePurpose",
657
+ "UsagePeriod",
658
+ "UsageReport",
659
+ "UsageReportGroupBy",
660
+ "UsageReportObject",
661
+ "WebhookAttempt",
662
+ "WebhookAttemptError",
663
+ "WebhookAttemptRequest",
664
+ "WebhookAttemptTrigger",
665
+ "WebhookDelivery",
666
+ "WebhookDeliveryDetail",
667
+ "WebhookDeliveryEventType",
668
+ "WebhookDeliveryLastError",
669
+ "WebhookDeliveryList",
670
+ "WebhookDeliveryListObject",
671
+ "WebhookDeliveryObject",
672
+ "WebhookDeliveryStatus",
673
+ "WebhookEndpoint",
674
+ "WebhookEndpointDisabledReason",
675
+ "WebhookEndpointEventTypesItem",
676
+ "WebhookEndpointList",
677
+ "WebhookEndpointListObject",
678
+ "WebhookEndpointObject",
679
+ "WebhookEndpointSecret",
680
+ "WebhookEndpointSecretObject",
681
+ "WebhookEvent",
682
+ "WebhookEventObject",
683
+ "WebhookEventType",
684
+ "WebhookRecovery",
685
+ "WebhookRecoveryObject",
686
+ "WebhookTest",
687
+ "WebhookTestError",
688
+ "WebhookTestObject",
689
+ "WebhookTestRequest",
690
+ "WebhookTestRequestMethod",
691
+ "WebhookUrl",
692
+ "WebhookVerificationError",
693
+ "__version__",
694
+ "batches",
695
+ "jobs",
696
+ "limits",
697
+ "ontologies",
698
+ "usage",
699
+ "verify_webhook",
700
+ "webhooks",
701
+ ]