@wix/auto_sdk_containers_plans 1.0.5 → 1.0.6
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/build/cjs/index.d.ts +43 -1
- package/build/cjs/index.js +60 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +53 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +45 -2
- package/build/cjs/meta.js +48 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +43 -1
- package/build/es/index.mjs +58 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +51 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +45 -2
- package/build/es/meta.mjs +46 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -3
- package/build/internal/cjs/index.typings.d.ts +56 -1
- package/build/internal/cjs/meta.d.ts +45 -2
- package/build/internal/es/index.d.mts +18 -3
- package/build/internal/es/index.typings.d.mts +56 -1
- package/build/internal/es/meta.d.mts +45 -2
- package/package.json +2 -2
package/build/es/meta.mjs
CHANGED
|
@@ -302,6 +302,27 @@ function finalizePlan(payload) {
|
|
|
302
302
|
}
|
|
303
303
|
return __finalizePlan;
|
|
304
304
|
}
|
|
305
|
+
function getPromptSuggestions(payload) {
|
|
306
|
+
function __getPromptSuggestions({ host }) {
|
|
307
|
+
const metadata = {
|
|
308
|
+
entityFqdn: "wix.containers.plans.v1.plan",
|
|
309
|
+
method: "GET",
|
|
310
|
+
methodFqn: "wix.containers.plans.v1.ContainersPlans.GetPromptSuggestions",
|
|
311
|
+
packageName: PACKAGE_NAME,
|
|
312
|
+
migrationOptions: {
|
|
313
|
+
optInTransformResponse: true
|
|
314
|
+
},
|
|
315
|
+
url: resolveWixContainersPlansV1ContainersPlansUrl({
|
|
316
|
+
protoPath: "/v1/prompt-suggestions",
|
|
317
|
+
data: payload,
|
|
318
|
+
host
|
|
319
|
+
}),
|
|
320
|
+
params: toURLSearchParams(payload)
|
|
321
|
+
};
|
|
322
|
+
return metadata;
|
|
323
|
+
}
|
|
324
|
+
return __getPromptSuggestions;
|
|
325
|
+
}
|
|
305
326
|
|
|
306
327
|
// src/containers-plans-v1-plan-plans.types.ts
|
|
307
328
|
var Platform = /* @__PURE__ */ ((Platform2) => {
|
|
@@ -344,6 +365,11 @@ var PlanPartType = /* @__PURE__ */ ((PlanPartType2) => {
|
|
|
344
365
|
PlanPartType2["TEXT_THEME"] = "TEXT_THEME";
|
|
345
366
|
return PlanPartType2;
|
|
346
367
|
})(PlanPartType || {});
|
|
368
|
+
var PromptSuggestionsSource = /* @__PURE__ */ ((PromptSuggestionsSource2) => {
|
|
369
|
+
PromptSuggestionsSource2["BUSINESS_PROFILE"] = "BUSINESS_PROFILE";
|
|
370
|
+
PromptSuggestionsSource2["NO_SUGGESTIONS"] = "NO_SUGGESTIONS";
|
|
371
|
+
return PromptSuggestionsSource2;
|
|
372
|
+
})(PromptSuggestionsSource || {});
|
|
347
373
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
348
374
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
349
375
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -534,12 +560,31 @@ function finalizePlan2() {
|
|
|
534
560
|
__originalResponseType: null
|
|
535
561
|
};
|
|
536
562
|
}
|
|
563
|
+
function getPromptSuggestions2() {
|
|
564
|
+
const payload = {};
|
|
565
|
+
const getRequestOptions = getPromptSuggestions(payload);
|
|
566
|
+
const getUrl = (context) => {
|
|
567
|
+
const { url } = getRequestOptions(context);
|
|
568
|
+
return url;
|
|
569
|
+
};
|
|
570
|
+
return {
|
|
571
|
+
getUrl,
|
|
572
|
+
httpMethod: "GET",
|
|
573
|
+
path: "/v1/prompt-suggestions",
|
|
574
|
+
pathParams: {},
|
|
575
|
+
__requestType: null,
|
|
576
|
+
__originalRequestType: null,
|
|
577
|
+
__responseType: null,
|
|
578
|
+
__originalResponseType: null
|
|
579
|
+
};
|
|
580
|
+
}
|
|
537
581
|
export {
|
|
538
582
|
BusinessGoalConfidence as BusinessGoalConfidenceOriginal,
|
|
539
583
|
ContentSource as ContentSourceOriginal,
|
|
540
584
|
PlanPartType as PlanPartTypeOriginal,
|
|
541
585
|
PlanStatus as PlanStatusOriginal,
|
|
542
586
|
Platform as PlatformOriginal,
|
|
587
|
+
PromptSuggestionsSource as PromptSuggestionsSourceOriginal,
|
|
543
588
|
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
544
589
|
createAndGeneratePlan2 as createAndGeneratePlan,
|
|
545
590
|
createPlan2 as createPlan,
|
|
@@ -548,6 +593,7 @@ export {
|
|
|
548
593
|
generatePlan2 as generatePlan,
|
|
549
594
|
getPlan2 as getPlan,
|
|
550
595
|
getPlanByProjectId2 as getPlanByProjectId,
|
|
596
|
+
getPromptSuggestions2 as getPromptSuggestions,
|
|
551
597
|
modifyPlan2 as modifyPlan,
|
|
552
598
|
regenerateIcon2 as regenerateIcon,
|
|
553
599
|
updatePlan2 as updatePlan
|
package/build/es/meta.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/containers-plans-v1-plan-plans.http.ts","../../src/containers-plans-v1-plan-plans.types.ts","../../src/containers-plans-v1-plan-plans.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n { path: 'plan.createdDate' },\n { path: 'plan.updatedDate' },\n];\nconst TRANSFORM_PATHS_1 = [{ path: 'fieldMask' }];\n\nfunction resolveWixContainersPlansV1ContainersPlansUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/containers-plans',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_containers_plans';\n\n/** Creates a new Plan. */\nexport function createPlan(payload: object): RequestOptionsFactory<any> {\n function __createPlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.CreatePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createPlan;\n}\n\n/** Creates a new Plan and immediately generates it using the planning agent. */\nexport function createAndGeneratePlan(\n payload: object\n): RequestOptionsFactory<any> {\n function __createAndGeneratePlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn:\n 'wix.containers.plans.v1.ContainersPlans.CreateAndGeneratePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/create-and-generate',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createAndGeneratePlan;\n}\n\n/** Retrieves a Plan by its ID. */\nexport function getPlan(payload: object): RequestOptionsFactory<any> {\n function __getPlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'GET' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.GetPlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPlan;\n}\n\n/**\n * Retrieves the (single) Plan for a project. Server-to-server: containers-projects uses this to\n * read the finalized plan when creating the initial generation job.\n */\nexport function getPlanByProjectId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPlanByProjectId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'GET' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.GetPlanByProjectId',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/by-project/{projectId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPlanByProjectId;\n}\n\n/** Updates a Plan. The current revision must be passed for optimistic locking. */\nexport function updatePlan(payload: object): RequestOptionsFactory<any> {\n function __updatePlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: TRANSFORM_PATHS_1,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'PATCH' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.UpdatePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{plan.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePlan;\n}\n\n/** Deletes a Plan. */\nexport function deletePlan(payload: object): RequestOptionsFactory<any> {\n function __deletePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'DELETE' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.DeletePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deletePlan;\n}\n\n/**\n * Generates the plan for an already-created Plan using the planning agent, from the plan's\n * extracted business context + brand identity, the initial prompt, the platform, and the\n * selected template. Populates app_spec (and brand_identity) and returns follow-up questions.\n */\nexport function generatePlan(payload: object): RequestOptionsFactory<any> {\n function __generatePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.GeneratePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}/generate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generatePlan;\n}\n\n/**\n * Modifies an existing Plan based on the user's answers to the previous iteration's\n * follow-up questions plus an optional additional prompt. Returns the updated plan and\n * any new follow-up questions.\n */\nexport function modifyPlan(payload: object): RequestOptionsFactory<any> {\n function __modifyPlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.ModifyPlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}/modify',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __modifyPlan;\n}\n\n/**\n * Generates a candidate icon for a Plan from user-provided text via PromptHub. The current\n * business_context (including any existing icon, sent as a reference image) is resolved\n * server-side; the caller supplies only the prompt. Does not persist the result — the caller\n * saves an accepted icon with UpdatePlan (app_spec.app_icon_url).\n */\nexport function regenerateIcon(payload: object): RequestOptionsFactory<any> {\n function __regenerateIcon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.RegenerateIcon',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}/regenerate-icon',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __regenerateIcon;\n}\n\n/**\n * Finalizes a Plan for generation, transitioning it to FINALIZED and emitting a PlanFinalized\n * action event that drives the linked Project into BUILDING. Generates an icon first if it is\n * missing. If icon generation fails, the Plan stays editable and finalization can be retried;\n * RegenerateIcon and UpdatePlan can also be used to accept an icon independently.\n */\nexport function finalizePlan(payload: object): RequestOptionsFactory<any> {\n function __finalizePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.FinalizePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}/finalize',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __finalizePlan;\n}\n","export interface Plan {\n /**\n * Plan ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Plan is updated.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Plan was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Plan was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * The user's initial free-text prompt that started the plan.\n * @maxLength 10000\n */\n initialPrompt?: string;\n /** Generation platform for the app. */\n platform?: PlatformWithLiterals;\n /** Lifecycle status of the Plan. */\n status?: PlanStatusWithLiterals;\n /**\n * Template chosen for generation. A Code Store `containers-templates` catalog GUID, or (for\n * HIMALAYA_MOBILE) a himi starter template name (e.g. \"branded-lite\") that does not resolve to\n * a catalog entry — see `PlansService.resolveTemplate`/`validateTemplatePlatform`, which treat a\n * non-GUID value as an opaque template name rather than a catalog reference.\n * @maxLength 200\n */\n selectedTemplateId?: string | null;\n /**\n * The project this plan belongs to. Supplied by the client at creation.\n * @format GUID\n */\n projectId?: string | null;\n /**\n * Facts extracted from the existing business/site. Derived server-side and read-only to clients.\n * @readonly\n */\n businessContext?: BusinessContext;\n /** Visual identity extracted from the user's website. A starting point the user can edit. */\n brandIdentity?: BrandIdentity;\n /** The specification of the app to generate, produced from the plan prompt. */\n appSpec?: AppSpec;\n}\n\nexport enum Platform {\n /**\n * Himalaya Mobile (Wix SDUI/OTA content package): mobile apps built headlessly on the\n * on-demand remote machine via the himi CLI, instead of native iOS/Android pods.\n */\n HIMALAYA_MOBILE = 'HIMALAYA_MOBILE',\n}\n\n/** @enumType */\nexport type PlatformWithLiterals = Platform | 'HIMALAYA_MOBILE';\n\nexport enum PlanStatus {\n /** Plan is being assembled by the planning agent and the user. */\n DRAFT = 'DRAFT',\n /** Plan is complete and approved; ready for the generation pipeline. */\n FINALIZED = 'FINALIZED',\n}\n\n/** @enumType */\nexport type PlanStatusWithLiterals = PlanStatus | 'DRAFT' | 'FINALIZED';\n\n/**\n * Facts the server extracts about the existing business/site. The client reads these\n * to inform the app spec, but does not write them.\n */\nexport interface BusinessContext {\n /**\n * Business name as configured on the site.\n * @maxLength 200\n */\n businessName?: string;\n /**\n * Business logo image URL, extracted from the site (empty if it has none).\n * App icons are generated separately; AppSpec.app_icon_url stores the accepted app-icon reference.\n * @maxLength 2000\n */\n businessLogoUrl?: string;\n /**\n * Business description as configured on the site.\n * @maxLength 5000\n */\n businessDescription?: string;\n /**\n * Primary language code of the site (for example \"en\").\n * @maxLength 20\n */\n language?: string;\n /**\n * Country code of the site (for example \"IE\").\n * @maxLength 20\n */\n country?: string;\n /**\n * App definition IDs of Wix apps installed on the site (for example Bookings, eCommerce).\n * @maxSize 100\n * @maxLength 200\n */\n wixIntegrations?: string[];\n /**\n * Primary published URL of the current site, resolved by the server during plan creation.\n * Absent for older plans, unpublished sites, or when the URL cannot be resolved.\n * @readonly\n * @format WEB_URL\n */\n publicSiteUrl?: string | null;\n /**\n * What the server learned from the site's content before the first plan was generated: the\n * business, its goal and the content an app can show. Absent for older plans, when the analysis\n * is off for the site, or when it did not finish.\n * @readonly\n */\n analysis?: BusinessAnalysis;\n}\n\n/** A short analysis of the business, made from the site's content for the planning agent. */\nexport interface BusinessAnalysis {\n /**\n * Industry of the business, for example \"yoga studio\".\n * @maxLength 200\n */\n industry?: string;\n /**\n * Short factual summary of the business and what its site offers.\n * @maxLength 2000\n */\n summary?: string;\n /**\n * The main outcome the business wants from its customers, for example \"Get more class bookings\".\n * @maxLength 500\n */\n businessGoal?: string;\n /** How strongly the site's content supports business_goal. */\n businessGoalConfidence?: BusinessGoalConfidenceWithLiterals;\n /**\n * Who the business's customers are.\n * @maxLength 500\n */\n audience?: string;\n /**\n * Main products or services the business offers, as named on the site.\n * @maxSize 6\n * @maxLength 200\n */\n keyOfferings?: string[];\n /**\n * Site content of each kind that the generated app can show.\n * @maxSize 10\n */\n usableContent?: UsableContent[];\n /**\n * Names of the Wix business apps installed on the site, for example \"Wix Bookings\".\n * @maxSize 30\n * @maxLength 100\n */\n installedVerticals?: string[];\n /**\n * Short points the app should focus on to serve business_goal.\n * @maxSize 3\n * @maxLength 300\n */\n appFocus?: string[];\n /**\n * How the site's own text sounds to its customers, so the app's text can sound the same, for\n * example \"Warm and homely; short sentences; speaks to the customer as 'you'\".\n * @maxLength 500\n */\n toneOfVoice?: string;\n /**\n * Up to three short phrases quoted from the site that show its tone of voice.\n * @maxSize 3\n * @maxLength 200\n */\n toneExamples?: string[];\n}\n\nexport enum BusinessGoalConfidence {\n /** The site gives little or conflicting evidence for the goal. */\n LOW = 'LOW',\n /** The goal is a reasonable inference from the site. */\n MEDIUM = 'MEDIUM',\n /** The goal follows directly from strong evidence, such as a booking app with services. */\n HIGH = 'HIGH',\n}\n\n/** @enumType */\nexport type BusinessGoalConfidenceWithLiterals =\n | BusinessGoalConfidence\n | 'LOW'\n | 'MEDIUM'\n | 'HIGH';\n\n/** Site content of one kind that the generated app can show. */\nexport interface UsableContent {\n /** Where the content comes from. */\n source?: ContentSourceWithLiterals;\n /**\n * What the content is, for example \"12 yoga and pilates classes with prices\".\n * @maxLength 500\n */\n description?: string;\n /** Number of items found, when known. */\n itemCount?: number | null;\n}\n\nexport enum ContentSource {\n /** Wix Stores products. */\n STORES = 'STORES',\n /** Wix Bookings services. */\n BOOKINGS = 'BOOKINGS',\n /** Wix Events events. */\n EVENTS = 'EVENTS',\n /** Wix Blog posts. */\n BLOG = 'BLOG',\n /** Wix Pricing Plans plans. */\n PRICING_PLANS = 'PRICING_PLANS',\n /** Wix Restaurants menu items. */\n RESTAURANTS = 'RESTAURANTS',\n /** Wix CMS (Wix Data) collections. */\n CMS = 'CMS',\n /** Text of the published site's home page. */\n SITE_TEXT = 'SITE_TEXT',\n}\n\n/** @enumType */\nexport type ContentSourceWithLiterals =\n | ContentSource\n | 'STORES'\n | 'BOOKINGS'\n | 'EVENTS'\n | 'BLOG'\n | 'PRICING_PLANS'\n | 'RESTAURANTS'\n | 'CMS'\n | 'SITE_TEXT';\n\n/**\n * Visual identity extracted from the user's existing website. Serves as an editable\n * starting point for the generated app.\n */\nexport interface BrandIdentity {\n /**\n * Primary brand color.\n * @maxLength 100\n */\n primaryColor?: string;\n /**\n * Background color.\n * @maxLength 100\n */\n backgroundColor?: string;\n /**\n * Content (foreground) color.\n * @maxLength 100\n */\n contentColor?: string;\n /**\n * Heading typography / font.\n * @maxLength 100\n */\n headingFont?: string;\n /**\n * Body typography / font.\n * @maxLength 100\n */\n bodyFont?: string;\n}\n\n/**\n * The specification of the app to generate, produced from the plan prompt and confirmed\n * by the user.\n */\nexport interface AppSpec {\n /**\n * Display name of the app to generate.\n * @maxLength 200\n */\n appName?: string;\n /**\n * Description of the app to generate.\n * @maxLength 5000\n */\n appDescription?: string;\n /**\n * The business goal the app should serve.\n * @maxLength 2000\n */\n businessGoal?: string;\n /**\n * The target audience for the app.\n * @maxLength 2000\n */\n audience?: string;\n /**\n * Wix integrations to include, each with a display name, description, and capability tags.\n * @maxSize 100\n */\n wixIntegrations?: Integration[];\n /**\n * Third-party integrations to include, each with a display name, description, and capability tags.\n * @maxSize 100\n */\n thirdPartyIntegrations?: Integration[];\n /**\n * Features the app should provide, each with a title and description.\n * @maxSize 200\n */\n features?: Feature[];\n /**\n * Navigation screens for the app.\n * @maxSize 100\n * @maxLength 200\n */\n navigation?: string[];\n /**\n * Icon URL for the app to generate. Generated at plan creation from the initial prompt and\n * available business context. The client can replace it with an accepted RegenerateIcon result\n * via UpdatePlan. FinalizePlan retries generation when the icon is missing before starting a build.\n * @format WEB_URL\n * @maxLength 2000\n */\n appIconUrl?: string;\n}\n\n/**\n * An integration (Wix or third-party) the generated app should include, produced by the\n * planning agent from the prompt.\n */\nexport interface Integration {\n /**\n * Display name, for example \"Wix Stores\".\n * @maxLength 200\n */\n displayName?: string;\n /**\n * What the integration provides / why it is included.\n * @maxLength 2000\n */\n description?: string;\n /**\n * Sub-capabilities the integration includes, rendered as tags (for example \"Storefront\",\n * \"Cart & Checkout\").\n * @maxSize 50\n * @maxLength 100\n */\n tags?: string[];\n /**\n * Stable integration id / slug (for example \"wix-stores\"). For Wix integrations this is chosen\n * by the planning agent from the server-provided catalog of supported Wix integrations; empty\n * for free-form third-party integrations. The client keys the integration's icon off this id.\n * @maxLength 200\n */\n id?: string;\n}\n\n/** A capability the app should provide, produced by the planning agent from the prompt. */\nexport interface Feature {\n /**\n * Short feature title.\n * @maxLength 200\n */\n title?: string;\n /**\n * What the feature does, shown under the title.\n * @maxLength 2000\n */\n description?: string;\n}\n\nexport interface PlanFinalized {\n /**\n * ID of the Plan that was finalized.\n * @format GUID\n */\n planId?: string;\n /**\n * ID of the Project this plan belongs to. containers-projects reads the finalized plan back by\n * this id (one plan per project) when creating the initial generation job.\n * @format GUID\n */\n projectId?: string;\n /**\n * ID of the conversation that led to this plan being finalized.\n * @format GUID\n */\n conversationId?: string;\n}\n\nexport interface CreatePlanRequest {\n /** Plan to be created. */\n plan: Plan;\n}\n\nexport interface CreatePlanResponse {\n /** The created Plan. */\n plan?: Plan;\n}\n\nexport interface CreateAndGeneratePlanRequest {\n /** Plan to be created and generated. */\n plan: Plan;\n}\n\nexport interface CreateAndGeneratePlanResponse {\n /** The generated Plan. */\n plan?: Plan;\n /**\n * Follow-up questions from the planning agent to further build the plan.\n * @maxSize 50\n * @maxLength 4000\n */\n followUpQuestions?: string[];\n /**\n * Structured follow-up questions with selectable answer options. Superseding follow_up_questions;\n * that field is kept and populated in parallel for callers that have not migrated to this one.\n * @maxSize 4\n */\n followUpQuestionOptions?: FollowUpQuestion[];\n}\n\n/** A suggested follow-up question with answer options that the user can select. */\nexport interface FollowUpQuestion {\n /**\n * Question text.\n * @maxLength 4000\n */\n question?: string;\n /**\n * Answer options that the user can select.\n * @maxSize 10\n * @maxLength 200\n */\n options?: string[];\n}\n\nexport interface GetPlanRequest {\n /**\n * ID of the Plan to retrieve.\n * @format GUID\n */\n planId: string;\n}\n\nexport interface GetPlanResponse {\n /** The requested Plan. */\n plan?: Plan;\n}\n\nexport interface GetPlanByProjectIdRequest {\n /**\n * ID of the project whose Plan to retrieve.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface GetPlanByProjectIdResponse {\n /** The project's Plan. */\n plan?: Plan;\n}\n\nexport interface UpdatePlanRequest {\n /** Plan to be updated, may be partial. */\n plan: Plan;\n /**\n * Set of fields to update. Fields not in the mask are ignored.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdatePlanResponse {\n /** The updated Plan. */\n plan?: Plan;\n}\n\nexport interface DeletePlanRequest {\n /**\n * ID of the Plan to delete.\n * @format GUID\n */\n planId: string;\n}\n\nexport interface DeletePlanResponse {}\n\nexport interface GeneratePlanRequest {\n /**\n * ID of the Plan to generate.\n * @format GUID\n */\n planId: string;\n}\n\nexport interface GeneratePlanResponse {\n /** The generated Plan. */\n plan?: Plan;\n /**\n * Follow-up questions from the planning agent to further build the plan.\n * @maxSize 50\n * @maxLength 4000\n */\n followUpQuestions?: string[];\n /**\n * Structured follow-up questions with selectable answer options. Superseding follow_up_questions;\n * that field is kept and populated in parallel for callers that have not migrated to this one.\n * @maxSize 4\n */\n followUpQuestionOptions?: FollowUpQuestion[];\n}\n\nexport interface ModifyPlanRequest {\n /**\n * ID of the Plan to modify.\n * @format GUID\n */\n planId: string;\n /**\n * The user's answers to the previous iteration's follow-up questions.\n * @maxSize 50\n */\n answeredQuestions?: AnsweredQuestion[];\n /**\n * Optional additional request from the user to further shape the plan.\n * @maxLength 10000\n */\n userPrompt?: string | null;\n /**\n * Optional selected plan part. When present, only this boundary may change.\n * When absent, ModifyPlan keeps its existing whole-plan behavior.\n */\n planEditContext?: PlanEditContext;\n}\n\n/** A follow-up question from a previous iteration paired with the user's answer. */\nexport interface AnsweredQuestion {\n /**\n * The follow-up question that was asked.\n * @maxLength 4000\n */\n question?: string;\n /**\n * The user's answer to the question.\n * @maxLength 10000\n */\n answer?: string;\n}\n\n/** Identifies a part of the app plan. */\nexport interface PlanEditContext {\n /** Plan part type. */\n type?: PlanPartTypeWithLiterals;\n /**\n * Zero-based index of the item within the plan part.\n *\n * Used only when `type` is `FEATURE`, `SCREEN`, `WIX_INTEGRATION`, or `THIRD_PARTY_INTEGRATION`.\n * @max 199\n */\n index?: number | null;\n /**\n * Revision of the plan that the user saw when they selected the part. Used to reject changes to an outdated plan.\n * @min 1\n */\n planRevision?: string | null;\n}\n\nexport enum PlanPartType {\n /** App name. */\n APP_NAME = 'APP_NAME',\n /** App description. */\n APP_DESCRIPTION = 'APP_DESCRIPTION',\n /** Business goal of the app. */\n BUSINESS_GOAL = 'BUSINESS_GOAL',\n /** Target audience of the app. */\n AUDIENCE = 'AUDIENCE',\n /** A feature of the app. */\n FEATURE = 'FEATURE',\n /** A screen of the app. */\n SCREEN = 'SCREEN',\n /** An integration with a Wix app or service. */\n WIX_INTEGRATION = 'WIX_INTEGRATION',\n /** An integration with a third-party service. */\n THIRD_PARTY_INTEGRATION = 'THIRD_PARTY_INTEGRATION',\n /** Brand identity of the app, including colors and fonts. */\n BRAND_IDENTITY = 'BRAND_IDENTITY',\n /** Colors of the brand identity. Fonts don't change. */\n COLOR_THEME = 'COLOR_THEME',\n /** Fonts of the brand identity. Colors don't change. */\n TEXT_THEME = 'TEXT_THEME',\n}\n\n/** @enumType */\nexport type PlanPartTypeWithLiterals =\n | PlanPartType\n | 'APP_NAME'\n | 'APP_DESCRIPTION'\n | 'BUSINESS_GOAL'\n | 'AUDIENCE'\n | 'FEATURE'\n | 'SCREEN'\n | 'WIX_INTEGRATION'\n | 'THIRD_PARTY_INTEGRATION'\n | 'BRAND_IDENTITY'\n | 'COLOR_THEME'\n | 'TEXT_THEME';\n\nexport interface ModifyPlanResponse {\n /** The modified Plan. */\n plan?: Plan;\n /**\n * Follow-up questions the agent wants to ask to further refine the plan.\n * @maxSize 50\n * @maxLength 4000\n */\n followUpQuestions?: string[];\n /**\n * Structured follow-up questions with selectable answer options. Superseding follow_up_questions;\n * that field is kept and populated in parallel for callers that have not migrated to this one.\n * @maxSize 4\n */\n followUpQuestionOptions?: FollowUpQuestion[];\n}\n\nexport interface RegenerateIconRequest {\n /**\n * ID of the Plan whose icon to regenerate.\n * @format GUID\n */\n planId: string;\n /**\n * Free-text description of the desired icon, passed to the icon-generation prompt.\n * @maxLength 4000\n */\n prompt: string;\n}\n\nexport interface RegenerateIconResponse {\n /**\n * The generated icon URL. Not persisted — apply via UpdatePlan (app_spec.app_icon_url).\n * @maxLength 2000\n */\n iconUrl?: string;\n}\n\nexport interface FinalizePlanRequest {\n /**\n * ID of the Plan to finalize. Its project_id and selected_template_id (set at creation)\n * are used to drive generation.\n * @format GUID\n */\n planId: string;\n /**\n * ID of the conversation that led to this plan being finalized.\n * @format GUID\n */\n conversationId: string;\n}\n\nexport interface FinalizePlanResponse {\n /** The finalized Plan. */\n plan?: Plan;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixContainersPlansV1Plan from './containers-plans-v1-plan-plans.http.js';\nimport * as ambassadorWixContainersPlansV1PlanTypes from './containers-plans-v1-plan-plans.types.js';\nimport * as ambassadorWixContainersPlansV1PlanUniversalTypes from './containers-plans-v1-plan-plans.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createPlan(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixContainersPlansV1PlanUniversalTypes.CreatePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.CreatePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.CreatePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.CreatePlanResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.createPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createAndGeneratePlan(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixContainersPlansV1PlanUniversalTypes.CreateAndGeneratePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.CreateAndGeneratePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.CreateAndGeneratePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.CreateAndGeneratePlanResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.createAndGeneratePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/create-and-generate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlan(): __PublicMethodMetaInfo<\n 'GET',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.GetPlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.GetPlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions = ambassadorWixContainersPlansV1Plan.getPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/plans/{planId}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlanByProjectId(): __PublicMethodMetaInfo<\n 'GET',\n { projectId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPlanByProjectIdRequest,\n ambassadorWixContainersPlansV1PlanTypes.GetPlanByProjectIdRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPlanByProjectIdResponse,\n ambassadorWixContainersPlansV1PlanTypes.GetPlanByProjectIdResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.getPlanByProjectId(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/plans/by-project/{projectId}',\n pathParams: { projectId: 'projectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePlan(): __PublicMethodMetaInfo<\n 'PATCH',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.UpdatePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.UpdatePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.UpdatePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.UpdatePlanResponse\n> {\n const payload = { plan: { id: ':planId' } } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.updatePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/plans/{plan.id}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deletePlan(): __PublicMethodMetaInfo<\n 'DELETE',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.DeletePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.DeletePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.DeletePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.DeletePlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.deletePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/plans/{planId}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generatePlan(): __PublicMethodMetaInfo<\n 'POST',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.GeneratePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.GeneratePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.GeneratePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.GeneratePlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.generatePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/{planId}/generate',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function modifyPlan(): __PublicMethodMetaInfo<\n 'POST',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.ModifyPlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.ModifyPlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.ModifyPlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.ModifyPlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.modifyPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/{planId}/modify',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function regenerateIcon(): __PublicMethodMetaInfo<\n 'POST',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.RegenerateIconRequest,\n ambassadorWixContainersPlansV1PlanTypes.RegenerateIconRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.RegenerateIconResponse,\n ambassadorWixContainersPlansV1PlanTypes.RegenerateIconResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.regenerateIcon(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/{planId}/regenerate-icon',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function finalizePlan(): __PublicMethodMetaInfo<\n 'POST',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.FinalizePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.FinalizePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.FinalizePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.FinalizePlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.finalizePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/{planId}/finalize',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Plan as PlanOriginal,\n Platform as PlatformOriginal,\n PlatformWithLiterals as PlatformWithLiteralsOriginal,\n PlanStatus as PlanStatusOriginal,\n PlanStatusWithLiterals as PlanStatusWithLiteralsOriginal,\n BusinessContext as BusinessContextOriginal,\n BusinessAnalysis as BusinessAnalysisOriginal,\n BusinessGoalConfidence as BusinessGoalConfidenceOriginal,\n BusinessGoalConfidenceWithLiterals as BusinessGoalConfidenceWithLiteralsOriginal,\n UsableContent as UsableContentOriginal,\n ContentSource as ContentSourceOriginal,\n ContentSourceWithLiterals as ContentSourceWithLiteralsOriginal,\n BrandIdentity as BrandIdentityOriginal,\n AppSpec as AppSpecOriginal,\n Integration as IntegrationOriginal,\n Feature as FeatureOriginal,\n PlanFinalized as PlanFinalizedOriginal,\n CreatePlanRequest as CreatePlanRequestOriginal,\n CreatePlanResponse as CreatePlanResponseOriginal,\n CreateAndGeneratePlanRequest as CreateAndGeneratePlanRequestOriginal,\n CreateAndGeneratePlanResponse as CreateAndGeneratePlanResponseOriginal,\n FollowUpQuestion as FollowUpQuestionOriginal,\n GetPlanRequest as GetPlanRequestOriginal,\n GetPlanResponse as GetPlanResponseOriginal,\n GetPlanByProjectIdRequest as GetPlanByProjectIdRequestOriginal,\n GetPlanByProjectIdResponse as GetPlanByProjectIdResponseOriginal,\n UpdatePlanRequest as UpdatePlanRequestOriginal,\n UpdatePlanResponse as UpdatePlanResponseOriginal,\n DeletePlanRequest as DeletePlanRequestOriginal,\n DeletePlanResponse as DeletePlanResponseOriginal,\n GeneratePlanRequest as GeneratePlanRequestOriginal,\n GeneratePlanResponse as GeneratePlanResponseOriginal,\n ModifyPlanRequest as ModifyPlanRequestOriginal,\n AnsweredQuestion as AnsweredQuestionOriginal,\n PlanEditContext as PlanEditContextOriginal,\n PlanPartType as PlanPartTypeOriginal,\n PlanPartTypeWithLiterals as PlanPartTypeWithLiteralsOriginal,\n ModifyPlanResponse as ModifyPlanResponseOriginal,\n RegenerateIconRequest as RegenerateIconRequestOriginal,\n RegenerateIconResponse as RegenerateIconResponseOriginal,\n FinalizePlanRequest as FinalizePlanRequestOriginal,\n FinalizePlanResponse as FinalizePlanResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './containers-plans-v1-plan-plans.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,mBAAmB;AAAA,EAC3B,EAAE,MAAM,mBAAmB;AAC7B;AACA,IAAM,oBAAoB,CAAC,EAAE,MAAM,YAAY,CAAC;AAEhD,SAAS,8CACP,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I,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Platform","PlanStatus","BusinessGoalConfidence","ContentSource","PlanPartType","WebhookIdentityType","createPlan","createAndGeneratePlan","getPlan","getPlanByProjectId","updatePlan","deletePlan","generatePlan","modifyPlan","regenerateIcon","finalizePlan"]}
|
|
1
|
+
{"version":3,"sources":["../../src/containers-plans-v1-plan-plans.http.ts","../../src/containers-plans-v1-plan-plans.types.ts","../../src/containers-plans-v1-plan-plans.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n { path: 'plan.createdDate' },\n { path: 'plan.updatedDate' },\n];\nconst TRANSFORM_PATHS_1 = [{ path: 'fieldMask' }];\n\nfunction resolveWixContainersPlansV1ContainersPlansUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/containers-plans',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_containers_plans';\n\n/** Creates a new Plan. */\nexport function createPlan(payload: object): RequestOptionsFactory<any> {\n function __createPlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.CreatePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createPlan;\n}\n\n/** Creates a new Plan and immediately generates it using the planning agent. */\nexport function createAndGeneratePlan(\n payload: object\n): RequestOptionsFactory<any> {\n function __createAndGeneratePlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn:\n 'wix.containers.plans.v1.ContainersPlans.CreateAndGeneratePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/create-and-generate',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createAndGeneratePlan;\n}\n\n/** Retrieves a Plan by its ID. */\nexport function getPlan(payload: object): RequestOptionsFactory<any> {\n function __getPlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'GET' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.GetPlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPlan;\n}\n\n/**\n * Retrieves the (single) Plan for a project. Server-to-server: containers-projects uses this to\n * read the finalized plan when creating the initial generation job.\n */\nexport function getPlanByProjectId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPlanByProjectId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'GET' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.GetPlanByProjectId',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/by-project/{projectId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPlanByProjectId;\n}\n\n/** Updates a Plan. The current revision must be passed for optimistic locking. */\nexport function updatePlan(payload: object): RequestOptionsFactory<any> {\n function __updatePlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: TRANSFORM_PATHS_1,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'PATCH' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.UpdatePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{plan.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePlan;\n}\n\n/** Deletes a Plan. */\nexport function deletePlan(payload: object): RequestOptionsFactory<any> {\n function __deletePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'DELETE' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.DeletePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deletePlan;\n}\n\n/**\n * Generates the plan for an already-created Plan using the planning agent, from the plan's\n * extracted business context + brand identity, the initial prompt, the platform, and the\n * selected template. Populates app_spec (and brand_identity) and returns follow-up questions.\n */\nexport function generatePlan(payload: object): RequestOptionsFactory<any> {\n function __generatePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.GeneratePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}/generate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generatePlan;\n}\n\n/**\n * Modifies an existing Plan based on the user's answers to the previous iteration's\n * follow-up questions plus an optional additional prompt. Returns the updated plan and\n * any new follow-up questions.\n */\nexport function modifyPlan(payload: object): RequestOptionsFactory<any> {\n function __modifyPlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.ModifyPlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}/modify',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __modifyPlan;\n}\n\n/**\n * Generates a candidate icon for a Plan from user-provided text via PromptHub. The current\n * business_context (including any existing icon, sent as a reference image) is resolved\n * server-side; the caller supplies only the prompt. Does not persist the result — the caller\n * saves an accepted icon with UpdatePlan (app_spec.app_icon_url).\n */\nexport function regenerateIcon(payload: object): RequestOptionsFactory<any> {\n function __regenerateIcon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.RegenerateIcon',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}/regenerate-icon',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __regenerateIcon;\n}\n\n/**\n * Finalizes a Plan for generation, transitioning it to FINALIZED and emitting a PlanFinalized\n * action event that drives the linked Project into BUILDING. Generates an icon first if it is\n * missing. If icon generation fails, the Plan stays editable and finalization can be retried;\n * RegenerateIcon and UpdatePlan can also be used to accept an icon independently.\n */\nexport function finalizePlan(payload: object): RequestOptionsFactory<any> {\n function __finalizePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'POST' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.FinalizePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/plans/{planId}/finalize',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __finalizePlan;\n}\n\n/**\n * Returns a first request and suggestion chips for the site in the call scope, made from the\n * site's business: its content, business goal and tone. The server keeps one business profile per\n * site, checks the site for changes at most every 30 days, and runs the analysis again only when\n * the site changed or once a year. Empty, with source NO_SUGGESTIONS, when the feature is off for\n * the site, the site gives nothing to use, or the first profile is not ready yet; then show the\n * static first prompt.\n */\nexport function getPromptSuggestions(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPromptSuggestions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.plans.v1.plan',\n method: 'GET' as any,\n methodFqn: 'wix.containers.plans.v1.ContainersPlans.GetPromptSuggestions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersPlansV1ContainersPlansUrl({\n protoPath: '/v1/prompt-suggestions',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getPromptSuggestions;\n}\n","export interface Plan {\n /**\n * Plan ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Plan is updated.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Plan was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Plan was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * The user's initial free-text prompt that started the plan.\n * @maxLength 10000\n */\n initialPrompt?: string;\n /** Generation platform for the app. */\n platform?: PlatformWithLiterals;\n /** Lifecycle status of the Plan. */\n status?: PlanStatusWithLiterals;\n /**\n * Template chosen for generation. A Code Store `containers-templates` catalog GUID, or (for\n * HIMALAYA_MOBILE) a himi starter template name (e.g. \"branded-lite\") that does not resolve to\n * a catalog entry — see `PlansService.resolveTemplate`/`validateTemplatePlatform`, which treat a\n * non-GUID value as an opaque template name rather than a catalog reference.\n * @maxLength 200\n */\n selectedTemplateId?: string | null;\n /**\n * The project this plan belongs to. Supplied by the client at creation.\n * @format GUID\n */\n projectId?: string | null;\n /**\n * Facts extracted from the existing business/site. Derived server-side and read-only to clients.\n * @readonly\n */\n businessContext?: BusinessContext;\n /** Visual identity extracted from the user's website. A starting point the user can edit. */\n brandIdentity?: BrandIdentity;\n /** The specification of the app to generate, produced from the plan prompt. */\n appSpec?: AppSpec;\n}\n\nexport enum Platform {\n /**\n * Himalaya Mobile (Wix SDUI/OTA content package): mobile apps built headlessly on the\n * on-demand remote machine via the himi CLI, instead of native iOS/Android pods.\n */\n HIMALAYA_MOBILE = 'HIMALAYA_MOBILE',\n}\n\n/** @enumType */\nexport type PlatformWithLiterals = Platform | 'HIMALAYA_MOBILE';\n\nexport enum PlanStatus {\n /** Plan is being assembled by the planning agent and the user. */\n DRAFT = 'DRAFT',\n /** Plan is complete and approved; ready for the generation pipeline. */\n FINALIZED = 'FINALIZED',\n}\n\n/** @enumType */\nexport type PlanStatusWithLiterals = PlanStatus | 'DRAFT' | 'FINALIZED';\n\n/**\n * Facts the server extracts about the existing business/site. The client reads these\n * to inform the app spec, but does not write them.\n */\nexport interface BusinessContext {\n /**\n * Business name as configured on the site.\n * @maxLength 200\n */\n businessName?: string;\n /**\n * Business logo image URL, extracted from the site (empty if it has none).\n * App icons are generated separately; AppSpec.app_icon_url stores the accepted app-icon reference.\n * @maxLength 2000\n */\n businessLogoUrl?: string;\n /**\n * Business description as configured on the site.\n * @maxLength 5000\n */\n businessDescription?: string;\n /**\n * Primary language code of the site (for example \"en\").\n * @maxLength 20\n */\n language?: string;\n /**\n * Country code of the site (for example \"IE\").\n * @maxLength 20\n */\n country?: string;\n /**\n * App definition IDs of Wix apps installed on the site (for example Bookings, eCommerce).\n * @maxSize 100\n * @maxLength 200\n */\n wixIntegrations?: string[];\n /**\n * Primary published URL of the current site, resolved by the server during plan creation.\n * Absent for older plans, unpublished sites, or when the URL cannot be resolved.\n * @readonly\n * @format WEB_URL\n */\n publicSiteUrl?: string | null;\n /**\n * What the server learned from the site's content before the first plan was generated: the\n * business, its goal and the content an app can show. Absent for older plans, when the analysis\n * is off for the site, or when it did not finish.\n * @readonly\n */\n analysis?: BusinessAnalysis;\n}\n\n/** A short analysis of the business, made from the site's content for the planning agent. */\nexport interface BusinessAnalysis {\n /**\n * Industry of the business, for example \"yoga studio\".\n * @maxLength 200\n */\n industry?: string;\n /**\n * Short factual summary of the business and what its site offers.\n * @maxLength 2000\n */\n summary?: string;\n /**\n * The main outcome the business wants from its customers, for example \"Get more class bookings\".\n * @maxLength 500\n */\n businessGoal?: string;\n /** How strongly the site's content supports business_goal. */\n businessGoalConfidence?: BusinessGoalConfidenceWithLiterals;\n /**\n * Who the business's customers are.\n * @maxLength 500\n */\n audience?: string;\n /**\n * Main products or services the business offers, as named on the site.\n * @maxSize 6\n * @maxLength 200\n */\n keyOfferings?: string[];\n /**\n * Site content of each kind that the generated app can show.\n * @maxSize 10\n */\n usableContent?: UsableContent[];\n /**\n * Names of the Wix business apps installed on the site, for example \"Wix Bookings\".\n * @maxSize 30\n * @maxLength 100\n */\n installedVerticals?: string[];\n /**\n * Short points the app should focus on to serve business_goal.\n * @maxSize 3\n * @maxLength 300\n */\n appFocus?: string[];\n /**\n * How the site's own text sounds to its customers, so the app's text can sound the same, for\n * example \"Warm and homely; short sentences; speaks to the customer as 'you'\".\n * @maxLength 500\n */\n toneOfVoice?: string;\n /**\n * Up to three short phrases quoted from the site that show its tone of voice.\n * @maxSize 3\n * @maxLength 200\n */\n toneExamples?: string[];\n}\n\nexport enum BusinessGoalConfidence {\n /** The site gives little or conflicting evidence for the goal. */\n LOW = 'LOW',\n /** The goal is a reasonable inference from the site. */\n MEDIUM = 'MEDIUM',\n /** The goal follows directly from strong evidence, such as a booking app with services. */\n HIGH = 'HIGH',\n}\n\n/** @enumType */\nexport type BusinessGoalConfidenceWithLiterals =\n | BusinessGoalConfidence\n | 'LOW'\n | 'MEDIUM'\n | 'HIGH';\n\n/** Site content of one kind that the generated app can show. */\nexport interface UsableContent {\n /** Where the content comes from. */\n source?: ContentSourceWithLiterals;\n /**\n * What the content is, for example \"12 yoga and pilates classes with prices\".\n * @maxLength 500\n */\n description?: string;\n /** Number of items found, when known. */\n itemCount?: number | null;\n}\n\nexport enum ContentSource {\n /** Wix Stores products. */\n STORES = 'STORES',\n /** Wix Bookings services. */\n BOOKINGS = 'BOOKINGS',\n /** Wix Events events. */\n EVENTS = 'EVENTS',\n /** Wix Blog posts. */\n BLOG = 'BLOG',\n /** Wix Pricing Plans plans. */\n PRICING_PLANS = 'PRICING_PLANS',\n /** Wix Restaurants menu items. */\n RESTAURANTS = 'RESTAURANTS',\n /** Wix CMS (Wix Data) collections. */\n CMS = 'CMS',\n /** Text of the published site's home page. */\n SITE_TEXT = 'SITE_TEXT',\n}\n\n/** @enumType */\nexport type ContentSourceWithLiterals =\n | ContentSource\n | 'STORES'\n | 'BOOKINGS'\n | 'EVENTS'\n | 'BLOG'\n | 'PRICING_PLANS'\n | 'RESTAURANTS'\n | 'CMS'\n | 'SITE_TEXT';\n\n/**\n * Visual identity extracted from the user's existing website. Serves as an editable\n * starting point for the generated app.\n */\nexport interface BrandIdentity {\n /**\n * Primary brand color.\n * @maxLength 100\n */\n primaryColor?: string;\n /**\n * Background color.\n * @maxLength 100\n */\n backgroundColor?: string;\n /**\n * Content (foreground) color.\n * @maxLength 100\n */\n contentColor?: string;\n /**\n * Heading typography / font.\n * @maxLength 100\n */\n headingFont?: string;\n /**\n * Body typography / font.\n * @maxLength 100\n */\n bodyFont?: string;\n}\n\n/**\n * The specification of the app to generate, produced from the plan prompt and confirmed\n * by the user.\n */\nexport interface AppSpec {\n /**\n * Display name of the app to generate.\n * @maxLength 200\n */\n appName?: string;\n /**\n * Description of the app to generate.\n * @maxLength 5000\n */\n appDescription?: string;\n /**\n * The business goal the app should serve.\n * @maxLength 2000\n */\n businessGoal?: string;\n /**\n * The target audience for the app.\n * @maxLength 2000\n */\n audience?: string;\n /**\n * Wix integrations to include, each with a display name, description, and capability tags.\n * @maxSize 100\n */\n wixIntegrations?: Integration[];\n /**\n * Third-party integrations to include, each with a display name, description, and capability tags.\n * @maxSize 100\n */\n thirdPartyIntegrations?: Integration[];\n /**\n * Features the app should provide, each with a title and description.\n * @maxSize 200\n */\n features?: Feature[];\n /**\n * Navigation screens for the app.\n * @maxSize 100\n * @maxLength 200\n */\n navigation?: string[];\n /**\n * Icon URL for the app to generate. Generated at plan creation from the initial prompt and\n * available business context. The client can replace it with an accepted RegenerateIcon result\n * via UpdatePlan. FinalizePlan retries generation when the icon is missing before starting a build.\n * @format WEB_URL\n * @maxLength 2000\n */\n appIconUrl?: string;\n}\n\n/**\n * An integration (Wix or third-party) the generated app should include, produced by the\n * planning agent from the prompt.\n */\nexport interface Integration {\n /**\n * Display name, for example \"Wix Stores\".\n * @maxLength 200\n */\n displayName?: string;\n /**\n * What the integration provides / why it is included.\n * @maxLength 2000\n */\n description?: string;\n /**\n * Sub-capabilities the integration includes, rendered as tags (for example \"Storefront\",\n * \"Cart & Checkout\").\n * @maxSize 50\n * @maxLength 100\n */\n tags?: string[];\n /**\n * Stable integration id / slug (for example \"wix-stores\"). For Wix integrations this is chosen\n * by the planning agent from the server-provided catalog of supported Wix integrations; empty\n * for free-form third-party integrations. The client keys the integration's icon off this id.\n * @maxLength 200\n */\n id?: string;\n}\n\n/** A capability the app should provide, produced by the planning agent from the prompt. */\nexport interface Feature {\n /**\n * Short feature title.\n * @maxLength 200\n */\n title?: string;\n /**\n * What the feature does, shown under the title.\n * @maxLength 2000\n */\n description?: string;\n}\n\nexport interface PlanFinalized {\n /**\n * ID of the Plan that was finalized.\n * @format GUID\n */\n planId?: string;\n /**\n * ID of the Project this plan belongs to. containers-projects reads the finalized plan back by\n * this id (one plan per project) when creating the initial generation job.\n * @format GUID\n */\n projectId?: string;\n /**\n * ID of the conversation that led to this plan being finalized.\n * @format GUID\n */\n conversationId?: string;\n}\n\nexport interface CreatePlanRequest {\n /** Plan to be created. */\n plan: Plan;\n}\n\nexport interface CreatePlanResponse {\n /** The created Plan. */\n plan?: Plan;\n}\n\nexport interface CreateAndGeneratePlanRequest {\n /** Plan to be created and generated. */\n plan: Plan;\n}\n\nexport interface CreateAndGeneratePlanResponse {\n /** The generated Plan. */\n plan?: Plan;\n /**\n * Follow-up questions from the planning agent to further build the plan.\n * @maxSize 50\n * @maxLength 4000\n */\n followUpQuestions?: string[];\n /**\n * Structured follow-up questions with selectable answer options. Superseding follow_up_questions;\n * that field is kept and populated in parallel for callers that have not migrated to this one.\n * @maxSize 4\n */\n followUpQuestionOptions?: FollowUpQuestion[];\n}\n\n/** A suggested follow-up question with answer options that the user can select. */\nexport interface FollowUpQuestion {\n /**\n * Question text.\n * @maxLength 4000\n */\n question?: string;\n /**\n * Answer options that the user can select.\n * @maxSize 10\n * @maxLength 200\n */\n options?: string[];\n}\n\nexport interface GetPlanRequest {\n /**\n * ID of the Plan to retrieve.\n * @format GUID\n */\n planId: string;\n}\n\nexport interface GetPlanResponse {\n /** The requested Plan. */\n plan?: Plan;\n}\n\nexport interface GetPlanByProjectIdRequest {\n /**\n * ID of the project whose Plan to retrieve.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface GetPlanByProjectIdResponse {\n /** The project's Plan. */\n plan?: Plan;\n}\n\nexport interface UpdatePlanRequest {\n /** Plan to be updated, may be partial. */\n plan: Plan;\n /**\n * Set of fields to update. Fields not in the mask are ignored.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdatePlanResponse {\n /** The updated Plan. */\n plan?: Plan;\n}\n\nexport interface DeletePlanRequest {\n /**\n * ID of the Plan to delete.\n * @format GUID\n */\n planId: string;\n}\n\nexport interface DeletePlanResponse {}\n\nexport interface GeneratePlanRequest {\n /**\n * ID of the Plan to generate.\n * @format GUID\n */\n planId: string;\n}\n\nexport interface GeneratePlanResponse {\n /** The generated Plan. */\n plan?: Plan;\n /**\n * Follow-up questions from the planning agent to further build the plan.\n * @maxSize 50\n * @maxLength 4000\n */\n followUpQuestions?: string[];\n /**\n * Structured follow-up questions with selectable answer options. Superseding follow_up_questions;\n * that field is kept and populated in parallel for callers that have not migrated to this one.\n * @maxSize 4\n */\n followUpQuestionOptions?: FollowUpQuestion[];\n}\n\nexport interface ModifyPlanRequest {\n /**\n * ID of the Plan to modify.\n * @format GUID\n */\n planId: string;\n /**\n * The user's answers to the previous iteration's follow-up questions.\n * @maxSize 50\n */\n answeredQuestions?: AnsweredQuestion[];\n /**\n * Optional additional request from the user to further shape the plan.\n * @maxLength 10000\n */\n userPrompt?: string | null;\n /**\n * Optional selected plan part. When present, only this boundary may change.\n * When absent, ModifyPlan keeps its existing whole-plan behavior.\n */\n planEditContext?: PlanEditContext;\n}\n\n/** A follow-up question from a previous iteration paired with the user's answer. */\nexport interface AnsweredQuestion {\n /**\n * The follow-up question that was asked.\n * @maxLength 4000\n */\n question?: string;\n /**\n * The user's answer to the question.\n * @maxLength 10000\n */\n answer?: string;\n}\n\n/** Identifies a part of the app plan. */\nexport interface PlanEditContext {\n /** Plan part type. */\n type?: PlanPartTypeWithLiterals;\n /**\n * Zero-based index of the item within the plan part.\n *\n * Used only when `type` is `FEATURE`, `SCREEN`, `WIX_INTEGRATION`, or `THIRD_PARTY_INTEGRATION`.\n * @max 199\n */\n index?: number | null;\n /**\n * Revision of the plan that the user saw when they selected the part. Used to reject changes to an outdated plan.\n * @min 1\n */\n planRevision?: string | null;\n}\n\nexport enum PlanPartType {\n /** App name. */\n APP_NAME = 'APP_NAME',\n /** App description. */\n APP_DESCRIPTION = 'APP_DESCRIPTION',\n /** Business goal of the app. */\n BUSINESS_GOAL = 'BUSINESS_GOAL',\n /** Target audience of the app. */\n AUDIENCE = 'AUDIENCE',\n /** A feature of the app. */\n FEATURE = 'FEATURE',\n /** A screen of the app. */\n SCREEN = 'SCREEN',\n /** An integration with a Wix app or service. */\n WIX_INTEGRATION = 'WIX_INTEGRATION',\n /** An integration with a third-party service. */\n THIRD_PARTY_INTEGRATION = 'THIRD_PARTY_INTEGRATION',\n /** Brand identity of the app, including colors and fonts. */\n BRAND_IDENTITY = 'BRAND_IDENTITY',\n /** Colors of the brand identity. Fonts don't change. */\n COLOR_THEME = 'COLOR_THEME',\n /** Fonts of the brand identity. Colors don't change. */\n TEXT_THEME = 'TEXT_THEME',\n}\n\n/** @enumType */\nexport type PlanPartTypeWithLiterals =\n | PlanPartType\n | 'APP_NAME'\n | 'APP_DESCRIPTION'\n | 'BUSINESS_GOAL'\n | 'AUDIENCE'\n | 'FEATURE'\n | 'SCREEN'\n | 'WIX_INTEGRATION'\n | 'THIRD_PARTY_INTEGRATION'\n | 'BRAND_IDENTITY'\n | 'COLOR_THEME'\n | 'TEXT_THEME';\n\nexport interface ModifyPlanResponse {\n /** The modified Plan. */\n plan?: Plan;\n /**\n * Follow-up questions the agent wants to ask to further refine the plan.\n * @maxSize 50\n * @maxLength 4000\n */\n followUpQuestions?: string[];\n /**\n * Structured follow-up questions with selectable answer options. Superseding follow_up_questions;\n * that field is kept and populated in parallel for callers that have not migrated to this one.\n * @maxSize 4\n */\n followUpQuestionOptions?: FollowUpQuestion[];\n}\n\nexport interface RegenerateIconRequest {\n /**\n * ID of the Plan whose icon to regenerate.\n * @format GUID\n */\n planId: string;\n /**\n * Free-text description of the desired icon, passed to the icon-generation prompt.\n * @maxLength 4000\n */\n prompt: string;\n}\n\nexport interface RegenerateIconResponse {\n /**\n * The generated icon URL. Not persisted — apply via UpdatePlan (app_spec.app_icon_url).\n * @maxLength 2000\n */\n iconUrl?: string;\n}\n\nexport interface FinalizePlanRequest {\n /**\n * ID of the Plan to finalize. Its project_id and selected_template_id (set at creation)\n * are used to drive generation.\n * @format GUID\n */\n planId: string;\n /**\n * ID of the conversation that led to this plan being finalized.\n * @format GUID\n */\n conversationId: string;\n}\n\nexport interface FinalizePlanResponse {\n /** The finalized Plan. */\n plan?: Plan;\n}\n\nexport interface GetPromptSuggestionsRequest {}\n\nexport interface GetPromptSuggestionsResponse {\n /**\n * Name of the business the suggestions are for. Empty when unknown.\n * @maxLength 200\n */\n businessName?: string;\n /**\n * The owner's first request, ready to send or to edit. Empty when there are no suggestions.\n * @maxLength 500\n */\n defaultPrompt?: string;\n /**\n * App ideas for this business, strongest first: none, or 3 to 5.\n * @maxSize 5\n */\n suggestions?: PromptSuggestion[];\n /** Where the suggestions come from. */\n source?: PromptSuggestionsSourceWithLiterals;\n}\n\n/** One suggestion chip. */\nexport interface PromptSuggestion {\n /**\n * Short chip text, one line on a phone, for example \"Workshop booking app\".\n * @maxLength 42\n */\n label?: string;\n /**\n * The owner's full request that the chip puts in the prompt box.\n * @maxLength 400\n */\n prompt?: string;\n}\n\nexport enum PromptSuggestionsSource {\n /** Made from the site's business profile. */\n BUSINESS_PROFILE = 'BUSINESS_PROFILE',\n /** No suggestions: show the static first prompt. */\n NO_SUGGESTIONS = 'NO_SUGGESTIONS',\n}\n\n/** @enumType */\nexport type PromptSuggestionsSourceWithLiterals =\n | PromptSuggestionsSource\n | 'BUSINESS_PROFILE'\n | 'NO_SUGGESTIONS';\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixContainersPlansV1Plan from './containers-plans-v1-plan-plans.http.js';\nimport * as ambassadorWixContainersPlansV1PlanTypes from './containers-plans-v1-plan-plans.types.js';\nimport * as ambassadorWixContainersPlansV1PlanUniversalTypes from './containers-plans-v1-plan-plans.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createPlan(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixContainersPlansV1PlanUniversalTypes.CreatePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.CreatePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.CreatePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.CreatePlanResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.createPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createAndGeneratePlan(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixContainersPlansV1PlanUniversalTypes.CreateAndGeneratePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.CreateAndGeneratePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.CreateAndGeneratePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.CreateAndGeneratePlanResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.createAndGeneratePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/create-and-generate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlan(): __PublicMethodMetaInfo<\n 'GET',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.GetPlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.GetPlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions = ambassadorWixContainersPlansV1Plan.getPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/plans/{planId}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlanByProjectId(): __PublicMethodMetaInfo<\n 'GET',\n { projectId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPlanByProjectIdRequest,\n ambassadorWixContainersPlansV1PlanTypes.GetPlanByProjectIdRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPlanByProjectIdResponse,\n ambassadorWixContainersPlansV1PlanTypes.GetPlanByProjectIdResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.getPlanByProjectId(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/plans/by-project/{projectId}',\n pathParams: { projectId: 'projectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePlan(): __PublicMethodMetaInfo<\n 'PATCH',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.UpdatePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.UpdatePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.UpdatePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.UpdatePlanResponse\n> {\n const payload = { plan: { id: ':planId' } } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.updatePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/plans/{plan.id}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deletePlan(): __PublicMethodMetaInfo<\n 'DELETE',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.DeletePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.DeletePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.DeletePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.DeletePlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.deletePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/plans/{planId}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generatePlan(): __PublicMethodMetaInfo<\n 'POST',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.GeneratePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.GeneratePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.GeneratePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.GeneratePlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.generatePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/{planId}/generate',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function modifyPlan(): __PublicMethodMetaInfo<\n 'POST',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.ModifyPlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.ModifyPlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.ModifyPlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.ModifyPlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.modifyPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/{planId}/modify',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function regenerateIcon(): __PublicMethodMetaInfo<\n 'POST',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.RegenerateIconRequest,\n ambassadorWixContainersPlansV1PlanTypes.RegenerateIconRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.RegenerateIconResponse,\n ambassadorWixContainersPlansV1PlanTypes.RegenerateIconResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.regenerateIcon(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/{planId}/regenerate-icon',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function finalizePlan(): __PublicMethodMetaInfo<\n 'POST',\n { planId: string },\n ambassadorWixContainersPlansV1PlanUniversalTypes.FinalizePlanRequest,\n ambassadorWixContainersPlansV1PlanTypes.FinalizePlanRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.FinalizePlanResponse,\n ambassadorWixContainersPlansV1PlanTypes.FinalizePlanResponse\n> {\n const payload = { planId: ':planId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.finalizePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/plans/{planId}/finalize',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPromptSuggestions(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPromptSuggestionsRequest,\n ambassadorWixContainersPlansV1PlanTypes.GetPromptSuggestionsRequest,\n ambassadorWixContainersPlansV1PlanUniversalTypes.GetPromptSuggestionsResponse,\n ambassadorWixContainersPlansV1PlanTypes.GetPromptSuggestionsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixContainersPlansV1Plan.getPromptSuggestions(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/prompt-suggestions',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Plan as PlanOriginal,\n Platform as PlatformOriginal,\n PlatformWithLiterals as PlatformWithLiteralsOriginal,\n PlanStatus as PlanStatusOriginal,\n PlanStatusWithLiterals as PlanStatusWithLiteralsOriginal,\n BusinessContext as BusinessContextOriginal,\n BusinessAnalysis as BusinessAnalysisOriginal,\n BusinessGoalConfidence as BusinessGoalConfidenceOriginal,\n BusinessGoalConfidenceWithLiterals as BusinessGoalConfidenceWithLiteralsOriginal,\n UsableContent as UsableContentOriginal,\n ContentSource as ContentSourceOriginal,\n ContentSourceWithLiterals as ContentSourceWithLiteralsOriginal,\n BrandIdentity as BrandIdentityOriginal,\n AppSpec as AppSpecOriginal,\n Integration as IntegrationOriginal,\n Feature as FeatureOriginal,\n PlanFinalized as PlanFinalizedOriginal,\n CreatePlanRequest as CreatePlanRequestOriginal,\n CreatePlanResponse as CreatePlanResponseOriginal,\n CreateAndGeneratePlanRequest as CreateAndGeneratePlanRequestOriginal,\n CreateAndGeneratePlanResponse as CreateAndGeneratePlanResponseOriginal,\n FollowUpQuestion as FollowUpQuestionOriginal,\n GetPlanRequest as GetPlanRequestOriginal,\n GetPlanResponse as GetPlanResponseOriginal,\n GetPlanByProjectIdRequest as GetPlanByProjectIdRequestOriginal,\n GetPlanByProjectIdResponse as GetPlanByProjectIdResponseOriginal,\n UpdatePlanRequest as UpdatePlanRequestOriginal,\n UpdatePlanResponse as UpdatePlanResponseOriginal,\n DeletePlanRequest as DeletePlanRequestOriginal,\n DeletePlanResponse as DeletePlanResponseOriginal,\n GeneratePlanRequest as GeneratePlanRequestOriginal,\n GeneratePlanResponse as GeneratePlanResponseOriginal,\n ModifyPlanRequest as ModifyPlanRequestOriginal,\n AnsweredQuestion as AnsweredQuestionOriginal,\n PlanEditContext as PlanEditContextOriginal,\n PlanPartType as PlanPartTypeOriginal,\n PlanPartTypeWithLiterals as PlanPartTypeWithLiteralsOriginal,\n ModifyPlanResponse as ModifyPlanResponseOriginal,\n RegenerateIconRequest as RegenerateIconRequestOriginal,\n RegenerateIconResponse as RegenerateIconResponseOriginal,\n FinalizePlanRequest as FinalizePlanRequestOriginal,\n FinalizePlanResponse as FinalizePlanResponseOriginal,\n GetPromptSuggestionsRequest as GetPromptSuggestionsRequestOriginal,\n GetPromptSuggestionsResponse as GetPromptSuggestionsResponseOriginal,\n PromptSuggestion as PromptSuggestionOriginal,\n PromptSuggestionsSource as PromptSuggestionsSourceOriginal,\n PromptSuggestionsSourceWithLiterals as PromptSuggestionsSourceWithLiteralsOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoO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AAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Platform","PlanStatus","BusinessGoalConfidence","ContentSource","PlanPartType","PromptSuggestionsSource","WebhookIdentityType","createPlan","createAndGeneratePlan","getPlan","getPlanByProjectId","updatePlan","deletePlan","generatePlan","modifyPlan","regenerateIcon","finalizePlan","getPromptSuggestions"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Plan, CreateAndGeneratePlanResponse, GetPlanByProjectIdResponse, UpdatePlan, GeneratePlanResponse, ModifyPlanOptions, ModifyPlanResponse, RegenerateIconResponse, FinalizePlanResponse } from './index.typings.js';
|
|
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.js';
|
|
2
|
+
import { Plan, CreateAndGeneratePlanResponse, GetPlanByProjectIdResponse, UpdatePlan, GeneratePlanResponse, ModifyPlanOptions, ModifyPlanResponse, RegenerateIconResponse, FinalizePlanResponse, GetPromptSuggestionsResponse } from './index.typings.js';
|
|
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, GetPromptSuggestionsRequest, IdentificationData, IdentificationDataIdOneOf, Integration, MessageEnvelope, ModifyPlanRequest, PlanEditContext, PlanFinalized, PlanPartType, PlanPartTypeWithLiterals, PlanStatus, PlanStatusWithLiterals, Platform, PlatformWithLiterals, PromptSuggestion, PromptSuggestionsSource, PromptSuggestionsSourceWithLiterals, RegenerateIconRequest, RestoreInfo, UpdatePlanRequest, UpdatePlanResponse, UsableContent, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
/** @internal */
|
|
6
6
|
declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature;
|
|
@@ -109,6 +109,19 @@ interface FinalizePlanSignature {
|
|
|
109
109
|
*/
|
|
110
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>>;
|
|
111
111
|
}
|
|
112
|
+
/** @internal */
|
|
113
|
+
declare function getPromptSuggestions$1(httpClient: HttpClient): GetPromptSuggestionsSignature;
|
|
114
|
+
interface GetPromptSuggestionsSignature {
|
|
115
|
+
/**
|
|
116
|
+
* Returns a first request and suggestion chips for the site in the call scope, made from the
|
|
117
|
+
* site's business: its content, business goal and tone. The server keeps one business profile per
|
|
118
|
+
* site, checks the site for changes at most every 30 days, and runs the analysis again only when
|
|
119
|
+
* the site changed or once a year. Empty, with source NO_SUGGESTIONS, when the feature is off for
|
|
120
|
+
* the site, the site gives nothing to use, or the first profile is not ready yet; then show the
|
|
121
|
+
* static first prompt.
|
|
122
|
+
*/
|
|
123
|
+
(): Promise<NonNullablePaths<GetPromptSuggestionsResponse, `businessName` | `defaultPrompt` | `suggestions` | `suggestions.${number}.label` | `suggestions.${number}.prompt` | `source`, 2>>;
|
|
124
|
+
}
|
|
112
125
|
|
|
113
126
|
/** @internal */
|
|
114
127
|
declare const createPlan: MaybeContext<BuildRESTFunction<typeof createPlan$1> & typeof createPlan$1>;
|
|
@@ -130,5 +143,7 @@ declare const modifyPlan: MaybeContext<BuildRESTFunction<typeof modifyPlan$1> &
|
|
|
130
143
|
declare const regenerateIcon: MaybeContext<BuildRESTFunction<typeof regenerateIcon$1> & typeof regenerateIcon$1>;
|
|
131
144
|
/** @internal */
|
|
132
145
|
declare const finalizePlan: MaybeContext<BuildRESTFunction<typeof finalizePlan$1> & typeof finalizePlan$1>;
|
|
146
|
+
/** @internal */
|
|
147
|
+
declare const getPromptSuggestions: MaybeContext<BuildRESTFunction<typeof getPromptSuggestions$1> & typeof getPromptSuggestions$1>;
|
|
133
148
|
|
|
134
|
-
export { CreateAndGeneratePlanResponse, FinalizePlanResponse, GeneratePlanResponse, GetPlanByProjectIdResponse, ModifyPlanOptions, ModifyPlanResponse, Plan, RegenerateIconResponse, UpdatePlan, createAndGeneratePlan, createPlan, deletePlan, finalizePlan, generatePlan, getPlan, getPlanByProjectId, modifyPlan, regenerateIcon, updatePlan };
|
|
149
|
+
export { CreateAndGeneratePlanResponse, FinalizePlanResponse, GeneratePlanResponse, GetPlanByProjectIdResponse, GetPromptSuggestionsResponse, ModifyPlanOptions, ModifyPlanResponse, Plan, RegenerateIconResponse, UpdatePlan, createAndGeneratePlan, createPlan, deletePlan, finalizePlan, generatePlan, getPlan, getPlanByProjectId, getPromptSuggestions, modifyPlan, regenerateIcon, updatePlan };
|
|
@@ -611,6 +611,48 @@ interface FinalizePlanResponse {
|
|
|
611
611
|
/** The finalized Plan. */
|
|
612
612
|
plan?: Plan;
|
|
613
613
|
}
|
|
614
|
+
interface GetPromptSuggestionsRequest {
|
|
615
|
+
}
|
|
616
|
+
interface GetPromptSuggestionsResponse {
|
|
617
|
+
/**
|
|
618
|
+
* Name of the business the suggestions are for. Empty when unknown.
|
|
619
|
+
* @maxLength 200
|
|
620
|
+
*/
|
|
621
|
+
businessName?: string;
|
|
622
|
+
/**
|
|
623
|
+
* The owner's first request, ready to send or to edit. Empty when there are no suggestions.
|
|
624
|
+
* @maxLength 500
|
|
625
|
+
*/
|
|
626
|
+
defaultPrompt?: string;
|
|
627
|
+
/**
|
|
628
|
+
* App ideas for this business, strongest first: none, or 3 to 5.
|
|
629
|
+
* @maxSize 5
|
|
630
|
+
*/
|
|
631
|
+
suggestions?: PromptSuggestion[];
|
|
632
|
+
/** Where the suggestions come from. */
|
|
633
|
+
source?: PromptSuggestionsSourceWithLiterals;
|
|
634
|
+
}
|
|
635
|
+
/** One suggestion chip. */
|
|
636
|
+
interface PromptSuggestion {
|
|
637
|
+
/**
|
|
638
|
+
* Short chip text, one line on a phone, for example "Workshop booking app".
|
|
639
|
+
* @maxLength 42
|
|
640
|
+
*/
|
|
641
|
+
label?: string;
|
|
642
|
+
/**
|
|
643
|
+
* The owner's full request that the chip puts in the prompt box.
|
|
644
|
+
* @maxLength 400
|
|
645
|
+
*/
|
|
646
|
+
prompt?: string;
|
|
647
|
+
}
|
|
648
|
+
declare enum PromptSuggestionsSource {
|
|
649
|
+
/** Made from the site's business profile. */
|
|
650
|
+
BUSINESS_PROFILE = "BUSINESS_PROFILE",
|
|
651
|
+
/** No suggestions: show the static first prompt. */
|
|
652
|
+
NO_SUGGESTIONS = "NO_SUGGESTIONS"
|
|
653
|
+
}
|
|
654
|
+
/** @enumType */
|
|
655
|
+
type PromptSuggestionsSourceWithLiterals = PromptSuggestionsSource | 'BUSINESS_PROFILE' | 'NO_SUGGESTIONS';
|
|
614
656
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
615
657
|
createdEvent?: EntityCreatedEvent;
|
|
616
658
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -964,5 +1006,18 @@ declare function regenerateIcon(planId: string, prompt: string): Promise<NonNull
|
|
|
964
1006
|
* @fqn wix.containers.plans.v1.ContainersPlans.FinalizePlan
|
|
965
1007
|
*/
|
|
966
1008
|
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>>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Returns a first request and suggestion chips for the site in the call scope, made from the
|
|
1011
|
+
* site's business: its content, business goal and tone. The server keeps one business profile per
|
|
1012
|
+
* site, checks the site for changes at most every 30 days, and runs the analysis again only when
|
|
1013
|
+
* the site changed or once a year. Empty, with source NO_SUGGESTIONS, when the feature is off for
|
|
1014
|
+
* the site, the site gives nothing to use, or the first profile is not ready yet; then show the
|
|
1015
|
+
* static first prompt.
|
|
1016
|
+
* @internal
|
|
1017
|
+
* @documentationMaturity preview
|
|
1018
|
+
* @permissionId containers:plans:v1:plan:get_prompt_suggestions
|
|
1019
|
+
* @fqn wix.containers.plans.v1.ContainersPlans.GetPromptSuggestions
|
|
1020
|
+
*/
|
|
1021
|
+
declare function getPromptSuggestions(): Promise<NonNullablePaths<GetPromptSuggestionsResponse, `businessName` | `defaultPrompt` | `suggestions` | `suggestions.${number}.label` | `suggestions.${number}.prompt` | `source`, 2>>;
|
|
967
1022
|
|
|
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 };
|
|
1023
|
+
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 GetPromptSuggestionsRequest, type GetPromptSuggestionsResponse, 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 PromptSuggestion, PromptSuggestionsSource, type PromptSuggestionsSourceWithLiterals, type RegenerateIconRequest, type RegenerateIconResponse, type RestoreInfo, type UpdatePlan, type UpdatePlanRequest, type UpdatePlanResponse, type UsableContent, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createAndGeneratePlan, createPlan, deletePlan, finalizePlan, generatePlan, getPlan, getPlanByProjectId, getPromptSuggestions, modifyPlan, regenerateIcon, updatePlan };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreatePlanRequest as CreatePlanRequest$1, CreatePlanResponse as CreatePlanResponse$1, CreateAndGeneratePlanRequest as CreateAndGeneratePlanRequest$1, CreateAndGeneratePlanResponse as CreateAndGeneratePlanResponse$1, GetPlanRequest as GetPlanRequest$1, GetPlanResponse as GetPlanResponse$1, GetPlanByProjectIdRequest as GetPlanByProjectIdRequest$1, GetPlanByProjectIdResponse as GetPlanByProjectIdResponse$1, UpdatePlanRequest as UpdatePlanRequest$1, UpdatePlanResponse as UpdatePlanResponse$1, DeletePlanRequest as DeletePlanRequest$1, DeletePlanResponse as DeletePlanResponse$1, GeneratePlanRequest as GeneratePlanRequest$1, GeneratePlanResponse as GeneratePlanResponse$1, ModifyPlanRequest as ModifyPlanRequest$1, ModifyPlanResponse as ModifyPlanResponse$1, RegenerateIconRequest as RegenerateIconRequest$1, RegenerateIconResponse as RegenerateIconResponse$1, FinalizePlanRequest as FinalizePlanRequest$1, FinalizePlanResponse as FinalizePlanResponse$1 } from './index.typings.js';
|
|
1
|
+
import { CreatePlanRequest as CreatePlanRequest$1, CreatePlanResponse as CreatePlanResponse$1, CreateAndGeneratePlanRequest as CreateAndGeneratePlanRequest$1, CreateAndGeneratePlanResponse as CreateAndGeneratePlanResponse$1, GetPlanRequest as GetPlanRequest$1, GetPlanResponse as GetPlanResponse$1, GetPlanByProjectIdRequest as GetPlanByProjectIdRequest$1, GetPlanByProjectIdResponse as GetPlanByProjectIdResponse$1, UpdatePlanRequest as UpdatePlanRequest$1, UpdatePlanResponse as UpdatePlanResponse$1, DeletePlanRequest as DeletePlanRequest$1, DeletePlanResponse as DeletePlanResponse$1, GeneratePlanRequest as GeneratePlanRequest$1, GeneratePlanResponse as GeneratePlanResponse$1, ModifyPlanRequest as ModifyPlanRequest$1, ModifyPlanResponse as ModifyPlanResponse$1, RegenerateIconRequest as RegenerateIconRequest$1, RegenerateIconResponse as RegenerateIconResponse$1, FinalizePlanRequest as FinalizePlanRequest$1, FinalizePlanResponse as FinalizePlanResponse$1, GetPromptSuggestionsRequest as GetPromptSuggestionsRequest$1, GetPromptSuggestionsResponse as GetPromptSuggestionsResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Plan {
|
|
@@ -612,6 +612,48 @@ interface FinalizePlanResponse {
|
|
|
612
612
|
/** The finalized Plan. */
|
|
613
613
|
plan?: Plan;
|
|
614
614
|
}
|
|
615
|
+
interface GetPromptSuggestionsRequest {
|
|
616
|
+
}
|
|
617
|
+
interface GetPromptSuggestionsResponse {
|
|
618
|
+
/**
|
|
619
|
+
* Name of the business the suggestions are for. Empty when unknown.
|
|
620
|
+
* @maxLength 200
|
|
621
|
+
*/
|
|
622
|
+
businessName?: string;
|
|
623
|
+
/**
|
|
624
|
+
* The owner's first request, ready to send or to edit. Empty when there are no suggestions.
|
|
625
|
+
* @maxLength 500
|
|
626
|
+
*/
|
|
627
|
+
defaultPrompt?: string;
|
|
628
|
+
/**
|
|
629
|
+
* App ideas for this business, strongest first: none, or 3 to 5.
|
|
630
|
+
* @maxSize 5
|
|
631
|
+
*/
|
|
632
|
+
suggestions?: PromptSuggestion[];
|
|
633
|
+
/** Where the suggestions come from. */
|
|
634
|
+
source?: PromptSuggestionsSourceWithLiterals;
|
|
635
|
+
}
|
|
636
|
+
/** One suggestion chip. */
|
|
637
|
+
interface PromptSuggestion {
|
|
638
|
+
/**
|
|
639
|
+
* Short chip text, one line on a phone, for example "Workshop booking app".
|
|
640
|
+
* @maxLength 42
|
|
641
|
+
*/
|
|
642
|
+
label?: string;
|
|
643
|
+
/**
|
|
644
|
+
* The owner's full request that the chip puts in the prompt box.
|
|
645
|
+
* @maxLength 400
|
|
646
|
+
*/
|
|
647
|
+
prompt?: string;
|
|
648
|
+
}
|
|
649
|
+
declare enum PromptSuggestionsSource {
|
|
650
|
+
/** Made from the site's business profile. */
|
|
651
|
+
BUSINESS_PROFILE = "BUSINESS_PROFILE",
|
|
652
|
+
/** No suggestions: show the static first prompt. */
|
|
653
|
+
NO_SUGGESTIONS = "NO_SUGGESTIONS"
|
|
654
|
+
}
|
|
655
|
+
/** @enumType */
|
|
656
|
+
type PromptSuggestionsSourceWithLiterals = PromptSuggestionsSource | 'BUSINESS_PROFILE' | 'NO_SUGGESTIONS';
|
|
615
657
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
616
658
|
createdEvent?: EntityCreatedEvent;
|
|
617
659
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -846,5 +888,6 @@ declare function regenerateIcon(): __PublicMethodMetaInfo<'POST', {
|
|
|
846
888
|
declare function finalizePlan(): __PublicMethodMetaInfo<'POST', {
|
|
847
889
|
planId: string;
|
|
848
890
|
}, FinalizePlanRequest$1, FinalizePlanRequest, FinalizePlanResponse$1, FinalizePlanResponse>;
|
|
891
|
+
declare function getPromptSuggestions(): __PublicMethodMetaInfo<'GET', {}, GetPromptSuggestionsRequest$1, GetPromptSuggestionsRequest, GetPromptSuggestionsResponse$1, GetPromptSuggestionsResponse>;
|
|
849
892
|
|
|
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 };
|
|
893
|
+
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 GetPromptSuggestionsRequest as GetPromptSuggestionsRequestOriginal, type GetPromptSuggestionsResponse as GetPromptSuggestionsResponseOriginal, 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 PromptSuggestion as PromptSuggestionOriginal, PromptSuggestionsSource as PromptSuggestionsSourceOriginal, type PromptSuggestionsSourceWithLiterals as PromptSuggestionsSourceWithLiteralsOriginal, 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, getPromptSuggestions, modifyPlan, regenerateIcon, updatePlan };
|