layer 1.0.113__tar.gz → 1.0.115__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.
Files changed (30) hide show
  1. {layer-1.0.113 → layer-1.0.115}/PKG-INFO +1 -1
  2. {layer-1.0.113 → layer-1.0.115}/pyproject.toml +1 -1
  3. {layer-1.0.113 → layer-1.0.115}/pyproject.toml.orig +1 -1
  4. {layer-1.0.113 → layer-1.0.115}/src/layer/_api/models.py +93 -1
  5. {layer-1.0.113 → layer-1.0.115}/README.md +0 -0
  6. {layer-1.0.113 → layer-1.0.115}/src/layer/__init__.py +0 -0
  7. {layer-1.0.113 → layer-1.0.115}/src/layer/__main__.py +0 -0
  8. {layer-1.0.113 → layer-1.0.115}/src/layer/_api/__init__.py +0 -0
  9. {layer-1.0.113 → layer-1.0.115}/src/layer/_api/client.py +0 -0
  10. {layer-1.0.113 → layer-1.0.115}/src/layer/_cli/__init__.py +0 -0
  11. {layer-1.0.113 → layer-1.0.115}/src/layer/_cli/auth_commands.py +0 -0
  12. {layer-1.0.113 → layer-1.0.115}/src/layer/_cli/base_model_commands.py +0 -0
  13. {layer-1.0.113 → layer-1.0.115}/src/layer/_cli/context.py +0 -0
  14. {layer-1.0.113 → layer-1.0.115}/src/layer/_cli/context_commands.py +0 -0
  15. {layer-1.0.113 → layer-1.0.115}/src/layer/_cli/generate_commands.py +0 -0
  16. {layer-1.0.113 → layer-1.0.115}/src/layer/_cli/main.py +0 -0
  17. {layer-1.0.113 → layer-1.0.115}/src/layer/_cli/output.py +0 -0
  18. {layer-1.0.113 → layer-1.0.115}/src/layer/auth.py +0 -0
  19. {layer-1.0.113 → layer-1.0.115}/src/layer/catalog.py +0 -0
  20. {layer-1.0.113 → layer-1.0.115}/src/layer/config.py +0 -0
  21. {layer-1.0.113 → layer-1.0.115}/src/layer/credentials.py +0 -0
  22. {layer-1.0.113 → layer-1.0.115}/src/layer/download.py +0 -0
  23. {layer-1.0.113 → layer-1.0.115}/src/layer/exit_codes.py +0 -0
  24. {layer-1.0.113 → layer-1.0.115}/src/layer/generate.py +0 -0
  25. {layer-1.0.113 → layer-1.0.115}/src/layer/oauth.py +0 -0
  26. {layer-1.0.113 → layer-1.0.115}/src/layer/params.py +0 -0
  27. {layer-1.0.113 → layer-1.0.115}/src/layer/sessions.py +0 -0
  28. {layer-1.0.113 → layer-1.0.115}/src/layer/sse.py +0 -0
  29. {layer-1.0.113 → layer-1.0.115}/src/layer/uploads.py +0 -0
  30. {layer-1.0.113 → layer-1.0.115}/src/layer/workspaces.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: layer
3
- Version: 1.0.113
3
+ Version: 1.0.115
4
4
  Summary: Command-line interface for Layer — AI asset generation for game studios.
5
5
  Keywords: layer,ai,generative,game-development,cli
6
6
  Author: Layer
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "layer"
3
- version = "1.0.113"
3
+ version = "1.0.115"
4
4
  description = "Command-line interface for Layer — AI asset generation for game studios."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "layer"
3
- version = "1.0.113"
3
+ version = "1.0.115"
4
4
  description = "Command-line interface for Layer — AI asset generation for game studios."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Layer", email = "info@layer.ai" }]
@@ -2273,6 +2273,20 @@ class PoseMode(Enum):
2273
2273
  T_POSE = "T_POSE"
2274
2274
 
2275
2275
 
2276
+ class ProductIdentifierType(Enum):
2277
+ url = "url"
2278
+ steam = "steam"
2279
+ apple = "apple"
2280
+ google = "google"
2281
+ shopify = "shopify"
2282
+
2283
+
2284
+ class ProductType(Enum):
2285
+ app = "app"
2286
+ site = "site"
2287
+ shopify = "shopify"
2288
+
2289
+
2276
2290
  class ProjectMember(BaseModel):
