@wix/auto_sdk_seo_seo-patterns 1.0.7 → 1.0.9

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.
Files changed (44) hide show
  1. package/build/cjs/index.d.ts +38 -10
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +102 -22
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +60 -12
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/es/index.d.mts +38 -10
  8. package/build/es/index.mjs.map +1 -1
  9. package/build/es/index.typings.d.mts +102 -22
  10. package/build/es/index.typings.mjs.map +1 -1
  11. package/build/es/meta.d.mts +60 -12
  12. package/build/es/meta.mjs.map +1 -1
  13. package/build/internal/cjs/index.d.ts +38 -10
  14. package/build/internal/cjs/index.typings.d.ts +102 -22
  15. package/build/internal/cjs/meta.d.ts +60 -12
  16. package/build/internal/es/index.d.mts +38 -10
  17. package/build/internal/es/index.typings.d.mts +102 -22
  18. package/build/internal/es/meta.d.mts +60 -12
  19. package/package.json +4 -11
  20. package/build/cjs/schemas.d.ts +0 -309
  21. package/build/cjs/schemas.js +0 -706
  22. package/build/cjs/schemas.js.map +0 -1
  23. package/build/es/schemas.d.mts +0 -309
  24. package/build/es/schemas.mjs +0 -658
  25. package/build/es/schemas.mjs.map +0 -1
  26. package/build/internal/cjs/index.js +0 -495
  27. package/build/internal/cjs/index.js.map +0 -1
  28. package/build/internal/cjs/index.typings.js +0 -438
  29. package/build/internal/cjs/index.typings.js.map +0 -1
  30. package/build/internal/cjs/meta.js +0 -387
  31. package/build/internal/cjs/meta.js.map +0 -1
  32. package/build/internal/cjs/schemas.d.ts +0 -309
  33. package/build/internal/cjs/schemas.js +0 -706
  34. package/build/internal/cjs/schemas.js.map +0 -1
  35. package/build/internal/es/index.mjs +0 -463
  36. package/build/internal/es/index.mjs.map +0 -1
  37. package/build/internal/es/index.typings.mjs +0 -406
  38. package/build/internal/es/index.typings.mjs.map +0 -1
  39. package/build/internal/es/meta.mjs +0 -352
  40. package/build/internal/es/meta.mjs.map +0 -1
  41. package/build/internal/es/schemas.d.mts +0 -309
  42. package/build/internal/es/schemas.mjs +0 -658
  43. package/build/internal/es/schemas.mjs.map +0 -1
  44. package/schemas/package.json +0 -3
