layer 1.0.96__tar.gz → 1.0.104__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.
- {layer-1.0.96 → layer-1.0.104}/PKG-INFO +1 -1
- {layer-1.0.96 → layer-1.0.104}/pyproject.toml +1 -1
- {layer-1.0.96 → layer-1.0.104}/pyproject.toml.orig +1 -1
- {layer-1.0.96 → layer-1.0.104}/src/layer/_api/models.py +497 -199
- {layer-1.0.96 → layer-1.0.104}/README.md +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/__init__.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/__main__.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_api/__init__.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_api/client.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_cli/__init__.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_cli/auth_commands.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_cli/base_model_commands.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_cli/context.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_cli/context_commands.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_cli/generate_commands.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_cli/main.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/_cli/output.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/auth.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/catalog.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/config.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/credentials.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/download.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/exit_codes.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/generate.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/oauth.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/params.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/sessions.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/sse.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/uploads.py +0 -0
- {layer-1.0.96 → layer-1.0.104}/src/layer/workspaces.py +0 -0
|
@@ -4,6 +4,7 @@ Generated from the backend's OpenAPI description by ``task -d apps/cli-py genera
|
|
|
4
4
|
Do not edit: CI regenerates this file and fails on any difference.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
+
from datetime import date as date_aliased
|
|
7
8
|
from enum import Enum, IntEnum
|
|
8
9
|
from typing import Any
|
|
9
10
|
from uuid import UUID
|
|
@@ -214,6 +215,8 @@ class BaseModelId(Enum):
|
|
|
214
215
|
gpt_image_2 = "gpt-image-2"
|
|
215
216
|
gpt_image_2_5_flare = "gpt-image-2.5-flare"
|
|
216
217
|
gpt_image_2_5_sunburst = "gpt-image-2.5-sunburst"
|
|
218
|
+
gpt_image_2_6_flare = "gpt-image-2.6-flare"
|
|
219
|
+
gpt_image_2_6_sunburst = "gpt-image-2.6-sunburst"
|
|
217
220
|
imagen_2 = "imagen-2"
|
|
218
221
|
imagen_3 = "imagen-3"
|
|
219
222
|
imagen_3_fast = "imagen-3-fast"
|
|
@@ -389,6 +392,7 @@ class BaseModelId(Enum):
|
|
|
389
392
|
kling_v4_video_edit = "kling-v4-video-edit"
|
|
390
393
|
kling_v4_flash = "kling-v4-flash"
|
|
391
394
|
kling_v4_flash_reference = "kling-v4-flash-reference"
|
|
395
|
+
kling_v4_flash_video_edit = "kling-v4-flash-video-edit"
|
|
392
396
|
kling_image_o3 = "kling-image-o3"
|
|
393
397
|
kling_image_v3 = "kling-image-v3"
|
|
394
398
|
wan_21 = "wan-21"
|
|
@@ -601,6 +605,7 @@ class BaseModelId(Enum):
|
|
|
601
605
|
meshy_v6_lite_retexture = "meshy-v6-lite-retexture"
|
|
602
606
|
meshy_v6_retexture = "meshy-v6-retexture"
|
|
603
607
|
meshy_v7_retexture = "meshy-v7-retexture"
|
|
608
|
+
meshy_n1_retexture = "meshy-n1-retexture"
|
|
604
609
|
meshy_v5_remesh = "meshy-v5-remesh"
|
|
605
610
|
meshy_remesh = "meshy-remesh"
|
|
606
611
|
meshy_rigging = "meshy-rigging"
|
|
@@ -859,6 +864,26 @@ class CliClient(Enum):
|
|
|
859
864
|
godot = "godot"
|
|
860
865
|
|
|
861
866
|
|
|
867
|
+
class CreateGroupBody(BaseModel):
|
|
868
|
+
name: str = Field(
|
|
869
|
+
...,
|
|
870
|
+
description="The group's name. Must be unique within the workspace.",
|
|
871
|
+
min_length=1,
|
|
872
|
+
title="Name",
|
|
873
|
+
)
|
|
874
|
+
role: str | None = Field(
|
|
875
|
+
None,
|
|
876
|
+
deprecated=True,
|
|
877
|
+
description="Optional built-in role to grant members, by key. Deprecated: use role_id.",
|
|
878
|
+
title="Role",
|
|
879
|
+
)
|
|
880
|
+
role_id: UUID | None = Field(
|
|
881
|
+
None,
|
|
882
|
+
description="ID of an optional role to grant members, custom included.",
|
|
883
|
+
title="Role ID",
|
|
884
|
+
)
|
|
885
|
+
|
|
886
|
+
|
|
862
887
|
class Description(RootModel[str]):
|
|
863
888
|
root: str = Field(..., max_length=1000, title="Description")
|
|
864
889
|
|
|
@@ -901,11 +926,10 @@ class CreateReferenceSetRequest(BaseModel):
|
|
|
901
926
|
description="Training category: general (overall aesthetic), character (person/creature), object (specific item), scene (environment), or effect (visual effect).",
|
|
902
927
|
title="Category",
|
|
903
928
|
)
|
|
904
|
-
file_ids: list[UUID] = Field(
|
|
905
|
-
|
|
906
|
-
description="Ordered image or
|
|
929
|
+
file_ids: list[UUID] | None = Field(
|
|
930
|
+
None,
|
|
931
|
+
description="Ordered image, video or audio file IDs to include. Must belong to the workspace. Audio clips are what a voice-clone run trains on; a voice-import run takes no files, so leave this empty.",
|
|
907
932
|
max_length=1000,
|
|
908
|
-
min_length=1,
|
|
909
933
|
title="File IDs",
|
|
910
934
|
)
|
|
911
935
|
description: Description1 | None = Field(None, description="Optional description.", title="Description")
|
|
@@ -1235,11 +1259,14 @@ class CameraTrajectory(RootModel[list[CameraTrajectoryKeyframe]]):
|
|
|
1235
1259
|
|
|
1236
1260
|
class TrainingFramework(Enum):
|
|
1237
1261
|
"""
|
|
1238
|
-
Training framework override. Omit for the server default.
|
|
1262
|
+
Training framework override. Omit for the server default. On the ElevenLabs TTS models, voice-clone clones the set's audio clips, voice-design designs a voice from training_parameters.training_prompt, and voice-import adopts the ElevenLabs voice in training_parameters.voice_id.
|
|
1239
1263
|
"""
|
|
1240
1264
|
|
|
1241
1265
|
fal = "fal"
|
|
1242
1266
|
ai_toolkit = "ai-toolkit"
|
|
1267
|
+
voice_clone = "voice-clone"
|
|
1268
|
+
voice_design = "voice-design"
|
|
1269
|
+
voice_import = "voice-import"
|
|
1243
1270
|
|
|
1244
1271
|
|
|
1245
1272
|
class EstimateTrainingPriceResponse(BaseModel):
|
|
@@ -1303,6 +1330,7 @@ class FileContentCategory(Enum):
|
|
|
1303
1330
|
font = "font"
|
|
1304
1331
|
world = "world"
|
|
1305
1332
|
pbr_materials = "pbr_materials"
|
|
1333
|
+
landing_page = "landing_page"
|
|
1306
1334
|
other = "other"
|
|
1307
1335
|
|
|
1308
1336
|
|
|
@@ -1374,6 +1402,7 @@ class FileSourceType(Enum):
|
|
|
1374
1402
|
miro = "miro"
|
|
1375
1403
|
linear = "linear"
|
|
1376
1404
|
jira = "jira"
|
|
1405
|
+
focal = "focal"
|
|
1377
1406
|
transformed_reference = "transformed_reference"
|
|
1378
1407
|
skill_resource = "skill_resource"
|
|
1379
1408
|
skill_bundle = "skill_bundle"
|
|
@@ -1505,6 +1534,27 @@ class GroupMembershipStatus(Enum):
|
|
|
1505
1534
|
suspended = "suspended"
|
|
1506
1535
|
|
|
1507
1536
|
|
|
1537
|
+
class GroupOut(BaseModel):
|
|
1538
|
+
group_id: UUID = Field(..., description="The group's unique identifier.", title="Group ID")
|
|
1539
|
+
name: str = Field(..., description="The group's name.", title="Name")
|
|
1540
|
+
role: str | None = Field(
|
|
1541
|
+
None,
|
|
1542
|
+
deprecated=True,
|
|
1543
|
+
description="The built-in role this group grants its members, by key, if any. Deprecated: use role_id.",
|
|
1544
|
+
title="Role",
|
|
1545
|
+
)
|
|
1546
|
+
role_id: UUID | None = Field(
|
|
1547
|
+
None,
|
|
1548
|
+
description="ID of the role this group grants its members, custom included, if any.",
|
|
1549
|
+
title="Role ID",
|
|
1550
|
+
)
|
|
1551
|
+
role_name: str | None = Field(
|
|
1552
|
+
None,
|
|
1553
|
+
description="The name of the role this group grants, if any.",
|
|
1554
|
+
title="Role Name",
|
|
1555
|
+
)
|
|
1556
|
+
|
|
1557
|
+
|
|
1508
1558
|
class GuardrailCategory(Enum):
|
|
1509
1559
|
"""
|
|
1510
1560
|
What kind of guardrail refused it: one of the guardrails Layer ships, or the workspace's own.
|
|
@@ -1685,6 +1735,25 @@ class InferenceUseCase(Enum):
|
|
|
1685
1735
|
complete_draft = "complete_draft"
|
|
1686
1736
|
|
|
1687
1737
|
|
|
1738
|
+
class InviteMemberBody(BaseModel):
|
|
1739
|
+
email: str = Field(
|
|
1740
|
+
...,
|
|
1741
|
+
description="Email of the person to invite. A Layer user is created if none exists.",
|
|
1742
|
+
title="Email",
|
|
1743
|
+
)
|
|
1744
|
+
role: str | None = Field(
|
|
1745
|
+
None,
|
|
1746
|
+
deprecated=True,
|
|
1747
|
+
description="The built-in role to grant, by key: admin or creator, plus member in an enterprise workspace. Deprecated: use role_id.",
|
|
1748
|
+
title="Role",
|
|
1749
|
+
)
|
|
1750
|
+
role_id: UUID | None = Field(
|
|
1751
|
+
None,
|
|
1752
|
+
description="ID of the role to grant, custom included. Defaults to creator, or member in an enterprise workspace.",
|
|
1753
|
+
title="Role ID",
|
|
1754
|
+
)
|
|
1755
|
+
|
|
1756
|
+
|
|
1688
1757
|
class IssuedDeviceCode(BaseModel):
|
|
1689
1758
|
"""
|
|
1690
1759
|
The device authorization response (RFC 8628 section 3.2).
|
|
@@ -1711,6 +1780,19 @@ class LibraryObjectType(Enum):
|
|
|
1711
1780
|
skill = "skill"
|
|
1712
1781
|
|
|
1713
1782
|
|
|
1783
|
+
class MemberUsageBucket(BaseModel):
|
|
1784
|
+
start_date: date_aliased = Field(
|
|
1785
|
+
...,
|
|
1786
|
+
description="First day of the bucket (UTC): the day itself, or the first of the month.",
|
|
1787
|
+
title="Start Date",
|
|
1788
|
+
)
|
|
1789
|
+
creative_units: float = Field(
|
|
1790
|
+
...,
|
|
1791
|
+
description="Creative Units the member spent in the bucket, inside the window.",
|
|
1792
|
+
title="Creative Units",
|
|
1793
|
+
)
|
|
1794
|
+
|
|
1795
|
+
|
|
1714
1796
|
class MeshDensity(Enum):
|
|
1715
1797
|
"""
|
|
1716
1798
|
How many faces a mesh keeps, as a level the provider sizes adaptively.
|
|
@@ -2005,7 +2087,7 @@ class PaginationOutput(BaseModel):
|
|
|
2005
2087
|
)
|
|
2006
2088
|
|
|
2007
2089
|
|
|
2008
|
-
class
|
|
2090
|
+
class Role(RootModel[str]):
|
|
2009
2091
|
root: str = Field(..., max_length=64, title="Role")
|
|
2010
2092
|
|
|
2011
2093
|
|
|
@@ -2016,7 +2098,7 @@ class PaletteColor(BaseModel):
|
|
|
2016
2098
|
|
|
2017
2099
|
name: str = Field(..., max_length=64, min_length=1, title="Name")
|
|
2018
2100
|
hex: str = Field(..., pattern="^#(?:[0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})$", title="Hex")
|
|
2019
|
-
role:
|
|
2101
|
+
role: Role | None = Field(None, title="Role")
|
|
2020
2102
|
|
|
2021
2103
|
|
|
2022
2104
|
class Cut(RootModel[float]):
|
|
@@ -2200,18 +2282,6 @@ class RestoreDeletedFilesOutput(BaseModel):
|
|
|
2200
2282
|
restored_bytes: int = Field(..., description="Bytes those files hold.", title="Restored Bytes")
|
|
2201
2283
|
|
|
2202
2284
|
|
|
2203
|
-
class Role(Enum):
|
|
2204
|
-
admin = "admin"
|
|
2205
|
-
editor = "editor"
|
|
2206
|
-
settings_admin = "settings_admin"
|
|
2207
|
-
art_director = "art_director"
|
|
2208
|
-
artist = "artist"
|
|
2209
|
-
creator = "creator"
|
|
2210
|
-
member = "member"
|
|
2211
|
-
installation = "installation"
|
|
2212
|
-
provisioning = "provisioning"
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
2285
|
class RotateWebhookSecretResponse(BaseModel):
|
|
2216
2286
|
secret: str = Field(
|
|
2217
2287
|
...,
|
|
@@ -2225,102 +2295,6 @@ class RotateWebhookSecretResponse(BaseModel):
|
|
|
2225
2295
|
)
|
|
2226
2296
|
|
|
2227
2297
|
|
|
2228
|
-
class RunInferenceToolInput(BaseModel):
|
|
2229
|
-
model_config = ConfigDict(
|
|
2230
|
-
extra="forbid",
|
|
2231
|
-
)
|
|
2232
|
-
base_model_id: str | None = Field(
|
|
2233
|
-
None,
|
|
2234
|
-
description="The base model to run the tool on, by ID, slug, name or alias: one of the tool's `base_model_ids`. Without it, the run takes the tool's `default_base_model_id` for the caller.",
|
|
2235
|
-
title="Base Model ID",
|
|
2236
|
-
)
|
|
2237
|
-
source_file_id: UUID | None = Field(
|
|
2238
|
-
None,
|
|
2239
|
-
description="The file an edit works on, from this workspace or public. Required where the tool's schema has `x-source.required`; a tool that makes something new takes none.",
|
|
2240
|
-
title="Source File ID",
|
|
2241
|
-
)
|
|
2242
|
-
mask_file_id: UUID | None = Field(
|
|
2243
|
-
None,
|
|
2244
|
-
description="An image the size of the source, white where the edit may change it and black where the source stays as it is. Only where the tool's schema has `x-source.takes_mask`.",
|
|
2245
|
-
title="Mask File ID",
|
|
2246
|
-
)
|
|
2247
|
-
batch_size: int | None = Field(
|
|
2248
|
-
1,
|
|
2249
|
-
description="How many outputs the run makes (1-16). More than 1 needs a tool and a model that batch.",
|
|
2250
|
-
ge=1,
|
|
2251
|
-
le=16,
|
|
2252
|
-
title="Batch Size",
|
|
2253
|
-
)
|
|
2254
|
-
input: dict[str, Any] | None = Field(
|
|
2255
|
-
None,
|
|
2256
|
-
description="The fields of the tool's schema on the model (GET .../inference-schema), with files by `file_id`. A field left out takes its default, and the tool sets the values it fixes.",
|
|
2257
|
-
title="Input",
|
|
2258
|
-
)
|
|
2259
|
-
reference_sets: list[InferenceReferenceSetInput] | None = Field(
|
|
2260
|
-
[],
|
|
2261
|
-
description="Reference sets to apply, up to 25, from GET /v2/workspaces/{workspace_id}/reference-sets. Some models need one: an ElevenLabs voice for a voice change or speech, an animation preset for Tripo's animate. A run on such a model without one is refused with `REFERENCE_SET_REQUIRED`.",
|
|
2262
|
-
max_length=25,
|
|
2263
|
-
title="Reference Sets",
|
|
2264
|
-
validate_default=True,
|
|
2265
|
-
)
|
|
2266
|
-
session_name: SessionName1 | None = Field(
|
|
2267
|
-
None,
|
|
2268
|
-
description="Organize this run under the most recent active session with this name, creating one if none matches. Ignored when `session_id` is given.",
|
|
2269
|
-
title="Session Name",
|
|
2270
|
-
)
|
|
2271
|
-
session_id: UUID | None = Field(
|
|
2272
|
-
None,
|
|
2273
|
-
description="Organize this run under this session, from GET /v2/workspaces/{workspace_id}/sessions. Takes precedence over `session_name`, and must belong to this workspace.",
|
|
2274
|
-
title="Session ID",
|
|
2275
|
-
)
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
class RunInferenceToolOutput(BaseModel):
|
|
2279
|
-
inference_id: UUID = Field(..., description="Unique identifier for this forge run.", title="Inference ID")
|
|
2280
|
-
status: InferenceStatus = Field(..., description="Current status: IN_PROGRESS.")
|
|
2281
|
-
estimated_price_creative_units: float | None = Field(
|
|
2282
|
-
None,
|
|
2283
|
-
description="Estimated price in Creative Units.",
|
|
2284
|
-
title="Estimated Price Creative Units",
|
|
2285
|
-
)
|
|
2286
|
-
poll_interval_seconds: int = Field(
|
|
2287
|
-
...,
|
|
2288
|
-
description="Suggested polling interval in seconds.",
|
|
2289
|
-
title="Poll Interval Seconds",
|
|
2290
|
-
)
|
|
2291
|
-
created_at: AwareDatetime = Field(..., description="Timestamp of when the run was created.", title="Created At")
|
|
2292
|
-
session_id: UUID | None = Field(
|
|
2293
|
-
None,
|
|
2294
|
-
description="Session ID the run was added to, if a session was specified.",
|
|
2295
|
-
title="Session ID",
|
|
2296
|
-
)
|
|
2297
|
-
normalized_parameters: NormalizedInferenceParameters | None = Field(
|
|
2298
|
-
None,
|
|
2299
|
-
description="Actual parameters used after model-specific normalization and defaults.",
|
|
2300
|
-
)
|
|
2301
|
-
base_model_id: str = Field(
|
|
2302
|
-
...,
|
|
2303
|
-
description="The base model the run takes: the one named, else the tool's default.",
|
|
2304
|
-
title="Base Model ID",
|
|
2305
|
-
)
|
|
2306
|
-
reference_set_contributions: list[ForgeReferenceSetContribution] | None = Field(
|
|
2307
|
-
[],
|
|
2308
|
-
description="Per-set summary of what each reference set contributed.",
|
|
2309
|
-
title="Reference Set Contributions",
|
|
2310
|
-
validate_default=True,
|
|
2311
|
-
)
|
|
2312
|
-
reference_sets_degraded: bool | None = Field(
|
|
2313
|
-
False,
|
|
2314
|
-
description="True when at least one attached reference set did not meaningfully contribute. The run still costs Creative Units.",
|
|
2315
|
-
title="Reference Sets Degraded",
|
|
2316
|
-
)
|
|
2317
|
-
reference_sets_warning: str | None = Field(
|
|
2318
|
-
None,
|
|
2319
|
-
description="Names each degraded reference set and why, or null when none is degraded.",
|
|
2320
|
-
title="Reference Sets Warning",
|
|
2321
|
-
)
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
2298
|
class RunRefusal(BaseModel):
|
|
2325
2299
|
inference_id: UUID = Field(..., description="The generation that was refused.", title="Inference ID")
|
|
2326
2300
|
code: RefusalCode = Field(
|
|
@@ -2787,9 +2761,60 @@ class LoraRank(RootModel[int]):
|
|
|
2787
2761
|
)
|
|
2788
2762
|
|
|
2789
2763
|
|
|
2764
|
+
class TrainingPrompt(RootModel[str]):
|
|
2765
|
+
root: str = Field(
|
|
2766
|
+
...,
|
|
2767
|
+
description="A description of the voice to design: age, accent, tone, pacing. Offered by the voice-design framework only.",
|
|
2768
|
+
max_length=1000,
|
|
2769
|
+
min_length=1,
|
|
2770
|
+
title="Training Prompt",
|
|
2771
|
+
)
|
|
2772
|
+
|
|
2773
|
+
|
|
2774
|
+
class VoiceId(RootModel[str]):
|
|
2775
|
+
root: str = Field(
|
|
2776
|
+
...,
|
|
2777
|
+
description="The ElevenLabs voice ID to import: a voice from the public ElevenLabs voice library, or one made on Layer. A voice private to another ElevenLabs account can't be reached, and a voice ID that can't be used fails the run. Offered by the voice-import framework only.",
|
|
2778
|
+
max_length=64,
|
|
2779
|
+
min_length=1,
|
|
2780
|
+
pattern="^[A-Za-z0-9]+$",
|
|
2781
|
+
title="Voice ID",
|
|
2782
|
+
)
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
class Loudness(RootModel[float]):
|
|
2786
|
+
root: float = Field(
|
|
2787
|
+
...,
|
|
2788
|
+
description="Loudness of the designed voice. Offered by ElevenLabs voice-design only.",
|
|
2789
|
+
ge=-1.0,
|
|
2790
|
+
le=1.0,
|
|
2791
|
+
title="Loudness",
|
|
2792
|
+
)
|
|
2793
|
+
|
|
2794
|
+
|
|
2795
|
+
class GuidanceScale(RootModel[float]):
|
|
2796
|
+
root: float = Field(
|
|
2797
|
+
...,
|
|
2798
|
+
description="How closely the designed voice follows the prompt. Offered by ElevenLabs voice-design only.",
|
|
2799
|
+
ge=0.0,
|
|
2800
|
+
le=100.0,
|
|
2801
|
+
title="Guidance Scale",
|
|
2802
|
+
)
|
|
2803
|
+
|
|
2804
|
+
|
|
2805
|
+
class PromptStrength4(RootModel[float]):
|
|
2806
|
+
root: float = Field(
|
|
2807
|
+
...,
|
|
2808
|
+
description="Weight of the prompt against a reference clip, when the reference set holds one. Offered by ElevenLabs voice-design only.",
|
|
2809
|
+
ge=0.0,
|
|
2810
|
+
le=1.0,
|
|
2811
|
+
title="Prompt Strength",
|
|
2812
|
+
)
|
|
2813
|
+
|
|
2814
|
+
|
|
2790
2815
|
class TrainingOverrides(BaseModel):
|
|
2791
2816
|
"""
|
|
2792
|
-
|
|
2817
|
+
Settings one training run takes in place of the reference set's saved config.
|
|
2793
2818
|
|
|
2794
2819
|
Each one applies only where the run's framework offers it (TrainingFrameworkDefaults.supports_parameter);
|
|
2795
2820
|
unset fields keep the saved value.
|
|
@@ -2803,6 +2828,31 @@ class TrainingOverrides(BaseModel):
|
|
|
2803
2828
|
)
|
|
2804
2829
|
learning_rate: LearningRate | None = Field(None, description="Optimizer learning rate.", title="Learning Rate")
|
|
2805
2830
|
lora_rank: LoraRank | None = Field(None, description="LoRA rank (network dimension).", title="LoRA Rank")
|
|
2831
|
+
training_prompt: TrainingPrompt | None = Field(
|
|
2832
|
+
None,
|
|
2833
|
+
description="A description of the voice to design: age, accent, tone, pacing. Offered by the voice-design framework only.",
|
|
2834
|
+
title="Training Prompt",
|
|
2835
|
+
)
|
|
2836
|
+
voice_id: VoiceId | None = Field(
|
|
2837
|
+
None,
|
|
2838
|
+
description="The ElevenLabs voice ID to import: a voice from the public ElevenLabs voice library, or one made on Layer. A voice private to another ElevenLabs account can't be reached, and a voice ID that can't be used fails the run. Offered by the voice-import framework only.",
|
|
2839
|
+
title="Voice ID",
|
|
2840
|
+
)
|
|
2841
|
+
loudness: Loudness | None = Field(
|
|
2842
|
+
None,
|
|
2843
|
+
description="Loudness of the designed voice. Offered by ElevenLabs voice-design only.",
|
|
2844
|
+
title="Loudness",
|
|
2845
|
+
)
|
|
2846
|
+
guidance_scale: GuidanceScale | None = Field(
|
|
2847
|
+
None,
|
|
2848
|
+
description="How closely the designed voice follows the prompt. Offered by ElevenLabs voice-design only.",
|
|
2849
|
+
title="Guidance Scale",
|
|
2850
|
+
)
|
|
2851
|
+
prompt_strength: PromptStrength4 | None = Field(
|
|
2852
|
+
None,
|
|
2853
|
+
description="Weight of the prompt against a reference clip, when the reference set holds one. Offered by ElevenLabs voice-design only.",
|
|
2854
|
+
title="Prompt Strength",
|
|
2855
|
+
)
|
|
2806
2856
|
|
|
2807
2857
|
|
|
2808
2858
|
class TrainingParametersView(BaseModel):
|
|
@@ -2929,13 +2979,15 @@ class TrendVariantOutput(BaseModel):
|
|
|
2929
2979
|
|
|
2930
2980
|
|
|
2931
2981
|
class UpdateGroupBody(BaseModel):
|
|
2932
|
-
role:
|
|
2933
|
-
|
|
2934
|
-
|
|
2982
|
+
role: str | None = Field(
|
|
2983
|
+
None,
|
|
2984
|
+
deprecated=True,
|
|
2985
|
+
description="New built-in role to grant members, by key. Deprecated: use role_id.",
|
|
2986
|
+
title="Role",
|
|
2935
2987
|
)
|
|
2936
2988
|
role_id: UUID | None = Field(
|
|
2937
2989
|
None,
|
|
2938
|
-
description="ID of
|
|
2990
|
+
description="ID of the new role to grant members, custom included. Send null to clear the group's role.",
|
|
2939
2991
|
title="Role ID",
|
|
2940
2992
|
)
|
|
2941
2993
|
|
|
@@ -2978,6 +3030,11 @@ class UpdateSessionBody(BaseModel):
|
|
|
2978
3030
|
)
|
|
2979
3031
|
|
|
2980
3032
|
|
|
3033
|
+
class UsageGranularity(Enum):
|
|
3034
|
+
day = "day"
|
|
3035
|
+
month = "month"
|
|
3036
|
+
|
|
3037
|
+
|
|
2981
3038
|
class UsageLimitMode(Enum):
|
|
2982
3039
|
"""
|
|
2983
3040
|
What a cap does once its member has used all of it.
|
|
@@ -3352,37 +3409,13 @@ class WorkspaceUsageOutput(BaseModel):
|
|
|
3352
3409
|
)
|
|
3353
3410
|
|
|
3354
3411
|
|
|
3355
|
-
class AiPolicyPatch(BaseModel):
|
|
3356
|
-
"""
|
|
3357
|
-
A change to the AI controls one scope sets, as a JSON merge patch (RFC 7396) of its policy.
|
|
3358
|
-
|
|
3359
|
-
A control or key the patch names is set; one it names as null is removed, so the scope inherits
|
|
3360
|
-
it again; anything it leaves out stays as it is. A setting is one value: naming it replaces both
|
|
3361
|
-
its value and its lock. Only the controls the policy editor writes can be patched; guardrails,
|
|
3362
|
-
output scoring and usage caps belong to the services that own them, and naming one is refused.
|
|
3363
|
-
"""
|
|
3364
|
-
|
|
3365
|
-
model_config = ConfigDict(
|
|
3366
|
-
extra="forbid",
|
|
3367
|
-
)
|
|
3368
|
-
agent_enabled: SettingBool | None = None
|
|
3369
|
-
agents: dict[str, SettingBool | None] | None = Field(None, title="Agents")
|
|
3370
|
-
agent_confirm_above_cu: SettingAnnotatedFloatGe | None = None
|
|
3371
|
-
modalities: dict[str, SettingBool | None] | None = Field(None, title="Modalities")
|
|
3372
|
-
new_models_enabled: SettingBool | None = None
|
|
3373
|
-
models: dict[str, SettingBool | None] | None = Field(None, title="Models")
|
|
3374
|
-
model_defaults: dict[str, dict[str, SettingJsonValue | None] | None] | None = Field(None, title="Model Defaults")
|
|
3375
|
-
nsfw_tolerance: SettingAnnotatedIntFieldInfoAnnotationNoneTypeRequiredTrueMetadataGeGe1LeLe6 | None = None
|
|
3376
|
-
reference_set_sharing_enabled: SettingBool | None = None
|
|
3377
|
-
workflow_sharing_enabled: SettingBool | None = None
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
3412
|
class AiPolicyReplacement(BaseModel):
|
|
3381
3413
|
"""
|
|
3382
3414
|
Everything a scope sets itself, replacing what it set before. Leave a control out to inherit it.
|
|
3383
3415
|
|
|
3384
|
-
Guardrails, output scoring and usage caps are
|
|
3385
|
-
|
|
3416
|
+
Guardrails, output scoring and usage caps are not replaced: a copy of them sent back from a read
|
|
3417
|
+
is ignored, and what is stored for them is kept. Set usage caps with the PATCH endpoint or the
|
|
3418
|
+
usage-limit endpoints.
|
|
3386
3419
|
"""
|
|
3387
3420
|
|
|
3388
3421
|
agent_enabled: SettingBool | None = Field(None, description="The Layer agent as a whole.")
|
|
@@ -3796,21 +3829,6 @@ class CompositionPlan(BaseModel):
|
|
|
3796
3829
|
respect_section_durations: bool | None = Field(True, title="Respect Section Durations")
|
|
3797
3830
|
|
|
3798
3831
|
|
|
3799
|
-
class CreateGroupBody(BaseModel):
|
|
3800
|
-
name: str = Field(
|
|
3801
|
-
...,
|
|
3802
|
-
description="The group's name. Must be unique within the workspace.",
|
|
3803
|
-
min_length=1,
|
|
3804
|
-
title="Name",
|
|
3805
|
-
)
|
|
3806
|
-
role: Role | None = Field(None, description="Optional workspace role to grant members.")
|
|
3807
|
-
role_id: UUID | None = Field(
|
|
3808
|
-
None,
|
|
3809
|
-
description="ID of a custom role to grant instead of a builtin `role`.",
|
|
3810
|
-
title="Role ID",
|
|
3811
|
-
)
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
3832
|
class CreateProjectBody(BaseModel):
|
|
3815
3833
|
name: str = Field(
|
|
3816
3834
|
...,
|
|
@@ -3918,23 +3936,112 @@ class EstimateInferencePriceV2Output(BaseModel):
|
|
|
3918
3936
|
)
|
|
3919
3937
|
|
|
3920
3938
|
|
|
3921
|
-
class
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
description="The reference set to price training for.",
|
|
3925
|
-
title="Reference Set ID",
|
|
3939
|
+
class EstimateInferenceToolPriceInput(BaseModel):
|
|
3940
|
+
model_config = ConfigDict(
|
|
3941
|
+
extra="forbid",
|
|
3926
3942
|
)
|
|
3927
3943
|
base_model_id: str | None = Field(
|
|
3928
3944
|
None,
|
|
3929
|
-
description="
|
|
3945
|
+
description="The base model to run the tool on, by ID, slug, name or alias: one of the tool's `base_model_ids`. Without it, the run takes the tool's `default_base_model_id` for the caller.",
|
|
3930
3946
|
title="Base Model ID",
|
|
3931
3947
|
)
|
|
3932
|
-
|
|
3948
|
+
source_file_id: UUID | None = Field(
|
|
3933
3949
|
None,
|
|
3934
|
-
description="
|
|
3935
|
-
title="
|
|
3950
|
+
description="The file an edit works on, from this workspace or public. Required where the tool's schema has `x-source.required`; a tool that makes something new takes none.",
|
|
3951
|
+
title="Source File ID",
|
|
3936
3952
|
)
|
|
3937
|
-
|
|
3953
|
+
mask_file_id: UUID | None = Field(
|
|
3954
|
+
None,
|
|
3955
|
+
description="An image the size of the source, white where the edit may change it and black where the source stays as it is. Only where the tool's schema has `x-source.takes_mask`.",
|
|
3956
|
+
title="Mask File ID",
|
|
3957
|
+
)
|
|
3958
|
+
batch_size: int | None = Field(
|
|
3959
|
+
1,
|
|
3960
|
+
description="How many outputs the run makes (1-16). More than 1 needs a tool and a model that batch.",
|
|
3961
|
+
ge=1,
|
|
3962
|
+
le=16,
|
|
3963
|
+
title="Batch Size",
|
|
3964
|
+
)
|
|
3965
|
+
input: dict[str, Any] | None = Field(
|
|
3966
|
+
None,
|
|
3967
|
+
description="The fields of the tool's schema on the model (GET .../inference-schema), with files by `file_id`. A field left out takes its default, and the tool sets the values it fixes.",
|
|
3968
|
+
title="Input",
|
|
3969
|
+
)
|
|
3970
|
+
reference_sets: list[InferenceReferenceSetInput] | None = Field(
|
|
3971
|
+
[],
|
|
3972
|
+
description="Reference sets to apply, up to 25, from GET /v2/workspaces/{workspace_id}/reference-sets. Some models need one: an ElevenLabs voice for a voice change or speech, an animation preset for Tripo's animate. A run on such a model without one is refused with `REFERENCE_SET_REQUIRED`.",
|
|
3973
|
+
max_length=25,
|
|
3974
|
+
title="Reference Sets",
|
|
3975
|
+
validate_default=True,
|
|
3976
|
+
)
|
|
3977
|
+
session_id: UUID | None = Field(
|
|
3978
|
+
None,
|
|
3979
|
+
description="Organize this run under this session, from GET /v2/workspaces/{workspace_id}/sessions. Takes precedence over `session_name`, and must belong to this workspace. Its project's AI policy decides the models the run may take and their defaults; an estimate with it prices the run in that project.",
|
|
3980
|
+
title="Session ID",
|
|
3981
|
+
)
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
class EstimateInferenceToolPriceOutput(BaseModel):
|
|
3985
|
+
estimated_price_creative_units: float = Field(
|
|
3986
|
+
...,
|
|
3987
|
+
description="Total estimated Creative Units price for this run.",
|
|
3988
|
+
title="Estimated Price Creative Units",
|
|
3989
|
+
)
|
|
3990
|
+
workspace_balance_creative_units: float = Field(
|
|
3991
|
+
...,
|
|
3992
|
+
description="Usable Creative Units balance (total balance minus reserved by in-progress generations).",
|
|
3993
|
+
title="Workspace Balance Creative Units",
|
|
3994
|
+
)
|
|
3995
|
+
estimated_remaining_balance_creative_units: float = Field(
|
|
3996
|
+
...,
|
|
3997
|
+
description="Usable balance after subtracting the estimated price. Can be negative.",
|
|
3998
|
+
title="Estimated Remaining Balance Creative Units",
|
|
3999
|
+
)
|
|
4000
|
+
has_sufficient_creative_units: bool = Field(
|
|
4001
|
+
...,
|
|
4002
|
+
description="Whether the workspace has enough available Creative Units to cover the estimated price.",
|
|
4003
|
+
title="Has Sufficient Creative Units",
|
|
4004
|
+
)
|
|
4005
|
+
base_model_id: str = Field(
|
|
4006
|
+
...,
|
|
4007
|
+
description="The base model the run takes: the one named, else the tool's default.",
|
|
4008
|
+
title="Base Model ID",
|
|
4009
|
+
)
|
|
4010
|
+
reference_set_contributions: list[ForgeReferenceSetContribution] | None = Field(
|
|
4011
|
+
[],
|
|
4012
|
+
description="Per-set summary of what each reference set would contribute to this run.",
|
|
4013
|
+
title="Reference Set Contributions",
|
|
4014
|
+
validate_default=True,
|
|
4015
|
+
)
|
|
4016
|
+
reference_sets_degraded: bool | None = Field(
|
|
4017
|
+
False,
|
|
4018
|
+
description="True when at least one attached reference set would not meaningfully contribute on the base model.",
|
|
4019
|
+
title="Reference Sets Degraded",
|
|
4020
|
+
)
|
|
4021
|
+
reference_sets_warning: str | None = Field(
|
|
4022
|
+
None,
|
|
4023
|
+
description="Names each degraded reference set and why, or null when none is degraded.",
|
|
4024
|
+
title="Reference Sets Warning",
|
|
4025
|
+
)
|
|
4026
|
+
|
|
4027
|
+
|
|
4028
|
+
class EstimateTrainingPriceRequest(BaseModel):
|
|
4029
|
+
reference_set_id: UUID = Field(
|
|
4030
|
+
...,
|
|
4031
|
+
description="The reference set to price training for.",
|
|
4032
|
+
title="Reference Set ID",
|
|
4033
|
+
)
|
|
4034
|
+
base_model_id: str | None = Field(
|
|
4035
|
+
None,
|
|
4036
|
+
description="Base model to train. Omit to use the reference set's configured or workspace default model.",
|
|
4037
|
+
title="Base Model ID",
|
|
4038
|
+
)
|
|
4039
|
+
training_framework: TrainingFramework | None = Field(
|
|
4040
|
+
None,
|
|
4041
|
+
description="Training framework override. Omit for the server default. On the ElevenLabs TTS models, voice-clone clones the set's audio clips, voice-design designs a voice from training_parameters.training_prompt, and voice-import adopts the ElevenLabs voice in training_parameters.voice_id.",
|
|
4042
|
+
title="Training Framework",
|
|
4043
|
+
)
|
|
4044
|
+
training_parameters: TrainingOverrides | None = Field(
|
|
3938
4045
|
None,
|
|
3939
4046
|
description="Hyperparameters for this run in place of the reference set's saved settings. Each applies only where the run's framework offers it; one the framework does not take is refused.",
|
|
3940
4047
|
)
|
|
@@ -4238,17 +4345,6 @@ class GroupMemberOut(BaseModel):
|
|
|
4238
4345
|
status: GroupMembershipStatus = Field(..., description="Group membership status.")
|
|
4239
4346
|
|
|
4240
4347
|
|
|
4241
|
-
class GroupOut(BaseModel):
|
|
4242
|
-
group_id: UUID = Field(..., description="The group's unique identifier.", title="Group ID")
|
|
4243
|
-
name: str = Field(..., description="The group's name.", title="Name")
|
|
4244
|
-
role: Role | None = Field(None, description="The workspace role this group grants its members, if any.")
|
|
4245
|
-
role_id: UUID | None = Field(
|
|
4246
|
-
None,
|
|
4247
|
-
description="ID of the role actually assigned. A custom role reports its own id here while `role` reports the builtin floor it grants, so read this to tell the two apart.",
|
|
4248
|
-
title="Role ID",
|
|
4249
|
-
)
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
4348
|
class HTTPValidationError(BaseModel):
|
|
4253
4349
|
detail: list[ValidationError] | None = Field(None, title="Detail")
|
|
4254
4350
|
|
|
@@ -4310,6 +4406,31 @@ class InferenceToolSummary(BaseModel):
|
|
|
4310
4406
|
...,
|
|
4311
4407
|
description="What an edit works on; null for a tool that makes something new.",
|
|
4312
4408
|
)
|
|
4409
|
+
batches_outputs: bool = Field(
|
|
4410
|
+
...,
|
|
4411
|
+
description="Whether a run can make several outputs (`batch_size` above 1) where its model batches. False for a tool whose every run makes one.",
|
|
4412
|
+
title="Batches Outputs",
|
|
4413
|
+
)
|
|
4414
|
+
concept: str | None = Field(
|
|
4415
|
+
...,
|
|
4416
|
+
description="The icon the Layer app shows for the tool, by concept name, such as `upscale`. Null for a tool shown with its modality's icon.",
|
|
4417
|
+
title="Concept",
|
|
4418
|
+
)
|
|
4419
|
+
prompt_placeholder: str | None = Field(
|
|
4420
|
+
...,
|
|
4421
|
+
description="The hint the Layer app shows in the tool's empty prompt; null where it shows the default.",
|
|
4422
|
+
title="Prompt Placeholder",
|
|
4423
|
+
)
|
|
4424
|
+
primary: bool = Field(
|
|
4425
|
+
...,
|
|
4426
|
+
description="Whether the tool is an edit people reach for most on its asset type, which the Layer app offers first where a file's edits are listed.",
|
|
4427
|
+
title="Primary",
|
|
4428
|
+
)
|
|
4429
|
+
keywords: list[str] = Field(
|
|
4430
|
+
...,
|
|
4431
|
+
description="Extra terms a search matches the tool by, such as synonyms and the names the community uses.",
|
|
4432
|
+
title="Keywords",
|
|
4433
|
+
)
|
|
4313
4434
|
base_model_ids: list[str] = Field(
|
|
4314
4435
|
...,
|
|
4315
4436
|
description="The base models the caller can run the tool on, in catalog order.",
|
|
@@ -4322,18 +4443,6 @@ class InferenceToolSummary(BaseModel):
|
|
|
4322
4443
|
)
|
|
4323
4444
|
|
|
4324
4445
|
|
|
4325
|
-
class InviteMemberBody(BaseModel):
|
|
4326
|
-
email: str = Field(
|
|
4327
|
-
...,
|
|
4328
|
-
description="Email of the person to invite. A Layer user is created if none exists.",
|
|
4329
|
-
title="Email",
|
|
4330
|
-
)
|
|
4331
|
-
role: Role | None = Field(
|
|
4332
|
-
None,
|
|
4333
|
-
description="Workspace role to grant: admin or creator, plus member in an enterprise workspace. Defaults to creator, or member in an enterprise workspace.",
|
|
4334
|
-
)
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
4446
|
class ListBaseModelsOutput(BaseModel):
|
|
4338
4447
|
base_models: list[BaseModelSummary] = Field(..., title="Base Models")
|
|
4339
4448
|
pagination: PaginationOutput
|
|
@@ -4402,10 +4511,48 @@ class MemberOutput(BaseModel):
|
|
|
4402
4511
|
)
|
|
4403
4512
|
email: str = Field(..., description="The member's email address.", title="Email")
|
|
4404
4513
|
name: str | None = Field(None, description="The member's display name, if set.", title="Name")
|
|
4405
|
-
role:
|
|
4514
|
+
role: str = Field(
|
|
4515
|
+
...,
|
|
4516
|
+
deprecated=True,
|
|
4517
|
+
description="The member's built-in role, by key; member for a custom role. Deprecated: use role_id.",
|
|
4518
|
+
title="Role",
|
|
4519
|
+
)
|
|
4520
|
+
role_id: UUID = Field(
|
|
4521
|
+
...,
|
|
4522
|
+
description="ID of the role the member holds, custom included.",
|
|
4523
|
+
title="Role ID",
|
|
4524
|
+
)
|
|
4525
|
+
role_name: str = Field(..., description="The name of the role the member holds.", title="Role Name")
|
|
4406
4526
|
status: WorkspaceMembershipStatus = Field(..., description="Membership status: active or suspended.")
|
|
4407
4527
|
|
|
4408
4528
|
|
|
4529
|
+
class MemberUsageOutput(BaseModel):
|
|
4530
|
+
principal_id: UUID = Field(..., description="The member whose usage this is.", title="Principal ID")
|
|
4531
|
+
start_date: date_aliased = Field(
|
|
4532
|
+
...,
|
|
4533
|
+
description="First day of the reported window (UTC), inclusive.",
|
|
4534
|
+
title="Start Date",
|
|
4535
|
+
)
|
|
4536
|
+
end_date: date_aliased = Field(
|
|
4537
|
+
...,
|
|
4538
|
+
description="Last day of the reported window (UTC), inclusive.",
|
|
4539
|
+
title="End Date",
|
|
4540
|
+
)
|
|
4541
|
+
granularity: UsageGranularity = Field(
|
|
4542
|
+
..., description="The size of each bucket: a UTC day or a UTC calendar month."
|
|
4543
|
+
)
|
|
4544
|
+
total_creative_units: float = Field(
|
|
4545
|
+
...,
|
|
4546
|
+
description="Creative Units the member spent in the workspace over the window.",
|
|
4547
|
+
title="Total Creative Units",
|
|
4548
|
+
)
|
|
4549
|
+
buckets: list[MemberUsageBucket] = Field(
|
|
4550
|
+
...,
|
|
4551
|
+
description="Creative Units the member spent per bucket, oldest first. A bucket with no spend is left out. By month, the first and last months count only the days inside the window.",
|
|
4552
|
+
title="Buckets",
|
|
4553
|
+
)
|
|
4554
|
+
|
|
4555
|
+
|
|
4409
4556
|
class NineSliceMetadataView(BaseModel):
|
|
4410
4557
|
"""
|
|
4411
4558
|
The insets a 9-slice draws a UI element by, in the image's own pixels in from each edge.
|
|
@@ -4518,6 +4665,111 @@ class ResolvedInt(BaseModel):
|
|
|
4518
4665
|
source: AiPolicySource | None = None
|
|
4519
4666
|
|
|
4520
4667
|
|
|
4668
|
+
class RunInferenceToolInput(BaseModel):
|
|
4669
|
+
model_config = ConfigDict(
|
|
4670
|
+
extra="forbid",
|
|
4671
|
+
)
|
|
4672
|
+
base_model_id: str | None = Field(
|
|
4673
|
+
None,
|
|
4674
|
+
description="The base model to run the tool on, by ID, slug, name or alias: one of the tool's `base_model_ids`. Without it, the run takes the tool's `default_base_model_id` for the caller.",
|
|
4675
|
+
title="Base Model ID",
|
|
4676
|
+
)
|
|
4677
|
+
source_file_id: UUID | None = Field(
|
|
4678
|
+
None,
|
|
4679
|
+
description="The file an edit works on, from this workspace or public. Required where the tool's schema has `x-source.required`; a tool that makes something new takes none.",
|
|
4680
|
+
title="Source File ID",
|
|
4681
|
+
)
|
|
4682
|
+
mask_file_id: UUID | None = Field(
|
|
4683
|
+
None,
|
|
4684
|
+
description="An image the size of the source, white where the edit may change it and black where the source stays as it is. Only where the tool's schema has `x-source.takes_mask`.",
|
|
4685
|
+
title="Mask File ID",
|
|
4686
|
+
)
|
|
4687
|
+
batch_size: int | None = Field(
|
|
4688
|
+
1,
|
|
4689
|
+
description="How many outputs the run makes (1-16). More than 1 needs a tool and a model that batch.",
|
|
4690
|
+
ge=1,
|
|
4691
|
+
le=16,
|
|
4692
|
+
title="Batch Size",
|
|
4693
|
+
)
|
|
4694
|
+
input: dict[str, Any] | None = Field(
|
|
4695
|
+
None,
|
|
4696
|
+
description="The fields of the tool's schema on the model (GET .../inference-schema), with files by `file_id`. A field left out takes its default, and the tool sets the values it fixes.",
|
|
4697
|
+
title="Input",
|
|
4698
|
+
)
|
|
4699
|
+
reference_sets: list[InferenceReferenceSetInput] | None = Field(
|
|
4700
|
+
[],
|
|
4701
|
+
description="Reference sets to apply, up to 25, from GET /v2/workspaces/{workspace_id}/reference-sets. Some models need one: an ElevenLabs voice for a voice change or speech, an animation preset for Tripo's animate. A run on such a model without one is refused with `REFERENCE_SET_REQUIRED`.",
|
|
4702
|
+
max_length=25,
|
|
4703
|
+
title="Reference Sets",
|
|
4704
|
+
validate_default=True,
|
|
4705
|
+
)
|
|
4706
|
+
session_id: UUID | None = Field(
|
|
4707
|
+
None,
|
|
4708
|
+
description="Organize this run under this session, from GET /v2/workspaces/{workspace_id}/sessions. Takes precedence over `session_name`, and must belong to this workspace. Its project's AI policy decides the models the run may take and their defaults; an estimate with it prices the run in that project.",
|
|
4709
|
+
title="Session ID",
|
|
4710
|
+
)
|
|
4711
|
+
session_name: SessionName1 | None = Field(
|
|
4712
|
+
None,
|
|
4713
|
+
description="Organize this run under the most recent active session with this name, creating one if none matches. Ignored when `session_id` is given.",
|
|
4714
|
+
title="Session Name",
|
|
4715
|
+
)
|
|
4716
|
+
webhook: WebhookInput | None = Field(
|
|
4717
|
+
None,
|
|
4718
|
+
description="Deliver this run's terminal events to a URL instead of polling for them. See the Webhooks section of this document for the payload, headers and retry behavior.",
|
|
4719
|
+
)
|
|
4720
|
+
|
|
4721
|
+
|
|
4722
|
+
class RunInferenceToolOutput(BaseModel):
|
|
4723
|
+
inference_id: UUID = Field(..., description="Unique identifier for this forge run.", title="Inference ID")
|
|
4724
|
+
status: InferenceStatus = Field(..., description="Current status: IN_PROGRESS.")
|
|
4725
|
+
estimated_price_creative_units: float | None = Field(
|
|
4726
|
+
None,
|
|
4727
|
+
description="Estimated price in Creative Units.",
|
|
4728
|
+
title="Estimated Price Creative Units",
|
|
4729
|
+
)
|
|
4730
|
+
poll_interval_seconds: int = Field(
|
|
4731
|
+
...,
|
|
4732
|
+
description="Suggested polling interval in seconds.",
|
|
4733
|
+
title="Poll Interval Seconds",
|
|
4734
|
+
)
|
|
4735
|
+
created_at: AwareDatetime = Field(..., description="Timestamp of when the run was created.", title="Created At")
|
|
4736
|
+
session_id: UUID | None = Field(
|
|
4737
|
+
None,
|
|
4738
|
+
description="Session ID the run was added to, if a session was specified.",
|
|
4739
|
+
title="Session ID",
|
|
4740
|
+
)
|
|
4741
|
+
normalized_parameters: NormalizedInferenceParameters | None = Field(
|
|
4742
|
+
None,
|
|
4743
|
+
description="Actual parameters used after model-specific normalization and defaults.",
|
|
4744
|
+
)
|
|
4745
|
+
base_model_id: str = Field(
|
|
4746
|
+
...,
|
|
4747
|
+
description="The base model the run takes: the one named, else the tool's default.",
|
|
4748
|
+
title="Base Model ID",
|
|
4749
|
+
)
|
|
4750
|
+
expected_events: list[WebhookEventType] | None = Field(
|
|
4751
|
+
[],
|
|
4752
|
+
description="The events this run can deliver, resolved when it was submitted and narrowed by `webhook.events`; empty when no webhook was supplied. Of the outcome events listed (`inference.completed`, `inference.failed`, `inference.cancelled`), only the one that ends the run arrives, and none does when `webhook.events` leaves that one out. The scoring events are listed where this scope has automatic scoring rules, so this is how to tell 'more is coming' from 'that was everything'. Best-effort: a rule turned off mid-run can still remove a listed scoring event, and when the rules cannot be read at submission the scoring events are left out though they may still arrive.",
|
|
4753
|
+
title="Expected Events",
|
|
4754
|
+
)
|
|
4755
|
+
reference_set_contributions: list[ForgeReferenceSetContribution] | None = Field(
|
|
4756
|
+
[],
|
|
4757
|
+
description="Per-set summary of what each reference set contributed.",
|
|
4758
|
+
title="Reference Set Contributions",
|
|
4759
|
+
validate_default=True,
|
|
4760
|
+
)
|
|
4761
|
+
reference_sets_degraded: bool | None = Field(
|
|
4762
|
+
False,
|
|
4763
|
+
description="True when at least one attached reference set did not meaningfully contribute. The run still costs Creative Units.",
|
|
4764
|
+
title="Reference Sets Degraded",
|
|
4765
|
+
)
|
|
4766
|
+
reference_sets_warning: str | None = Field(
|
|
4767
|
+
None,
|
|
4768
|
+
description="Names each degraded reference set and why, or null when none is degraded.",
|
|
4769
|
+
title="Reference Sets Warning",
|
|
4770
|
+
)
|
|
4771
|
+
|
|
4772
|
+
|
|
4521
4773
|
class SceneLightingConfig(BaseModel):
|
|
4522
4774
|
"""
|
|
4523
4775
|
An array of orbiting light sources to populate the graphics engine environment.
|
|
@@ -4710,7 +4962,7 @@ class SpriteSheetMetadataView(BaseModel):
|
|
|
4710
4962
|
class StartTrainingRequest(BaseModel):
|
|
4711
4963
|
reference_set_id: UUID = Field(
|
|
4712
4964
|
...,
|
|
4713
|
-
description="The reference set (Style) to train a LoRA for.",
|
|
4965
|
+
description="The reference set (Style) to train a LoRA or a voice for.",
|
|
4714
4966
|
title="Reference Set ID",
|
|
4715
4967
|
)
|
|
4716
4968
|
base_model_id: str | None = Field(
|
|
@@ -4720,7 +4972,7 @@ class StartTrainingRequest(BaseModel):
|
|
|
4720
4972
|
)
|
|
4721
4973
|
training_framework: TrainingFramework | None = Field(
|
|
4722
4974
|
None,
|
|
4723
|
-
description="Training framework override. Omit for the server default.",
|
|
4975
|
+
description="Training framework override. Omit for the server default. On the ElevenLabs TTS models, voice-clone clones the set's audio clips, voice-design designs a voice from training_parameters.training_prompt, and voice-import adopts the ElevenLabs voice in training_parameters.voice_id.",
|
|
4724
4976
|
title="Training Framework",
|
|
4725
4977
|
)
|
|
4726
4978
|
training_parameters: TrainingOverrides | None = Field(
|
|
@@ -4969,7 +5221,17 @@ class TrendSummary(BaseModel):
|
|
|
4969
5221
|
|
|
4970
5222
|
|
|
4971
5223
|
class UpdateMemberBody(BaseModel):
|
|
4972
|
-
role:
|
|
5224
|
+
role: str | None = Field(
|
|
5225
|
+
None,
|
|
5226
|
+
deprecated=True,
|
|
5227
|
+
description="New built-in role, by key, if changing. Deprecated: use role_id.",
|
|
5228
|
+
title="Role",
|
|
5229
|
+
)
|
|
5230
|
+
role_id: UUID | None = Field(
|
|
5231
|
+
None,
|
|
5232
|
+
description="ID of the new role, custom included, if changing.",
|
|
5233
|
+
title="Role ID",
|
|
5234
|
+
)
|
|
4973
5235
|
status: WorkspaceMembershipStatus | None = Field(
|
|
4974
5236
|
None,
|
|
4975
5237
|
description="New status (active to reactivate, suspended to suspend), if changing.",
|
|
@@ -5212,6 +5474,11 @@ class GetInferenceRunV2Output(BaseModel):
|
|
|
5212
5474
|
description="Base model the run used, resolved or auto-picked.",
|
|
5213
5475
|
title="Base Model ID",
|
|
5214
5476
|
)
|
|
5477
|
+
inference_tool_key: str | None = Field(
|
|
5478
|
+
None,
|
|
5479
|
+
description="The Layer tool the run was made with, such as `image.upscale`: a key from GET /v2/workspaces/{workspace_id}/inference-tools. Null for a run made without a tool.",
|
|
5480
|
+
title="Inference Tool Key",
|
|
5481
|
+
)
|
|
5215
5482
|
reference_set_contributions: list[ForgeReferenceSetContribution] | None = Field(
|
|
5216
5483
|
[],
|
|
5217
5484
|
description="Per-set summary of what each reference set contributed.",
|
|
@@ -5467,6 +5734,32 @@ class AiPolicy(BaseModel):
|
|
|
5467
5734
|
usage_caps: dict[str, SettingUnionUsageCapNoneType] | None = Field({}, title="Usage Caps", validate_default=True)
|
|
5468
5735
|
|
|
5469
5736
|
|
|
5737
|
+
class AiPolicyPatch(BaseModel):
|
|
5738
|
+
"""
|
|
5739
|
+
A change to the AI controls one scope sets, as a JSON merge patch (RFC 7396) of its policy.
|
|
5740
|
+
|
|
5741
|
+
A control or key the patch names is set; one it names as null is removed, so the scope inherits
|
|
5742
|
+
it again; anything it leaves out stays as it is. A setting is one value: naming it replaces both
|
|
5743
|
+
its value and its lock. Guardrails and output scoring belong to the services that own them, and
|
|
5744
|
+
naming one is refused. Usage caps take workspace billing admin as well.
|
|
5745
|
+
"""
|
|
5746
|
+
|
|
5747
|
+
model_config = ConfigDict(
|
|
5748
|
+
extra="forbid",
|
|
5749
|
+
)
|
|
5750
|
+
agent_enabled: SettingBool | None = None
|
|
5751
|
+
agents: dict[str, SettingBool | None] | None = Field(None, title="Agents")
|
|
5752
|
+
agent_confirm_above_cu: SettingAnnotatedFloatGe | None = None
|
|
5753
|
+
modalities: dict[str, SettingBool | None] | None = Field(None, title="Modalities")
|
|
5754
|
+
new_models_enabled: SettingBool | None = None
|
|
5755
|
+
models: dict[str, SettingBool | None] | None = Field(None, title="Models")
|
|
5756
|
+
model_defaults: dict[str, dict[str, SettingJsonValue | None] | None] | None = Field(None, title="Model Defaults")
|
|
5757
|
+
nsfw_tolerance: SettingAnnotatedIntFieldInfoAnnotationNoneTypeRequiredTrueMetadataGeGe1LeLe6 | None = None
|
|
5758
|
+
reference_set_sharing_enabled: SettingBool | None = None
|
|
5759
|
+
workflow_sharing_enabled: SettingBool | None = None
|
|
5760
|
+
usage_caps: dict[str, SettingUnionUsageCapNoneType | None] | None = Field(None, title="Usage Caps")
|
|
5761
|
+
|
|
5762
|
+
|
|
5470
5763
|
class AiPolicyRecord(BaseModel):
|
|
5471
5764
|
"""
|
|
5472
5765
|
A stored policy: the scope it is attached to, what it sets, and its last write.
|
|
@@ -6148,6 +6441,11 @@ class EstimateInferencePriceV2Request(BaseModel):
|
|
|
6148
6441
|
None,
|
|
6149
6442
|
description="The mask the execute call will pass. Some models bill a masked edit at a different rate.",
|
|
6150
6443
|
)
|
|
6444
|
+
session_id: UUID | None = Field(
|
|
6445
|
+
None,
|
|
6446
|
+
description="The session the execute call will pass, from GET /v2/workspaces/{workspace_id}/sessions. The price and the checks are those of a run in that session's project, which can allow fewer models than the workspace or set other defaults. Without it, they are the workspace's.",
|
|
6447
|
+
title="Session ID",
|
|
6448
|
+
)
|
|
6151
6449
|
|
|
6152
6450
|
|
|
6153
6451
|
class ExecuteInferenceRequest(BaseModel):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|