@builder.io/ai-utils 0.85.3 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.85.3",
3
+ "version": "0.86.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
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
@@ -1888,6 +1888,9 @@ export declare const HostingDomainSchema: z.ZodObject<{
1888
1888
  dns: "dns";
1889
1889
  https: "https";
1890
1890
  }>>;
1891
+ routeError: z.ZodOptional<z.ZodString>;
1892
+ routeErrorAt: z.ZodOptional<z.ZodNumber>;
1893
+ servingConfirmedAt: z.ZodOptional<z.ZodNumber>;
1891
1894
  createdBy: z.ZodString;
1892
1895
  }, z.core.$strip>;
1893
1896
  export type HostingDomain = z.infer<typeof HostingDomainSchema>;
@@ -1946,6 +1949,22 @@ export declare const RemoveDomainResponseSchema: z.ZodObject<{
1946
1949
  success: z.ZodLiteral<true>;
1947
1950
  }, z.core.$strip>;
1948
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>;
1949
1968
  export declare const CloneProjectOptionsSchema: z.ZodObject<{
1950
1969
  sourceProjectId: z.ZodString;
1951
1970
  sourceBranchName: z.ZodDefault<z.ZodString>;
package/src/projects.js CHANGED
@@ -842,6 +842,15 @@ export const HostingDomainSchema = z.object({
842
842
  failedStep: z.enum(["dns", "https"]).optional().meta({
843
843
  description: "Which setup step failed, set alongside `status: failed` so the UI can attribute the failure. `dns` = delegation verification, `https` = cert/route provisioning.",
844
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
+ }),
845
854
  createdBy: z.string(),
846
855
  });
847
856
  export const AddDomainRequestSchema = z.object({
@@ -875,6 +884,14 @@ export const RemoveDomainRequestSchema = z.object({
875
884
  export const RemoveDomainResponseSchema = z.object({
876
885
  success: z.literal(true),
877
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
+ });
878
895
  export const CloneProjectOptionsSchema = z.object({
879
896
  sourceProjectId: z.string().min(1).meta({
880
897
  description: "Project to clone from.",