webflow-api 3.1.3 → 3.1.4
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.
- package/.mock/definition/__package__.yml +0 -7
- package/.mock/definition/assets.yml +1 -1
- package/.mock/definition/orders.yml +14 -14
- package/.mock/definition/pages.yml +0 -4
- package/.mock/definition/sites/redirects.yml +8 -8
- package/.mock/definition/sites.yml +3 -3
- package/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.js +8 -8
- package/api/resources/collections/client/Client.js +4 -4
- package/api/resources/collections/resources/fields/client/Client.js +3 -3
- package/api/resources/collections/resources/items/client/Client.js +16 -16
- package/api/resources/components/client/Client.js +5 -5
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.js +7 -7
- package/api/resources/inventory/client/Client.js +2 -2
- package/api/resources/orders/client/Client.js +6 -6
- package/api/resources/pages/client/Client.js +5 -5
- package/api/resources/pages/resources/scripts/client/Client.js +3 -3
- package/api/resources/products/client/Client.js +6 -6
- package/api/resources/scripts/client/Client.js +3 -3
- package/api/resources/sites/client/Client.js +7 -7
- package/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/api/resources/sites/resources/comments/client/Client.js +3 -3
- package/api/resources/sites/resources/plans/client/Client.js +1 -1
- package/api/resources/sites/resources/redirects/client/Client.d.ts +4 -4
- package/api/resources/sites/resources/redirects/client/Client.js +8 -8
- package/api/resources/sites/resources/robotsTxt/client/Client.js +4 -4
- package/api/resources/sites/resources/scripts/client/Client.js +4 -4
- package/api/resources/sites/resources/wellKnown/client/Client.js +2 -2
- package/api/resources/token/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/webhooks/client/Client.js +4 -4
- package/api/resources/workspaces/resources/auditLogs/client/Client.js +1 -1
- package/api/types/Page.d.ts +0 -2
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.js +8 -8
- package/dist/api/resources/collections/client/Client.js +4 -4
- package/dist/api/resources/collections/resources/fields/client/Client.js +3 -3
- package/dist/api/resources/collections/resources/items/client/Client.js +16 -16
- package/dist/api/resources/components/client/Client.js +5 -5
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.js +7 -7
- package/dist/api/resources/inventory/client/Client.js +2 -2
- package/dist/api/resources/orders/client/Client.js +6 -6
- package/dist/api/resources/pages/client/Client.js +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.js +3 -3
- package/dist/api/resources/products/client/Client.js +6 -6
- package/dist/api/resources/scripts/client/Client.js +3 -3
- package/dist/api/resources/sites/client/Client.js +7 -7
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/dist/api/resources/sites/resources/comments/client/Client.js +3 -3
- package/dist/api/resources/sites/resources/plans/client/Client.js +1 -1
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +4 -4
- package/dist/api/resources/sites/resources/redirects/client/Client.js +8 -8
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +4 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +4 -4
- package/dist/api/resources/sites/resources/wellKnown/client/Client.js +2 -2
- package/dist/api/resources/token/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/webhooks/client/Client.js +4 -4
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +1 -1
- package/dist/api/types/Page.d.ts +0 -2
- package/dist/serialization/types/Page.d.ts +0 -1
- package/dist/serialization/types/Page.js +0 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +13 -12
- package/reference.md +4 -4
- package/serialization/types/Page.d.ts +0 -1
- package/serialization/types/Page.js +0 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -88,7 +88,7 @@ class Sites {
|
|
|
88
88
|
const _response = yield core.fetcher({
|
|
89
89
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `workspaces/${encodeURIComponent(workspaceId)}/sites`),
|
|
90
90
|
method: "POST",
|
|
91
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
91
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
body: serializers.SitesCreateRequest.jsonOrThrow(request, {
|
|
@@ -189,7 +189,7 @@ class Sites {
|
|
|
189
189
|
const _response = yield core.fetcher({
|
|
190
190
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, "sites"),
|
|
191
191
|
method: "GET",
|
|
192
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
192
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
requestType: "json",
|
|
195
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -276,7 +276,7 @@ class Sites {
|
|
|
276
276
|
const _response = yield core.fetcher({
|
|
277
277
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}`),
|
|
278
278
|
method: "GET",
|
|
279
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
279
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
280
280
|
contentType: "application/json",
|
|
281
281
|
requestType: "json",
|
|
282
282
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -376,7 +376,7 @@ class Sites {
|
|
|
376
376
|
const _response = yield core.fetcher({
|
|
377
377
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}`),
|
|
378
378
|
method: "DELETE",
|
|
379
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
379
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
380
380
|
contentType: "application/json",
|
|
381
381
|
requestType: "json",
|
|
382
382
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -473,7 +473,7 @@ class Sites {
|
|
|
473
473
|
const _response = yield core.fetcher({
|
|
474
474
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}`),
|
|
475
475
|
method: "PATCH",
|
|
476
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
476
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
477
477
|
contentType: "application/json",
|
|
478
478
|
requestType: "json",
|
|
479
479
|
body: serializers.SitesUpdateRequest.jsonOrThrow(request, {
|
|
@@ -577,7 +577,7 @@ class Sites {
|
|
|
577
577
|
const _response = yield core.fetcher({
|
|
578
578
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/custom_domains`),
|
|
579
579
|
method: "GET",
|
|
580
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
580
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
581
581
|
contentType: "application/json",
|
|
582
582
|
requestType: "json",
|
|
583
583
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -677,7 +677,7 @@ class Sites {
|
|
|
677
677
|
const _response = yield core.fetcher({
|
|
678
678
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/publish`),
|
|
679
679
|
method: "POST",
|
|
680
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
680
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
681
681
|
contentType: "application/json",
|
|
682
682
|
requestType: "json",
|
|
683
683
|
body: serializers.SitesPublishRequest.jsonOrThrow(request, {
|
|
@@ -82,7 +82,7 @@ class ActivityLogs {
|
|
|
82
82
|
const _response = yield core.fetcher({
|
|
83
83
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/activity_logs`),
|
|
84
84
|
method: "GET",
|
|
85
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
85
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
queryParameters: _queryParams,
|
|
88
88
|
requestType: "json",
|
|
@@ -96,7 +96,7 @@ class Comments {
|
|
|
96
96
|
const _response = yield core.fetcher({
|
|
97
97
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/comments`),
|
|
98
98
|
method: "GET",
|
|
99
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
99
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
requestType: "json",
|
|
@@ -219,7 +219,7 @@ class Comments {
|
|
|
219
219
|
const _response = yield core.fetcher({
|
|
220
220
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/comments/${encodeURIComponent(commentThreadId)}`),
|
|
221
221
|
method: "GET",
|
|
222
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
222
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
223
223
|
contentType: "application/json",
|
|
224
224
|
queryParameters: _queryParams,
|
|
225
225
|
requestType: "json",
|
|
@@ -342,7 +342,7 @@ class Comments {
|
|
|
342
342
|
const _response = yield core.fetcher({
|
|
343
343
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/comments/${encodeURIComponent(commentThreadId)}/replies`),
|
|
344
344
|
method: "GET",
|
|
345
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
345
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
346
346
|
contentType: "application/json",
|
|
347
347
|
queryParameters: _queryParams,
|
|
348
348
|
requestType: "json",
|
|
@@ -74,7 +74,7 @@ class Plans {
|
|
|
74
74
|
const _response = yield core.fetcher({
|
|
75
75
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/plan`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
77
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -24,7 +24,7 @@ export declare class Redirects {
|
|
|
24
24
|
protected readonly _options: Redirects.Options;
|
|
25
25
|
constructor(_options: Redirects.Options);
|
|
26
26
|
/**
|
|
27
|
-
* Fetch a list of all
|
|
27
|
+
* Fetch a list of all 301 redirect rules configured for a specific site.
|
|
28
28
|
*
|
|
29
29
|
* Use this endpoint to review, audit, or manage the redirection rules that control how traffic is rerouted on your site.
|
|
30
30
|
*
|
|
@@ -46,7 +46,7 @@ export declare class Redirects {
|
|
|
46
46
|
*/
|
|
47
47
|
list(siteId: string, requestOptions?: Redirects.RequestOptions): Promise<Webflow.Redirects>;
|
|
48
48
|
/**
|
|
49
|
-
* Add a new
|
|
49
|
+
* Add a new 301 redirection rule to a site.
|
|
50
50
|
*
|
|
51
51
|
* This endpoint allows you to define a source path (`fromUrl`) and its corresponding destination path (`toUrl`), which will dictate how traffic is rerouted on your site. This is useful for managing site changes, restructuring URLs, or handling outdated links.
|
|
52
52
|
*
|
|
@@ -73,7 +73,7 @@ export declare class Redirects {
|
|
|
73
73
|
*/
|
|
74
74
|
create(siteId: string, request: Webflow.Redirect, requestOptions?: Redirects.RequestOptions): Promise<Webflow.Redirect>;
|
|
75
75
|
/**
|
|
76
|
-
* Remove a
|
|
76
|
+
* Remove a 301 redirection rule from a site.
|
|
77
77
|
*
|
|
78
78
|
* This is useful for cleaning up outdated or unnecessary redirects, ensuring that your site's routing behavior remains efficient and up-to-date.
|
|
79
79
|
*
|
|
@@ -96,7 +96,7 @@ export declare class Redirects {
|
|
|
96
96
|
*/
|
|
97
97
|
delete(siteId: string, redirectId: string, requestOptions?: Redirects.RequestOptions): Promise<Webflow.Redirects>;
|
|
98
98
|
/**
|
|
99
|
-
* Update a
|
|
99
|
+
* Update a 301 redirection rule from a site.
|
|
100
100
|
*
|
|
101
101
|
* <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>
|
|
102
102
|
*
|
|
@@ -50,7 +50,7 @@ class Redirects {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Fetch a list of all
|
|
53
|
+
* Fetch a list of all 301 redirect rules configured for a specific site.
|
|
54
54
|
*
|
|
55
55
|
* Use this endpoint to review, audit, or manage the redirection rules that control how traffic is rerouted on your site.
|
|
56
56
|
*
|
|
@@ -76,7 +76,7 @@ class Redirects {
|
|
|
76
76
|
const _response = yield core.fetcher({
|
|
77
77
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/redirects`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
79
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -151,7 +151,7 @@ class Redirects {
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
/**
|
|
154
|
-
* Add a new
|
|
154
|
+
* Add a new 301 redirection rule to a site.
|
|
155
155
|
*
|
|
156
156
|
* This endpoint allows you to define a source path (`fromUrl`) and its corresponding destination path (`toUrl`), which will dictate how traffic is rerouted on your site. This is useful for managing site changes, restructuring URLs, or handling outdated links.
|
|
157
157
|
*
|
|
@@ -182,7 +182,7 @@ class Redirects {
|
|
|
182
182
|
const _response = yield core.fetcher({
|
|
183
183
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/redirects`),
|
|
184
184
|
method: "POST",
|
|
185
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
185
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
requestType: "json",
|
|
188
188
|
body: serializers.Redirect.jsonOrThrow(request, {
|
|
@@ -262,7 +262,7 @@ class Redirects {
|
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
|
-
* Remove a
|
|
265
|
+
* Remove a 301 redirection rule from a site.
|
|
266
266
|
*
|
|
267
267
|
* This is useful for cleaning up outdated or unnecessary redirects, ensuring that your site's routing behavior remains efficient and up-to-date.
|
|
268
268
|
*
|
|
@@ -289,7 +289,7 @@ class Redirects {
|
|
|
289
289
|
const _response = yield core.fetcher({
|
|
290
290
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/redirects/${encodeURIComponent(redirectId)}`),
|
|
291
291
|
method: "DELETE",
|
|
292
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
292
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
293
293
|
contentType: "application/json",
|
|
294
294
|
requestType: "json",
|
|
295
295
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -364,7 +364,7 @@ class Redirects {
|
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
|
-
* Update a
|
|
367
|
+
* Update a 301 redirection rule from a site.
|
|
368
368
|
*
|
|
369
369
|
* <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>
|
|
370
370
|
*
|
|
@@ -394,7 +394,7 @@ class Redirects {
|
|
|
394
394
|
const _response = yield core.fetcher({
|
|
395
395
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/redirects/${encodeURIComponent(redirectId)}`),
|
|
396
396
|
method: "PATCH",
|
|
397
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
397
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
398
398
|
contentType: "application/json",
|
|
399
399
|
requestType: "json",
|
|
400
400
|
body: serializers.Redirect.jsonOrThrow(request, {
|
|
@@ -74,7 +74,7 @@ class RobotsTxt {
|
|
|
74
74
|
const _response = yield core.fetcher({
|
|
75
75
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/robots_txt`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
77
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -181,7 +181,7 @@ class RobotsTxt {
|
|
|
181
181
|
const _response = yield core.fetcher({
|
|
182
182
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/robots_txt`),
|
|
183
183
|
method: "PUT",
|
|
184
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
184
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
185
185
|
contentType: "application/json",
|
|
186
186
|
requestType: "json",
|
|
187
187
|
body: serializers.Robots.jsonOrThrow(request, {
|
|
@@ -294,7 +294,7 @@ class RobotsTxt {
|
|
|
294
294
|
const _response = yield core.fetcher({
|
|
295
295
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/robots_txt`),
|
|
296
296
|
method: "DELETE",
|
|
297
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
297
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
298
298
|
contentType: "application/json",
|
|
299
299
|
requestType: "json",
|
|
300
300
|
body: serializers.Robots.jsonOrThrow(request, {
|
|
@@ -406,7 +406,7 @@ class RobotsTxt {
|
|
|
406
406
|
const _response = yield core.fetcher({
|
|
407
407
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/robots_txt`),
|
|
408
408
|
method: "PATCH",
|
|
409
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
409
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
410
410
|
contentType: "application/json",
|
|
411
411
|
requestType: "json",
|
|
412
412
|
body: serializers.Robots.jsonOrThrow(request, {
|
|
@@ -76,7 +76,7 @@ class Scripts {
|
|
|
76
76
|
const _response = yield core.fetcher({
|
|
77
77
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/custom_code`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
79
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -191,7 +191,7 @@ class Scripts {
|
|
|
191
191
|
const _response = yield core.fetcher({
|
|
192
192
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/custom_code`),
|
|
193
193
|
method: "PUT",
|
|
194
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
194
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
requestType: "json",
|
|
197
197
|
body: serializers.ScriptApplyList.jsonOrThrow(request, {
|
|
@@ -293,7 +293,7 @@ class Scripts {
|
|
|
293
293
|
const _response = yield core.fetcher({
|
|
294
294
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/custom_code`),
|
|
295
295
|
method: "DELETE",
|
|
296
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
296
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
297
297
|
contentType: "application/json",
|
|
298
298
|
requestType: "json",
|
|
299
299
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -399,7 +399,7 @@ class Scripts {
|
|
|
399
399
|
const _response = yield core.fetcher({
|
|
400
400
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/custom_code/blocks`),
|
|
401
401
|
method: "GET",
|
|
402
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
402
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
403
403
|
contentType: "application/json",
|
|
404
404
|
queryParameters: _queryParams,
|
|
405
405
|
requestType: "json",
|
|
@@ -87,7 +87,7 @@ class WellKnown {
|
|
|
87
87
|
const _response = yield core.fetcher({
|
|
88
88
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/well_known`),
|
|
89
89
|
method: "PUT",
|
|
90
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
90
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
requestType: "json",
|
|
93
93
|
body: serializers.sites.WellKnownFile.jsonOrThrow(request, {
|
|
@@ -186,7 +186,7 @@ class WellKnown {
|
|
|
186
186
|
const _response = yield core.fetcher({
|
|
187
187
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/well_known`),
|
|
188
188
|
method: "DELETE",
|
|
189
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
189
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
190
190
|
contentType: "application/json",
|
|
191
191
|
requestType: "json",
|
|
192
192
|
body: serializers.sites.WellKnownDeleteRequest.jsonOrThrow(request, {
|
|
@@ -68,7 +68,7 @@ class Token {
|
|
|
68
68
|
const _response = yield core.fetcher({
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, "token/authorized_by"),
|
|
70
70
|
method: "GET",
|
|
71
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
71
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
72
72
|
contentType: "application/json",
|
|
73
73
|
requestType: "json",
|
|
74
74
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -136,7 +136,7 @@ class Token {
|
|
|
136
136
|
const _response = yield core.fetcher({
|
|
137
137
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, "token/introspect"),
|
|
138
138
|
method: "GET",
|
|
139
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
139
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
140
140
|
contentType: "application/json",
|
|
141
141
|
requestType: "json",
|
|
142
142
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -85,7 +85,7 @@ class Users {
|
|
|
85
85
|
const _response = yield core.fetcher({
|
|
86
86
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/users`),
|
|
87
87
|
method: "GET",
|
|
88
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
88
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
91
91
|
requestType: "json",
|
|
@@ -187,7 +187,7 @@ class Users {
|
|
|
187
187
|
const _response = yield core.fetcher({
|
|
188
188
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/users/${encodeURIComponent(userId)}`),
|
|
189
189
|
method: "GET",
|
|
190
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
190
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
191
191
|
contentType: "application/json",
|
|
192
192
|
requestType: "json",
|
|
193
193
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -288,7 +288,7 @@ class Users {
|
|
|
288
288
|
const _response = yield core.fetcher({
|
|
289
289
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/users/${encodeURIComponent(userId)}`),
|
|
290
290
|
method: "DELETE",
|
|
291
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
291
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
292
292
|
contentType: "application/json",
|
|
293
293
|
requestType: "json",
|
|
294
294
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -394,7 +394,7 @@ class Users {
|
|
|
394
394
|
const _response = yield core.fetcher({
|
|
395
395
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/users/${encodeURIComponent(userId)}`),
|
|
396
396
|
method: "PATCH",
|
|
397
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
397
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
398
398
|
contentType: "application/json",
|
|
399
399
|
requestType: "json",
|
|
400
400
|
body: serializers.UsersUpdateRequest.jsonOrThrow(request, {
|
|
@@ -506,7 +506,7 @@ class Users {
|
|
|
506
506
|
const _response = yield core.fetcher({
|
|
507
507
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/users/invite`),
|
|
508
508
|
method: "POST",
|
|
509
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
509
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
510
510
|
contentType: "application/json",
|
|
511
511
|
requestType: "json",
|
|
512
512
|
body: serializers.UsersInviteRequest.jsonOrThrow(request, {
|
|
@@ -75,7 +75,7 @@ class Webhooks {
|
|
|
75
75
|
const _response = yield core.fetcher({
|
|
76
76
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/webhooks`),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
78
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -184,7 +184,7 @@ class Webhooks {
|
|
|
184
184
|
const _response = yield core.fetcher({
|
|
185
185
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `sites/${encodeURIComponent(siteId)}/webhooks`),
|
|
186
186
|
method: "POST",
|
|
187
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
187
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
body: serializers.Webhook.jsonOrThrow(request, {
|
|
@@ -286,7 +286,7 @@ class Webhooks {
|
|
|
286
286
|
const _response = yield core.fetcher({
|
|
287
287
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
288
288
|
method: "GET",
|
|
289
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
289
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
290
290
|
contentType: "application/json",
|
|
291
291
|
requestType: "json",
|
|
292
292
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -383,7 +383,7 @@ class Webhooks {
|
|
|
383
383
|
const _response = yield core.fetcher({
|
|
384
384
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
385
385
|
method: "DELETE",
|
|
386
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
386
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
387
387
|
contentType: "application/json",
|
|
388
388
|
requestType: "json",
|
|
389
389
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -98,7 +98,7 @@ class AuditLogs {
|
|
|
98
98
|
const _response = yield core.fetcher({
|
|
99
99
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `workspaces/${encodeURIComponent(workspaceIdOrSlug)}/audit_logs`),
|
|
100
100
|
method: "GET",
|
|
101
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
101
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.4", "User-Agent": "webflow-api/3.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
queryParameters: _queryParams,
|
|
104
104
|
requestType: "json",
|
package/dist/api/types/Page.d.ts
CHANGED
|
@@ -30,8 +30,6 @@ export interface Page {
|
|
|
30
30
|
canBranch?: boolean;
|
|
31
31
|
/** Indicates whether the Page is a Branch of another Page [Page Branching](https://university.webflow.com/lesson/page-branching) */
|
|
32
32
|
isBranch?: boolean;
|
|
33
|
-
/** Indicates whether the Page is restricted by [Memberships Controls](https://university.webflow.com/lesson/webflow-memberships-overview#how-to-manage-page-restrictions) */
|
|
34
|
-
isMembersOnly?: boolean;
|
|
35
33
|
/** SEO-related fields for the Page */
|
|
36
34
|
seo?: Webflow.PageSeo;
|
|
37
35
|
/** Open Graph fields for the Page */
|
|
@@ -43,7 +43,6 @@ exports.Page = core.serialization.object({
|
|
|
43
43
|
draft: core.serialization.boolean().optional(),
|
|
44
44
|
canBranch: core.serialization.boolean().optional(),
|
|
45
45
|
isBranch: core.serialization.boolean().optional(),
|
|
46
|
-
isMembersOnly: core.serialization.boolean().optional(),
|
|
47
46
|
seo: PageSeo_1.PageSeo.optional(),
|
|
48
47
|
openGraph: PageOpenGraph_1.PageOpenGraph.optional(),
|
|
49
48
|
localeId: core.serialization.string().optional(),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
|
1
|
+
export declare const SDK_VERSION = "3.1.4";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webflow-api",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/webflow/js-webflow-api",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -12,30 +12,30 @@
|
|
|
12
12
|
"test": "jest"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"
|
|
15
|
+
"crypto-browserify": "^3.12.1",
|
|
16
16
|
"form-data": "^4.0.0",
|
|
17
17
|
"formdata-node": "^6.0.3",
|
|
18
|
+
"js-base64": "3.7.2",
|
|
18
19
|
"node-fetch": "2.7.0",
|
|
19
20
|
"qs": "6.11.2",
|
|
20
21
|
"readable-stream": "^4.5.2",
|
|
21
|
-
"
|
|
22
|
-
"crypto-browserify": "^3.12.0"
|
|
22
|
+
"url-join": "4.0.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/
|
|
26
|
-
"@types/
|
|
25
|
+
"@types/jest": "29.5.5",
|
|
26
|
+
"@types/node": "17.0.33",
|
|
27
27
|
"@types/node-fetch": "2.6.9",
|
|
28
|
+
"@types/qs": "6.9.8",
|
|
28
29
|
"@types/readable-stream": "^4.0.15",
|
|
29
|
-
"
|
|
30
|
-
"ts-loader": "^9.3.1",
|
|
30
|
+
"@types/url-join": "4.0.1",
|
|
31
31
|
"jest": "29.7.0",
|
|
32
|
-
"@types/jest": "29.5.5",
|
|
33
|
-
"ts-jest": "29.1.1",
|
|
34
32
|
"jest-environment-jsdom": "29.7.0",
|
|
35
|
-
"
|
|
33
|
+
"jest-fetch-mock": "^3.0.3",
|
|
36
34
|
"prettier": "2.7.1",
|
|
35
|
+
"ts-jest": "29.1.1",
|
|
36
|
+
"ts-loader": "^9.3.1",
|
|
37
37
|
"typescript": "4.6.4",
|
|
38
|
-
"
|
|
38
|
+
"webpack": "^5.94.0"
|
|
39
39
|
},
|
|
40
40
|
"browser": {
|
|
41
41
|
"fs": false,
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"crypto": false
|
|
45
45
|
},
|
|
46
46
|
"resolutions": {
|
|
47
|
+
"pbkdf2": "^3.1.3",
|
|
47
48
|
"@types/babel__traverse": "7.20.6"
|
|
48
49
|
}
|
|
49
50
|
}
|