Skip to content

Commit 01a7d19

Browse files
SDK regeneration
1 parent a604e75 commit 01a7d19

67 files changed

Lines changed: 688 additions & 489 deletions

File tree

Some content is hidden

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

.fern/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "4.22.0",
2+
"cliVersion": "4.65.1",
33
"generatorName": "fernapi/fern-typescript-node-sdk",
44
"generatorVersion": "3.53.13",
55
"generatorConfig": {
@@ -34,6 +34,6 @@
3434
}
3535
}
3636
},
37-
"originGitCommit": "f0174d404a2635415e858ef151cf9202df3e3d02",
37+
"originGitCommit": "998225e70e3e266cc158f022dfdd12904d54da2d",
3838
"sdkVersion": "3.3.5"
3939
}

.github/workflows/socket_reachability.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.

reference.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ Publishes a site to one or more more domains.
537537

538538
To publish to a specific custom domain, use the domain IDs from the [Get Custom Domains](/data/reference/sites/get-custom-domain) endpoint.
539539

540+
You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body.
541+
540542
<Note title="Rate limit: 1 publish per minute">This endpoint has a specific rate limit of one successful publish queue per minute.</Note>
541543

542544
Required scope | `sites:write`
@@ -2071,6 +2073,7 @@ Required scope | `assets:read`
20712073

20722074
```typescript
20732075
await client.assets.list("580e63e98c9a982ac9b8b741", {
2076+
localeId: "65427cf400e02b306eaa04a0",
20742077
offset: 1,
20752078
limit: 1
20762079
});
@@ -2202,7 +2205,7 @@ await client.assets.create("580e63e98c9a982ac9b8b741", {
22022205
</dl>
22032206
</details>
22042207

2205-
<details><summary><code>client.assets.<a href="/src/api/resources/assets/client/Client.ts">get</a>(asset_id) -> Webflow.Asset</code></summary>
2208+
<details><summary><code>client.assets.<a href="/src/api/resources/assets/client/Client.ts">get</a>(asset_id, { ...params }) -> Webflow.Asset</code></summary>
22062209
<dl>
22072210
<dd>
22082211

@@ -2231,7 +2234,9 @@ Required scope | `assets:read`
22312234
<dd>
22322235

22332236
```typescript
2234-
await client.assets.get("580e63fc8c9a982ac9b8b745");
2237+
await client.assets.get("580e63fc8c9a982ac9b8b745", {
2238+
localeId: "65427cf400e02b306eaa04a0"
2239+
});
22352240

22362241
```
22372242
</dd>
@@ -2255,6 +2260,14 @@ await client.assets.get("580e63fc8c9a982ac9b8b745");
22552260
<dl>
22562261
<dd>
22572262

2263+
**request:** `Webflow.AssetsGetRequest`
2264+
2265+
</dd>
2266+
</dl>
2267+
2268+
<dl>
2269+
<dd>
2270+
22582271
**requestOptions:** `AssetsClient.RequestOptions`
22592272

22602273
</dd>
@@ -2361,7 +2374,9 @@ Required scope | `assets:write`
23612374
<dd>
23622375

23632376
```typescript
2364-
await client.assets.update("580e63fc8c9a982ac9b8b745");
2377+
await client.assets.update("580e63fc8c9a982ac9b8b745", {
2378+
localeId: "65427cf400e02b306eaa04a0"
2379+
});
23652380

