webflow-api 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) 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/AssetsClient.d.ts +12 -0
  277. package/dist/wrapper/AssetsClient.js +16 -0
  278. package/dist/wrapper/AssetsUtilitiesClient.d.ts +49 -0
  279. package/dist/wrapper/AssetsUtilitiesClient.js +121 -0
  280. package/dist/wrapper/WebflowClient.d.ts +6 -0
  281. package/dist/wrapper/WebflowClient.js +10 -0
  282. package/dist/wrapper/WebhooksClient.d.ts +39 -0
  283. package/dist/wrapper/WebhooksClient.js +66 -0
  284. package/package.json +15 -12
  285. package/reference.md +585 -91
  286. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
  287. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
  288. package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  289. package/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
  290. package/serialization/resources/collections/resources/fields/index.d.ts +0 -1
  291. package/serialization/resources/collections/resources/fields/index.js +0 -1
  292. package/serialization/resources/collections/resources/index.d.ts +1 -2
  293. package/serialization/resources/collections/resources/index.js +2 -3
  294. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  295. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
  296. package/serialization/types/Assets.d.ts +2 -0
  297. package/serialization/types/Assets.js +2 -0
  298. package/serialization/types/Conflict.d.ts +10 -0
  299. package/serialization/types/Conflict.js +31 -0
  300. package/serialization/types/Dom.d.ts +1 -0
  301. package/serialization/types/Dom.js +1 -0
  302. package/serialization/types/FieldCreate.d.ts +13 -0
  303. package/serialization/types/FieldCreate.js +34 -0
  304. package/serialization/types/FieldType.d.ts +1 -1
  305. package/serialization/types/FieldType.js +2 -0
  306. package/serialization/types/Metadata.d.ts +13 -0
  307. package/serialization/types/Metadata.js +34 -0
  308. package/serialization/types/MetadataOptionsItem.d.ts +13 -0
  309. package/serialization/types/MetadataOptionsItem.js +34 -0
  310. package/serialization/types/OptionField.d.ts +19 -0
  311. package/serialization/types/OptionField.js +40 -0
  312. package/serialization/types/ReferenceField.d.ts +20 -0
  313. package/serialization/types/ReferenceField.js +41 -0
  314. package/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
  315. package/serialization/types/ReferenceFieldMetadata.js +33 -0
  316. package/serialization/types/ReferenceFieldType.d.ts +10 -0
  317. package/serialization/types/ReferenceFieldType.js +31 -0
  318. package/serialization/types/Robots.d.ts +14 -0
  319. package/serialization/types/Robots.js +35 -0
  320. package/serialization/types/RobotsRulesItem.d.ts +14 -0
  321. package/serialization/types/RobotsRulesItem.js +35 -0
  322. package/serialization/types/StaticField.d.ts +18 -0
  323. package/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
  324. package/serialization/types/StaticFieldType.d.ts +10 -0
  325. package/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
  326. package/serialization/types/WebhookList.d.ts +2 -2
  327. package/serialization/types/WebhookList.js +2 -2
  328. package/serialization/types/index.d.ts +12 -0
  329. package/serialization/types/index.js +12 -0
  330. package/version.d.ts +1 -1
  331. package/version.js +1 -1
  332. package/wrapper/AssetsClient.d.ts +12 -0
  333. package/wrapper/AssetsClient.js +16 -0
  334. package/wrapper/AssetsUtilitiesClient.d.ts +49 -0
  335. package/wrapper/AssetsUtilitiesClient.js +121 -0
  336. package/wrapper/WebflowClient.d.ts +6 -0
  337. package/wrapper/WebflowClient.js +10 -0
  338. package/wrapper/WebhooksClient.d.ts +39 -0
  339. package/wrapper/WebhooksClient.js +66 -0
  340. package/api/resources/collections/resources/fields/types/index.d.ts +0 -1
  341. package/dist/api/resources/collections/resources/fields/types/index.d.ts +0 -1
  342. package/dist/api/resources/collections/resources/fields/types/index.js +0 -17
  343. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
  344. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
  345. package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
  346. package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
  347. package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
  348. package/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
  349. package/serialization/resources/collections/resources/fields/types/index.js +0 -17
  350. /package/api/resources/{collections/resources/fields/client/requests/FieldCreate.js → forms/client/requests/FormsListSubmissionsBySiteRequest.js} +0 -0
  351. /package/{dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js → api/types/Conflict.js} +0 -0
