shaped 2.0.2__py3-none-any.whl → 2.0.5__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 (283) hide show
  1. shaped/__init__.py +47 -42
  2. shaped/autogen/__init__.py +41 -56
  3. shaped/autogen/api/engine_api.py +5 -6
  4. shaped/autogen/api/query_api.py +12 -73
  5. shaped/autogen/api/table_api.py +5 -6
  6. shaped/autogen/api/view_api.py +5 -6
  7. shaped/autogen/api_client.py +8 -9
  8. shaped/autogen/configuration.py +9 -8
  9. shaped/autogen/exceptions.py +11 -9
  10. shaped/autogen/models/__init__.py +23 -31
  11. shaped/autogen/models/ai_enrichment_view_config.py +5 -6
  12. shaped/autogen/models/algorithm.py +5 -6
  13. shaped/autogen/models/amplitude_table_config.py +5 -6
  14. shaped/autogen/models/attn_dropout_prob.py +5 -6
  15. shaped/autogen/models/attribute_journey.py +5 -6
  16. shaped/autogen/models/attribute_value.py +5 -6
  17. shaped/autogen/models/autoscaling_config.py +5 -6
  18. shaped/autogen/models/aws_pinpoint_table_config.py +5 -6
  19. shaped/autogen/models/batch_size.py +5 -6
  20. shaped/autogen/models/batch_size1.py +5 -6
  21. shaped/autogen/models/batch_size2.py +5 -6
  22. shaped/autogen/models/big_query_table_config.py +5 -6
  23. shaped/autogen/models/bm25.py +5 -6
  24. shaped/autogen/models/boosted_reorder_step.py +5 -6
  25. shaped/autogen/models/canary_rollout.py +5 -6
  26. shaped/autogen/models/candidate_attributes_retrieve_step.py +5 -19
  27. shaped/autogen/models/candidate_ids_retrieve_step.py +5 -6
  28. shaped/autogen/models/candidate_retrieval_strategy.py +5 -6
  29. shaped/autogen/models/clickhouse_table_config.py +5 -6
  30. shaped/autogen/models/column_order_retrieve_step.py +5 -6
  31. shaped/autogen/models/column_ordering.py +5 -6
  32. shaped/autogen/models/create_table_response.py +5 -6
  33. shaped/autogen/models/create_view_response.py +5 -6
  34. shaped/autogen/models/custom_table_config.py +5 -6
  35. shaped/autogen/models/data_compute_config.py +5 -6
  36. shaped/autogen/models/data_config.py +5 -6
  37. shaped/autogen/models/data_config_interaction_table.py +5 -6
  38. shaped/autogen/models/data_split_config.py +5 -6
  39. shaped/autogen/models/data_split_strategy.py +5 -6
  40. shaped/autogen/models/data_tier.py +5 -6
  41. shaped/autogen/models/default.py +5 -6
  42. shaped/autogen/models/delete_engine_response.py +5 -6
  43. shaped/autogen/models/delete_table_response.py +5 -6
  44. shaped/autogen/models/delete_view_response.py +5 -6
  45. shaped/autogen/models/deployment_config.py +6 -13
  46. shaped/autogen/models/diversity_reorder_step.py +5 -6
  47. shaped/autogen/models/dropout_rate.py +5 -6
  48. shaped/autogen/models/dynamo_db_table_config.py +5 -6
  49. shaped/autogen/models/dynamo_db_table_config_scan_kwargs_value.py +5 -6
  50. shaped/autogen/models/embedder_batch_size.py +5 -6
  51. shaped/autogen/models/embedding_config.py +5 -6
  52. shaped/autogen/models/embedding_dim.py +5 -6
  53. shaped/autogen/models/embedding_dims.py +5 -6
  54. shaped/autogen/models/embedding_size.py +5 -6
  55. shaped/autogen/models/encoder.py +5 -6
  56. shaped/autogen/models/engine.py +5 -6
  57. shaped/autogen/models/engine_config_v2.py +5 -6
  58. shaped/autogen/models/engine_details_response.py +5 -6
  59. shaped/autogen/models/engine_schema.py +12 -13
  60. shaped/autogen/models/entity_config.py +5 -6
  61. shaped/autogen/models/entity_journey.py +32 -24
  62. shaped/autogen/models/entity_type.py +5 -6
  63. shaped/autogen/models/evaluation_config.py +5 -6
  64. shaped/autogen/models/exploration_reorder_step.py +5 -6
  65. shaped/autogen/models/expression_filter_step.py +5 -6
  66. shaped/autogen/models/factors.py +5 -6
  67. shaped/autogen/models/factors1.py +5 -6
  68. shaped/autogen/models/feature.py +5 -6
  69. shaped/autogen/models/feature_type.py +5 -6
  70. shaped/autogen/models/file_table_config.py +5 -6
  71. shaped/autogen/models/filter_config.py +18 -19
  72. shaped/autogen/models/filter_index_type.py +5 -6
  73. shaped/autogen/models/filter_retrieve_step.py +5 -6
  74. shaped/autogen/models/filter_step_explanation.py +164 -0
  75. shaped/autogen/models/{filter_dataset.py → filter_table.py} +12 -13
  76. shaped/autogen/models/{type.py → filter_type.py} +10 -11
  77. shaped/autogen/models/global_filter.py +5 -6
  78. shaped/autogen/models/hidden_dropout_prob.py +5 -6
  79. shaped/autogen/models/hidden_size.py +5 -6
  80. shaped/autogen/models/hidden_size1.py +5 -6
  81. shaped/autogen/models/http_problem_response.py +5 -6
  82. shaped/autogen/models/http_validation_error.py +5 -6
  83. shaped/autogen/models/hugging_face_encoder.py +10 -9
  84. shaped/autogen/models/iceberg_table_config.py +5 -6
  85. shaped/autogen/models/index_config.py +5 -6
  86. shaped/autogen/models/{time_window_in_days.py → inner_entity_id.py} +27 -26
  87. shaped/autogen/models/inner_size.py +5 -6
  88. shaped/autogen/models/inner_size1.py +5 -6
  89. shaped/autogen/models/{mode2.py → inner_uid.py} +37 -30
  90. shaped/autogen/models/interaction_config.py +5 -6
  91. shaped/autogen/models/interaction_pooling_encoder.py +5 -6
  92. shaped/autogen/models/interaction_round_robin_encoder.py +5 -6
  93. shaped/autogen/models/item_attribute_pooling_encoder.py +5 -19
  94. shaped/autogen/models/journey.py +5 -6
  95. shaped/autogen/models/kafka_table_config.py +5 -6
  96. shaped/autogen/models/kinesis_table_config.py +5 -6
  97. shaped/autogen/models/kinesis_table_config_column_schema_value.py +5 -6
  98. shaped/autogen/models/label.py +5 -6
  99. shaped/autogen/models/label_type.py +5 -7
  100. shaped/autogen/models/laplace_smoothing.py +5 -6
  101. shaped/autogen/models/latency_scaling_policy.py +5 -6
  102. shaped/autogen/models/learning_rate.py +5 -6
  103. shaped/autogen/models/learning_rate1.py +5 -6
  104. shaped/autogen/models/learning_rate2.py +5 -6
  105. shaped/autogen/models/learning_rate3.py +5 -6
  106. shaped/autogen/models/lexical_search_mode.py +7 -8
  107. shaped/autogen/models/list_engines_response.py +5 -6
  108. shaped/autogen/models/list_tables_response.py +5 -6
  109. shaped/autogen/models/list_views_response.py +5 -6
  110. shaped/autogen/models/{validation_error_loc_inner.py → location_inner.py} +11 -12
  111. shaped/autogen/models/loss_types.py +5 -6
  112. shaped/autogen/models/lr.py +5 -6
  113. shaped/autogen/models/lr1.py +5 -6
  114. shaped/autogen/models/lr2.py +5 -6
  115. shaped/autogen/models/max_depth.py +5 -6
  116. shaped/autogen/models/max_leaves.py +5 -6
  117. shaped/autogen/models/max_seq_length.py +5 -6
  118. shaped/autogen/models/max_seq_length1.py +5 -6
  119. shaped/autogen/models/max_seq_length2.py +5 -6
  120. shaped/autogen/models/mode.py +5 -6
  121. shaped/autogen/models/mode1.py +24 -23
  122. shaped/autogen/models/{training_config_models_inner.py → models_inner.py} +13 -14
  123. shaped/autogen/models/mongo_db_table_config.py +5 -6
  124. shaped/autogen/models/mssql_table_config.py +5 -6
  125. shaped/autogen/models/my_sql_table_config.py +5 -6
  126. shaped/autogen/models/n_epochs.py +5 -6
  127. shaped/autogen/models/n_epochs1.py +5 -6
  128. shaped/autogen/models/n_epochs2.py +5 -6
  129. shaped/autogen/models/n_estimators.py +5 -6
  130. shaped/autogen/models/n_heads.py +5 -6
  131. shaped/autogen/models/n_layers.py +5 -6
  132. shaped/autogen/models/neg_per_positive.py +5 -6
  133. shaped/autogen/models/negative_samples_count.py +5 -6
  134. shaped/autogen/models/ngram_tokenizer.py +5 -6
  135. shaped/autogen/models/no_op_config.py +5 -6
  136. shaped/autogen/models/num_blocks.py +5 -6
  137. shaped/autogen/models/num_heads.py +5 -6
  138. shaped/autogen/models/num_leaves.py +5 -6
  139. shaped/autogen/models/objective.py +5 -6
  140. shaped/autogen/models/objective1.py +5 -6
  141. shaped/autogen/models/online_store_config.py +5 -6
  142. shaped/autogen/models/pagination_config.py +5 -6
  143. shaped/autogen/models/parameter_definition.py +5 -6
  144. shaped/autogen/models/parameters_value.py +5 -6
  145. shaped/autogen/models/passthrough_score.py +5 -6
  146. shaped/autogen/models/personal_filter.py +5 -6
  147. shaped/autogen/models/pipeline_stage_explanation.py +8 -9
  148. shaped/autogen/models/policy.py +5 -6
  149. shaped/autogen/models/pooling_function.py +5 -6
  150. shaped/autogen/models/postgres_table_config.py +5 -6
  151. shaped/autogen/models/posthog_table_config.py +5 -6
  152. shaped/autogen/models/prebuilt_filter_step.py +5 -6
  153. shaped/autogen/models/precomputed_item_embedding.py +5 -6
  154. shaped/autogen/models/precomputed_user_embedding.py +5 -6
  155. shaped/autogen/models/query.py +19 -20
  156. shaped/autogen/models/query1.py +19 -20
  157. shaped/autogen/models/{query_any_of.py → query_config.py} +13 -14
  158. shaped/autogen/models/query_definition.py +5 -6
  159. shaped/autogen/models/query_encoder.py +5 -6
  160. shaped/autogen/models/query_explanation.py +11 -8
  161. shaped/autogen/models/query_request.py +5 -6
  162. shaped/autogen/models/query_result.py +5 -6
  163. shaped/autogen/models/query_table_config.py +5 -6
  164. shaped/autogen/models/rank_item_attribute_values_query_config.py +5 -6
  165. shaped/autogen/models/rank_query_config.py +11 -12
  166. shaped/autogen/models/rank_query_config_filter_inner.py +5 -6
  167. shaped/autogen/models/recreate_rollout.py +5 -6
  168. shaped/autogen/models/redshift_table_config.py +5 -6
  169. shaped/autogen/models/reference_table_config.py +5 -6
  170. shaped/autogen/models/regularization.py +5 -6
  171. shaped/autogen/models/{rank_query_config_reorder_inner.py → reorder_inner.py} +11 -12
  172. shaped/autogen/models/reorder_step_explanation.py +206 -0
  173. shaped/autogen/models/request.py +5 -6
  174. shaped/autogen/models/request1.py +5 -6
  175. shaped/autogen/models/requests_per_second_scaling_policy.py +5 -6
  176. shaped/autogen/models/resource_config.py +99 -0
  177. shaped/autogen/models/response_get_view_details_views_view_name_get.py +5 -6
  178. shaped/autogen/models/result.py +5 -19
  179. shaped/autogen/models/result_embeddings_value.py +5 -6
  180. shaped/autogen/models/{ascending.py → retrieval_scores_value.py} +26 -36
  181. shaped/autogen/models/{rank_query_config_retrieve_inner.py → retrieve_inner.py} +13 -14
  182. shaped/autogen/models/retrieve_step_explanation.py +171 -0
  183. shaped/autogen/models/retriever.py +5 -6
  184. shaped/autogen/models/retriever1.py +5 -6
  185. shaped/autogen/models/rollout_config.py +5 -6
  186. shaped/autogen/models/rudderstack_table_config.py +5 -6
  187. shaped/autogen/models/sampling_strategy.py +5 -6
  188. shaped/autogen/models/saved_query_info_response.py +22 -9
  189. shaped/autogen/models/saved_query_list_response.py +5 -6
  190. shaped/autogen/models/saved_query_request.py +5 -6
  191. shaped/autogen/models/schema_config.py +5 -6
  192. shaped/autogen/models/score.py +5 -6
  193. shaped/autogen/models/score_ensemble.py +5 -19
  194. shaped/autogen/models/score_step_explanation.py +223 -0
  195. shaped/autogen/models/search_config.py +5 -6
  196. shaped/autogen/models/segment_table_config.py +5 -6
  197. shaped/autogen/models/sequence_length.py +5 -6
  198. shaped/autogen/models/server_config.py +18 -6
  199. shaped/autogen/models/setup_engine_response.py +5 -6
  200. shaped/autogen/models/shaped_internal_recsys_policies_als_model_policy_als_model_policy_config.py +13 -8
  201. shaped/autogen/models/shaped_internal_recsys_policies_beeformer_model_policy_beeformer_model_policy_beeformer_model_policy_config.py +13 -8
  202. shaped/autogen/models/shaped_internal_recsys_policies_bert_model_policy_bert_model_policy_bert_model_policy_config.py +14 -9
  203. shaped/autogen/models/shaped_internal_recsys_policies_elsa_model_policy_elsa_model_policy_elsa_model_policy_config.py +10 -9
  204. shaped/autogen/models/shaped_internal_recsys_policies_gsasrec_model_policy_gsasrec_model_policy_gsas_rec_model_policy_config.py +13 -8
  205. shaped/autogen/models/shaped_internal_recsys_policies_item2vec_model_policy_item2_vec_model_policy_config.py +5 -6
  206. shaped/autogen/models/shaped_internal_recsys_policies_lightgbm_model_policy_lightgbm_model_policy_light_gbm_model_policy_config.py +13 -8
  207. shaped/autogen/models/shaped_internal_recsys_policies_ngram_model_policy_ngram_model_policy_config.py +5 -6
  208. shaped/autogen/models/shaped_internal_recsys_policies_rising_popular_policy_rising_popular_policy_config.py +5 -6
  209. shaped/autogen/models/shaped_internal_recsys_policies_sasrec_model_policy_sasrec_model_policy_sas_rec_model_policy_config.py +13 -8
  210. shaped/autogen/models/shaped_internal_recsys_policies_svd_model_policy_svd_model_policy_config.py +5 -6
  211. shaped/autogen/models/shaped_internal_recsys_policies_two_tower_model_policy_two_tower_model_policy_two_tower_model_policy_config.py +13 -8
  212. shaped/autogen/models/shaped_internal_recsys_policies_widedeep_model_policy_wide_deep_model_policy_config.py +14 -9
  213. shaped/autogen/models/shaped_internal_recsys_policies_xgboost_model_policy_xg_boost_model_policy_config.py +16 -11
  214. shaped/autogen/models/shopify_table_config.py +5 -6
  215. shaped/autogen/models/similarity_retrieve_step.py +10 -9
  216. shaped/autogen/models/snowflake_table_config.py +5 -6
  217. shaped/autogen/models/sql_transform_type.py +5 -6
  218. shaped/autogen/models/sql_view_config.py +5 -6
  219. shaped/autogen/models/stemmer_tokenizer.py +5 -6
  220. shaped/autogen/models/step_explanation.py +5 -6
  221. shaped/autogen/models/steps_inner.py +178 -0
  222. shaped/autogen/models/strategy.py +5 -6
  223. shaped/autogen/models/table.py +5 -6
  224. shaped/autogen/models/table_deployment_type.py +5 -6
  225. shaped/autogen/models/table_insert_arguments.py +7 -8
  226. shaped/autogen/models/table_insert_response.py +5 -6
  227. shaped/autogen/models/text_search_retrieve_step.py +5 -6
  228. shaped/autogen/models/time_frequency.py +5 -6
  229. shaped/autogen/models/time_window.py +5 -6
  230. shaped/autogen/models/tokenizer.py +5 -6
  231. shaped/autogen/models/trained_model_encoder.py +5 -6
  232. shaped/autogen/models/training_compute_config.py +8 -9
  233. shaped/autogen/models/training_config.py +8 -9
  234. shaped/autogen/models/training_strategy.py +5 -6
  235. shaped/autogen/models/transform_status.py +40 -0
  236. shaped/autogen/models/truncate_filter_step.py +5 -6
  237. shaped/autogen/models/tunable_bool.py +5 -6
  238. shaped/autogen/models/tunable_float.py +5 -6
  239. shaped/autogen/models/tunable_int.py +5 -6
  240. shaped/autogen/models/tunable_int_categorical.py +5 -6
  241. shaped/autogen/models/tunable_string.py +5 -6
  242. shaped/autogen/models/tuning_config.py +5 -6
  243. shaped/autogen/models/update_table_response.py +5 -6
  244. shaped/autogen/models/update_view_response.py +5 -6
  245. shaped/autogen/models/user_attribute_pooling_encoder.py +5 -6
  246. shaped/autogen/models/{engine_schema_user_inner.py → user_inner.py} +11 -12
  247. shaped/autogen/models/val_split.py +5 -6
  248. shaped/autogen/models/validation_error.py +8 -9
  249. shaped/autogen/models/value_type.py +5 -6
  250. shaped/autogen/models/vector_search_mode.py +10 -9
  251. shaped/autogen/models/view.py +8 -9
  252. shaped/autogen/models/view_details_ai.py +10 -11
  253. shaped/autogen/models/view_details_ai_schema_value.py +5 -6
  254. shaped/autogen/models/view_details_sql.py +10 -11
  255. shaped/autogen/models/weight_decay.py +5 -6
  256. shaped/autogen/models/whitespace_tokenizer.py +5 -6
  257. shaped/autogen/models/window_size.py +5 -6
  258. shaped/autogen/rest.py +13 -14
  259. shaped/cli/shaped_cli.py +152 -29
  260. shaped/client.py +50 -43
  261. shaped/config_builders.py +110 -100
  262. shaped/query_builder.py +56 -49
  263. {shaped-2.0.2.dist-info → shaped-2.0.5.dist-info}/METADATA +2 -2
  264. shaped-2.0.5.dist-info/RECORD +271 -0
  265. {shaped-2.0.2.dist-info → shaped-2.0.5.dist-info}/WHEEL +1 -1
  266. shaped/autogen/models/distance_function.py +0 -38
  267. shaped/autogen/models/encoding_pooling_strategy.py +0 -38
  268. shaped/autogen/models/pool_fn.py +0 -134
  269. shaped/autogen/models/score_ensemble_policy_config.py +0 -141
  270. shaped/autogen/models/score_ensemble_policy_config_policies_inner.py +0 -422
  271. shaped/autogen/models/shaped_internal_recsys_policies_chronological_model_policy_chronological_model_policy_config.py +0 -137
  272. shaped/autogen/models/shaped_internal_recsys_policies_item_content_similarity_model_policy_item_content_similarity_model_policy_config.py +0 -152
  273. shaped/autogen/models/shaped_internal_recsys_policies_popular_model_policy_popular_model_policy_config.py +0 -137
  274. shaped/autogen/models/shaped_internal_recsys_policies_random_model_policy_random_model_policy_config.py +0 -104
  275. shaped/autogen/models/shaped_internal_recsys_policies_recently_popular_policy_recently_popular_policy_config.py +0 -130
  276. shaped/autogen/models/shaped_internal_recsys_policies_user_item_content_similarity_model_policy_user_item_content_similarity_model_policy_config.py +0 -131
  277. shaped/autogen/models/text_encoding.py +0 -136
  278. shaped/autogen/models/trending_mode.py +0 -37
  279. shaped/autogen/models/view_status.py +0 -41
  280. shaped-2.0.2.dist-info/RECORD +0 -278
  281. {shaped-2.0.2.dist-info → shaped-2.0.5.dist-info}/entry_points.txt +0 -0
  282. {shaped-2.0.2.dist-info → shaped-2.0.5.dist-info}/top_level.txt +0 -0
  283. {shaped-2.0.2.dist-info → shaped-2.0.5.dist-info}/zip-safe +0 -0
