webflow-api 2.3.5 → 2.3.6

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 (149) hide show
  1. package/api/errors/TooManyRequestsError.d.ts +2 -1
  2. package/api/errors/index.d.ts +1 -1
  3. package/api/errors/index.js +1 -1
  4. package/api/resources/accessGroups/client/Client.js +8 -2
  5. package/api/resources/assets/client/Client.js +64 -16
  6. package/api/resources/collections/client/Client.js +40 -10
  7. package/api/resources/collections/resources/fields/client/Client.js +16 -4
  8. package/api/resources/collections/resources/items/client/Client.d.ts +2 -2
  9. package/api/resources/collections/resources/items/client/Client.js +98 -26
  10. package/api/resources/ecommerce/client/Client.js +8 -2
  11. package/api/resources/forms/client/Client.d.ts +2 -1
  12. package/api/resources/forms/client/Client.js +51 -11
  13. package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
  14. package/api/resources/forms/client/requests/index.d.ts +1 -0
  15. package/api/resources/index.d.ts +0 -1
  16. package/api/resources/index.js +0 -1
  17. package/api/resources/inventory/client/Client.js +16 -4
  18. package/api/resources/orders/client/Client.js +48 -12
  19. package/api/resources/pages/client/Client.d.ts +5 -1
  20. package/api/resources/pages/client/Client.js +45 -11
  21. package/api/resources/pages/resources/scripts/client/Client.js +24 -6
  22. package/api/resources/products/client/Client.js +48 -12
  23. package/api/resources/scripts/client/Client.js +24 -6
  24. package/api/resources/sites/client/Client.d.ts +1 -3
  25. package/api/resources/sites/client/Client.js +33 -15
  26. package/api/resources/sites/resources/activityLogs/client/Client.js +8 -2
  27. package/api/resources/sites/resources/scripts/client/Client.js +32 -8
  28. package/api/resources/token/client/Client.js +2 -2
  29. package/api/resources/users/client/Client.js +40 -10
  30. package/api/resources/webhooks/client/Client.d.ts +8 -3
  31. package/api/resources/webhooks/client/Client.js +40 -11
  32. package/api/resources/webhooks/client/index.d.ts +1 -1
  33. package/api/resources/webhooks/client/index.js +0 -15
  34. package/api/types/Asset.d.ts +10 -8
  35. package/api/types/Form.d.ts +2 -0
  36. package/api/types/FormSubmissionList.d.ts +1 -1
  37. package/api/types/OauthScope.d.ts +9 -1
  38. package/api/types/OauthScope.js +2 -0
  39. package/api/types/TooManyRequestsErrorBody.d.ts +9 -0
  40. package/api/types/Webhook.d.ts +5 -5
  41. package/api/types/WebhookFilter.d.ts +10 -0
  42. package/{dist/api/resources/webhooks/client/requests/index.js → api/types/WebhookFilter.js} +3 -0
  43. package/api/types/index.d.ts +2 -0
  44. package/api/types/index.js +2 -0
  45. package/dist/api/errors/TooManyRequestsError.d.ts +2 -1
  46. package/dist/api/errors/index.d.ts +1 -1
  47. package/dist/api/errors/index.js +1 -1
  48. package/dist/api/resources/accessGroups/client/Client.js +8 -2
  49. package/dist/api/resources/assets/client/Client.js +64 -16
  50. package/dist/api/resources/collections/client/Client.js +40 -10
  51. package/dist/api/resources/collections/resources/fields/client/Client.js +16 -4
  52. package/dist/api/resources/collections/resources/items/client/Client.d.ts +2 -2
  53. package/dist/api/resources/collections/resources/items/client/Client.js +98 -26
  54. package/dist/api/resources/ecommerce/client/Client.js +8 -2
  55. package/dist/api/resources/forms/client/Client.d.ts +2 -1
  56. package/dist/api/resources/forms/client/Client.js +51 -11
  57. package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
  58. package/{api/resources/webhooks/client/requests/index.js → dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.js} +3 -0
  59. package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
  60. package/dist/api/resources/index.d.ts +0 -1
  61. package/dist/api/resources/index.js +0 -1
  62. package/dist/api/resources/inventory/client/Client.js +16 -4
  63. package/dist/api/resources/orders/client/Client.js +48 -12
  64. package/dist/api/resources/pages/client/Client.d.ts +5 -1
  65. package/dist/api/resources/pages/client/Client.js +45 -11
  66. package/dist/api/resources/pages/resources/scripts/client/Client.js +24 -6
  67. package/dist/api/resources/products/client/Client.js +48 -12
  68. package/dist/api/resources/scripts/client/Client.js +24 -6
  69. package/dist/api/resources/sites/client/Client.d.ts +1 -3
  70. package/dist/api/resources/sites/client/Client.js +33 -15
  71. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +8 -2
  72. package/dist/api/resources/sites/resources/scripts/client/Client.js +32 -8
  73. package/dist/api/resources/token/client/Client.js +2 -2
  74. package/dist/api/resources/users/client/Client.js +40 -10
  75. package/dist/api/resources/webhooks/client/Client.d.ts +8 -3
  76. package/dist/api/resources/webhooks/client/Client.js +40 -11
  77. package/dist/api/resources/webhooks/client/index.d.ts +1 -1
  78. package/dist/api/resources/webhooks/client/index.js +0 -15
  79. package/dist/api/types/Asset.d.ts +10 -8
  80. package/dist/api/types/Form.d.ts +2 -0
  81. package/dist/api/types/FormSubmissionList.d.ts +1 -1
  82. package/dist/api/types/OauthScope.d.ts +9 -1
  83. package/dist/api/types/OauthScope.js +2 -0
  84. package/dist/api/types/TooManyRequestsErrorBody.d.ts +9 -0
  85. package/dist/api/types/TooManyRequestsErrorBody.js +5 -0
  86. package/dist/api/types/Webhook.d.ts +5 -5
  87. package/dist/api/types/WebhookFilter.d.ts +10 -0
  88. package/dist/api/types/WebhookFilter.js +5 -0
  89. package/dist/api/types/index.d.ts +2 -0
  90. package/dist/api/types/index.js +2 -0
  91. package/dist/serialization/resources/index.d.ts +0 -2
  92. package/dist/serialization/resources/index.js +1 -3
  93. package/dist/serialization/types/Asset.d.ts +5 -4
  94. package/dist/serialization/types/Asset.js +5 -4
  95. package/dist/serialization/types/Form.d.ts +1 -0
  96. package/dist/serialization/types/Form.js +1 -0
  97. package/dist/serialization/types/FormSubmissionList.d.ts +1 -1
  98. package/dist/serialization/types/FormSubmissionList.js +1 -1
  99. package/dist/serialization/types/OauthScope.d.ts +1 -1
  100. package/dist/serialization/types/OauthScope.js +2 -0
  101. package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
  102. package/{serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js → dist/serialization/types/TooManyRequestsErrorBody.js} +7 -7
  103. package/dist/serialization/types/Webhook.d.ts +4 -3
  104. package/dist/serialization/types/Webhook.js +4 -3
  105. package/dist/serialization/types/WebhookFilter.d.ts +12 -0
  106. package/dist/serialization/{resources/webhooks/client/requests/WebhooksCreateRequest.js → types/WebhookFilter.js} +4 -7
  107. package/dist/serialization/types/index.d.ts +2 -0
  108. package/dist/serialization/types/index.js +2 -0
  109. package/dist/wrapper/ItemsClient.js +7 -1
  110. package/package.json +1 -1
  111. package/serialization/resources/index.d.ts +0 -2
  112. package/serialization/resources/index.js +1 -3
  113. package/serialization/types/Asset.d.ts +5 -4
  114. package/serialization/types/Asset.js +5 -4
  115. package/serialization/types/Form.d.ts +1 -0
  116. package/serialization/types/Form.js +1 -0
  117. package/serialization/types/FormSubmissionList.d.ts +1 -1
  118. package/serialization/types/FormSubmissionList.js +1 -1
  119. package/serialization/types/OauthScope.d.ts +1 -1
  120. package/serialization/types/OauthScope.js +2 -0
  121. package/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
  122. package/serialization/types/TooManyRequestsErrorBody.js +36 -0
  123. package/serialization/types/Webhook.d.ts +4 -3
  124. package/serialization/types/Webhook.js +4 -3
  125. package/serialization/types/WebhookFilter.d.ts +12 -0
  126. package/serialization/types/WebhookFilter.js +33 -0
  127. package/serialization/types/index.d.ts +2 -0
  128. package/serialization/types/index.js +2 -0
  129. package/wrapper/ItemsClient.js +7 -1
  130. package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
  131. package/api/resources/webhooks/client/requests/index.d.ts +0 -1
  132. package/dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
  133. package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -1
  134. package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
  135. package/dist/serialization/resources/webhooks/client/index.js +0 -17
  136. package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
  137. package/dist/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
  138. package/dist/serialization/resources/webhooks/client/requests/index.js +0 -5
  139. package/dist/serialization/resources/webhooks/index.d.ts +0 -1
  140. package/dist/serialization/resources/webhooks/index.js +0 -17
  141. package/serialization/resources/webhooks/client/index.d.ts +0 -1
  142. package/serialization/resources/webhooks/client/index.js +0 -17
  143. package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
  144. package/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
  145. package/serialization/resources/webhooks/client/requests/index.js +0 -5
  146. package/serialization/resources/webhooks/index.d.ts +0 -1
  147. package/serialization/resources/webhooks/index.js +0 -17
  148. /package/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
  149. /package/{dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.js → api/types/TooManyRequestsErrorBody.js} +0 -0
