mirascope 2.0.0a3__py3-none-any.whl → 2.0.0a4__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.
- mirascope/api/_generated/__init__.py +62 -6
- mirascope/api/_generated/client.py +8 -0
- mirascope/api/_generated/errors/__init__.py +11 -1
- mirascope/api/_generated/errors/conflict_error.py +15 -0
- mirascope/api/_generated/errors/forbidden_error.py +15 -0
- mirascope/api/_generated/errors/internal_server_error.py +15 -0
- mirascope/api/_generated/errors/not_found_error.py +15 -0
- mirascope/api/_generated/organizations/__init__.py +25 -0
- mirascope/api/_generated/organizations/client.py +380 -0
- mirascope/api/_generated/organizations/raw_client.py +876 -0
- mirascope/api/_generated/organizations/types/__init__.py +23 -0
- mirascope/api/_generated/organizations/types/organizations_create_response.py +24 -0
- mirascope/api/_generated/organizations/types/organizations_create_response_role.py +7 -0
- mirascope/api/_generated/organizations/types/organizations_get_response.py +24 -0
- mirascope/api/_generated/organizations/types/organizations_get_response_role.py +7 -0
- mirascope/api/_generated/organizations/types/organizations_list_response_item.py +24 -0
- mirascope/api/_generated/organizations/types/organizations_list_response_item_role.py +7 -0
- mirascope/api/_generated/organizations/types/organizations_update_response.py +24 -0
- mirascope/api/_generated/organizations/types/organizations_update_response_role.py +7 -0
- mirascope/api/_generated/projects/__init__.py +17 -0
- mirascope/api/_generated/projects/client.py +458 -0
- mirascope/api/_generated/projects/raw_client.py +1016 -0
- mirascope/api/_generated/projects/types/__init__.py +15 -0
- mirascope/api/_generated/projects/types/projects_create_response.py +30 -0
- mirascope/api/_generated/projects/types/projects_get_response.py +30 -0
- mirascope/api/_generated/projects/types/projects_list_response_item.py +30 -0
- mirascope/api/_generated/projects/types/projects_update_response.py +30 -0
- mirascope/api/_generated/reference.md +586 -0
- mirascope/api/_generated/types/__init__.py +20 -4
- mirascope/api/_generated/types/already_exists_error.py +24 -0
- mirascope/api/_generated/types/already_exists_error_tag.py +5 -0
- mirascope/api/_generated/types/database_error.py +24 -0
- mirascope/api/_generated/types/database_error_tag.py +5 -0
- mirascope/api/_generated/types/http_api_decode_error.py +1 -3
- mirascope/api/_generated/types/issue.py +1 -5
- mirascope/api/_generated/types/not_found_error_body.py +24 -0
- mirascope/api/_generated/types/not_found_error_tag.py +5 -0
- mirascope/api/_generated/types/permission_denied_error.py +24 -0
- mirascope/api/_generated/types/permission_denied_error_tag.py +7 -0
- mirascope/api/_generated/types/property_key.py +2 -2
- mirascope/api/_generated/types/{property_key_tag.py → property_key_key.py} +3 -5
- mirascope/api/_generated/types/{property_key_tag_tag.py → property_key_key_tag.py} +1 -1
- mirascope/llm/__init__.py +4 -0
- mirascope/llm/providers/__init__.py +6 -0
- mirascope/llm/providers/anthropic/__init__.py +6 -1
- mirascope/llm/providers/anthropic/_utils/__init__.py +15 -5
- mirascope/llm/providers/anthropic/_utils/beta_decode.py +271 -0
- mirascope/llm/providers/anthropic/_utils/beta_encode.py +216 -0
- mirascope/llm/providers/anthropic/_utils/decode.py +39 -7
- mirascope/llm/providers/anthropic/_utils/encode.py +156 -64
- mirascope/llm/providers/anthropic/beta_provider.py +322 -0
- mirascope/llm/providers/anthropic/model_id.py +10 -27
- mirascope/llm/providers/anthropic/model_info.py +87 -0
- mirascope/llm/providers/anthropic/provider.py +127 -145
- mirascope/llm/providers/base/_utils.py +15 -1
- mirascope/llm/providers/google/_utils/decode.py +55 -3
- mirascope/llm/providers/google/_utils/encode.py +14 -6
- mirascope/llm/providers/google/model_id.py +7 -13
- mirascope/llm/providers/google/model_info.py +62 -0
- mirascope/llm/providers/google/provider.py +8 -4
- mirascope/llm/providers/load_provider.py +8 -2
- mirascope/llm/providers/mlx/_utils.py +23 -1
- mirascope/llm/providers/mlx/encoding/transformers.py +17 -1
- mirascope/llm/providers/mlx/provider.py +4 -0
- mirascope/llm/providers/ollama/__init__.py +19 -0
- mirascope/llm/providers/ollama/provider.py +71 -0
- mirascope/llm/providers/openai/completions/__init__.py +6 -1
- mirascope/llm/providers/openai/completions/_utils/decode.py +57 -5
- mirascope/llm/providers/openai/completions/_utils/encode.py +9 -8
- mirascope/llm/providers/openai/completions/base_provider.py +513 -0
- mirascope/llm/providers/openai/completions/provider.py +13 -447
- mirascope/llm/providers/openai/model_info.py +57 -0
- mirascope/llm/providers/openai/provider.py +16 -4
- mirascope/llm/providers/openai/responses/_utils/decode.py +55 -4
- mirascope/llm/providers/openai/responses/_utils/encode.py +9 -9
- mirascope/llm/providers/openai/responses/provider.py +20 -21
- mirascope/llm/providers/provider_id.py +11 -1
- mirascope/llm/providers/provider_registry.py +3 -1
- mirascope/llm/providers/together/__init__.py +19 -0
- mirascope/llm/providers/together/provider.py +40 -0
- mirascope/llm/responses/__init__.py +3 -0
- mirascope/llm/responses/base_response.py +4 -0
- mirascope/llm/responses/base_stream_response.py +25 -1
- mirascope/llm/responses/finish_reason.py +1 -0
- mirascope/llm/responses/response.py +9 -0
- mirascope/llm/responses/root_response.py +5 -1
- mirascope/llm/responses/usage.py +95 -0
- {mirascope-2.0.0a3.dist-info → mirascope-2.0.0a4.dist-info}/METADATA +3 -3
- {mirascope-2.0.0a3.dist-info → mirascope-2.0.0a4.dist-info}/RECORD +91 -50
- mirascope/llm/providers/openai/shared/__init__.py +0 -7
- mirascope/llm/providers/openai/shared/_utils.py +0 -59
- {mirascope-2.0.0a3.dist-info → mirascope-2.0.0a4.dist-info}/WHEEL +0 -0
- {mirascope-2.0.0a3.dist-info → mirascope-2.0.0a4.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
from .projects_create_response import ProjectsCreateResponse
|
|
6
|
+
from .projects_get_response import ProjectsGetResponse
|
|
7
|
+
from .projects_list_response_item import ProjectsListResponseItem
|
|
8
|
+
from .projects_update_response import ProjectsUpdateResponse
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"ProjectsCreateResponse",
|
|
12
|
+
"ProjectsGetResponse",
|
|
13
|
+
"ProjectsListResponseItem",
|
|
14
|
+
"ProjectsUpdateResponse",
|
|
15
|
+
]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ...core.serialization import FieldMetadata
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ProjectsCreateResponse(UniversalBaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
name: str
|
|
14
|
+
organization_id: typing_extensions.Annotated[
|
|
15
|
+
str, FieldMetadata(alias="organizationId")
|
|
16
|
+
]
|
|
17
|
+
created_by_user_id: typing_extensions.Annotated[
|
|
18
|
+
str, FieldMetadata(alias="createdByUserId")
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
23
|
+
extra="allow", frozen=True
|
|
24
|
+
) # type: ignore # Pydantic v2
|
|
25
|
+
else:
|
|
26
|
+
|
|
27
|
+
class Config:
|
|
28
|
+
frozen = True
|
|
29
|
+
smart_union = True
|
|
30
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ...core.serialization import FieldMetadata
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ProjectsGetResponse(UniversalBaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
name: str
|
|
14
|
+
organization_id: typing_extensions.Annotated[
|
|
15
|
+
str, FieldMetadata(alias="organizationId")
|
|
16
|
+
]
|
|
17
|
+
created_by_user_id: typing_extensions.Annotated[
|
|
18
|
+
str, FieldMetadata(alias="createdByUserId")
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
23
|
+
extra="allow", frozen=True
|
|
24
|
+
) # type: ignore # Pydantic v2
|
|
25
|
+
else:
|
|
26
|
+
|
|
27
|
+
class Config:
|
|
28
|
+
frozen = True
|
|
29
|
+
smart_union = True
|
|
30
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ...core.serialization import FieldMetadata
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ProjectsListResponseItem(UniversalBaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
name: str
|
|
14
|
+
organization_id: typing_extensions.Annotated[
|
|
15
|
+
str, FieldMetadata(alias="organizationId")
|
|
16
|
+
]
|
|
17
|
+
created_by_user_id: typing_extensions.Annotated[
|
|
18
|
+
str, FieldMetadata(alias="createdByUserId")
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
23
|
+
extra="allow", frozen=True
|
|
24
|
+
) # type: ignore # Pydantic v2
|
|
25
|
+
else:
|
|
26
|
+
|
|
27
|
+
class Config:
|
|
28
|
+
frozen = True
|
|
29
|
+
smart_union = True
|
|
30
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ...core.serialization import FieldMetadata
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ProjectsUpdateResponse(UniversalBaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
name: str
|
|
14
|
+
organization_id: typing_extensions.Annotated[
|
|
15
|
+
str, FieldMetadata(alias="organizationId")
|
|
16
|
+
]
|
|
17
|
+
created_by_user_id: typing_extensions.Annotated[
|
|
18
|
+
str, FieldMetadata(alias="createdByUserId")
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
23
|
+
extra="allow", frozen=True
|
|
24
|
+
) # type: ignore # Pydantic v2
|
|
25
|
+
else:
|
|
26
|
+
|
|
27
|
+
class Config:
|
|
28
|
+
frozen = True
|
|
29
|
+
smart_union = True
|
|
30
|
+
extra = pydantic.Extra.allow
|
|
@@ -165,3 +165,589 @@ client.docs.openapi()
|
|
|
165
165
|
</dl>
|
|
166
166
|
</details>
|
|
167
167
|
|
|
168
|
+
## organizations
|
|
169
|
+
<details><summary><code>client.organizations.<a href="src/mirascope/organizations/client.py">list</a>()</code></summary>
|
|
170
|
+
<dl>
|
|
171
|
+
<dd>
|
|
172
|
+
|
|
173
|
+
#### 🔌 Usage
|
|
174
|
+
|
|
175
|
+
<dl>
|
|
176
|
+
<dd>
|
|
177
|
+
|
|
178
|
+
<dl>
|
|
179
|
+
<dd>
|
|
180
|
+
|
|
181
|
+
```python
|
|
182
|
+
from mirascope.api._generated import Mirascope
|
|
183
|
+
|
|
184
|
+
client = Mirascope()
|
|
185
|
+
client.organizations.list()
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
</dd>
|
|
189
|
+
</dl>
|
|
190
|
+
</dd>
|
|
191
|
+
</dl>
|
|
192
|
+
|
|
193
|
+
#### ⚙️ Parameters
|
|
194
|
+
|
|
195
|
+
<dl>
|
|
196
|
+
<dd>
|
|
197
|
+
|
|
198
|
+
<dl>
|
|
199
|
+
<dd>
|
|
200
|
+
|
|
201
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
202
|
+
|
|
203
|
+
</dd>
|
|
204
|
+
</dl>
|
|
205
|
+
</dd>
|
|
206
|
+
</dl>
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
</dd>
|
|
210
|
+
</dl>
|
|
211
|
+
</details>
|
|
212
|
+
|
|
213
|
+
<details><summary><code>client.organizations.<a href="src/mirascope/organizations/client.py">create</a>(...)</code></summary>
|
|
214
|
+
<dl>
|
|
215
|
+
<dd>
|
|
216
|
+
|
|
217
|
+
#### 🔌 Usage
|
|
218
|
+
|
|
219
|
+
<dl>
|
|
220
|
+
<dd>
|
|
221
|
+
|
|
222
|
+
<dl>
|
|
223
|
+
<dd>
|
|
224
|
+
|
|
225
|
+
```python
|
|
226
|
+
from mirascope.api._generated import Mirascope
|
|
227
|
+
|
|
228
|
+
client = Mirascope()
|
|
229
|
+
client.organizations.create(
|
|
230
|
+
name="name",
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
```
|
|
234
|
+
</dd>
|
|
235
|
+
</dl>
|
|
236
|
+
</dd>
|
|
237
|
+
</dl>
|
|
238
|
+
|
|
239
|
+
#### ⚙️ Parameters
|
|
240
|
+
|
|
241
|
+
<dl>
|
|
242
|
+
<dd>
|
|
243
|
+
|
|
244
|
+
<dl>
|
|
245
|
+
<dd>
|
|
246
|
+
|
|
247
|
+
**name:** `str` — a string at most 100 character(s) long
|
|
248
|
+
|
|
249
|
+
</dd>
|
|
250
|
+
</dl>
|
|
251
|
+
|
|
252
|
+
<dl>
|
|
253
|
+
<dd>
|
|
254
|
+
|
|
255
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
256
|
+
|
|
257
|
+
</dd>
|
|
258
|
+
</dl>
|
|
259
|
+
</dd>
|
|
260
|
+
</dl>
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
</dd>
|
|
264
|
+
</dl>
|
|
265
|
+
</details>
|
|
266
|
+
|
|
267
|
+
<details><summary><code>client.organizations.<a href="src/mirascope/organizations/client.py">get</a>(...)</code></summary>
|
|
268
|
+
<dl>
|
|
269
|
+
<dd>
|
|
270
|
+
|
|
271
|
+
#### 🔌 Usage
|
|
272
|
+
|
|
273
|
+
<dl>
|
|
274
|
+
<dd>
|
|
275
|
+
|
|
276
|
+
<dl>
|
|
277
|
+
<dd>
|
|
278
|
+
|
|
279
|
+
```python
|
|
280
|
+
from mirascope.api._generated import Mirascope
|
|
281
|
+
|
|
282
|
+
client = Mirascope()
|
|
283
|
+
client.organizations.get(
|
|
284
|
+
id="id",
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
</dd>
|
|
289
|
+
</dl>
|
|
290
|
+
</dd>
|
|
291
|
+
</dl>
|
|
292
|
+
|
|
293
|
+
#### ⚙️ Parameters
|
|
294
|
+
|
|
295
|
+
<dl>
|
|
296
|
+
<dd>
|
|
297
|
+
|
|
298
|
+
<dl>
|
|
299
|
+
<dd>
|
|
300
|
+
|
|
301
|
+
**id:** `str`
|
|
302
|
+
|
|
303
|
+
</dd>
|
|
304
|
+
</dl>
|
|
305
|
+
|
|
306
|
+
<dl>
|
|
307
|
+
<dd>
|
|
308
|
+
|
|
309
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
310
|
+
|
|
311
|
+
</dd>
|
|
312
|
+
</dl>
|
|
313
|
+
</dd>
|
|
314
|
+
</dl>
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
</dd>
|
|
318
|
+
</dl>
|
|
319
|
+
</details>
|
|
320
|
+
|
|
321
|
+
<details><summary><code>client.organizations.<a href="src/mirascope/organizations/client.py">update</a>(...)</code></summary>
|
|
322
|
+
<dl>
|
|
323
|
+
<dd>
|
|
324
|
+
|
|
325
|
+
#### 🔌 Usage
|
|
326
|
+
|
|
327
|
+
<dl>
|
|
328
|
+
<dd>
|
|
329
|
+
|
|
330
|
+
<dl>
|
|
331
|
+
<dd>
|
|
332
|
+
|
|
333
|
+
```python
|
|
334
|
+
from mirascope.api._generated import Mirascope
|
|
335
|
+
|
|
336
|
+
client = Mirascope()
|
|
337
|
+
client.organizations.update(
|
|
338
|
+
id="id",
|
|
339
|
+
name="name",
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
```
|
|
343
|
+
</dd>
|
|
344
|
+
</dl>
|
|
345
|
+
</dd>
|
|
346
|
+
</dl>
|
|
347
|
+
|
|
348
|
+
#### ⚙️ Parameters
|
|
349
|
+
|
|
350
|
+
<dl>
|
|
351
|
+
<dd>
|
|
352
|
+
|
|
353
|
+
<dl>
|
|
354
|
+
<dd>
|
|
355
|
+
|
|
356
|
+
**id:** `str`
|
|
357
|
+
|
|
358
|
+
</dd>
|
|
359
|
+
</dl>
|
|
360
|
+
|
|
361
|
+
<dl>
|
|
362
|
+
<dd>
|
|
363
|
+
|
|
364
|
+
**name:** `str` — a string at most 100 character(s) long
|
|
365
|
+
|
|
366
|
+
</dd>
|
|
367
|
+
</dl>
|
|
368
|
+
|
|
369
|
+
<dl>
|
|
370
|
+
<dd>
|
|
371
|
+
|
|
372
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
373
|
+
|
|
374
|
+
</dd>
|
|
375
|
+
</dl>
|
|
376
|
+
</dd>
|
|
377
|
+
</dl>
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
</dd>
|
|
381
|
+
</dl>
|
|
382
|
+
</details>
|
|
383
|
+
|
|
384
|
+
<details><summary><code>client.organizations.<a href="src/mirascope/organizations/client.py">delete</a>(...)</code></summary>
|
|
385
|
+
<dl>
|
|
386
|
+
<dd>
|
|
387
|
+
|
|
388
|
+
#### 🔌 Usage
|
|
389
|
+
|
|
390
|
+
<dl>
|
|
391
|
+
<dd>
|
|
392
|
+
|
|
393
|
+
<dl>
|
|
394
|
+
<dd>
|
|
395
|
+
|
|
396
|
+
```python
|
|
397
|
+
from mirascope.api._generated import Mirascope
|
|
398
|
+
|
|
399
|
+
client = Mirascope()
|
|
400
|
+
client.organizations.delete(
|
|
401
|
+
id="id",
|
|
402
|
+
)
|
|
403
|
+
|
|
404
|
+
```
|
|
405
|
+
</dd>
|
|
406
|
+
</dl>
|
|
407
|
+
</dd>
|
|
408
|
+
</dl>
|
|
409
|
+
|
|
410
|
+
#### ⚙️ Parameters
|
|
411
|
+
|
|
412
|
+
<dl>
|
|
413
|
+
<dd>
|
|
414
|
+
|
|
415
|
+
<dl>
|
|
416
|
+
<dd>
|
|
417
|
+
|
|
418
|
+
**id:** `str`
|
|
419
|
+
|
|
420
|
+
</dd>
|
|
421
|
+
</dl>
|
|
422
|
+
|
|
423
|
+
<dl>
|
|
424
|
+
<dd>
|
|
425
|
+
|
|
426
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
427
|
+
|
|
428
|
+
</dd>
|
|
429
|
+
</dl>
|
|
430
|
+
</dd>
|
|
431
|
+
</dl>
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
</dd>
|
|
435
|
+
</dl>
|
|
436
|
+
</details>
|
|
437
|
+
|
|
438
|
+
## projects
|
|
439
|
+
<details><summary><code>client.projects.<a href="src/mirascope/projects/client.py">list</a>(...)</code></summary>
|
|
440
|
+
<dl>
|
|
441
|
+
<dd>
|
|
442
|
+
|
|
443
|
+
#### 🔌 Usage
|
|
444
|
+
|
|
445
|
+
<dl>
|
|
446
|
+
<dd>
|
|
447
|
+
|
|
448
|
+
<dl>
|
|
449
|
+
<dd>
|
|
450
|
+
|
|
451
|
+
```python
|
|
452
|
+
from mirascope.api._generated import Mirascope
|
|
453
|
+
|
|
454
|
+
client = Mirascope()
|
|
455
|
+
client.projects.list(
|
|
456
|
+
organization_id="organizationId",
|
|
457
|
+
)
|
|
458
|
+
|
|
459
|
+
```
|
|
460
|
+
</dd>
|
|
461
|
+
</dl>
|
|
462
|
+
</dd>
|
|
463
|
+
</dl>
|
|
464
|
+
|
|
465
|
+
#### ⚙️ Parameters
|
|
466
|
+
|
|
467
|
+
<dl>
|
|
468
|
+
<dd>
|
|
469
|
+
|
|
470
|
+
<dl>
|
|
471
|
+
<dd>
|
|
472
|
+
|
|
473
|
+
**organization_id:** `str`
|
|
474
|
+
|
|
475
|
+
</dd>
|
|
476
|
+
</dl>
|
|
477
|
+
|
|
478
|
+
<dl>
|
|
479
|
+
<dd>
|
|
480
|
+
|
|
481
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
482
|
+
|
|
483
|
+
</dd>
|
|
484
|
+
</dl>
|
|
485
|
+
</dd>
|
|
486
|
+
</dl>
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
</dd>
|
|
490
|
+
</dl>
|
|
491
|
+
</details>
|
|
492
|
+
|
|
493
|
+
<details><summary><code>client.projects.<a href="src/mirascope/projects/client.py">create</a>(...)</code></summary>
|
|
494
|
+
<dl>
|
|
495
|
+
<dd>
|
|
496
|
+
|
|
497
|
+
#### 🔌 Usage
|
|
498
|
+
|
|
499
|
+
<dl>
|
|
500
|
+
<dd>
|
|
501
|
+
|
|
502
|
+
<dl>
|
|
503
|
+
<dd>
|
|
504
|
+
|
|
505
|
+
```python
|
|
506
|
+
from mirascope.api._generated import Mirascope
|
|
507
|
+
|
|
508
|
+
client = Mirascope()
|
|
509
|
+
client.projects.create(
|
|
510
|
+
organization_id="organizationId",
|
|
511
|
+
name="name",
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
```
|
|
515
|
+
</dd>
|
|
516
|
+
</dl>
|
|
517
|
+
</dd>
|
|
518
|
+
</dl>
|
|
519
|
+
|
|
520
|
+
#### ⚙️ Parameters
|
|
521
|
+
|
|
522
|
+
<dl>
|
|
523
|
+
<dd>
|
|
524
|
+
|
|
525
|
+
<dl>
|
|
526
|
+
<dd>
|
|
527
|
+
|
|
528
|
+
**organization_id:** `str`
|
|
529
|
+
|
|
530
|
+
</dd>
|
|
531
|
+
</dl>
|
|
532
|
+
|
|
533
|
+
<dl>
|
|
534
|
+
<dd>
|
|
535
|
+
|
|
536
|
+
**name:** `str` — a string at most 100 character(s) long
|
|
537
|
+
|
|
538
|
+
</dd>
|
|
539
|
+
</dl>
|
|
540
|
+
|
|
541
|
+
<dl>
|
|
542
|
+
<dd>
|
|
543
|
+
|
|
544
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
545
|
+
|
|
546
|
+
</dd>
|
|
547
|
+
</dl>
|
|
548
|
+
</dd>
|
|
549
|
+
</dl>
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
</dd>
|
|
553
|
+
</dl>
|
|
554
|
+
</details>
|
|
555
|
+
|
|
556
|
+
<details><summary><code>client.projects.<a href="src/mirascope/projects/client.py">get</a>(...)</code></summary>
|
|
557
|
+
<dl>
|
|
558
|
+
<dd>
|
|
559
|
+
|
|
560
|
+
#### 🔌 Usage
|
|
561
|
+
|
|
562
|
+
<dl>
|
|
563
|
+
<dd>
|
|
564
|
+
|
|
565
|
+
<dl>
|
|
566
|
+
<dd>
|
|
567
|
+
|
|
568
|
+
```python
|
|
569
|
+
from mirascope.api._generated import Mirascope
|
|
570
|
+
|
|
571
|
+
client = Mirascope()
|
|
572
|
+
client.projects.get(
|
|
573
|
+
organization_id="organizationId",
|
|
574
|
+
project_id="projectId",
|
|
575
|
+
)
|
|
576
|
+
|
|
577
|
+
```
|
|
578
|
+
</dd>
|
|
579
|
+
</dl>
|
|
580
|
+
</dd>
|
|
581
|
+
</dl>
|
|
582
|
+
|
|
583
|
+
#### ⚙️ Parameters
|
|
584
|
+
|
|
585
|
+
<dl>
|
|
586
|
+
<dd>
|
|
587
|
+
|
|
588
|
+
<dl>
|
|
589
|
+
<dd>
|
|
590
|
+
|
|
591
|
+
**organization_id:** `str`
|
|
592
|
+
|
|
593
|
+
</dd>
|
|
594
|
+
</dl>
|
|
595
|
+
|
|
596
|
+
<dl>
|
|
597
|
+
<dd>
|
|
598
|
+
|
|
599
|
+
**project_id:** `str`
|
|
600
|
+
|
|
601
|
+
</dd>
|
|
602
|
+
</dl>
|
|
603
|
+
|
|
604
|
+
<dl>
|
|
605
|
+
<dd>
|
|
606
|
+
|
|
607
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
608
|
+
|
|
609
|
+
</dd>
|
|
610
|
+
</dl>
|
|
611
|
+
</dd>
|
|
612
|
+
</dl>
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
</dd>
|
|
616
|
+
</dl>
|
|
617
|
+
</details>
|
|
618
|
+
|
|
619
|
+
<details><summary><code>client.projects.<a href="src/mirascope/projects/client.py">update</a>(...)</code></summary>
|
|
620
|
+
<dl>
|
|
621
|
+
<dd>
|
|
622
|
+
|
|
623
|
+
#### 🔌 Usage
|
|
624
|
+
|
|
625
|
+
<dl>
|
|
626
|
+
<dd>
|
|
627
|
+
|
|
628
|
+
<dl>
|
|
629
|
+
<dd>
|
|
630
|
+
|
|
631
|
+
```python
|
|
632
|
+
from mirascope.api._generated import Mirascope
|
|
633
|
+
|
|
634
|
+
client = Mirascope()
|
|
635
|
+
client.projects.update(
|
|
636
|
+
organization_id="organizationId",
|
|
637
|
+
project_id="projectId",
|
|
638
|
+
name="name",
|
|
639
|
+
)
|
|
640
|
+
|
|
641
|
+
```
|
|
642
|
+
</dd>
|
|
643
|
+
</dl>
|
|
644
|
+
</dd>
|
|
645
|
+
</dl>
|
|
646
|
+
|
|
647
|
+
#### ⚙️ Parameters
|
|
648
|
+
|
|
649
|
+
<dl>
|
|
650
|
+
<dd>
|
|
651
|
+
|
|
652
|
+
<dl>
|
|
653
|
+
<dd>
|
|
654
|
+
|
|
655
|
+
**organization_id:** `str`
|
|
656
|
+
|
|
657
|
+
</dd>
|
|
658
|
+
</dl>
|
|
659
|
+
|
|
660
|
+
<dl>
|
|
661
|
+
<dd>
|
|
662
|
+
|
|
663
|
+
**project_id:** `str`
|
|
664
|
+
|
|
665
|
+
</dd>
|
|
666
|
+
</dl>
|
|
667
|
+
|
|
668
|
+
<dl>
|
|
669
|
+
<dd>
|
|
670
|
+
|
|
671
|
+
**name:** `str` — a string at most 100 character(s) long
|
|
672
|
+
|
|
673
|
+
</dd>
|
|
674
|
+
</dl>
|
|
675
|
+
|
|
676
|
+
<dl>
|
|
677
|
+
<dd>
|
|
678
|
+
|
|
679
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
680
|
+
|
|
681
|
+
</dd>
|
|
682
|
+
</dl>
|
|
683
|
+
</dd>
|
|
684
|
+
</dl>
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
</dd>
|
|
688
|
+
</dl>
|
|
689
|
+
</details>
|
|
690
|
+
|
|
691
|
+
<details><summary><code>client.projects.<a href="src/mirascope/projects/client.py">delete</a>(...)</code></summary>
|
|
692
|
+
<dl>
|
|
693
|
+
<dd>
|
|
694
|
+
|
|
695
|
+
#### 🔌 Usage
|
|
696
|
+
|
|
697
|
+
<dl>
|
|
698
|
+
<dd>
|
|
699
|
+
|
|
700
|
+
<dl>
|
|
701
|
+
<dd>
|
|
702
|
+
|
|
703
|
+
```python
|
|
704
|
+
from mirascope.api._generated import Mirascope
|
|
705
|
+
|
|
706
|
+
client = Mirascope()
|
|
707
|
+
client.projects.delete(
|
|
708
|
+
organization_id="organizationId",
|
|
709
|
+
project_id="projectId",
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
```
|
|
713
|
+
</dd>
|
|
714
|
+
</dl>
|
|
715
|
+
</dd>
|
|
716
|
+
</dl>
|
|
717
|
+
|
|
718
|
+
#### ⚙️ Parameters
|
|
719
|
+
|
|
720
|
+
<dl>
|
|
721
|
+
<dd>
|
|
722
|
+
|
|
723
|
+
<dl>
|
|
724
|
+
<dd>
|
|
725
|
+
|
|
726
|
+
**organization_id:** `str`
|
|
727
|
+
|
|
728
|
+
</dd>
|
|
729
|
+
</dl>
|
|
730
|
+
|
|
731
|
+
<dl>
|
|
732
|
+
<dd>
|
|
733
|
+
|
|
734
|
+
**project_id:** `str`
|
|
735
|
+
|
|
736
|
+
</dd>
|
|
737
|
+
</dl>
|
|
738
|
+
|
|
739
|
+
<dl>
|
|
740
|
+
<dd>
|
|
741
|
+
|
|
742
|
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
|
|
743
|
+
|
|
744
|
+
</dd>
|
|
745
|
+
</dl>
|
|
746
|
+
</dd>
|
|
747
|
+
</dl>
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
</dd>
|
|
751
|
+
</dl>
|
|
752
|
+
</details>
|
|
753
|
+
|