@builder.io/ai-utils 0.85.2 → 0.86.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/events.d.ts +15 -1
- package/src/events.js +4 -0
- package/src/projects.d.ts +23 -0
- package/src/projects.js +26 -0
package/package.json
CHANGED
package/src/events.d.ts
CHANGED
|
@@ -1316,6 +1316,20 @@ export declare const HostingCustomDomainCertCheckV1: {
|
|
|
1316
1316
|
eventName: "hosting.custom-domain.cert-check";
|
|
1317
1317
|
version: "1";
|
|
1318
1318
|
};
|
|
1319
|
+
export type HostingCustomDomainServingCheckV1 = FusionEventVariant<"hosting.custom-domain.serving-check", {
|
|
1320
|
+
domain: string;
|
|
1321
|
+
projectId: string;
|
|
1322
|
+
certId: string;
|
|
1323
|
+
attemptId: string;
|
|
1324
|
+
startedAtMs: number;
|
|
1325
|
+
timeoutMs: number;
|
|
1326
|
+
}, {
|
|
1327
|
+
projectId: string;
|
|
1328
|
+
}, 1>;
|
|
1329
|
+
export declare const HostingCustomDomainServingCheckV1: {
|
|
1330
|
+
eventName: "hosting.custom-domain.serving-check";
|
|
1331
|
+
version: "1";
|
|
1332
|
+
};
|
|
1319
1333
|
export type HostingCustomDomainDelegationCheckV1 = FusionEventVariant<"hosting.custom-domain.delegation-check", {
|
|
1320
1334
|
domain: string;
|
|
1321
1335
|
projectId: string;
|
|
@@ -1329,7 +1343,7 @@ export declare const HostingCustomDomainDelegationCheckV1: {
|
|
|
1329
1343
|
eventName: "hosting.custom-domain.delegation-check";
|
|
1330
1344
|
version: "1";
|
|
1331
1345
|
};
|
|
1332
|
-
export type FusionEvent = ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | ClientDevtoolsToolCallRequestV1 | ClientDevtoolsToolCallV1 | ClientDevtoolsToolResultV1 | ClientDevtoolsBuildMigratedV1 | ClientDevtoolsBuildCompletedV1 | ClientDevtoolsBuildUploadedV1 | ClientDevtoolsBuildFailedV1 | FusionProjectCreatedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | TimelineRecordingReadyV1 | FusionBranchCreatedV1 | FusionContainerStartedV1 | FusionContainerFailedV1 | FusionBranchFailedV1 | BotMentionGitHubExternalPrV1 | BotMentionGitHubInternalPrV1 | BotMentionGitLabPrV1 | BotMentionBitbucketPrV1 | BotMentionAzurePrV1 | ReviewSubmittedV1 | PrReviewRequestedV1 | FigmaDecodeJobV1 | ProjectSnapshotRefreshV1 | ProjectSnapshotCapturedV1 | ProjectSnapshotCreatedV1 | ProjectSnapshotFailedV1 | ProjectSnapshotReadyCheckV1 | ProjectSnapshotPodWatchV1 | McpPrototypePulledV1 | HostingCustomDomainCertCheckV1 | HostingCustomDomainDelegationCheckV1;
|
|
1346
|
+
export type FusionEvent = ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | ClientDevtoolsToolCallRequestV1 | ClientDevtoolsToolCallV1 | ClientDevtoolsToolResultV1 | ClientDevtoolsBuildMigratedV1 | ClientDevtoolsBuildCompletedV1 | ClientDevtoolsBuildUploadedV1 | ClientDevtoolsBuildFailedV1 | FusionProjectCreatedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | TimelineRecordingReadyV1 | FusionBranchCreatedV1 | FusionContainerStartedV1 | FusionContainerFailedV1 | FusionBranchFailedV1 | BotMentionGitHubExternalPrV1 | BotMentionGitHubInternalPrV1 | BotMentionGitLabPrV1 | BotMentionBitbucketPrV1 | BotMentionAzurePrV1 | ReviewSubmittedV1 | PrReviewRequestedV1 | FigmaDecodeJobV1 | ProjectSnapshotRefreshV1 | ProjectSnapshotCapturedV1 | ProjectSnapshotCreatedV1 | ProjectSnapshotFailedV1 | ProjectSnapshotReadyCheckV1 | ProjectSnapshotPodWatchV1 | McpPrototypePulledV1 | HostingCustomDomainCertCheckV1 | HostingCustomDomainServingCheckV1 | HostingCustomDomainDelegationCheckV1;
|
|
1333
1347
|
export interface ModelPermissionRequiredEvent {
|
|
1334
1348
|
type: "assistant.model.permission.required";
|
|
1335
1349
|
data: {
|
package/src/events.js
CHANGED
|
@@ -166,6 +166,10 @@ export const HostingCustomDomainCertCheckV1 = {
|
|
|
166
166
|
eventName: "hosting.custom-domain.cert-check",
|
|
167
167
|
version: "1",
|
|
168
168
|
};
|
|
169
|
+
export const HostingCustomDomainServingCheckV1 = {
|
|
170
|
+
eventName: "hosting.custom-domain.serving-check",
|
|
171
|
+
version: "1",
|
|
172
|
+
};
|
|
169
173
|
export const HostingCustomDomainDelegationCheckV1 = {
|
|
170
174
|
eventName: "hosting.custom-domain.delegation-check",
|
|
171
175
|
version: "1",
|
package/src/projects.d.ts
CHANGED
|
@@ -1722,6 +1722,10 @@ export declare const DeployArtifactManifestSchema: z.ZodObject<{
|
|
|
1722
1722
|
functions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1723
1723
|
functions_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1724
1724
|
function_invocation_modes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1725
|
+
function_schedules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1726
|
+
name: z.ZodString;
|
|
1727
|
+
cron: z.ZodString;
|
|
1728
|
+
}, z.core.$strip>>>;
|
|
1725
1729
|
}, z.core.$strip>;
|
|
1726
1730
|
export type DeployArtifactManifest = z.infer<typeof DeployArtifactManifestSchema>;
|
|
1727
1731
|
/**
|
|
@@ -1884,6 +1888,9 @@ export declare const HostingDomainSchema: z.ZodObject<{
|
|
|
1884
1888
|
dns: "dns";
|
|
1885
1889
|
https: "https";
|
|
1886
1890
|
}>>;
|
|
1891
|
+
routeError: z.ZodOptional<z.ZodString>;
|
|
1892
|
+
routeErrorAt: z.ZodOptional<z.ZodNumber>;
|
|
1893
|
+
servingConfirmedAt: z.ZodOptional<z.ZodNumber>;
|
|
1887
1894
|
createdBy: z.ZodString;
|
|
1888
1895
|
}, z.core.$strip>;
|
|
1889
1896
|
export type HostingDomain = z.infer<typeof HostingDomainSchema>;
|
|
@@ -1942,6 +1949,22 @@ export declare const RemoveDomainResponseSchema: z.ZodObject<{
|
|
|
1942
1949
|
success: z.ZodLiteral<true>;
|
|
1943
1950
|
}, z.core.$strip>;
|
|
1944
1951
|
export type RemoveDomainResponse = z.infer<typeof RemoveDomainResponseSchema>;
|
|
1952
|
+
export declare const RepairDomainRequestSchema: z.ZodObject<{
|
|
1953
|
+
projectId: z.ZodString;
|
|
1954
|
+
domain: z.ZodString;
|
|
1955
|
+
}, z.core.$strip>;
|
|
1956
|
+
export type RepairDomainRequest = z.infer<typeof RepairDomainRequestSchema>;
|
|
1957
|
+
export declare const RepairDomainResponseSchema: z.ZodObject<{
|
|
1958
|
+
status: z.ZodEnum<{
|
|
1959
|
+
active: "active";
|
|
1960
|
+
failed: "failed";
|
|
1961
|
+
pending: "pending";
|
|
1962
|
+
provisioning: "provisioning";
|
|
1963
|
+
verifying: "verifying";
|
|
1964
|
+
}>;
|
|
1965
|
+
routeError: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
}, z.core.$strip>;
|
|
1967
|
+
export type RepairDomainResponse = z.infer<typeof RepairDomainResponseSchema>;
|
|
1945
1968
|
export declare const CloneProjectOptionsSchema: z.ZodObject<{
|
|
1946
1969
|
sourceProjectId: z.ZodString;
|
|
1947
1970
|
sourceBranchName: z.ZodDefault<z.ZodString>;
|
package/src/projects.js
CHANGED
|
@@ -633,6 +633,15 @@ export const DeployArtifactManifestSchema = z.object({
|
|
|
633
633
|
function_invocation_modes: z.record(z.string(), z.string()).optional().meta({
|
|
634
634
|
description: 'Lambda invocation mode per function name (e.g. "stream" for v2 streaming functions)',
|
|
635
635
|
}),
|
|
636
|
+
function_schedules: z
|
|
637
|
+
.array(z.object({
|
|
638
|
+
name: z.string(),
|
|
639
|
+
cron: z.string(),
|
|
640
|
+
}))
|
|
641
|
+
.optional()
|
|
642
|
+
.meta({
|
|
643
|
+
description: "Scheduled Netlify functions and their cron expressions",
|
|
644
|
+
}),
|
|
636
645
|
});
|
|
637
646
|
/**
|
|
638
647
|
* Per-deploy overrides passed from ai-services to the deploy pod's build-and-upload endpoint.
|
|
@@ -833,6 +842,15 @@ export const HostingDomainSchema = z.object({
|
|
|
833
842
|
failedStep: z.enum(["dns", "https"]).optional().meta({
|
|
834
843
|
description: "Which setup step failed, set alongside `status: failed` so the UI can attribute the failure. `dns` = delegation verification, `https` = cert/route provisioning.",
|
|
835
844
|
}),
|
|
845
|
+
routeError: z.string().optional().meta({
|
|
846
|
+
description: "Non-fatal health signal on an otherwise verified (`provisioning`/`active`) domain: set when re-creating the Envoy HTTPRoute failed on republish, so the site's cert is valid but the custom domain has no live route (bare 404). `status` stays `active`; this drives a degraded banner + Fix action. Cleared once the route is recreated.",
|
|
847
|
+
}),
|
|
848
|
+
routeErrorAt: z.number().optional().meta({
|
|
849
|
+
description: "When `routeError` was last set.",
|
|
850
|
+
}),
|
|
851
|
+
servingConfirmedAt: z.number().optional().meta({
|
|
852
|
+
description: "When the domain was confirmed serving over HTTPS: stamped by the serving-check loop once `https://<domain>/` answers over TLS through a Builder route (or by a healthy route recreate on deploy/repair). Definitive 'serving confirmed' signal for the UI's third setup step, distinct from cert issuance (`status: active`).",
|
|
853
|
+
}),
|
|
836
854
|
createdBy: z.string(),
|
|
837
855
|
});
|
|
838
856
|
export const AddDomainRequestSchema = z.object({
|
|
@@ -866,6 +884,14 @@ export const RemoveDomainRequestSchema = z.object({
|
|
|
866
884
|
export const RemoveDomainResponseSchema = z.object({
|
|
867
885
|
success: z.literal(true),
|
|
868
886
|
});
|
|
887
|
+
export const RepairDomainRequestSchema = z.object({
|
|
888
|
+
projectId: z.string(),
|
|
889
|
+
domain: z.string(),
|
|
890
|
+
});
|
|
891
|
+
export const RepairDomainResponseSchema = z.object({
|
|
892
|
+
status: HostingDomainStatusSchema,
|
|
893
|
+
routeError: z.string().optional(),
|
|
894
|
+
});
|
|
869
895
|
export const CloneProjectOptionsSchema = z.object({
|
|
870
896
|
sourceProjectId: z.string().min(1).meta({
|
|
871
897
|
description: "Project to clone from.",
|