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.
- package/api/errors/TooManyRequestsError.d.ts +2 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accessGroups/client/Client.js +8 -2
- package/api/resources/assets/client/Client.js +64 -16
- package/api/resources/collections/client/Client.js +40 -10
- package/api/resources/collections/resources/fields/client/Client.js +16 -4
- package/api/resources/collections/resources/items/client/Client.d.ts +2 -2
- package/api/resources/collections/resources/items/client/Client.js +98 -26
- package/api/resources/ecommerce/client/Client.js +8 -2
- package/api/resources/forms/client/Client.d.ts +2 -1
- package/api/resources/forms/client/Client.js +51 -11
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/inventory/client/Client.js +16 -4
- package/api/resources/orders/client/Client.js +48 -12
- package/api/resources/pages/client/Client.d.ts +5 -1
- package/api/resources/pages/client/Client.js +45 -11
- package/api/resources/pages/resources/scripts/client/Client.js +24 -6
- package/api/resources/products/client/Client.js +48 -12
- package/api/resources/scripts/client/Client.js +24 -6
- package/api/resources/sites/client/Client.d.ts +1 -3
- package/api/resources/sites/client/Client.js +33 -15
- package/api/resources/sites/resources/activityLogs/client/Client.js +8 -2
- package/api/resources/sites/resources/scripts/client/Client.js +32 -8
- package/api/resources/token/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +40 -10
- package/api/resources/webhooks/client/Client.d.ts +8 -3
- package/api/resources/webhooks/client/Client.js +40 -11
- package/api/resources/webhooks/client/index.d.ts +1 -1
- package/api/resources/webhooks/client/index.js +0 -15
- package/api/types/Asset.d.ts +10 -8
- package/api/types/Form.d.ts +2 -0
- package/api/types/FormSubmissionList.d.ts +1 -1
- package/api/types/OauthScope.d.ts +9 -1
- package/api/types/OauthScope.js +2 -0
- package/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/api/types/Webhook.d.ts +5 -5
- package/api/types/WebhookFilter.d.ts +10 -0
- package/{dist/api/resources/webhooks/client/requests/index.js → api/types/WebhookFilter.js} +3 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/errors/TooManyRequestsError.d.ts +2 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accessGroups/client/Client.js +8 -2
- package/dist/api/resources/assets/client/Client.js +64 -16
- package/dist/api/resources/collections/client/Client.js +40 -10
- package/dist/api/resources/collections/resources/fields/client/Client.js +16 -4
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/Client.js +98 -26
- package/dist/api/resources/ecommerce/client/Client.js +8 -2
- package/dist/api/resources/forms/client/Client.d.ts +2 -1
- package/dist/api/resources/forms/client/Client.js +51 -11
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/{api/resources/webhooks/client/requests/index.js → dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.js} +3 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/inventory/client/Client.js +16 -4
- package/dist/api/resources/orders/client/Client.js +48 -12
- package/dist/api/resources/pages/client/Client.d.ts +5 -1
- package/dist/api/resources/pages/client/Client.js +45 -11
- package/dist/api/resources/pages/resources/scripts/client/Client.js +24 -6
- package/dist/api/resources/products/client/Client.js +48 -12
- package/dist/api/resources/scripts/client/Client.js +24 -6
- package/dist/api/resources/sites/client/Client.d.ts +1 -3
- package/dist/api/resources/sites/client/Client.js +33 -15
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +8 -2
- package/dist/api/resources/sites/resources/scripts/client/Client.js +32 -8
- package/dist/api/resources/token/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +40 -10
- package/dist/api/resources/webhooks/client/Client.d.ts +8 -3
- package/dist/api/resources/webhooks/client/Client.js +40 -11
- package/dist/api/resources/webhooks/client/index.d.ts +1 -1
- package/dist/api/resources/webhooks/client/index.js +0 -15
- package/dist/api/types/Asset.d.ts +10 -8
- package/dist/api/types/Form.d.ts +2 -0
- package/dist/api/types/FormSubmissionList.d.ts +1 -1
- package/dist/api/types/OauthScope.d.ts +9 -1
- package/dist/api/types/OauthScope.js +2 -0
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/dist/api/types/TooManyRequestsErrorBody.js +5 -0
- package/dist/api/types/Webhook.d.ts +5 -5
- package/dist/api/types/WebhookFilter.d.ts +10 -0
- package/dist/api/types/WebhookFilter.js +5 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/types/Asset.d.ts +5 -4
- package/dist/serialization/types/Asset.js +5 -4
- package/dist/serialization/types/Form.d.ts +1 -0
- package/dist/serialization/types/Form.js +1 -0
- package/dist/serialization/types/FormSubmissionList.d.ts +1 -1
- package/dist/serialization/types/FormSubmissionList.js +1 -1
- package/dist/serialization/types/OauthScope.d.ts +1 -1
- package/dist/serialization/types/OauthScope.js +2 -0
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/{serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js → dist/serialization/types/TooManyRequestsErrorBody.js} +7 -7
- package/dist/serialization/types/Webhook.d.ts +4 -3
- package/dist/serialization/types/Webhook.js +4 -3
- package/dist/serialization/types/WebhookFilter.d.ts +12 -0
- package/dist/serialization/{resources/webhooks/client/requests/WebhooksCreateRequest.js → types/WebhookFilter.js} +4 -7
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/wrapper/ItemsClient.js +7 -1
- package/package.json +1 -1
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/types/Asset.d.ts +5 -4
- package/serialization/types/Asset.js +5 -4
- package/serialization/types/Form.d.ts +1 -0
- package/serialization/types/Form.js +1 -0
- package/serialization/types/FormSubmissionList.d.ts +1 -1
- package/serialization/types/FormSubmissionList.js +1 -1
- package/serialization/types/OauthScope.d.ts +1 -1
- package/serialization/types/OauthScope.js +2 -0
- package/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/serialization/types/TooManyRequestsErrorBody.js +36 -0
- package/serialization/types/Webhook.d.ts +4 -3
- package/serialization/types/Webhook.js +4 -3
- package/serialization/types/WebhookFilter.d.ts +12 -0
- package/serialization/types/WebhookFilter.js +33 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/wrapper/ItemsClient.js +7 -1
- package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/index.js +0 -17
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/dist/serialization/resources/webhooks/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/index.js +0 -17
- package/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/index.js +0 -17
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/serialization/resources/webhooks/index.d.ts +0 -1
- package/serialization/resources/webhooks/index.js +0 -17
- /package/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
- /package/{dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.js → api/types/TooManyRequestsErrorBody.js} +0 -0
|
@@ -56,11 +56,9 @@ class Sites {
|
|
|
56
56
|
*
|
|
57
57
|
* @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
58
|
*
|
|
59
|
-
* @throws {@link Webflow.BadRequestError}
|
|
60
59
|
* @throws {@link Webflow.UnauthorizedError}
|
|
61
60
|
* @throws {@link Webflow.NotFoundError}
|
|
62
61
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
63
|
-
* @throws {@link Webflow.InternalServerError}
|
|
64
62
|
*
|
|
65
63
|
* @example
|
|
66
64
|
* await client.sites.list()
|
|
@@ -75,7 +73,7 @@ class Sites {
|
|
|
75
73
|
Authorization: yield this._getAuthorizationHeader(),
|
|
76
74
|
"X-Fern-Language": "JavaScript",
|
|
77
75
|
"X-Fern-SDK-Name": "webflow-api",
|
|
78
|
-
"X-Fern-SDK-Version": "2.3.
|
|
76
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
79
77
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
78
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
79
|
},
|
|
@@ -95,16 +93,18 @@ class Sites {
|
|
|
95
93
|
}
|
|
96
94
|
if (_response.error.reason === "status-code") {
|
|
97
95
|
switch (_response.error.statusCode) {
|
|
98
|
-
case 400:
|
|
99
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
100
96
|
case 401:
|
|
101
97
|
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
102
98
|
case 404:
|
|
103
99
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
104
100
|
case 429:
|
|
105
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
102
|
+
unrecognizedObjectKeys: "passthrough",
|
|
103
|
+
allowUnrecognizedUnionMembers: true,
|
|
104
|
+
allowUnrecognizedEnumValues: true,
|
|
105
|
+
skipValidation: true,
|
|
106
|
+
breadcrumbsPrefix: ["response"],
|
|
107
|
+
}));
|
|
108
108
|
default:
|
|
109
109
|
throw new errors.WebflowError({
|
|
110
110
|
statusCode: _response.error.statusCode,
|
|
@@ -152,7 +152,7 @@ class Sites {
|
|
|
152
152
|
Authorization: yield this._getAuthorizationHeader(),
|
|
153
153
|
"X-Fern-Language": "JavaScript",
|
|
154
154
|
"X-Fern-SDK-Name": "webflow-api",
|
|
155
|
-
"X-Fern-SDK-Version": "2.3.
|
|
155
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
156
156
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
157
157
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
158
158
|
},
|
|
@@ -179,7 +179,13 @@ class Sites {
|
|
|
179
179
|
case 404:
|
|
180
180
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
181
181
|
case 429:
|
|
182
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
182
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
183
|
+
unrecognizedObjectKeys: "passthrough",
|
|
184
|
+
allowUnrecognizedUnionMembers: true,
|
|
185
|
+
allowUnrecognizedEnumValues: true,
|
|
186
|
+
skipValidation: true,
|
|
187
|
+
breadcrumbsPrefix: ["response"],
|
|
188
|
+
}));
|
|
183
189
|
case 500:
|
|
184
190
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
185
191
|
default:
|
|
@@ -229,7 +235,7 @@ class Sites {
|
|
|
229
235
|
Authorization: yield this._getAuthorizationHeader(),
|
|
230
236
|
"X-Fern-Language": "JavaScript",
|
|
231
237
|
"X-Fern-SDK-Name": "webflow-api",
|
|
232
|
-
"X-Fern-SDK-Version": "2.3.
|
|
238
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
233
239
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
234
240
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
235
241
|
},
|
|
@@ -256,7 +262,13 @@ class Sites {
|
|
|
256
262
|
case 404:
|
|
257
263
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
258
264
|
case 429:
|
|
259
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
265
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
266
|
+
unrecognizedObjectKeys: "passthrough",
|
|
267
|
+
allowUnrecognizedUnionMembers: true,
|
|
268
|
+
allowUnrecognizedEnumValues: true,
|
|
269
|
+
skipValidation: true,
|
|
270
|
+
breadcrumbsPrefix: ["response"],
|
|
271
|
+
}));
|
|
260
272
|
case 500:
|
|
261
273
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
262
274
|
default:
|
|
@@ -282,7 +294,7 @@ class Sites {
|
|
|
282
294
|
});
|
|
283
295
|
}
|
|
284
296
|
/**
|
|
285
|
-
* Publish a site to one more more domains. </br></br> Required scope | `sites:write`
|
|
297
|
+
* Publish a site to one more more domains. </br></br> Required scope | `sites:write` <blockquote class="callout callout_info" theme="📘"><h2 class="callout-heading"><span class="callout-icon">📘</span><p>Endpoint-specific rate limit</p></h2><p>This endpoint has a limit of one successful publish queue per minute.</p></blockquote>
|
|
286
298
|
*
|
|
287
299
|
* @param {string} siteId - Unique identifier for a Site
|
|
288
300
|
* @param {Webflow.SitesPublishRequest} request
|
|
@@ -307,7 +319,7 @@ class Sites {
|
|
|
307
319
|
Authorization: yield this._getAuthorizationHeader(),
|
|
308
320
|
"X-Fern-Language": "JavaScript",
|
|
309
321
|
"X-Fern-SDK-Name": "webflow-api",
|
|
310
|
-
"X-Fern-SDK-Version": "2.3.
|
|
322
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
311
323
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
312
324
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
313
325
|
},
|
|
@@ -331,7 +343,13 @@ class Sites {
|
|
|
331
343
|
case 404:
|
|
332
344
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
333
345
|
case 429:
|
|
334
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
346
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
347
|
+
unrecognizedObjectKeys: "passthrough",
|
|
348
|
+
allowUnrecognizedUnionMembers: true,
|
|
349
|
+
allowUnrecognizedEnumValues: true,
|
|
350
|
+
skipValidation: true,
|
|
351
|
+
breadcrumbsPrefix: ["response"],
|
|
352
|
+
}));
|
|
335
353
|
default:
|
|
336
354
|
throw new errors.WebflowError({
|
|
337
355
|
statusCode: _response.error.statusCode,
|
|
@@ -82,7 +82,7 @@ class ActivityLogs {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "2.3.
|
|
85
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -108,7 +108,13 @@ class ActivityLogs {
|
|
|
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:
|
|
@@ -74,7 +74,7 @@ class Scripts {
|
|
|
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.
|
|
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 Scripts {
|
|
|
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:
|
|
@@ -165,7 +171,7 @@ class Scripts {
|
|
|
165
171
|
Authorization: yield this._getAuthorizationHeader(),
|
|
166
172
|
"X-Fern-Language": "JavaScript",
|
|
167
173
|
"X-Fern-SDK-Name": "webflow-api",
|
|
168
|
-
"X-Fern-SDK-Version": "2.3.
|
|
174
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
169
175
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
170
176
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
171
177
|
},
|
|
@@ -193,7 +199,13 @@ class Scripts {
|
|
|
193
199
|
case 404:
|
|
194
200
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
195
201
|
case 429:
|
|
196
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
202
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
203
|
+
unrecognizedObjectKeys: "passthrough",
|
|
204
|
+
allowUnrecognizedUnionMembers: true,
|
|
205
|
+
allowUnrecognizedEnumValues: true,
|
|
206
|
+
skipValidation: true,
|
|
207
|
+
breadcrumbsPrefix: ["response"],
|
|
208
|
+
}));
|
|
197
209
|
case 500:
|
|
198
210
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
199
211
|
default:
|
|
@@ -243,7 +255,7 @@ class Scripts {
|
|
|
243
255
|
Authorization: yield this._getAuthorizationHeader(),
|
|
244
256
|
"X-Fern-Language": "JavaScript",
|
|
245
257
|
"X-Fern-SDK-Name": "webflow-api",
|
|
246
|
-
"X-Fern-SDK-Version": "2.3.
|
|
258
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
247
259
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
248
260
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
249
261
|
},
|
|
@@ -264,7 +276,13 @@ class Scripts {
|
|
|
264
276
|
case 404:
|
|
265
277
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
266
278
|
case 429:
|
|
267
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
279
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
280
|
+
unrecognizedObjectKeys: "passthrough",
|
|
281
|
+
allowUnrecognizedUnionMembers: true,
|
|
282
|
+
allowUnrecognizedEnumValues: true,
|
|
283
|
+
skipValidation: true,
|
|
284
|
+
breadcrumbsPrefix: ["response"],
|
|
285
|
+
}));
|
|
268
286
|
case 500:
|
|
269
287
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
270
288
|
default:
|
|
@@ -323,7 +341,7 @@ class Scripts {
|
|
|
323
341
|
Authorization: yield this._getAuthorizationHeader(),
|
|
324
342
|
"X-Fern-Language": "JavaScript",
|
|
325
343
|
"X-Fern-SDK-Name": "webflow-api",
|
|
326
|
-
"X-Fern-SDK-Version": "2.3.
|
|
344
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
327
345
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
328
346
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
329
347
|
},
|
|
@@ -351,7 +369,13 @@ class Scripts {
|
|
|
351
369
|
case 404:
|
|
352
370
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
353
371
|
case 429:
|
|
354
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
372
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
373
|
+
unrecognizedObjectKeys: "passthrough",
|
|
374
|
+
allowUnrecognizedUnionMembers: true,
|
|
375
|
+
allowUnrecognizedEnumValues: true,
|
|
376
|
+
skipValidation: true,
|
|
377
|
+
breadcrumbsPrefix: ["response"],
|
|
378
|
+
}));
|
|
355
379
|
case 500:
|
|
356
380
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
357
381
|
default:
|
|
@@ -70,7 +70,7 @@ class Token {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "2.3.
|
|
73
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -136,7 +136,7 @@ class Token {
|
|
|
136
136
|
Authorization: yield this._getAuthorizationHeader(),
|
|
137
137
|
"X-Fern-Language": "JavaScript",
|
|
138
138
|
"X-Fern-SDK-Name": "webflow-api",
|
|
139
|
-
"X-Fern-SDK-Version": "2.3.
|
|
139
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
140
140
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
141
141
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
142
142
|
},
|
|
@@ -87,7 +87,7 @@ class Users {
|
|
|
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.
|
|
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 Users {
|
|
|
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:
|
|
@@ -169,7 +175,7 @@ class Users {
|
|
|
169
175
|
Authorization: yield this._getAuthorizationHeader(),
|
|
170
176
|
"X-Fern-Language": "JavaScript",
|
|
171
177
|
"X-Fern-SDK-Name": "webflow-api",
|
|
172
|
-
"X-Fern-SDK-Version": "2.3.
|
|
178
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
173
179
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
180
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
175
181
|
},
|
|
@@ -198,7 +204,13 @@ class Users {
|
|
|
198
204
|
case 404:
|
|
199
205
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
200
206
|
case 429:
|
|
201
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
207
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
208
|
+
unrecognizedObjectKeys: "passthrough",
|
|
209
|
+
allowUnrecognizedUnionMembers: true,
|
|
210
|
+
allowUnrecognizedEnumValues: true,
|
|
211
|
+
skipValidation: true,
|
|
212
|
+
breadcrumbsPrefix: ["response"],
|
|
213
|
+
}));
|
|
202
214
|
case 500:
|
|
203
215
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
204
216
|
default:
|
|
@@ -250,7 +262,7 @@ class Users {
|
|
|
250
262
|
Authorization: yield this._getAuthorizationHeader(),
|
|
251
263
|
"X-Fern-Language": "JavaScript",
|
|
252
264
|
"X-Fern-SDK-Name": "webflow-api",
|
|
253
|
-
"X-Fern-SDK-Version": "2.3.
|
|
265
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
254
266
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
267
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
268
|
},
|
|
@@ -273,7 +285,13 @@ class Users {
|
|
|
273
285
|
case 404:
|
|
274
286
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
275
287
|
case 429:
|
|
276
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
288
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
289
|
+
unrecognizedObjectKeys: "passthrough",
|
|
290
|
+
allowUnrecognizedUnionMembers: true,
|
|
291
|
+
allowUnrecognizedEnumValues: true,
|
|
292
|
+
skipValidation: true,
|
|
293
|
+
breadcrumbsPrefix: ["response"],
|
|
294
|
+
}));
|
|
277
295
|
case 500:
|
|
278
296
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
279
297
|
default:
|
|
@@ -335,7 +353,7 @@ class Users {
|
|
|
335
353
|
Authorization: yield this._getAuthorizationHeader(),
|
|
336
354
|
"X-Fern-Language": "JavaScript",
|
|
337
355
|
"X-Fern-SDK-Name": "webflow-api",
|
|
338
|
-
"X-Fern-SDK-Version": "2.3.
|
|
356
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
339
357
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
340
358
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
341
359
|
},
|
|
@@ -365,7 +383,13 @@ class Users {
|
|
|
365
383
|
case 404:
|
|
366
384
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
367
385
|
case 429:
|
|
368
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
386
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
387
|
+
unrecognizedObjectKeys: "passthrough",
|
|
388
|
+
allowUnrecognizedUnionMembers: true,
|
|
389
|
+
allowUnrecognizedEnumValues: true,
|
|
390
|
+
skipValidation: true,
|
|
391
|
+
breadcrumbsPrefix: ["response"],
|
|
392
|
+
}));
|
|
369
393
|
case 500:
|
|
370
394
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
371
395
|
default:
|
|
@@ -421,7 +445,7 @@ class Users {
|
|
|
421
445
|
Authorization: yield this._getAuthorizationHeader(),
|
|
422
446
|
"X-Fern-Language": "JavaScript",
|
|
423
447
|
"X-Fern-SDK-Name": "webflow-api",
|
|
424
|
-
"X-Fern-SDK-Version": "2.3.
|
|
448
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
425
449
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
426
450
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
427
451
|
},
|
|
@@ -453,7 +477,13 @@ class Users {
|
|
|
453
477
|
case 409:
|
|
454
478
|
throw new Webflow.ConflictError(_response.error.body);
|
|
455
479
|
case 429:
|
|
456
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
480
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
481
|
+
unrecognizedObjectKeys: "passthrough",
|
|
482
|
+
allowUnrecognizedUnionMembers: true,
|
|
483
|
+
allowUnrecognizedEnumValues: true,
|
|
484
|
+
skipValidation: true,
|
|
485
|
+
breadcrumbsPrefix: ["response"],
|
|
486
|
+
}));
|
|
457
487
|
case 500:
|
|
458
488
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
459
489
|
default:
|
|
@@ -41,7 +41,7 @@ export declare class Webhooks {
|
|
|
41
41
|
* Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site. <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote> Required scope | `sites:write`
|
|
42
42
|
*
|
|
43
43
|
* @param {string} siteId - Unique identifier for a Site
|
|
44
|
-
* @param {Webflow.
|
|
44
|
+
* @param {Webflow.Webhook} request
|
|
45
45
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -52,11 +52,16 @@ export declare class Webhooks {
|
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* await client.webhooks.create("site_id", {
|
|
55
|
+
* id: "582266e0cd48de0f0e3c6d8b",
|
|
55
56
|
* triggerType: Webflow.TriggerType.FormSubmission,
|
|
56
|
-
* url: "https://
|
|
57
|
+
* url: "https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f",
|
|
58
|
+
* workspaceId: "4f4e46fd476ea8c507000001",
|
|
59
|
+
* siteId: "562ac0395358780a1f5e6fbd",
|
|
60
|
+
* lastTriggered: new Date("2023-02-08T23:59:28.000Z"),
|
|
61
|
+
* createdOn: new Date("2022-11-08T23:59:28.000Z")
|
|
57
62
|
* })
|
|
58
63
|
*/
|
|
59
|
-
create(siteId: string, request: Webflow.
|
|
64
|
+
create(siteId: string, request: Webflow.Webhook, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.Webhook>;
|
|
60
65
|
/**
|
|
61
66
|
* Get a specific Webhook instance
|
|
62
67
|
*
|
|
@@ -74,7 +74,7 @@ class Webhooks {
|
|
|
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.
|
|
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 Webhooks {
|
|
|
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:
|
|
@@ -130,7 +136,7 @@ class Webhooks {
|
|
|
130
136
|
* Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site. <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote> Required scope | `sites:write`
|
|
131
137
|
*
|
|
132
138
|
* @param {string} siteId - Unique identifier for a Site
|
|
133
|
-
* @param {Webflow.
|
|
139
|
+
* @param {Webflow.Webhook} request
|
|
134
140
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
141
|
*
|
|
136
142
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -141,8 +147,13 @@ class Webhooks {
|
|
|
141
147
|
*
|
|
142
148
|
* @example
|
|
143
149
|
* await client.webhooks.create("site_id", {
|
|
150
|
+
* id: "582266e0cd48de0f0e3c6d8b",
|
|
144
151
|
* triggerType: Webflow.TriggerType.FormSubmission,
|
|
145
|
-
* url: "https://
|
|
152
|
+
* url: "https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f",
|
|
153
|
+
* workspaceId: "4f4e46fd476ea8c507000001",
|
|
154
|
+
* siteId: "562ac0395358780a1f5e6fbd",
|
|
155
|
+
* lastTriggered: new Date("2023-02-08T23:59:28.000Z"),
|
|
156
|
+
* createdOn: new Date("2022-11-08T23:59:28.000Z")
|
|
146
157
|
* })
|
|
147
158
|
*/
|
|
148
159
|
create(siteId, request, requestOptions) {
|
|
@@ -155,12 +166,12 @@ class Webhooks {
|
|
|
155
166
|
Authorization: yield this._getAuthorizationHeader(),
|
|
156
167
|
"X-Fern-Language": "JavaScript",
|
|
157
168
|
"X-Fern-SDK-Name": "webflow-api",
|
|
158
|
-
"X-Fern-SDK-Version": "2.3.
|
|
169
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
159
170
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
160
171
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
161
172
|
},
|
|
162
173
|
contentType: "application/json",
|
|
163
|
-
body: yield serializers.
|
|
174
|
+
body: yield serializers.Webhook.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
164
175
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
165
176
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
166
177
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -183,7 +194,13 @@ class Webhooks {
|
|
|
183
194
|
case 404:
|
|
184
195
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
185
196
|
case 429:
|
|
186
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
197
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
198
|
+
unrecognizedObjectKeys: "passthrough",
|
|
199
|
+
allowUnrecognizedUnionMembers: true,
|
|
200
|
+
allowUnrecognizedEnumValues: true,
|
|
201
|
+
skipValidation: true,
|
|
202
|
+
breadcrumbsPrefix: ["response"],
|
|
203
|
+
}));
|
|
187
204
|
case 500:
|
|
188
205
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
189
206
|
default:
|
|
@@ -233,7 +250,7 @@ class Webhooks {
|
|
|
233
250
|
Authorization: yield this._getAuthorizationHeader(),
|
|
234
251
|
"X-Fern-Language": "JavaScript",
|
|
235
252
|
"X-Fern-SDK-Name": "webflow-api",
|
|
236
|
-
"X-Fern-SDK-Version": "2.3.
|
|
253
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
237
254
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
255
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
239
256
|
},
|
|
@@ -260,7 +277,13 @@ class Webhooks {
|
|
|
260
277
|
case 404:
|
|
261
278
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
262
279
|
case 429:
|
|
263
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
280
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
281
|
+
unrecognizedObjectKeys: "passthrough",
|
|
282
|
+
allowUnrecognizedUnionMembers: true,
|
|
283
|
+
allowUnrecognizedEnumValues: true,
|
|
284
|
+
skipValidation: true,
|
|
285
|
+
breadcrumbsPrefix: ["response"],
|
|
286
|
+
}));
|
|
264
287
|
case 500:
|
|
265
288
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
266
289
|
default:
|
|
@@ -310,7 +333,7 @@ class Webhooks {
|
|
|
310
333
|
Authorization: yield this._getAuthorizationHeader(),
|
|
311
334
|
"X-Fern-Language": "JavaScript",
|
|
312
335
|
"X-Fern-SDK-Name": "webflow-api",
|
|
313
|
-
"X-Fern-SDK-Version": "2.3.
|
|
336
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
314
337
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
315
338
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
316
339
|
},
|
|
@@ -331,7 +354,13 @@ class Webhooks {
|
|
|
331
354
|
case 404:
|
|
332
355
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
333
356
|
case 429:
|
|
334
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
357
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
358
|
+
unrecognizedObjectKeys: "passthrough",
|
|
359
|
+
allowUnrecognizedUnionMembers: true,
|
|
360
|
+
allowUnrecognizedEnumValues: true,
|
|
361
|
+
skipValidation: true,
|
|
362
|
+
breadcrumbsPrefix: ["response"],
|
|
363
|
+
}));
|
|
335
364
|
case 500:
|
|
336
365
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
337
366
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
package/api/types/Asset.d.ts
CHANGED
|
@@ -5,21 +5,23 @@ import * as Webflow from "../index";
|
|
|
5
5
|
export interface Asset {
|
|
6
6
|
/** Unique identifier for this asset */
|
|
7
7
|
id?: string;
|
|
8
|
-
/** Original file name at the time of upload */
|
|
9
|
-
originalFileName?: string;
|
|
10
|
-
/** Display name of the asset */
|
|
11
|
-
displayName?: string;
|
|
12
8
|
/** File format type */
|
|
13
9
|
contentType?: string;
|
|
14
10
|
/** size in bytes */
|
|
15
11
|
size?: number;
|
|
16
12
|
/** Unique identifier for the site that hosts this asset */
|
|
17
13
|
siteId?: string;
|
|
18
|
-
/** Date the asset metadata was created */
|
|
19
|
-
createdOn?: Date;
|
|
20
|
-
/** Date the asset metadata was last updated */
|
|
21
|
-
lastUpdated?: Date;
|
|
22
14
|
/** Link to the asset */
|
|
23
15
|
hostedUrl?: string;
|
|
16
|
+
/** Original file name at the time of upload */
|
|
17
|
+
originalFileName?: string;
|
|
18
|
+
/** Display name of the asset */
|
|
19
|
+
displayName?: string;
|
|
20
|
+
/** Date the asset metadata was last updated */
|
|
21
|
+
lastUpdated?: Date;
|
|
22
|
+
/** Date the asset metadata was created */
|
|
23
|
+
createdOn?: Date;
|
|
24
24
|
variants?: Webflow.AssetVariant[];
|
|
25
|
+
/** The visual description of the asset */
|
|
26
|
+
altText?: string;
|
|
25
27
|
}
|
package/api/types/Form.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export interface Form {
|
|
|
26
26
|
pageId?: string;
|
|
27
27
|
/** The user-visible name of the Page where the Form is placed */
|
|
28
28
|
pageName?: string;
|
|
29
|
+
/** The unique id of the Form element */
|
|
30
|
+
formElementId?: string;
|
|
29
31
|
/** The unique id of the Workspace the Site belongs to */
|
|
30
32
|
workspaceId?: string;
|
|
31
33
|
}
|
|
@@ -61,7 +61,13 @@ export declare type OauthScope =
|
|
|
61
61
|
| "workspace:read"
|
|
62
62
|
/**
|
|
63
63
|
* write workspace resource data */
|
|
64
|
-
| "workspace:write"
|
|
64
|
+
| "workspace:write"
|
|
65
|
+
/**
|
|
66
|
+
* read site configuration data */
|
|
67
|
+
| "site_config:read"
|
|
68
|
+
/**
|
|
69
|
+
* write site configuration data */
|
|
70
|
+
| "site_config:write";
|
|
65
71
|
export declare const OauthScope: {
|
|
66
72
|
readonly AuthorizedUserRead: "authorized_user:read";
|
|
67
73
|
readonly AssetsRead: "assets:read";
|
|
@@ -83,4 +89,6 @@ export declare const OauthScope: {
|
|
|
83
89
|
readonly UsersWrite: "users:write";
|
|
84
90
|
readonly WorkspaceRead: "workspace:read";
|
|
85
91
|
readonly WorkspaceWrite: "workspace:write";
|
|
92
|
+
readonly SiteConfigRead: "site_config:read";
|
|
93
|
+
readonly SiteConfigWrite: "site_config:write";
|
|
86
94
|
};
|
package/api/types/OauthScope.js
CHANGED