@@ -33,6 +33,7 @@ service:
33
33
  response:
34
34
  docs: Request was successful
35
35
  type: root.FormList
36
+ status-code: 200
36
37
  errors:
37
38
  - root.BadRequestError
38
39
  - root.UnauthorizedError
@@ -108,6 +109,7 @@ service:
108
109
  response:
109
110
  docs: Request was successful
110
111
  type: root.Form
112
+ status-code: 200
111
113
  errors:
112
114
  - root.BadRequestError
113
115
  - root.UnauthorizedError
@@ -127,7 +129,6 @@ service:
127
129
  660d5bcc9c0772150459dfb1:
128
130
  displayName: Name
129
131
  type: Plain
130
- placeholder: Enter your email
131
132
  userVisible: true
132
133
  589a331aa51e760df7ccb89d:
133
134
  displayName: Email
@@ -137,7 +138,6 @@ service:
137
138
  responseSettings:
138
139
  redirectUrl: https://example.com
139
140
  redirectMethod: GET
140
- redirectAction: POST https://example.com
141
141
  sendEmailConfirmation: true
142
142
  id: 589a331aa51e760df7ccb89e
143
143
  siteId: 580e63e98c9a982ac9b8b741
@@ -153,6 +153,12 @@ service:
153
153
  docs: |
154
154
  List form submissions for a given form
155
155
 
156
+ <Note title="Forms in components">
157
+ When a form is used in a component definition, each instance of the form is considered a unique form.
158
+
159
+ To get a combined list of submissions for a form that appears across multiple component instances, use the [List Form Submissions by Site](/data/reference/forms/form-submissions/list-submissions-by-site) endpoint.
160
+ </Note>
161
+
156
162
  Required scope | `forms:read`
157
163
  source:
158
164
  openapi: ../../../openapi/referenced-specs/v2.yml
@@ -175,6 +181,7 @@ service:
175
181
  response:
176
182
  docs: Request was successful
177
183
  type: root.FormSubmissionList
184
+ status-code: 200
178
185
  errors:
179
186
  - root.BadRequestError
180
187
  - root.UnauthorizedError
@@ -226,6 +233,7 @@ service:
226
233
  response:
227
234
  docs: Request was successful
228
235
  type: root.FormSubmission
236
+ status-code: 200
229
237
  errors:
230
238
  - root.BadRequestError
231
239
  - root.UnauthorizedError
@@ -246,6 +254,33 @@ service:
246
254
  formResponse:
247
255
  First Name: Arthur
248
256
  Last Name: Dent
257
+ delete-submission:
258
+ path: /form_submissions/{form_submission_id}
259
+ method: DELETE
260
+ auth: true
261
+ docs: |
262
+ Delete a form submission
263
+
264
+
265
+ Required scope | `forms:write`
266
+ source:
267
+ openapi: ../../../openapi/referenced-specs/v2.yml
268
+ path-parameters:
269
+ form_submission_id:
270
+ type: string
271
+ docs: Unique identifier for a Form Submission
272
+ display-name: Delete Form Submission
273
+ errors:
274
+ - root.BadRequestError
275
+ - root.UnauthorizedError
276
+ - root.ForbiddenError
277
+ - root.NotFoundError
278
+ - root.ConflictError
279
+ - root.TooManyRequestsError
280
+ - root.InternalServerError
281
+ examples:
282
+ - path-parameters:
283
+ form_submission_id: 580e63e98c9a982ac9b8b741
249
284
  update-submission:
250
285
  path: /form_submissions/{form_submission_id}
251
286
  method: PATCH
@@ -274,6 +309,7 @@ service:
274
309
  response:
275
310
  docs: Request was successful
276
311
  type: root.FormSubmission
312
+ status-code: 200
277
313
  errors:
278
314
  - root.BadRequestError
279
315
  - root.UnauthorizedError
@@ -296,6 +332,82 @@ service:
296
332
  formResponse:
297
333
  First Name: Arthur
298
334
  Last Name: Dent
335
+ list-submissions-by-site:
336
+ path: /sites/{site_id}/form_submissions
337
+ method: GET
338
+ auth: true
339
+ docs: >
340
+ List form submissions for a given site. This endpoint differs from the
341
+ existing [List Form Submissions
342
+ endpoint](/data/reference/forms/form-submissions/list-submissions) by
343
+ accepting `siteId` as a path parameter and `elementId` as a query
344
+ parameter. You can get the `elementId` from the [List forms
345
+ endpoint](/data/reference/forms/forms/list).
346
+
347
+
348
+
349
+
350
+ Required scope | `forms:read`
351
+ source:
352
+ openapi: ../../../openapi/referenced-specs/v2.yml
353
+ path-parameters:
354
+ site_id:
355
+ type: string
356
+ docs: Unique identifier for a Site
357
+ display-name: List Form Submissions by Site
358
+ request:
359
+ name: FormsListSubmissionsBySiteRequest
360
+ query-parameters:
361
+ elementId:
362
+ type: optional<string>
363
+ docs: Identifier for an element
364
+ offset:
365
+ type: optional<double>
366
+ docs: >-
367
+ Offset used for pagination if the results have more than limit
368
+ records
369
+ limit:
370
+ type: optional<double>
371
+ docs: 'Maximum number of records to be returned (max limit: 100)'
372
+ response:
373
+ docs: Request was successful
374
+ type: root.FormSubmissionList
375
+ status-code: 200
376
+ errors:
377
+ - root.BadRequestError
378
+ - root.UnauthorizedError
379
+ - root.ForbiddenError
380
+ - root.NotFoundError
381
+ - root.TooManyRequestsError
382
+ - root.InternalServerError
383
+ examples:
384
+ - path-parameters:
385
+ site_id: 580e63e98c9a982ac9b8b741
386
+ query-parameters:
387
+ elementId: 18259716-3e5a-646a-5f41-5dc4b9405aa0
388
+ response:
389
+ body:
390
+ formSubmissions:
391
+ - id: 6321ca84df3949bfc6752327
392
+ displayName: Sample Form
393
+ siteId: 62749158efef318abc8d5a0f
394
+ workspaceId: 62749158efef318abc8d5a0f
395
+ dateSubmitted: '2022-09-14T12:35:16Z'
396
+ formResponse:
397
+ First Name: Arthur
398
+ Last Name: Dent
399
+ - id: 660d64fabf6e0a0d4edab981
400
+ displayName: Sample Form
401
+ siteId: 62749158efef318abc8d5a0f
402
+ workspaceId: 62749158efef318abc8d5a0f
403
+ dateSubmitted: '2022-09-14T12:35:16Z'
404
+ formResponse:
405
+ First Name: Ford
406
+ Last Name: Prefect
407
+ pagination:
408
+ limit: 25
409
+ offset: 0
410
+ total: 2
299
411
  source:
300
412
  openapi: ../../../openapi/referenced-specs/v2.yml
301
413
  display-name: Forms
@@ -25,6 +25,7 @@ service:
25
25
  response:
26
26
  docs: Request was successful
27
27
  type: root.InventoryItem
28
+ status-code: 200
28
29
  errors:
29
30
  - root.BadRequestError
30
31
  - root.UnauthorizedError
@@ -88,6 +89,7 @@ service:
88
89
  response:
89
90
  docs: Request was successful