@@ -5,17 +5,17 @@ import * as Webflow from "../index";
5
5
  export interface Webhook {
6
6
  /** Unique identifier for the Webhook registration */
7
7
  id?: string;
8
+ triggerType?: Webflow.TriggerType;
9
+ /** URL to send the Webhook payload to */
10
+ url?: string;
8
11
  /** Unique identifier for the Workspace the Webhook is registered in */
9
12
  workspaceId?: string;
10
13
  /** Unique identifier for the Site the Webhook is registered in */
11
14
  siteId?: string;
12
- triggerType?: Webflow.TriggerType;
13
- /** Filter for selecting which events you want Webhooks to be sent for. Only supported for form_submission trigger types. */
14
- filter?: Record<string, unknown>;
15
+ /** Only supported for the `form_submission` trigger type. Filter for the form you want Webhooks to be sent for. */
16
+ filter?: Webflow.WebhookFilter;
15
17
  /** Date the Webhook instance was last triggered */
16
18
  lastTriggered?: Date;
17
19
  /** Date the Webhook registration was created */
18
20
  createdOn?: Date;
19
- /** URL to send the Webhook payload to */
20
- url?: string;
21
21
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Only supported for the `form_submission` trigger type. Filter for the form you want Webhooks to be sent for.
6
+ */
7
+ export interface WebhookFilter {
8
+ /** The name of the form you'd like to recieve notifications for. */
9
+ name?: string;
10
+ }
@@ -1,2 +1,5 @@
1
1
  "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  export * from "./OauthScope";
2
2
  export * from "./ForbiddenErrorBody";
3
+ export * from "./TooManyRequestsErrorBody";
3
4
  export * from "./BadRequestErrorBody";
4
5
  export * from "./ConflictErrorBody";
5
6
  export * from "./AuthorizedUser";
@@ -63,6 +64,7 @@ export * from "./AssetUpload";
63
64
  export * from "./AssetFolder";
64
65
  export * from "./AssetFolderList";
65
66
  export * from "./TriggerType";
67
+ export * from "./WebhookFilter";
66
68
  export * from "./Webhook";
67
69
  export * from "./WebhookList";
68
70
  export * from "./FormFieldValueType";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./OauthScope"), exports);
18
18
  __exportStar(require("./ForbiddenErrorBody"), exports);
19
+ __exportStar(require("./TooManyRequestsErrorBody"), exports);
19
20
  __exportStar(require("./BadRequestErrorBody"), exports);
20
21
  __exportStar(require("./ConflictErrorBody"), exports);
21
22
  __exportStar(require("./AuthorizedUser"), exports);
@@ -79,6 +80,7 @@ __exportStar(require("./AssetUpload"), exports);
79
80
  __exportStar(require("./AssetFolder"), exports);
80
81
  __exportStar(require("./AssetFolderList"), exports);
81
82
  __exportStar(require("./TriggerType"), exports);
83
+ __exportStar(require("./WebhookFilter"), exports);
82
84
  __exportStar(require("./Webhook"), exports);
83
85
  __exportStar(require("./WebhookList"), exports);
84
86
  __exportStar(require("./FormFieldValueType"), exports);
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as errors from "../../errors/index";
5
+ import * as Webflow from "../index";
5
6
  export declare class TooManyRequestsError extends errors.WebflowError {
6
- constructor(body?: unknown);
7
+ constructor(body: Webflow.TooManyRequestsErrorBody);
7
8
  }
@@ -1,7 +1,7 @@
1
1
  export * from "./UnauthorizedError";
2
2
  export * from "./ForbiddenError";
3
- export * from "./BadRequestError";
4
3
  export * from "./NotFoundError";
5
4
  export * from "./TooManyRequestsError";
5
+ export * from "./BadRequestError";
6
6
  export * from "./InternalServerError";
7
7
  export * from "./ConflictError";
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./UnauthorizedError"), exports);
18
18
  __exportStar(require("./ForbiddenError"), exports);
19
- __exportStar(require("./BadRequestError"), exports);
20
19
  __exportStar(require("./NotFoundError"), exports);
21
20
  __exportStar(require("./TooManyRequestsError"), exports);
21
+ __exportStar(require("./BadRequestError"), exports);
22
22
  __exportStar(require("./InternalServerError"), exports);
23
23
  __exportStar(require("./ConflictError"), exports);
@@ -87,7 +87,7 @@ class AccessGroups {
87
87
  Authorization: yield this._getAuthorizationHeader(),
88
88
  "X-Fern-Language": "JavaScript",
89
89
  "X-Fern-SDK-Name": "webflow-api",
90
- "X-Fern-SDK-Version": "2.3.5",
90
+ "X-Fern-SDK-Version": "2.3.6",
91
91
  "X-Fern-Runtime": core.RUNTIME.type,
92
92
  "X-Fern-Runtime-Version": core.RUNTIME.version,
93
93
  },
@@ -117,7 +117,13 @@ class AccessGroups {
117
117
  case 404:
118
118
  throw new Webflow.NotFoundError(_response.error.body);
119
119
  case 429:
120
- throw new Webflow.TooManyRequestsError(_response.error.body);
120
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
121
+ unrecognizedObjectKeys: "passthrough",
122
+ allowUnrecognizedUnionMembers: true,
123
+ allowUnrecognizedEnumValues: true,
124
+ skipValidation: true,
125
+ breadcrumbsPrefix: ["response"],
126
+ }));
121
127
  case 500:
122
128
  throw new Webflow.InternalServerError(_response.error.body);
123
129
  default:
@@ -74,7 +74,7 @@ class Assets {
74
74
  Authorization: yield this._getAuthorizationHeader(),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "webflow-api",
77
- "X-Fern-SDK-Version": "2.3.5",
77
+ "X-Fern-SDK-Version": "2.3.6",
78
78
  "X-Fern-Runtime": core.RUNTIME.type,
79
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
80
  },
@@ -101,7 +101,13 @@ class Assets {
101
101
  case 404:
102
102
  throw new Webflow.NotFoundError(_response.error.body);
103
103
  case 429:
104
- throw new Webflow.TooManyRequestsError(_response.error.body);
104
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
105
+ unrecognizedObjectKeys: "passthrough",
106
+ allowUnrecognizedUnionMembers: true,
107
+ allowUnrecognizedEnumValues: true,
108
+ skipValidation: true,
109
+ breadcrumbsPrefix: ["response"],
110
+ }));
105
111
  case 500:
106
112
  throw new Webflow.InternalServerError(_response.error.body);
107
113
  default:
@@ -155,7 +161,7 @@ class Assets {
155
161
  Authorization: yield this._getAuthorizationHeader(),
156
162
  "X-Fern-Language": "JavaScript",
157
163
  "X-Fern-SDK-Name": "webflow-api",
158
- "X-Fern-SDK-Version": "2.3.5",
164
+ "X-Fern-SDK-Version": "2.3.6",
159
165
  "X-Fern-Runtime": core.RUNTIME.type,
160
166
  "X-Fern-Runtime-Version": core.RUNTIME.version,
161
167
  },
