@applica-software-guru/persona-sdk 0.1.28 → 0.1.30

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/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export declare interface Agent {
19
19
  twilio?: TwilioConfiguration;
20
20
  languageCode?: LanguageCode;
21
21
  initialMessage?: string;
22
+ initialMessageMode?: "processed" | "static";
22
23
  knowledge?: KnowledgeConfiguration;
23
24
  wakeup?: WakeupConfiguration;
24
25
  telegram?: TelegramConfiguration;
@@ -52,6 +53,7 @@ export declare interface AgentCreateRequest {
52
53
  twilio?: TwilioConfiguration;
53
54
  languageCode?: LanguageCode;
54
55
  initialMessage?: string;
56
+ initialMessageMode?: "processed" | "static";
55
57
  knowledge?: KnowledgeConfiguration;
56
58
  wakeup?: WakeupConfiguration;
57
59
  telegram?: TelegramConfiguration;
@@ -676,13 +678,8 @@ export declare class MissionsApi extends HttpApi {
676
678
  export declare type MissionStatus = 'draft' | 'planned' | 'active' | 'review' | 'paused' | 'completed' | 'failed' | 'cancelled';
677
679
 
678
680
  export declare interface ModelConfiguration {
679
- /**
680
- * litellm-style "<provider>/<model>" string (e.g. "openai/gpt-5"). Bare legacy
681
- * names (e.g. "gpt-5", "accounts/fireworks/models/x", "ollama") are still
682
- * accepted; the provider is derived server-side. The `ModelName` union keeps
683
- * autocomplete for known models while `string` allows any litellm identifier.
684
- */
685
- modelName?: ModelName | (string & {});
681
+ /** litellm-style "<provider>/<model>" string (e.g. "fireworks/accounts/fireworks/models/minimax-m3"). Use the known-models API for the current list. */
682
+ modelName?: string;
686
683
  temperature?: number;
687
684
  reasoningEffort?: ReasoningEffort;
688
685
  /** Maximum number of output tokens to generate. Undefined = provider default. */
@@ -691,6 +688,8 @@ export declare interface ModelConfiguration {
691
688
  apiKey?: string;
692
689
  /** Override the per-provider default base URL when set. */
693
690
  baseUrl?: string;
691
+ /** Passed verbatim as extra_body to the underlying LLM request (e.g. { service_tier: "priority" }). */
692
+ extraBody?: Record<string, unknown>;
694
693
  /** @deprecated use `baseUrl`. Kept for backward compatibility. */
695
694
  url?: string;
696
695
  /** @deprecated use litellm `modelName` (e.g. "ollama/llama3.1"). */
@@ -703,8 +702,6 @@ export declare interface ModelConfiguration {
703
702
  openrouterModelName?: string;
704
703
  }
705
704
 
706
- export declare type ModelName = 'gemini-3.5-flash' | 'gemini-3-pro' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-lite' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.0-flash' | 'gemini-1.5-flash' | 'gemini-1.5-pro' | 'gemini-2.5-pro-exp-03-25' | 'gemini-2.0-flash-001' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash-lite-001' | 'gemini-1.5-flash-latest' | 'gemini-1.5-flash-001' | 'gemini-1.5-flash-002' | 'gemini-1.5-pro-latest' | 'gemini-1.5-pro-001' | 'gemini-1.5-pro-002' | 'gpt-5.5' | 'gpt-5.4' | 'gpt-5.3' | 'gpt-5.2' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.5' | 'o1' | 'o1-mini' | 'o3-mini' | 'o4-mini' | 'o4-mini-high' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'accounts/fireworks/models/minimax-m2p7' | 'accounts/fireworks/models/minimax-m2p5' | 'accounts/fireworks/models/deepseek-v3p2' | 'accounts/fireworks/models/kimi-k2p5' | 'accounts/fireworks/models/glm-5' | 'accounts/fireworks/models/glm-5p1' | 'accounts/fireworks/models/deepseek-v4-pro' | 'accounts/fireworks/models/qwen3p6-plus' | 'grok-4.3' | 'grok-4-1-fast-reasoning' | 'grok-4-1-fast-non-reasoning' | 'grok-code-fast-1' | 'grok-4-fast-reasoning' | 'grok-4-fast-non-reasoning' | 'grok-4-0709' | 'grok-3-mini' | 'grok-3' | 'grok-2-vision-1212' | 'ollama' | 'openai-compatible' | 'openrouter';
707
-
708
705
  export declare type ModelProvider = 'google' | 'openai' | 'grok' | 'fireworks' | 'together' | 'ollama' | 'openai_compatible' | 'openrouter';
709
706
 
710
707
  export declare interface NetworkConfiguration {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@applica-software-guru/persona-sdk",
3
3
  "description": "Official TypeScript SDK for the Persona API — manage agents, sessions, projects, knowledge bases, workflows, triggers and more.",
4
4
  "private": false,
5
- "version": "0.1.28",
5
+ "version": "0.1.30",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "dev": "vite",
@@ -4,69 +4,6 @@ export type KnowledgeType = 'multi_hop' | 'simple';
4
4
 
5
5
  export type LanguageCode = 'en-US' | 'it-IT' | 'es-ES' | 'fr-FR' | 'de-DE' | 'pt-BR';
6
6
 
7
- export type ModelName =
8
- | 'gemini-3.5-flash'
9
- | 'gemini-3-pro'
10
- | 'gemini-3-flash-preview'
11
- | 'gemini-3.1-pro-preview'
12
- | 'gemini-3.1-flash-lite'
13
- | 'gemini-2.5-pro'
14
- | 'gemini-2.5-flash'
15
- | 'gemini-2.5-flash-lite'
16
- | 'gemini-2.0-flash'
17
- | 'gemini-1.5-flash'
18
- | 'gemini-1.5-pro'
19
- | 'gemini-2.5-pro-exp-03-25'
20
- | 'gemini-2.0-flash-001'
21
- | 'gemini-2.0-flash-lite'
22
- | 'gemini-2.0-flash-lite-001'
23
- | 'gemini-1.5-flash-latest'
24
- | 'gemini-1.5-flash-001'
25
- | 'gemini-1.5-flash-002'
26
- | 'gemini-1.5-pro-latest'
27
- | 'gemini-1.5-pro-001'
28
- | 'gemini-1.5-pro-002'
29
- | 'gpt-5.5'
30
- | 'gpt-5.4'
31
- | 'gpt-5.3'
32
- | 'gpt-5.2'
33
- | 'gpt-5'
34
- | 'gpt-5-mini'
35
- | 'gpt-5-nano'
36
- | 'gpt-4.1'
37
- | 'gpt-4.1-mini'
38
- | 'gpt-4.1-nano'
39
- | 'gpt-4o'
40
- | 'gpt-4o-mini'
41
- | 'gpt-4.5'
42
- | 'o1'
43
- | 'o1-mini'
44
- | 'o3-mini'
45
- | 'o4-mini'
46
- | 'o4-mini-high'
47
- | 'gpt-3.5-turbo'
48
- | 'gpt-3.5-turbo-16k'
49
- | 'accounts/fireworks/models/minimax-m2p7'
50
- | 'accounts/fireworks/models/minimax-m2p5'
51
- | 'accounts/fireworks/models/deepseek-v3p2'
52
- | 'accounts/fireworks/models/kimi-k2p5'
53
- | 'accounts/fireworks/models/glm-5'
54
- | 'accounts/fireworks/models/glm-5p1'
55
- | 'accounts/fireworks/models/deepseek-v4-pro'
56
- | 'accounts/fireworks/models/qwen3p6-plus'
57
- | 'grok-4.3'
58
- | 'grok-4-1-fast-reasoning'
59
- | 'grok-4-1-fast-non-reasoning'
60
- | 'grok-code-fast-1'
61
- | 'grok-4-fast-reasoning'
62
- | 'grok-4-fast-non-reasoning'
63
- | 'grok-4-0709'
64
- | 'grok-3-mini'
65
- | 'grok-3'
66
- | 'grok-2-vision-1212'
67
- | 'ollama'
68
- | 'openai-compatible'
69
- | 'openrouter';
70
7
 
71
8
  export type SynthesizerName = 'gcloud' | 'elevenlabs' | 'gtts' | 'openai';
72
9
 
@@ -100,13 +37,8 @@ export interface Variable {
100
37
  }
101
38
 
102
39
  export interface ModelConfiguration {
103
- /**
104
- * litellm-style "<provider>/<model>" string (e.g. "openai/gpt-5"). Bare legacy
105
- * names (e.g. "gpt-5", "accounts/fireworks/models/x", "ollama") are still
106
- * accepted; the provider is derived server-side. The `ModelName` union keeps
107
- * autocomplete for known models while `string` allows any litellm identifier.
108
- */
109
- modelName?: ModelName | (string & {});
40
+ /** litellm-style "<provider>/<model>" string (e.g. "fireworks/accounts/fireworks/models/minimax-m3"). Use the known-models API for the current list. */
41
+ modelName?: string;
110
42
  temperature?: number;
111
43
  reasoningEffort?: ReasoningEffort;
112
44
  /** Maximum number of output tokens to generate. Undefined = provider default. */
@@ -115,6 +47,8 @@ export interface ModelConfiguration {
115
47
  apiKey?: string;
116
48
  /** Override the per-provider default base URL when set. */
117
49
  baseUrl?: string;
50
+ /** Passed verbatim as extra_body to the underlying LLM request (e.g. { service_tier: "priority" }). */
51
+ extraBody?: Record<string, unknown>;
118
52
  /** @deprecated use `baseUrl`. Kept for backward compatibility. */
119
53
  url?: string;
120
54
  /** @deprecated use litellm `modelName` (e.g. "ollama/llama3.1"). */
@@ -350,6 +284,7 @@ export interface Agent {
350
284
  twilio?: TwilioConfiguration;
351
285
  languageCode?: LanguageCode;
352
286
  initialMessage?: string;
287
+ initialMessageMode?: "processed" | "static";
353
288
  knowledge?: KnowledgeConfiguration;
354
289
  wakeup?: WakeupConfiguration;
355
290
  telegram?: TelegramConfiguration;
@@ -380,6 +315,7 @@ export interface AgentCreateRequest {
380
315
  twilio?: TwilioConfiguration;
381
316
  languageCode?: LanguageCode;
382
317
  initialMessage?: string;
318
+ initialMessageMode?: "processed" | "static";
383
319
  knowledge?: KnowledgeConfiguration;
384
320
  wakeup?: WakeupConfiguration;
385
321
  telegram?: TelegramConfiguration;
package/src/index.ts CHANGED
@@ -26,7 +26,6 @@ export type {
26
26
  KnowledgeType,
27
27
  LanguageCode,
28
28
  ModelConfiguration,
29
- ModelName,
30
29
  NetworkConfiguration,
31
30
  OrchestrationConfiguration,
32
31
  OrchestrationAgent,