zeus-api-types 1.0.84 → 1.0.86
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/deck.d.ts +2 -20
- package/dist/game-state.d.ts +8 -5
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/deck.d.ts
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
import type { GameState } from "./game-state";
|
|
2
|
-
export interface StoryArc {
|
|
3
|
-
id?: string;
|
|
4
|
-
theme?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
narrative_hooks?: string[];
|
|
8
|
-
atmosphere_modifiers?: Record<string, number>;
|
|
9
|
-
/**
|
|
10
|
-
* Arc pattern representing emotional trajectory
|
|
11
|
-
* 11 values (0-100) at 0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100% progress
|
|
12
|
-
*/
|
|
13
|
-
arc_pattern?: number[];
|
|
14
|
-
/**
|
|
15
|
-
* Tone pattern representing emotional tone trajectory throughout the story
|
|
16
|
-
* 11 tone values in compact notation at progress intervals
|
|
17
|
-
*/
|
|
18
|
-
tone_pattern?: string[];
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
}
|
|
1
|
+
import type { GameState, MetadataCustomDataShape } from "./game-state";
|
|
21
2
|
/**
|
|
22
3
|
* Base card interface - shared properties across all card types
|
|
23
4
|
*/
|
|
@@ -27,6 +8,7 @@ export interface BaseDeckCard {
|
|
|
27
8
|
title?: string;
|
|
28
9
|
description?: string;
|
|
29
10
|
emoji?: string;
|
|
11
|
+
customDataShape?: MetadataCustomDataShape;
|
|
30
12
|
[key: string]: unknown;
|
|
31
13
|
}
|
|
32
14
|
/**
|
package/dist/game-state.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToneCompact } from "tonelib";
|
|
2
2
|
import type { AIMetadata } from "./ai";
|
|
3
|
-
import type { NarrativeStyleCard,
|
|
3
|
+
import type { NarrativeStyleCard, StoryArcCard } from "./deck";
|
|
4
4
|
import type { WorldEvents } from "./events";
|
|
5
5
|
import { UserMetadata } from "./user-preferences";
|
|
6
6
|
/**
|
|
@@ -136,9 +136,12 @@ export interface PresentationChoiceMeta {
|
|
|
136
136
|
tone?: ToneCompact;
|
|
137
137
|
[key: string]: unknown;
|
|
138
138
|
}
|
|
139
|
+
export interface DialogMessageSegment {
|
|
140
|
+
speakerId: string;
|
|
141
|
+
text: string;
|
|
142
|
+
}
|
|
139
143
|
export interface DialogMessage {
|
|
140
|
-
|
|
141
|
-
message: string;
|
|
144
|
+
segments: DialogMessageSegment[];
|
|
142
145
|
timestamp?: string;
|
|
143
146
|
tone?: string;
|
|
144
147
|
}
|
|
@@ -256,7 +259,7 @@ export interface GameState {
|
|
|
256
259
|
world: World;
|
|
257
260
|
session: Session;
|
|
258
261
|
metadata: Metadata;
|
|
259
|
-
storyArc?:
|
|
262
|
+
storyArc?: StoryArcCard;
|
|
260
263
|
narrativeStyle?: NarrativeStyleCard;
|
|
261
264
|
}
|
|
262
265
|
export interface GameStateReduced {
|
|
@@ -265,7 +268,7 @@ export interface GameStateReduced {
|
|
|
265
268
|
location: string;
|
|
266
269
|
player: Player;
|
|
267
270
|
world: WorldReduced;
|
|
268
|
-
storyArc?:
|
|
271
|
+
storyArc?: StoryArcCard;
|
|
269
272
|
narrativeStyle?: NarrativeStyleCard;
|
|
270
273
|
}
|
|
271
274
|
export interface StateSnapshot {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type { ApiError, ApiErrorResponse } from './errors';
|
|
2
2
|
export type { DoneEventPayload, ErrorEventPayload, MetadataEventPayload, NarrativeChunkEventPayload, NarrativeCompleteEventPayload, NarrativeMetadataEventPayload, NarrativeSSEEventPayload, NarrativeStartEventPayload } from './sse/narrative';
|
|
3
3
|
export type { AIMetadata, AIOperationTokens, AIOperationType } from './ai';
|
|
4
|
-
export type { BaseDeckCard, DeckDefinition, FixtureSet, MultiDeckDefinition, NarrativeStyleCard,
|
|
4
|
+
export type { BaseDeckCard, DeckDefinition, FixtureSet, MultiDeckDefinition, NarrativeStyleCard, StoryArcCard } from './deck';
|
|
5
5
|
export type { BaseEvent, DeterministicEvent, EventHistoryEntry, EventPropagation, ProbabilisticEvent, ScheduledEvent, WorldEvents } from './events';
|
|
6
6
|
export { ALL_METADATA_PROMPT_TARGETS, buildMetadataPromptIncludeMask, computeTimeString, formatTimeHuman, hasMetadataPromptTarget, MetadataPromptTargets } from './game-state';
|
|
7
|
-
export type { BaseImmutableState, DialogContext, DialogMessage, GameMetadata, GameState, GameStateReduced, GenreImmutableState, HistoryEntry, ImmutableState, Location, Metadata, MetadataCustomDataShape, MetadataCustomDataShapeEntry, MetadataCustomDataShapeValue, MetadataVisibilityCondition, MetadataVisibilityConditionEntry, MetadataVisibilityConditions, MetadataVisibilityOperatorValue, MetadataVisibilityTargetPath, MetadataPromptTargetKey, MetadataPromptTargetMask, NPC, NpcExistingOrNewOp, Player, PresentationCache, PresentationChoiceMeta, PromptVariables, Session, StateSnapshot, Tag, TimeState, World, WorldEntity, WorldReduced } from './game-state';
|
|
7
|
+
export type { BaseImmutableState, DialogContext, DialogMessage, DialogMessageSegment, GameMetadata, GameState, GameStateReduced, GenreImmutableState, HistoryEntry, ImmutableState, Location, Metadata, MetadataCustomDataShape, MetadataCustomDataShapeEntry, MetadataCustomDataShapeValue, MetadataVisibilityCondition, MetadataVisibilityConditionEntry, MetadataVisibilityConditions, MetadataVisibilityOperatorValue, MetadataVisibilityTargetPath, MetadataPromptTargetKey, MetadataPromptTargetMask, NPC, NpcExistingOrNewOp, Player, PresentationCache, PresentationChoiceMeta, PromptVariables, Session, StateSnapshot, Tag, TimeState, World, WorldEntity, WorldReduced } from './game-state';
|
|
8
8
|
export type { AIPreferences, MaxAgeRating, ModelEntry, ModelStack, ModelStackPreferences, ModelStackPreset, NarrativeFontPreferences, SoundPreferences, SystemModelPresets, TtsPreferences, UserMetadata, UserPreferences, UserProfilePreferences } from './user-preferences';
|
|
9
9
|
export type { CreatePresetRequest, CreatePresetResponse, DeletePresetResponse, ListPresetsResponse, PaginatedPresetsResponse, PaginationMetadata, PresetIndex, PresetMetadata, UpdatePresetRequest, UpdatePresetResponse } from './preset';
|