@@ -183,7 +189,13 @@ class Assets {
183
189
  case 404:
184
190
  throw new Webflow.NotFoundError(_response.error.body);
185
191
  case 429:
186
- throw new Webflow.TooManyRequestsError(_response.error.body);
192
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
193
+ unrecognizedObjectKeys: "passthrough",
194
+ allowUnrecognizedUnionMembers: true,
195
+ allowUnrecognizedEnumValues: true,
196
+ skipValidation: true,
197
+ breadcrumbsPrefix: ["response"],
198
+ }));
187
199
  case 500:
188
200
  throw new Webflow.InternalServerError(_response.error.body);
189
201
  default:
@@ -233,7 +245,7 @@ class Assets {
233
245
  Authorization: yield this._getAuthorizationHeader(),
234
246
  "X-Fern-Language": "JavaScript",
235
247
  "X-Fern-SDK-Name": "webflow-api",
236
- "X-Fern-SDK-Version": "2.3.5",
248
+ "X-Fern-SDK-Version": "2.3.6",
237
249
  "X-Fern-Runtime": core.RUNTIME.type,
238
250
  "X-Fern-Runtime-Version": core.RUNTIME.version,
239
251
  },
@@ -260,7 +272,13 @@ class Assets {
260
272
  case 404:
261
273
  throw new Webflow.NotFoundError(_response.error.body);
262
274
  case 429:
263
- throw new Webflow.TooManyRequestsError(_response.error.body);
275
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
276
+ unrecognizedObjectKeys: "passthrough",
277
+ allowUnrecognizedUnionMembers: true,
278
+ allowUnrecognizedEnumValues: true,
279
+ skipValidation: true,
280
+ breadcrumbsPrefix: ["response"],
281
+ }));
264
282
  case 500:
