@salsita-ai/contracts 0.50.0-develop.9feae4851f → 0.50.0-develop.a4dde5f252

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.
@@ -20,19 +20,27 @@ export interface AssistantAiSettings {
20
20
  readonly provider: AssistantAiProvider;
21
21
  readonly model: AssistantModelTier;
22
22
  readonly reasoning: AssistantReasoningLevel;
23
+ /**
24
+ * How many input tokens a model call of a thread may reach before the thread is compacted on the
25
+ * user's next message. Defaults to the server's limit; the server also caps it.
26
+ */
27
+ readonly maxThreadSize?: number | undefined;
23
28
  }
24
29
  export declare const AssistantAiSettings: z.ZodObject<{
25
30
  provider: z.ZodEnum<["openai"]>;
26
31
  model: z.ZodEnum<["frontier", "advanced", "balanced", "fast"]>;
27
32
  reasoning: z.ZodEnum<["low", "medium", "high"]>;
33
+ maxThreadSize: z.ZodOptional<z.ZodNumber>;
28
34
  }, "strict", z.ZodTypeAny, {
29
35
  provider: "openai";
30
36
  model: "advanced" | "balanced" | "fast" | "frontier";
31
37
  reasoning: "high" | "low" | "medium";
38
+ maxThreadSize?: number | undefined;
32
39
  }, {
33
40
  provider: "openai";
34
41
  model: "advanced" | "balanced" | "fast" | "frontier";
35
42
  reasoning: "high" | "low" | "medium";
43
+ maxThreadSize?: number | undefined;
36
44
  }>;