@@ -25,8 +25,11 @@ interface SeoPattern {
25
25
  */
26
26
  id?: string | null;
27
27
  /**
28
- * Page type the pattern applies to. For example, `STATIC_PAGE`, `BLOG_POST`, or
29
- * `STORES_PRODUCT`.
28
+ * Page type the pattern applies to. A known page type name, such as
29
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
30
+ *
31
+ * See the list of [common page
32
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
30
33
  * @maxLength 100
31
34
  * @readonly
32
35
  */
@@ -116,6 +119,13 @@ interface Tag {
116
119
  * `title`/`script`/`link` with a validation error even though they appear here —
117
120
  * check the field description of the specific `tags`-typed field you're writing to
118
121
  * for the types it actually supports and the error it returns.
122
+ *
123
+ * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
124
+ * `"application/ld+json"` carrying structured data) are supported only when
125
+ * `custom` is unset or `false`. Setting `custom: true` on a `title` or `script`
126
+ * tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the
127
+ * write through the site's Advanced/Custom Tags list. To write structured data,
128
+ * omit `custom` (or set it to `false`).
119
129
  */
120
130
  type?: string;
121
131
  /**
@@ -131,6 +141,12 @@ interface Tag {
131
141
  * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
132
142
  * i.e. an entry from the site's Advanced/Custom Tags list.
133
143
  *
144
+ * Setting this to `true` on a write restricts which `type` values are accepted
145
+ * — the same restriction the Advanced/Custom Tags UI enforces. `title` and
146
+ * `script` tags (including JSON-LD structured data) must be sent with `custom`
147
+ * omitted or `false`; sending them with `custom: true` is rejected with
148
+ * `TAG_TYPE_NOT_ALLOWED`.
149
+ *
134
150
  * Note this is a separate restriction from Site SEO Tags' own type restriction on
135
151
  * `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g.
136
152
  * for site-wide structured data) unconditionally. There is currently no way to set
@@ -188,8 +204,14 @@ declare enum Origin {
188
204
  type OriginWithLiterals = Origin | 'ORIGIN_UNSPECIFIED' | 'ORIGIN_USER' | 'ORIGIN_MIGRATION' | 'ORIGIN_AI';
189
205
  interface GetSeoPatternRequest {
190
206
  /**
191
- * Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
192
- * `STORES_PRODUCT`.
207
+ * Page type whose pattern to retrieve. Send a known page type name, such as
208
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
209
+ *
210
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
211
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
212
+ *
213
+ * See the list of [common page
214
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
193
215
  * @maxLength 100
194
216
  */
195
217
  pageType: string;
@@ -231,8 +253,14 @@ interface ListSeoPatternsResponse {
231
253
  }
232
254
  interface ListSeoPatternVariablesRequest {
233
255
  /**
234
- * Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
235
- * `STORES_PRODUCT`.
256
+ * Page type whose variables to retrieve. Send a known page type name, such as
257
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
258
+ *
259
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
260
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
261
+ *
262
+ * See the list of [common page
263
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
236
264
  * @maxLength 100
237
265
  */
238
266
  pageType: string;
@@ -278,8 +306,14 @@ interface SeoPatternVariable {
278
306
  }
279
307
  interface CreateSeoPatternRequest {
280
308
  /**
281
- * Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
282
- * `STORES_PRODUCT`.
309
+ * Page type to create a pattern for. Send a known page type name, such as
310
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
311
+ *
312
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
313
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
314
+ *
315
+ * See the list of [common page
316
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
283
317
  * @maxLength 100
284
318
  */
285
319
  pageType: string;
@@ -301,8 +335,13 @@ interface CreateSeoPatternResponse {
301
335
  }
302
336
  interface SetSeoPatternRequest {
303
337
  /**
304
- * Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
305
- * `STORES_PRODUCT`.
338
+ * Page type whose pattern to change. Send a known page type name, such as
339
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
340
+ *
341
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
342
+ *
343
+ * See the list of [common page
344
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
306
345
  * @maxLength 100
307
346
  */
308
347
  pageType: string;
@@ -318,6 +357,10 @@ interface SetSeoPatternRequest {
318
357
  * Fields to update.
319
358
  *
320
359
  * Supported properties: `pattern`
360
+ *
361
+ * Over REST, send the mask as a comma-separated string, for example
362
+ * `"fieldMask": "pattern"`. The JavaScript SDK takes an array of strings
363
+ * instead, for example `fieldMask: ["pattern"]`.
321
364
  */
322
365
  fieldMask: string[];
323
366
  /**
@@ -343,8 +386,13 @@ interface SetSeoPatternResponse {
343
386
  }
344
387
  interface ResetSeoPatternToDefaultRequest {
345
388
  /**
346
- * Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
347
- * `STORES_PRODUCT`.
389
+ * Page type whose pattern to reset. Send a known page type name, such as
390
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
391
+ *
392
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
393
+ *
394
+ * See the list of [common page
395
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
348
396
  * @maxLength 100
349
397
  */
350
398
  pageType: string;
@@ -10,8 +10,14 @@ interface GetSeoPatternSignature {
10
10
  * The response contains the site's own pattern in `pattern`, and the pattern Wix
11
11
  * provides in `defaultPattern`. `source` reports which of the two is in effect.
12
12
  * `pattern` is empty when the site has no pattern of its own.
13
- * @param - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
14
- * `STORES_PRODUCT`.
13
+ * @param - Page type whose pattern to retrieve. Send a known page type name, such as
14
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
15
+ *
16
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
17
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
18
+ *
19
+ * See the list of [common page
20
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
15
21
  */
16
22
  (pageType: string, options?: GetSeoPatternOptions): Promise<NonNullablePaths<GetSeoPatternResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 6> & {
17
23
  __applicationErrorsType?: GetSeoPatternApplicationErrors;
@@ -38,8 +44,14 @@ interface ListSeoPatternVariablesSignature {
38
44
  *
39
45
  * Variables for the page's own tags and variables for its structured data are returned
40
46
  * in separate fields, and a pattern may use either.
41
- * @param - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
42
- * `STORES_PRODUCT`.
47
+ * @param - Page type whose variables to retrieve. Send a known page type name, such as
48
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
49
+ *
50
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
51
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
52
+ *
53
+ * See the list of [common page
54
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
43
55
  */
44
56
  (pageType: string): Promise<NonNullablePaths<ListSeoPatternVariablesResponse, `variables` | `variables.${number}.key` | `variables.${number}.userVisible` | `structuredDataVariables` | `structuredDataVariables.${number}.key` | `structuredDataVariables.${number}.userVisible`, 4> & {
45
57
  __applicationErrorsType?: ListSeoPatternVariablesApplicationErrors;
@@ -55,8 +67,14 @@ interface CreateSeoPatternSignature {
55
67
  *
56
68
  * To change a pattern that already exists, call [Set SEO
57
69
  * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/set-seo-pattern).
58
- * @param - Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
59
- * `STORES_PRODUCT`.
70
+ * @param - Page type to create a pattern for. Send a known page type name, such as
71
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
72
+ *
73
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
74
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
75
+ *
76
+ * See the list of [common page
77
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
60
78
  * @param - Pattern to create for the page type.
61
79
  *
62
80
  * `pattern` is the only field to send. The page type comes from the request path, and
@@ -86,8 +104,13 @@ interface SetSeoPatternSignature {
86
104
  * A pattern has no revision, and the site's SEO settings in the dashboard write to the
87
105
  * same pattern. The last write wins, so retrieve the pattern immediately before writing
88
106
  * it.
89
- * @param - Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
90
- * `STORES_PRODUCT`.
107
+ * @param - Page type whose pattern to change. Send a known page type name, such as
108
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
109
+ *
110
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
111
+ *
112
+ * See the list of [common page
113
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
91
114
  * @param - Pattern to set for the page type.
92
115
  *
93
116
  * `pattern` is the only writable field, and setting it replaces the page type's tag
@@ -105,8 +128,13 @@ interface ResetSeoPatternToDefaultSignature {
105
128
  *
106
129
  * The response reports the page type after the reset, with an empty `pattern` and
107
130
  * `source` of `PATTERN_SOURCE_DEFAULT`.
108
- * @param - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
109
- * `STORES_PRODUCT`.
131
+ * @param - Page type whose pattern to reset. Send a known page type name, such as
132
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
133
+ *
134
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
135
+ *
136
+ * See the list of [common page
137
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
110
138
  */
111
139
  (pageType: string, options?: ResetSeoPatternToDefaultOptions): Promise<NonNullablePaths<ResetSeoPatternToDefaultResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 6> & {
112
140
  __applicationErrorsType?: ResetSeoPatternToDefaultApplicationErrors;
@@ -24,8 +24,11 @@ interface SeoPattern {
24
24
  */
25
25
  _id?: string | null;
26
26
  /**
27
- * Page type the pattern applies to. For example, `STATIC_PAGE`, `BLOG_POST`, or
28
- * `STORES_PRODUCT`.
27
+ * Page type the pattern applies to. A known page type name, such as
28
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
29
+ *
30
+ * See the list of [common page
31
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
29
32
  * @maxLength 100
30
33
  * @readonly
31
34
  */
@@ -115,6 +118,13 @@ interface Tag {
115
118
  * `title`/`script`/`link` with a validation error even though they appear here —
116
119
  * check the field description of the specific `tags`-typed field you're writing to
117
120
  * for the types it actually supports and the error it returns.
121
+ *
122
+ * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
123
+ * `"application/ld+json"` carrying structured data) are supported only when
124
+ * `custom` is unset or `false`. Setting `custom: true` on a `title` or `script`
125
+ * tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the
126
+ * write through the site's Advanced/Custom Tags list. To write structured data,
127
+ * omit `custom` (or set it to `false`).
118
128
  */
119
129
  type?: string;
120
130
  /**
@@ -130,6 +140,12 @@ interface Tag {
130
140
  * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
131
141
  * i.e. an entry from the site's Advanced/Custom Tags list.
132
142
  *
143
+ * Setting this to `true` on a write restricts which `type` values are accepted
144
+ * — the same restriction the Advanced/Custom Tags UI enforces. `title` and
145
+ * `script` tags (including JSON-LD structured data) must be sent with `custom`
146
+ * omitted or `false`; sending them with `custom: true` is rejected with
147
+ * `TAG_TYPE_NOT_ALLOWED`.
148
+ *
133
149
  * Note this is a separate restriction from Site SEO Tags' own type restriction on
134
150
  * `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g.
135
151
  * for site-wide structured data) unconditionally. There is currently no way to set
@@ -187,8 +203,14 @@ declare enum Origin {
187
203
  type OriginWithLiterals = Origin | 'ORIGIN_UNSPECIFIED' | 'ORIGIN_USER' | 'ORIGIN_MIGRATION' | 'ORIGIN_AI';
188
204
  interface GetSeoPatternRequest {
189
205
  /**
190
- * Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
191
- * `STORES_PRODUCT`.
206
+ * Page type whose pattern to retrieve. Send a known page type name, such as
207
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
208
+ *
209
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
210
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
211
+ *
212
+ * See the list of [common page
213
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
192
214
  * @maxLength 100
193
215
  */
194
216
  pageType: string;
@@ -230,8 +252,14 @@ interface ListSeoPatternsResponse {
230
252
  }
231
253
  interface ListSeoPatternVariablesRequest {
232
254
  /**
233
- * Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
234
- * `STORES_PRODUCT`.
255
+ * Page type whose variables to retrieve. Send a known page type name, such as
256
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
257
+ *
258
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
259
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
260
+ *
261
+ * See the list of [common page
262
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
235
263
  * @maxLength 100
236
264
  */
237
265
  pageType: string;
@@ -277,8 +305,14 @@ interface SeoPatternVariable {
277
305
  }
278
306
  interface CreateSeoPatternRequest {
279
307
  /**
280
- * Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
281
- * `STORES_PRODUCT`.
308
+ * Page type to create a pattern for. Send a known page type name, such as
309
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
310
+ *
311
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
312
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
313
+ *
314
+ * See the list of [common page
315
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
282
316
  * @maxLength 100
283
317
  */
284
318
  pageType: string;
@@ -300,8 +334,13 @@ interface CreateSeoPatternResponse {
300
334
  }
301
335
  interface SetSeoPatternRequest {
302
336
  /**
303
- * Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
304
- * `STORES_PRODUCT`.
337
+ * Page type whose pattern to change. Send a known page type name, such as
338
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
339
+ *
340
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
341
+ *
342
+ * See the list of [common page
343
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
305
344
  * @maxLength 100
306
345
  */
307
346
  pageType: string;
@@ -317,6 +356,10 @@ interface SetSeoPatternRequest {
317
356
  * Fields to update.
318
357
  *
319
358
  * Supported properties: `pattern`
359
+ *
360
+ * Over REST, send the mask as a comma-separated string, for example
361
+ * `"fieldMask": "pattern"`. The JavaScript SDK takes an array of strings
362
+ * instead, for example `fieldMask: ["pattern"]`.
320
363
  */
321
364
  fieldMask: string[];
322
365
  /**
@@ -342,8 +385,13 @@ interface SetSeoPatternResponse {
342
385
  }
343
386
  interface ResetSeoPatternToDefaultRequest {
344
387
  /**
345
- * Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
346
- * `STORES_PRODUCT`.
388
+ * Page type whose pattern to reset. Send a known page type name, such as
389
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
390
+ *
391
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
392
+ *
393
+ * See the list of [common page
394
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
347
395
  * @maxLength 100
348
396
  */
349
397
  pageType: string;
@@ -624,8 +672,14 @@ type ResetSeoPatternToDefaultApplicationErrors = {
624
672
  * The response contains the site's own pattern in `pattern`, and the pattern Wix
625
673
  * provides in `defaultPattern`. `source` reports which of the two is in effect.
626
674
  * `pattern` is empty when the site has no pattern of its own.
627
- * @param pageType - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
628
- * `STORES_PRODUCT`.
675
+ * @param pageType - Page type whose pattern to retrieve. Send a known page type name, such as
676
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
677
+ *
678
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
679
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
680
+ *
681
+ * See the list of [common page
682
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
629
683
  * @public
630
684
  * @documentationMaturity preview
631
685
  * @requiredField pageType
@@ -667,8 +721,14 @@ declare function listSeoPatterns(): Promise<NonNullablePaths<ListSeoPatternsResp
667
721
  *
668
722
  * Variables for the page's own tags and variables for its structured data are returned
669
723
  * in separate fields, and a pattern may use either.
670
- * @param pageType - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
671
- * `STORES_PRODUCT`.
724
+ * @param pageType - Page type whose variables to retrieve. Send a known page type name, such as
725
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
726
+ *
727
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
728
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
729
+ *
730
+ * See the list of [common page
731
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
672
732
  * @public
673
733
  * @documentationMaturity preview
674
734
  * @requiredField pageType
@@ -687,8 +747,14 @@ declare function listSeoPatternVariables(pageType: string): Promise<NonNullableP
687
747
  *
688
748
  * To change a pattern that already exists, call [Set SEO
689
749
  * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/set-seo-pattern).
690
- * @param pageType - Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
691
- * `STORES_PRODUCT`.
750
+ * @param pageType - Page type to create a pattern for. Send a known page type name, such as
751
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
752
+ *
753
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
754
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
755
+ *
756
+ * See the list of [common page
757
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
692
758
  * @param seoPattern - Pattern to create for the page type.
693
759
  *
694
760
  * `pattern` is the only field to send. The page type comes from the request path, and
@@ -722,8 +788,13 @@ declare function createSeoPattern(pageType: string, seoPattern: SeoPattern): Pro
722
788
  * A pattern has no revision, and the site's SEO settings in the dashboard write to the
723
789
  * same pattern. The last write wins, so retrieve the pattern immediately before writing
724
790
  * it.
725
- * @param pageType - Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
726
- * `STORES_PRODUCT`.
791
+ * @param pageType - Page type whose pattern to change. Send a known page type name, such as
792
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
793
+ *
794
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
795
+ *
796
+ * See the list of [common page
797
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
727
798
  * @param seoPattern - Pattern to set for the page type.
728
799
  *
729
800
  * `pattern` is the only writable field, and setting it replaces the page type's tag
@@ -746,6 +817,10 @@ interface SetSeoPatternOptions {
746
817
  * Fields to update.
747
818
  *
748
819
  * Supported properties: `pattern`
820
+ *
821
+ * Over REST, send the mask as a comma-separated string, for example
822
+ * `"fieldMask": "pattern"`. The JavaScript SDK takes an array of strings
823
+ * instead, for example `fieldMask: ["pattern"]`.
749
824
  */
750
825
  fieldMask: string[];
751
826
  /**
@@ -762,8 +837,13 @@ interface SetSeoPatternOptions {
762
837
  *
763
838
  * The response reports the page type after the reset, with an empty `pattern` and
764
839
  * `source` of `PATTERN_SOURCE_DEFAULT`.
765
- * @param pageType - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
766
- * `STORES_PRODUCT`.
840
+ * @param pageType - Page type whose pattern to reset. Send a known page type name, such as
841
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
842
+ *
843
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
844
+ *
845
+ * See the list of [common page
846
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
767
847
  * @public
768
848
  * @documentationMaturity preview
769
849
  * @requiredField pageType
@@ -25,8 +25,11 @@ interface SeoPattern {
25
25
  */
26
26
  id?: string | null;
27
27
  /**
28
- * Page type the pattern applies to. For example, `STATIC_PAGE`, `BLOG_POST`, or
29
- * `STORES_PRODUCT`.
28
+ * Page type the pattern applies to. A known page type name, such as
29
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
30
+ *
31
+ * See the list of [common page
32
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
30
33
  * @maxLength 100
31
34
  * @readonly
32
35
  */
@@ -116,6 +119,13 @@ interface Tag {
116
119
  * `title`/`script`/`link` with a validation error even though they appear here —
117
120
  * check the field description of the specific `tags`-typed field you're writing to
118
121
  * for the types it actually supports and the error it returns.
122
+ *
123
+ * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
124
+ * `"application/ld+json"` carrying structured data) are supported only when
125
+ * `custom` is unset or `false`. Setting `custom: true` on a `title` or `script`
126
+ * tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the
127
+ * write through the site's Advanced/Custom Tags list. To write structured data,
128
+ * omit `custom` (or set it to `false`).
119
129
  */
120
130
  type?: string;
121
131
  /**
@@ -131,6 +141,12 @@ interface Tag {
131
141
  * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
132
142
  * i.e. an entry from the site's Advanced/Custom Tags list.
133
143
  *
144
+ * Setting this to `true` on a write restricts which `type` values are accepted
145
+ * — the same restriction the Advanced/Custom Tags UI enforces. `title` and
146
+ * `script` tags (including JSON-LD structured data) must be sent with `custom`
147
+ * omitted or `false`; sending them with `custom: true` is rejected with
148
+ * `TAG_TYPE_NOT_ALLOWED`.
149
+ *
134
150
  * Note this is a separate restriction from Site SEO Tags' own type restriction on
135
151
  * `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g.
136
152
  * for site-wide structured data) unconditionally. There is currently no way to set
@@ -188,8 +204,14 @@ declare enum Origin {
188
204
  type OriginWithLiterals = Origin | 'ORIGIN_UNSPECIFIED' | 'ORIGIN_USER' | 'ORIGIN_MIGRATION' | 'ORIGIN_AI';
189
205
  interface GetSeoPatternRequest {
190
206
  /**
191
- * Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
192
- * `STORES_PRODUCT`.
207
+ * Page type whose pattern to retrieve. Send a known page type name, such as
208
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
209
+ *
210
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
211
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
212
+ *
213
+ * See the list of [common page
214
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
193
215
  * @maxLength 100
194
216
  */
195
217
  pageType: string;
@@ -231,8 +253,14 @@ interface ListSeoPatternsResponse {
231
253
  }
232
254
  interface ListSeoPatternVariablesRequest {
233
255
  /**
234
- * Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
235
- * `STORES_PRODUCT`.
256
+ * Page type whose variables to retrieve. Send a known page type name, such as
257
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
258
+ *
259
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
260
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
261
+ *
262
+ * See the list of [common page
263
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
236
264
  * @maxLength 100
237
265
  */
238
266
  pageType: string;
@@ -278,8 +306,14 @@ interface SeoPatternVariable {
278
306
  }
279
307
  interface CreateSeoPatternRequest {
280
308
  /**
281
- * Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
282
- * `STORES_PRODUCT`.
309
+ * Page type to create a pattern for. Send a known page type name, such as
310
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
311
+ *
312
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
313
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
314
+ *
315
+ * See the list of [common page
316
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
283
317
  * @maxLength 100
284
318
  */
285
319
  pageType: string;
@@ -301,8 +335,13 @@ interface CreateSeoPatternResponse {
301
335
  }
302
336
  interface SetSeoPatternRequest {
303
337
  /**
304
- * Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
305
- * `STORES_PRODUCT`.
338
+ * Page type whose pattern to change. Send a known page type name, such as
339
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
340
+ *
341
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
342
+ *
343
+ * See the list of [common page
344
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
306
345
  * @maxLength 100
307
346
  */
308
347
  pageType: string;
@@ -318,6 +357,10 @@ interface SetSeoPatternRequest {
318
357
  * Fields to update.
319
358
  *
320
359
  * Supported properties: `pattern`
360
+ *
361
+ * Over REST, send the mask as a comma-separated string, for example
362
+ * `"fieldMask": "pattern"`. The JavaScript SDK takes an array of strings
363
+ * instead, for example `fieldMask: ["pattern"]`.
321
364
  */
322
365
  fieldMask: string[];
323
366
  /**
@@ -343,8 +386,13 @@ interface SetSeoPatternResponse {
343
386
  }
344
387
  interface ResetSeoPatternToDefaultRequest {
345
388
  /**
346
- * Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
347
- * `STORES_PRODUCT`.
389
+ * Page type whose pattern to reset. Send a known page type name, such as
390
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
391
+ *
392
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
393
+ *
394
+ * See the list of [common page
395
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
348
396
  * @maxLength 100
349
397
  */
350
398
  pageType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_seo_seo-patterns",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,23 +21,16 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
- },
25
- "./schemas": {
26
- "import": "./build/es/schemas.mjs",
27
- "require": "./build/cjs/schemas.js",
28
- "types": "./build/es/schemas.d.mts"
29
24
  }
30
25
  },
31
26
  "files": [
32
27
  "build",
33
28
  "meta",
34
- "service-plugins",
35
- "schemas"
29
+ "service-plugins"
36
30
  ],
37
31
  "dependencies": {
38
32
  "@wix/sdk-runtime": "^1.0.24",
39
- "@wix/sdk-types": "^1.17.11",
40
- "zod": "^4.3.6"
33
+ "@wix/sdk-types": "^1.17.11"
41
34
  },
42
35
  "devDependencies": {
43
36
  "tsup": "^8.4.0",
@@ -57,5 +50,5 @@
57
50
  "fqdn": "wix.promote.seo.v1.seo_pattern"
58
51
  }
59
52
  },
60
- "falconPackageHash": "5dc818a9780a91d3f48bc388120c2f489e74b2b6c94206579db90972"
53
+ "falconPackageHash": "fb180e7603bbbc149ad3f546bbfed4578a8cbac9efd73a6951e29263"
61
54
  }