@civitai/app-sdk 0.45.0 → 0.47.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/README.md CHANGED
@@ -16,7 +16,7 @@ pnpm add @civitai/app-sdk
16
16
  |---|---|
17
17
  | `oauth/*` — `generatePkce`, `buildAuthorizeUrl`, `exchangeCode`, `refreshToken`, `revokeToken`, `fetchMe` | The Civitai OAuth flow (Authorization Code + PKCE S256), as a set of stateless functions you call from your server-side handlers. |
18
18
  | `scopes/*` — `TokenScope`, `TokenScopePresets`, `bitmaskFromScopes`, `scopesFromBitmask`, `hasScope`, `getScopeLabel` | Civitai scopes are stored as bitmasks. These helpers let you compose scope sets from named flags rather than magic numbers. |
19
- | `cookies/*` — `sealCookie`, `unsealCookie`, `buildSetCookieHeader`, `readCookie` | AES-256-CTR encrypted cookie crypto. Use to seal a session blob (refresh token, expiry, scope) into an `httpOnly` cookie with zero external session store. |
19
+ | `cookies/*` — `sealCookie`, `unsealCookie`, `buildSetCookieHeader`, `readCookie` | AES-256-GCM authenticated cookie crypto. Use to seal a session blob (refresh token, expiry, scope) into an `httpOnly` cookie with zero external session store. |
20
20
  | `orchestrator/*` — `createOrchestratorClient`, `estimateWorkflow`, `submitWorkflow`, `getWorkflow`, `pollWorkflow`, `buildTextToImageBody`, `buildImageGenBody`, `buildWorkflowBody`, `WORKFLOW_STEP_TYPES`, `IMAGE_GEN_ENGINES`, `isTerminal`, `extractImageUrls`, `OrchestratorError`, `WorkflowSnapshot`, `GenerateInput`, `ImageGenInput`, `WorkflowStepType`, `ImageGenEngine`, `DEFAULT_MODEL_AIR` | Orchestrator workflow glue — types, body builders, raw HTTP, and long-poll helper. Client + server safe (fetch-only). `estimateWorkflow` calls `?whatif=true` to preview Buzz cost without spending. `pollWorkflow` long-polls to terminal status. `WORKFLOW_STEP_TYPES` is the catalog of every step `$type` the orchestrator accepts. |
21
21
  | `orchestrator/steps` — `WorkflowStepTemplates`, `WorkflowStepTemplateFor`, `WorkflowStepInputFor`, `AnyWorkflowStepTemplate`, `TypedWorkflowTemplate` | **Type-only** subpath (0 runtime bytes) keying the orchestrator's generated workflow-step shapes from `@civitai/client` by wire `$type`, so apps compose real step bodies against types that track the spec instead of hand-maintained copies. Requires the optional peer `@civitai/client@beta`. Type surface only — it grants no submit permission; see "Typed step shapes" below. |
