@builder.io/ai-utils 0.5.33 → 0.5.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.5.33",
3
+ "version": "0.5.34",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -237,7 +237,7 @@ export interface CodeGenInputOptions {
237
237
  /** @deprecated */
238
238
  vcpId?: string;
239
239
  }
240
- export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "unknown" | "failed-recover-state" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "assertion" | "rate-limit";
240
+ export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "unknown" | "failed-recover-state" | "ask-to-continue" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "assertion" | "rate-limit";
241
241
  export type Feature = "component-mapping";
242
242
  export interface CodegenUsage {
243
243
  total: number;
@@ -604,6 +604,7 @@ export interface GenerateUserMessage {
604
604
  logsCheckpoint?: boolean;
605
605
  dropAbortedPrompt?: boolean;
606
606
  modelOverride?: string;
607
+ maxCompletions?: number;
607
608
  }
608
609
  export interface UserInput {
609
610
  userMessage: GenerateUserMessage | undefined;
@@ -36,6 +36,7 @@ interface StoreComponentDocsInputV2 {
36
36
  hash?: string;
37
37
  designSystemId?: string;
38
38
  }
39
+ export type DesignSystemScope = "space" | "organization" | "global";
39
40
  export interface AddDesignSystemInput {
40
41
  designSystemName: string;
41
42
  designSystemPackage?: string;
@@ -43,6 +44,7 @@ export interface AddDesignSystemInput {
43
44
  status: string;
44
45
  spaceId: string;
45
46
  rootOrgId: string;
47
+ scope: DesignSystemScope;
46
48
  }
47
49
  export interface UpdateDesignSystemInput {
48
50
  id: string;
@@ -63,5 +65,6 @@ export interface DesignSystem {
63
65
  designSystemVersion?: string;
64
66
  designSystemPackage?: string;
65
67
  status: "in-progress" | "completed" | "failed";
68
+ scope: DesignSystemScope;
66
69
  }
67
70
  export {};