37
45
  /**
38
46
  * The setup returned by a deployment webhook: GraphQL SDL, SDK-generated prompt, integrator
@@ -53,14 +61,17 @@ export declare const DeploymentAssistant: z.ZodObject<{
53
61
  provider: z.ZodEnum<["openai"]>;
54
62
  model: z.ZodEnum<["frontier", "advanced", "balanced", "fast"]>;
55
63
  reasoning: z.ZodEnum<["low", "medium", "high"]>;
64
+ maxThreadSize: z.ZodOptional<z.ZodNumber>;
56
65
  }, "strict", z.ZodTypeAny, {
57
66
  provider: "openai";
58
67
  model: "advanced" | "balanced" | "fast" | "frontier";
59
68
  reasoning: "high" | "low" | "medium";
69
+ maxThreadSize?: number | undefined;
60
70
  }, {
61
71
  provider: "openai";
62
72
  model: "advanced" | "balanced" | "fast" | "frontier";
63
73
  reasoning: "high" | "low" | "medium";
74
+ maxThreadSize?: number | undefined;
64
75
  }>;
65
76
  }, "strict", z.ZodTypeAny, {
66
77
  sdl: string;
@@ -70,6 +81,7 @@ export declare const DeploymentAssistant: z.ZodObject<{
70
81
  provider: "openai";
71
82
  model: "advanced" | "balanced" | "fast" | "frontier";
72
83
  reasoning: "high" | "low" | "medium";
84
+ maxThreadSize?: number | undefined;
73
85
  };
74
86
  }, {
75
87
  sdl: string;
@@ -79,5 +91,6 @@ export declare const DeploymentAssistant: z.ZodObject<{
79
91
  provider: "openai";
80
92
  model: "advanced" | "balanced" | "fast" | "frontier";
81
93
  reasoning: "high" | "low" | "medium";
94
+ maxThreadSize?: number | undefined;
82
95
  };
83
96
  }>;
@@ -1 +1 @@
1
- import{z as t}from"zod";export const ASSISTANT_AI_PROVIDERS=["openai"];export const ASSISTANT_MODEL_TIERS=["frontier","advanced","balanced","fast"];export const ASSISTANT_REASONING_LEVELS=["low","medium","high"];export const AssistantAiSettings=t.object({provider:t.enum(ASSISTANT_AI_PROVIDERS),model:t.enum(ASSISTANT_MODEL_TIERS),reasoning:t.enum(ASSISTANT_REASONING_LEVELS)}).strict();export const DeploymentAssistant=t.object({sdl:t.string().min(1),prompt:t.string().min(1),instructions:t.string().min(1).optional(),ai:AssistantAiSettings}).strict();
1
+ import{z as t}from"zod";export const ASSISTANT_AI_PROVIDERS=["openai"];export const ASSISTANT_MODEL_TIERS=["frontier","advanced","balanced","fast"];export const ASSISTANT_REASONING_LEVELS=["low","medium","high"];export const AssistantAiSettings=t.object({provider:t.enum(ASSISTANT_AI_PROVIDERS),model:t.enum(ASSISTANT_MODEL_TIERS),reasoning:t.enum(ASSISTANT_REASONING_LEVELS),maxThreadSize:t.number().int().positive().optional()}).strict();export const DeploymentAssistant=t.object({sdl:t.string().min(1),prompt:t.string().min(1),instructions:t.string().min(1).optional(),ai:AssistantAiSettings}).strict();
@@ -344,14 +344,17 @@ export declare const AssistantSetupResponse: z.ZodObject<{
344
344
  provider: z.ZodEnum<["openai"]>;
345
345
  model: z.ZodEnum<["frontier", "advanced", "balanced", "fast"]>;
346
346
  reasoning: z.ZodEnum<["low", "medium", "high"]>;
347
+ maxThreadSize: z.ZodOptional<z.ZodNumber>;
347
348
  }, "strict", z.ZodTypeAny, {
348
349
  provider: "openai";
349
350
  model: "advanced" | "balanced" | "fast" | "frontier";
350
351
  reasoning: "high" | "low" | "medium";
352
+ maxThreadSize?: number | undefined;
351
353
  }, {
352
354
  provider: "openai";
353
355
  model: "advanced" | "balanced" | "fast" | "frontier";
354
356
  reasoning: "high" | "low" | "medium";
357
+ maxThreadSize?: number | undefined;
355
358
  }>;
356
359
  }, "strict", z.ZodTypeAny, {
357
360
  sdl: string;
@@ -361,6 +364,7 @@ export declare const AssistantSetupResponse: z.ZodObject<{
361
364
  provider: "openai";
362
365
  model: "advanced" | "balanced" | "fast" | "frontier";
363
366
  reasoning: "high" | "low" | "medium";
367
+ maxThreadSize?: number | undefined;
364
368
  };
365
369
  }, {
366
370
  sdl: string;
@@ -370,6 +374,7 @@ export declare const AssistantSetupResponse: z.ZodObject<{
370
374
  provider: "openai";
371
375
  model: "advanced" | "balanced" | "fast" | "frontier";
372
376
  reasoning: "high" | "low" | "medium";
377
+ maxThreadSize?: number | undefined;
373
378
  };
374
379
  }>>;
375
380
  threadLock: z.ZodOptional<z.ZodLiteral<"strict">>;
@@ -382,6 +387,7 @@ export declare const AssistantSetupResponse: z.ZodObject<{
382
387
  provider: "openai";
383
388
  model: "advanced" | "balanced" | "fast" | "frontier";
384
389
  reasoning: "high" | "low" | "medium";
390
+ maxThreadSize?: number | undefined;
385
391
  };
386
392
  } | null;
387
393
  threadLock?: "strict" | undefined;
@@ -394,6 +400,7 @@ export declare const AssistantSetupResponse: z.ZodObject<{
394
400
  provider: "openai";
395
401
  model: "advanced" | "balanced" | "fast" | "frontier";
396
402
  reasoning: "high" | "low" | "medium";
403
+ maxThreadSize?: number | undefined;
397
404
  };
398
405
  } | null;
399
406
  threadLock?: "strict" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salsita-ai/contracts",
3
- "version": "0.50.0-develop.9feae4851f",
3
+ "version": "0.50.0-develop.a4dde5f252",
4
4
  "description": "Shared API, authentication, domain, chat, and webhook contracts for Phoenix.",
5
5
  "keywords": [
6
6
  "salsita",
@@ -56,7 +56,7 @@
56
56
  "uuid": "14.0.0",
57
57
  "valid-url": "1.0.9",
58
58
  "zod": "3.25.76",
59
- "@salsita-ai/common": "0.50.0-develop.9feae4851f"
59
+ "@salsita-ai/common": "0.50.0-develop.a4dde5f252"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@lingui/core": "5.9.5",