23662381
```
23672382
</dd>
@@ -4874,7 +4889,7 @@ await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", {
48744889
limit: 1,
48754890
name: "name",
48764891
slug: "slug",
4877-
sortBy: "lastPublished",
4892+
sortBy: "createdOn",
48784893
sortOrder: "asc"
48794894
});
48804895

@@ -5270,7 +5285,7 @@ await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", {
52705285
limit: 1,
52715286
name: "name",
52725287
slug: "slug",
5273-
sortBy: "lastPublished",
5288+
sortBy: "createdOn",
52745289
sortOrder: "asc"
52755290
});
52765291

src/BaseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
5151
{
5252
"X-Fern-Language": "JavaScript",
5353
"X-Fern-SDK-Name": "webflow-api",
54-
"X-Fern-SDK-Version": "3.3.2",
55-
"User-Agent": "webflow-api/3.3.2",
54+
"X-Fern-SDK-Version": "3.3.5",
55+
"User-Agent": "webflow-api/3.3.5",
5656
"X-Fern-Runtime": core.RUNTIME.type,
5757
"X-Fern-Runtime-Version": core.RUNTIME.version,
5858
},

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

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class AssetsClient {
4343
*
4444
* @example
4545
* await client.assets.list("580e63e98c9a982ac9b8b741", {
46+
* localeId: "65427cf400e02b306eaa04a0",
4647
* offset: 1,
4748
* limit: 1
4849
* })
@@ -60,8 +61,9 @@ export class AssetsClient {
6061
request: Webflow.AssetsListRequest = {},
6162
requestOptions?: AssetsClient.RequestOptions,
6263
): Promise<core.WithRawResponse<Webflow.Assets>> {
63-
const { offset, limit } = request;
64+
const { localeId, offset, limit } = request;
6465
const _queryParams: Record<string, unknown> = {
66+
localeId,
6567
offset,
6668
limit,
6769
};
@@ -312,6 +314,7 @@ export class AssetsClient {
312314
* Required scope | `assets:read`
313315
*
314316
* @param {string} asset_id - Unique identifier for an Asset on a site
317+
* @param {Webflow.AssetsGetRequest} request
315318
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
316319
*
317320
* @throws {@link Webflow.BadRequestError}
@@ -321,19 +324,27 @@ export class AssetsClient {
321324
* @throws {@link Webflow.InternalServerError}
322325
*
323326
* @example
324-
* await client.assets.get("580e63fc8c9a982ac9b8b745")
327+
* await client.assets.get("580e63fc8c9a982ac9b8b745", {
328+
* localeId: "65427cf400e02b306eaa04a0"
329+
* })
325330
*/
326331
public get(
327332
asset_id: string,
333+
request: Webflow.AssetsGetRequest = {},
328334
requestOptions?: AssetsClient.RequestOptions,
329335
): core.HttpResponsePromise<Webflow.Asset> {
330-
return core.HttpResponsePromise.fromPromise(this.__get(asset_id, requestOptions));
336+
return core.HttpResponsePromise.fromPromise(this.__get(asset_id, request, requestOptions));
331337
}
332338

333339
private async __get(
334340
asset_id: string,
341+
request: Webflow.AssetsGetRequest = {},
335342
requestOptions?: AssetsClient.RequestOptions,
336343
): Promise<core.WithRawResponse<Webflow.Asset>> {
344+
const { localeId } = request;
345+
const _queryParams: Record<string, unknown> = {
346+
localeId,
347+
};
337348
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
338349
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
339350
_authRequest.headers,
@@ -349,7 +360,7 @@ export class AssetsClient {
349360
),
350361
method: "GET",
351362
headers: _headers,
352-
queryParameters: requestOptions?.queryParams,
363+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
353364
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
354365
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
355366
abortSignal: requestOptions?.abortSignal,
@@ -556,7 +567,9 @@ export class AssetsClient {
556567
* @throws {@link Webflow.InternalServerError}
557568
*
558569
* @example
559-
* await client.assets.update("580e63fc8c9a982ac9b8b745")
570+
* await client.assets.update("580e63fc8c9a982ac9b8b745", {
571+
* localeId: "65427cf400e02b306eaa04a0"
572+
* })
560573
*/
561574
public update(
562575
asset_id: string,
@@ -571,6 +584,10 @@ export class AssetsClient {
571584
request: Webflow.AssetsUpdateRequest = {},
572585
requestOptions?: AssetsClient.RequestOptions,
573586
): Promise<core.WithRawResponse<Webflow.Asset>> {
587+
const { localeId, ..._body } = request;
588+
const _queryParams: Record<string, unknown> = {
589+
localeId,
590+
};
574591
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
575592
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
576593
_authRequest.headers,
@@ -587,9 +604,9 @@ export class AssetsClient {
587604
method: "PATCH",
588605
headers: _headers,
589606
contentType: "application/json",
590-
queryParameters: requestOptions?.queryParams,
607+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
591608
requestType: "json",
592-
body: serializers.AssetsUpdateRequest.jsonOrThrow(request, {
609+
body: serializers.AssetsUpdateRequest.jsonOrThrow(_body, {
593610
unrecognizedObjectKeys: "passthrough",
594611
allowUnrecognizedUnionMembers: true,
595612
allowUnrecognizedEnumValues: true,
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
/**
4+
* @example
5+
* {
6+
* localeId: "65427cf400e02b306eaa04a0"
7+
* }
8+
*/
9+
export interface AssetsGetRequest {
10+
/**
11+
* Unique identifier for a specific Locale.
12+
*
13+
* [Learn more about localization.](/data/v2.0.0/docs/working-with-localization)
14+
*/
15+
localeId?: string;
16+
}

src/api/resources/assets/client/requests/AssetsListRequest.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@
33
/**
44
* @example
55
* {
6+
* localeId: "65427cf400e02b306eaa04a0",
67
* offset: 1,
78
* limit: 1
89
* }
910
*/
1011
export interface AssetsListRequest {
12+
/**
13+
* Unique identifier for a specific Locale.
14+
*
15+
* [Learn more about localization.](/data/v2.0.0/docs/working-with-localization)
16+
*/
17+
localeId?: string;
1118
/** Offset used for pagination if the results have more than limit records */
1219
offset?: number;
1320
/** Maximum number of records to be returned (max limit: 100) */

src/api/resources/assets/client/requests/AssetsUpdateRequest.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

33
/**
44
* @example
5-
* {}
5+
* {
6+
* localeId: "65427cf400e02b306eaa04a0"
7+
* }
68
*/
79
export interface AssetsUpdateRequest {
8-
/** Unique identifier for a specific locale. Applicable, when using localization. */
10+
/**
11+
* Unique identifier for a specific Locale.
12+
*
13+
* [Learn more about localization.](/data/v2.0.0/docs/working-with-localization)
14+
*/
915
localeId?: string;
10-
/** A human readable name for the asset */
16+
/** A human readable name for the asset. This value is not localizable. */
1117
displayName?: string;
18+
/** Alternate text describing the image */
19+
altText?: string;
1220
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export type { AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest";
22
export type { AssetsCreateRequest } from "./AssetsCreateRequest";
3+
export type { AssetsGetRequest } from "./AssetsGetRequest";
34
export type { AssetsListRequest } from "./AssetsListRequest";
45
export type { AssetsUpdateRequest } from "./AssetsUpdateRequest";

0 commit comments

Comments
 (0)