@layer_ai/sdk 1.0.93 → 1.0.96
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.
- package/dist/generated/types.d.ts +45 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1216,7 +1216,7 @@ export interface ExecuteInferenceV2Output {
|
|
|
1216
1216
|
reference_sets_degraded?: boolean;
|
|
1217
1217
|
/** Names each degraded reference set and why, or null when none is degraded. */
|
|
1218
1218
|
reference_sets_warning?: string | null;
|
|
1219
|
-
/**
|
|
1219
|
+
/** 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. */
|
|
1220
1220
|
expected_events?: Array<WebhookEventType>;
|
|
1221
1221
|
}
|
|
1222
1222
|
/** REST request body for executing an inference. workspace_id comes from path. */
|
|
@@ -1503,6 +1503,10 @@ export interface FileMetadataView {
|
|
|
1503
1503
|
nine_slice?: NineSliceMetadataView | null;
|
|
1504
1504
|
/** Frame grid and animations, for a sprite sheet. */
|
|
1505
1505
|
sprite_sheet?: SpriteSheetMetadataView | null;
|
|
1506
|
+
/** The layers of a layered file, back to front, so drawing each visible PNG at its `left` and `top`, in order, rebuilds the image (blend modes and clipping aside). */
|
|
1507
|
+
layers?: Array<LayerView> | null;
|
|
1508
|
+
/** Scroll factors, for a background split into parallax layers. */
|
|
1509
|
+
parallax?: ParallaxMetadataView | null;
|
|
1506
1510
|
}
|
|
1507
1511
|
export interface FileScore {
|
|
1508
1512
|
/** The rule that produced this verdict. */
|
|
@@ -1898,6 +1902,10 @@ export interface InferenceToolSummary {
|
|
|
1898
1902
|
name: string;
|
|
1899
1903
|
/** What the tool does. */
|
|
1900
1904
|
description: string;
|
|
1905
|
+
/** What the tool's run button says in the Layer app, such as `Remove background`. */
|
|
1906
|
+
submit_label: string;
|
|
1907
|
+
/** What the Layer app says while a run of the tool is in progress, such as `Removing background`. */
|
|
1908
|
+
progress_label: string;
|
|
1901
1909
|
/** `generate` for a tool that makes something new, `edit` for one that changes an asset. */
|
|
1902
1910
|
group: InferenceToolGroup;
|
|
1903
1911
|
/** The type of asset the tool makes. */
|
|
@@ -1975,6 +1983,29 @@ export interface IssuedDeviceCode {
|
|
|
1975
1983
|
interval: number;
|
|
1976
1984
|
}
|
|
1977
1985
|
export type JsonValue = unknown;
|
|
1986
|
+
/** One layer of a layered file, such as the PSD `image.split_layers` returns. */
|
|
1987
|
+
export interface LayerView {
|
|
1988
|
+
/** The layer's name in the file. */
|
|
1989
|
+
name: string;
|
|
1990
|
+
/** `group`, `pixel`, `shape`, `type`, `smartobject` or `psdimage`. */
|
|
1991
|
+
kind: string;
|
|
1992
|
+
/** Download URL of the layer's pixels as a PNG at the layer's own size. Null when it has none. */
|
|
1993
|
+
url: string | null;
|
|
1994
|
+
/** X of the layer's top-left corner on the canvas, in pixels. */
|
|
1995
|
+
left: number;
|
|
1996
|
+
/** Y of the layer's top-left corner on the canvas, in pixels. */
|
|
1997
|
+
top: number;
|
|
1998
|
+
/** Width of the layer's PNG, in pixels. */
|
|
1999
|
+
width: number;
|
|
2000
|
+
/** Height of the layer's PNG, in pixels. */
|
|
2001
|
+
height: number;
|
|
2002
|
+
/** The layer's own visibility; a hidden group hides every layer in it. */
|
|
2003
|
+
visible: boolean;
|
|
2004
|
+
/** The layer's own opacity, 0 (transparent) to 255 (opaque). */
|
|
2005
|
+
opacity: number;
|
|
2006
|
+
/** Index in `layers` of the group that holds this layer; a group's members follow it. Null at the top level. */
|
|
2007
|
+
group: number | null;
|
|
2008
|
+
}
|
|
1978
2009
|
export type LibraryObjectType = "directory" | "file" | "asset" | "style" | "blueprint" | "skill";
|
|
1979
2010
|
export interface ListAiPoliciesOutput {
|
|
1980
2011
|
policies: Array<AiPolicyRecord>;
|
|
@@ -2294,6 +2325,19 @@ export interface PaletteColor {
|
|
|
2294
2325
|
hex: string;
|
|
2295
2326
|
role?: string | null;
|
|
2296
2327
|
}
|
|
2328
|
+
export interface ParallaxLayerView {
|
|
2329
|
+
/** The layer's name. */
|
|
2330
|
+
name: string;
|
|
2331
|
+
/** Share of the camera's movement the layer moves by: 1 moves with the camera, as the playfield does, and 0 stays put, as a sky at infinity does. */
|
|
2332
|
+
scroll: number;
|
|
2333
|
+
}
|
|
2334
|
+
/** How a parallax split's layers scroll. Its layers pair, in order, with top-level `layers` (`group` null). */
|
|
2335
|
+
export interface ParallaxMetadataView {
|
|
2336
|
+
/** True when every layer repeats left to right at the canvas width. */
|
|
2337
|
+
loops: boolean;
|
|
2338
|
+
/** One entry per layer, farthest first. */
|
|
2339
|
+
layers: Array<ParallaxLayerView>;
|
|
2340
|
+
}
|
|
2297
2341
|
export interface ParallaxSplit {
|
|
2298
2342
|
layers?: number;
|
|
2299
2343
|
cuts?: Array<number> | null;
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.96";
|