@civitai/app-sdk 0.60.0 → 0.61.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.
@@ -966,11 +966,20 @@ export type BlockToParentMessage = {
966
966
  type: 'SAVE_IMAGE';
967
967
  payload: {
968
968
  requestId: string;
969
- /** Own-output URL — origin-allowlisted host-side. Mutually exclusive with `imageId`. */
969
+ /** Own-output URL — origin-allowlisted host-side. Mutually exclusive with `imageId` / `bytes`. */
970
970
  url?: string;
971
- /** Cross-user image id — routed through the gated per-viewer read. Mutually exclusive with `url`. */
971
+ /** Cross-user image id — routed through the gated per-viewer read. Mutually exclusive with `url` / `bytes`. */
972
972
  imageId?: number;
973
- /** Optional download filename (host-sanitized). */
973
+ /**
974
+ * In-tab file bytes — classified by CONTENT host-side, size-capped host-side.
975
+ * Page apps only. Mutually exclusive with `url` / `imageId`.
976
+ */
977
+ bytes?: ArrayBuffer;
978
+ /**
979
+ * Optional download filename (host-sanitized). For `bytes`, a `.json`
980
+ * name selects JSON for text that parses as JSON, and the extension is
981
+ * forced from the classified type.
982
+ */
974
983
  filename?: string;
975
984
  };
976
985
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/app-sdk",
3
- "version": "0.60.0",
3
+ "version": "0.61.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",