zeus-api-types 1.0.86 → 1.0.88
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/game-state.d.ts +14 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/game-state.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ export interface Session {
|
|
|
179
179
|
narrative_momentum?: string;
|
|
180
180
|
presentationCache?: PresentationCache;
|
|
181
181
|
prologue?: string;
|
|
182
|
+
semanticQueryAnswers?: Record<string, MetadataCustomDataShapeValue>;
|
|
182
183
|
}
|
|
183
184
|
export interface World extends WorldReduced {
|
|
184
185
|
events: WorldEvents;
|
|
@@ -217,10 +218,20 @@ export interface MetadataVisibilityCondition {
|
|
|
217
218
|
export type MetadataVisibilityConditionEntry = MetadataVisibilityCondition | MetadataVisibilityOperatorValue;
|
|
218
219
|
export type MetadataVisibilityConditions = Partial<Record<MetadataVisibilityTargetPath, MetadataVisibilityConditionEntry>>;
|
|
219
220
|
export type MetadataCustomDataShapeValue = string | number | boolean;
|
|
221
|
+
export type SemanticQueryScalarType = 'boolean' | 'number' | 'string';
|
|
222
|
+
export type SemanticQueryComparisonOperator = '==' | '!=' | '>' | '>=' | '<' | '<=';
|
|
223
|
+
export interface SemanticQueryConfig {
|
|
224
|
+
id: string;
|
|
225
|
+
question: string;
|
|
226
|
+
type: SemanticQueryScalarType;
|
|
227
|
+
operator: SemanticQueryComparisonOperator;
|
|
228
|
+
expectedValue: MetadataCustomDataShapeValue;
|
|
229
|
+
}
|
|
220
230
|
export interface MetadataCustomDataShapeEntry {
|
|
221
231
|
promptIncludeMask?: number;
|
|
222
232
|
visibilityConditions?: MetadataVisibilityConditions;
|
|
223
|
-
|
|
233
|
+
semanticQuery?: SemanticQueryConfig;
|
|
234
|
+
[key: string]: MetadataCustomDataShapeValue | MetadataVisibilityConditions | SemanticQueryConfig | undefined;
|
|
224
235
|
}
|
|
225
236
|
export type MetadataCustomDataShape = Record<string, MetadataCustomDataShapeEntry>;
|
|
226
237
|
/**
|
|
@@ -325,4 +336,6 @@ export interface GameMetadata {
|
|
|
325
336
|
lastModified: string;
|
|
326
337
|
/** File size in bytes (of game.json) */
|
|
327
338
|
sizeBytes: number;
|
|
339
|
+
/** Optional flag to indicate if the game has reached an end state (e.g., after act 4 or if player died) */
|
|
340
|
+
isGameOver?: boolean;
|
|
328
341
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export type { AIMetadata, AIOperationTokens, AIOperationType } from './ai';
|
|
|
4
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, 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';
|
|
7
|
+
export type { BaseImmutableState, DialogContext, DialogMessage, DialogMessageSegment, GameMetadata, GameState, GameStateReduced, GenreImmutableState, HistoryEntry, ImmutableState, Location, Metadata, MetadataCustomDataShape, MetadataCustomDataShapeEntry, MetadataCustomDataShapeValue, MetadataVisibilityCondition, MetadataVisibilityConditionEntry, MetadataVisibilityConditions, MetadataVisibilityOperatorValue, MetadataVisibilityTargetPath, SemanticQueryComparisonOperator, SemanticQueryConfig, SemanticQueryScalarType, 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';
|