@nodaro/sdk 2.6.0 → 2.8.0

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/index.cjs CHANGED
@@ -2173,6 +2173,31 @@ var MediaResource = class {
2173
2173
  imageOverlay(input) {
2174
2174
  return this.client.request("POST", "/v1/image-overlay", { body: input });
2175
2175
  }
2176
+ /**
2177
+ * Ask a vision model WHERE one overlay layer should sit on a base image
2178
+ * (`POST /v1/image-overlay/suggest-placement`) — it reads the picture and
2179
+ * keeps the element off the faces, the subject and the busiest texture.
2180
+ * The answer comes back in {@link MediaResource.imageOverlay}'s own percent
2181
+ * units — `anchor`, `x`/`y` offsets, `width` — so it drops straight onto a
2182
+ * layer (`const { reason, ...box } = placement`), plus a one-sentence
2183
+ * `reason` you can show a user. Nothing is composited here: apply the
2184
+ * placement yourself.
2185
+ *
2186
+ * `layerAspect` is the element's width / height (1 = square, the default) so
2187
+ * the proposed box stays in proportion; `intent` says what the element is
2188
+ * ("a logo", "a price badge"); `safeArea` is the always-visible region as
2189
+ * fractions of the canvas (a platform preset's safe area), which the
2190
+ * placement is kept inside. Unlike the other media calls this one answers
2191
+ * synchronously — there is nothing to poll; `jobId` is the billing record
2192
+ * (one image-to-text call).
2193
+ */
2194
+ suggestOverlayPlacement(input) {
2195
+ return this.client.request(
2196
+ "POST",
2197
+ "/v1/image-overlay/suggest-placement",
2198
+ { body: input }
2199
+ );
2200
+ }
2176
2201
  /**
2177
2202
  * Trim a video to a range (`POST /v1/trim-video`). Give the range in whichever
2178
2203
  * unit fits: `startTime`/`endTime` seconds, `trim*Frames`, `trim*Seconds`, or
@@ -3372,7 +3397,7 @@ var WorkspacesResource = class {
3372
3397
  return this.client.requestText("GET", `/v1/workspaces/${encodeURIComponent(id)}/usage`, { query: { ...opts, format: "csv" } });
3373
3398
  }
3374
3399
  };
3375
- var SDK_VERSION = "2.6.0" ;
3400
+ var SDK_VERSION = "2.8.0" ;
3376
3401
  var CLIENT_HEADER = "X-Nodaro-Client";
3377
3402
  var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
3378
3403
  var NodaroClient = class _NodaroClient {