@@ -1,15 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Shaped API
4
+ Shaped API
5
5
 
6
- Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
6
+ Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
9
 
11
- Do not edit the class manually.
12
- """ # noqa: E501
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
13
12
 
14
13
  import warnings
15
14
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
@@ -44,7 +43,6 @@ class QueryApi:
44
43
  @validate_call
45
44
  def execute_ad_hoc_query_query_post(
46
45
  self,
47
- engine_name: StrictStr,
48
46
  query_request: QueryRequest,
49
47
  _request_timeout: Union[
50
48
  None,
@@ -63,8 +61,6 @@ class QueryApi:
63
61
 
64
62
  Execute a query with the provided QueryConfig. Use this endpoint to execute on-demand queries for development or experimentation.
65
63
 
66
- :param engine_name: (required)
67
- :type engine_name: str
68
64
  :param query_request: (required)
69
65
  :type query_request: QueryRequest
70
66
  :param _request_timeout: timeout setting for this request. If one
@@ -90,7 +86,6 @@ class QueryApi:
90
86
  """ # noqa: E501
91
87
 
92
88
  _param = self._execute_ad_hoc_query_query_post_serialize(
93
- engine_name=engine_name,
94
89
  query_request=query_request,
95
90
  _request_auth=_request_auth,
96
91
  _content_type=_content_type,
@@ -116,7 +111,6 @@ class QueryApi:
116
111
  @validate_call
117
112
  def execute_ad_hoc_query_query_post_with_http_info(
118
113
  self,
119
- engine_name: StrictStr,
120
114
  query_request: QueryRequest,
121
115
  _request_timeout: Union[
122
116
  None,
@@ -135,8 +129,6 @@ class QueryApi:
135
129
 
136
130
  Execute a query with the provided QueryConfig. Use this endpoint to execute on-demand queries for development or experimentation.
137
131
 
138
- :param engine_name: (required)
139
- :type engine_name: str
140
132
  :param query_request: (required)
141
133
  :type query_request: QueryRequest
142
134
  :param _request_timeout: timeout setting for this request. If one
@@ -162,7 +154,6 @@ class QueryApi:
162
154
  """ # noqa: E501
163
155
 
164
156
  _param = self._execute_ad_hoc_query_query_post_serialize(
165
- engine_name=engine_name,
166
157
  query_request=query_request,
167
158
  _request_auth=_request_auth,
168
159
  _content_type=_content_type,
@@ -188,7 +179,6 @@ class QueryApi:
188
179
  @validate_call
189
180
  def execute_ad_hoc_query_query_post_without_preload_content(
190
181
  self,
191
- engine_name: StrictStr,
192
182
  query_request: QueryRequest,
193
183
  _request_timeout: Union[
194
184
  None,
@@ -207,8 +197,6 @@ class QueryApi:
207
197
 
208
198
  Execute a query with the provided QueryConfig. Use this endpoint to execute on-demand queries for development or experimentation.
209
199
 
210
- :param engine_name: (required)
211
- :type engine_name: str
212
200
  :param query_request: (required)
213
201
  :type query_request: QueryRequest
214
202
  :param _request_timeout: timeout setting for this request. If one
@@ -234,7 +222,6 @@ class QueryApi:
234
222
  """ # noqa: E501
235
223
 
236
224
  _param = self._execute_ad_hoc_query_query_post_serialize(
237
- engine_name=engine_name,
238
225
  query_request=query_request,
239
226
  _request_auth=_request_auth,
240
227
  _content_type=_content_type,
@@ -255,7 +242,6 @@ class QueryApi:
255
242
 
256
243
  def _execute_ad_hoc_query_query_post_serialize(
257
244
  self,
258
- engine_name,
259
245
  query_request,
260
246
  _request_auth,
261
247
  _content_type,
@@ -278,8 +264,6 @@ class QueryApi:
278
264
  _body_params: Optional[bytes] = None
279
265
 
280
266
  # process the path parameters
281
- if engine_name is not None:
282
- _path_params['engine_name'] = engine_name
283
267
  # process the query parameters
284
268
  # process the header parameters
285
269
  # process the form parameters
@@ -316,7 +300,7 @@ class QueryApi:
316
300
 
317
301
  return self.api_client.param_serialize(
318
302
  method='POST',
319
- resource_path='/engines/{engine_name}/query',
303
+ resource_path='/query',
320
304
  path_params=_path_params,
321
305
  query_params=_query_params,
322
306
  header_params=_header_params,
@@ -335,7 +319,6 @@ class QueryApi:
335
319
  @validate_call
336
320
  def execute_saved_query_queries_query_name_post(
337
321
  self,
338
- engine_name: StrictStr,
339
322
  query_name: StrictStr,
340
323
  saved_query_request: SavedQueryRequest,
341
324
  _request_timeout: Union[
@@ -355,8 +338,6 @@ class QueryApi:
355
338
 
356
339
  Execute a saved query by name. The `parameters` field defines inputs for the saved query, such as a search string or user ID.
357
340
 
358
- :param engine_name: (required)
359
- :type engine_name: str
360
341
  :param query_name: (required)
361
342
  :type query_name: str
362
343
  :param saved_query_request: (required)
@@ -384,7 +365,6 @@ class QueryApi:
384
365
  """ # noqa: E501
385
366
 
386
367
  _param = self._execute_saved_query_queries_query_name_post_serialize(
387
- engine_name=engine_name,
388
368
  query_name=query_name,
389
369
  saved_query_request=saved_query_request,
390
370
  _request_auth=_request_auth,
@@ -411,7 +391,6 @@ class QueryApi:
411
391
  @validate_call
412
392
  def execute_saved_query_queries_query_name_post_with_http_info(
413
393
  self,
414
- engine_name: StrictStr,
415
394
  query_name: StrictStr,
416
395
  saved_query_request: SavedQueryRequest,
417
396
  _request_timeout: Union[
@@ -431,8 +410,6 @@ class QueryApi:
431
410
 
432
411
  Execute a saved query by name. The `parameters` field defines inputs for the saved query, such as a search string or user ID.
433
412
 
434
- :param engine_name: (required)
435
- :type engine_name: str
436
413
  :param query_name: (required)
437
414
  :type query_name: str
438
415
  :param saved_query_request: (required)
@@ -460,7 +437,6 @@ class QueryApi:
460
437
  """ # noqa: E501
461
438
 
462
439
  _param = self._execute_saved_query_queries_query_name_post_serialize(
463
- engine_name=engine_name,
464
440
  query_name=query_name,
465
441
  saved_query_request=saved_query_request,
466
442
  _request_auth=_request_auth,
@@ -487,7 +463,6 @@ class QueryApi:
487
463
  @validate_call
488
464
  def execute_saved_query_queries_query_name_post_without_preload_content(
489
465
  self,
490
- engine_name: StrictStr,
491
466
  query_name: StrictStr,
492
467
  saved_query_request: SavedQueryRequest,
493
468
  _request_timeout: Union[
@@ -507,8 +482,6 @@ class QueryApi:
507
482
 
508
483
  Execute a saved query by name. The `parameters` field defines inputs for the saved query, such as a search string or user ID.
509
484
 
510
- :param engine_name: (required)
511
- :type engine_name: str
512
485
  :param query_name: (required)
513
486
  :type query_name: str
514
487
  :param saved_query_request: (required)
@@ -536,7 +509,6 @@ class QueryApi:
536
509
  """ # noqa: E501
537
510
 
538
511
  _param = self._execute_saved_query_queries_query_name_post_serialize(
539
- engine_name=engine_name,
540
512
  query_name=query_name,
541
513
  saved_query_request=saved_query_request,
542
514
  _request_auth=_request_auth,
@@ -558,7 +530,6 @@ class QueryApi:
558
530
 
559
531
  def _execute_saved_query_queries_query_name_post_serialize(
560
532
  self,
561
- engine_name,
562
533
  query_name,
563
534
  saved_query_request,
564
535
  _request_auth,
@@ -582,8 +553,6 @@ class QueryApi:
582
553
  _body_params: Optional[bytes] = None
583
554
 
584
555
  # process the path parameters
585
- if engine_name is not None:
586
- _path_params['engine_name'] = engine_name
587
556
  if query_name is not None:
588
557
  _path_params['query_name'] = query_name
589
558
  # process the query parameters
@@ -622,7 +591,7 @@ class QueryApi:
622
591
 
623
592
  return self.api_client.param_serialize(
624
593
  method='POST',
625
- resource_path='/engines/{engine_name}/queries/{query_name}',
594
+ resource_path='/queries/{query_name}',
626
595
  path_params=_path_params,
627
596
  query_params=_query_params,
628
597
  header_params=_header_params,
@@ -641,7 +610,6 @@ class QueryApi:
641
610
  @validate_call
642
611
  def get_saved_query_info_queries_query_name_get(
643
612
  self,
644
- engine_name: StrictStr,
645
613
  query_name: StrictStr,
646
614
  _request_timeout: Union[
647
615
  None,
@@ -660,8 +628,6 @@ class QueryApi:
660
628
 
661
629
  Get information about a specific saved query.
662
630
 
663
- :param engine_name: (required)
664
- :type engine_name: str
665
631
  :param query_name: (required)
666
632
  :type query_name: str
667
633
  :param _request_timeout: timeout setting for this request. If one
@@ -687,7 +653,6 @@ class QueryApi:
687
653
  """ # noqa: E501
688
654
 
689
655
  _param = self._get_saved_query_info_queries_query_name_get_serialize(
690
- engine_name=engine_name,
691
656
  query_name=query_name,
692
657
  _request_auth=_request_auth,
693
658
  _content_type=_content_type,
@@ -713,7 +678,6 @@ class QueryApi:
713
678
  @validate_call
714
679
  def get_saved_query_info_queries_query_name_get_with_http_info(
715
680
  self,
716
- engine_name: StrictStr,
717
681
  query_name: StrictStr,
718
682
  _request_timeout: Union[
719
683
  None,
@@ -732,8 +696,6 @@ class QueryApi:
732
696
 
733
697
  Get information about a specific saved query.
734
698
 
735
- :param engine_name: (required)
736
- :type engine_name: str
737
699
  :param query_name: (required)
738
700
  :type query_name: str
739
701
  :param _request_timeout: timeout setting for this request. If one
@@ -759,7 +721,6 @@ class QueryApi:
759
721
  """ # noqa: E501
760
722
 
761
723
  _param = self._get_saved_query_info_queries_query_name_get_serialize(
762
- engine_name=engine_name,
763
724
  query_name=query_name,
764
725
  _request_auth=_request_auth,
765
726
  _content_type=_content_type,
@@ -785,7 +746,6 @@ class QueryApi:
785
746
  @validate_call
786
747
  def get_saved_query_info_queries_query_name_get_without_preload_content(
787
748
  self,
788
- engine_name: StrictStr,
789
749
  query_name: StrictStr,
790
750
  _request_timeout: Union[
791
751
  None,
@@ -804,8 +764,6 @@ class QueryApi:
804
764
 
805
765
  Get information about a specific saved query.
806
766
 
807
- :param engine_name: (required)
808
- :type engine_name: str
809
767
  :param query_name: (required)
810
768
  :type query_name: str
811
769
  :param _request_timeout: timeout setting for this request. If one
@@ -831,7 +789,6 @@ class QueryApi:
831
789
  """ # noqa: E501
832
790
 
833
791
  _param = self._get_saved_query_info_queries_query_name_get_serialize(
834
- engine_name=engine_name,
835
792
  query_name=query_name,
836
793
  _request_auth=_request_auth,
837
794
  _content_type=_content_type,
@@ -852,7 +809,6 @@ class QueryApi:
852
809
 
853
810
  def _get_saved_query_info_queries_query_name_get_serialize(
854
811
  self,
855
- engine_name,
856
812
  query_name,
857
813
  _request_auth,
858
814
  _content_type,
@@ -875,8 +831,6 @@ class QueryApi:
875
831
  _body_params: Optional[bytes] = None
876
832
 
877
833
  # process the path parameters
878
- if engine_name is not None:
879
- _path_params['engine_name'] = engine_name
880
834
  if query_name is not None:
881
835
  _path_params['query_name'] = query_name
882
836
  # process the query parameters
@@ -900,7 +854,7 @@ class QueryApi:
900
854
 
901
855
  return self.api_client.param_serialize(
902
856
  method='GET',
903
- resource_path='/engines/{engine_name}/queries/{query_name}',
857
+ resource_path='/queries/{query_name}',
904
858
  path_params=_path_params,
905
859
  query_params=_query_params,
906
860
  header_params=_header_params,
@@ -919,7 +873,6 @@ class QueryApi:
919
873
  @validate_call
920
874
  def list_saved_queries_queries_get(
921
875
  self,
922
- engine_name: StrictStr,
923
876
  _request_timeout: Union[
924
877
  None,
925
878
  Annotated[StrictFloat, Field(gt=0)],
@@ -935,10 +888,8 @@ class QueryApi:
935
888
  ) -> SavedQueryListResponse:
936
889
  """List Saved Queries
937
890
 
938
- List all available saved queries for an engine.
891
+ List all available saved queries.
939
892
 
940
- :param engine_name: (required)
941
- :type engine_name: str
942
893
  :param _request_timeout: timeout setting for this request. If one
943
894
  number provided, it will be total request
944
895
  timeout. It can also be a pair (tuple) of
@@ -962,7 +913,6 @@ class QueryApi:
962
913
  """ # noqa: E501
963
914
 
964
915
  _param = self._list_saved_queries_queries_get_serialize(
965
- engine_name=engine_name,
966
916
  _request_auth=_request_auth,
967
917
  _content_type=_content_type,
968
918
  _headers=_headers,
@@ -986,7 +936,6 @@ class QueryApi:
986
936
  @validate_call
987
937
  def list_saved_queries_queries_get_with_http_info(
988
938
  self,
989
- engine_name: StrictStr,
990
939
  _request_timeout: Union[
991
940
  None,
992
941
  Annotated[StrictFloat, Field(gt=0)],
@@ -1002,10 +951,8 @@ class QueryApi:
1002
951
  ) -> ApiResponse[SavedQueryListResponse]:
1003
952
  """List Saved Queries
1004
953
 
1005
- List all available saved queries for an engine.
954
+ List all available saved queries.
1006
955
 
1007
- :param engine_name: (required)
1008
- :type engine_name: str
1009
956
  :param _request_timeout: timeout setting for this request. If one
1010
957
  number provided, it will be total request
1011
958
  timeout. It can also be a pair (tuple) of
@@ -1029,7 +976,6 @@ class QueryApi:
1029
976
  """ # noqa: E501
1030
977
 
1031
978
  _param = self._list_saved_queries_queries_get_serialize(
1032
- engine_name=engine_name,
1033
979
  _request_auth=_request_auth,
1034
980
  _content_type=_content_type,
1035
981
  _headers=_headers,
@@ -1053,7 +999,6 @@ class QueryApi:
1053
999
  @validate_call
1054
1000
  def list_saved_queries_queries_get_without_preload_content(
1055
1001
  self,
1056
- engine_name: StrictStr,
1057
1002
  _request_timeout: Union[
1058
1003
  None,
1059
1004
  Annotated[StrictFloat, Field(gt=0)],
@@ -1069,10 +1014,8 @@ class QueryApi:
1069
1014
  ) -> RESTResponseType:
1070
1015
  """List Saved Queries
1071
1016
 
1072
- List all available saved queries for an engine.
1017
+ List all available saved queries.
1073
1018
 
1074
- :param engine_name: (required)
1075
- :type engine_name: str
1076
1019
  :param _request_timeout: timeout setting for this request. If one
1077
1020
  number provided, it will be total request
1078
1021
  timeout. It can also be a pair (tuple) of
@@ -1096,7 +1039,6 @@ class QueryApi:
1096
1039
  """ # noqa: E501
1097
1040
 
1098
1041
  _param = self._list_saved_queries_queries_get_serialize(
1099
- engine_name=engine_name,
1100
1042
  _request_auth=_request_auth,
1101
1043
  _content_type=_content_type,
1102
1044
  _headers=_headers,
@@ -1115,7 +1057,6 @@ class QueryApi:
1115
1057
 
1116
1058
  def _list_saved_queries_queries_get_serialize(
1117
1059
  self,
1118
- engine_name,
1119
1060
  _request_auth,
1120
1061
  _content_type,
1121
1062
  _headers,
@@ -1137,8 +1078,6 @@ class QueryApi:
1137
1078
  _body_params: Optional[bytes] = None
1138
1079
 
1139
1080
  # process the path parameters
1140
- if engine_name is not None:
1141
- _path_params['engine_name'] = engine_name
1142
1081
  # process the query parameters
1143
1082
  # process the header parameters
1144
1083
  # process the form parameters
@@ -1160,7 +1099,7 @@ class QueryApi:
1160
1099
 
1161
1100
  return self.api_client.param_serialize(
1162
1101
  method='GET',
1163
- resource_path='/engines/{engine_name}/queries',
1102
+ resource_path='/queries',
1164
1103
  path_params=_path_params,
1165
1104
  query_params=_query_params,
1166
1105
  header_params=_header_params,
@@ -1,15 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Shaped API
4
+ Shaped API
5
5
 
6
- Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
6
+ Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
9
 
11
- Do not edit the class manually.
12
- """ # noqa: E501
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
13
12
 
14
13
  import warnings
15
14
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
@@ -1,15 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Shaped API
4
+ Shaped API
5
5
 
6
- Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
6
+ Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
9
 
11
- Do not edit the class manually.
12
- """ # noqa: E501
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
13
12
 
14
13
  import warnings
15
14
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
@@ -1,15 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Shaped API
4
+ Shaped API
5
5
 
6
- Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
6
+ Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
9
 
11
- Do not edit the class manually.
12
- """ # noqa: E501
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
13
12
 
14
13
 
15
14
  import datetime
@@ -312,7 +311,7 @@ class ApiClient:
312
311
  return_data = self.__deserialize_file(response_data)
313
312
  elif response_type is not None:
314
313
  match = None
315
- content_type = response_data.getheader('content-type')
314
+ content_type = response_data.headers.get('content-type')
316
315
  if content_type is not None:
317
316
  match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)
318
317
  encoding = match.group(1) if match else "utf-8"
@@ -329,7 +328,7 @@ class ApiClient:
329
328
  return ApiResponse(
330
329
  status_code = response_data.status,
331
330
  data = return_data,
332
- headers = response_data.getheaders(),
331
+ headers = response_data.headers,
333
332
  raw_data = response_data.data
334
333
  )
335
334
 
@@ -701,7 +700,7 @@ class ApiClient:
701
700
  os.close(fd)
702
701
  os.remove(path)
703
702
 
704
- content_disposition = response.getheader("Content-Disposition")
703
+ content_disposition = response.headers.get("Content-Disposition")
705
704
  if content_disposition:
706
705
  m = re.search(
707
706
  r'filename=[\'"]?([^\'"\s]+)[\'"]?',
@@ -1,15 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Shaped API
4
+ Shaped API
5
5
 
6
- Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
6
+ Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
9
 
11
- Do not edit the class manually.
12
- """ # noqa: E501
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
13
12
 
14
13
 
15
14
  import copy
@@ -163,7 +162,7 @@ class Configuration:
163
162
  :param ca_cert_data: verify the peer using concatenated CA certificate data
164
163
  in PEM (str) or DER (bytes) format.
165
164
  :param cert_file: the path to a client certificate file, for mTLS.
166
- :param key_file: the path to a client key file, for mTLS.
165
+ :param key_file: the path to a client key file, for mTLS.
167
166
 
168
167
  """
169
168
 
@@ -484,6 +483,7 @@ class Configuration:
484
483
  password = ""
485
484
  if self.password is not None:
486
485
  password = self.password
486
+
487
487
  return urllib3.util.make_headers(
488
488
  basic_auth=username + ':' + password
489
489
  ).get('authorization')
@@ -504,7 +504,7 @@ class Configuration:
504
504
  return "Python SDK Debug Report:\n"\
505
505
  "OS: {env}\n"\
506
506
  "Python Version: {pyversion}\n"\
507
- "Version of the API: 2.0.0\n"\
507
+ "Version of the API: 2.0.5\n"\
508
508
  "SDK Package Version: 1.0.0".\
509
509
  format(env=sys.platform, pyversion=sys.version)
510
510
 
@@ -553,6 +553,7 @@ class Configuration:
553
553
  variable_name, variable['default_value'])
554
554
 
555
555
  if 'enum_values' in variable \
556
+ and variable['enum_values'] \
556
557
  and used_value not in variable['enum_values']:
557
558
  raise ValueError(
558
559
  "The variable `{0}` in the host URL has invalid value "
@@ -1,15 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Shaped API
4
+ Shaped API
5
5
 
6
- Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
6
+ Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
9
 
11
- Do not edit the class manually.
12
- """ # noqa: E501
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
13
12
 
14
13
  from typing import Any, Optional
15
14
  from typing_extensions import Self
@@ -128,7 +127,7 @@ class ApiException(OpenApiException):
128
127
  self.body = http_resp.data.decode('utf-8')
129
128
  except Exception:
130
129
  pass
131
- self.headers = http_resp.getheaders()
130
+ self.headers = http_resp.headers
132
131
 
133
132
  @classmethod
134
133
  def from_response(
@@ -169,8 +168,11 @@ class ApiException(OpenApiException):
169
168
  error_message += "HTTP response headers: {0}\n".format(
170
169
  self.headers)
171
170
 
172
- if self.data or self.body:
173
- error_message += "HTTP response body: {0}\n".format(self.data or self.body)
171
+ if self.body:
172
+ error_message += "HTTP response body: {0}\n".format(self.body)
173
+
174
+ if self.data:
175
+ error_message += "HTTP response data: {0}\n".format(self.data)
174
176
 
175
177
  return error_message
176
178