@layer_ai/sdk 1.0.37 → 1.0.40

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.
@@ -46,6 +46,8 @@ export interface BaseModelCapabilitiesREST {
46
46
  session_modes?: Array<string>;
47
47
  text_prompt?: boolean;
48
48
  text_prompt_required?: boolean;
49
+ /** Longest prompt, in characters, the model accepts; null when unbounded. */
50
+ max_prompt_chars?: number | null;
49
51
  negative_prompt?: boolean;
50
52
  seed?: boolean;
51
53
  inpainting?: boolean;
@@ -170,6 +172,24 @@ export interface BaseModelSummary {
170
172
  }
171
173
  /** Enum representing the status of a blueprint run. */
172
174
  export type BlueprintRunStatus = "pending" | "running" | "success" | "failure" | "cancelled";
175
+ export interface Body_exchangeToken {
176
+ /** Must be `client_credentials`. */
177
+ grant_type: string;
178
+ /** The service account's id. */
179
+ client_id?: string | null;
180
+ /** One of the service account's keys. */
181
+ client_secret?: string | null;
182
+ /** Space-delimited scopes to narrow the token to. */
183
+ scope?: string | null;
184
+ }
185
+ export interface Body_revokeToken {
186
+ /** The service account key to revoke. */
187
+ token: string;
188
+ /** The service account's id. */
189
+ client_id?: string | null;
190
+ /** One of the service account's keys. */
191
+ client_secret?: string | null;
192
+ }
173
193
  export interface CameraRotationDelta {
174
194
  pitch_delta?: number | null;
175
195
  yaw_delta?: number | null;
@@ -389,6 +409,10 @@ export interface EstimateInferencePriceRequest {
389
409
  reframe?: boolean | null;
390
410
  /** Outpaint/refill transparent areas. */
391
411
  refill?: boolean | null;
412
+ /** The guidance files the execute call will pass. An upscale or a per-megapixel background removal is priced by its source file's size, and on some models an input image bills the edit rate. */
413
+ guidance_files?: Array<ForgeGuidanceFileInput>;
414
+ /** The mask the execute call will pass. Some models bill a masked edit at a different rate. */
415
+ mask?: ForgeMaskInput | null;
392
416
  }
393
417
  export interface EstimateInferencePriceV2Output {
394
418
  /** Total estimated Creative Units price for this run. */
@@ -582,6 +606,8 @@ export interface EstimateInferencePriceV2Request {
582
606
  video_section?: VideoSection | null;
583
607
  /** Reference images/files to guide generation. */
584
608
  guidance_files?: Array<ForgeGuidanceFileInput>;
609
+ /** The mask the execute call will pass. Some models bill a masked edit at a different rate. */
610
+ mask?: ForgeMaskInput | null;
585
611
  }
586
612
  export interface EstimateTrainingPriceRequest {
587
613
  /** The reference set to price training for. */
@@ -1351,6 +1377,8 @@ export interface ModelCapabilitiesREST {
1351
1377
  session_modes?: Array<string>;
1352
1378
  text_prompt?: boolean;
1353
1379
  text_prompt_required?: boolean;
1380
+ /** Longest prompt, in characters, the model accepts; null when unbounded. */
1381
+ max_prompt_chars?: number | null;
1354
1382
  negative_prompt?: boolean;
1355
1383
  seed?: boolean;
1356
1384
  inpainting?: boolean;
@@ -1595,7 +1623,7 @@ export interface RequestUploadUrlResponse {
1595
1623
  /** Source type the file was created with, echoed from the request. */
1596
1624
  source_type?: FileSourceType | null;
1597
1625
  }
1598
- export type Role = "admin" | "editor" | "settings_admin" | "art_director" | "artist" | "member";
1626
+ export type Role = "admin" | "editor" | "settings_admin" | "art_director" | "artist" | "member" | "installation" | "provisioning";
1599
1627
  export interface RotateWebhookSecretResponse {
1600
1628
  /** The new signing secret. Start verifying with it. */
1601
1629
  secret: string;
@@ -1789,6 +1817,16 @@ export interface StartTrainingResponse {
1789
1817
  */
1790
1818
  export type StyleCategory = "general" | "character" | "object" | "scene" | "animation" | "brand" | "camera_movement" | "camera_angle" | "camera_framing" | "camera_lens" | "scene_lighting" | "scene_composition" | "scene_atmosphere" | "time_and_motion" | "genre_look" | "optical_effect" | "visual_effect" | "character_performance";
1791
1819
  export type TargetRegion = "all" | "subject" | "background";
1820
+ export interface TokenResponse {
1821
+ /** A signed JWT access token (RFC 9068), sent as `Authorization: Bearer <token>`. Treat it as opaque. */
1822
+ access_token: string;
1823
+ /** Always `Bearer`. */
1824
+ token_type: string;
1825
+ /** Seconds until the token expires. */
1826
+ expires_in: number;
1827
+ /** The space-delimited scopes the token carries. */
1828
+ scope: string;
1829
+ }
1792
1830
  export interface ToolGuidanceFileTypeSupport {
1793
1831
  /** Guidance file type, such as init_image, reference_image, first_frame, pose, or depth. */
1794
1832
  type: string;
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.0.37";
1
+ export const VERSION = "1.0.40";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layer_ai/sdk",
3
- "version": "1.0.37",
3
+ "version": "1.0.40",
4
4
  "description": "Official JavaScript and TypeScript SDK for Layer \u2014 AI asset creation for game studios.",
5
5
  "keywords": [
6
6
  "ai",