mapleflow 0.12.1__tar.gz → 0.17.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mapleflow-0.12.1 → mapleflow-0.17.2}/PKG-INFO +1 -1
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/ai/post_ai_chat.py +32 -136
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/ai/post_ai_speech.py +4 -4
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/verify/post_verify_face.py +25 -36
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/__init__.py +2 -12
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_speech_body.py +2 -2
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_speech_body_model.py +1 -1
- mapleflow-0.17.2/mapleflow/models/post_verify_face_body.py +77 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/pyproject.toml +1 -1
- mapleflow-0.12.1/mapleflow/api/verify/post_verify_labels.py +0 -190
- mapleflow-0.12.1/mapleflow/models/post_verify_face_files_body.py +0 -100
- mapleflow-0.12.1/mapleflow/models/post_verify_face_json_body.py +0 -69
- mapleflow-0.12.1/mapleflow/models/post_verify_labels_files_body.py +0 -81
- mapleflow-0.12.1/mapleflow/models/post_verify_labels_json_body.py +0 -61
- mapleflow-0.12.1/mapleflow/models/post_verify_labels_response_200.py +0 -72
- mapleflow-0.12.1/mapleflow/models/post_verify_labels_response_400.py +0 -69
- {mapleflow-0.12.1 → mapleflow-0.17.2}/.gitignore +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/README.md +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/config.yml +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/__init__.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/__init__.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/ai/__init__.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/ai/post_ai_embeddings.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/ai/post_ai_images.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/ai/post_ai_transcribe.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/images/__init__.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/images/post_images_bg_remove.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/utility/__init__.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/utility/get_currency.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/utility/get_weather.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/utility/post_translate.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/api/verify/__init__.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/client.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/errors.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/get_currency_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/get_currency_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/get_currency_response_404.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/get_currency_response_502.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/get_weather_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/get_weather_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/get_weather_response_404.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/get_weather_response_502.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/get_weather_units.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_chat_body.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_chat_body_messages_item.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_chat_body_model.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_chat_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_chat_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_embeddings_body.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_embeddings_body_model.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_embeddings_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_embeddings_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_images_body.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_images_body_model.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_images_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_images_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_speech_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_speech_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_transcribe_body.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_transcribe_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_ai_transcribe_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_images_bg_remove_files_body.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_images_bg_remove_json_body.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_images_bg_remove_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_images_bg_remove_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_images_bg_remove_response_502.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_images_bg_remove_response_504.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_translate_body.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_translate_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_translate_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_translate_response_402.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_verify_face_response_200.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/models/post_verify_face_response_400.py +0 -0
- {mapleflow-0.12.1 → mapleflow-0.17.2}/mapleflow/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mapleflow
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.17.2
|
|
4
4
|
Summary: Official Python SDK for the MapleFlow API platform — auto-generated from OpenAPI spec
|
|
5
5
|
Project-URL: Homepage, https://mapleflow.io
|
|
6
6
|
Project-URL: Repository, https://github.com/mapleflow/sdk-python
|
|
@@ -68,40 +68,14 @@ def sync_detailed(
|
|
|
68
68
|
) -> Response[PostAiChatResponse200 | PostAiChatResponse400]:
|
|
69
69
|
"""Chat completion
|
|
70
70
|
|
|
71
|
-
Generate chat completions.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
| `gemini-2.5-flash-lite` | 1 |
|
|
80
|
-
| `gemini-2.0-flash` | 1 |
|
|
81
|
-
| `gpt-oss-20b` | 1 |
|
|
82
|
-
| `phi-2` | 1 |
|
|
83
|
-
| `mistral-7b` | 1 |
|
|
84
|
-
| `claude-3-haiku` | 1 |
|
|
85
|
-
| `gpt-4.1-nano` | 1 |
|
|
86
|
-
| `gpt-4.1-mini` | 1 |
|
|
87
|
-
| `gpt-4o-mini` | 1 |
|
|
88
|
-
| `gemini-2.5-flash` | 1 |
|
|
89
|
-
| `llama-3.3-70b` | 1 |
|
|
90
|
-
| `llama-3.3-70b@workers-ai` | 1 |
|
|
91
|
-
| `deepseek-r1-32b` | 1 |
|
|
92
|
-
| `claude-haiku-4.5` | 1 |
|
|
93
|
-
| `gpt-oss-120b` | 1 |
|
|
94
|
-
| `grok-4.1-fast` | 1 |
|
|
95
|
-
| `grok-3-mini` | 1 |
|
|
96
|
-
| `gpt-4.1` | 1 |
|
|
97
|
-
| `gpt-4o` | 1 |
|
|
98
|
-
| `o4-mini` | 1 |
|
|
99
|
-
| `o3-mini` | 1 |
|
|
100
|
-
| `o3` | 1 |
|
|
101
|
-
| `claude-sonnet-4` | 1 |
|
|
102
|
-
| `claude-sonnet-4.6` | 1 |
|
|
103
|
-
| `claude-opus-4.6` | 1 |
|
|
104
|
-
| `grok-3` | 1 |
|
|
71
|
+
Generate chat completions with 30+ models from 6 providers. Credits are dynamic based on token usage
|
|
72
|
+
(as low as 0.01 per call). Unused credits are automatically refunded.
|
|
73
|
+
|
|
74
|
+
Available models: llama-3.2-1b, llama-3.2-3b, llama-3.1-8b, gemini-2.5-flash-lite, gemini-2.0-flash,
|
|
75
|
+
gpt-oss-20b, phi-2, mistral-7b, claude-3-haiku, gpt-4.1-nano, gpt-4.1-mini, gpt-4o-mini,
|
|
76
|
+
gemini-2.5-flash, llama-3.3-70b, deepseek-r1-32b, claude-haiku-4.5, gpt-oss-120b, grok-4.1-fast,
|
|
77
|
+
grok-3-mini, gpt-4.1, gpt-4o, o4-mini, o3-mini, o3, claude-sonnet-4, claude-sonnet-4.6, claude-
|
|
78
|
+
opus-4.6, grok-3
|
|
105
79
|
|
|
106
80
|
Args:
|
|
107
81
|
body (PostAiChatBody | Unset):
|
|
@@ -132,40 +106,14 @@ def sync(
|
|
|
132
106
|
) -> PostAiChatResponse200 | PostAiChatResponse400 | None:
|
|
133
107
|
"""Chat completion
|
|
134
108
|
|
|
135
|
-
Generate chat completions.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
| `gemini-2.5-flash-lite` | 1 |
|
|
144
|
-
| `gemini-2.0-flash` | 1 |
|
|
145
|
-
| `gpt-oss-20b` | 1 |
|
|
146
|
-
| `phi-2` | 1 |
|
|
147
|
-
| `mistral-7b` | 1 |
|
|
148
|
-
| `claude-3-haiku` | 1 |
|
|
149
|
-
| `gpt-4.1-nano` | 1 |
|
|
150
|
-
| `gpt-4.1-mini` | 1 |
|
|
151
|
-
| `gpt-4o-mini` | 1 |
|
|
152
|
-
| `gemini-2.5-flash` | 1 |
|
|
153
|
-
| `llama-3.3-70b` | 1 |
|
|
154
|
-
| `llama-3.3-70b@workers-ai` | 1 |
|
|
155
|
-
| `deepseek-r1-32b` | 1 |
|
|
156
|
-
| `claude-haiku-4.5` | 1 |
|
|
157
|
-
| `gpt-oss-120b` | 1 |
|
|
158
|
-
| `grok-4.1-fast` | 1 |
|
|
159
|
-
| `grok-3-mini` | 1 |
|
|
160
|
-
| `gpt-4.1` | 1 |
|
|
161
|
-
| `gpt-4o` | 1 |
|
|
162
|
-
| `o4-mini` | 1 |
|
|
163
|
-
| `o3-mini` | 1 |
|
|
164
|
-
| `o3` | 1 |
|
|
165
|
-
| `claude-sonnet-4` | 1 |
|
|
166
|
-
| `claude-sonnet-4.6` | 1 |
|
|
167
|
-
| `claude-opus-4.6` | 1 |
|
|
168
|
-
| `grok-3` | 1 |
|
|
109
|
+
Generate chat completions with 30+ models from 6 providers. Credits are dynamic based on token usage
|
|
110
|
+
(as low as 0.01 per call). Unused credits are automatically refunded.
|
|
111
|
+
|
|
112
|
+
Available models: llama-3.2-1b, llama-3.2-3b, llama-3.1-8b, gemini-2.5-flash-lite, gemini-2.0-flash,
|
|
113
|
+
gpt-oss-20b, phi-2, mistral-7b, claude-3-haiku, gpt-4.1-nano, gpt-4.1-mini, gpt-4o-mini,
|
|
114
|
+
gemini-2.5-flash, llama-3.3-70b, deepseek-r1-32b, claude-haiku-4.5, gpt-oss-120b, grok-4.1-fast,
|
|
115
|
+
grok-3-mini, gpt-4.1, gpt-4o, o4-mini, o3-mini, o3, claude-sonnet-4, claude-sonnet-4.6, claude-
|
|
116
|
+
opus-4.6, grok-3
|
|
169
117
|
|
|
170
118
|
Args:
|
|
171
119
|
body (PostAiChatBody | Unset):
|
|
@@ -191,40 +139,14 @@ async def asyncio_detailed(
|
|
|
191
139
|
) -> Response[PostAiChatResponse200 | PostAiChatResponse400]:
|
|
192
140
|
"""Chat completion
|
|
193
141
|
|
|
194
|
-
Generate chat completions.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
| `gemini-2.5-flash-lite` | 1 |
|
|
203
|
-
| `gemini-2.0-flash` | 1 |
|
|
204
|
-
| `gpt-oss-20b` | 1 |
|
|
205
|
-
| `phi-2` | 1 |
|
|
206
|
-
| `mistral-7b` | 1 |
|
|
207
|
-
| `claude-3-haiku` | 1 |
|
|
208
|
-
| `gpt-4.1-nano` | 1 |
|
|
209
|
-
| `gpt-4.1-mini` | 1 |
|
|
210
|
-
| `gpt-4o-mini` | 1 |
|
|
211
|
-
| `gemini-2.5-flash` | 1 |
|
|
212
|
-
| `llama-3.3-70b` | 1 |
|
|
213
|
-
| `llama-3.3-70b@workers-ai` | 1 |
|
|
214
|
-
| `deepseek-r1-32b` | 1 |
|
|
215
|
-
| `claude-haiku-4.5` | 1 |
|
|
216
|
-
| `gpt-oss-120b` | 1 |
|
|
217
|
-
| `grok-4.1-fast` | 1 |
|
|
218
|
-
| `grok-3-mini` | 1 |
|
|
219
|
-
| `gpt-4.1` | 1 |
|
|
220
|
-
| `gpt-4o` | 1 |
|
|
221
|
-
| `o4-mini` | 1 |
|
|
222
|
-
| `o3-mini` | 1 |
|
|
223
|
-
| `o3` | 1 |
|
|
224
|
-
| `claude-sonnet-4` | 1 |
|
|
225
|
-
| `claude-sonnet-4.6` | 1 |
|
|
226
|
-
| `claude-opus-4.6` | 1 |
|
|
227
|
-
| `grok-3` | 1 |
|
|
142
|
+
Generate chat completions with 30+ models from 6 providers. Credits are dynamic based on token usage
|
|
143
|
+
(as low as 0.01 per call). Unused credits are automatically refunded.
|
|
144
|
+
|
|
145
|
+
Available models: llama-3.2-1b, llama-3.2-3b, llama-3.1-8b, gemini-2.5-flash-lite, gemini-2.0-flash,
|
|
146
|
+
gpt-oss-20b, phi-2, mistral-7b, claude-3-haiku, gpt-4.1-nano, gpt-4.1-mini, gpt-4o-mini,
|
|
147
|
+
gemini-2.5-flash, llama-3.3-70b, deepseek-r1-32b, claude-haiku-4.5, gpt-oss-120b, grok-4.1-fast,
|
|
148
|
+
grok-3-mini, gpt-4.1, gpt-4o, o4-mini, o3-mini, o3, claude-sonnet-4, claude-sonnet-4.6, claude-
|
|
149
|
+
opus-4.6, grok-3
|
|
228
150
|
|
|
229
151
|
Args:
|
|
230
152
|
body (PostAiChatBody | Unset):
|
|
@@ -253,40 +175,14 @@ async def asyncio(
|
|
|
253
175
|
) -> PostAiChatResponse200 | PostAiChatResponse400 | None:
|
|
254
176
|
"""Chat completion
|
|
255
177
|
|
|
256
|
-
Generate chat completions.
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
| `gemini-2.5-flash-lite` | 1 |
|
|
265
|
-
| `gemini-2.0-flash` | 1 |
|
|
266
|
-
| `gpt-oss-20b` | 1 |
|
|
267
|
-
| `phi-2` | 1 |
|
|
268
|
-
| `mistral-7b` | 1 |
|
|
269
|
-
| `claude-3-haiku` | 1 |
|
|
270
|
-
| `gpt-4.1-nano` | 1 |
|
|
271
|
-
| `gpt-4.1-mini` | 1 |
|
|
272
|
-
| `gpt-4o-mini` | 1 |
|
|
273
|
-
| `gemini-2.5-flash` | 1 |
|
|
274
|
-
| `llama-3.3-70b` | 1 |
|
|
275
|
-
| `llama-3.3-70b@workers-ai` | 1 |
|
|
276
|
-
| `deepseek-r1-32b` | 1 |
|
|
277
|
-
| `claude-haiku-4.5` | 1 |
|
|
278
|
-
| `gpt-oss-120b` | 1 |
|
|
279
|
-
| `grok-4.1-fast` | 1 |
|
|
280
|
-
| `grok-3-mini` | 1 |
|
|
281
|
-
| `gpt-4.1` | 1 |
|
|
282
|
-
| `gpt-4o` | 1 |
|
|
283
|
-
| `o4-mini` | 1 |
|
|
284
|
-
| `o3-mini` | 1 |
|
|
285
|
-
| `o3` | 1 |
|
|
286
|
-
| `claude-sonnet-4` | 1 |
|
|
287
|
-
| `claude-sonnet-4.6` | 1 |
|
|
288
|
-
| `claude-opus-4.6` | 1 |
|
|
289
|
-
| `grok-3` | 1 |
|
|
178
|
+
Generate chat completions with 30+ models from 6 providers. Credits are dynamic based on token usage
|
|
179
|
+
(as low as 0.01 per call). Unused credits are automatically refunded.
|
|
180
|
+
|
|
181
|
+
Available models: llama-3.2-1b, llama-3.2-3b, llama-3.1-8b, gemini-2.5-flash-lite, gemini-2.0-flash,
|
|
182
|
+
gpt-oss-20b, phi-2, mistral-7b, claude-3-haiku, gpt-4.1-nano, gpt-4.1-mini, gpt-4o-mini,
|
|
183
|
+
gemini-2.5-flash, llama-3.3-70b, deepseek-r1-32b, claude-haiku-4.5, gpt-oss-120b, grok-4.1-fast,
|
|
184
|
+
grok-3-mini, gpt-4.1, gpt-4o, o4-mini, o3-mini, o3, claude-sonnet-4, claude-sonnet-4.6, claude-
|
|
185
|
+
opus-4.6, grok-3
|
|
290
186
|
|
|
291
187
|
Args:
|
|
292
188
|
body (PostAiChatBody | Unset):
|
|
@@ -72,7 +72,7 @@ def sync_detailed(
|
|
|
72
72
|
|
|
73
73
|
| Model | Credits |
|
|
74
74
|
|---|---|
|
|
75
|
-
| `
|
|
75
|
+
| `melotts` | 2 |
|
|
76
76
|
|
|
77
77
|
Args:
|
|
78
78
|
body (PostAiSpeechBody | Unset):
|
|
@@ -107,7 +107,7 @@ def sync(
|
|
|
107
107
|
|
|
108
108
|
| Model | Credits |
|
|
109
109
|
|---|---|
|
|
110
|
-
| `
|
|
110
|
+
| `melotts` | 2 |
|
|
111
111
|
|
|
112
112
|
Args:
|
|
113
113
|
body (PostAiSpeechBody | Unset):
|
|
@@ -137,7 +137,7 @@ async def asyncio_detailed(
|
|
|
137
137
|
|
|
138
138
|
| Model | Credits |
|
|
139
139
|
|---|---|
|
|
140
|
-
| `
|
|
140
|
+
| `melotts` | 2 |
|
|
141
141
|
|
|
142
142
|
Args:
|
|
143
143
|
body (PostAiSpeechBody | Unset):
|
|
@@ -170,7 +170,7 @@ async def asyncio(
|
|
|
170
170
|
|
|
171
171
|
| Model | Credits |
|
|
172
172
|
|---|---|
|
|
173
|
-
| `
|
|
173
|
+
| `melotts` | 2 |
|
|
174
174
|
|
|
175
175
|
Args:
|
|
176
176
|
body (PostAiSpeechBody | Unset):
|
|
@@ -5,8 +5,7 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.
|
|
9
|
-
from ...models.post_verify_face_json_body import PostVerifyFaceJsonBody
|
|
8
|
+
from ...models.post_verify_face_body import PostVerifyFaceBody
|
|
10
9
|
from ...models.post_verify_face_response_200 import PostVerifyFaceResponse200
|
|
11
10
|
from ...models.post_verify_face_response_400 import PostVerifyFaceResponse400
|
|
12
11
|
from ...types import UNSET, Response, Unset
|
|
@@ -14,7 +13,7 @@ from ...types import UNSET, Response, Unset
|
|
|
14
13
|
|
|
15
14
|
def _get_kwargs(
|
|
16
15
|
*,
|
|
17
|
-
body:
|
|
16
|
+
body: PostVerifyFaceBody | Unset = UNSET,
|
|
18
17
|
) -> dict[str, Any]:
|
|
19
18
|
headers: dict[str, Any] = {}
|
|
20
19
|
|
|
@@ -23,16 +22,10 @@ def _get_kwargs(
|
|
|
23
22
|
"url": "/verify/face",
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
if isinstance(body,
|
|
27
|
-
|
|
28
|
-
_kwargs["files"] = body.to_multipart()
|
|
25
|
+
if not isinstance(body, Unset):
|
|
26
|
+
_kwargs["json"] = body.to_dict()
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
if isinstance(body, PostVerifyFaceJsonBody):
|
|
32
|
-
if not isinstance(body, Unset):
|
|
33
|
-
_kwargs["json"] = body.to_dict()
|
|
34
|
-
|
|
35
|
-
headers["Content-Type"] = "application/json"
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
36
29
|
|
|
37
30
|
_kwargs["headers"] = headers
|
|
38
31
|
return _kwargs
|
|
@@ -71,16 +64,15 @@ def _build_response(
|
|
|
71
64
|
def sync_detailed(
|
|
72
65
|
*,
|
|
73
66
|
client: AuthenticatedClient | Client,
|
|
74
|
-
body:
|
|
67
|
+
body: PostVerifyFaceBody | Unset = UNSET,
|
|
75
68
|
) -> Response[PostVerifyFaceResponse200 | PostVerifyFaceResponse400]:
|
|
76
|
-
"""
|
|
69
|
+
"""Face verification
|
|
77
70
|
|
|
78
|
-
Compare
|
|
79
|
-
|
|
71
|
+
Compare a selfie against a reference photo to verify identity. Provide HTTPS URLs for both images.
|
|
72
|
+
Returns match result with similarity score. 2 credits per call.
|
|
80
73
|
|
|
81
74
|
Args:
|
|
82
|
-
body (
|
|
83
|
-
body (PostVerifyFaceJsonBody | Unset):
|
|
75
|
+
body (PostVerifyFaceBody | Unset):
|
|
84
76
|
|
|
85
77
|
Raises:
|
|
86
78
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -104,16 +96,15 @@ def sync_detailed(
|
|
|
104
96
|
def sync(
|
|
105
97
|
*,
|
|
106
98
|
client: AuthenticatedClient | Client,
|
|
107
|
-
body:
|
|
99
|
+
body: PostVerifyFaceBody | Unset = UNSET,
|
|
108
100
|
) -> PostVerifyFaceResponse200 | PostVerifyFaceResponse400 | None:
|
|
109
|
-
"""
|
|
101
|
+
"""Face verification
|
|
110
102
|
|
|
111
|
-
Compare
|
|
112
|
-
|
|
103
|
+
Compare a selfie against a reference photo to verify identity. Provide HTTPS URLs for both images.
|
|
104
|
+
Returns match result with similarity score. 2 credits per call.
|
|
113
105
|
|
|
114
106
|
Args:
|
|
115
|
-
body (
|
|
116
|
-
body (PostVerifyFaceJsonBody | Unset):
|
|
107
|
+
body (PostVerifyFaceBody | Unset):
|
|
117
108
|
|
|
118
109
|
Raises:
|
|
119
110
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -132,16 +123,15 @@ def sync(
|
|
|
132
123
|
async def asyncio_detailed(
|
|
133
124
|
*,
|
|
134
125
|
client: AuthenticatedClient | Client,
|
|
135
|
-
body:
|
|
126
|
+
body: PostVerifyFaceBody | Unset = UNSET,
|
|
136
127
|
) -> Response[PostVerifyFaceResponse200 | PostVerifyFaceResponse400]:
|
|
137
|
-
"""
|
|
128
|
+
"""Face verification
|
|
138
129
|
|
|
139
|
-
Compare
|
|
140
|
-
|
|
130
|
+
Compare a selfie against a reference photo to verify identity. Provide HTTPS URLs for both images.
|
|
131
|
+
Returns match result with similarity score. 2 credits per call.
|
|
141
132
|
|
|
142
133
|
Args:
|
|
143
|
-
body (
|
|
144
|
-
body (PostVerifyFaceJsonBody | Unset):
|
|
134
|
+
body (PostVerifyFaceBody | Unset):
|
|
145
135
|
|
|
146
136
|
Raises:
|
|
147
137
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -163,16 +153,15 @@ async def asyncio_detailed(
|
|
|
163
153
|
async def asyncio(
|
|
164
154
|
*,
|
|
165
155
|
client: AuthenticatedClient | Client,
|
|
166
|
-
body:
|
|
156
|
+
body: PostVerifyFaceBody | Unset = UNSET,
|
|
167
157
|
) -> PostVerifyFaceResponse200 | PostVerifyFaceResponse400 | None:
|
|
168
|
-
"""
|
|
158
|
+
"""Face verification
|
|
169
159
|
|
|
170
|
-
Compare
|
|
171
|
-
|
|
160
|
+
Compare a selfie against a reference photo to verify identity. Provide HTTPS URLs for both images.
|
|
161
|
+
Returns match result with similarity score. 2 credits per call.
|
|
172
162
|
|
|
173
163
|
Args:
|
|
174
|
-
body (
|
|
175
|
-
body (PostVerifyFaceJsonBody | Unset):
|
|
164
|
+
body (PostVerifyFaceBody | Unset):
|
|
176
165
|
|
|
177
166
|
Raises:
|
|
178
167
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -39,14 +39,9 @@ from .post_translate_body import PostTranslateBody
|
|
|
39
39
|
from .post_translate_response_200 import PostTranslateResponse200
|
|
40
40
|
from .post_translate_response_400 import PostTranslateResponse400
|
|
41
41
|
from .post_translate_response_402 import PostTranslateResponse402
|
|
42
|
-
from .
|
|
43
|
-
from .post_verify_face_json_body import PostVerifyFaceJsonBody
|
|
42
|
+
from .post_verify_face_body import PostVerifyFaceBody
|
|
44
43
|
from .post_verify_face_response_200 import PostVerifyFaceResponse200
|
|
45
44
|
from .post_verify_face_response_400 import PostVerifyFaceResponse400
|
|
46
|
-
from .post_verify_labels_files_body import PostVerifyLabelsFilesBody
|
|
47
|
-
from .post_verify_labels_json_body import PostVerifyLabelsJsonBody
|
|
48
|
-
from .post_verify_labels_response_200 import PostVerifyLabelsResponse200
|
|
49
|
-
from .post_verify_labels_response_400 import PostVerifyLabelsResponse400
|
|
50
45
|
|
|
51
46
|
__all__ = (
|
|
52
47
|
"GetCurrencyResponse200",
|
|
@@ -88,12 +83,7 @@ __all__ = (
|
|
|
88
83
|
"PostTranslateResponse200",
|
|
89
84
|
"PostTranslateResponse400",
|
|
90
85
|
"PostTranslateResponse402",
|
|
91
|
-
"
|
|
92
|
-
"PostVerifyFaceJsonBody",
|
|
86
|
+
"PostVerifyFaceBody",
|
|
93
87
|
"PostVerifyFaceResponse200",
|
|
94
88
|
"PostVerifyFaceResponse400",
|
|
95
|
-
"PostVerifyLabelsFilesBody",
|
|
96
|
-
"PostVerifyLabelsJsonBody",
|
|
97
|
-
"PostVerifyLabelsResponse200",
|
|
98
|
-
"PostVerifyLabelsResponse400",
|
|
99
89
|
)
|
|
@@ -17,11 +17,11 @@ class PostAiSpeechBody:
|
|
|
17
17
|
"""
|
|
18
18
|
Attributes:
|
|
19
19
|
text (str): Text to convert to speech Example: Hello world.
|
|
20
|
-
model (PostAiSpeechBodyModel | Unset): Model name Default: PostAiSpeechBodyModel.
|
|
20
|
+
model (PostAiSpeechBodyModel | Unset): Model name Default: PostAiSpeechBodyModel.MELOTTS. Example: melotts.
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
23
|
text: str
|
|
24
|
-
model: PostAiSpeechBodyModel | Unset = PostAiSpeechBodyModel.
|
|
24
|
+
model: PostAiSpeechBodyModel | Unset = PostAiSpeechBodyModel.MELOTTS
|
|
25
25
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
26
|
|
|
27
27
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from typing import Any, TypeVar
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="PostVerifyFaceBody")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PostVerifyFaceBody:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
selfie_url (str): HTTPS URL of the selfie image Example: https://example.com/selfie.jpg.
|
|
17
|
+
reference_url (str): HTTPS URL of the reference photo Example: https://example.com/reference.jpg.
|
|
18
|
+
external_user_id (str): Your unique user identifier Example: user_123.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
selfie_url: str
|
|
22
|
+
reference_url: str
|
|
23
|
+
external_user_id: str
|
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
|
27
|
+
selfie_url = self.selfie_url
|
|
28
|
+
|
|
29
|
+
reference_url = self.reference_url
|
|
30
|
+
|
|
31
|
+
external_user_id = self.external_user_id
|
|
32
|
+
|
|
33
|
+
field_dict: dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update(
|
|
36
|
+
{
|
|
37
|
+
"selfie_url": selfie_url,
|
|
38
|
+
"reference_url": reference_url,
|
|
39
|
+
"external_user_id": external_user_id,
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
return field_dict
|
|
44
|
+
|
|
45
|
+
@classmethod
|
|
46
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
47
|
+
d = dict(src_dict)
|
|
48
|
+
selfie_url = d.pop("selfie_url")
|
|
49
|
+
|
|
50
|
+
reference_url = d.pop("reference_url")
|
|
51
|
+
|
|
52
|
+
external_user_id = d.pop("external_user_id")
|
|
53
|
+
|
|
54
|
+
post_verify_face_body = cls(
|
|
55
|
+
selfie_url=selfie_url,
|
|
56
|
+
reference_url=reference_url,
|
|
57
|
+
external_user_id=external_user_id,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
post_verify_face_body.additional_properties = d
|
|
61
|
+
return post_verify_face_body
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def additional_keys(self) -> list[str]:
|
|
65
|
+
return list(self.additional_properties.keys())
|
|
66
|
+
|
|
67
|
+
def __getitem__(self, key: str) -> Any:
|
|
68
|
+
return self.additional_properties[key]
|
|
69
|
+
|
|
70
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
71
|
+
self.additional_properties[key] = value
|
|
72
|
+
|
|
73
|
+
def __delitem__(self, key: str) -> None:
|
|
74
|
+
del self.additional_properties[key]
|
|
75
|
+
|
|
76
|
+
def __contains__(self, key: str) -> bool:
|
|
77
|
+
return key in self.additional_properties
|