265
283
  throw new Webflow.InternalServerError(_response.error.body);
266
284
  default:
@@ -310,7 +328,7 @@ class Assets {
310
328
  Authorization: yield this._getAuthorizationHeader(),
311
329
  "X-Fern-Language": "JavaScript",
312
330
  "X-Fern-SDK-Name": "webflow-api",
313
- "X-Fern-SDK-Version": "2.3.5",
331
+ "X-Fern-SDK-Version": "2.3.6",
314
332
  "X-Fern-Runtime": core.RUNTIME.type,
315
333
  "X-Fern-Runtime-Version": core.RUNTIME.version,
316
334
  },
@@ -331,7 +349,13 @@ class Assets {
331
349
  case 404:
332
350
  throw new Webflow.NotFoundError(_response.error.body);
333
351
  case 429:
334
- throw new Webflow.TooManyRequestsError(_response.error.body);
352
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
353
+ unrecognizedObjectKeys: "passthrough",
354
+ allowUnrecognizedUnionMembers: true,
355
+ allowUnrecognizedEnumValues: true,
356
+ skipValidation: true,
357
+ breadcrumbsPrefix: ["response"],
358
+ }));
335
359
  case 500:
336
360
  throw new Webflow.InternalServerError(_response.error.body);
337
361
  default:
@@ -384,7 +408,7 @@ class Assets {
384
408
  Authorization: yield this._getAuthorizationHeader(),
385
409
  "X-Fern-Language": "JavaScript",
386
410
  "X-Fern-SDK-Name": "webflow-api",
387
- "X-Fern-SDK-Version": "2.3.5",
411
+ "X-Fern-SDK-Version": "2.3.6",
388
412
  "X-Fern-Runtime": core.RUNTIME.type,
389
413
  "X-Fern-Runtime-Version": core.RUNTIME.version,
390
414
  },
@@ -412,7 +436,13 @@ class Assets {
412
436
  case 404:
413
437
  throw new Webflow.NotFoundError(_response.error.body);
414
438
  case 429:
415
- throw new Webflow.TooManyRequestsError(_response.error.body);
439
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
440
+ unrecognizedObjectKeys: "passthrough",
441
+ allowUnrecognizedUnionMembers: true,
442
+ allowUnrecognizedEnumValues: true,
443
+ skipValidation: true,
444
+ breadcrumbsPrefix: ["response"],
445
+ }));
416
446
  case 500:
417
447
  throw new Webflow.InternalServerError(_response.error.body);
418
448
  default:
