@wix/auto_sdk_containers_plans 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +708 -0
- package/build/cjs/index.js +731 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +642 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +678 -0
- package/build/cjs/meta.js +571 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +708 -0
- package/build/es/index.mjs +694 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +605 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +678 -0
- package/build/es/meta.mjs +531 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +132 -0
- package/build/internal/cjs/index.typings.d.ts +842 -0
- package/build/internal/cjs/meta.d.ts +726 -0
- package/build/internal/es/index.d.mts +132 -0
- package/build/internal/es/index.typings.d.mts +842 -0
- package/build/internal/es/meta.d.mts +726 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { Plan, CreateAndGeneratePlanResponse, GetPlanByProjectIdResponse, UpdatePlan, GeneratePlanResponse, ModifyPlanOptions, ModifyPlanResponse, RegenerateIconResponse, FinalizePlanResponse } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, ActionEvent, AnsweredQuestion, AppSpec, BrandIdentity, BusinessContext, CreateAndGeneratePlanRequest, CreatePlanRequest, CreatePlanResponse, DeletePlanRequest, DeletePlanResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Feature, FinalizePlanRequest, FollowUpQuestion, GeneratePlanRequest, GetPlanByProjectIdRequest, GetPlanRequest, GetPlanResponse, IdentificationData, IdentificationDataIdOneOf, Integration, MessageEnvelope, ModifyPlanRequest, PlanEditContext, PlanFinalized, PlanPartType, PlanPartTypeWithLiterals, PlanStatus, PlanStatusWithLiterals, Platform, PlatformWithLiterals, RegenerateIconRequest, RestoreInfo, UpdatePlanRequest, UpdatePlanResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
/** @internal */
|
|
6
|
+
declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature;
|
|
7
|
+
interface CreatePlanSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new Plan.
|
|
10
|
+
* @param - Plan to be created.
|
|
11
|
+
* @returns The created Plan.
|
|
12
|
+
*/
|
|
13
|
+
(plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 3>>;
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
declare function createAndGeneratePlan$1(httpClient: HttpClient): CreateAndGeneratePlanSignature;
|
|
17
|
+
interface CreateAndGeneratePlanSignature {
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new Plan and immediately generates it using the planning agent.
|
|
20
|
+
* @param - Plan to be created and generated.
|
|
21
|
+
*/
|
|
22
|
+
(plan: NonNullablePaths<Plan, `initialPrompt` | `platform` | `projectId` | `selectedTemplateId`, 0>): Promise<NonNullablePaths<CreateAndGeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 4>>;
|
|
23
|
+
}
|
|
24
|
+
/** @internal */
|
|
25
|
+
declare function getPlan$1(httpClient: HttpClient): GetPlanSignature;
|
|
26
|
+
interface GetPlanSignature {
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a Plan by its ID.
|
|
29
|
+
* @param - ID of the Plan to retrieve.
|
|
30
|
+
* @returns The requested Plan.
|
|
31
|
+
*/
|
|
32
|
+
(planId: string): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 3>>;
|
|
33
|
+
}
|
|
34
|
+
/** @internal */
|
|
35
|
+
declare function getPlanByProjectId$1(httpClient: HttpClient): GetPlanByProjectIdSignature;
|
|
36
|
+
interface GetPlanByProjectIdSignature {
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves the (single) Plan for a project. Server-to-server: containers-projects uses this to
|
|
39
|
+
* read the finalized plan when creating the initial generation job.
|
|
40
|
+
* @param - ID of the project whose Plan to retrieve.
|
|
41
|
+
*/
|
|
42
|
+
(projectId: string): Promise<NonNullablePaths<GetPlanByProjectIdResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 4>>;
|
|
43
|
+
}
|
|
44
|
+
/** @internal */
|
|
45
|
+
declare function updatePlan$1(httpClient: HttpClient): UpdatePlanSignature;
|
|
46
|
+
interface UpdatePlanSignature {
|
|
47
|
+
/**
|
|
48
|
+
* Updates a Plan. The current revision must be passed for optimistic locking.
|
|
49
|
+
* @param - Plan ID.
|
|
50
|
+
* @returns The updated Plan.
|
|
51
|
+
*/
|
|
52
|
+
(_id: string, plan: NonNullablePaths<UpdatePlan, `revision`, 0>): Promise<NonNullablePaths<Plan, `initialPrompt` | `platform` | `status` | `businessContext.businessName` | `businessContext.businessLogoUrl` | `businessContext.businessDescription` | `businessContext.language` | `businessContext.country` | `businessContext.wixIntegrations` | `brandIdentity.primaryColor` | `brandIdentity.backgroundColor` | `brandIdentity.contentColor` | `brandIdentity.headingFont` | `brandIdentity.bodyFont` | `appSpec.appName` | `appSpec.appDescription` | `appSpec.businessGoal` | `appSpec.audience` | `appSpec.wixIntegrations` | `appSpec.wixIntegrations.${number}.displayName` | `appSpec.wixIntegrations.${number}.description` | `appSpec.wixIntegrations.${number}._id` | `appSpec.thirdPartyIntegrations` | `appSpec.features` | `appSpec.features.${number}.title` | `appSpec.features.${number}.description` | `appSpec.navigation` | `appSpec.appIconUrl`, 3>>;
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
declare function deletePlan$1(httpClient: HttpClient): DeletePlanSignature;
|
|
56
|
+
interface DeletePlanSignature {
|
|
57
|
+
/**
|
|
58
|
+
* Deletes a Plan.
|
|
59
|
+
* @param - ID of the Plan to delete.
|
|
60
|
+
*/
|
|
61
|
+
(planId: string): Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
/** @internal */
|
|
64
|
+
declare function generatePlan$1(httpClient: HttpClient): GeneratePlanSignature;
|
|
65
|
+
interface GeneratePlanSignature {
|
|
66
|
+
/**
|
|
67
|
+
* Generates the plan for an already-created Plan using the planning agent, from the plan's
|
|
68
|
+
* extracted business context + brand identity, the initial prompt, the platform, and the
|
|
69
|
+
* selected template. Populates app_spec (and brand_identity) and returns follow-up questions.
|
|
70
|
+
* @param - ID of the Plan to generate.
|
|
71
|
+
*/
|
|
72
|
+
(planId: string): Promise<NonNullablePaths<GeneratePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 4>>;
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
declare function modifyPlan$1(httpClient: HttpClient): ModifyPlanSignature;
|
|
76
|
+
interface ModifyPlanSignature {
|
|
77
|
+
/**
|
|
78
|
+
* Modifies an existing Plan based on the user's answers to the previous iteration's
|
|
79
|
+
* follow-up questions plus an optional additional prompt. Returns the updated plan and
|
|
80
|
+
* any new follow-up questions.
|
|
81
|
+
* @param - ID of the Plan to modify.
|
|
82
|
+
*/
|
|
83
|
+
(planId: string, options?: ModifyPlanOptions): Promise<NonNullablePaths<ModifyPlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl` | `followUpQuestions` | `followUpQuestionOptions` | `followUpQuestionOptions.${number}.question`, 4>>;
|
|
84
|
+
}
|
|
85
|
+
/** @internal */
|
|
86
|
+
declare function regenerateIcon$1(httpClient: HttpClient): RegenerateIconSignature;
|
|
87
|
+
interface RegenerateIconSignature {
|
|
88
|
+
/**
|
|
89
|
+
* Generates a candidate icon for a Plan from user-provided text via PromptHub. The current
|
|
90
|
+
* business_context (including any existing icon, sent as a reference image) is resolved
|
|
91
|
+
* server-side; the caller supplies only the prompt. Does not persist the result — the caller
|
|
92
|
+
* saves an accepted icon with UpdatePlan (app_spec.app_icon_url).
|
|
93
|
+
* @param - ID of the Plan whose icon to regenerate.
|
|
94
|
+
* @param - Free-text description of the desired icon, passed to the icon-generation prompt.
|
|
95
|
+
*/
|
|
96
|
+
(planId: string, prompt: string): Promise<NonNullablePaths<RegenerateIconResponse, `iconUrl`, 0>>;
|
|
97
|
+
}
|
|
98
|
+
/** @internal */
|
|
99
|
+
declare function finalizePlan$1(httpClient: HttpClient): FinalizePlanSignature;
|
|
100
|
+
interface FinalizePlanSignature {
|
|
101
|
+
/**
|
|
102
|
+
* Finalizes a Plan for generation, transitioning it to FINALIZED and emitting a PlanFinalized
|
|
103
|
+
* action event that drives the linked Project into BUILDING.
|
|
104
|
+
* @param - ID of the Plan to finalize. Its project_id and selected_template_id (set at creation)
|
|
105
|
+
* are used to drive generation.
|
|
106
|
+
* @param - ID of the conversation that led to this plan being finalized.
|
|
107
|
+
*/
|
|
108
|
+
(planId: string, conversationId: string): Promise<NonNullablePaths<FinalizePlanResponse, `plan.initialPrompt` | `plan.platform` | `plan.status` | `plan.businessContext.businessName` | `plan.businessContext.businessLogoUrl` | `plan.businessContext.businessDescription` | `plan.businessContext.language` | `plan.businessContext.country` | `plan.businessContext.wixIntegrations` | `plan.brandIdentity.primaryColor` | `plan.brandIdentity.backgroundColor` | `plan.brandIdentity.contentColor` | `plan.brandIdentity.headingFont` | `plan.brandIdentity.bodyFont` | `plan.appSpec.appName` | `plan.appSpec.appDescription` | `plan.appSpec.businessGoal` | `plan.appSpec.audience` | `plan.appSpec.wixIntegrations` | `plan.appSpec.wixIntegrations.${number}.displayName` | `plan.appSpec.wixIntegrations.${number}.description` | `plan.appSpec.wixIntegrations.${number}._id` | `plan.appSpec.thirdPartyIntegrations` | `plan.appSpec.features` | `plan.appSpec.features.${number}.title` | `plan.appSpec.features.${number}.description` | `plan.appSpec.navigation` | `plan.appSpec.appIconUrl`, 4>>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
declare const createPlan: MaybeContext<BuildRESTFunction<typeof createPlan$1> & typeof createPlan$1>;
|
|
113
|
+
/** @internal */
|
|
114
|
+
declare const createAndGeneratePlan: MaybeContext<BuildRESTFunction<typeof createAndGeneratePlan$1> & typeof createAndGeneratePlan$1>;
|
|
115
|
+
/** @internal */
|
|
116
|
+
declare const getPlan: MaybeContext<BuildRESTFunction<typeof getPlan$1> & typeof getPlan$1>;
|
|
117
|
+
/** @internal */
|
|
118
|
+
declare const getPlanByProjectId: MaybeContext<BuildRESTFunction<typeof getPlanByProjectId$1> & typeof getPlanByProjectId$1>;
|
|
119
|
+
/** @internal */
|
|
120
|
+
declare const updatePlan: MaybeContext<BuildRESTFunction<typeof updatePlan$1> & typeof updatePlan$1>;
|
|
121
|
+
/** @internal */
|
|
122
|
+
declare const deletePlan: MaybeContext<BuildRESTFunction<typeof deletePlan$1> & typeof deletePlan$1>;
|
|
123
|
+
/** @internal */
|
|
124
|
+
declare const generatePlan: MaybeContext<BuildRESTFunction<typeof generatePlan$1> & typeof generatePlan$1>;
|
|
125
|
+
/** @internal */
|
|
126
|
+
declare const modifyPlan: MaybeContext<BuildRESTFunction<typeof modifyPlan$1> & typeof modifyPlan$1>;
|
|
127
|
+
/** @internal */
|
|
128
|
+
declare const regenerateIcon: MaybeContext<BuildRESTFunction<typeof regenerateIcon$1> & typeof regenerateIcon$1>;
|
|
129
|
+
/** @internal */
|
|
130
|
+
declare const finalizePlan: MaybeContext<BuildRESTFunction<typeof finalizePlan$1> & typeof finalizePlan$1>;
|
|
131
|
+
|
|
132
|
+
export { CreateAndGeneratePlanResponse, FinalizePlanResponse, GeneratePlanResponse, GetPlanByProjectIdResponse, ModifyPlanOptions, ModifyPlanResponse, Plan, RegenerateIconResponse, UpdatePlan, createAndGeneratePlan, createPlan, deletePlan, finalizePlan, generatePlan, getPlan, getPlanByProjectId, modifyPlan, regenerateIcon, updatePlan };
|