90
91
  type: root.InventoryItem
92
+ status-code: 200
91
93
  errors:
92
94
  - root.BadRequestError
93
95
  - root.UnauthorizedError
@@ -57,6 +57,7 @@ service:
57
57
  response:
58
58
  docs: Request was successful
59
59
  type: root.OrderList
60
+ status-code: 200
60
61
  errors:
61
62
  - root.BadRequestError
62
63
  - root.UnauthorizedError
@@ -81,11 +82,6 @@ service:
81
82
  Please gift wrap with a personal note saying "Happy
82
83
  Birthday, Ford! 🎉
83
84
  acceptedOn: '2024-04-10T13:16:21Z'
84
- fulfilledOn: '2018-12-03T22:06:15Z'
85
- refundedOn: '2018-12-03T22:06:15Z'
86
- disputedOn: '2018-12-03T22:06:15Z'
87
- disputeUpdatedOn: '2018-12-03T22:06:15Z'
88
- disputeLastStatus: warning_needs_response
89
85
  customerPaid:
90
86
  unit: USD
91
87
  value: '5892'
@@ -201,13 +197,6 @@ service:
201
197
  expires:
202
198
  year: 2025
203
199
  month: 4
204
- paypalDetails:
205
- orderId: 1a2b3c4d5e6f7g8h9i0j
206
- payerId: 9k8j7i6h5g4f3e2d1c0b
207
- captureId: qwe123rty456uio789p
208
- refundId: abcde12345fghij67890
209
- refundReason: Customer requested refund
210
- disputeId: zxcvbnm987poiuytrewq
211
200
  customData:
212
201
  - key: value
213
202
  metadata:
@@ -235,11 +224,7 @@ service:
235
224
  comment: Example comment to myself
236
225
  orderComment: ''
237
226
  acceptedOn: '2024-03-29T21:29:21Z'
238
- fulfilledOn: '2018-12-03T22:06:15Z'
239
227
  refundedOn: '2024-04-08T18:25:04Z'
240
- disputedOn: '2018-12-03T22:06:15Z'
241
- disputeUpdatedOn: '2018-12-03T22:06:15Z'
242
- disputeLastStatus: warning_needs_response
243
228
  customerPaid:
244
229
  unit: USD
245
230
  value: '5892'
@@ -359,13 +344,6 @@ service:
359
344
  expires:
360
345
  year: 2024
361
346
  month: 4
362
- paypalDetails:
363
- orderId: 1a2b3c4d5e6f7g8h9i0j
364
- payerId: 9k8j7i6h5g4f3e2d1c0b
365
- captureId: qwe123rty456uio789p
366
- refundId: abcde12345fghij67890
367
- refundReason: Customer requested refund
368
- disputeId: zxcvbnm987poiuytrewq
369
347
  customData:
370
348
  - key: value
371
349
  metadata:
@@ -436,6 +414,7 @@ service:
436
414
  response:
437
415
  docs: Request was successful
438
416
  type: root.Order
417
+ status-code: 200
439
418
  errors:
440
419
  - root.BadRequestError
441
420
  - root.UnauthorizedError
@@ -571,12 +550,10 @@ service:
571
550
  length: 40
572
551
  purchasedItemsCount: 2
573
552
  stripeDetails:
574
- subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn
575
553
  paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j
576
554
  paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft
577
555
  customerId: cus_PpRsNHwWdUoRKR
578
556
  chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2
579
- disputeId: disputeId
580
557
  refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk
581
558
  refundReason: fraudulent
582
559
  stripeCard:
@@ -586,13 +563,6 @@ service:
586
563
  expires:
587
564
  year: 2024
588
565
  month: 4
589
- paypalDetails:
590
- orderId: 1a2b3c4d5e6f7g8h9i0j
591
- payerId: 9k8j7i6h5g4f3e2d1c0b
592
- captureId: qwe123rty456uio789p
593
- refundId: abcde12345fghij67890
594
- refundReason: Customer requested refund
595
- disputeId: zxcvbnm987poiuytrewq
596
566
  customData:
597
567
  - key: value
598
568
  metadata:
@@ -677,6 +647,7 @@ service:
677
647
  response:
678
648
  docs: Request was successful
679
649
  type: root.Order
650
+ status-code: 200
680
651
  errors:
681
652
  - root.BadRequestError
682
653
  - root.UnauthorizedError
@@ -813,12 +784,10 @@ service:
813
784
  length: 40
814
785
  purchasedItemsCount: 2
815
786
  stripeDetails:
816
- subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn
817
787
  paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j
818
788
  paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft
819
789
  customerId: cus_PpRsNHwWdUoRKR
820
790
  chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2
821
- disputeId: disputeId
822
791
  refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk
823
792
  refundReason: fraudulent
824
793
  stripeCard:
@@ -828,13 +797,6 @@ service:
828
797
  expires:
829
798
  year: 2024
830
799
  month: 4
831
- paypalDetails:
832
- orderId: 1a2b3c4d5e6f7g8h9i0j
833
- payerId: 9k8j7i6h5g4f3e2d1c0b
834
- captureId: qwe123rty456uio789p
835
- refundId: abcde12345fghij67890
836
- refundReason: Customer requested refund
837
- disputeId: zxcvbnm987poiuytrewq
838
800
  customData:
839
801
  - key: value
840
802
  metadata:
@@ -909,6 +871,7 @@ service:
909
871
  response:
910
872
  docs: Request was successful
911
873
  type: root.Order
874
+ status-code: 200
912
875
  errors:
913
876
  - root.BadRequestError
914
877
  - root.UnauthorizedError
@@ -1045,12 +1008,10 @@ service:
1045
1008
  length: 40
1046
1009
  purchasedItemsCount: 2
1047
1010
  stripeDetails:
1048
- subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn
1049
1011
  paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j
1050
1012
  paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft
1051
1013
  customerId: cus_PpRsNHwWdUoRKR
1052
1014
  chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2
1053
- disputeId: disputeId
1054
1015
  refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk
1055
1016
  refundReason: fraudulent
1056
1017
  stripeCard:
@@ -1060,13 +1021,6 @@ service:
1060
1021
  expires:
1061
1022
  year: 2024
1062
1023
  month: 4
1063
- paypalDetails:
1064
- orderId: 1a2b3c4d5e6f7g8h9i0j
1065
- payerId: 9k8j7i6h5g4f3e2d1c0b
1066
- captureId: qwe123rty456uio789p
1067
- refundId: abcde12345fghij67890
1068
- refundReason: Customer requested refund
1069
- disputeId: zxcvbnm987poiuytrewq
1070
1024
  customData:
1071
1025
  - key: value
1072
1026
  metadata:
@@ -1132,6 +1086,7 @@ service:
1132
1086
  response:
1133
1087
  docs: Request was successful
1134
1088
  type: root.Order
1089
+ status-code: 200
1135
1090
  errors:
1136
1091
  - root.BadRequestError
1137
1092
  - root.UnauthorizedError
@@ -1267,12 +1222,10 @@ service:
1267
1222
  length: 40
1268
1223
  purchasedItemsCount: 2
1269
1224
  stripeDetails:
1270
- subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn
1271
1225
  paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j
1272
1226
  paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft
1273
1227
  customerId: cus_PpRsNHwWdUoRKR
1274
1228
  chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2
1275
- disputeId: disputeId
1276
1229
  refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk
1277
1230
  refundReason: fraudulent
1278
1231
  stripeCard:
@@ -1282,13 +1235,6 @@ service:
1282
1235
  expires:
1283
1236
  year: 2024
1284
1237
  month: 4
