@wix/auto_sdk_seo_content-plan-flows 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.
@@ -0,0 +1,330 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ StatusOriginal: () => Status,
24
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
25
+ cancelContentPlanFlow: () => cancelContentPlanFlow2,
26
+ getContentPlanFlow: () => getContentPlanFlow2,
27
+ triggerContentPlanGenerationFlow: () => triggerContentPlanGenerationFlow2
28
+ });
29
+ module.exports = __toCommonJS(meta_exports);
30
+
31
+ // src/promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.http.ts
32
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
33
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
34
+ function resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url(opts) {
35
+ const domainToMappings = {
36
+ "bo._base_domain_": [
37
+ {
38
+ srcPath: "/_serverless/seo-content-plan-service",
39
+ destPath: ""
40
+ }
41
+ ],
42
+ "wixbo.ai": [
43
+ {
44
+ srcPath: "/_serverless/seo-content-plan-service",
45
+ destPath: ""
46
+ }
47
+ ],
48
+ "wix-bo.com": [
49
+ {
50
+ srcPath: "/_serverless/seo-content-plan-service",
51
+ destPath: ""
52
+ }
53
+ ],
54
+ "api._api_base_domain_": [
55
+ {
56
+ srcPath: "/seo-content-plan-service",
57
+ destPath: ""
58
+ }
59
+ ],
60
+ "manage._base_domain_": [
61
+ {
62
+ srcPath: "/_api/seo-content-plan-service",
63
+ destPath: ""
64
+ }
65
+ ],
66
+ "editor._base_domain_": [
67
+ {
68
+ srcPath: "/_api/seo-content-plan-service",
69
+ destPath: ""
70
+ }
71
+ ],
72
+ "blocks._base_domain_": [
73
+ {
74
+ srcPath: "/_api/seo-content-plan-service",
75
+ destPath: ""
76
+ }
77
+ ],
78
+ "create.editorx": [
79
+ {
80
+ srcPath: "/_api/seo-content-plan-service",
81
+ destPath: ""
82
+ }
83
+ ],
84
+ "www.wixapis.com": [
85
+ {
86
+ srcPath: "/seo-content-plan-service",
87
+ destPath: ""
88
+ },
89
+ {
90
+ srcPath: "/promote/seo/v1/content-plan-flows",
91
+ destPath: "/v1/content-plan-flows"
92
+ },
93
+ {
94
+ srcPath: "/promote/seo/v1/content-plan-flow",
95
+ destPath: "/v1/content-plan-flow"
96
+ },
97
+ {
98
+ srcPath: "/promote/seo/v1/content-plan-keyword-research-items",
99
+ destPath: "/v1/content-plan-keyword-research-items"
100
+ },
101
+ {
102
+ srcPath: "/promote/seo/v1/keyword-research-items",
103
+ destPath: "/v1/keyword-research-items"
104
+ },
105
+ {
106
+ srcPath: "/promote/seo/v1/bulk/keyword-research-items",
107
+ destPath: "/v1/bulk/keyword-research-items"
108
+ },
109
+ {
110
+ srcPath: "/promote/seo/v1/create-content-plan",
111
+ destPath: "/v1/create-content-plan"
112
+ },
113
+ {
114
+ srcPath: "/promote/seo/v1/trigger-content-plan-generation-flow",
115
+ destPath: "/v1/trigger-content-plan-generation-flow"
116
+ },
117
+ {
118
+ srcPath: "/promote/seo/v1/cancel-content-plan-flow",
119
+ destPath: "/v1/cancel-content-plan-flow"
120
+ }
121
+ ],
122
+ _: [
123
+ {
124
+ srcPath: "/seo-content-plan-service",
125
+ destPath: ""
126
+ },
127
+ {
128
+ srcPath: "/promote/seo/v1/content-plan-flows",
129
+ destPath: "/v1/content-plan-flows"
130
+ },
131
+ {
132
+ srcPath: "/promote/seo/v1/content-plan-flow",
133
+ destPath: "/v1/content-plan-flow"
134
+ },
135
+ {
136
+ srcPath: "/promote/seo/v1/content-plan-keyword-research-items",
137
+ destPath: "/v1/content-plan-keyword-research-items"
138
+ },
139
+ {
140
+ srcPath: "/promote/seo/v1/keyword-research-items",
141
+ destPath: "/v1/keyword-research-items"
142
+ },
143
+ {
144
+ srcPath: "/promote/seo/v1/bulk/keyword-research-items",
145
+ destPath: "/v1/bulk/keyword-research-items"
146
+ },
147
+ {
148
+ srcPath: "/promote/seo/v1/create-content-plan",
149
+ destPath: "/v1/create-content-plan"
150
+ },
151
+ {
152
+ srcPath: "/promote/seo/v1/trigger-content-plan-generation-flow",
153
+ destPath: "/v1/trigger-content-plan-generation-flow"
154
+ },
155
+ {
156
+ srcPath: "/promote/seo/v1/cancel-content-plan-flow",
157
+ destPath: "/v1/cancel-content-plan-flow"
158
+ }
159
+ ]
160
+ };
161
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
162
+ }
163
+ var PACKAGE_NAME = "@wix/auto_sdk_seo_content-plan-flows";
164
+ function getContentPlanFlow(payload) {
165
+ function __getContentPlanFlow({ host }) {
166
+ const metadata = {
167
+ entityFqdn: "wix.promote.seo.v1.content_plan_content_plan_flow",
168
+ method: "GET",
169
+ methodFqn: "wix.promote.seo.content.plan.v1.ContentPlanFlowServiceV1.GetContentPlanFlow",
170
+ packageName: PACKAGE_NAME,
171
+ migrationOptions: {
172
+ optInTransformResponse: true
173
+ },
174
+ url: resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url({
175
+ protoPath: "/v1/content-plan-flows/{contentPlanFlowId}",
176
+ data: payload,
177
+ host
178
+ }),
179
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
180
+ fallback: [
181
+ {
182
+ method: "GET",
183
+ url: resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url({
184
+ protoPath: "/v1/content-plan-flows/{contentPlanFlowId}",
185
+ data: payload,
186
+ host
187
+ }),
188
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
189
+ }
190
+ ]
191
+ };
192
+ return metadata;
193
+ }
194
+ return __getContentPlanFlow;
195
+ }
196
+ function triggerContentPlanGenerationFlow(payload) {
197
+ function __triggerContentPlanGenerationFlow({ host }) {
198
+ const metadata = {
199
+ entityFqdn: "wix.promote.seo.v1.content_plan_content_plan_flow",
200
+ method: "POST",
201
+ methodFqn: "wix.promote.seo.content.plan.v1.ContentPlanFlowServiceV1.TriggerContentPlanGenerationFlow",
202
+ packageName: PACKAGE_NAME,
203
+ migrationOptions: {
204
+ optInTransformResponse: true
205
+ },
206
+ url: resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url({
207
+ protoPath: "/v1/content-plan-flows/trigger",
208
+ data: payload,
209
+ host
210
+ }),
211
+ data: payload
212
+ };
213
+ return metadata;
214
+ }
215
+ return __triggerContentPlanGenerationFlow;
216
+ }
217
+ function cancelContentPlanFlow(payload) {
218
+ function __cancelContentPlanFlow({ host }) {
219
+ const metadata = {
220
+ entityFqdn: "wix.promote.seo.v1.content_plan_content_plan_flow",
221
+ method: "POST",
222
+ methodFqn: "wix.promote.seo.content.plan.v1.ContentPlanFlowServiceV1.CancelContentPlanFlow",
223
+ packageName: PACKAGE_NAME,
224
+ migrationOptions: {
225
+ optInTransformResponse: true
226
+ },
227
+ url: resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url({
228
+ protoPath: "/v1/content-plan-flows/{contentPlanFlowId}/cancel",
229
+ data: payload,
230
+ host
231
+ }),
232
+ data: payload
233
+ };
234
+ return metadata;
235
+ }
236
+ return __cancelContentPlanFlow;
237
+ }
238
+
239
+ // src/promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.types.ts
240
+ var Status = /* @__PURE__ */ ((Status2) => {
241
+ Status2["CREATED"] = "CREATED";
242
+ Status2["SITE_SUMMARY"] = "SITE_SUMMARY";
243
+ Status2["KEYWORD_RESEARCH"] = "KEYWORD_RESEARCH";
244
+ Status2["CONTENT_PLAN"] = "CONTENT_PLAN";
245
+ Status2["SUCCESS"] = "SUCCESS";
246
+ Status2["FAIL"] = "FAIL";
247
+ Status2["PENDING_REQUIREMENTS"] = "PENDING_REQUIREMENTS";
248
+ Status2["CANCELED"] = "CANCELED";
249
+ Status2["SITE_ANALYSIS"] = "SITE_ANALYSIS";
250
+ return Status2;
251
+ })(Status || {});
252
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
253
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
254
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
255
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
256
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
257
+ WebhookIdentityType2["APP"] = "APP";
258
+ return WebhookIdentityType2;
259
+ })(WebhookIdentityType || {});
260
+
261
+ // src/promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.meta.ts
262
+ function getContentPlanFlow2() {
263
+ const payload = { contentPlanFlowId: ":contentPlanFlowId" };
264
+ const getRequestOptions = getContentPlanFlow(
265
+ payload
266
+ );
267
+ const getUrl = (context) => {
268
+ const { url } = getRequestOptions(context);
269
+ return url;
270
+ };
271
+ return {
272
+ getUrl,
273
+ httpMethod: "GET",
274
+ path: "/v1/content-plan-flows/{contentPlanFlowId}",
275
+ pathParams: { contentPlanFlowId: "contentPlanFlowId" },
276
+ __requestType: null,
277
+ __originalRequestType: null,
278
+ __responseType: null,
279
+ __originalResponseType: null
280
+ };
281
+ }
282
+ function triggerContentPlanGenerationFlow2() {
283
+ const payload = {};
284
+ const getRequestOptions = triggerContentPlanGenerationFlow(
285
+ payload
286
+ );
287
+ const getUrl = (context) => {
288
+ const { url } = getRequestOptions(context);
289
+ return url;
290
+ };
291
+ return {
292
+ getUrl,
293
+ httpMethod: "POST",
294
+ path: "/v1/content-plan-flows/trigger",
295
+ pathParams: {},
296
+ __requestType: null,
297
+ __originalRequestType: null,
298
+ __responseType: null,
299
+ __originalResponseType: null
300
+ };
301
+ }
302
+ function cancelContentPlanFlow2() {
303
+ const payload = { contentPlanFlowId: ":contentPlanFlowId" };
304
+ const getRequestOptions = cancelContentPlanFlow(
305
+ payload
306
+ );
307
+ const getUrl = (context) => {
308
+ const { url } = getRequestOptions(context);
309
+ return url;
310
+ };
311
+ return {
312
+ getUrl,
313
+ httpMethod: "POST",
314
+ path: "/v1/content-plan-flows/{contentPlanFlowId}/cancel",
315
+ pathParams: { contentPlanFlowId: "contentPlanFlowId" },
316
+ __requestType: null,
317
+ __originalRequestType: null,
318
+ __responseType: null,
319
+ __originalResponseType: null
320
+ };
321
+ }
322
+ // Annotate the CommonJS export names for ESM import in node:
323
+ 0 && (module.exports = {
324
+ StatusOriginal,
325
+ WebhookIdentityTypeOriginal,
326
+ cancelContentPlanFlow,
327
+ getContentPlanFlow,
328
+ triggerContentPlanGenerationFlow
329
+ });
330
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../meta.ts","../../src/promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.http.ts","../../src/promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.types.ts","../../src/promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.meta.ts"],"sourcesContent":["export * from './src/promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_serverless/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_serverless/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_serverless/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/seo-content-plan-service',\n destPath: '',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-flows',\n destPath: '/v1/content-plan-flows',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-flow',\n destPath: '/v1/content-plan-flow',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-keyword-research-items',\n destPath: '/v1/content-plan-keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/keyword-research-items',\n destPath: '/v1/keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/bulk/keyword-research-items',\n destPath: '/v1/bulk/keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/create-content-plan',\n destPath: '/v1/create-content-plan',\n },\n {\n srcPath: '/promote/seo/v1/trigger-content-plan-generation-flow',\n destPath: '/v1/trigger-content-plan-generation-flow',\n },\n {\n srcPath: '/promote/seo/v1/cancel-content-plan-flow',\n destPath: '/v1/cancel-content-plan-flow',\n },\n ],\n _: [\n {\n srcPath: '/seo-content-plan-service',\n destPath: '',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-flows',\n destPath: '/v1/content-plan-flows',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-flow',\n destPath: '/v1/content-plan-flow',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-keyword-research-items',\n destPath: '/v1/content-plan-keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/keyword-research-items',\n destPath: '/v1/keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/bulk/keyword-research-items',\n destPath: '/v1/bulk/keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/create-content-plan',\n destPath: '/v1/create-content-plan',\n },\n {\n srcPath: '/promote/seo/v1/trigger-content-plan-generation-flow',\n destPath: '/v1/trigger-content-plan-generation-flow',\n },\n {\n srcPath: '/promote/seo/v1/cancel-content-plan-flow',\n destPath: '/v1/cancel-content-plan-flow',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_seo_content-plan-flows';\n\n/**\n * Retrieves a content plan flow.\n *\n * While a flow is generating, poll this method with the\n * `contentPlanFlowId` returned by Trigger Content Plan Generation Flow to\n * follow the flow's progress.\n *\n * Omit `contentPlanFlowId` to retrieve the site's most recent successful\n * flow. This is useful for picking up a content plan that was generated in\n * the site dashboard. A flow that's still running is never returned this\n * way, and a site with no successful flow returns a not found error.\n */\nexport function getContentPlanFlow(\n payload: object\n): RequestOptionsFactory<any> {\n function __getContentPlanFlow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.content_plan_content_plan_flow',\n method: 'GET' as any,\n methodFqn:\n 'wix.promote.seo.content.plan.v1.ContentPlanFlowServiceV1.GetContentPlanFlow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url({\n protoPath: '/v1/content-plan-flows/{contentPlanFlowId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n\n fallback: [\n {\n method: 'GET' as any,\n url: resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url({\n protoPath: '/v1/content-plan-flows/{contentPlanFlowId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n },\n ],\n };\n\n return metadata;\n }\n\n return __getContentPlanFlow;\n}\n\n/**\n * Creates and starts a content plan flow for a site.\n *\n * Generation runs asynchronously and takes several minutes. This method\n * returns a `contentPlanFlowId` as soon as the flow is created, before any\n * content is generated. Poll Get Content Plan Flow with that ID to follow\n * the flow's progress.\n *\n * A successful response means the flow was created, not that generation\n * succeeded. Check `status` rather than relying on the response alone.\n *\n * The flow stops at `KEYWORD_RESEARCH` and waits. Call Create Content Plan\n * to generate the blog post briefs and let the flow continue to `SUCCESS`.\n *\n * A failed flow is retried automatically, and each retry creates a separate\n * flow with its own ID. The original flow keeps its `FAIL` status, so call\n * Get Content Plan Flow without an ID to retrieve the site's most recent\n * successful flow.\n */\nexport function triggerContentPlanGenerationFlow(\n payload: object\n): RequestOptionsFactory<any> {\n function __triggerContentPlanGenerationFlow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.content_plan_content_plan_flow',\n method: 'POST' as any,\n methodFqn:\n 'wix.promote.seo.content.plan.v1.ContentPlanFlowServiceV1.TriggerContentPlanGenerationFlow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url({\n protoPath: '/v1/content-plan-flows/trigger',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __triggerContentPlanGenerationFlow;\n}\n\n/**\n * Cancels a content plan flow.\n *\n * Cancellation is permanent. A canceled flow can't be resumed or restarted,\n * and the keyword research linked to it is canceled with it. To generate a\n * content plan afterwards, call Trigger Content Plan Generation Flow to\n * start a flow.\n *\n * Calling this method on a flow that's already canceled succeeds and\n * changes nothing.\n */\nexport function cancelContentPlanFlow(\n payload: object\n): RequestOptionsFactory<any> {\n function __cancelContentPlanFlow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.content_plan_content_plan_flow',\n method: 'POST' as any,\n methodFqn:\n 'wix.promote.seo.content.plan.v1.ContentPlanFlowServiceV1.CancelContentPlanFlow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoContentPlanV1ContentPlanFlowServiceV1Url({\n protoPath: '/v1/content-plan-flows/{contentPlanFlowId}/cancel',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __cancelContentPlanFlow;\n}\n","/**\n * A content plan flow tracks the generation of an SEO content plan for a site.\n *\n * A content plan is a set of blog post briefs built from the site's pages, its\n * business category, and real search volume data. Generating one takes several\n * minutes, so the flow runs asynchronously and reports its progress in `status`.\n *\n * A flow doesn't run to completion on its own. It stops at `KEYWORD_RESEARCH`\n * and waits for a call to Create Content Plan before it continues.\n */\nexport interface ContentPlanFlow {\n /**\n * Content plan flow ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Date and time the content plan flow was created.\n * @maxLength 100\n */\n createdAt?: string | null;\n /**\n * Date and time the content plan flow was updated.\n * @maxLength 100\n */\n updatedAt?: string | null;\n /**\n * Current status of the content plan flow.\n *\n * The status advances on its own as generation progresses, except at\n * `KEYWORD_RESEARCH`, where the flow waits for a call to Create Content\n * Plan.\n */\n status?: StatusWithLiterals;\n /**\n * What started the content plan flow. Flows started by an app are\n * recorded as `AGENT`.\n * @maxLength 100\n */\n origin?: string | null;\n /**\n * ID of the site content summary the flow produced.\n * @format GUID\n */\n summaryId?: string | null;\n /**\n * Untyped diagnostic detail about the current status. Carries\n * `failedOnStep` when `status` is `FAIL`.\n * @internal\n */\n statusAdditionalData?: Record<string, any> | null;\n /**\n * ID of the keyword research the flow produced.\n *\n * Available once `status` is `KEYWORD_RESEARCH` or later.\n * @format GUID\n */\n keywordResearchId?: string | null;\n /**\n * retry attempt number\n * @internal\n */\n retryAttempt?: number | null;\n /**\n * Execution ID for async Proactive Marketing Assistant (PMA) operations.\n * @internal\n * @format GUID\n */\n pmaExecutionId?: string | null;\n}\n\nexport enum Status {\n /** The flow is created and the generation pipeline is starting. */\n CREATED = 'CREATED',\n /** The site's existing content is being summarized. */\n SITE_SUMMARY = 'SITE_SUMMARY',\n /**\n * Keyword research is complete and the flow is waiting. Call Create\n * Content Plan to generate the blog post briefs and continue the flow.\n */\n KEYWORD_RESEARCH = 'KEYWORD_RESEARCH',\n /** Blog post briefs are being generated from the keyword research. */\n CONTENT_PLAN = 'CONTENT_PLAN',\n /**\n * Generation is complete. Retrieve the results with List Blog Post\n * Candidates and List Keyword Research Items.\n */\n SUCCESS = 'SUCCESS',\n /** Generation failed. Trigger a flow to try again. */\n FAIL = 'FAIL',\n /**\n * The site is missing business information that keyword research\n * requires. The flow resumes automatically once the information is\n * added to the site.\n */\n PENDING_REQUIREMENTS = 'PENDING_REQUIREMENTS',\n /** The flow was canceled and can't be resumed. */\n CANCELED = 'CANCELED',\n /** The site's pages are being analyzed. */\n SITE_ANALYSIS = 'SITE_ANALYSIS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'CREATED'\n | 'SITE_SUMMARY'\n | 'KEYWORD_RESEARCH'\n | 'CONTENT_PLAN'\n | 'SUCCESS'\n | 'FAIL'\n | 'PENDING_REQUIREMENTS'\n | 'CANCELED'\n | 'SITE_ANALYSIS';\n\nexport interface GetContentPlanFlowRequest {\n /**\n * ID of the content plan flow to retrieve.\n *\n * Omit to retrieve the site's most recent successful flow.\n * @format GUID\n */\n contentPlanFlowId: string | null;\n}\n\nexport interface GetContentPlanFlowResponse {\n /** Retrieved content plan flow. */\n contentPlanFlow?: ContentPlanFlow;\n}\n\nexport interface TriggerContentPlanGenerationFlowRequest {\n /**\n * Internal. External app callers get AGENT; internal callers keep their value.\n * @internal\n * @maxLength 100\n */\n origin?: string | null;\n /**\n * Execution ID supplied by the Proactive Marketing Assistant. No external\n * caller has one. No removal owner is assigned yet.\n * @internal\n * @format GUID\n */\n executionId?: string | null;\n}\n\nexport interface TriggerContentPlanGenerationFlowResponse {\n /**\n * ID of the content plan flow that was created.\n *\n * Poll Get Content Plan Flow with this ID to follow the flow's progress.\n * @format GUID\n */\n contentPlanFlowId?: string | null;\n}\n\nexport interface ExecuteActionRequest {\n /**\n * the execution id\n * @format GUID\n */\n executionId?: string;\n /**\n * the action id\n * @maxLength 1000\n */\n actionId?: string;\n /** item data - if relevant */\n item?: ItemData;\n /** whether to reset the current content of the action */\n reset?: boolean;\n}\n\nexport interface ItemData extends ItemDataPayloadDataOneOf {\n blogData?: BlogData;\n /**\n * id\n * @maxLength 1000\n */\n id?: string;\n /**\n * type\n * @maxLength 1000\n */\n type?: string;\n}\n\n/** @oneof */\nexport interface ItemDataPayloadDataOneOf {\n blogData?: BlogData;\n}\n\nexport interface BlogData {\n /**\n * prompt\n * @maxLength 10000\n */\n prompt?: string;\n}\n\nexport interface ExecuteActionResponse {\n /** Whether the suggestion succeeded */\n success?: boolean;\n /** Whether the operation is async */\n async?: boolean;\n /**\n * Optional internal message\n * @maxLength 1000\n */\n message?: string;\n /** Optional display message */\n displayMessage?: DisplayMessage;\n /** The payload of the action, also the suggestion itself. */\n payload?: ActionPayload;\n /** Total action cost in microcents (1 microcent = $0.00001). If omitted or zero, PMA uses configured credit cost. */\n costInMicrocents?: number | null;\n}\n\nexport interface DisplayMessage {\n /**\n * Message to show to the user\n * @maxLength 1000\n */\n message?: string;\n /** Optional call to action */\n cta?: ActionCta;\n}\n\nexport interface ActionCta {\n /**\n * CTA title\n * @maxLength 1000\n */\n title?: string;\n /**\n * CTA URL\n * @maxLength 1000\n */\n url?: string;\n}\n\nexport interface ActionPayload {\n /**\n * Description of the suggestion\n * @maxLength 1000\n */\n description?: string;\n /**\n * Optional motivation for the suggestion\n * @maxLength 1000\n */\n motivation?: string;\n /** Optional entity being suggested */\n entity?: Entity;\n /**\n * Optional changes suggested\n * @maxSize 100\n */\n changes?: Change[];\n /**\n * Optional items suggested\n * @maxSize 100\n */\n items?: Item[];\n /** Optional preview link */\n previewLink?: ActionCta;\n}\n\nexport interface Entity {\n /**\n * Entity ID\n * @maxLength 100\n */\n id?: string;\n /**\n * Optional entity name\n * @maxLength 1000\n */\n name?: string;\n}\n\nexport interface Change {\n /**\n * Change ID\n * @maxLength 100\n */\n id?: string;\n /**\n * Change title\n * @maxLength 1000\n */\n title?: string;\n /**\n * The resulting state after the change\n * @maxLength 1000\n */\n after?: string;\n /**\n * Optional description\n * @maxLength 1000\n */\n description?: string;\n /**\n * Optional state before the change\n * @maxLength 1000\n */\n before?: string;\n /** Optional: is this a suggestion or a confirmed change */\n isSuggestion?: boolean;\n /**\n * Optional type of change\n * @maxLength 100\n */\n type?: string;\n}\n\nexport interface Item {\n /**\n * Item ID\n * @maxLength 100\n */\n id?: string;\n /**\n * Item title\n * @maxLength 1000\n */\n title?: string;\n /**\n * Optional description\n * @maxLength 1000\n */\n description?: string;\n /**\n * Optional images\n * @maxSize 100\n * @maxLength 1000\n */\n images?: string[];\n /** Optional preview link */\n previewLink?: ActionCta;\n /**\n * Optional motivation for suggesting this item\n * @maxLength 1000\n */\n motivation?: string;\n /** Data */\n data?: Record<string, any> | null;\n /**\n * The content plan item id which this item created by\n * @maxLength 100\n */\n contentPlanItemId?: string;\n /** scheduled date */\n scheduledDate?: Date | null;\n}\n\nexport interface CancelContentPlanFlowRequest {\n /**\n * ID of the content plan flow to cancel.\n * @format GUID\n */\n contentPlanFlowId: string | null;\n}\n\nexport interface CancelContentPlanFlowResponse {}\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 ambassadorWixPromoteSeoV1ContentPlanContentPlanFlow from './promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.http.js';\nimport * as ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowTypes from './promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.types.js';\nimport * as ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowUniversalTypes from './promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.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 getContentPlanFlow(): __PublicMethodMetaInfo<\n 'GET',\n { contentPlanFlowId: string },\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowUniversalTypes.GetContentPlanFlowRequest,\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowTypes.GetContentPlanFlowRequest,\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowUniversalTypes.GetContentPlanFlowResponse,\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowTypes.GetContentPlanFlowResponse\n> {\n const payload = { contentPlanFlowId: ':contentPlanFlowId' } as any;\n\n const getRequestOptions =\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlow.getContentPlanFlow(\n payload\n );\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/content-plan-flows/{contentPlanFlowId}',\n pathParams: { contentPlanFlowId: 'contentPlanFlowId' },\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 triggerContentPlanGenerationFlow(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowUniversalTypes.TriggerContentPlanGenerationFlowRequest,\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowTypes.TriggerContentPlanGenerationFlowRequest,\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowUniversalTypes.TriggerContentPlanGenerationFlowResponse,\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowTypes.TriggerContentPlanGenerationFlowResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlow.triggerContentPlanGenerationFlow(\n payload\n );\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/content-plan-flows/trigger',\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 cancelContentPlanFlow(): __PublicMethodMetaInfo<\n 'POST',\n { contentPlanFlowId: string },\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowUniversalTypes.CancelContentPlanFlowRequest,\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowTypes.CancelContentPlanFlowRequest,\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowUniversalTypes.CancelContentPlanFlowResponse,\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlowTypes.CancelContentPlanFlowResponse\n> {\n const payload = { contentPlanFlowId: ':contentPlanFlowId' } as any;\n\n const getRequestOptions =\n ambassadorWixPromoteSeoV1ContentPlanContentPlanFlow.cancelContentPlanFlow(\n payload\n );\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/content-plan-flows/{contentPlanFlowId}/cancel',\n pathParams: { contentPlanFlowId: 'contentPlanFlowId' },\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 ContentPlanFlow as ContentPlanFlowOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n GetContentPlanFlowRequest as GetContentPlanFlowRequestOriginal,\n GetContentPlanFlowResponse as GetContentPlanFlowResponseOriginal,\n TriggerContentPlanGenerationFlowRequest as TriggerContentPlanGenerationFlowRequestOriginal,\n TriggerContentPlanGenerationFlowResponse as TriggerContentPlanGenerationFlowResponseOriginal,\n ExecuteActionRequest as ExecuteActionRequestOriginal,\n ItemData as ItemDataOriginal,\n ItemDataPayloadDataOneOf as ItemDataPayloadDataOneOfOriginal,\n BlogData as BlogDataOriginal,\n ExecuteActionResponse as ExecuteActionResponseOriginal,\n DisplayMessage as DisplayMessageOriginal,\n ActionCta as ActionCtaOriginal,\n ActionPayload as ActionPayloadOriginal,\n Entity as EntityOriginal,\n Change as ChangeOriginal,\n Item as ItemOriginal,\n CancelContentPlanFlowRequest as CancelContentPlanFlowRequestOriginal,\n CancelContentPlanFlowResponse as CancelContentPlanFlowResponseOriginal,\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 './promote-seo-v1-content-plan-content-plan-flow-content-plan-flows.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAAA;AAAA,EAAA,0BAAAC;AAAA,EAAA,wCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,6DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;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AAA,EAC1B;AACF;AAEO,SAASC,oCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACgD;AAAA,IAClD;AAAA,EACF;AAEF,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,EAAE,mBAAmB,qBAAqB;AAE1D,QAAM,oBACgD;AAAA,IAClD;AAAA,EACF;AAEF,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,mBAAmB,oBAAoB;AAAA,IACrD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["cancelContentPlanFlow","getContentPlanFlow","triggerContentPlanGenerationFlow","import_rest_modules","Status","WebhookIdentityType","getContentPlanFlow","triggerContentPlanGenerationFlow","cancelContentPlanFlow"]}
@@ -0,0 +1,68 @@
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { GetContentPlanFlowResponse, TriggerContentPlanGenerationFlowResponse } from './index.typings.mjs';
3
+ export { AccountInfo, ActionCta, ActionEvent, ActionPayload, BlogData, CancelContentPlanFlowRequest, CancelContentPlanFlowResponse, Change, ContentPlanFlow, DisplayMessage, DomainEvent, DomainEventBodyOneOf, Entity, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExecuteActionRequest, ExecuteActionResponse, GetContentPlanFlowRequest, IdentificationData, IdentificationDataIdOneOf, Item, ItemData, ItemDataPayloadDataOneOf, MessageEnvelope, RestoreInfo, Status, StatusWithLiterals, TriggerContentPlanGenerationFlowRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
4
+
5
+ declare function getContentPlanFlow$1(httpClient: HttpClient): GetContentPlanFlowSignature;
6
+ interface GetContentPlanFlowSignature {
7
+ /**
8
+ * Retrieves a content plan flow.
9
+ *
10
+ * While a flow is generating, poll this method with the
11
+ * `contentPlanFlowId` returned by Trigger Content Plan Generation Flow to
12
+ * follow the flow's progress.
13
+ *
14
+ * Omit `contentPlanFlowId` to retrieve the site's most recent successful
15
+ * flow. This is useful for picking up a content plan that was generated in
16
+ * the site dashboard. A flow that's still running is never returned this
17
+ * way, and a site with no successful flow returns a not found error.
18
+ * @param - ID of the content plan flow to retrieve.
19
+ *
20
+ * Omit to retrieve the site's most recent successful flow.
21
+ */
22
+ (contentPlanFlowId: string): Promise<NonNullablePaths<GetContentPlanFlowResponse, `contentPlanFlow.status`, 3>>;
23
+ }
24
+ declare function triggerContentPlanGenerationFlow$1(httpClient: HttpClient): TriggerContentPlanGenerationFlowSignature;
25
+ interface TriggerContentPlanGenerationFlowSignature {
26
+ /**
27
+ * Creates and starts a content plan flow for a site.
28
+ *
29
+ * Generation runs asynchronously and takes several minutes. This method
30
+ * returns a `contentPlanFlowId` as soon as the flow is created, before any
31
+ * content is generated. Poll Get Content Plan Flow with that ID to follow
32
+ * the flow's progress.
33
+ *
34
+ * A successful response means the flow was created, not that generation
35
+ * succeeded. Check `status` rather than relying on the response alone.
36
+ *
37
+ * The flow stops at `KEYWORD_RESEARCH` and waits. Call Create Content Plan
38
+ * to generate the blog post briefs and let the flow continue to `SUCCESS`.
39
+ *
40
+ * A failed flow is retried automatically, and each retry creates a separate
41
+ * flow with its own ID. The original flow keeps its `FAIL` status, so call
42
+ * Get Content Plan Flow without an ID to retrieve the site's most recent
43
+ * successful flow.
44
+ */
45
+ (): Promise<TriggerContentPlanGenerationFlowResponse>;
46
+ }
47
+ declare function cancelContentPlanFlow$1(httpClient: HttpClient): CancelContentPlanFlowSignature;
48
+ interface CancelContentPlanFlowSignature {
49
+ /**
50
+ * Cancels a content plan flow.
51
+ *
52
+ * Cancellation is permanent. A canceled flow can't be resumed or restarted,
53
+ * and the keyword research linked to it is canceled with it. To generate a
54
+ * content plan afterwards, call Trigger Content Plan Generation Flow to
55
+ * start a flow.
56
+ *
57
+ * Calling this method on a flow that's already canceled succeeds and
58
+ * changes nothing.
59
+ * @param - ID of the content plan flow to cancel.
60
+ */
61
+ (contentPlanFlowId: string): Promise<void>;
62
+ }
63
+
64
+ declare const getContentPlanFlow: MaybeContext<BuildRESTFunction<typeof getContentPlanFlow$1> & typeof getContentPlanFlow$1>;
65
+ declare const triggerContentPlanGenerationFlow: MaybeContext<BuildRESTFunction<typeof triggerContentPlanGenerationFlow$1> & typeof triggerContentPlanGenerationFlow$1>;
66
+ declare const cancelContentPlanFlow: MaybeContext<BuildRESTFunction<typeof cancelContentPlanFlow$1> & typeof cancelContentPlanFlow$1>;
67
+
68
+ export { GetContentPlanFlowResponse, TriggerContentPlanGenerationFlowResponse, cancelContentPlanFlow, getContentPlanFlow, triggerContentPlanGenerationFlow };