webflow-api 3.1.0 → 3.1.1

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 (343) hide show
  1. package/.mock/definition/__package__.yml +363 -79
  2. package/.mock/definition/accessGroups.yml +1 -0
  3. package/.mock/definition/assets.yml +86 -47
  4. package/.mock/definition/collections/fields.yml +63 -46
  5. package/.mock/definition/collections/items.yml +58 -30
  6. package/.mock/definition/collections.yml +42 -7
  7. package/.mock/definition/components.yml +43 -50
  8. package/.mock/definition/ecommerce.yml +1 -0
  9. package/.mock/definition/forms.yml +114 -2
  10. package/.mock/definition/inventory.yml +2 -0
  11. package/.mock/definition/orders.yml +6 -68
  12. package/.mock/definition/pages/scripts.yml +10 -44
  13. package/.mock/definition/pages.yml +36 -41
  14. package/.mock/definition/products.yml +9 -0
  15. package/.mock/definition/scripts.yml +18 -49
  16. package/.mock/definition/sites/activityLogs.yml +10 -7
  17. package/.mock/definition/sites/plans.yml +7 -1
  18. package/.mock/definition/sites/redirects.yml +24 -1
  19. package/.mock/definition/sites/robotsTxt.yml +202 -0
  20. package/.mock/definition/sites/scripts.yml +22 -30
  21. package/.mock/definition/sites.yml +27 -30
  22. package/.mock/definition/token.yml +2 -0
  23. package/.mock/definition/users.yml +4 -0
  24. package/.mock/definition/webhooks.yml +7 -8
  25. package/.mock/fern.config.json +1 -1
  26. package/api/resources/accessGroups/client/Client.js +1 -1
  27. package/api/resources/assets/client/Client.d.ts +10 -7
  28. package/api/resources/assets/client/Client.js +18 -15
  29. package/api/resources/collections/client/Client.d.ts +21 -1
  30. package/api/resources/collections/client/Client.js +27 -5
  31. package/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
  32. package/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
  33. package/api/resources/collections/resources/fields/client/Client.js +40 -8
  34. package/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  35. package/api/resources/collections/resources/fields/index.d.ts +0 -1
  36. package/api/resources/collections/resources/fields/index.js +0 -1
  37. package/api/resources/collections/resources/index.d.ts +1 -2
  38. package/api/resources/collections/resources/index.js +2 -3
  39. package/api/resources/collections/resources/items/client/Client.d.ts +19 -12
  40. package/api/resources/collections/resources/items/client/Client.js +39 -28
  41. package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
  42. package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
  43. package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  44. package/api/resources/components/client/Client.d.ts +5 -6
  45. package/api/resources/components/client/Client.js +10 -11
  46. package/api/resources/ecommerce/client/Client.js +1 -1
  47. package/api/resources/forms/client/Client.d.ts +51 -0
  48. package/api/resources/forms/client/Client.js +226 -5
  49. package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
  50. package/api/resources/forms/client/requests/index.d.ts +1 -0
  51. package/api/resources/inventory/client/Client.js +2 -2
  52. package/api/resources/orders/client/Client.js +6 -6
  53. package/api/resources/pages/client/Client.d.ts +8 -3
  54. package/api/resources/pages/client/Client.js +13 -8
  55. package/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
  56. package/api/resources/pages/resources/scripts/client/Client.js +9 -23
  57. package/api/resources/products/client/Client.js +6 -6
  58. package/api/resources/scripts/client/Client.d.ts +12 -20
  59. package/api/resources/scripts/client/Client.js +15 -23
  60. package/api/resources/sites/client/Client.d.ts +12 -3
  61. package/api/resources/sites/client/Client.js +25 -14
  62. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
  63. package/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
  64. package/api/resources/sites/resources/index.d.ts +1 -0
  65. package/api/resources/sites/resources/index.js +2 -1
  66. package/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
  67. package/api/resources/sites/resources/plans/client/Client.js +3 -1
  68. package/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
  69. package/api/resources/sites/resources/redirects/client/Client.js +14 -4
  70. package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
  71. package/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
  72. package/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
  73. package/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
  74. package/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
  75. package/api/resources/{collections/resources/fields/types → sites/resources/robotsTxt}/index.js +1 -1
  76. package/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
  77. package/api/resources/sites/resources/scripts/client/Client.js +19 -17
  78. package/api/resources/token/client/Client.js +2 -2
  79. package/api/resources/users/client/Client.js +5 -5
  80. package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
  81. package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
  82. package/api/resources/webhooks/client/Client.js +4 -4
  83. package/api/types/Asset.d.ts +4 -0
  84. package/api/types/AssetVariant.d.ts +3 -0
  85. package/api/types/Assets.d.ts +1 -0
  86. package/api/types/ComponentNode.d.ts +2 -2
  87. package/api/types/Conflict.d.ts +4 -0
  88. package/api/types/Dom.d.ts +2 -0
  89. package/api/types/FieldCreate.d.ts +8 -0
  90. package/api/types/FieldCreate.js +5 -0
  91. package/api/types/FieldType.d.ts +3 -1
  92. package/api/types/FieldType.js +2 -0
  93. package/api/types/ImageNode.d.ts +1 -0
  94. package/api/types/ImageNodeImage.d.ts +3 -0
  95. package/api/types/Metadata.d.ts +11 -0
  96. package/api/types/Metadata.js +5 -0
  97. package/api/types/MetadataOptionsItem.d.ts +12 -0
  98. package/api/types/MetadataOptionsItem.js +5 -0
  99. package/api/types/OAuthScope.d.ts +8 -0
  100. package/api/types/OAuthScope.js +2 -0
  101. package/api/types/OptionField.d.ts +19 -0
  102. package/api/types/OptionField.js +5 -0
  103. package/api/types/ReferenceField.d.ts +20 -0
  104. package/api/types/ReferenceField.js +5 -0
  105. package/api/types/ReferenceFieldMetadata.d.ts +10 -0
  106. package/api/types/ReferenceFieldMetadata.js +5 -0
  107. package/api/types/ReferenceFieldType.d.ts +11 -0
  108. package/api/types/ReferenceFieldType.js +10 -0
  109. package/api/types/Robots.d.ts +13 -0
  110. package/api/types/Robots.js +5 -0
  111. package/api/types/RobotsRulesItem.d.ts +11 -0
  112. package/api/types/RobotsRulesItem.js +5 -0
  113. package/api/types/SkuFieldData.d.ts +2 -0
  114. package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
  115. package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
  116. package/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
  117. package/api/types/StaticField.js +5 -0
  118. package/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +2 -3
  119. package/{dist/api/resources/collections/resources/fields/types/FieldCreateType.js → api/types/StaticFieldType.js} +2 -3
  120. package/api/types/Text.d.ts +3 -0
  121. package/api/types/TextNode.d.ts +1 -0
  122. package/api/types/TextNodeText.d.ts +3 -0
  123. package/api/types/TriggerType.d.ts +1 -15
  124. package/api/types/WebhookList.d.ts +1 -1
  125. package/api/types/index.d.ts +12 -0
  126. package/api/types/index.js +12 -0
  127. package/dist/api/resources/accessGroups/client/Client.js +1 -1
  128. package/dist/api/resources/assets/client/Client.d.ts +10 -7
  129. package/dist/api/resources/assets/client/Client.js +18 -15
  130. package/dist/api/resources/collections/client/Client.d.ts +21 -1
  131. package/dist/api/resources/collections/client/Client.js +27 -5
  132. package/dist/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
  133. package/dist/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
  134. package/dist/api/resources/collections/resources/fields/client/Client.js +40 -8
  135. package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  136. package/dist/api/resources/collections/resources/fields/index.d.ts +0 -1
  137. package/dist/api/resources/collections/resources/fields/index.js +0 -1
  138. package/dist/api/resources/collections/resources/index.d.ts +1 -2
  139. package/dist/api/resources/collections/resources/index.js +2 -3
  140. package/dist/api/resources/collections/resources/items/client/Client.d.ts +19 -12
  141. package/dist/api/resources/collections/resources/items/client/Client.js +39 -28
  142. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
  143. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
  144. package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  145. package/dist/api/resources/components/client/Client.d.ts +5 -6
  146. package/dist/api/resources/components/client/Client.js +10 -11
  147. package/dist/api/resources/ecommerce/client/Client.js +1 -1
  148. package/dist/api/resources/forms/client/Client.d.ts +51 -0
  149. package/dist/api/resources/forms/client/Client.js +226 -5
  150. package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
  151. package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.js +5 -0
  152. package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
  153. package/dist/api/resources/inventory/client/Client.js +2 -2
  154. package/dist/api/resources/orders/client/Client.js +6 -6
  155. package/dist/api/resources/pages/client/Client.d.ts +8 -3
  156. package/dist/api/resources/pages/client/Client.js +13 -8
  157. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
  158. package/dist/api/resources/pages/resources/scripts/client/Client.js +9 -23
  159. package/dist/api/resources/products/client/Client.js +6 -6
  160. package/dist/api/resources/scripts/client/Client.d.ts +12 -20
  161. package/dist/api/resources/scripts/client/Client.js +15 -23
  162. package/dist/api/resources/sites/client/Client.d.ts +12 -3
  163. package/dist/api/resources/sites/client/Client.js +25 -14
  164. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
  165. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
  166. package/dist/api/resources/sites/resources/index.d.ts +1 -0
  167. package/dist/api/resources/sites/resources/index.js +2 -1
  168. package/dist/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
  169. package/dist/api/resources/sites/resources/plans/client/Client.js +3 -1
  170. package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
  171. package/dist/api/resources/sites/resources/redirects/client/Client.js +14 -4
  172. package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
  173. package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
  174. package/dist/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
  175. package/dist/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
  176. package/dist/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
  177. package/dist/{serialization/resources/collections/resources/fields/types → api/resources/sites/resources/robotsTxt}/index.js +1 -1
  178. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
  179. package/dist/api/resources/sites/resources/scripts/client/Client.js +19 -17
  180. package/dist/api/resources/token/client/Client.js +2 -2
  181. package/dist/api/resources/users/client/Client.js +5 -5
  182. package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
  183. package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
  184. package/dist/api/resources/webhooks/client/Client.js +4 -4
  185. package/dist/api/types/Asset.d.ts +4 -0
  186. package/dist/api/types/AssetVariant.d.ts +3 -0
  187. package/dist/api/types/Assets.d.ts +1 -0
  188. package/dist/api/types/ComponentNode.d.ts +2 -2
  189. package/dist/api/types/Conflict.d.ts +4 -0
  190. package/dist/api/types/Conflict.js +5 -0
  191. package/dist/api/types/Dom.d.ts +2 -0
  192. package/dist/api/types/FieldCreate.d.ts +8 -0
  193. package/dist/api/types/FieldCreate.js +5 -0
  194. package/dist/api/types/FieldType.d.ts +3 -1
  195. package/dist/api/types/FieldType.js +2 -0
  196. package/dist/api/types/ImageNode.d.ts +1 -0
  197. package/dist/api/types/ImageNodeImage.d.ts +3 -0
  198. package/dist/api/types/Metadata.d.ts +11 -0
  199. package/dist/api/types/Metadata.js +5 -0
  200. package/dist/api/types/MetadataOptionsItem.d.ts +12 -0
  201. package/dist/api/types/MetadataOptionsItem.js +5 -0
  202. package/dist/api/types/OAuthScope.d.ts +8 -0
  203. package/dist/api/types/OAuthScope.js +2 -0
  204. package/dist/api/types/OptionField.d.ts +19 -0
  205. package/dist/api/types/OptionField.js +5 -0
  206. package/dist/api/types/ReferenceField.d.ts +20 -0
  207. package/dist/api/types/ReferenceField.js +5 -0
  208. package/dist/api/types/ReferenceFieldMetadata.d.ts +10 -0
  209. package/dist/api/types/ReferenceFieldMetadata.js +5 -0
  210. package/dist/api/types/ReferenceFieldType.d.ts +11 -0
  211. package/dist/api/types/ReferenceFieldType.js +10 -0
  212. package/dist/api/types/Robots.d.ts +13 -0
  213. package/dist/api/types/Robots.js +5 -0
  214. package/dist/api/types/RobotsRulesItem.d.ts +11 -0
  215. package/dist/api/types/RobotsRulesItem.js +5 -0
  216. package/dist/api/types/SkuFieldData.d.ts +2 -0
  217. package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
  218. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
  219. package/dist/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
  220. package/dist/api/types/StaticField.js +5 -0
  221. package/dist/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +2 -3
  222. package/{api/resources/collections/resources/fields/types/FieldCreateType.js → dist/api/types/StaticFieldType.js} +2 -3
  223. package/dist/api/types/Text.d.ts +3 -0
  224. package/dist/api/types/TextNode.d.ts +1 -0
  225. package/dist/api/types/TextNodeText.d.ts +3 -0
  226. package/dist/api/types/TriggerType.d.ts +1 -15
  227. package/dist/api/types/WebhookList.d.ts +1 -1
  228. package/dist/api/types/index.d.ts +12 -0
  229. package/dist/api/types/index.js +12 -0
  230. package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
  231. package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
  232. package/dist/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  233. package/dist/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
  234. package/dist/serialization/resources/collections/resources/fields/index.d.ts +0 -1
  235. package/dist/serialization/resources/collections/resources/fields/index.js +0 -1
  236. package/dist/serialization/resources/collections/resources/index.d.ts +1 -2
  237. package/dist/serialization/resources/collections/resources/index.js +2 -3
  238. package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  239. package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
  240. package/dist/serialization/types/Assets.d.ts +2 -0
  241. package/dist/serialization/types/Assets.js +2 -0
  242. package/dist/serialization/types/Conflict.d.ts +10 -0
  243. package/dist/serialization/types/Conflict.js +31 -0
  244. package/dist/serialization/types/Dom.d.ts +1 -0
  245. package/dist/serialization/types/Dom.js +1 -0
  246. package/dist/serialization/types/FieldCreate.d.ts +13 -0
  247. package/dist/serialization/types/FieldCreate.js +34 -0
  248. package/dist/serialization/types/FieldType.d.ts +1 -1
  249. package/dist/serialization/types/FieldType.js +2 -0
  250. package/dist/serialization/types/Metadata.d.ts +13 -0
  251. package/dist/serialization/types/Metadata.js +34 -0
  252. package/dist/serialization/types/MetadataOptionsItem.d.ts +13 -0
  253. package/dist/serialization/types/MetadataOptionsItem.js +34 -0
  254. package/dist/serialization/types/OptionField.d.ts +19 -0
  255. package/dist/serialization/types/OptionField.js +40 -0
  256. package/dist/serialization/types/ReferenceField.d.ts +20 -0
  257. package/dist/serialization/types/ReferenceField.js +41 -0
  258. package/dist/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
  259. package/dist/serialization/types/ReferenceFieldMetadata.js +33 -0
  260. package/dist/serialization/types/ReferenceFieldType.d.ts +10 -0
  261. package/dist/serialization/types/ReferenceFieldType.js +31 -0
  262. package/dist/serialization/types/Robots.d.ts +14 -0
  263. package/dist/serialization/types/Robots.js +35 -0
  264. package/dist/serialization/types/RobotsRulesItem.d.ts +14 -0
  265. package/dist/serialization/types/RobotsRulesItem.js +35 -0
  266. package/dist/serialization/types/StaticField.d.ts +18 -0
  267. package/dist/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
  268. package/dist/serialization/types/StaticFieldType.d.ts +10 -0
  269. package/dist/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
  270. package/dist/serialization/types/WebhookList.d.ts +2 -2
  271. package/dist/serialization/types/WebhookList.js +2 -2
  272. package/dist/serialization/types/index.d.ts +12 -0
  273. package/dist/serialization/types/index.js +12 -0
  274. package/dist/version.d.ts +1 -1
  275. package/dist/version.js +1 -1
  276. package/dist/wrapper/WebflowClient.d.ts +3 -0
  277. package/dist/wrapper/WebflowClient.js +5 -0
  278. package/dist/wrapper/WebhooksClient.d.ts +39 -0
  279. package/dist/wrapper/WebhooksClient.js +66 -0
  280. package/package.json +5 -3
  281. package/reference.md +585 -91
  282. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
  283. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
  284. package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  285. package/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
  286. package/serialization/resources/collections/resources/fields/index.d.ts +0 -1
  287. package/serialization/resources/collections/resources/fields/index.js +0 -1
  288. package/serialization/resources/collections/resources/index.d.ts +1 -2
  289. package/serialization/resources/collections/resources/index.js +2 -3
  290. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  291. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
  292. package/serialization/types/Assets.d.ts +2 -0
  293. package/serialization/types/Assets.js +2 -0
  294. package/serialization/types/Conflict.d.ts +10 -0
  295. package/serialization/types/Conflict.js +31 -0
  296. package/serialization/types/Dom.d.ts +1 -0
  297. package/serialization/types/Dom.js +1 -0
  298. package/serialization/types/FieldCreate.d.ts +13 -0
  299. package/serialization/types/FieldCreate.js +34 -0
  300. package/serialization/types/FieldType.d.ts +1 -1
  301. package/serialization/types/FieldType.js +2 -0
  302. package/serialization/types/Metadata.d.ts +13 -0
  303. package/serialization/types/Metadata.js +34 -0
  304. package/serialization/types/MetadataOptionsItem.d.ts +13 -0
  305. package/serialization/types/MetadataOptionsItem.js +34 -0
  306. package/serialization/types/OptionField.d.ts +19 -0
  307. package/serialization/types/OptionField.js +40 -0
  308. package/serialization/types/ReferenceField.d.ts +20 -0
  309. package/serialization/types/ReferenceField.js +41 -0
  310. package/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
  311. package/serialization/types/ReferenceFieldMetadata.js +33 -0
  312. package/serialization/types/ReferenceFieldType.d.ts +10 -0
  313. package/serialization/types/ReferenceFieldType.js +31 -0
  314. package/serialization/types/Robots.d.ts +14 -0
  315. package/serialization/types/Robots.js +35 -0
  316. package/serialization/types/RobotsRulesItem.d.ts +14 -0
  317. package/serialization/types/RobotsRulesItem.js +35 -0
  318. package/serialization/types/StaticField.d.ts +18 -0
  319. package/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
  320. package/serialization/types/StaticFieldType.d.ts +10 -0
  321. package/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
  322. package/serialization/types/WebhookList.d.ts +2 -2
  323. package/serialization/types/WebhookList.js +2 -2
  324. package/serialization/types/index.d.ts +12 -0
  325. package/serialization/types/index.js +12 -0
  326. package/version.d.ts +1 -1
  327. package/version.js +1 -1
  328. package/wrapper/WebflowClient.d.ts +3 -0
  329. package/wrapper/WebflowClient.js +5 -0
  330. package/wrapper/WebhooksClient.d.ts +39 -0
  331. package/wrapper/WebhooksClient.js +66 -0
  332. package/api/resources/collections/resources/fields/types/index.d.ts +0 -1
  333. package/dist/api/resources/collections/resources/fields/types/index.d.ts +0 -1
  334. package/dist/api/resources/collections/resources/fields/types/index.js +0 -17
  335. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
  336. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
  337. package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
  338. package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
  339. package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
  340. package/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
  341. package/serialization/resources/collections/resources/fields/types/index.js +0 -17
  342. /package/api/resources/{collections/resources/fields/client/requests/FieldCreate.js → forms/client/requests/FormsListSubmissionsBySiteRequest.js} +0 -0
  343. /package/{dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js → api/types/Conflict.js} +0 -0
