@civitai/sdk 0.20.1 → 0.20.2
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/BREAKING.md
CHANGED
|
@@ -25,7 +25,7 @@ messages have no destination yet.
|
|
|
25
25
|
| `CREATE_POST_FROM_APP` | — | No v1 route, **and deliberately staying on the bridge** — see below |
|
|
26
26
|
| `PUBLISH_GENERATION_OUTPUTS` | `app.host.publishGenerationOutputs` | Same reasoning: it raises host UI, so it stays on the bridge — **carried** rather than replaced |
|
|
27
27
|
| `SET_COLLECTION_FOLLOW` | `POST /api/v1/blocks/collections/{id}/follow` | **Route exists** (scope `collections:write:self`). This row previously said "No v1 route"; that was wrong |
|
|
28
|
-
| `GET_DAILY_COMPENSATION`, `GET_WILDCARD_PACK` | — | Not carried |
|
|
28
|
+
| `GET_DAILY_COMPENSATION`, `GET_WILDCARD_PACK`, `GET_RESOURCE_FILE` | — | Not carried as a typed wrapper. `BlockTransport.request()` knows all three (the host reply ledger lists them): `request('GET_RESOURCE_FILE', { modelVersionId, fileId? })` resolves with `{ file }` on a full-page app host |
|
|
29
29
|
| `TRACK_EVENT` | `app.host.track(eventName, properties)` | **Carried**, same wire as `useBlockAnalytics().track`. 🔴 Only events and properties DECLARED under the manifest's `analytics.events` are recorded — see below |
|
|
30
30
|
|
|
31
31
|
⚠ **`TRACK_EVENT` used to be listed here as *not carried*, because no host handled it — every
|
|
@@ -7,7 +7,7 @@ export interface HostReply {
|
|
|
7
7
|
readonly keys: readonly string[] | null;
|
|
8
8
|
}
|
|
9
9
|
/** The civitai commit this ledger was read from. A request the host added after it is refused too. */
|
|
10
|
-
export declare const HOST_SNAPSHOT = "
|
|
10
|
+
export declare const HOST_SNAPSHOT = "4c13f8c629";
|
|
11
11
|
/**
|
|
12
12
|
* Every request the host answered at {@link HOST_SNAPSHOT}. A type absent here is refused.
|
|
13
13
|
* Reply names and framing are fixed at publish time: if the host renames a reply or moves a
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by scripts/gen-host-replies.mjs from snapshots/host-messages.json
|
|
2
|
-
// (civitai/civitai
|
|
2
|
+
// (civitai/civitai 4c13f8c629, 2026-10-25). Do not edit.
|
|
3
3
|
/** The civitai commit this ledger was read from. A request the host added after it is refused too. */
|
|
4
|
-
export const HOST_SNAPSHOT = "
|
|
4
|
+
export const HOST_SNAPSHOT = "4c13f8c629";
|
|
5
5
|
/**
|
|
6
6
|
* Every request the host answered at {@link HOST_SNAPSHOT}. A type absent here is refused.
|
|
7
7
|
* Reply names and framing are fixed at publish time: if the host renames a reply or moves a
|
|
@@ -24,6 +24,7 @@ export const HOST_REPLIES = {
|
|
|
24
24
|
"GET_DAILY_COMPENSATION": { "reply": "DAILY_COMPENSATION_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
25
25
|
"GET_ENTITY_REACTIONS": { "reply": "ENTITY_REACTIONS_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
26
26
|
"GET_IMAGES_BY_IDS": { "reply": "IMAGES_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
27
|
+
"GET_RESOURCE_FILE": { "reply": "RESOURCE_FILE_RESULT", "framing": "legacy", "keys": ["file"] },
|
|
27
28
|
"GET_VIEWER": { "reply": "VIEWER_RESULT", "framing": "legacy", "keys": ["viewer"] },
|
|
28
29
|
"GET_WILDCARD_PACK": { "reply": "WILDCARD_PACK_RESULT", "framing": "legacy", "keys": ["pack"] },
|
|
29
30
|
"OPEN_BUZZ_PURCHASE": { "reply": "BUZZ_PURCHASE_RESULT", "framing": "legacy", "keys": ["purchased"] },
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, reported to the host as `sdkVersion` in `BLOCK_READY`. */
|
|
2
|
-
export declare const VERSION = "0.20.
|
|
2
|
+
export declare const VERSION = "0.20.2";
|
package/package.json
CHANGED