1285
- paypalDetails:
1286
- orderId: 1a2b3c4d5e6f7g8h9i0j
1287
- payerId: 9k8j7i6h5g4f3e2d1c0b
1288
- captureId: qwe123rty456uio789p
1289
- refundId: abcde12345fghij67890
1290
- refundReason: Customer requested refund
1291
- disputeId: zxcvbnm987poiuytrewq
1292
1238
  customData:
1293
1239
  - key: value
1294
1240
  metadata:
@@ -1363,6 +1309,7 @@ service:
1363
1309
  response:
1364
1310
  docs: Request was successful
1365
1311
  type: root.Order
1312
+ status-code: 200
1366
1313
  errors:
1367
1314
  - root.BadRequestError
1368
1315
  - root.UnauthorizedError
@@ -1499,12 +1446,10 @@ service:
1499
1446
  length: 40
1500
1447
  purchasedItemsCount: 2
1501
1448
  stripeDetails:
1502
- subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn
1503
1449
  paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j
1504
1450
  paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft
1505
1451
  customerId: cus_PpRsNHwWdUoRKR
1506
1452
  chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2
1507
- disputeId: disputeId
1508
1453
  refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk
1509
1454
  refundReason: fraudulent
1510
1455
  stripeCard:
@@ -1514,13 +1459,6 @@ service:
1514
1459
  expires:
1515
1460
  year: 2024
1516
1461
  month: 4
1517
- paypalDetails:
1518
- orderId: 1a2b3c4d5e6f7g8h9i0j
1519
- payerId: 9k8j7i6h5g4f3e2d1c0b
1520
- captureId: qwe123rty456uio789p
1521
- refundId: abcde12345fghij67890
1522
- refundReason: Customer requested refund
1523
- disputeId: zxcvbnm987poiuytrewq
1524
1462
  customData:
1525
1463
  - key: value
1526
1464
  metadata:
@@ -8,22 +8,8 @@ service:
8
8
  path: /pages/{page_id}/custom_code
9
9
  method: GET
10
10
  auth: true
11
- docs: >
12
- Get all registered scripts that have been applied to a specific Page.
13
-
14
-
15
- In order to use the Custom Code APIs for Sites and Pages, Custom Code
16
- Scripts must first be registered
17
-
18
- to a Site via the `registered_scripts` endpoints, and then applied to a
19
- Site or Page using the appropriate
20
-
21
- `custom_code` endpoints.
22
-
23
-
24
- <Note>Access to this endpoint requires a bearer token from a [Data
25
- Client App](/data/docs/getting-started-data-clients).</Note>
26
-
11
+ docs: |
12
+ Get all scripts applied to a page.
27
13
 
28
14
  Required scope | `custom_code:read`
29
15
  source:
@@ -36,6 +22,7 @@ service:
36
22
  response:
37
23
  docs: Request was successful
38
24
  type: root.ScriptApplyList
25
+ status-code: 200
39
26
  errors:
40
27
  - root.BadRequestError
41
28
  - root.UnauthorizedError
@@ -59,25 +46,12 @@ service:
59
46
  path: /pages/{page_id}/custom_code
60
47
  method: PUT
61
48
  auth: true
62
- docs: >
63
- Add a registered script to a Page.
64
-
65
-
66
- In order to use the Custom Code APIs for Sites and Pages, Custom Code
67
- Scripts must first be registered
68
-
69
- to a Site via the `registered_scripts` endpoints, and then applied to a
70
- Site or Page using the appropriate
71
-
72
- `custom_code` endpoints.
73
-
74
-
75
- A site can have a maximum of 800 registered scripts.
76
-
77
-
78
- <Note>Access to this endpoint requires a bearer token from a [Data
79
- Client App](/data/docs/getting-started-data-clients).</Note>
49
+ docs: |
50
+ Apply scripts to a page.
80
51
 
52
+ <Note title="Script Registration">
53
+ To apply a script to a page, the script must first be registered to a Site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
54
+ </Note>
81
55
 
82
56
  Required scope | `custom_code:write`