@@ -462,7 +492,7 @@ class Assets {
462
492
  Authorization: yield this._getAuthorizationHeader(),
463
493
  "X-Fern-Language": "JavaScript",
464
494
  "X-Fern-SDK-Name": "webflow-api",
465
- "X-Fern-SDK-Version": "2.3.5",
495
+ "X-Fern-SDK-Version": "2.3.6",
466
496
  "X-Fern-Runtime": core.RUNTIME.type,
467
497
  "X-Fern-Runtime-Version": core.RUNTIME.version,
468
498
  },
@@ -489,7 +519,13 @@ class Assets {
489
519
  case 404:
490
520
  throw new Webflow.NotFoundError(_response.error.body);
491
521
  case 429:
492
- throw new Webflow.TooManyRequestsError(_response.error.body);
522
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
523
+ unrecognizedObjectKeys: "passthrough",
524
+ allowUnrecognizedUnionMembers: true,
525
+ allowUnrecognizedEnumValues: true,
526
+ skipValidation: true,
527
+ breadcrumbsPrefix: ["response"],
528
+ }));
493
529
  case 500:
494
530
  throw new Webflow.InternalServerError(_response.error.body);
495
531
  default:
@@ -542,7 +578,7 @@ class Assets {
542
578
  Authorization: yield this._getAuthorizationHeader(),
543
579
  "X-Fern-Language": "JavaScript",
544
580
  "X-Fern-SDK-Name": "webflow-api",
545
- "X-Fern-SDK-Version": "2.3.5",
581
+ "X-Fern-SDK-Version": "2.3.6",
546
582
  "X-Fern-Runtime": core.RUNTIME.type,
547
583
  "X-Fern-Runtime-Version": core.RUNTIME.version,
548
584
  },
@@ -570,7 +606,13 @@ class Assets {
570
606
  case 404:
571
607
  throw new Webflow.NotFoundError(_response.error.body);
572
608
  case 429:
573
- throw new Webflow.TooManyRequestsError(_response.error.body);
609
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
610
+ unrecognizedObjectKeys: "passthrough",
611
+ allowUnrecognizedUnionMembers: true,
612
+ allowUnrecognizedEnumValues: true,
613
+ skipValidation: true,
614
+ breadcrumbsPrefix: ["response"],
615
+ }));
574
616
  case 500:
575
617
  throw new Webflow.InternalServerError(_response.error.body);
576
618
  default:
@@ -620,7 +662,7 @@ class Assets {
620
662
  Authorization: yield this._getAuthorizationHeader(),
621
663
  "X-Fern-Language": "JavaScript",
622
664
  "X-Fern-SDK-Name": "webflow-api",
623
- "X-Fern-SDK-Version": "2.3.5",
665
+ "X-Fern-SDK-Version": "2.3.6",
624
666
  "X-Fern-Runtime": core.RUNTIME.type,
625
667
  "X-Fern-Runtime-Version": core.RUNTIME.version,
626
668
  },
@@ -647,7 +689,13 @@ class Assets {
647
689
  case 404:
648
690
  throw new Webflow.NotFoundError(_response.error.body);
649
691
  case 429:
650
- throw new Webflow.TooManyRequestsError(_response.error.body);
692
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
693
+ unrecognizedObjectKeys: "passthrough",
694
+ allowUnrecognizedUnionMembers: true,
695
+ allowUnrecognizedEnumValues: true,
696
+ skipValidation: true,
697
+ breadcrumbsPrefix: ["response"],
698
+ }));
651
699
  case 500:
652
700
  throw new Webflow.InternalServerError(_response.error.body);
653
701
  default:
@@ -76,7 +76,7 @@ class Collections {
76
76
  Authorization: yield this._getAuthorizationHeader(),
77
77
  "X-Fern-Language": "JavaScript",
78
78
  "X-Fern-SDK-Name": "webflow-api",
79
- "X-Fern-SDK-Version": "2.3.5",
79
+ "X-Fern-SDK-Version": "2.3.6",
80
80
  "X-Fern-Runtime": core.RUNTIME.type,
81
81
  "X-Fern-Runtime-Version": core.RUNTIME.version,
82
82
  },
