@civitai/app-sdk 0.94.0 → 0.95.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/blocks/messages.d.ts +21 -0
- package/package.json +1 -1
|
@@ -233,6 +233,27 @@ export interface BlockInitPayload {
|
|
|
233
233
|
* than the exact string must be treated as absent.
|
|
234
234
|
*/
|
|
235
235
|
storageMode?: 'local-preview';
|
|
236
|
+
/**
|
|
237
|
+
* Where this app's DOCUMENT STORE is served when the host has moved the app
|
|
238
|
+
* to the app-data service: `url` is the service's base URL (`https:`, no
|
|
239
|
+
* credentials, query or fragment) and `slug` is the app's blockId, as the
|
|
240
|
+
* service names apps in its routes (`/v1/apps/<slug>/…`). The host sets it
|
|
241
|
+
* from its own per-app decision, and only for a production token; never from
|
|
242
|
+
* anything the block sent. Absent on every other surface, and never together
|
|
243
|
+
* with `storageMode: 'local-preview'` (if both arrive, the local preview wins).
|
|
244
|
+
*
|
|
245
|
+
* `@civitai/sdk`'s `initialize()` reads it once and sends
|
|
246
|
+
* `app.storage.collection(name)` (this app's own collections) and
|
|
247
|
+
* `app.storage.info()` to the service instead of `/api/v1/blocks/storage`.
|
|
248
|
+
* Nothing in this package or in `@civitai/blocks-react` acts on it.
|
|
249
|
+
*
|
|
250
|
+
* ADDITIVE + OPTIONAL. A host that predates it omits the field; any other
|
|
251
|
+
* shape must be treated as absent, which keeps the site's routes.
|
|
252
|
+
*/
|
|
253
|
+
appData?: {
|
|
254
|
+
url: string;
|
|
255
|
+
slug: string;
|
|
256
|
+
};
|
|
236
257
|
}
|
|
237
258
|
/**
|
|
238
259
|
* Why a `CONSENT_UNAVAILABLE` push was sent.
|
package/package.json
CHANGED