Skip to content

Commit cde9d50

Browse files
authored
Merge pull request #158 from webflow/fern-bot/08-19-2024-0801PM
🌿 Fern Regeneration -- August 19, 2024
2 parents ed20f14 + 19dcc11 commit cde9d50

File tree

51 files changed

+1136
-454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1136
-454
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webflow-api",
3-
"version": "2.3.5",
3+
"version": "2.3.6",
44
"private": false,
55
"repository": "https://github.com/webflow/js-webflow-api",
66
"main": "./index.js",

src/api/errors/TooManyRequestsError.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
*/
44

55
import * as errors from "../../errors/index";
6+
import * as Webflow from "../index";
67

78
export class TooManyRequestsError extends errors.WebflowError {
8-
constructor(body?: unknown) {
9+
constructor(body: Webflow.TooManyRequestsErrorBody) {
910
super({
1011
message: "TooManyRequestsError",
1112
statusCode: 429,

src/api/errors/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export * from "./UnauthorizedError";
22
export * from "./ForbiddenError";
3-
export * from "./BadRequestError";
43
export * from "./NotFoundError";
54
export * from "./TooManyRequestsError";
5+
export * from "./BadRequestError";
66
export * from "./InternalServerError";
77
export * from "./ConflictError";

src/api/resources/accessGroups/client/Client.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class AccessGroups {
7474
Authorization: await this._getAuthorizationHeader(),
7575
"X-Fern-Language": "JavaScript",
7676
"X-Fern-SDK-Name": "webflow-api",
77-
"X-Fern-SDK-Version": "2.3.5",
77+
"X-Fern-SDK-Version": "2.3.6",
7878
"X-Fern-Runtime": core.RUNTIME.type,
7979
"X-Fern-Runtime-Version": core.RUNTIME.version,
8080
},
@@ -105,7 +105,15 @@ export class AccessGroups {
105105
case 404:
106106
throw new Webflow.NotFoundError(_response.error.body);
107107
case 429:
108-
throw new Webflow.TooManyRequestsError(_response.error.body);
108+
throw new Webflow.TooManyRequestsError(
109+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
110+
unrecognizedObjectKeys: "passthrough",
111+
allowUnrecognizedUnionMembers: true,
112+
allowUnrecognizedEnumValues: true,
113+
skipValidation: true,
114+
breadcrumbsPrefix: ["response"],
115+
})
116+
);
109117
case 500:
110118
throw new Webflow.InternalServerError(_response.error.body);
111119
default:

src/api/resources/assets/client/Client.ts

+80-16
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class Assets {
5454
Authorization: await this._getAuthorizationHeader(),
5555
"X-Fern-Language": "JavaScript",
5656
"X-Fern-SDK-Name": "webflow-api",
57-
"X-Fern-SDK-Version": "2.3.5",
57+
"X-Fern-SDK-Version": "2.3.6",
5858
"X-Fern-Runtime": core.RUNTIME.type,
5959
"X-Fern-Runtime-Version": core.RUNTIME.version,
6060
},
@@ -82,7 +82,15 @@ export class Assets {
8282
case 404:
8383
throw new Webflow.NotFoundError(_response.error.body);
8484
case 429:
85-
throw new Webflow.TooManyRequestsError(_response.error.body);
85+
throw new Webflow.TooManyRequestsError(
86+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
87+
unrecognizedObjectKeys: "passthrough",
88+
allowUnrecognizedUnionMembers: true,
89+
allowUnrecognizedEnumValues: true,
90+
skipValidation: true,
91+
breadcrumbsPrefix: ["response"],
92+
})
93+
);
8694
case 500:
8795
throw new Webflow.InternalServerError(_response.error.body);
8896
default:
@@ -142,7 +150,7 @@ export class Assets {
142150
Authorization: await this._getAuthorizationHeader(),
143151
"X-Fern-Language": "JavaScript",
144152
"X-Fern-SDK-Name": "webflow-api",
145-
"X-Fern-SDK-Version": "2.3.5",
153+
"X-Fern-SDK-Version": "2.3.6",
146154
"X-Fern-Runtime": core.RUNTIME.type,
147155
"X-Fern-Runtime-Version": core.RUNTIME.version,
148156
},
@@ -171,7 +179,15 @@ export class Assets {
171179
case 404:
172180
throw new Webflow.NotFoundError(_response.error.body);
173181
case 429:
174-
throw new Webflow.TooManyRequestsError(_response.error.body);
182+
throw new Webflow.TooManyRequestsError(
183+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
184+
unrecognizedObjectKeys: "passthrough",
185+
allowUnrecognizedUnionMembers: true,
186+
allowUnrecognizedEnumValues: true,
187+
skipValidation: true,
188+
breadcrumbsPrefix: ["response"],
189+
})
190+
);
175191
case 500:
176192
throw new Webflow.InternalServerError(_response.error.body);
177193
default:
@@ -223,7 +239,7 @@ export class Assets {
223239
Authorization: await this._getAuthorizationHeader(),
224240
"X-Fern-Language": "JavaScript",
225241
"X-Fern-SDK-Name": "webflow-api",
226-
"X-Fern-SDK-Version": "2.3.5",
242+
"X-Fern-SDK-Version": "2.3.6",
227243
"X-Fern-Runtime": core.RUNTIME.type,
228244
"X-Fern-Runtime-Version": core.RUNTIME.version,
229245
},
@@ -251,7 +267,15 @@ export class Assets {
251267
case 404:
252268
throw new Webflow.NotFoundError(_response.error.body);
253269
case 429:
254-
throw new Webflow.TooManyRequestsError(_response.error.body);
270+
throw new Webflow.TooManyRequestsError(
271+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
272+
unrecognizedObjectKeys: "passthrough",
273+
allowUnrecognizedUnionMembers: true,
274+
allowUnrecognizedEnumValues: true,
275+
skipValidation: true,
276+
breadcrumbsPrefix: ["response"],
277+
})
278+
);
255279
case 500:
256280
throw new Webflow.InternalServerError(_response.error.body);
257281
default:
@@ -303,7 +327,7 @@ export class Assets {
303327
Authorization: await this._getAuthorizationHeader(),
304328
"X-Fern-Language": "JavaScript",
305329
"X-Fern-SDK-Name": "webflow-api",
306-
"X-Fern-SDK-Version": "2.3.5",
330+
"X-Fern-SDK-Version": "2.3.6",
307331
"X-Fern-Runtime": core.RUNTIME.type,
308332
"X-Fern-Runtime-Version": core.RUNTIME.version,
309333
},
@@ -325,7 +349,15 @@ export class Assets {
325349
case 404:
326350
throw new Webflow.NotFoundError(_response.error.body);
327351
case 429:
328-
throw new Webflow.TooManyRequestsError(_response.error.body);
352+
throw new Webflow.TooManyRequestsError(
353+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
354+
unrecognizedObjectKeys: "passthrough",
355+
allowUnrecognizedUnionMembers: true,
356+
allowUnrecognizedEnumValues: true,
357+
skipValidation: true,
358+
breadcrumbsPrefix: ["response"],
359+
})
360+
);
329361
case 500:
330362
throw new Webflow.InternalServerError(_response.error.body);
331363
default:
@@ -384,7 +416,7 @@ export class Assets {
384416
Authorization: await this._getAuthorizationHeader(),
385417
"X-Fern-Language": "JavaScript",
386418
"X-Fern-SDK-Name": "webflow-api",
387-
"X-Fern-SDK-Version": "2.3.5",
419+
"X-Fern-SDK-Version": "2.3.6",
388420
"X-Fern-Runtime": core.RUNTIME.type,
389421
"X-Fern-Runtime-Version": core.RUNTIME.version,
390422
},
@@ -413,7 +445,15 @@ export class Assets {
413445
case 404:
414446
throw new Webflow.NotFoundError(_response.error.body);
415447
case 429:
416-
throw new Webflow.TooManyRequestsError(_response.error.body);
448+
throw new Webflow.TooManyRequestsError(
449+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
450+
unrecognizedObjectKeys: "passthrough",
451+
allowUnrecognizedUnionMembers: true,
452+
allowUnrecognizedEnumValues: true,
453+
skipValidation: true,
454+
breadcrumbsPrefix: ["response"],
455+
})
456+
);
417457
case 500:
418458
throw new Webflow.InternalServerError(_response.error.body);
419459
default:
@@ -465,7 +505,7 @@ export class Assets {
465505
Authorization: await this._getAuthorizationHeader(),
466506
"X-Fern-Language": "JavaScript",
467507
"X-Fern-SDK-Name": "webflow-api",
468-
"X-Fern-SDK-Version": "2.3.5",
508+
"X-Fern-SDK-Version": "2.3.6",
469509
"X-Fern-Runtime": core.RUNTIME.type,
470510
"X-Fern-Runtime-Version": core.RUNTIME.version,
471511
},
@@ -493,7 +533,15 @@ export class Assets {
493533
case 404:
494534
throw new Webflow.NotFoundError(_response.error.body);
495535
case 429:
496-
throw new Webflow.TooManyRequestsError(_response.error.body);
536+
throw new Webflow.TooManyRequestsError(
537+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
538+
unrecognizedObjectKeys: "passthrough",
539+
allowUnrecognizedUnionMembers: true,
540+
allowUnrecognizedEnumValues: true,
541+
skipValidation: true,
542+
breadcrumbsPrefix: ["response"],
543+
})
544+
);
497545
case 500:
498546
throw new Webflow.InternalServerError(_response.error.body);
499547
default:
@@ -552,7 +600,7 @@ export class Assets {
552600
Authorization: await this._getAuthorizationHeader(),
553601
"X-Fern-Language": "JavaScript",
554602
"X-Fern-SDK-Name": "webflow-api",
555-
"X-Fern-SDK-Version": "2.3.5",
603+
"X-Fern-SDK-Version": "2.3.6",
556604
"X-Fern-Runtime": core.RUNTIME.type,
557605
"X-Fern-Runtime-Version": core.RUNTIME.version,
558606
},
@@ -581,7 +629,15 @@ export class Assets {
581629
case 404:
582630
throw new Webflow.NotFoundError(_response.error.body);
583631
case 429:
584-
throw new Webflow.TooManyRequestsError(_response.error.body);
632+
throw new Webflow.TooManyRequestsError(
633+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
634+
unrecognizedObjectKeys: "passthrough",
635+
allowUnrecognizedUnionMembers: true,
636+
allowUnrecognizedEnumValues: true,
637+
skipValidation: true,
638+
breadcrumbsPrefix: ["response"],
639+
})
640+
);
585641
case 500:
586642
throw new Webflow.InternalServerError(_response.error.body);
587643
default:
@@ -636,7 +692,7 @@ export class Assets {
636692
Authorization: await this._getAuthorizationHeader(),
637693
"X-Fern-Language": "JavaScript",
638694
"X-Fern-SDK-Name": "webflow-api",
639-
"X-Fern-SDK-Version": "2.3.5",
695+
"X-Fern-SDK-Version": "2.3.6",
640696
"X-Fern-Runtime": core.RUNTIME.type,
641697
"X-Fern-Runtime-Version": core.RUNTIME.version,
642698
},
@@ -664,7 +720,15 @@ export class Assets {
664720
case 404:
665721
throw new Webflow.NotFoundError(_response.error.body);
666722
case 429:
667-
throw new Webflow.TooManyRequestsError(_response.error.body);
723+
throw new Webflow.TooManyRequestsError(
724+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
725+
unrecognizedObjectKeys: "passthrough",
726+
allowUnrecognizedUnionMembers: true,
727+
allowUnrecognizedEnumValues: true,
728+
skipValidation: true,
729+
breadcrumbsPrefix: ["response"],
730+
})
731+
);
668732
case 500:
669733
throw new Webflow.InternalServerError(_response.error.body);
670734
default:

src/api/resources/collections/client/Client.ts

+50-10
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class Collections {
5656
Authorization: await this._getAuthorizationHeader(),
5757
"X-Fern-Language": "JavaScript",
5858
"X-Fern-SDK-Name": "webflow-api",
59-
"X-Fern-SDK-Version": "2.3.5",
59+
"X-Fern-SDK-Version": "2.3.6",
6060
"X-Fern-Runtime": core.RUNTIME.type,
6161
"X-Fern-Runtime-Version": core.RUNTIME.version,
6262
},
@@ -84,7 +84,15 @@ export class Collections {
8484
case 404:
8585
throw new Webflow.NotFoundError(_response.error.body);
8686
case 429:
87-
throw new Webflow.TooManyRequestsError(_response.error.body);
87+
throw new Webflow.TooManyRequestsError(
88+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
89+
unrecognizedObjectKeys: "passthrough",
90+
allowUnrecognizedUnionMembers: true,
91+
allowUnrecognizedEnumValues: true,
92+
skipValidation: true,
93+
breadcrumbsPrefix: ["response"],
94+
})
95+
);
8896
case 500:
8997
throw new Webflow.InternalServerError(_response.error.body);
9098
default:
@@ -145,7 +153,7 @@ export class Collections {
145153
Authorization: await this._getAuthorizationHeader(),
146154
"X-Fern-Language": "JavaScript",
147155
"X-Fern-SDK-Name": "webflow-api",
148-
"X-Fern-SDK-Version": "2.3.5",
156+
"X-Fern-SDK-Version": "2.3.6",
149157
"X-Fern-Runtime": core.RUNTIME.type,
150158
"X-Fern-Runtime-Version": core.RUNTIME.version,
151159
},
@@ -174,7 +182,15 @@ export class Collections {
174182
case 404:
175183
throw new Webflow.NotFoundError(_response.error.body);
176184
case 429:
177-
throw new Webflow.TooManyRequestsError(_response.error.body);
185+
throw new Webflow.TooManyRequestsError(
186+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
187+
unrecognizedObjectKeys: "passthrough",
188+
allowUnrecognizedUnionMembers: true,
189+
allowUnrecognizedEnumValues: true,
190+
skipValidation: true,
191+
breadcrumbsPrefix: ["response"],
192+
})
193+
);
178194
case 500:
179195
throw new Webflow.InternalServerError(_response.error.body);
180196
default:
@@ -226,7 +242,7 @@ export class Collections {
226242
Authorization: await this._getAuthorizationHeader(),
227243
"X-Fern-Language": "JavaScript",
228244
"X-Fern-SDK-Name": "webflow-api",
229-
"X-Fern-SDK-Version": "2.3.5",
245+
"X-Fern-SDK-Version": "2.3.6",
230246
"X-Fern-Runtime": core.RUNTIME.type,
231247
"X-Fern-Runtime-Version": core.RUNTIME.version,
232248
},
@@ -254,7 +270,15 @@ export class Collections {
254270
case 404:
255271
throw new Webflow.NotFoundError(_response.error.body);
256272
case 429:
257-
throw new Webflow.TooManyRequestsError(_response.error.body);
273+
throw new Webflow.TooManyRequestsError(
274+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
275+
unrecognizedObjectKeys: "passthrough",
276+
allowUnrecognizedUnionMembers: true,
277+
allowUnrecognizedEnumValues: true,
278+
skipValidation: true,
279+
breadcrumbsPrefix: ["response"],
280+
})
281+
);
258282
case 500:
259283
throw new Webflow.InternalServerError(_response.error.body);
260284
default:
@@ -306,7 +330,7 @@ export class Collections {
306330
Authorization: await this._getAuthorizationHeader(),
307331
"X-Fern-Language": "JavaScript",
308332
"X-Fern-SDK-Name": "webflow-api",
309-
"X-Fern-SDK-Version": "2.3.5",
333+
"X-Fern-SDK-Version": "2.3.6",
310334
"X-Fern-Runtime": core.RUNTIME.type,
311335
"X-Fern-Runtime-Version": core.RUNTIME.version,
312336
},
@@ -328,7 +352,15 @@ export class Collections {
328352
case 404:
329353
throw new Webflow.NotFoundError(_response.error.body);
330354
case 429:
331-
throw new Webflow.TooManyRequestsError(_response.error.body);
355+
throw new Webflow.TooManyRequestsError(
356+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
357+
unrecognizedObjectKeys: "passthrough",
358+
allowUnrecognizedUnionMembers: true,
359+
allowUnrecognizedEnumValues: true,
360+
skipValidation: true,
361+
breadcrumbsPrefix: ["response"],
362+
})
363+
);
332364
case 500:
333365
throw new Webflow.InternalServerError(_response.error.body);
334366
default:
@@ -385,7 +417,7 @@ export class Collections {
385417
Authorization: await this._getAuthorizationHeader(),
386418
"X-Fern-Language": "JavaScript",
387419
"X-Fern-SDK-Name": "webflow-api",
388-
"X-Fern-SDK-Version": "2.3.5",
420+
"X-Fern-SDK-Version": "2.3.6",
389421
"X-Fern-Runtime": core.RUNTIME.type,
390422
"X-Fern-Runtime-Version": core.RUNTIME.version,
391423
},
@@ -407,7 +439,15 @@ export class Collections {
407439
case 404:
408440
throw new Webflow.NotFoundError(_response.error.body);
409441
case 429:
410-
throw new Webflow.TooManyRequestsError(_response.error.body);
442+
throw new Webflow.TooManyRequestsError(
443+
await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
444+
unrecognizedObjectKeys: "passthrough",
445+
allowUnrecognizedUnionMembers: true,
446+
allowUnrecognizedEnumValues: true,
447+
skipValidation: true,
448+
breadcrumbsPrefix: ["response"],
449+
})
450+
);
411451
case 500:
412452
throw new Webflow.InternalServerError(_response.error.body);
413453
default:

0 commit comments

Comments
 (0)