@@ -55,29 +55,59 @@ class Fields {
55
55
  * Slugs must be all lowercase letters without spaces.
56
56
  * If you pass a string with uppercase letters and/or spaces to the "Slug" property, Webflow will
57
57
  * convert the slug to lowercase and replace spaces with "-."
58
- *
59
- * Only some field types can be created through the API.
60
58
  * This endpoint does not currently support bulk creation.
61
59
  *
62
60
  * Required scope | `cms:write`
63
61
  *
64
62
  * @param {string} collectionId - Unique identifier for a Collection
65
- * @param {Webflow.collections.FieldCreate} request
63
+ * @param {Webflow.FieldCreate} request
66
64
  * @param {Fields.RequestOptions} requestOptions - Request-specific configuration.
67
65
  *
68
66
  * @throws {@link Webflow.BadRequestError}
69
67
  * @throws {@link Webflow.UnauthorizedError}
70
68
  * @throws {@link Webflow.NotFoundError}
69
+ * @throws {@link Webflow.ConflictError}
71
70
  * @throws {@link Webflow.TooManyRequestsError}
72
71
  * @throws {@link Webflow.InternalServerError}
73
72
  *
74
73
  * @example
75
74
  * await client.collections.fields.create("580e63fc8c9a982ac9b8b745", {
75
+ * isEditable: true,
76
76
  * isRequired: false,
77
77
  * type: "RichText",
78
78
  * displayName: "Post Body",
79
79
  * helpText: "Add the body of your post here"
80
80
  * })
81
+ *
82
+ * @example
83
+ * await client.collections.fields.create("580e63fc8c9a982ac9b8b745", {
84
+ * isEditable: true,
85
+ * isRequired: false,
86
+ * type: "Option",
87
+ * displayName: "Post Type",
88
+ * helpText: "Add the body of your post here",
89
+ * metadata: {
90
+ * options: [{
91
+ * name: "Feature"
92
+ * }, {
93
+ * name: "News"
94
+ * }, {
95
+ * name: "Product Highlight"
96
+ * }]
97
+ * }
98
+ * })
99
+ *
100
+ * @example
101
+ * await client.collections.fields.create("580e63fc8c9a982ac9b8b745", {
102
+ * isEditable: true,
103
+ * isRequired: false,
104
+ * type: "Reference",
105
+ * displayName: "Author",
106
+ * helpText: "Add the post author here",
107
+ * metadata: {
108
+ * collectionId: "63692ab61fb2852f582ba8f5"
109
+ * }
110
+ * })
81
111
  */
82
112
  create(collectionId, request, requestOptions) {
83
113
  var _a;
@@ -85,10 +115,10 @@ class Fields {
85
115
  const _response = yield core.fetcher({
86
116
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/fields`),
87
117
  method: "POST",
88
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
119
  contentType: "application/json",
90
120
  requestType: "json",
91
- body: serializers.collections.FieldCreate.jsonOrThrow(request, {
121
+ body: serializers.FieldCreate.jsonOrThrow(request, {
92
122
  unrecognizedObjectKeys: "passthrough",
93
123
  allowUnrecognizedUnionMembers: true,
94
124
  allowUnrecognizedEnumValues: true,
@@ -98,7 +128,7 @@ class Fields {
98
128
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
129
  });
100
130
  if (_response.ok) {
101
- return serializers.Field.parseOrThrow(_response.body, {
131
+ return serializers.FieldCreate.parseOrThrow(_response.body, {
102
132
  unrecognizedObjectKeys: "passthrough",
103
133
  allowUnrecognizedUnionMembers: true,
104
134
  allowUnrecognizedEnumValues: true,
@@ -126,6 +156,8 @@ class Fields {
126
156
  skipValidation: true,
127
157
  breadcrumbsPrefix: ["response"],
128
158
  }));
159
+ case 409:
160
+ throw new Webflow.ConflictError(_response.error.body);
129
161
  case 429:
130
162
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
131
163
  unrecognizedObjectKeys: "passthrough",
@@ -188,7 +220,7 @@ class Fields {
188
220
  const _response = yield core.fetcher({
189
221
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/fields/${encodeURIComponent(fieldId)}`),
190
222
  method: "DELETE",
191
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
223
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
224
  contentType: "application/json",
193
225
  requestType: "json",
194
226
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -285,7 +317,7 @@ class Fields {
285
317
  const _response = yield core.fetcher({
286
318
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/fields/${encodeURIComponent(fieldId)}`),
287
319
  method: "PATCH",
288
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
320
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
289
321
  contentType: "application/json",
290
322
  requestType: "json",
291
323
  body: serializers.collections.FieldUpdate.jsonOrThrow(request, {
@@ -1,2 +1 @@
1
- export { type FieldCreate } from "./FieldCreate";
2
1
  export { type FieldUpdate } from "./FieldUpdate";
@@ -1,2 +1 @@
1
- export * from "./types";
2
1
  export * from "./client";
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
17
  __exportStar(require("./client"), exports);
@@ -1,6 +1,5 @@
1
- export * as fields from "./fields";
2
- export * from "./fields/types";
3
1
  export * as items from "./items";
4
2
  export * from "./items/types";
3
+ export * as fields from "./fields";
5
4
  export * from "./fields/client/requests";
6
5
  export * from "./items/client/requests";
@@ -26,10 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.items = exports.fields = void 0;
30
- exports.fields = __importStar(require("./fields"));
31
- __exportStar(require("./fields/types"), exports);
29
+ exports.fields = exports.items = void 0;
32
30
  exports.items = __importStar(require("./items"));
33
31
  __exportStar(require("./items/types"), exports);
32
+ exports.fields = __importStar(require("./fields"));
34
33
  __exportStar(require("./fields/client/requests"), exports);
35
34
  __exportStar(require("./items/client/requests"), exports);
@@ -93,7 +93,7 @@ export declare class Items {
93
93
  /**
94
94
  * Delete Items from a Collection.
95
95
  *
96
- * **Note:** If the `cmsLocaleId` parameter is undefined or empty and the items are localized, items will be deleted only in the primary locale.
96
+ * <Tip title="Localization Tip">Items will only be deleted in the primary locale unless a `cmsLocaleId` is included in the request.</Tip>
97
97
  *
98
98
  * Required scope | `CMS:write`
99
99
  *
@@ -113,9 +113,11 @@ export declare class Items {
113
113
  */
114
114
  deleteItems(collectionId: string, request?: Webflow.collections.ItemsDeleteItemsRequest, requestOptions?: Items.RequestOptions): Promise<void>;
115
115
  /**
116
- * Update a single item or multiple items (up to 100) in a Collection.
116
+ * Update a single item or multiple items in a Collection.
117
117
  *
118
- * **Note:** If the `cmsLocaleId` parameter is undefined or empty and the items are localized, items will be updated only in the primary locale.
118
+ * The limit for this endpoint is 100 items.
119
+ *
120
+ * <Tip title="Localization Tip">Items will only be updated in the primary locale, unless a `cmsLocaleId` is included in the request.</Tip>
119
121
  *
120
122
  * Required scope | `CMS:write`
121
123
  *
@@ -185,7 +187,7 @@ export declare class Items {
185
187
  */
186
188
  updateItems(collectionId: string, request?: Webflow.collections.ItemsUpdateItemsRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
187
189
  /**
188
- * List of all live Items within a Collection.
190
+ * List all published items in a collection.
189
191
  *
190
192
  * Required scope | `CMS:read`
191
193
  *
@@ -204,7 +206,7 @@ export declare class Items {
204
206
  */
205
207
  listItemsLive(collectionId: string, request?: Webflow.collections.ItemsListItemsLiveRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
206
208
  /**
207
- * Create live Item(s) in a Collection. The Item(s) will be published to the live site.
209
+ * Create item(s) in a collection that will be immediately published to the live site.
208
210
  *
209
211
  *
210
212
  * To create items across multiple locales, [please use this endpoint.](/v2.0.0/data/reference/cms/collection-items/staged-items/create-items)
@@ -253,9 +255,11 @@ export declare class Items {
253
255
  */
254
256
  createItemLive(collectionId: string, request: Webflow.collections.ItemsCreateItemLiveRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
255
257
  /**
256
- * Remove an item or multiple items (up to 100 items) from the live site. Deleting published items will unpublish the items from the live site and set them to draft.
258
+ * Remove an item or multiple items (up to 100 items) from the live site.
259
+ *
260
+ * Using this endpoint to delete published item(s) will unpublish the item(s) from the live site and set the item(s) `isDraft` property to `true`.
257
261
  *
258
- * **Note:** If the `cmsLocaleId` parameter is undefined or empty and the items are localized, items will be unpublished only in the primary locale.
262
+ * <Tip title="Localization Tip">Items will only be unpublished in the primary locale unless a `cmsLocaleId` is included in the request.</Tip>
259
263
  *
260
264
  * Required scope | `CMS:write`
261
265
  *
@@ -274,9 +278,9 @@ export declare class Items {
274
278
  */
275
279
  deleteItemsLive(collectionId: string, request?: Webflow.collections.ItemsDeleteItemsLiveRequest, requestOptions?: Items.RequestOptions): Promise<void>;
276
280
  /**
277
- * Update a single live item or multiple live items (up to 100) in a Collection
281
+ * Update a single published item or multiple published items (up to 100) in a Collection
278
282
  *
279
- * **Note:** If the `cmsLocaleId` parameter is undefined or empty and the items are localized, items will be updated only in the primary locale.
283
+ * <Tip title="Localization Tip">Items will only be updated in the primary locale, unless a `cmsLocaleId` is included in the request.</Tip>
280
284
  *
281
285
  * Required scope | `CMS:write`
282
286
  *
@@ -287,6 +291,7 @@ export declare class Items {
287
291
  * @throws {@link Webflow.BadRequestError}
288
292
  * @throws {@link Webflow.UnauthorizedError}
289
293
  * @throws {@link Webflow.NotFoundError}
294
+ * @throws {@link Webflow.ConflictError}
290
295
  * @throws {@link Webflow.TooManyRequestsError}
291
296
  * @throws {@link Webflow.InternalServerError}
292
297
  *
@@ -348,9 +353,10 @@ export declare class Items {
348
353
  /**
349
354
  * Create an item or multiple items in a CMS Collection across multiple corresponding locales.
350
355
  *
351
- * **Notes:**
356
+ * <Note>
352
357
  * - This endpoint can create up to 100 items in a request.
353
- * - If the `cmsLocaleIds` parameter is undefined or empty and localization is enabled, items will only be created in the primary locale.
358
+ * - If the `cmsLocaleIds` parameter is not included in the request, an item will only be created in the primary locale.
359
+ * </Note>
354
360
  *
355
361
  * Required scope | `CMS:write`
356
362
  *
@@ -411,7 +417,7 @@ export declare class Items {
411
417
  */
412
418
  getItem(collectionId: string, itemId: string, request?: Webflow.collections.ItemsGetItemRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
413
419
  /**
414
- * Delete an Item from a Collection. This endpoint does not currently support bulk deletion.
420
+ * Delete an item from a collection.
415
421
  *
416
422
  * Required scope | `CMS:write`
417
423
  *
@@ -512,6 +518,7 @@ export declare class Items {
512
518
  * @throws {@link Webflow.BadRequestError}
513
519
  * @throws {@link Webflow.UnauthorizedError}
514
520
  * @throws {@link Webflow.NotFoundError}
521
+ * @throws {@link Webflow.ConflictError}
515
522
  * @throws {@link Webflow.TooManyRequestsError}
516
523
  * @throws {@link Webflow.InternalServerError}
517
524
  *
@@ -96,7 +96,7 @@ class Items {
96
96
  const _response = yield core.fetcher({
97
97
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
98
98
  method: "GET",
99
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -224,7 +224,7 @@ class Items {
224
224
  const _response = yield core.fetcher({
225
225
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
226
226
  method: "POST",
227
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
228
  contentType: "application/json",
229
229
  requestType: "json",
230
230
  body: serializers.collections.ItemsCreateItemRequest.jsonOrThrow(request, {
@@ -306,7 +306,7 @@ class Items {
306
306
  /**
307
307
  * Delete Items from a Collection.
308
308
  *
309
- * **Note:** If the `cmsLocaleId` parameter is undefined or empty and the items are localized, items will be deleted only in the primary locale.
309
+ * <Tip title="Localization Tip">Items will only be deleted in the primary locale unless a `cmsLocaleId` is included in the request.</Tip>
310
310
  *
311
311
  * Required scope | `CMS:write`
312
312
  *
@@ -330,7 +330,7 @@ class Items {
330
330
  const _response = yield core.fetcher({
331
331
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
332
332
  method: "DELETE",
333
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
333
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
334
334
  contentType: "application/json",
335
335
  requestType: "json",
336
336
  body: serializers.collections.ItemsDeleteItemsRequest.jsonOrThrow(request, {
@@ -406,9 +406,11 @@ class Items {
406
406
  });
407
407
  }
408
408
  /**
409
- * Update a single item or multiple items (up to 100) in a Collection.
409
+ * Update a single item or multiple items in a Collection.
410
410
  *
411
- * **Note:** If the `cmsLocaleId` parameter is undefined or empty and the items are localized, items will be updated only in the primary locale.
411
+ * The limit for this endpoint is 100 items.
412
+ *
413
+ * <Tip title="Localization Tip">Items will only be updated in the primary locale, unless a `cmsLocaleId` is included in the request.</Tip>
412
414
  *
413
415
  * Required scope | `CMS:write`
414
416
  *
@@ -482,7 +484,7 @@ class Items {
482
484
  const _response = yield core.fetcher({
483
485
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
484
486
  method: "PATCH",
485
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
487
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
486
488
  contentType: "application/json",
487
489
  requestType: "json",
488
490
  body: serializers.collections.ItemsUpdateItemsRequest.jsonOrThrow(request, {
@@ -562,7 +564,7 @@ class Items {
562
564
  });
563
565
  }
564
566
  /**
565
- * List of all live Items within a Collection.
567
+ * List all published items in a collection.
566
568
  *
567
569
  * Required scope | `CMS:read`
568
570
  *
@@ -608,7 +610,7 @@ class Items {
608
610
  const _response = yield core.fetcher({
609
611
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
610
612
  method: "GET",
611
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
613
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
612
614
  contentType: "application/json",
613
615
  queryParameters: _queryParams,
614
616
  requestType: "json",
@@ -684,7 +686,7 @@ class Items {
684
686
  });
685
687
  }
686
688
  /**
687
- * Create live Item(s) in a Collection. The Item(s) will be published to the live site.
689
+ * Create item(s) in a collection that will be immediately published to the live site.
688
690
  *
689
691
  *
690
692
  * To create items across multiple locales, [please use this endpoint.](/v2.0.0/data/reference/cms/collection-items/staged-items/create-items)
@@ -737,7 +739,7 @@ class Items {
737
739
  const _response = yield core.fetcher({
738
740
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
739
741
  method: "POST",
740
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
742
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
741
743
  contentType: "application/json",
742
744
  requestType: "json",
743
745
  body: serializers.collections.ItemsCreateItemLiveRequest.jsonOrThrow(request, {
@@ -817,9 +819,11 @@ class Items {
817
819
  });
818
820
  }
819
821
  /**
820
- * Remove an item or multiple items (up to 100 items) from the live site. Deleting published items will unpublish the items from the live site and set them to draft.
822
+ * Remove an item or multiple items (up to 100 items) from the live site.
823
+ *
824
+ * Using this endpoint to delete published item(s) will unpublish the item(s) from the live site and set the item(s) `isDraft` property to `true`.
821
825
  *
822
- * **Note:** If the `cmsLocaleId` parameter is undefined or empty and the items are localized, items will be unpublished only in the primary locale.
826
+ * <Tip title="Localization Tip">Items will only be unpublished in the primary locale unless a `cmsLocaleId` is included in the request.</Tip>
823
827
  *
824
828
  * Required scope | `CMS:write`
825
829
  *
@@ -842,7 +846,7 @@ class Items {
842
846
  const _response = yield core.fetcher({
843
847
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
844
848
  method: "DELETE",
845
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
849
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
846
850
  contentType: "application/json",
847
851
  requestType: "json",
848
852
  body: serializers.collections.ItemsDeleteItemsLiveRequest.jsonOrThrow(request, {
@@ -916,9 +920,9 @@ class Items {
916
920
  });
917
921
  }
918
922
  /**
919
- * Update a single live item or multiple live items (up to 100) in a Collection
923
+ * Update a single published item or multiple published items (up to 100) in a Collection
920
924
  *
921
- * **Note:** If the `cmsLocaleId` parameter is undefined or empty and the items are localized, items will be updated only in the primary locale.
925
+ * <Tip title="Localization Tip">Items will only be updated in the primary locale, unless a `cmsLocaleId` is included in the request.</Tip>
922
926
  *
923
927
  * Required scope | `CMS:write`
924
928
  *
@@ -929,6 +933,7 @@ class Items {
929
933
  * @throws {@link Webflow.BadRequestError}
930
934
  * @throws {@link Webflow.UnauthorizedError}
931
935
  * @throws {@link Webflow.NotFoundError}
936
+ * @throws {@link Webflow.ConflictError}
932
937
  * @throws {@link Webflow.TooManyRequestsError}
933
938
  * @throws {@link Webflow.InternalServerError}
934
939
  *
@@ -992,7 +997,7 @@ class Items {
992
997
  const _response = yield core.fetcher({
993
998
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
994
999
  method: "PATCH",
995
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1000
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
996
1001
  contentType: "application/json",
997
1002
  requestType: "json",
998
1003
  body: serializers.collections.ItemsUpdateItemsLiveRequest.jsonOrThrow(request, {
@@ -1033,6 +1038,8 @@ class Items {
1033
1038
  skipValidation: true,
1034
1039
  breadcrumbsPrefix: ["response"],
1035
1040
  }));
1041
+ case 409:
1042
+ throw new Webflow.ConflictError(_response.error.body);
1036
1043
  case 429:
1037
1044
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1038
1045
  unrecognizedObjectKeys: "passthrough",
@@ -1074,9 +1081,10 @@ class Items {
1074
1081
  /**
1075
1082
  * Create an item or multiple items in a CMS Collection across multiple corresponding locales.
1076
1083
  *
1077
- * **Notes:**
1084
+ * <Note>
1078
1085
  * - This endpoint can create up to 100 items in a request.
1079
- * - If the `cmsLocaleIds` parameter is undefined or empty and localization is enabled, items will only be created in the primary locale.
1086
+ * - If the `cmsLocaleIds` parameter is not included in the request, an item will only be created in the primary locale.
1087
+ * </Note>
1080
1088
  *
1081
1089
  * Required scope | `CMS:write`
1082
1090
  *
@@ -1121,7 +1129,7 @@ class Items {
1121
1129
  const _response = yield core.fetcher({
1122
1130
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/bulk`),
1123
1131
  method: "POST",
1124
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1132
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1125
1133
  contentType: "application/json",
1126
1134
  requestType: "json",
1127
1135
  body: serializers.collections.CreateBulkCollectionItemRequestBody.jsonOrThrow(request, {
@@ -1230,7 +1238,7 @@ class Items {
1230
1238
  const _response = yield core.fetcher({
1231
1239
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
1232
1240
  method: "GET",
1233
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1241
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1234
1242
  contentType: "application/json",
1235
1243
  queryParameters: _queryParams,
1236
1244
  requestType: "json",
@@ -1306,7 +1314,7 @@ class Items {
1306
1314
  });
1307
1315
  }
1308
1316
  /**
1309
- * Delete an Item from a Collection. This endpoint does not currently support bulk deletion.
1317
+ * Delete an item from a collection.
1310
1318
  *
1311
1319
  * Required scope | `CMS:write`
1312
1320
  *
@@ -1335,7 +1343,7 @@ class Items {
1335
1343
  const _response = yield core.fetcher({
1336
1344
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
1337
1345
  method: "DELETE",
1338
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1346
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1339
1347
  contentType: "application/json",
1340
1348
  queryParameters: _queryParams,
1341
1349
  requestType: "json",
@@ -1436,7 +1444,7 @@ class Items {
1436
1444
  const _response = yield core.fetcher({
1437
1445
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
1438
1446
  method: "PATCH",
1439
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1447
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1440
1448
  contentType: "application/json",
1441
1449
  requestType: "json",
1442
1450
  body: serializers.CollectionItemPatchSingle.jsonOrThrow(request, {
@@ -1545,7 +1553,7 @@ class Items {
1545
1553
  const _response = yield core.fetcher({
1546
1554
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
1547
1555
  method: "GET",
1548
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1556
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1549
1557
  contentType: "application/json",
1550
1558
  queryParameters: _queryParams,
1551
1559
  requestType: "json",
@@ -1652,7 +1660,7 @@ class Items {
1652
1660
  const _response = yield core.fetcher({
1653
1661
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
1654
1662
  method: "DELETE",
1655
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1663
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1656
1664
  contentType: "application/json",
1657
1665
  queryParameters: _queryParams,
1658
1666
  requestType: "json",
@@ -1734,6 +1742,7 @@ class Items {
1734
1742
  * @throws {@link Webflow.BadRequestError}
1735
1743
  * @throws {@link Webflow.UnauthorizedError}
1736
1744
  * @throws {@link Webflow.NotFoundError}
1745
+ * @throws {@link Webflow.ConflictError}
1737
1746
  * @throws {@link Webflow.TooManyRequestsError}
1738
1747
  * @throws {@link Webflow.InternalServerError}
1739
1748
  *
@@ -1753,7 +1762,7 @@ class Items {
1753
1762
  const _response = yield core.fetcher({
1754
1763
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
1755
1764
  method: "PATCH",
1756
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1765
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1757
1766
  contentType: "application/json",
1758
1767
  requestType: "json",
1759
1768
  body: serializers.CollectionItemPatchSingle.jsonOrThrow(request, {
@@ -1794,6 +1803,8 @@ class Items {
1794
1803
  skipValidation: true,
1795
1804
  breadcrumbsPrefix: ["response"],
1796
1805
  }));
1806
+ case 409:
1807
+ throw new Webflow.ConflictError(_response.error.body);
1797
1808
  case 429:
1798
1809
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1799
1810
  unrecognizedObjectKeys: "passthrough",
@@ -1859,7 +1870,7 @@ class Items {
1859
1870
  const _response = yield core.fetcher({
1860
1871
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/publish`),
1861
1872
  method: "POST",
1862
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1873
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1863
1874
  contentType: "application/json",
1864
1875
  requestType: "json",
1865
1876
  body: serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
@@ -20,11 +20,11 @@ export interface ItemsListItemsLiveRequest {
20
20
  */
21
21
  limit?: number;
22
22
  /**
23
- * The name of the item(s)
23
+ * Filter by the exact name of the item(s)
24
24
  */
25
25
  name?: string;
26
26
  /**
27
- * The slug of the item
27
+ * Filter by the exact slug of the item
28
28
  */
29
29
  slug?: string;
30
30
  /**
@@ -20,11 +20,11 @@ export interface ItemsListItemsRequest {
20
20
  */
21
21
  limit?: number;
22
22
  /**
23
- * The name of the item(s)
23
+ * Filter by the exact name of the item(s)
24
24
  */
25
25
  name?: string;
26
26
  /**
27
- * The slug of the item
27
+ * Filter by the exact slug of the item
28
28
  */
29
29
  slug?: string;
30
30
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface ItemsDeleteItemsLiveRequestItemsItem {
5
5
  /** Unique identifier for the Item */
6
- itemId: string;
6
+ id: string;
7
7
  /** Array of identifiers for the locales where the item will be created */
8
8
  cmsLocaleIds?: string[];
9
9
  }
@@ -115,9 +115,9 @@ export declare class Components {
115
115
  */
116
116
  updateContent(siteId: string, componentId: string, request: Webflow.ComponentDomWrite, requestOptions?: Components.RequestOptions): Promise<Webflow.ComponentsUpdateContentResponse>;
117
117
  /**
118
- * Get the property default values of a component definition.
118
+ * Get the default property values of a component definition.
119
119
  *
120
- * <Note>If you do not provide a Locale ID in your request, the response will return any properties that can be localized from the Primary locale.</Note>
120
+ * <Note>If you do not include a `localeId` in your request, the response will return any properties that can be localized from the Primary locale.</Note>
121
121
  *
122
122
  * Required scope | `components:read`
123
123
  *
@@ -139,12 +139,11 @@ export declare class Components {
139
139
  */
140
140
  getProperties(siteId: string, componentId: string, request?: Webflow.ComponentsGetPropertiesRequest, requestOptions?: Components.RequestOptions): Promise<Webflow.ComponentProperties>;
141
141
  /**
142
- * Update the property default values of a component definition in a specificed locale.
142
+ * Update the default property values of a component definition in a specificed locale.
143
143
  *
144
- * Before making updates:
145
- * 1. Use the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint to identify available properties
144
+ * Before making updates, use the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint to identify properties that can be updated in a secondary locale.
146
145
  *
147
- * <Note>The request requires a secondary locale ID. If a locale is missing, the request will not be processed and will result in an error.</Note>
146
+ * <Note>The request requires a secondary locale ID. If a `localeId` is missing, the request will not be processed and will result in an error.</Note>
148
147
  *
149
148
  * Required scope | `components:write`
150
149
  *