@wix/auto_sdk_containers_plans 1.0.0 → 1.0.2

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../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":["export * from './src/containers-plans-v1-plan-plans.meta.js';\n","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\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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.\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: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\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). Used as a reference\n * image when generating the app icon (see AppSpec.app_icon_url).\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\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. Seeded at plan creation from the business's real logo, or\n * a best-effort generated placeholder if it has none. The client can replace it later with a\n * RegenerateIcon result they've accepted, via UpdatePlan.\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 follow-up question paired with selectable answer options, shown as quick-reply choices. */\nexport interface FollowUpQuestion {\n /**\n * The question text.\n * @maxLength 4000\n */\n question?: string;\n /**\n * Selectable answer options for this question.\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/**\n * Identifies one editable part of a plan. Optional on chat and plan-edit requests; when absent,\n * plan editing keeps its existing whole-plan behavior.\n */\nexport interface PlanEditContext {\n /** Kind of plan part selected by the user. */\n type?: PlanPartTypeWithLiterals;\n /**\n * Zero-based item index. Set only for repeated parts such as features, screens, or integrations.\n * @max 199\n */\n index?: number | null;\n /**\n * Plan revision shown when the user selected the part. Used to reject stale edits.\n * @min 1\n */\n planRevision?: string | null;\n}\n\nexport enum PlanPartType {\n APP_NAME = 'APP_NAME',\n APP_DESCRIPTION = 'APP_DESCRIPTION',\n BUSINESS_GOAL = 'BUSINESS_GOAL',\n AUDIENCE = 'AUDIENCE',\n FEATURE = 'FEATURE',\n SCREEN = 'SCREEN',\n WIX_INTEGRATION = 'WIX_INTEGRATION',\n THIRD_PARTY_INTEGRATION = 'THIRD_PARTY_INTEGRATION',\n BRAND_IDENTITY = 'BRAND_IDENTITY',\n /** Color fields within brand_identity; fonts are preserved by the service. */\n COLOR_THEME = 'COLOR_THEME',\n /** Font fields within brand_identity; colors are preserved by the service. */\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 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAAA;AAAA,EAAA,kBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,eAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,kBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,EAAE,KAAK,GAAQ;AACnC,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,mBAAmB,GAAG,EAA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ACZ,MAAM;AAAA,IACN,YAAY,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createAndGeneratePlan","createPlan","deletePlan","finalizePlan","generatePlan","getPlan","getPlanByProjectId","modifyPlan","regenerateIcon","updatePlan","import_timestamp","import_rest_modules","payload","Platform","PlanStatus","PlanPartType","WebhookIdentityType","createPlan","createAndGeneratePlan","getPlan","getPlanByProjectId","updatePlan","deletePlan","generatePlan","modifyPlan","regenerateIcon","finalizePlan"]}
1
+ {"version":3,"sources":["../../meta.ts","../../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":["export * from './src/containers-plans-v1-plan-plans.meta.js';\n","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.\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). Used as a reference\n * image when generating the app icon (see AppSpec.app_icon_url).\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\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. Seeded at plan creation from the business's real logo, or\n * a best-effort generated placeholder if it has none. The client can replace it later with a\n * RegenerateIcon result they've accepted, via UpdatePlan.\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 follow-up question paired with selectable answer options, shown as quick-reply choices. */\nexport interface FollowUpQuestion {\n /**\n * The question text.\n * @maxLength 4000\n */\n question?: string;\n /**\n * Selectable answer options for this question.\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/**\n * Identifies one editable part of a plan. Optional on chat and plan-edit requests; when absent,\n * plan editing keeps its existing whole-plan behavior.\n */\nexport interface PlanEditContext {\n /** Kind of plan part selected by the user. */\n type?: PlanPartTypeWithLiterals;\n /**\n * Zero-based item index. Set only for repeated parts such as features, screens, or integrations.\n * @max 199\n */\n index?: number | null;\n /**\n * Plan revision shown when the user selected the part. Used to reject stale edits.\n * @min 1\n */\n planRevision?: string | null;\n}\n\nexport enum PlanPartType {\n APP_NAME = 'APP_NAME',\n APP_DESCRIPTION = 'APP_DESCRIPTION',\n BUSINESS_GOAL = 'BUSINESS_GOAL',\n AUDIENCE = 'AUDIENCE',\n FEATURE = 'FEATURE',\n SCREEN = 'SCREEN',\n WIX_INTEGRATION = 'WIX_INTEGRATION',\n THIRD_PARTY_INTEGRATION = 'THIRD_PARTY_INTEGRATION',\n BRAND_IDENTITY = 'BRAND_IDENTITY',\n /** Color fields within brand_identity; fonts are preserved by the service. */\n COLOR_THEME = 'COLOR_THEME',\n /** Font fields within brand_identity; colors are preserved by the service. */\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 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAAA;AAAA,EAAA,kBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,eAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,kBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;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,MACA;AACA,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,WAAW,OAAO;AAEvD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,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;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,EAAE,QAAQ,UAAU;AAEpC,QAAM,oBAC+B,eAAe,OAAO;AAE3D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,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;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,EAAE,QAAQ,UAAU;AAEpC,QAAM,oBAC+B,aAAa,OAAO;AAEzD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,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":["createAndGeneratePlan","createPlan","deletePlan","finalizePlan","generatePlan","getPlan","getPlanByProjectId","modifyPlan","regenerateIcon","updatePlan","import_timestamp","import_rest_modules","payload","Platform","PlanStatus","PlanPartType","WebhookIdentityType","createPlan","createAndGeneratePlan","getPlan","getPlanByProjectId","updatePlan","deletePlan","generatePlan","modifyPlan","regenerateIcon","finalizePlan"]}
@@ -106,6 +106,13 @@ interface BusinessContext {
106
106
  * @maxLength 200
107
107
  */
108
108
  wixIntegrations?: string[];
109
+ /**
110
+ * Primary published URL of the current site, resolved by the server during plan creation.
111
+ * Absent for older plans, unpublished sites, or when the URL cannot be resolved.
112
+ * @readonly
113
+ * @format WEB_URL
114
+ */
115
+ publicSiteUrl?: string | null;
109
116
  }
110
117
  /**
111
118
  * Visual identity extracted from the user's existing website. Serves as an editable
@@ -12,6 +12,11 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
12
12
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
13
13
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
14
14
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
15
+ var TRANSFORM_PATHS_0 = [
16
+ { path: "plan.createdDate" },
17
+ { path: "plan.updatedDate" }
18
+ ];
19
+ var TRANSFORM_PATHS_1 = [{ path: "fieldMask" }];
15
20
  function resolveWixContainersPlansV1ContainersPlansUrl(opts) {
16
21
  const domainToMappings = {
17
22
  "manage._base_domain_": [
@@ -29,7 +34,7 @@ function createPlan(payload) {
29
34
  const serializedData = transformPaths(payload, [
30
35
  {
31
36
  transformFn: transformSDKTimestampToRESTTimestamp,
32
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
37
+ paths: TRANSFORM_PATHS_0
33
38
  }
34
39
  ]);
35
40
  const metadata = {
@@ -49,7 +54,7 @@ function createPlan(payload) {
49
54
  transformResponse: (payload2) => transformPaths(payload2, [
50
55
  {
51
56
  transformFn: transformRESTTimestampToSDKTimestamp,
52
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
57
+ paths: TRANSFORM_PATHS_0
53
58
  }
54
59
  ])
55
60
  };
@@ -62,7 +67,7 @@ function createAndGeneratePlan(payload) {
62
67
  const serializedData = transformPaths(payload, [
63
68
  {
64
69
  transformFn: transformSDKTimestampToRESTTimestamp,
65
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
70
+ paths: TRANSFORM_PATHS_0
66
71
  }
67
72
  ]);
68
73
  const metadata = {
@@ -82,7 +87,7 @@ function createAndGeneratePlan(payload) {
82
87
  transformResponse: (payload2) => transformPaths(payload2, [
83
88
  {
84
89
  transformFn: transformRESTTimestampToSDKTimestamp,
85
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
90
+ paths: TRANSFORM_PATHS_0
86
91
  }
87
92
  ])
88
93
  };
@@ -109,7 +114,7 @@ function getPlan(payload) {
109
114
  transformResponse: (payload2) => transformPaths(payload2, [
110
115
  {
111
116
  transformFn: transformRESTTimestampToSDKTimestamp,
112
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
117
+ paths: TRANSFORM_PATHS_0
113
118
  }
114
119
  ])
115
120
  };
@@ -136,7 +141,7 @@ function getPlanByProjectId(payload) {
136
141
  transformResponse: (payload2) => transformPaths(payload2, [
137
142
  {
138
143
  transformFn: transformRESTTimestampToSDKTimestamp,
139
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
144
+ paths: TRANSFORM_PATHS_0
140
145
  }
141
146
  ])
142
147
  };
@@ -149,11 +154,11 @@ function updatePlan(payload) {
149
154
  const serializedData = transformPaths(payload, [
150
155
  {
151
156
  transformFn: transformSDKFieldMaskToRESTFieldMask,
152
- paths: [{ path: "fieldMask" }]
157
+ paths: TRANSFORM_PATHS_1
153
158
  },
154
159
  {
155
160
  transformFn: transformSDKTimestampToRESTTimestamp,
156
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
161
+ paths: TRANSFORM_PATHS_0
157
162
  }
158
163
  ]);
159
164
  const metadata = {
@@ -173,7 +178,7 @@ function updatePlan(payload) {
173
178
  transformResponse: (payload2) => transformPaths(payload2, [
174
179
  {
175
180
  transformFn: transformRESTTimestampToSDKTimestamp,
176
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
181
+ paths: TRANSFORM_PATHS_0
177
182
  }
178
183
  ])
179
184
  };
@@ -221,7 +226,7 @@ function generatePlan(payload) {
221
226
  transformResponse: (payload2) => transformPaths(payload2, [
222
227
  {
223
228
  transformFn: transformRESTTimestampToSDKTimestamp,
224
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
229
+ paths: TRANSFORM_PATHS_0
225
230
  }
226
231
  ])
227
232
  };
@@ -248,7 +253,7 @@ function modifyPlan(payload) {
248
253
  transformResponse: (payload2) => transformPaths(payload2, [
249
254
  {
250
255
  transformFn: transformRESTTimestampToSDKTimestamp,
251
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
256
+ paths: TRANSFORM_PATHS_0
252
257
  }
253
258
  ])
254
259
  };
@@ -296,7 +301,7 @@ function finalizePlan(payload) {
296
301
  transformResponse: (payload2) => transformPaths(payload2, [
297
302
  {
298
303
  transformFn: transformRESTTimestampToSDKTimestamp,
299
- paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
304
+ paths: TRANSFORM_PATHS_0
300
305
  }
301
306
  ])
302
307
  };