@builder.io/ai-utils 0.4.30 → 0.4.31

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.4.30",
3
+ "version": "0.4.31",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -429,18 +429,29 @@ export interface UserSourceBuilder {
429
429
  userEmail?: string;
430
430
  role: "user";
431
431
  photoURL?: string;
432
+ principals?: string[];
432
433
  }
433
434
  export interface UserSourceGithub {
434
435
  source: "github";
435
436
  userName: string;
437
+ userEmail?: string;
436
438
  link?: string;
437
439
  role: "user" | "agent";
440
+ principals?: string[];
441
+ }
442
+ export interface UserSourceGitlab {
443
+ source: "gitlab";
444
+ userName: string;
445
+ link?: string;
446
+ role: "user" | "agent";
447
+ principals?: string[];
438
448
  }
439
449
  export interface UserSourceAgent {
440
450
  source: "agent";
441
451
  role: "agent";
452
+ principals?: string[];
442
453
  }
443
- export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceAgent;
454
+ export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAgent;
444
455
  export interface GenerateUserMessage {
445
456
  user?: UserSource;
446
457
  userPrompt: string;
@@ -463,7 +474,7 @@ export interface UserInput {
463
474
  rerankFiles?: number;
464
475
  mostRelevantFile: string | null;
465
476
  toolResults: ContentMessageItemToolResult[];
466
- role: "user" | "agent";
477
+ user: UserSource;
467
478
  }
468
479
  export interface CodegenTurn {
469
480
  state: "running" | "done" | "error";
@@ -585,9 +596,11 @@ export interface AclEntry {
585
596
  resource: string;
586
597
  permissions: Permission[];
587
598
  description?: string;
599
+ principals?: string[];
588
600
  }
589
601
  export interface AclPolicy {
590
- entries: AclEntry[];
602
+ secrets?: string[];
603
+ entries?: AclEntry[];
591
604
  }
592
605
  export interface AccessResult {
593
606
  allowed: boolean;
package/src/projects.d.ts CHANGED
@@ -132,7 +132,7 @@ export interface ReadyMessage extends BaseMessage {
132
132
  url: string;
133
133
  status?: LaunchServerStatus;
134
134
  }
135
- export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_VOLUME_CREATE_ERROR" | "FLY_VOLUME_FORK_ERROR" | "FLY_VOLUME_DELETE_RECENTLY_FORKED_ERROR" | "FLY_MACHINE_CREATE_ERROR" | "FLY_VOLUME_CHECK_ERROR" | "FLY_NON_MOUNTABLE_VOLUME_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | "git-auth-failed" | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-repo-full-name-not-found" | "project-org-not-found" | "no-available-regions" | "machine-status-polling-failed";
135
+ export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_VOLUME_CREATE_ERROR" | "FLY_VOLUME_FORK_ERROR" | "FLY_VOLUME_DELETE_RECENTLY_FORKED_ERROR" | "FLY_MACHINE_CREATE_ERROR" | "FLY_VOLUME_CHECK_ERROR" | "FLY_NON_MOUNTABLE_VOLUME_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | "git-auth-failed" | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-repo-full-name-not-found" | "project-org-not-found" | "no-available-regions" | "machine-status-polling-failed" | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
136
136
  export interface ErrorStateMessage extends BaseMessage {
137
137
  state: "error";
138
138
  message: string;