@wix/auto_sdk_containers_plans 1.0.3 → 1.0.5

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.
@@ -82,8 +82,8 @@ interface BusinessContext {
82
82
  */
83
83
  businessName?: string;
84
84
  /**
85
- * Business logo image URL, extracted from the site (empty if it has none). Used as a reference
86
- * image when generating the app icon (see AppSpec.app_icon_url).
85
+ * Business logo image URL, extracted from the site (empty if it has none).
86
+ * App icons are generated separately; AppSpec.app_icon_url stores the accepted app-icon reference.
87
87
  * @maxLength 2000
88
88
  */
89
89
  businessLogoUrl?: string;
@@ -115,7 +115,116 @@ interface BusinessContext {
115
115
  * @format WEB_URL
116
116
  */
117
117
  publicSiteUrl?: string | null;
118
+ /**
119
+ * What the server learned from the site's content before the first plan was generated: the
120
+ * business, its goal and the content an app can show. Absent for older plans, when the analysis
121
+ * is off for the site, or when it did not finish.
122
+ * @readonly
123
+ */
124
+ analysis?: BusinessAnalysis;
118
125
  }
126
+ /** A short analysis of the business, made from the site's content for the planning agent. */
127
+ interface BusinessAnalysis {
128
+ /**
129
+ * Industry of the business, for example "yoga studio".
130
+ * @maxLength 200
131
+ */
132
+ industry?: string;
133
+ /**
134
+ * Short factual summary of the business and what its site offers.
135
+ * @maxLength 2000
136
+ */
137
+ summary?: string;
138
+ /**
139
+ * The main outcome the business wants from its customers, for example "Get more class bookings".
140
+ * @maxLength 500
141
+ */
142
+ businessGoal?: string;
143
+ /** How strongly the site's content supports business_goal. */
144
+ businessGoalConfidence?: BusinessGoalConfidenceWithLiterals;
145
+ /**
146
+ * Who the business's customers are.
147
+ * @maxLength 500
148
+ */
149
+ audience?: string;
150
+ /**
151
+ * Main products or services the business offers, as named on the site.
152
+ * @maxSize 6
153
+ * @maxLength 200
154
+ */
155
+ keyOfferings?: string[];
156
+ /**
157
+ * Site content of each kind that the generated app can show.
158
+ * @maxSize 10
159
+ */
160
+ usableContent?: UsableContent[];
161
+ /**
162
+ * Names of the Wix business apps installed on the site, for example "Wix Bookings".
163
+ * @maxSize 30
164
+ * @maxLength 100
165
+ */
166
+ installedVerticals?: string[];
167
+ /**
168
+ * Short points the app should focus on to serve business_goal.
169
+ * @maxSize 3
170
+ * @maxLength 300
171
+ */
172
+ appFocus?: string[];
173
+ /**
174
+ * How the site's own text sounds to its customers, so the app's text can sound the same, for
175
+ * example "Warm and homely; short sentences; speaks to the customer as 'you'".
176
+ * @maxLength 500
177
+ */
178
+ toneOfVoice?: string;
179
+ /**
180
+ * Up to three short phrases quoted from the site that show its tone of voice.
181
+ * @maxSize 3
182
+ * @maxLength 200
183
+ */
184
+ toneExamples?: string[];
185
+ }
186
+ declare enum BusinessGoalConfidence {
187
+ /** The site gives little or conflicting evidence for the goal. */
188
+ LOW = "LOW",
189
+ /** The goal is a reasonable inference from the site. */
190
+ MEDIUM = "MEDIUM",
191
+ /** The goal follows directly from strong evidence, such as a booking app with services. */
192
+ HIGH = "HIGH"
193
+ }
194
+ /** @enumType */
195
+ type BusinessGoalConfidenceWithLiterals = BusinessGoalConfidence | 'LOW' | 'MEDIUM' | 'HIGH';
196
+ /** Site content of one kind that the generated app can show. */
197
+ interface UsableContent {
198
+ /** Where the content comes from. */
199
+ source?: ContentSourceWithLiterals;
200
+ /**
201
+ * What the content is, for example "12 yoga and pilates classes with prices".
202
+ * @maxLength 500
203
+ */
204
+ description?: string;
205
+ /** Number of items found, when known. */
206
+ itemCount?: number | null;
207
+ }
208
+ declare enum ContentSource {
209
+ /** Wix Stores products. */
210
+ STORES = "STORES",
211
+ /** Wix Bookings services. */
212
+ BOOKINGS = "BOOKINGS",
213
+ /** Wix Events events. */
214
+ EVENTS = "EVENTS",
215
+ /** Wix Blog posts. */
216
+ BLOG = "BLOG",
217
+ /** Wix Pricing Plans plans. */
218
+ PRICING_PLANS = "PRICING_PLANS",
219
+ /** Wix Restaurants menu items. */
220
+ RESTAURANTS = "RESTAURANTS",
221
+ /** Wix CMS (Wix Data) collections. */
222
+ CMS = "CMS",
223
+ /** Text of the published site's home page. */
224
+ SITE_TEXT = "SITE_TEXT"
225
+ }
226
+ /** @enumType */
227
+ type ContentSourceWithLiterals = ContentSource | 'STORES' | 'BOOKINGS' | 'EVENTS' | 'BLOG' | 'PRICING_PLANS' | 'RESTAURANTS' | 'CMS' | 'SITE_TEXT';
119
228
  /**
120
229
  * Visual identity extracted from the user's existing website. Serves as an editable
121
230
  * starting point for the generated app.
@@ -194,9 +303,9 @@ interface AppSpec {
194
303
  */
195
304
  navigation?: string[];
196
305
  /**
197
- * Icon URL for the app to generate. Seeded at plan creation from the business's real logo, or
198
- * a best-effort generated placeholder if it has none. The client can replace it later with a
199
- * RegenerateIcon result they've accepted, via UpdatePlan.
306
+ * Icon URL for the app to generate. Generated at plan creation from the initial prompt and
307
+ * available business context. The client can replace it with an accepted RegenerateIcon result
308
+ * via UpdatePlan. FinalizePlan retries generation when the icon is missing before starting a build.
200
309
  * @format WEB_URL
201
310
  * @maxLength 2000
202
311
  */
@@ -669,7 +778,7 @@ interface AccountInfo {
669
778
  * @returns The created Plan.
670
779
  * @fqn wix.containers.plans.v1.ContainersPlans.CreatePlan
671
780
  */
672
- declare function createPlan(plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 3>>;
781
+ declare function createPlan(plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `businessContext.analysis.industry` | `businessContext.analysis.summary` | `businessContext.analysis.businessGoal` | `businessContext.analysis.businessGoalConfidence` | `businessContext.analysis.audience` | `businessContext.analysis.keyOfferings` | `businessContext.analysis.usableContent` | `businessContext.analysis.usableContent.${number}.source` | `businessContext.analysis.usableContent.${number}.description` | `businessContext.analysis.installedVerticals` | `businessContext.analysis.appFocus` | `businessContext.analysis.toneOfVoice` | `businessContext.analysis.toneExamples` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 4>>;
673
782
  /**
674
783
  * Creates a new Plan and immediately generates it using the planning agent.
675
784
  * @param plan - Plan to be created and generated.
@@ -683,7 +792,7 @@ declare function createPlan(plan: NonNullablePaths<Plan, `initialPrompt` | `plat
683
792
  * @permissionId containers:plans:v1:plan:create_and_generate_plan
684
793
  * @fqn wix.containers.plans.v1.ContainersPlans.CreateAndGeneratePlan
685
794
  */
686
- declare function createAndGeneratePlan(plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<CreateAndGeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 4>>;
795
+ declare function createAndGeneratePlan(plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<CreateAndGeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 5>>;
687
796
  /**
688
797
  * Retrieves a Plan by its ID.
689
798
  * @param planId - ID of the Plan to retrieve.
@@ -694,7 +803,7 @@ declare function createAndGeneratePlan(plan: NonNullablePaths<Plan, `initialProm
694
803
  * @returns The requested Plan.
695
804
  * @fqn wix.containers.plans.v1.ContainersPlans.GetPlan
696
805
  */
697
- declare function getPlan(planId: string): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 3>>;
806
+ declare function getPlan(planId: string): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `businessContext.analysis.industry` | `businessContext.analysis.summary` | `businessContext.analysis.businessGoal` | `businessContext.analysis.businessGoalConfidence` | `businessContext.analysis.audience` | `businessContext.analysis.keyOfferings` | `businessContext.analysis.usableContent` | `businessContext.analysis.usableContent.${number}.source` | `businessContext.analysis.usableContent.${number}.description` | `businessContext.analysis.installedVerticals` | `businessContext.analysis.appFocus` | `businessContext.analysis.toneOfVoice` | `businessContext.analysis.toneExamples` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 4>>;
698
807
  /**
699
808
  * Retrieves the (single) Plan for a project. Server-to-server: containers-projects uses this to
700
809
  * read the finalized plan when creating the initial generation job.
@@ -705,7 +814,7 @@ declare function getPlan(planId: string): Promise<NonNullablePaths<Plan, `initia
705
814
  * @permissionId containers:plans:v1:plan:get_plan_by_project_id
706
815
  * @fqn wix.containers.plans.v1.ContainersPlans.GetPlanByProjectId
707
816
  */
708
- declare function getPlanByProjectId(projectId: string): Promise<NonNullablePaths<GetPlanByProjectIdResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 4>>;
817
+ declare function getPlanByProjectId(projectId: string): Promise<NonNullablePaths<GetPlanByProjectIdResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 5>>;
709
818
  /**
710
819
  * Updates a Plan. The current revision must be passed for optimistic locking.
711
820
  * @param _id - Plan ID.
@@ -718,7 +827,7 @@ declare function getPlanByProjectId(projectId: string): Promise<NonNullablePaths
718
827
  * @returns The updated Plan.
719
828
  * @fqn wix.containers.plans.v1.ContainersPlans.UpdatePlan
720
829
  */
721
- declare function updatePlan(_id: string, plan: NonNullablePaths<UpdatePlan, `revision`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 3>>;
830
+ declare function updatePlan(_id: string, plan: NonNullablePaths<UpdatePlan, `revision`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `businessContext.analysis.industry` | `businessContext.analysis.summary` | `businessContext.analysis.businessGoal` | `businessContext.analysis.businessGoalConfidence` | `businessContext.analysis.audience` | `businessContext.analysis.keyOfferings` | `businessContext.analysis.usableContent` | `businessContext.analysis.usableContent.${number}.source` | `businessContext.analysis.usableContent.${number}.description` | `businessContext.analysis.installedVerticals` | `businessContext.analysis.appFocus` | `businessContext.analysis.toneOfVoice` | `businessContext.analysis.toneExamples` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 4>>;
722
831
  interface UpdatePlan {
723
832
  /**
724
833
  * Plan ID.
@@ -794,7 +903,7 @@ declare function deletePlan(planId: string): Promise<void>;
794
903
  * @permissionId containers:plans:v1:plan:generate_plan
795
904
  * @fqn wix.containers.plans.v1.ContainersPlans.GeneratePlan
796
905
  */
797
- declare function generatePlan(planId: string): Promise<NonNullablePaths<GeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 4>>;
906
+ declare function generatePlan(planId: string): Promise<NonNullablePaths<GeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 5>>;
798
907
  /**
799
908
  * Modifies an existing Plan based on the user's answers to the previous iteration's
800
909
  * follow-up questions plus an optional additional prompt. Returns the updated plan and
@@ -806,7 +915,7 @@ declare function generatePlan(planId: string): Promise<NonNullablePaths<Generate
806
915
  * @permissionId containers:plans:v1:plan:modify_plan
807
916
  * @fqn wix.containers.plans.v1.ContainersPlans.ModifyPlan
808
917
  */
809
- declare function modifyPlan(planId: string, options?: ModifyPlanOptions): Promise<NonNullablePaths<ModifyPlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 4>>;
918
+ declare function modifyPlan(planId: string, options?: ModifyPlanOptions): Promise<NonNullablePaths<ModifyPlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 5>>;
810
919
  interface ModifyPlanOptions {
811
920
  /**
812
921
  * The user's answers to the previous iteration's follow-up questions.
@@ -841,7 +950,9 @@ interface ModifyPlanOptions {
841
950
  declare function regenerateIcon(planId: string, prompt: string): Promise<NonNullablePaths<RegenerateIconResponse, `iconUrl`, 0>>;
842
951
  /**
843
952
  * Finalizes a Plan for generation, transitioning it to FINALIZED and emitting a PlanFinalized
844
- * action event that drives the linked Project into BUILDING.
953
+ * action event that drives the linked Project into BUILDING. Generates an icon first if it is
954
+ * missing. If icon generation fails, the Plan stays editable and finalization can be retried;
955
+ * RegenerateIcon and UpdatePlan can also be used to accept an icon independently.
845
956
  * @param planId - ID of the Plan to finalize. Its project_id and selected_template_id (set at creation)
846
957
  * are used to drive generation.
847
958
  * @param conversationId - ID of the conversation that led to this plan being finalized.
@@ -852,6 +963,6 @@ declare function regenerateIcon(planId: string, prompt: string): Promise<NonNull
852
963
  * @permissionId containers:plans:v1:plan:finalize_plan
853
964
  * @fqn wix.containers.plans.v1.ContainersPlans.FinalizePlan
854
965
  */
855
- declare function finalizePlan(planId: string, conversationId: string): Promise<NonNullablePaths<FinalizePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 4>>;
966
+ declare function finalizePlan(planId: string, conversationId: string): Promise<NonNullablePaths<FinalizePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 5>>;
856
967
 
857
- export { type AccountInfo, type ActionEvent, type AnsweredQuestion, type AppSpec, type BrandIdentity, type BusinessContext, type CreateAndGeneratePlanRequest, type CreateAndGeneratePlanResponse, type CreatePlanRequest, type CreatePlanResponse, type DeletePlanRequest, type DeletePlanResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Feature, type FinalizePlanRequest, type FinalizePlanResponse, type FollowUpQuestion, type GeneratePlanRequest, type GeneratePlanResponse, type GetPlanByProjectIdRequest, type GetPlanByProjectIdResponse, type GetPlanRequest, type GetPlanResponse, type IdentificationData, type IdentificationDataIdOneOf, type Integration, type MessageEnvelope, type ModifyPlanOptions, type ModifyPlanRequest, type ModifyPlanResponse, type Plan, type PlanEditContext, type PlanFinalized, PlanPartType, type PlanPartTypeWithLiterals, PlanStatus, type PlanStatusWithLiterals, Platform, type PlatformWithLiterals, type RegenerateIconRequest, type RegenerateIconResponse, type RestoreInfo, type UpdatePlan, type UpdatePlanRequest, type UpdatePlanResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createAndGeneratePlan, createPlan, deletePlan, finalizePlan, generatePlan, getPlan, getPlanByProjectId, modifyPlan, regenerateIcon, updatePlan };
968
+ export { type AccountInfo, type ActionEvent, type AnsweredQuestion, type AppSpec, type BrandIdentity, type BusinessAnalysis, type BusinessContext, BusinessGoalConfidence, type BusinessGoalConfidenceWithLiterals, ContentSource, type ContentSourceWithLiterals, type CreateAndGeneratePlanRequest, type CreateAndGeneratePlanResponse, type CreatePlanRequest, type CreatePlanResponse, type DeletePlanRequest, type DeletePlanResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Feature, type FinalizePlanRequest, type FinalizePlanResponse, type FollowUpQuestion, type GeneratePlanRequest, type GeneratePlanResponse, type GetPlanByProjectIdRequest, type GetPlanByProjectIdResponse, type GetPlanRequest, type GetPlanResponse, type IdentificationData, type IdentificationDataIdOneOf, type Integration, type MessageEnvelope, type ModifyPlanOptions, type ModifyPlanRequest, type ModifyPlanResponse, type Plan, type PlanEditContext, type PlanFinalized, PlanPartType, type PlanPartTypeWithLiterals, PlanStatus, type PlanStatusWithLiterals, Platform, type PlatformWithLiterals, type RegenerateIconRequest, type RegenerateIconResponse, type RestoreInfo, type UpdatePlan, type UpdatePlanRequest, type UpdatePlanResponse, type UsableContent, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createAndGeneratePlan, createPlan, deletePlan, finalizePlan, generatePlan, getPlan, getPlanByProjectId, modifyPlan, regenerateIcon, updatePlan };
@@ -83,8 +83,8 @@ interface BusinessContext {
83
83
  */
84
84
  businessName?: string;
85
85
  /**
86
- * Business logo image URL, extracted from the site (empty if it has none). Used as a reference
87
- * image when generating the app icon (see AppSpec.app_icon_url).
86
+ * Business logo image URL, extracted from the site (empty if it has none).
87
+ * App icons are generated separately; AppSpec.app_icon_url stores the accepted app-icon reference.
88
88
  * @maxLength 2000
89
89
  */
90
90
  businessLogoUrl?: string;
@@ -116,7 +116,116 @@ interface BusinessContext {
116
116
  * @format WEB_URL
117
117
  */
118
118
  publicSiteUrl?: string | null;
119
+ /**
120
+ * What the server learned from the site's content before the first plan was generated: the
121
+ * business, its goal and the content an app can show. Absent for older plans, when the analysis
122
+ * is off for the site, or when it did not finish.
123
+ * @readonly
124
+ */
125
+ analysis?: BusinessAnalysis;
119
126
  }
127
+ /** A short analysis of the business, made from the site's content for the planning agent. */
128
+ interface BusinessAnalysis {
129
+ /**
130
+ * Industry of the business, for example "yoga studio".
131
+ * @maxLength 200
132
+ */
133
+ industry?: string;
134
+ /**
135
+ * Short factual summary of the business and what its site offers.
136
+ * @maxLength 2000
137
+ */
138
+ summary?: string;
139
+ /**
140
+ * The main outcome the business wants from its customers, for example "Get more class bookings".
141
+ * @maxLength 500
142
+ */
143
+ businessGoal?: string;
144
+ /** How strongly the site's content supports business_goal. */
145
+ businessGoalConfidence?: BusinessGoalConfidenceWithLiterals;
146
+ /**
147
+ * Who the business's customers are.
148
+ * @maxLength 500
149
+ */
150
+ audience?: string;
151
+ /**
152
+ * Main products or services the business offers, as named on the site.
153
+ * @maxSize 6
154
+ * @maxLength 200
155
+ */
156
+ keyOfferings?: string[];
157
+ /**
158
+ * Site content of each kind that the generated app can show.
159
+ * @maxSize 10
160
+ */
161
+ usableContent?: UsableContent[];
162
+ /**
163
+ * Names of the Wix business apps installed on the site, for example "Wix Bookings".
164
+ * @maxSize 30
165
+ * @maxLength 100
166
+ */
167
+ installedVerticals?: string[];
168
+ /**
169
+ * Short points the app should focus on to serve business_goal.
170
+ * @maxSize 3
171
+ * @maxLength 300
172
+ */
173
+ appFocus?: string[];
174
+ /**
175
+ * How the site's own text sounds to its customers, so the app's text can sound the same, for
176
+ * example "Warm and homely; short sentences; speaks to the customer as 'you'".
177
+ * @maxLength 500
178
+ */
179
+ toneOfVoice?: string;
180
+ /**
181
+ * Up to three short phrases quoted from the site that show its tone of voice.
182
+ * @maxSize 3
183
+ * @maxLength 200
184
+ */
185
+ toneExamples?: string[];
186
+ }
187
+ declare enum BusinessGoalConfidence {
188
+ /** The site gives little or conflicting evidence for the goal. */
189
+ LOW = "LOW",
190
+ /** The goal is a reasonable inference from the site. */
191
+ MEDIUM = "MEDIUM",
192
+ /** The goal follows directly from strong evidence, such as a booking app with services. */
193
+ HIGH = "HIGH"
194
+ }
195
+ /** @enumType */
196
+ type BusinessGoalConfidenceWithLiterals = BusinessGoalConfidence | 'LOW' | 'MEDIUM' | 'HIGH';
197
+ /** Site content of one kind that the generated app can show. */
198
+ interface UsableContent {
199
+ /** Where the content comes from. */
200
+ source?: ContentSourceWithLiterals;
201
+ /**
202
+ * What the content is, for example "12 yoga and pilates classes with prices".
203
+ * @maxLength 500
204
+ */
205
+ description?: string;
206
+ /** Number of items found, when known. */
207
+ itemCount?: number | null;
208
+ }
209
+ declare enum ContentSource {
210
+ /** Wix Stores products. */
211
+ STORES = "STORES",
212
+ /** Wix Bookings services. */
213
+ BOOKINGS = "BOOKINGS",
214
+ /** Wix Events events. */
215
+ EVENTS = "EVENTS",
216
+ /** Wix Blog posts. */
217
+ BLOG = "BLOG",
218
+ /** Wix Pricing Plans plans. */
219
+ PRICING_PLANS = "PRICING_PLANS",
220
+ /** Wix Restaurants menu items. */
221
+ RESTAURANTS = "RESTAURANTS",
222
+ /** Wix CMS (Wix Data) collections. */
223
+ CMS = "CMS",
224
+ /** Text of the published site's home page. */
225
+ SITE_TEXT = "SITE_TEXT"
226
+ }
227
+ /** @enumType */
228
+ type ContentSourceWithLiterals = ContentSource | 'STORES' | 'BOOKINGS' | 'EVENTS' | 'BLOG' | 'PRICING_PLANS' | 'RESTAURANTS' | 'CMS' | 'SITE_TEXT';
120
229
  /**
121
230
  * Visual identity extracted from the user's existing website. Serves as an editable
122
231
  * starting point for the generated app.
@@ -195,9 +304,9 @@ interface AppSpec {
195
304
  */
196
305
  navigation?: string[];
197
306
  /**
198
- * Icon URL for the app to generate. Seeded at plan creation from the business's real logo, or
199
- * a best-effort generated placeholder if it has none. The client can replace it later with a
200
- * RegenerateIcon result they've accepted, via UpdatePlan.
307
+ * Icon URL for the app to generate. Generated at plan creation from the initial prompt and
308
+ * available business context. The client can replace it with an accepted RegenerateIcon result
309
+ * via UpdatePlan. FinalizePlan retries generation when the icon is missing before starting a build.
201
310
  * @format WEB_URL
202
311
  * @maxLength 2000
203
312
  */
@@ -738,4 +847,4 @@ declare function finalizePlan(): __PublicMethodMetaInfo<'POST', {
738
847
  planId: string;
739
848
  }, FinalizePlanRequest$1, FinalizePlanRequest, FinalizePlanResponse$1, FinalizePlanResponse>;
740
849
 
741
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AnsweredQuestion as AnsweredQuestionOriginal, type AppSpec as AppSpecOriginal, type BrandIdentity as BrandIdentityOriginal, type BusinessContext as BusinessContextOriginal, type CreateAndGeneratePlanRequest as CreateAndGeneratePlanRequestOriginal, type CreateAndGeneratePlanResponse as CreateAndGeneratePlanResponseOriginal, type CreatePlanRequest as CreatePlanRequestOriginal, type CreatePlanResponse as CreatePlanResponseOriginal, type DeletePlanRequest as DeletePlanRequestOriginal, type DeletePlanResponse as DeletePlanResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Feature as FeatureOriginal, type FinalizePlanRequest as FinalizePlanRequestOriginal, type FinalizePlanResponse as FinalizePlanResponseOriginal, type FollowUpQuestion as FollowUpQuestionOriginal, type GeneratePlanRequest as GeneratePlanRequestOriginal, type GeneratePlanResponse as GeneratePlanResponseOriginal, type GetPlanByProjectIdRequest as GetPlanByProjectIdRequestOriginal, type GetPlanByProjectIdResponse as GetPlanByProjectIdResponseOriginal, type GetPlanRequest as GetPlanRequestOriginal, type GetPlanResponse as GetPlanResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Integration as IntegrationOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ModifyPlanRequest as ModifyPlanRequestOriginal, type ModifyPlanResponse as ModifyPlanResponseOriginal, type PlanEditContext as PlanEditContextOriginal, type PlanFinalized as PlanFinalizedOriginal, type Plan as PlanOriginal, PlanPartType as PlanPartTypeOriginal, type PlanPartTypeWithLiterals as PlanPartTypeWithLiteralsOriginal, PlanStatus as PlanStatusOriginal, type PlanStatusWithLiterals as PlanStatusWithLiteralsOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type RegenerateIconRequest as RegenerateIconRequestOriginal, type RegenerateIconResponse as RegenerateIconResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type UpdatePlanRequest as UpdatePlanRequestOriginal, type UpdatePlanResponse as UpdatePlanResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createAndGeneratePlan, createPlan, deletePlan, finalizePlan, generatePlan, getPlan, getPlanByProjectId, modifyPlan, regenerateIcon, updatePlan };
850
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AnsweredQuestion as AnsweredQuestionOriginal, type AppSpec as AppSpecOriginal, type BrandIdentity as BrandIdentityOriginal, type BusinessAnalysis as BusinessAnalysisOriginal, type BusinessContext as BusinessContextOriginal, BusinessGoalConfidence as BusinessGoalConfidenceOriginal, type BusinessGoalConfidenceWithLiterals as BusinessGoalConfidenceWithLiteralsOriginal, ContentSource as ContentSourceOriginal, type ContentSourceWithLiterals as ContentSourceWithLiteralsOriginal, type CreateAndGeneratePlanRequest as CreateAndGeneratePlanRequestOriginal, type CreateAndGeneratePlanResponse as CreateAndGeneratePlanResponseOriginal, type CreatePlanRequest as CreatePlanRequestOriginal, type CreatePlanResponse as CreatePlanResponseOriginal, type DeletePlanRequest as DeletePlanRequestOriginal, type DeletePlanResponse as DeletePlanResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Feature as FeatureOriginal, type FinalizePlanRequest as FinalizePlanRequestOriginal, type FinalizePlanResponse as FinalizePlanResponseOriginal, type FollowUpQuestion as FollowUpQuestionOriginal, type GeneratePlanRequest as GeneratePlanRequestOriginal, type GeneratePlanResponse as GeneratePlanResponseOriginal, type GetPlanByProjectIdRequest as GetPlanByProjectIdRequestOriginal, type GetPlanByProjectIdResponse as GetPlanByProjectIdResponseOriginal, type GetPlanRequest as GetPlanRequestOriginal, type GetPlanResponse as GetPlanResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Integration as IntegrationOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ModifyPlanRequest as ModifyPlanRequestOriginal, type ModifyPlanResponse as ModifyPlanResponseOriginal, type PlanEditContext as PlanEditContextOriginal, type PlanFinalized as PlanFinalizedOriginal, type Plan as PlanOriginal, PlanPartType as PlanPartTypeOriginal, type PlanPartTypeWithLiterals as PlanPartTypeWithLiteralsOriginal, PlanStatus as PlanStatusOriginal, type PlanStatusWithLiterals as PlanStatusWithLiteralsOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type RegenerateIconRequest as RegenerateIconRequestOriginal, type RegenerateIconResponse as RegenerateIconResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type UpdatePlanRequest as UpdatePlanRequestOriginal, type UpdatePlanResponse as UpdatePlanResponseOriginal, type UsableContent as UsableContentOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createAndGeneratePlan, createPlan, deletePlan, finalizePlan, generatePlan, getPlan, getPlanByProjectId, modifyPlan, regenerateIcon, updatePlan };
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
2
  import { Plan, CreateAndGeneratePlanResponse, GetPlanByProjectIdResponse, UpdatePlan, GeneratePlanResponse, ModifyPlanOptions, ModifyPlanResponse, RegenerateIconResponse, FinalizePlanResponse } from './index.typings.mjs';
3
- export { AccountInfo, ActionEvent, AnsweredQuestion, AppSpec, BrandIdentity, BusinessContext, CreateAndGeneratePlanRequest, CreatePlanRequest, CreatePlanResponse, DeletePlanRequest, DeletePlanResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Feature, FinalizePlanRequest, FollowUpQuestion, GeneratePlanRequest, GetPlanByProjectIdRequest, GetPlanRequest, GetPlanResponse, IdentificationData, IdentificationDataIdOneOf, Integration, MessageEnvelope, ModifyPlanRequest, PlanEditContext, PlanFinalized, PlanPartType, PlanPartTypeWithLiterals, PlanStatus, PlanStatusWithLiterals, Platform, PlatformWithLiterals, RegenerateIconRequest, RestoreInfo, UpdatePlanRequest, UpdatePlanResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
3
+ export { AccountInfo, ActionEvent, AnsweredQuestion, AppSpec, BrandIdentity, BusinessAnalysis, BusinessContext, BusinessGoalConfidence, BusinessGoalConfidenceWithLiterals, ContentSource, ContentSourceWithLiterals, CreateAndGeneratePlanRequest, CreatePlanRequest, CreatePlanResponse, DeletePlanRequest, DeletePlanResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Feature, FinalizePlanRequest, FollowUpQuestion, GeneratePlanRequest, GetPlanByProjectIdRequest, GetPlanRequest, GetPlanResponse, IdentificationData, IdentificationDataIdOneOf, Integration, MessageEnvelope, ModifyPlanRequest, PlanEditContext, PlanFinalized, PlanPartType, PlanPartTypeWithLiterals, PlanStatus, PlanStatusWithLiterals, Platform, PlatformWithLiterals, RegenerateIconRequest, RestoreInfo, UpdatePlanRequest, UpdatePlanResponse, UsableContent, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  /** @internal */
6
6
  declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature;
@@ -10,7 +10,7 @@ interface CreatePlanSignature {
10
10
  * @param - Plan to be created.
11
11
  * @returns The created Plan.
12
12
  */
13
- (plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 3>>;
13
+ (plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `businessContext.analysis.industry` | `businessContext.analysis.summary` | `businessContext.analysis.businessGoal` | `businessContext.analysis.businessGoalConfidence` | `businessContext.analysis.audience` | `businessContext.analysis.keyOfferings` | `businessContext.analysis.usableContent` | `businessContext.analysis.usableContent.${number}.source` | `businessContext.analysis.usableContent.${number}.description` | `businessContext.analysis.installedVerticals` | `businessContext.analysis.appFocus` | `businessContext.analysis.toneOfVoice` | `businessContext.analysis.toneExamples` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 4>>;
14
14
  }
15
15
  /** @internal */
16
16
  declare function createAndGeneratePlan$1(httpClient: HttpClient): CreateAndGeneratePlanSignature;
@@ -19,7 +19,7 @@ interface CreateAndGeneratePlanSignature {
19
19
  * Creates a new Plan and immediately generates it using the planning agent.
20
20
  * @param - Plan to be created and generated.
21
21
  */
22
- (plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<CreateAndGeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 4>>;
22
+ (plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<CreateAndGeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 5>>;
23
23
  }
24
24
  /** @internal */
25
25
  declare function getPlan$1(httpClient: HttpClient): GetPlanSignature;
@@ -29,7 +29,7 @@ interface GetPlanSignature {
29
29
  * @param - ID of the Plan to retrieve.
30
30
  * @returns The requested Plan.
31
31
  */
32
- (planId: string): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 3>>;
32
+ (planId: string): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `businessContext.analysis.industry` | `businessContext.analysis.summary` | `businessContext.analysis.businessGoal` | `businessContext.analysis.businessGoalConfidence` | `businessContext.analysis.audience` | `businessContext.analysis.keyOfferings` | `businessContext.analysis.usableContent` | `businessContext.analysis.usableContent.${number}.source` | `businessContext.analysis.usableContent.${number}.description` | `businessContext.analysis.installedVerticals` | `businessContext.analysis.appFocus` | `businessContext.analysis.toneOfVoice` | `businessContext.analysis.toneExamples` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 4>>;
33
33
  }
34
34
  /** @internal */
35
35
  declare function getPlanByProjectId$1(httpClient: HttpClient): GetPlanByProjectIdSignature;
@@ -39,7 +39,7 @@ interface GetPlanByProjectIdSignature {
39
39
  * read the finalized plan when creating the initial generation job.
40
40
  * @param - ID of the project whose Plan to retrieve.
41
41
  */
42
- (projectId: string): Promise<NonNullablePaths<GetPlanByProjectIdResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 4>>;
42
+ (projectId: string): Promise<NonNullablePaths<GetPlanByProjectIdResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 5>>;
43
43
  }
44
44
  /** @internal */
45
45
  declare function updatePlan$1(httpClient: HttpClient): UpdatePlanSignature;
@@ -49,7 +49,7 @@ interface UpdatePlanSignature {
49
49
  * @param - Plan ID.
50
50
  * @returns The updated Plan.
51
51
  */
52
- (_id: string, plan: NonNullablePaths<UpdatePlan, `revision`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 3>>;
52
+ (_id: string, plan: NonNullablePaths<UpdatePlan, `revision`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `businessContext.analysis.industry` | `businessContext.analysis.summary` | `businessContext.analysis.businessGoal` | `businessContext.analysis.businessGoalConfidence` | `businessContext.analysis.audience` | `businessContext.analysis.keyOfferings` | `businessContext.analysis.usableContent` | `businessContext.analysis.usableContent.${number}.source` | `businessContext.analysis.usableContent.${number}.description` | `businessContext.analysis.installedVerticals` | `businessContext.analysis.appFocus` | `businessContext.analysis.toneOfVoice` | `businessContext.analysis.toneExamples` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 4>>;
53
53
  }
54
54
  /** @internal */
55
55
  declare function deletePlan$1(httpClient: HttpClient): DeletePlanSignature;
@@ -69,7 +69,7 @@ interface GeneratePlanSignature {
69
69
  * selected template. Populates app_spec (and brand_identity) and returns follow-up questions.
70
70
  * @param - ID of the Plan to generate.
71
71
  */
72
- (planId: string): Promise<NonNullablePaths<GeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 4>>;
72
+ (planId: string): Promise<NonNullablePaths<GeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 5>>;
73
73
  }
74
74
  /** @internal */
75
75
  declare function modifyPlan$1(httpClient: HttpClient): ModifyPlanSignature;
@@ -80,7 +80,7 @@ interface ModifyPlanSignature {
80
80
  * any new follow-up questions.
81
81
  * @param - ID of the Plan to modify.
82
82
  */
83
- (planId: string, options?: ModifyPlanOptions): Promise<NonNullablePaths<ModifyPlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 4>>;
83
+ (planId: string, options?: ModifyPlanOptions): Promise<NonNullablePaths<ModifyPlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 5>>;
84
84
  }
85
85
  /** @internal */
86
86
  declare function regenerateIcon$1(httpClient: HttpClient): RegenerateIconSignature;
@@ -100,12 +100,14 @@ declare function finalizePlan$1(httpClient: HttpClient): FinalizePlanSignature;
100
100
  interface FinalizePlanSignature {
101
101
  /**
102
102
  * Finalizes a Plan for generation, transitioning it to FINALIZED and emitting a PlanFinalized
103
- * action event that drives the linked Project into BUILDING.
103
+ * action event that drives the linked Project into BUILDING. Generates an icon first if it is
104
+ * missing. If icon generation fails, the Plan stays editable and finalization can be retried;
105
+ * RegenerateIcon and UpdatePlan can also be used to accept an icon independently.
104
106
  * @param - ID of the Plan to finalize. Its project_id and selected_template_id (set at creation)
105
107
  * are used to drive generation.
106
108
  * @param - ID of the conversation that led to this plan being finalized.
107
109
  */
108
- (planId: string, conversationId: string): Promise<NonNullablePaths<FinalizePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 4>>;
110
+ (planId: string, conversationId: string): Promise<NonNullablePaths<FinalizePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.businessContext.analysis.industry` | `plan.businessContext.analysis.summary` | `plan.businessContext.analysis.businessGoal` | `plan.businessContext.analysis.businessGoalConfidence` | `plan.businessContext.analysis.audience` | `plan.businessContext.analysis.keyOfferings` | `plan.businessContext.analysis.usableContent` | `plan.businessContext.analysis.usableContent.${number}.source` | `plan.businessContext.analysis.usableContent.${number}.description` | `plan.businessContext.analysis.installedVerticals` | `plan.businessContext.analysis.appFocus` | `plan.businessContext.analysis.toneOfVoice` | `plan.businessContext.analysis.toneExamples` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 5>>;
109
111
  }
110
112
 
111
113
  /** @internal */