22
22
  | `blocks/*` — `defineBlock`, `BlockManifestError`, `BLOCK_SCOPES`, `BLOCK_SCOPE_PATTERN`, `isMessage`, types (`BlockManifestV1`, `BlockContext`, `BlockToken`, `BlockSettings`, `ViewerInfo`, `ThemeInfo`, `BlockWorkflowSnapshot`, `BlockInitPayload`, `ParentToBlockMessage`, `BlockToParentMessage`, …) | Framework-agnostic contract for [Civitai Apps](https://github.com/civitai/civitai-app-starters/blob/main/docs/build-your-first-app-block.md). `defineBlock(config)` validates a `BlockManifestV1` at startup so authoring mistakes surface in `pnpm dev` instead of at `civitai app validate`/submit. Ships a byte-identical copy of the server-published canonical JSON Schema (draft 2020-12, https://civitai.com/schemas/app-block/v1.json) at the `./schemas/app-block/v1.json` subpath for offline validation; a CI drift-check keeps it in sync. Runtime-agnostic — no React or DOM types. Hooks and the iframe transport live in a separate package. |
@@ -89,7 +89,7 @@ interface BlockInitPayload {
89
89
  token: WrappedToken; // { raw, scopes[], expiresAt (ISO), buzzBudget? }
90
90
  context: BlockContext; // { slotId, … } — narrow to ModelSlotContext
91
91
  settings: BlockSettings; // { publisherSettings, userSettings }
92
- viewer: ViewerInfo | null; // null = anonymous
92
+ viewer: ViewerInfo | null; // null = anonymous — gate with isSignedIn(viewer)
93
93
  theme: 'light' | 'dark';
94
94
  renderMode: 'iframe' | 'inline';
95
95
  }
@@ -106,6 +106,8 @@ interface BlockInitPayload {
106
106
  | `defineBlock({ manifest })` | Validates a `BlockManifestV1` (subset of the server checks) and returns it. Call at module scope so authoring mistakes throw before mount. Throws `BlockManifestError` (has a `.field` dot-path). |
107
107
  | `BLOCK_SCOPES` / `BLOCK_SCOPE_PATTERN` | The 15 known block scope strings (the authoritative enum `defineBlock` validates against) + the `domain:verb:target` format-helper regex. A scope is valid only if it's a member of `BLOCK_SCOPES`, matching the [canonical schema](https://civitai.com/schemas/app-block/v1.json). |
108
108
  | `isMessage(data, type)` | Discriminator-only message narrowing (see above). |
109
+ | `isModelSlotContext(ctx)` / `isPageSlotContext(ctx)` | Runtime narrowing for the `slotId`-discriminated `BlockContext` union. Real checks on a value that crossed a `postMessage` boundary — they verify every field they assert, not just `slotId`. |
110
+ | `isSignedIn(viewer)` | **The sign-in gate.** `isSignedIn(useBlockContext().viewer)` — do not open-code it as `viewer !== null` or `viewer?.signedIn === true`. Which of those is correct has already changed once with the host contract, and this is the one place it is decided. It reads neither `viewer.id` nor `viewer.username` (both `@deprecated`), so nothing written through it changes when those are removed. Need the identity rather than the presence? `useViewer()` — scope-gated and audited per call. |
109
111
  | types | `BlockManifestV1`, `ManifestSettings` (+ field types), `BlockContext`, `ModelSlotContext`, `BlockCheckpointInfo`, `ShowcaseImage`, `BlockToken`, `WrappedToken`, `BlockSettings`, `ViewerInfo`, `Theme`, `WorkflowBody`, `BlockTextToImageParams`, `WorkflowBodyCustomComfy` (+ its two arms `WorkflowBodyCustomComfyRecipe` / `WorkflowBodyCustomComfyInline`, and `InlineComfyNode`), `WorkflowBodyStep` / `WorkflowBodyPassThroughStep` (the two arms of `kind: 'step'`), `BlockWorkflowSnapshot`, `WorkflowStatus`, `BlockInitPayload`, `ParentToBlockMessage`, `BlockToParentMessage`. |
110
112
 
111
113
  `WorkflowBody`'s `customComfy` member is a discriminated union on `mode`, mirroring
@@ -295,6 +297,7 @@ const tokens = await exchangeCode({
295
297
  redirectUri: 'https://your-app.com/api/auth/callback/civitai',
296
298
  code: codeFromQuery,
297
299
  codeVerifier: verifierFromSealedCookie,
300
+ fallbackScope: scope, // used if the response's `scope` is absent or unreadable
298
301
  });
299
302
 
300
303
  // 3. Store tokens in an encrypted httpOnly cookie
@@ -316,6 +319,46 @@ console.log(`Hi ${me.username}`);
316
319
  > explicit `baseUrl` to each call only when targeting a local / self-hosted
317
320
  > instance (e.g. a dev auth hub vs a dev main app).
318
321
 
322
+ > **`fallbackScope`, and what happens to a `scope` we cannot read.** Civitai's
323
+ > token endpoint returns `scope` as a decimal bitmask in a JSON *string*
324
+ > (`"scope": "114689"` — see the
325
+ > [endpoint reference](https://developer.civitai.com/site/oauth/endpoints)),
326
+ > matching the decimal `scope` `buildAuthorizeUrl` puts on the authorize URL,
327
+ > and that is what `exchangeCode` / `refreshToken` read. Anything that is not a
328
+ > whole number in `[0, 2**31-1]` is **not** used: `Number()` of
329
+ > [RFC 6749 §5.1](https://datatracker.ietf.org/doc/html/rfc6749#section-5.1)'s
330
+ > space-delimited form is `NaN`, and `NaN & anything` is `0`, so `hasScope()`
331
+ > would answer `false` for every scope and tell a user who just consented that
332
+ > they granted nothing. A wrong *type* is rejected on the same grounds:
333
+ > `Number(['65537'])` is `65537` and `Number(true)` is `1` (i.e.
334
+ > `TokenScope.UserRead`), so an un-guarded coercion would invent a
335
+ > valid-looking grant rather than fail. Such a value is replaced by
336
+ > `fallbackScope` and a warning naming the value received — not an exception,
337
+ > which on the token path would turn a degraded-but-working session into a hard
338
+ > login failure.
339
+ >
340
+ > Pass `fallbackScope: REQUESTED_SCOPES` on exchange and
341
+ > `fallbackScope: tokens.scope` on refresh — without it, either case resolves to
342
+ > `0`, and a caller that persists the whole refreshed token blob would lock the
343
+ > user out of features their token still grants. `fallbackScope` must itself be
344
+ > a whole number in `[0, 2**31-1]`; `NaN` (what `Number(stored.scope)` gives you
345
+ > on a half-populated store — and `??` does not catch it), a negative, a
346
+ > fraction or an over-ceiling value is **discarded in favour of `0`** with its
347
+ > own warning, rather than being handed back as the scope.
348
+ >
349
+ > **The two fallback paths are not equally sound.** An **omitted** `scope` is
350
+ > not a fault at all: RFC 6749 §5.1/§6 make it optional *precisely when the
351
+ > grant matches the request*, so the requested scope is the granted scope and
352
+ > `fallbackScope` is exactly right — that path is silent. A **present but
353
+ > unreadable** `scope` carries no such guarantee: the server is describing the
354
+ > grant in terms this SDK cannot read, and it may be a *reduced* grant, so
355
+ > falling back to the requested scope can **over-state** what the user granted.
356
+ > All four starters render `scopesFromBitmask(tokens.scope)` to the user as
357
+ > "Granted scopes", so the over-statement is user-visible. It is a deliberate
358
+ > trade (`0` and a thrown error are both worse here), which is why this path
359
+ > always warns — if you gate anything security-relevant on `tokens.scope`,
360
+ > treat that warning as "re-authenticate", not as noise.
361
+
319
362
  ```ts
320
363
 
321
364
  // 5. Estimate cost, then submit
@@ -0,0 +1,113 @@
1
+ /**
2
+ * The App Storage ceilings the host enforces — **the only RUNTIME or
3
+ * DOCUMENTATION site in this repository that spells these numbers**.
4
+ *
5
+ * Every doc site, the mock host, the live dev host and the starter harnesses
6
+ * reference these constants. That is the point of the module: seven
7
+ * hand-copied literals is how the old figures came to agree with each other
8
+ * and disagree with the host by 25x on bytes and 1000x on rows, with nothing
9
+ * in any build, test or type-check able to notice.
10
+ *
11
+ * 🔴 **"Only site" is a claim about what is ENFORCED, and the enforcement is
12
+ * much narrower than the repo.** `tests/guards/app-storage-quota-literals.test.mjs`
13
+ * bans the OLD figures, and pins the derivation at each runtime site, over
14
+ * exactly this surface:
15
+ *
16
+ * - this file and `messages.ts`, here in `src/blocks/`;
17
+ * - `useAppStorage.ts`, `internal/mockHost.ts` and `internal/liveHost.ts` in
18
+ * `packages/civitai-blocks-react` — NAMED FILES, not the package: the
19
+ * banned numbers are the TRUE ceilings of neighbouring features there
20
+ * (the shared-storage app-wide quota, the iframe frame cap, Buzz figures),
21
+ * and a value ban over the package failed the build for saying so;
22
+ * - all of `starters/examples/kv-storage`;
23
+ * - and, in `packages/civitai-blocks-react/README.md`,
24
+ * `packages/civitai-app-sdk/README.md` and `starters/examples/README.md`,
25
+ * ONLY the App-Storage REGION — sections whose heading names App Storage,
26
+ * plus lines that name it themselves. `### useSharedStorage()` in the same
27
+ * file is not read.
28
+ *
29
+ * It does NOT scan, and the rule does not apply to: the guard itself (it spells
30
+ * every figure, as test data), `CHANGELOG.md` and `.changeset/*.md` (history,
31
+ * which must not be rewritten to satisfy a guard), `scripts/`, `tests/`,
32
+ * `claudedocs/`, the root README, other sections of the READMEs above, or any
33
+ * other file in any package. If you are re-deriving after a host move, do not
34
+ * assume those paths are empty — grep them.
35
+ *
36
+ * ## Provenance — measured, not assumed
37
+ *
38
+ * Read from `civitai/civitai` `main` on **2026-09-19** via `gh api` (not a
39
+ * local checkout, which can lag), file
40
+ * `src/server/routers/apps.router.ts`, blob `654f2d6`:
41
+ *
42
+ * ```ts
43
+ * const PER_VALUE_BYTE_CAP = 64 * 1024; // :172
44
+ * const USER_QUOTA_BYTES = 2 * 1024 * 1024; // :204
45
+ * const USER_ROW_LIMIT = 1_000; // :205
46
+ * ```
47
+ *
48
+ * and the `getQuota` procedure returns `limitBytes: USER_QUOTA_BYTES,
49
+ * limitRows: USER_ROW_LIMIT` — so these are exactly the numbers a block reads
50
+ * back from {@link https://github.com/civitai/civitai-app-starters | `useAppStorage().getQuota()`}.
51
+ *
52
+ * Re-derive with:
53
+ *
54
+ * ```sh
55
+ * gh api repos/civitai/civitai/contents/src/server/routers/apps.router.ts \
56
+ * --jq '.content' | base64 -d | grep -n 'USER_QUOTA_BYTES\|USER_ROW_LIMIT\|PER_VALUE_BYTE_CAP'
57
+ * ```
58
+ *
59
+ * 🔴 **DO NOT re-derive the numbers from this comment** — re-read the host.
60
+ * The per-user clamp was sized against a measured distribution (the host's own
61
+ * comment records: 2026-09-09, largest observed per-user footprint 0.65 MiB
62
+ * across 49 rows, `2 MiB` chosen for ~3.1x headroom) and is expected to move
63
+ * again when that distribution does.
64
+ *
65
+ * ## Which scope each number describes
66
+ *
67
+ * 🔴 **THE NAMESPACE AND THE BUDGET HAVE DIFFERENT SCOPES, and the docs used
68
+ * to quote one while naming the other.**
69
+ *
70
+ * - **Namespace** — rows are keyed `(block_instance_id, user_id, key)`. A key
71
+ * written by one block instance is invisible to another. "Per (block
72
+ * instance, viewer)" is correct, and unchanged.
73
+ * - **Budget** — {@link APP_STORAGE_MAX_BYTES} and
74
+ * {@link APP_STORAGE_MAX_ROWS} are enforced per **(app, viewer)**: the host
75
+ * counter is keyed `(app_block_id, user_id)`, so every block instance of the
76
+ * same app draws on ONE budget for that viewer. An app with three instances
77
+ * on a viewer's page shares 1,000 rows between them, not 3,000.
78
+ *
79
+ * A far larger app-wide umbrella also exists above both. It is deliberately
80
+ * NOT exported and its value is deliberately not written here: nothing reports
81
+ * an app's usage against it, so no block can render a meaningful "x of y" for
82
+ * it, and a constant nobody can act on is an invitation to build a UI that
83
+ * lies. The per-viewer clamp below is what a block will actually hit — it is
84
+ * orders of magnitude tighter.
85
+ */
86
+ /**
87
+ * Largest single value one `set()` may send, in **wire** bytes
88
+ * (`JSON.stringify(value)` measured as UTF-8).
89
+ *
90
+ * 🔴 This bounds what one call SENDS, not what it STORES. The host checks it
91
+ * in the wire unit while the byte budget below is enforced in the stored unit,
92
+ * and they diverge: the host records that the largest value this cap admits
93
+ * (65,535 wire bytes) stores 2,911,582 bytes — 44x, and on its own past
94
+ * {@link APP_STORAGE_MAX_BYTES}. So passing this check is not evidence the
95
+ * write will land.
96
+ */
97
+ export declare const APP_STORAGE_MAX_VALUE_BYTES: number;
98
+ /**
99
+ * Total stored bytes one viewer may hold across **all instances of one app**.
100
+ *
101
+ * This is the value `getQuota().limitBytes` reports.
102
+ */
103
+ export declare const APP_STORAGE_MAX_BYTES: number;
104
+ /**
105
+ * Total rows one viewer may hold across **all instances of one app**.
106
+ *
107
+ * This is the value `getQuota().limitRows` reports. It is the ceiling most
108
+ * likely to surprise: a block caching one small row per item a viewer looks at
109
+ * reaches it after a thousand items while using ~0.3 MB — well under
110
+ * {@link APP_STORAGE_MAX_BYTES} — so a byte-only estimate will not predict it.
111
+ */
112
+ export declare const APP_STORAGE_MAX_ROWS = 1000;
113
+ //# sourceMappingURL=appStorageLimits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appStorageLimits.d.ts","sourceRoot":"","sources":["../../src/blocks/appStorageLimits.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B,QAAY,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,QAAkB,CAAC;AAErD;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,OAAQ,CAAC"}
@@ -0,0 +1,113 @@
1
+ /**
2
+ * The App Storage ceilings the host enforces — **the only RUNTIME or
3
+ * DOCUMENTATION site in this repository that spells these numbers**.
4
+ *
5
+ * Every doc site, the mock host, the live dev host and the starter harnesses
6
+ * reference these constants. That is the point of the module: seven
7
+ * hand-copied literals is how the old figures came to agree with each other
8
+ * and disagree with the host by 25x on bytes and 1000x on rows, with nothing
9
+ * in any build, test or type-check able to notice.
10
+ *
11
+ * 🔴 **"Only site" is a claim about what is ENFORCED, and the enforcement is
12
+ * much narrower than the repo.** `tests/guards/app-storage-quota-literals.test.mjs`
13
+ * bans the OLD figures, and pins the derivation at each runtime site, over
14
+ * exactly this surface:
15
+ *
16
+ * - this file and `messages.ts`, here in `src/blocks/`;
17
+ * - `useAppStorage.ts`, `internal/mockHost.ts` and `internal/liveHost.ts` in
18
+ * `packages/civitai-blocks-react` — NAMED FILES, not the package: the
19
+ * banned numbers are the TRUE ceilings of neighbouring features there
20
+ * (the shared-storage app-wide quota, the iframe frame cap, Buzz figures),
21
+ * and a value ban over the package failed the build for saying so;
22
+ * - all of `starters/examples/kv-storage`;
23
+ * - and, in `packages/civitai-blocks-react/README.md`,
24
+ * `packages/civitai-app-sdk/README.md` and `starters/examples/README.md`,
25
+ * ONLY the App-Storage REGION — sections whose heading names App Storage,
26
+ * plus lines that name it themselves. `### useSharedStorage()` in the same
27
+ * file is not read.
28
+ *
29
+ * It does NOT scan, and the rule does not apply to: the guard itself (it spells
30
+ * every figure, as test data), `CHANGELOG.md` and `.changeset/*.md` (history,
31
+ * which must not be rewritten to satisfy a guard), `scripts/`, `tests/`,
32
+ * `claudedocs/`, the root README, other sections of the READMEs above, or any
33
+ * other file in any package. If you are re-deriving after a host move, do not
34
+ * assume those paths are empty — grep them.
35
+ *
36
+ * ## Provenance — measured, not assumed
37
+ *
38
+ * Read from `civitai/civitai` `main` on **2026-09-19** via `gh api` (not a
39
+ * local checkout, which can lag), file
40
+ * `src/server/routers/apps.router.ts`, blob `654f2d6`:
41
+ *
42
+ * ```ts
43
+ * const PER_VALUE_BYTE_CAP = 64 * 1024; // :172
44
+ * const USER_QUOTA_BYTES = 2 * 1024 * 1024; // :204
45
+ * const USER_ROW_LIMIT = 1_000; // :205
46
+ * ```
47
+ *
48
+ * and the `getQuota` procedure returns `limitBytes: USER_QUOTA_BYTES,
49
+ * limitRows: USER_ROW_LIMIT` — so these are exactly the numbers a block reads
50
+ * back from {@link https://github.com/civitai/civitai-app-starters | `useAppStorage().getQuota()`}.
51
+ *
52
+ * Re-derive with:
53
+ *
54
+ * ```sh
55
+ * gh api repos/civitai/civitai/contents/src/server/routers/apps.router.ts \
56
+ * --jq '.content' | base64 -d | grep -n 'USER_QUOTA_BYTES\|USER_ROW_LIMIT\|PER_VALUE_BYTE_CAP'
57
+ * ```
58
+ *
59
+ * 🔴 **DO NOT re-derive the numbers from this comment** — re-read the host.
60
+ * The per-user clamp was sized against a measured distribution (the host's own
61
+ * comment records: 2026-09-09, largest observed per-user footprint 0.65 MiB
62
+ * across 49 rows, `2 MiB` chosen for ~3.1x headroom) and is expected to move
63
+ * again when that distribution does.
64
+ *
65
+ * ## Which scope each number describes
66
+ *
67
+ * 🔴 **THE NAMESPACE AND THE BUDGET HAVE DIFFERENT SCOPES, and the docs used
68
+ * to quote one while naming the other.**
69
+ *
70
+ * - **Namespace** — rows are keyed `(block_instance_id, user_id, key)`. A key
71
+ * written by one block instance is invisible to another. "Per (block
72
+ * instance, viewer)" is correct, and unchanged.
73
+ * - **Budget** — {@link APP_STORAGE_MAX_BYTES} and
74
+ * {@link APP_STORAGE_MAX_ROWS} are enforced per **(app, viewer)**: the host
75
+ * counter is keyed `(app_block_id, user_id)`, so every block instance of the
76
+ * same app draws on ONE budget for that viewer. An app with three instances
77
+ * on a viewer's page shares 1,000 rows between them, not 3,000.
78
+ *
79
+ * A far larger app-wide umbrella also exists above both. It is deliberately
80
+ * NOT exported and its value is deliberately not written here: nothing reports
81
+ * an app's usage against it, so no block can render a meaningful "x of y" for
82
+ * it, and a constant nobody can act on is an invitation to build a UI that
83
+ * lies. The per-viewer clamp below is what a block will actually hit — it is
84
+ * orders of magnitude tighter.
85
+ */
86
+ /**
87
+ * Largest single value one `set()` may send, in **wire** bytes
88
+ * (`JSON.stringify(value)` measured as UTF-8).
89
+ *
90
+ * 🔴 This bounds what one call SENDS, not what it STORES. The host checks it
91
+ * in the wire unit while the byte budget below is enforced in the stored unit,
92
+ * and they diverge: the host records that the largest value this cap admits
93
+ * (65,535 wire bytes) stores 2,911,582 bytes — 44x, and on its own past
94
+ * {@link APP_STORAGE_MAX_BYTES}. So passing this check is not evidence the
95
+ * write will land.
96
+ */
97
+ export const APP_STORAGE_MAX_VALUE_BYTES = 64 * 1024;
98
+ /**
99
+ * Total stored bytes one viewer may hold across **all instances of one app**.
100
+ *
101
+ * This is the value `getQuota().limitBytes` reports.
102
+ */
103
+ export const APP_STORAGE_MAX_BYTES = 2 * 1024 * 1024;
104
+ /**
105
+ * Total rows one viewer may hold across **all instances of one app**.
106
+ *
107
+ * This is the value `getQuota().limitRows` reports. It is the ceiling most
108
+ * likely to surprise: a block caching one small row per item a viewer looks at
109
+ * reaches it after a thousand items while using ~0.3 MB — well under
110
+ * {@link APP_STORAGE_MAX_BYTES} — so a byte-only estimate will not predict it.
111
+ */
112
+ export const APP_STORAGE_MAX_ROWS = 1_000;
113
+ //# sourceMappingURL=appStorageLimits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appStorageLimits.js","sourceRoot":"","sources":["../../src/blocks/appStorageLimits.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,GAAG,IAAI,CAAC;AAErD;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC"}
@@ -15,6 +15,7 @@ export { BLOCK_SCOPES, BLOCK_SCOPE_PATTERN, BLOCK_CATEGORIES, BLOCK_TAGLINE_MAX_
15
15
  export type { BlockScope, BlockScopeKey, BlockCategory } from './scopes.js';
16
16
  export { BrowsingLevel, SFW_LEVELS, NSFW_LEVELS, isSfwCeiling, isLevelAllowed, effectiveBrowsingCeiling, } from './browsingLevel.js';
17
17
  export type { BrowsingLevelKey, BrowsingLevelBit, ColorDomain } from './browsingLevel.js';
18
+ export { APP_STORAGE_MAX_VALUE_BYTES, APP_STORAGE_MAX_BYTES, APP_STORAGE_MAX_ROWS, } from './appStorageLimits.js';
18
19
  export { BLOCK_INIT_FRAGMENT_MARKER_KEY, BLOCK_INIT_FRAGMENT_VERSION, BLOCK_INIT_FRAGMENT_KEYS, encodeBlockInitFragment, parseBlockInitFragment, stripBlockInitFragment, } from './initFragment.js';
19
20
  export type { BlockInitFragment } from './initFragment.js';
20
21
  export { isMessage, BLOCK_TO_PARENT_MESSAGE_TYPES, OTHER_MESSAGE_TYPE_LABEL, boundBlockToParentMessageType, } from './messages.js';
@@ -25,5 +26,11 @@ export type { BlockInitPayload, BlockToParentMessage, BlockToParentMessageType,
25
26
  * static shape is a claim the guard is what actually checks.
26
27
  */
27
28
  export { isModelSlotContext, isPageSlotContext } from './types.js';
29
+ /**
30
+ * The sign-in gate, spelled once. Blocks, docs and starters call this instead
31
+ * of open-coding `viewer !== null` or `viewer?.signedIn === true`; see its doc
32
+ * in `types.ts` for which of the two it uses and why.
33
+ */
34
+ export { isSignedIn } from './types.js';
28
35
  export type { BlockContext, KnownSlotId, ModelSlotId, PageSlotContext, PageSlotId, UnknownSlotContext, BlockManifest, BlockManifestV1, BlockSettings, BlockToken, ContentRating, ManifestAsset, ManifestBooleanField, ManifestIframe, ManifestNumberField, ManifestPreview, ManifestSettingField, ManifestSettings, ManifestStringField, ManifestTarget, ModelSlotContext, SettingScope, SettingWidget, Theme, ViewerInfo, BlockCheckpointInfo, BlockResourceInfo, BlockResourcePickerType, BlockSourceImage, BlockUploadedImageInfo, BlockGenerationSourceImageInfo, BlockPendingImageInfo, BlockImageScanResult, BlockUploadPurpose, BlockTextToImageParams, BlockWorkflowSnapshot, BuzzAccountType, ShowcaseImage, WorkflowBody, WorkflowBodyTextToImage, WorkflowBodyCustomComfy, WorkflowBodyCustomComfyRecipe, WorkflowBodyCustomComfyInline, InlineComfyNode, WorkflowBodyStep, WorkflowBodyPassThroughStep, WorkflowStatus, BlockBuzzTransaction, BlockBuzzAccount, BlockDailyCompensationResource, BlockViewer, BlockWildcardPack, BlockWildcardPackErrorCode, AppWorkflow, AppWorkflowImage, BlockGatedImage, BlockCollectionFollowErrorCode, BlockCollectionFollowResult, BlockPostSource, BlockCreatePostRequest, BlockCreatePostResult, BlockCreatePostHostError, } from './types.js';
29
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/blocks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACnF,YAAY,EAAE,wBAAwB,EAAE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ACb,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,KAAK,EACL,UAAU,EACV,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,8BAA8B,EAC9B,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,YAAY,EACZ,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,eAAe,EACf,gBAAgB,EAChB,2BAA2B,EAC3B,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,8BAA8B,EAC9B,WAAW,EACX,iBAAiB,EACjB,0BAA0B,EAC1B,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,8BAA8B,EAC9B,2BAA2B,EAC3B,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/blocks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACnF,YAAY,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE1F,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACnE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;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AmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,8BAA8B,EAC9B,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,YAAY,EACZ,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,eAAe,EACf,gBAAgB,EAChB,2BAA2B,EAC3B,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,8BAA8B,EAC9B,WAAW,EACX,iBAAiB,EACjB,0BAA0B,EAC1B,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,8BAA8B,EAC9B,2BAA2B,EAC3B,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,YAAY,CAAC"}
@@ -17,6 +17,7 @@ export { installSafeStorage, createMemoryStorage } from '../safe-storage/index.j
17
17
  export { defineBlock, BlockManifestError } from './defineBlock.js';
18
18
  export { BLOCK_SCOPES, BLOCK_SCOPE_PATTERN, BLOCK_CATEGORIES, BLOCK_TAGLINE_MAX_LENGTH, } from './scopes.js';
19
19
  export { BrowsingLevel, SFW_LEVELS, NSFW_LEVELS, isSfwCeiling, isLevelAllowed, effectiveBrowsingCeiling, } from './browsingLevel.js';
20
+ export { APP_STORAGE_MAX_VALUE_BYTES, APP_STORAGE_MAX_BYTES, APP_STORAGE_MAX_ROWS, } from './appStorageLimits.js';
20
21
  export { BLOCK_INIT_FRAGMENT_MARKER_KEY, BLOCK_INIT_FRAGMENT_VERSION, BLOCK_INIT_FRAGMENT_KEYS, encodeBlockInitFragment, parseBlockInitFragment, stripBlockInitFragment, } from './initFragment.js';
21
22
  export { isMessage, BLOCK_TO_PARENT_MESSAGE_TYPES, OTHER_MESSAGE_TYPE_LABEL, boundBlockToParentMessageType, } from './messages.js';
22
23
  /**
@@ -25,4 +26,10 @@ export { isMessage, BLOCK_TO_PARENT_MESSAGE_TYPES, OTHER_MESSAGE_TYPE_LABEL, bou
25
26
  * static shape is a claim the guard is what actually checks.
26
27
  */
27
28
  export { isModelSlotContext, isPageSlotContext } from './types.js';
29
+ /**
30
+ * The sign-in gate, spelled once. Blocks, docs and starters call this instead
31
+ * of open-coding `viewer !== null` or `viewer?.signedIn === true`; see its doc
32
+ * in `types.ts` for which of the two it uses and why.
33
+ */
34
+ export { isSignedIn } from './types.js';
28
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/blocks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,2EAA2E;AAC3E,+EAA+E;AAC/E,6EAA6E;AAC7E,4EAA4E;AAC5E,8EAA8E;AAC9E,mEAAmE;AACnE,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGnF,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGnE,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,aAAa,EACb,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,EAC3B,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,SAAS,EACT,6BAA6B,EAC7B,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,eAAe,CAAC;AAiBvB;;;;GAIG;AACH,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/blocks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GA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ACvB,IAAa,EACb,IAAO;IAEP,OAAO,CACL,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,MAAM,IAAI,IAAI;QACb,IAA0B,CAAC,IAAI,KAAK,IAAI,CAC1C,CAAC;AACJ,CAAC"}
@@ -444,11 +444,8 @@ export interface BlockSettings {
444
444
  * The signed-in viewer. `null` in `BlockInitPayload.viewer` means anonymous.
445
445
  *
446
446
  * 🔴 DATA-MINIMISATION IN PROGRESS — never read `id`/`username` to answer "is
447
- * someone signed in?". WHICH sign-in gate to write depends on which host you are
448
- * against, and {@link ViewerInfo.signedIn} states the rule in full. Short
449
- * version: gate on `viewer !== null` TODAY (that is what production emits, and
450
- * it means exactly the same thing); move to `viewer?.signedIn === true` once the
451
- * host counterpart ships.
447
+ * someone signed in?". Call {@link isSignedIn} instead; it is the one place the
448
+ * gate is spelled, and its doc states the rule in full.
452
449
  *
453
450
  * `BLOCK_INIT` discloses the viewer's identity to EVERY block unconditionally
454
451
  * on load, before any interaction. Almost every block only needs to know
@@ -491,34 +488,42 @@ export interface ViewerInfo {
491
488
  * so that a block reading it keeps compiling, and keeps meaning the same
492
489
  * thing, after `id`/`username` go away.
493
490
  *
494
- * 🔴 WHICH GATE TO WRITE, AND HOW TO TELL WHICH WORLD YOU ARE IN.
491
+ * 🔴 DO NOT WRITE A GATE ON THIS FIELD — call {@link isSignedIn}. This field
492
+ * is OPTIONAL and unvalidated at the trust boundary; `isSignedIn` answers the
493
+ * same question from the property the boundary does enforce, and its doc
494
+ * carries the three measured reasons.
495
495
  *
496
- * - TODAY, against production: write `viewer !== null`. The field is NOT on
497
- * the wire yet. `signedIn` appears ZERO times under
498
- * `src/components/AppBlocks/` on civitai/civitai `main`, and that repo's
499
- * own contract test (`__tests__/projectBlockInit.test.ts`) pins the
500
- * BLOCK_INIT viewer key set as exactly `['id', 'username']`. The field
501
- * arrives with civitai/civitai#3707, which is OPEN and unmerged. A block
502
- * that gates on `viewer?.signedIn` before that lands reads `undefined` —
503
- * i.e. false — and renders its anonymous branch to every signed-in user.
504
- * This is why the migrated starter and `hello-world` use `viewer !== null`.
505
- * - AFTER #3707 ships: the two gates agree, and `signedIn` becomes the one to
506
- * write. `viewer: null` stays the anonymous case, so the field is only ever
507
- * the literal `true` on a present viewer; #3707 moves the host's pinned key
508
- * set to `['id', 'signedIn', 'username']`.
509
- * - HOW TO TELL, at runtime: `viewer !== null && viewer.signedIn === undefined`
510
- * IS the probe — there is no version handshake. 🔴 Do NOT answer it with the
511
- * dev hosts: `createMockHost` and `createLiveHost` both emit `signedIn`
512
- * deliberately, ahead of the host, so the field is exercisable locally.
513
- * Local presence is not evidence of production presence.
496
+ * The settled facts about the field itself, and where each is checkable:
514
497
  *
515
- * OPTIONAL for exactly that reason — a host that predates #3707 omits it
516
- * entirely, and that must stay assignable.
498
+ * - The host stamps it. civitai/civitai `src/components/AppBlocks/
499
+ * projectBlockInit.ts` exports `withSignedInFlag()`, which returns `null`
500
+ * for an anonymous viewer and `{ id, username, signedIn: true }` otherwise.
501
+ * BOTH host surfaces funnel through it — `IframeHost` (the model slot,
502
+ * which derives its viewer from the slot context) and `PageBlockHost` (the
503
+ * full-page surface, which receives an already-resolved `viewer` prop) —
504
+ * so there is no half-covered fleet.
505
+ * - That repo's own contract test (`__tests__/projectBlockInit.test.ts`) now
506
+ * pins the BLOCK_INIT viewer key set as exactly
507
+ * `['id', 'signedIn', 'username']`, and asserts the value is literally
508
+ * `true` rather than a computed boolean.
509
+ * - It arrived with civitai/civitai#3707 (merged 2026-08-07). Earlier
510
+ * revisions of this doc first told authors to write `viewer !== null`
511
+ * (correct at the time — the field was not yet on the wire) and then told
512
+ * them to write `viewer?.signedIn === true`. Both spellings are now
513
+ * confined to {@link isSignedIn}, which is the answer to "which one?".
514
+ *
515
+ * OPTIONAL, and it must stay optional: `BlockInitPayload` is also the shape
516
+ * older host code paths and test fixtures construct, so a REQUIRED field here
517
+ * would break them at compile time for no wire benefit. That optionality is
518
+ * also the first reason {@link isSignedIn} does not read it — an omitting host
519
+ * makes `viewer?.signedIn === true` read `false` for a signed-in viewer.
517
520
  *
518
521
  * A malformed value is not rejected at the trust boundary — see the note on
519
522
  * `isValidBlockInitPayload` in `@civitai/blocks-react`: failing the whole init
520
- * over one advisory flag would cost the block every other field. So a block
521
- * that reads it should compare to `true` rather than treat it as a boolean.
523
+ * over one advisory flag would cost the block every other field. So this is
524
+ * the one viewer property nothing validates, which is the second reason
525
+ * {@link isSignedIn} gates on presence instead. If a block reads the field
526
+ * directly anyway, compare it to `true` rather than treating it as a boolean.
522
527
  */
523
528
  signedIn?: true;
524
529
  /**
@@ -535,6 +540,60 @@ export interface ViewerInfo {
535
540
  /** @deprecated Not sent by the platform to third-party iframes (civitai #2521). */
536
541
  status?: 'active' | 'banned' | 'muted';
537
542
  }
543
+ /**
544
+ * THE sign-in gate. Pass `useBlockContext().viewer` (or a `BlockInitPayload`'s
545
+ * `viewer`) and render the signed-in branch when it returns `true`.
546
+ *
547
+ * ```ts
548
+ * import { isSignedIn } from '@civitai/app-sdk/blocks';
549
+ * // …
550
+ * return <p>{isSignedIn(viewer) ? 'signed in' : 'anonymous'}</p>;
551
+ * ```
552
+ *
553
+ * It exists so that "is someone signed in?" is spelled ONCE, here, instead of
554
+ * being open-coded in every block, every doc snippet and every `tiged`-copied
555
+ * starter. If the wire contract ever changes, this body is the only thing that
556
+ * has to change with it.
557
+ *
558
+ * 🔴 IT DOES NOT READ {@link ViewerInfo.signedIn}, AND THAT IS THE POINT.
559
+ * `viewer?.signedIn === true` looks like the more precise gate; it is the more
560
+ * FRAGILE one, for three reasons that are checkable rather than stylistic:
561
+ *
562
+ * 1. `signedIn` is OPTIONAL (`signedIn?: true`) and must stay optional — a
563
+ * host that predates it omits the field entirely. `viewer?.signedIn === true`
564
+ * then reads `false` for a viewer who is genuinely signed in. Presence does
565
+ * not have that failure mode: `viewer: null` is the ONLY anonymous value on
566
+ * the wire, from every host version.
567
+ * 2. PRESENCE IS WHAT THE TRUST BOUNDARY ACTUALLY ENFORCES. `@civitai/blocks-
568
+ * react`'s `isValidBlockInitPayload` pins `viewer` as object-or-null (that
569
+ * shape is a compatibility floor compiled into every already-deployed block
570
+ * bundle) and — in the same guard, deliberately — does NOT reject a
571
+ * malformed `signedIn`, because failing the whole init over one advisory
572
+ * flag would cost the block its token, context and settings too. So a gate
573
+ * on `signedIn` is a gate on the one viewer property nothing validates,
574
+ * while a gate on presence is a gate on the one property everything does.
575
+ * 3. THE NAMED FUTURE HAZARD LANDS ON `signedIn`, NOT ON PRESENCE. That same
576
+ * guard's comment names the case it refuses to brick for: a host writing
577
+ * `signedIn: !!user`. Under it, `viewer?.signedIn === true` shows a sign-in
578
+ * CTA to someone already signed in; presence still answers correctly.
579
+ *
580
+ * The stated reason to prefer `signedIn` — that it outlives the `@deprecated`
581
+ * `id`/`username` — is delivered here in full: this predicate reads NEITHER
582
+ * field, so nothing a block writes through it has to change when they are
583
+ * removed. That was always the real requirement; reading `signedIn` was one way
584
+ * to meet it, and the weaker one.
585
+ *
586
+ * `signedIn` remains on `ViewerInfo` and is still sent — it is the explicit,
587
+ * self-describing wire signal, and it is what this function would switch to if
588
+ * presence ever stopped meaning sign-in. Today it is redundant with presence by
589
+ * construction: the host's `withSignedInFlag()` returns `null` for an anonymous
590
+ * viewer and stamps the literal `true` on every present one, so there is no
591
+ * value of the pair that the two spellings disagree about.
592
+ *
593
+ * Accepts `undefined` as well as `null` so it is safe on a pre-`BLOCK_INIT`
594
+ * snapshot and on a hand-built payload whose `viewer` key is simply absent.
595
+ */
596
+ export declare function isSignedIn(viewer: ViewerInfo | null | undefined): boolean;
538
597
  /**
539
598
  * Host-page color scheme. v2 will add a sibling `themeCssVars` field on
540
599
  * `BlockInitPayload` for design-token sharing; v1 ships the string only.