2277
2291
  principal_id: UUID = Field(
2278
2292
  ...,
@@ -3151,6 +3165,16 @@ class UpdateGroupBody(BaseModel):
3151
3165
 
3152
3166
 
3153
3167
  class Name(RootModel[str]):
3168
+ root: str = Field(
3169
+ ...,
3170
+ description="A new name. Omit to leave it unchanged.",
3171
+ max_length=255,
3172
+ min_length=1,
3173
+ title="Name",
3174
+ )
3175
+
3176
+
3177
+ class Name1(RootModel[str]):
3154
3178
  root: str = Field(..., min_length=1, title="Name")
3155
3179
 
3156
3180
 
@@ -3159,7 +3183,7 @@ class Description2(RootModel[str]):
3159
3183
 
3160
3184
 
3161
3185
  class UpdateProjectBody(BaseModel):
3162
- name: Name | None = Field(None, title="Name")
3186
+ name: Name1 | None = Field(None, title="Name")
3163
3187
  description: Description2 | None = Field(None, title="Description")
3164
3188
  instructions: Instructions | None = Field(
3165
3189
  None,
@@ -4829,6 +4853,36 @@ class OutputFit(BaseModel):
4829
4853
  corner_radius: int | None = Field(0, ge=0, le=512, title="Corner Radius")
4830
4854
 
4831
4855
 
4856
+ class ProductIdentifierBody(BaseModel):
4857
+ model_config = ConfigDict(
4858
+ extra="forbid",
4859
+ )
4860
+ type: ProductIdentifierType = Field(
4861
+ ...,
4862
+ description="The store or web identity: apple, google, steam, url or shopify.",
4863
+ )
4864
+ identifier: str = Field(
4865
+ ...,
4866
+ description="The ID in that store, in the form the store uses, or a URL.",
4867
+ title="Identifier",
4868
+ )
4869
+
4870
+
4871
+ class ProductOutput(BaseModel):
4872
+ product_id: UUID = Field(..., description="The product's unique identifier.", title="Product ID")
4873
+ project_id: UUID = Field(..., description="The project the product belongs to.", title="Project ID")
4874
+ name: str = Field(..., description="What the product is called.", title="Name")
4875
+ type: ProductType = Field(
4876
+ ...,
4877
+ description="`app` for a game or app published on stores, `site` for a website, `shopify` for an item in a Shopify store.",
4878
+ )
4879
+ identifiers: list[ProductIdentifierBody] = Field(
4880
+ ...,
4881
+ description="The store and web identities the product is known by. An `app` takes `apple` (a numeric App Store ID), `google` (a Google Play package name) and `steam` (a numeric Steam app ID); a `site` takes `url`; a `shopify` product takes `shopify` (a product, variant or collection GID).",
4882
+ title="Identifiers",
4883
+ )
4884
+
4885
+
4832
4886
  class ProjectDetail(BaseModel):
4833
4887
  project_id: UUID = Field(..., description="The project's unique identifier.", title="Project ID")
4834
4888
  name: str = Field(..., description="The project's display name.", title="Name")
@@ -5478,6 +5532,18 @@ class UpdateMemberBody(BaseModel):
5478
5532
  )
5479
5533
 
5480
5534
 
5535
+ class UpdateProductBody(BaseModel):
5536
+ model_config = ConfigDict(
5537
+ extra="forbid",
5538
+ )
5539
+ name: Name | None = Field(None, description="A new name. Omit to leave it unchanged.", title="Name")
5540
+ identifiers: list[ProductIdentifierBody] | None = Field(
5541
+ None,
5542
+ description="The store and web identities the product is known by. An `app` takes `apple` (a numeric App Store ID), `google` (a Google Play package name) and `steam` (a numeric Steam app ID); a `site` takes `url`; a `shopify` product takes `shopify` (a product, variant or collection GID). Replaces every identifier the product has; an empty list removes them all. Omit to leave them unchanged.",
5543
+ title="Identifiers",
5544
+ )
5545
+
5546
+
5481
5547
  class UsageCap(BaseModel):
5482
5548
  """
5483
5549
  A cap on the Creative Units each member may spend in a workspace over one period, as a policy sets it.
@@ -5571,6 +5637,28 @@ class BaseModelDefaultsOutput(BaseModel):
5571
5637
  )
5572
5638
 
5573
5639
 
5640
+ class CreateProductBody(BaseModel):
5641
+ model_config = ConfigDict(
5642
+ extra="forbid",
5643
+ )
5644
+ name: str = Field(
5645
+ ...,
5646
+ description="What the product is called.",
5647
+ max_length=255,
5648
+ min_length=1,
5649
+ title="Name",
5650
+ )
5651
+ type: ProductType = Field(
5652
+ ...,
5653
+ description="`app` for a game or app published on stores, `site` for a website, `shopify` for an item in a Shopify store. Fixed once the product is created.",
5654
+ )
5655
+ identifiers: list[ProductIdentifierBody] | None = Field(
5656
+ None,
5657
+ description="The store and web identities the product is known by. An `app` takes `apple` (a numeric App Store ID), `google` (a Google Play package name) and `steam` (a numeric Steam app ID); a `site` takes `url`; a `shopify` product takes `shopify` (a product, variant or collection GID).",
5658
+ title="Identifiers",
5659
+ )
5660
+
5661
+
5574
5662
  class EffectiveAutoDeletePolicyOutput(BaseModel):
5575
5663
  policy: AutoDeletePolicyIO
5576
5664
  source_workspace_id: UUID = Field(
@@ -5831,6 +5919,10 @@ class ListMembersOutput(BaseModel):
5831
5919
  pagination: PaginationOutput
5832
5920
 
5833
5921
 
5922
+ class ListProductsOutput(BaseModel):
5923
+ products: list[ProductOutput] = Field(..., description="The project's products, oldest first.", title="Products")
5924
+
5925
+
5834
5926
  class ListProjectsOutput(BaseModel):
5835
5927
  projects: list[ProjectSummary] = Field(..., title="Projects")
5836
5928
  pagination: PaginationOutput
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