zeus-api-types 1.0.74 → 1.0.76
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 +16 -1
- package/dist/game-state.js +1 -0
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/game-state.d.ts
CHANGED
|
@@ -190,16 +190,31 @@ export declare const MetadataPromptTargets: {
|
|
|
190
190
|
readonly gameInit: number;
|
|
191
191
|
readonly choiceMetadata: number;
|
|
192
192
|
readonly dialog: number;
|
|
193
|
+
readonly actTransitionPruning: number;
|
|
193
194
|
};
|
|
194
195
|
export type MetadataPromptTargetKey = keyof typeof MetadataPromptTargets;
|
|
195
196
|
export type MetadataPromptTargetMask = (typeof MetadataPromptTargets)[MetadataPromptTargetKey];
|
|
196
197
|
export declare const ALL_METADATA_PROMPT_TARGETS: number;
|
|
197
198
|
export declare function hasMetadataPromptTarget(mask: number, target: MetadataPromptTargetMask): boolean;
|
|
198
199
|
export declare function buildMetadataPromptIncludeMask(targets: MetadataPromptTargetKey[]): number;
|
|
200
|
+
export type MetadataVisibilityTargetPath = 'location' | `player.${string}` | `world.${string}`;
|
|
201
|
+
export type MetadataVisibilityOperatorValue = string | number | boolean;
|
|
202
|
+
export interface MetadataVisibilityCondition {
|
|
203
|
+
exists?: boolean;
|
|
204
|
+
'=='?: MetadataVisibilityOperatorValue;
|
|
205
|
+
'!='?: MetadataVisibilityOperatorValue;
|
|
206
|
+
'>'?: number;
|
|
207
|
+
'>='?: number;
|
|
208
|
+
'<'?: number;
|
|
209
|
+
'<='?: number;
|
|
210
|
+
}
|
|
211
|
+
export type MetadataVisibilityConditionEntry = MetadataVisibilityCondition | MetadataVisibilityOperatorValue;
|
|
212
|
+
export type MetadataVisibilityConditions = Partial<Record<MetadataVisibilityTargetPath, MetadataVisibilityConditionEntry>>;
|
|
199
213
|
export type MetadataCustomDataShapeValue = string | number | boolean;
|
|
200
214
|
export interface MetadataCustomDataShapeEntry {
|
|
201
215
|
promptIncludeMask?: number;
|
|
202
|
-
|
|
216
|
+
visibilityConditions?: MetadataVisibilityConditions;
|
|
217
|
+
[key: string]: MetadataCustomDataShapeValue | MetadataVisibilityConditions | undefined;
|
|
203
218
|
}
|
|
204
219
|
export type MetadataCustomDataShape = Record<string, MetadataCustomDataShapeEntry>;
|
|
205
220
|
/**
|
package/dist/game-state.js
CHANGED
|
@@ -33,6 +33,7 @@ exports.MetadataPromptTargets = {
|
|
|
33
33
|
gameInit: 1 << 4,
|
|
34
34
|
choiceMetadata: 1 << 5,
|
|
35
35
|
dialog: 1 << 6,
|
|
36
|
+
actTransitionPruning: 1 << 7,
|
|
36
37
|
};
|
|
37
38
|
exports.ALL_METADATA_PROMPT_TARGETS = Object.values(exports.MetadataPromptTargets)
|
|
38
39
|
.reduce((mask, target) => mask | target, 0);
|
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, StoryArc, 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, MetadataPromptTargetKey, MetadataPromptTargetMask, NPC, NpcExistingOrNewOp, Player, PresentationCache, PresentationChoiceMeta, PromptVariables, Session, StateSnapshot, Tag, TimeState, World, WorldEntity, WorldReduced } 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';
|
|
8
8
|
export type { AIPreferences, ModelEntry, ModelStack, ModelStackPreferences, ModelStackPreset, NarrativeFontPreferences, SoundPreferences, SystemModelPresets, UserMetadata, UserPreferences } from './user-preferences';
|
|
9
9
|
export type { CreatePresetRequest, CreatePresetResponse, DeletePresetResponse, ListPresetsResponse, PaginatedPresetsResponse, PaginationMetadata, PresetIndex, PresetMetadata, UpdatePresetRequest, UpdatePresetResponse } from './preset';
|