@builder.io/ai-utils 0.50.4 → 0.51.0
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 +1 -1
- package/src/codegen.d.ts +1 -1
- package/src/events.d.ts +2 -0
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/organization.d.ts +3 -3
- package/src/projects.d.ts +7 -3
- package/src/single-tenancy.d.ts +92 -0
- package/src/vpc-peering.d.ts +0 -49
- /package/src/{vpc-peering.js → single-tenancy.js} +0 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -202,7 +202,7 @@ export interface AskUserQuestion {
|
|
|
202
202
|
}
|
|
203
203
|
export interface AskUserQuestionToolInput {
|
|
204
204
|
questions: AskUserQuestion[];
|
|
205
|
-
answers?: Record<string, string>;
|
|
205
|
+
answers?: Record<string, string | string[]>;
|
|
206
206
|
}
|
|
207
207
|
export interface AgentToolInput {
|
|
208
208
|
description: string;
|
package/src/events.d.ts
CHANGED
|
@@ -798,6 +798,8 @@ export type PrReviewRequestedV1 = FusionEventVariant<"pr.review.requested", {
|
|
|
798
798
|
triggerSource?: string;
|
|
799
799
|
isSynchronize?: boolean;
|
|
800
800
|
isFork?: boolean;
|
|
801
|
+
prAuthorGithubUsername?: string;
|
|
802
|
+
prAuthorIsBot?: boolean;
|
|
801
803
|
forceBrowserTesting?: boolean;
|
|
802
804
|
}, {}, 1>;
|
|
803
805
|
export declare const PrReviewRequestedV1: {
|
package/src/index.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export * from "./vscode-tunnel.js";
|
|
|
12
12
|
export * from "./claw.js";
|
|
13
13
|
export * from "./kube-error.js";
|
|
14
14
|
export * from "./connectivity/types.js";
|
|
15
|
-
export * from "./
|
|
15
|
+
export * from "./single-tenancy.js";
|
|
16
16
|
export { connectivityErrorCodeToLikelyCause, mapConnectivityErrorMessage, } from "./connectivity/error-codes.js";
|
package/src/index.js
CHANGED
|
@@ -12,5 +12,5 @@ export * from "./vscode-tunnel.js";
|
|
|
12
12
|
export * from "./claw.js";
|
|
13
13
|
export * from "./kube-error.js";
|
|
14
14
|
export * from "./connectivity/types.js";
|
|
15
|
-
export * from "./
|
|
15
|
+
export * from "./single-tenancy.js";
|
|
16
16
|
export { connectivityErrorCodeToLikelyCause, mapConnectivityErrorMessage, } from "./connectivity/error-codes.js";
|
package/src/organization.d.ts
CHANGED
|
@@ -101,9 +101,9 @@ interface OrganizationSettings {
|
|
|
101
101
|
ticketAssessmentModel?: string;
|
|
102
102
|
ticketAssessmentDailyLimit?: number;
|
|
103
103
|
fusionWebhooks?: FusionWebhook[];
|
|
104
|
-
/** Default
|
|
105
|
-
* Projects can override this with their own
|
|
106
|
-
|
|
104
|
+
/** Default single tenancy config ID for this space. References a document in the singleTenancyConfigurations collection.
|
|
105
|
+
* Projects can override this with their own singleTenancyConfig setting. */
|
|
106
|
+
defaultSingleTenancyConfig?: string;
|
|
107
107
|
controlModelAvailability?: boolean;
|
|
108
108
|
allowedAiModels?: string[];
|
|
109
109
|
autoModelOverride?: string;
|
package/src/projects.d.ts
CHANGED
|
@@ -407,6 +407,10 @@ export interface BranchMetadata {
|
|
|
407
407
|
description?: string;
|
|
408
408
|
/** Whether the branch is a cloned branch */
|
|
409
409
|
isClonedBranch?: boolean;
|
|
410
|
+
/** For QA branches reviewing an internal PR (originated from Builder): the project ID of the source branch */
|
|
411
|
+
originalProjectId?: string;
|
|
412
|
+
/** For QA branches reviewing an internal PR (originated from Builder): the name of the source branch */
|
|
413
|
+
originalBranchName?: string;
|
|
410
414
|
/** Data passed in via /agents/run api that we echo in webhook response **/
|
|
411
415
|
webhookContext?: Record<string, unknown>;
|
|
412
416
|
[key: string]: unknown;
|
|
@@ -691,9 +695,9 @@ export interface Project {
|
|
|
691
695
|
* Agents will pick this project when asked to do something with the connected repository.
|
|
692
696
|
*/
|
|
693
697
|
isPreferredForRepo?: boolean;
|
|
694
|
-
/**
|
|
695
|
-
* References a document in the
|
|
696
|
-
|
|
698
|
+
/** Single tenancy config ID for this project. Overrides the space-level defaultSingleTenancyConfig.
|
|
699
|
+
* References a document in the singleTenancyConfigurations collection. */
|
|
700
|
+
singleTenancyConfig?: string;
|
|
697
701
|
previewPasswordProtection?: PreviewPasswordProtection;
|
|
698
702
|
};
|
|
699
703
|
screenshot: string | null;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/** Fields common to all VPC connectivity types. */
|
|
2
|
+
interface VpcConnectionBase {
|
|
3
|
+
type: string;
|
|
4
|
+
proxyIp: string;
|
|
5
|
+
customerDnsServers: string[];
|
|
6
|
+
}
|
|
7
|
+
/** Traditional VPC Peering via bridge VPC. */
|
|
8
|
+
export interface VpcGcpPeering extends VpcConnectionBase {
|
|
9
|
+
type: "gcp-peering";
|
|
10
|
+
gcpProjectId: string;
|
|
11
|
+
gcpNetworkName: string;
|
|
12
|
+
bridgeCidr: string;
|
|
13
|
+
importCustomRoutes: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* PSC Network Attachment — customer creates the network attachment in their VPC,
|
|
17
|
+
* our proxy VM connects to it via a PSC interface on nic1.
|
|
18
|
+
* No bridge VPC or bridge CIDR needed on our side.
|
|
19
|
+
*/
|
|
20
|
+
export interface VpcGcpNetworkAttachment extends VpcConnectionBase {
|
|
21
|
+
type: "gcp-network-attachment";
|
|
22
|
+
gcpProjectId: string;
|
|
23
|
+
networkAttachmentName: string;
|
|
24
|
+
}
|
|
25
|
+
/** Discriminated union of all VPC connectivity types. */
|
|
26
|
+
export type VpcConnection = VpcGcpPeering | VpcGcpNetworkAttachment;
|
|
27
|
+
/**
|
|
28
|
+
* Dedicated node pool preferences for a single tenancy customer.
|
|
29
|
+
* Independent of VPC connectivity.
|
|
30
|
+
*/
|
|
31
|
+
export interface DedicatedNodePoolConfig {
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
machineType?: string;
|
|
34
|
+
minNodes?: number;
|
|
35
|
+
maxNodes?: number;
|
|
36
|
+
diskSizeGb?: number;
|
|
37
|
+
diskType?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Single tenancy configuration — unified data model for VPC connectivity
|
|
41
|
+
* and dedicated node pool preferences per customer.
|
|
42
|
+
*
|
|
43
|
+
* Stored in the `singleTenancyConfigurations` Firestore collection.
|
|
44
|
+
*/
|
|
45
|
+
export interface SingleTenancyConfig {
|
|
46
|
+
id: string;
|
|
47
|
+
ownerId: string;
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
createdAt: number;
|
|
50
|
+
updatedAt: number;
|
|
51
|
+
/** VPC connectivity — optional, not all customers need VPC. */
|
|
52
|
+
vpc?: VpcConnection;
|
|
53
|
+
/** Dedicated node pool — optional, independent of VPC. */
|
|
54
|
+
dedicatedNodePool?: DedicatedNodePoolConfig;
|
|
55
|
+
}
|
|
56
|
+
export interface CreateVpcGcpPeeringParams {
|
|
57
|
+
type: "gcp-peering";
|
|
58
|
+
gcpProjectId: string;
|
|
59
|
+
gcpNetworkName: string;
|
|
60
|
+
bridgeCidr: string;
|
|
61
|
+
customerDnsServers: string[];
|
|
62
|
+
importCustomRoutes?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface CreateVpcGcpNetworkAttachmentParams {
|
|
65
|
+
type: "gcp-network-attachment";
|
|
66
|
+
gcpProjectId: string;
|
|
67
|
+
networkAttachmentName: string;
|
|
68
|
+
customerDnsServers: string[];
|
|
69
|
+
}
|
|
70
|
+
export type CreateSingleTenancyVpcParams = CreateVpcGcpPeeringParams | CreateVpcGcpNetworkAttachmentParams;
|
|
71
|
+
/**
|
|
72
|
+
* Full create payload — VPC connectivity plus optional dedicated node pool.
|
|
73
|
+
* The {@link CreateSingleTenancyVpcParams} discriminated union still drives
|
|
74
|
+
* which VPC fields are required.
|
|
75
|
+
*/
|
|
76
|
+
export type CreateSingleTenancyConfigOpts = CreateSingleTenancyVpcParams & {
|
|
77
|
+
dedicatedNodePool?: DedicatedNodePoolConfig;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Patch payload for an existing single tenancy config.
|
|
81
|
+
* Only the safe-to-edit fields are exposed; `vpc.type`, `vpc.proxyIp`,
|
|
82
|
+
* `vpc.gcpProjectId`, `vpc.gcpNetworkName`, `vpc.networkAttachmentName`, and
|
|
83
|
+
* `vpc.bridgeCidr` are immutable because changing them would diverge from
|
|
84
|
+
* already-provisioned infrastructure.
|
|
85
|
+
*/
|
|
86
|
+
export interface UpdateSingleTenancyConfigOpts {
|
|
87
|
+
enabled?: boolean;
|
|
88
|
+
customerDnsServers?: string[];
|
|
89
|
+
importCustomRoutes?: boolean;
|
|
90
|
+
dedicatedNodePool?: DedicatedNodePoolConfig | null;
|
|
91
|
+
}
|
|
92
|
+
export {};
|
package/src/vpc-peering.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/** Fields common to all VPC connectivity types. */
|
|
2
|
-
interface VpcConnectionBase {
|
|
3
|
-
id: string;
|
|
4
|
-
ownerId: string;
|
|
5
|
-
type: string;
|
|
6
|
-
gcpRegion: string;
|
|
7
|
-
customerDnsServers: string[];
|
|
8
|
-
proxyIp: string;
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
createdAt: number;
|
|
11
|
-
updatedAt: number;
|
|
12
|
-
}
|
|
13
|
-
/** Traditional VPC Peering via bridge VPC. */
|
|
14
|
-
export interface VpcGcpPeering extends VpcConnectionBase {
|
|
15
|
-
type: "gcp-peering";
|
|
16
|
-
gcpProjectId: string;
|
|
17
|
-
gcpNetworkName: string;
|
|
18
|
-
bridgeCidr: string;
|
|
19
|
-
importCustomRoutes: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* PSC Network Attachment — customer creates the network attachment in their VPC,
|
|
23
|
-
* our proxy VM connects to it via a PSC interface on nic1.
|
|
24
|
-
* No bridge VPC or bridge CIDR needed on our side.
|
|
25
|
-
*/
|
|
26
|
-
export interface VpcGcpNetworkAttachment extends VpcConnectionBase {
|
|
27
|
-
type: "gcp-network-attachment";
|
|
28
|
-
gcpProjectId: string;
|
|
29
|
-
networkAttachmentName: string;
|
|
30
|
-
}
|
|
31
|
-
/** Discriminated union of all VPC connectivity types. */
|
|
32
|
-
export type VpcPeering = VpcGcpPeering | VpcGcpNetworkAttachment;
|
|
33
|
-
export interface CreateVpcGcpPeeringParams {
|
|
34
|
-
type: "gcp-peering";
|
|
35
|
-
gcpRegion: string;
|
|
36
|
-
gcpProjectId: string;
|
|
37
|
-
gcpNetworkName: string;
|
|
38
|
-
bridgeCidr: string;
|
|
39
|
-
customerDnsServers: string[];
|
|
40
|
-
importCustomRoutes?: boolean;
|
|
41
|
-
}
|
|
42
|
-
export interface CreateVpcGcpNetworkAttachmentParams {
|
|
43
|
-
type: "gcp-network-attachment";
|
|
44
|
-
gcpProjectId: string;
|
|
45
|
-
networkAttachmentName: string;
|
|
46
|
-
customerDnsServers: string[];
|
|
47
|
-
}
|
|
48
|
-
export type CreateVpcPeeringParams = CreateVpcGcpPeeringParams | CreateVpcGcpNetworkAttachmentParams;
|
|
49
|
-
export {};
|
|
File without changes
|