@civitai/app-sdk 0.71.0 → 0.72.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.
@@ -938,6 +938,25 @@ export type BlockToParentMessage = {
938
938
  multiple?: {
939
939
  max: number;
940
940
  };
941
+ /**
942
+ * Offer only images in a published, non-`Private` post: `true`
943
+ * narrows the `'posted'` library to those. It does not filter by
944
+ * rating or by any other post setting. The `'generated'` library is
945
+ * unaffected. OMIT it (or `false`) for today's behaviour, which also
946
+ * offers images in a `Private` post. Send a boolean or nothing: the
947
+ * host refuses any other value with `{ requestId, error }`.
948
+ *
949
+ * Set it when the pick becomes PUBLIC-FACING, e.g. an App Store
950
+ * sub-listing card image (`imageId` on
951
+ * `POST /api/v1/blocks/sub-listings/upsert`, `app.subListings.upsert`
952
+ * in `@civitai/sdk`), which the store refuses for a non-public image.
953
+ * Leave it off when the pick is a private input (a generation source).
954
+ *
955
+ * 🔴 A HOST THAT PREDATES THIS FIELD IGNORES IT and still offers
956
+ * `Private`-post images, so an app setting it must still handle the
957
+ * store's `image_not_public` refusal.
958
+ */
959
+ publicOnly?: boolean;
941
960
  };
942
961
  } | {
943
962
  type: 'SET_USER_CHECKPOINT';
@@ -304,6 +304,11 @@ export type BlockGenerationSourceImageInfo = BlockSourceImage;
304
304
  *
305
305
  * The request's `sources` narrows the picker to one of them; omitting it offers
306
306
  * both. Images only — neither library offers video through this picker.
307
+ *
308
+ * The request's `publicOnly: true` further narrows `'posted'` to images whose
309
+ * post is published and not `Private` (for a public-facing pick such as an App
310
+ * Store sub-listing card image); it does not change `'generated'`. A host that
311
+ * predates `publicOnly` ignores it.
307
312
  */
308
313
  export type BlockImagePickerSource = 'posted' | 'generated';
309
314
  /**
@@ -314,7 +319,8 @@ export type BlockImagePickerSource = 'posted' | 'generated';
314
319
  *
315
320
  * WHAT IS PICKABLE is decided by the host, never by the block:
316
321
  * - `'posted'`: the viewer's own images that are in a published post, fully
317
- * scanned, not flagged, and rated.
322
+ * scanned, not flagged, and rated. A `Private` post counts as published
323
+ * here unless the request set `publicOnly: true`, which leaves those out.
318
324
  * - `'generated'`: the viewer's own succeeded generator outputs that carry a
319
325
  * rating the host recognises.
320
326
  * - Either way the image's rating has to be one the VIEWER'S OWN browsing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/app-sdk",
3
- "version": "0.71.0",
3
+ "version": "0.72.0",
4
4
  "description": "OAuth + PKCE, encrypted-cookie sessions, scopes, and orchestrator helpers for building third-party Civitai apps.",
5
5
  "license": "MIT",
6
6
  "type": "module",