@@ -103,7 +103,13 @@ class Collections {
103
103
  case 404:
104
104
  throw new Webflow.NotFoundError(_response.error.body);
105
105
  case 429:
106
- throw new Webflow.TooManyRequestsError(_response.error.body);
106
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
107
+ unrecognizedObjectKeys: "passthrough",
108
+ allowUnrecognizedUnionMembers: true,
109
+ allowUnrecognizedEnumValues: true,
110
+ skipValidation: true,
111
+ breadcrumbsPrefix: ["response"],
112
+ }));
107
113
  case 500:
108
114
  throw new Webflow.InternalServerError(_response.error.body);
109
115
  default:
@@ -158,7 +164,7 @@ class Collections {
158
164
  Authorization: yield this._getAuthorizationHeader(),
159
165
  "X-Fern-Language": "JavaScript",
160
166
  "X-Fern-SDK-Name": "webflow-api",
161
- "X-Fern-SDK-Version": "2.3.5",
167
+ "X-Fern-SDK-Version": "2.3.6",
162
168
  "X-Fern-Runtime": core.RUNTIME.type,
163
169
  "X-Fern-Runtime-Version": core.RUNTIME.version,
164
170
  },
@@ -186,7 +192,13 @@ class Collections {
186
192
  case 404:
187
193
  throw new Webflow.NotFoundError(_response.error.body);
188
194
  case 429:
189
- throw new Webflow.TooManyRequestsError(_response.error.body);
195
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
196
+ unrecognizedObjectKeys: "passthrough",
197
+ allowUnrecognizedUnionMembers: true,
198
+ allowUnrecognizedEnumValues: true,
199
+ skipValidation: true,
200
+ breadcrumbsPrefix: ["response"],
201
+ }));
190
202
  case 500:
191
203
  throw new Webflow.InternalServerError(_response.error.body);
192
204
  default:
@@ -236,7 +248,7 @@ class Collections {
236
248
  Authorization: yield this._getAuthorizationHeader(),
237
249
  "X-Fern-Language": "JavaScript",
238
250
  "X-Fern-SDK-Name": "webflow-api",
239
- "X-Fern-SDK-Version": "2.3.5",
251
+ "X-Fern-SDK-Version": "2.3.6",
240
252
  "X-Fern-Runtime": core.RUNTIME.type,
241
253
  "X-Fern-Runtime-Version": core.RUNTIME.version,
242
254
  },
@@ -263,7 +275,13 @@ class Collections {
263
275
  case 404:
264
276
  throw new Webflow.NotFoundError(_response.error.body);
265
277
  case 429:
266
- throw new Webflow.TooManyRequestsError(_response.error.body);
278
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
279
+ unrecognizedObjectKeys: "passthrough",
280
+ allowUnrecognizedUnionMembers: true,
281
+ allowUnrecognizedEnumValues: true,
282
+ skipValidation: true,
283
+ breadcrumbsPrefix: ["response"],
284
+ }));
267
285
  case 500:
268
286
  throw new Webflow.InternalServerError(_response.error.body);
269
287
  default:
@@ -313,7 +331,7 @@ class Collections {
313
331
  Authorization: yield this._getAuthorizationHeader(),
314
332
  "X-Fern-Language": "JavaScript",
315
333
  "X-Fern-SDK-Name": "webflow-api",
316
- "X-Fern-SDK-Version": "2.3.5",
334
+ "X-Fern-SDK-Version": "2.3.6",
317
335
  "X-Fern-Runtime": core.RUNTIME.type,
318
336
  "X-Fern-Runtime-Version": core.RUNTIME.version,
319
337
  },
@@ -334,7 +352,13 @@ class Collections {
334
352
  case 404:
335
353
  throw new Webflow.NotFoundError(_response.error.body);
336
354
  case 429:
337
- throw new Webflow.TooManyRequestsError(_response.error.body);
355
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
356
+ unrecognizedObjectKeys: "passthrough",
357
+ allowUnrecognizedUnionMembers: true,
358
+ allowUnrecognizedEnumValues: true,
359
+ skipValidation: true,
360
+ breadcrumbsPrefix: ["response"],
361
+ }));
338
362
  case 500:
339
363
  throw new Webflow.InternalServerError(_response.error.body);
340
364
  default:
