@idosgames/core 0.26.3 → 0.26.4

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.
@@ -5295,7 +5295,7 @@ type AIPublicTemplateVariable = { Name?: null | string; Type?: null | string; Re
5295
5295
  type AIPublicSetting = { Key: string; Kind?: null | string; Name?: null | Record<string, string>; Hint?: null | Record<string, string>; Unit?: null | Record<string, string>; Choices?: null | Array<{ Value: string; Name?: null | Record<string, string>; Group?: null | string; [key: string]: unknown; }>; Groups?: null | Array<{ Key: string; Name?: null | Record<string, string>; [key: string]: unknown; }>; Default?: null | string; Min?: null | number; Max?: null | number; Step?: null | number; [key: string]: unknown; };
5296
5296
  type AITemplatePrice = { PriceOptions?: null | PriceOptions; [key: string]: unknown; };
5297
5297
  type AIPublicTemplate = { Id?: null | string; Kind?: null | string; Action?: null | string; IsTrend?: null | boolean; Category?: null | string; Order?: null | number; Name?: null | Record<string, string>; Description?: null | Record<string, string>; Preview?: null | { Url?: null | string; PosterUrl?: null | string; Type?: null | string; [key: string]: unknown; }; Inputs?: null | Array<AIPublicTemplateInput>; Variables?: null | Array<AIPublicTemplateVariable>; Settings?: null | Array<AIPublicSetting>; [key: string]: unknown; };
5298
- type AIPublicFeature = { Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Async?: null | boolean; Limits?: null | LimitSpec; PriceOptions?: null | PriceOptions; Tags?: null | Array<string>; HistoryMessages?: null | number; MaxTokens?: null | number; AllowImages?: null | boolean; MaxInputImages?: null | number; MaxInputImageBytes?: null | number; AllowedImageTypes?: null | Array<string>; MaxImages?: null | number; AllowEdit?: null | boolean; AllowReferenceImage?: null | boolean; MaxPromptChars?: null | number; LockBehavior?: null | boolean; ImageSize?: null | string; VideoSize?: null | string; VideoSeconds?: null | number; Voice?: null | string; AudioFormat?: null | string; MusicFormat?: null | string; ThreeDOperation?: null | string; ThreeDAnimations?: null | Array<string>; Reward?: null | ResourceGrant; PromptVariables?: null | Array<{ Name?: null | string; Type?: null | string; Required?: null | boolean; MaxLength?: null | number; Enum?: null | Array<string>; [key: string]: unknown; }>; AllowFreePrompt?: null | boolean; PlatformTemplateId?: null | string; PlatformTemplate?: null | AIPublicTemplate; FreePerDay?: null | number; FreeLeftToday?: null | number; [key: string]: unknown; };
5298
+ type AIPublicFeature = { Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Async?: null | boolean; Limits?: null | LimitSpec; PriceOptions?: null | PriceOptions; Tags?: null | Array<string>; HistoryMessages?: null | number; MaxTokens?: null | number; AllowImages?: null | boolean; MaxInputImages?: null | number; MaxInputImageBytes?: null | number; AllowedImageTypes?: null | Array<string>; MaxImages?: null | number; AllowEdit?: null | boolean; AllowReferenceImage?: null | boolean; MaxPromptChars?: null | number; LockBehavior?: null | boolean; ImageSize?: null | string; VideoSize?: null | string; VideoSeconds?: null | number; Voice?: null | string; AudioFormat?: null | string; MusicFormat?: null | string; ThreeDOperation?: null | string; ThreeDAnimations?: null | Array<string>; Reward?: null | ResourceGrant; PromptVariables?: null | Array<{ Name?: null | string; Type?: null | string; Required?: null | boolean; MaxLength?: null | number; Enum?: null | Array<string>; [key: string]: unknown; }>; AllowFreePrompt?: null | boolean; PlatformTemplateId?: null | string; PlatformTemplate?: null | AIPublicTemplate; Settings?: null | Array<AIPublicSetting>; FreePerDay?: null | number; FreeLeftToday?: null | number; [key: string]: unknown; };
5299
5299
  /** The title's AI features, returned by `getDefinitions()`. */
5300
5300
  interface AIPublicDefinitions {
5301
5301
  /** Master switch. `false` = every generate request fails. */
@@ -7777,8 +7777,8 @@ interface AIGenerateOptions {
7777
7777
  */
7778
7778
  variables?: Record<string, string>;
7779
7779
  /**
7780
- * Template features only: the generation settings the player picked (`AIPublicTemplate.Settings`, key → value). The
7781
- * price follows them, see {@link AIService.estimateTemplatePrice}. Send the same values when you repeat the call
7780
+ * The generation settings the player picked, key → value: `AIPublicTemplate.Settings` on a template feature,
7781
+ * `AIPublicFeature.Settings` on a feature without one. The price follows them, see {@link AIService.estimateTemplatePrice}. Send the same values when you repeat the call
7782
7782
  * with `creditsConfirmationID`: the confirmed price is for these settings.
7783
7783
  */
7784
7784
  params?: Record<string, string>;
@@ -7873,7 +7873,8 @@ declare class AIService {
7873
7873
  */
7874
7874
  generateFromTemplate(featureKey: string, files?: Record<string, AIInputImage>, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
7875
7875
  /**
7876
- * The price of a template feature for the player's settings: the feature's price options, each scaled by how much
7876
+ * The price of a feature for the player's settings (a template feature, or a feature without a template that has
7877
+ * `Settings`): the feature's price options, each scaled by how much
7877
7878
  * these settings cost against the author's (the markup is kept). Charges nothing; files are not needed. An option
7878
7879
  * that cannot pay for this choice (a store purchase when the choice costs more) is left out.
7879
7880
  */
@@ -5295,7 +5295,7 @@ type AIPublicTemplateVariable = { Name?: null | string; Type?: null | string; Re
5295
5295
  type AIPublicSetting = { Key: string; Kind?: null | string; Name?: null | Record<string, string>; Hint?: null | Record<string, string>; Unit?: null | Record<string, string>; Choices?: null | Array<{ Value: string; Name?: null | Record<string, string>; Group?: null | string; [key: string]: unknown; }>; Groups?: null | Array<{ Key: string; Name?: null | Record<string, string>; [key: string]: unknown; }>; Default?: null | string; Min?: null | number; Max?: null | number; Step?: null | number; [key: string]: unknown; };
5296
5296
  type AITemplatePrice = { PriceOptions?: null | PriceOptions; [key: string]: unknown; };
5297
5297
  type AIPublicTemplate = { Id?: null | string; Kind?: null | string; Action?: null | string; IsTrend?: null | boolean; Category?: null | string; Order?: null | number; Name?: null | Record<string, string>; Description?: null | Record<string, string>; Preview?: null | { Url?: null | string; PosterUrl?: null | string; Type?: null | string; [key: string]: unknown; }; Inputs?: null | Array<AIPublicTemplateInput>; Variables?: null | Array<AIPublicTemplateVariable>; Settings?: null | Array<AIPublicSetting>; [key: string]: unknown; };
5298
- type AIPublicFeature = { Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Async?: null | boolean; Limits?: null | LimitSpec; PriceOptions?: null | PriceOptions; Tags?: null | Array<string>; HistoryMessages?: null | number; MaxTokens?: null | number; AllowImages?: null | boolean; MaxInputImages?: null | number; MaxInputImageBytes?: null | number; AllowedImageTypes?: null | Array<string>; MaxImages?: null | number; AllowEdit?: null | boolean; AllowReferenceImage?: null | boolean; MaxPromptChars?: null | number; LockBehavior?: null | boolean; ImageSize?: null | string; VideoSize?: null | string; VideoSeconds?: null | number; Voice?: null | string; AudioFormat?: null | string; MusicFormat?: null | string; ThreeDOperation?: null | string; ThreeDAnimations?: null | Array<string>; Reward?: null | ResourceGrant; PromptVariables?: null | Array<{ Name?: null | string; Type?: null | string; Required?: null | boolean; MaxLength?: null | number; Enum?: null | Array<string>; [key: string]: unknown; }>; AllowFreePrompt?: null | boolean; PlatformTemplateId?: null | string; PlatformTemplate?: null | AIPublicTemplate; FreePerDay?: null | number; FreeLeftToday?: null | number; [key: string]: unknown; };
5298
+ type AIPublicFeature = { Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Async?: null | boolean; Limits?: null | LimitSpec; PriceOptions?: null | PriceOptions; Tags?: null | Array<string>; HistoryMessages?: null | number; MaxTokens?: null | number; AllowImages?: null | boolean; MaxInputImages?: null | number; MaxInputImageBytes?: null | number; AllowedImageTypes?: null | Array<string>; MaxImages?: null | number; AllowEdit?: null | boolean; AllowReferenceImage?: null | boolean; MaxPromptChars?: null | number; LockBehavior?: null | boolean; ImageSize?: null | string; VideoSize?: null | string; VideoSeconds?: null | number; Voice?: null | string; AudioFormat?: null | string; MusicFormat?: null | string; ThreeDOperation?: null | string; ThreeDAnimations?: null | Array<string>; Reward?: null | ResourceGrant; PromptVariables?: null | Array<{ Name?: null | string; Type?: null | string; Required?: null | boolean; MaxLength?: null | number; Enum?: null | Array<string>; [key: string]: unknown; }>; AllowFreePrompt?: null | boolean; PlatformTemplateId?: null | string; PlatformTemplate?: null | AIPublicTemplate; Settings?: null | Array<AIPublicSetting>; FreePerDay?: null | number; FreeLeftToday?: null | number; [key: string]: unknown; };
5299
5299
  /** The title's AI features, returned by `getDefinitions()`. */
5300
5300
  interface AIPublicDefinitions {
5301
5301
  /** Master switch. `false` = every generate request fails. */
@@ -7777,8 +7777,8 @@ interface AIGenerateOptions {
7777
7777
  */
7778
7778
  variables?: Record<string, string>;
7779
7779
  /**
7780
- * Template features only: the generation settings the player picked (`AIPublicTemplate.Settings`, key → value). The
7781
- * price follows them, see {@link AIService.estimateTemplatePrice}. Send the same values when you repeat the call
7780
+ * The generation settings the player picked, key → value: `AIPublicTemplate.Settings` on a template feature,
7781
+ * `AIPublicFeature.Settings` on a feature without one. The price follows them, see {@link AIService.estimateTemplatePrice}. Send the same values when you repeat the call
7782
7782
  * with `creditsConfirmationID`: the confirmed price is for these settings.
7783
7783
  */
7784
7784
  params?: Record<string, string>;
@@ -7873,7 +7873,8 @@ declare class AIService {
7873
7873
  */
7874
7874
  generateFromTemplate(featureKey: string, files?: Record<string, AIInputImage>, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
7875
7875
  /**
7876
- * The price of a template feature for the player's settings: the feature's price options, each scaled by how much
7876
+ * The price of a feature for the player's settings (a template feature, or a feature without a template that has
7877
+ * `Settings`): the feature's price options, each scaled by how much
7877
7878
  * these settings cost against the author's (the markup is kept). Charges nothing; files are not needed. An option
7878
7879
  * that cannot pay for this choice (a store purchase when the choice costs more) is left out.
7879
7880
  */