@civitai/sdk 0.16.0 → 0.17.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/core/transports/host-replies.generated.d.ts +1 -1
- package/dist/core/transports/host-replies.generated.js +5 -2
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.js +1 -0
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/package.json +1 -1
|
@@ -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 = "cd79a91fe4";
|
|
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 cd79a91fe4, 2026-10-17). 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 = "cd79a91fe4";
|
|
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
|
|
@@ -22,6 +22,7 @@ export const HOST_REPLIES = {
|
|
|
22
22
|
"GET_BUZZ_BALANCE": { "reply": "BUZZ_BALANCE_RESULT", "framing": "legacy", "keys": ["balance"] },
|
|
23
23
|
"GET_BUZZ_TRANSACTIONS": { "reply": "BUZZ_TRANSACTIONS_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
24
24
|
"GET_DAILY_COMPENSATION": { "reply": "DAILY_COMPENSATION_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
25
|
+
"GET_ENTITY_REACTIONS": { "reply": "ENTITY_REACTIONS_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
25
26
|
"GET_IMAGES_BY_IDS": { "reply": "IMAGES_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
26
27
|
"GET_VIEWER": { "reply": "VIEWER_RESULT", "framing": "legacy", "keys": ["viewer"] },
|
|
27
28
|
"GET_WILDCARD_PACK": { "reply": "WILDCARD_PACK_RESULT", "framing": "legacy", "keys": ["pack"] },
|
|
@@ -29,6 +30,7 @@ export const HOST_REPLIES = {
|
|
|
29
30
|
"OPEN_CHECKPOINT_PICKER": { "reply": "CHECKPOINT_PICKER_RESULT", "framing": "legacy", "keys": ["selected"] },
|
|
30
31
|
"OPEN_IMAGE_PICKER": { "reply": "IMAGE_PICKER_RESULT", "framing": "legacy", "keys": ["selected", "selectedImages"] },
|
|
31
32
|
"OPEN_IMAGE_UPLOAD": { "reply": "IMAGE_UPLOAD_RESULT", "framing": "legacy", "keys": ["selected"] },
|
|
33
|
+
"OPEN_MEDIA_UPLOAD": { "reply": "MEDIA_UPLOAD_RESULT", "framing": "legacy", "keys": ["selected"] },
|
|
32
34
|
"OPEN_RESOURCE_PICKER": { "reply": "RESOURCE_PICKER_RESULT", "framing": "legacy", "keys": ["selected", "selectedResources"] },
|
|
33
35
|
"POLL_WORKFLOW": { "reply": "WORKFLOW_STATUS", "framing": "legacy", "keys": ["snapshot"] },
|
|
34
36
|
"PREPARE_TRAINING_DATASET": { "reply": "TRAINING_DATASET_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
@@ -39,6 +41,7 @@ export const HOST_REPLIES = {
|
|
|
39
41
|
"RUN_TRAINING": { "reply": "TRAINING_RESULT", "framing": "legacy", "keys": ["snapshot"] },
|
|
40
42
|
"SAVE_IMAGE": { "reply": "SAVE_IMAGE_RESULT", "framing": "legacy", "keys": ["ok"] },
|
|
41
43
|
"SET_COLLECTION_FOLLOW": { "reply": "COLLECTION_FOLLOW_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
44
|
+
"SET_ENTITY_REACTION": { "reply": "ENTITY_REACTION_RESULT", "framing": "legacy", "keys": ["result"] },
|
|
42
45
|
"SET_USER_CHECKPOINT": { "reply": "USER_CHECKPOINT_SET", "framing": "legacy", "keys": ["ok"] },
|
|
43
46
|
"SHARED_APPEND": { "reply": "SHARED_APPEND_RESULT", "framing": "legacy", "keys": ["key"] },
|
|
44
47
|
"SHARED_GET": { "reply": "SHARED_GET_RESULT", "framing": "legacy", "keys": ["item"] },
|
package/dist/session/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Every scope an app can hold, as the site names them. */
|
|
2
|
-
export declare const SCOPES: readonly ['ai:write:budgeted', 'apps:storage', 'apps:storage:publish', 'apps:storage:read', 'apps:storage:shared:read', 'apps:storage:shared:write', 'apps:storage:write', 'apps:store:items:write', 'buzz:read:self', 'collections:read:private', 'collections:read:self', 'collections:write:self', 'goods:purchase:self', 'goods:read:self', 'models:read:self', 'posts:write:self', 'social:tip:self', 'user:read:self'];
|
|
2
|
+
export declare const SCOPES: readonly ['ai:write:budgeted', 'apps:storage', 'apps:storage:publish', 'apps:storage:read', 'apps:storage:shared:read', 'apps:storage:shared:write', 'apps:storage:write', 'apps:store:items:write', 'buzz:read:self', 'collections:read:private', 'collections:read:self', 'collections:write:self', 'goods:purchase:self', 'goods:read:self', 'models:read:self', 'posts:write:self', 'social:react:self', 'social:tip:self', 'user:read:self'];
|
|
3
3
|
export type Scope = (typeof SCOPES)[number];
|
|
4
4
|
export interface TokenOptions {
|
|
5
5
|
/** Skip the held token and get a new one, e.g. after the API refused it. */
|
package/dist/session/index.js
CHANGED
|
@@ -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.
|
|
2
|
+
export declare const VERSION = "0.17.0";
|
package/package.json
CHANGED