@@ -385,7 +409,7 @@ class Collections {
385
409
  Authorization: yield this._getAuthorizationHeader(),
386
410
  "X-Fern-Language": "JavaScript",
387
411
  "X-Fern-SDK-Name": "webflow-api",
388
- "X-Fern-SDK-Version": "2.3.5",
412
+ "X-Fern-SDK-Version": "2.3.6",
389
413
  "X-Fern-Runtime": core.RUNTIME.type,
390
414
  "X-Fern-Runtime-Version": core.RUNTIME.version,
391
415
  },
@@ -406,7 +430,13 @@ class Collections {
406
430
  case 404:
407
431
  throw new Webflow.NotFoundError(_response.error.body);
408
432
  case 429:
409
- throw new Webflow.TooManyRequestsError(_response.error.body);
433
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
434
+ unrecognizedObjectKeys: "passthrough",
435
+ allowUnrecognizedUnionMembers: true,
436
+ allowUnrecognizedEnumValues: true,
437
+ skipValidation: true,
438
+ breadcrumbsPrefix: ["response"],
439
+ }));
410
440
  case 500:
411
441
  throw new Webflow.InternalServerError(_response.error.body);
412
442
  default:
@@ -80,7 +80,7 @@ class Fields {
80
80
  Authorization: yield this._getAuthorizationHeader(),
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "webflow-api",
83
- "X-Fern-SDK-Version": "2.3.5",
83
+ "X-Fern-SDK-Version": "2.3.6",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -108,7 +108,13 @@ class Fields {
108
108
  case 404:
109
109
  throw new Webflow.NotFoundError(_response.error.body);
110
110
  case 429:
111
- throw new Webflow.TooManyRequestsError(_response.error.body);
111
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
112
+ unrecognizedObjectKeys: "passthrough",
113
+ allowUnrecognizedUnionMembers: true,
114
+ allowUnrecognizedEnumValues: true,
115
+ skipValidation: true,
116
+ breadcrumbsPrefix: ["response"],
117
+ }));
112
118
  case 500:
113
119
  throw new Webflow.InternalServerError(_response.error.body);
114
120
  default:
@@ -164,7 +170,7 @@ class Fields {
164
170
  Authorization: yield this._getAuthorizationHeader(),
165
171
  "X-Fern-Language": "JavaScript",
166
172
  "X-Fern-SDK-Name": "webflow-api",
167
- "X-Fern-SDK-Version": "2.3.5",
173
+ "X-Fern-SDK-Version": "2.3.6",
168
174
  "X-Fern-Runtime": core.RUNTIME.type,
169
175
  "X-Fern-Runtime-Version": core.RUNTIME.version,
170
176
  },
@@ -192,7 +198,13 @@ class Fields {
192
198
  case 404:
193
199
  throw new Webflow.NotFoundError(_response.error.body);
194
200
  case 429:
195
- throw new Webflow.TooManyRequestsError(_response.error.body);
201
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
202
+ unrecognizedObjectKeys: "passthrough",
203
+ allowUnrecognizedUnionMembers: true,
204
+ allowUnrecognizedEnumValues: true,
205
+ skipValidation: true,
206
+ breadcrumbsPrefix: ["response"],
207
+ }));
196
208
  case 500:
197
209
  throw new Webflow.InternalServerError(_response.error.body);
198
210
  default:
@@ -39,7 +39,7 @@ export declare class Items {
39
39
  */
40
40
  listItems(collectionId: string, request?: Webflow.collections.ItemsListItemsRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
41
41
  /**
42
- * Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
42
+ * <style>.rm-Markdown.markdown-body a{color: #146EF5 !important;}</style> Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use the bulk item endpoint.</a> </br></br> Required scope | <code>CMS:write</code>
43
43
  *
44
44
  * @param {string} collectionId - Unique identifier for a Collection
45
45
  * @param {Webflow.CollectionItem} request
@@ -217,7 +217,7 @@ export declare class Items {
217
217
  */
218
218
  getItemLive(collectionId: string, itemId: string, request?: Webflow.collections.ItemsGetItemLiveRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
219
219
  /**
220
- * Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion. </br></br> Required scope | `CMS:write`
220
+ * Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion.</br></br> Required scope | `CMS:write`
221
221
  *
222
222
  * @param {string} collectionId - Unique identifier for a Collection
223
223
  * @param {string} itemId - Unique identifier for an Item