83
57
  source:
@@ -93,6 +67,7 @@ service:
93
67
  response:
94
68
  docs: Request was successful
95
69
  type: root.ScriptApplyList
70
+ status-code: 200
96
71
  errors:
97
72
  - root.BadRequestError
98
73
  - root.UnauthorizedError
@@ -133,16 +108,7 @@ service:
133
108
  method: DELETE
134
109
  auth: true
135
110
  docs: >
136
- Delete the custom code block that an app has created for a page
137
-
138
-
139
- In order to use the Custom Code APIs for Sites and Pages, Custom Code
140
- Scripts must first be registered
141
-
142
- to a Site via the `registered_scripts` endpoints, and then applied to a
143
- Site or Page using the appropriate
144
-
145
- `custom_code` endpoints.
111
+ Delete a custom code block that the App created on a page.
146
112
 
147
113
 
148
114
  <Note>Access to this endpoint requires a bearer token from a [Data
@@ -38,6 +38,7 @@ service:
38
38
  response:
39
39
  docs: Request was successful
40
40
  type: root.PageList
41
+ status-code: 200
41
42
  errors:
42
43
  - root.BadRequestError
43
44
  - root.UnauthorizedError
@@ -56,8 +57,6 @@ service:
56
57
  siteId: 6258612d1ee792848f805dcf
57
58
  title: Guide to the Galaxy
58
59
  slug: guide-to-the-galaxy
59
- parentId: 6419db964a9c435aa3af6251
60
- collectionId: 6390c49774a71f12831a08e3
61
60
  createdOn: '2024-03-11T10:42:00Z'
62
61
  lastUpdated: '2024-03-11T10:42:42Z'
63
62
  archived: false
@@ -83,8 +82,6 @@ service:
83
82
  siteId: 6258612d1ee792848f805dcf
84
83
  title: Towel Day Celebrations
85
84
  slug: towel-day
86
- parentId: 6419db964a9c435aa3af6251
87
- collectionId: 6390c49774a71f12831a08e3
88
85
  createdOn: '2024-05-25T09:00:00Z'
89
86
  lastUpdated: '2024-05-25T09:42:00Z'
90
87
  archived: false
@@ -138,6 +135,7 @@ service:
138
135
  response:
139
136
  docs: Request was successful
140
137
  type: root.Page
138
+ status-code: 200
141
139
  errors:
142
140
  - root.BadRequestError
143
141
  - root.UnauthorizedError
@@ -155,8 +153,6 @@ service:
155
153
  siteId: 6258612d1ee792848f805dcf
156
154
  title: Guide to the Galaxy
157
155
  slug: guide-to-the-galaxy
158
- parentId: 6419db964a9c435aa3af6251
159
- collectionId: 6390c49774a71f12831a08e3
160
156
  createdOn: '2024-03-11T10:42:00Z'
161
157
  lastUpdated: '2024-03-11T10:42:42Z'
162
158
  archived: false
@@ -185,6 +181,10 @@ service:
185
181
  docs: |
186
182
  Update Page-level metadata, including SEO and Open Graph fields.
187
183
 
184
+ <Note>
185
+ Note: When updating Page Metadata in secondary locales, you may only add `slug` to the request if your Site has the [Advanced or Enterprise Localization](https://webflow.com/localization) add-on.
186
+ </Note>
187
+
188
188
  Required scope | `pages:write`
189
189
  source:
190
190
  openapi: ../../../openapi/referenced-specs/v2.yml
@@ -206,6 +206,7 @@ service:
206
206
  response:
207
207
  docs: Request was successful
208
208
  type: root.Page
209
+ status-code: 200
209
210
  errors:
210
211
  - root.BadRequestError
211
212
  - root.UnauthorizedError
@@ -248,8 +249,6 @@ service:
248
249
  siteId: 6258612d1ee792848f805dcf
249
250
  title: Guide to the Galaxy
250
251
  slug: guide-to-the-galaxy
251
- parentId: 6419db964a9c435aa3af6251
252
- collectionId: 6390c49774a71f12831a08e3
253
252
  createdOn: '2024-03-11T10:42:00Z'
254
253
  lastUpdated: '2024-03-11T10:42:42Z'
255
254
  archived: false
@@ -276,16 +275,18 @@ service:
276
275
  method: GET
277
276
  auth: true
278
277
  docs: >
279
- Get static content from a static page. This includes text nodes, image
280
- nodes and component instances.
278
+ Get content from a static page. This includes text nodes, image nodes,
279
+ and component instances with [property
280
+ overrides](https://help.webflow.com/hc/en-us/articles/33961219350547-Component-properties#how-to-modify-property-values-on-component-instances).
281
281
 
282
- To retrieve the contents of components in the page use the [get
283
- component
284
- content](/data/reference/pages-and-components/components/get-content)
282
+
283
+ To retrieve the static content of a component instance, use the [Get
284
+ Component
285
+ Content](/data/reference/pages-and-components/components/get-content)
285
286
  endpoint.
286
287
 
287
288
 
288
- <Note>If you do not provide a Locale ID in your request, the response
289
+ <Note>If you do not include a `localeId` in your request, the response
289
290
  will return any content that can be localized from the Primary
290
291
  locale.</Note>
291
292
 
@@ -317,6 +318,7 @@ service:
317
318
  response:
318
319
  docs: Request was successful
319
320
  type: root.Dom
321
+ status-code: 200
320
322
  errors:
321
323
  - root.BadRequestError
322
324
  - root.UnauthorizedError
@@ -334,39 +336,31 @@ service:
334
336
  body:
335
337
  pageId: 658205daa3e8206a523b5ad4
336
338
  nodes:
337
- - type: component-instance
338
- id: a245c12d-995b-55ee-5ec7-aa36a6cad623
339
- componentId: nodes
339
+ - id: id
340
+ text: {}
341
+ attributes:
342
+ key: value
343
+ type: text
344
+ - id: id
345
+ text: {}
346
+ attributes:
347
+ key: value
348
+ type: text
349
+ - id: id
350
+ image: {}
351
+ attributes:
352
+ key: value
353
+ type: image
354
+ - id: id
355
+ componentId: componentId
340
356
  propertyOverrides:
341
357
  - propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
342
- - type: component-instance
343
- id: a245c12d-995b-55ee-5ec7-aa36a6cad627
344
- componentId: nodes
345
- propertyOverrides:
346
- - propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
347
- - type: component-instance
348
- id: a245c12d-995b-55ee-5ec7-aa36a6cad629
349
- componentId: nodes
350
- propertyOverrides:
351
- - propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
352
- - type: component-instance
353
- id: a245c12d-995b-55ee-5ec7-aa36a6cad631
354
- componentId: 6258612d1ee792848f805dcf
355
- propertyOverrides:
356
- - propertyId: a245c12d-995b-55ee-5ec7-aa36a6cad633
357
- type: Plain Text
358
- label: Catchphrase
359
- text:
360
- text: Don't Panic!
361
- - propertyId: a245c12d-995b-55ee-5ec7-aa36a6cad635
362
- type: Rich Text
363
- label: Tagline
364
- text:
365
- html: <div><p>Always know where your towel is.</p></div>
358
+ type: component-instance
366
359
  pagination:
367
360
  limit: 4
368
361
  offset: 0
369
362
  total: 4
363
+ lastUpdated: '2016-10-24T19:42:38Z'
370
364
  update-static-content:
371
365
  path: /pages/{page_id}/dom
372
366
  method: POST
@@ -418,6 +412,7 @@ service:
418
412
  response:
419
413
  docs: Request was successful
420
414
  type: UpdateStaticContentResponse
415
+ status-code: 200
421
416
  errors:
422
417
  - root.BadRequestError
423
418
  - root.UnauthorizedError