Skip to content

Commit 42ca322

Browse files
SDK regeneration
1 parent cc13f0b commit 42ca322

19 files changed

Lines changed: 191 additions & 108 deletions

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
}
3535
}
3636
},
37-
"originGitCommit": "998225e70e3e266cc158f022dfdd12904d54da2d",
37+
"originGitCommit": "ea5e12dbe0a04d27de0335f2ccbaba0d8595753c",
3838
"sdkVersion": "3.3.5"
3939
}

reference.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,15 @@ await client.sites.getCustomDomain("580e63e98c9a982ac9b8b741");
533533
<dl>
534534
<dd>
535535

536-
Publishes a site to one or more more domains.
536+
Publishes a site or an individual page to one or more domains.
537+
If multiple individual pages are published to staging, publishing from staging to production publishes all staged changes.
537538

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

540541
You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body.
541542

543+
To publish an individual page instead of the entire site, provide the ID of the page in the `pageId` parameter.
544+
542545
<Note title="Rate limit: 1 publish per minute">This endpoint has a specific rate limit of one successful publish queue per minute.</Note>
543546

544547
Required scope | `sites:write`

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,12 +825,15 @@ export class SitesClient {
825825
}
826826

827827
/**
828-
* Publishes a site to one or more more domains.
828+
* Publishes a site or an individual page to one or more domains.
829+
* If multiple individual pages are published to staging, publishing from staging to production publishes all staged changes.
829830
*
830831
* To publish to a specific custom domain, use the domain IDs from the [Get Custom Domains](/data/reference/sites/get-custom-domain) endpoint.
831832
*
832833
* You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body.
833834
*
835+
* To publish an individual page instead of the entire site, provide the ID of the page in the `pageId` parameter.
836+
*
834837
* <Note title="Rate limit: 1 publish per minute">This endpoint has a specific rate limit of one successful publish queue per minute.</Note>
835838
*
836839
* Required scope | `sites:write`

src/api/resources/sites/client/requests/SitesPublishRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ export interface SitesPublishRequest {
1212
customDomains?: string[];
1313
/** Choice of whether to publish to the default Webflow Subdomain */
1414
publishToWebflowSubdomain?: boolean;
15+
/** The ID of the page to publish */
16+
pageId?: string;
1517
}

src/api/resources/sites/types/SitesPublishResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ export interface SitesPublishResponse {
77
customDomains?: Webflow.Domain[];
88
/** Flag for publishing to webflow.io subdomain */
99
publishToWebflowSubdomain?: boolean;
10+
/** Whether the site or an individual page was published */
11+
publishScope?: Webflow.SitesPublishResponsePublishScope;
1012
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
/** Whether the site or an individual page was published */
4+
export const SitesPublishResponsePublishScope = {
5+
Site: "site",
6+
Page: "page",
7+
} as const;
8+
export type SitesPublishResponsePublishScope =
9+
(typeof SitesPublishResponsePublishScope)[keyof typeof SitesPublishResponsePublishScope];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from "./SitesPublishResponse";
2+
export * from "./SitesPublishResponsePublishScope";

src/api/types/SitePublishPayload.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// This file was auto-generated by Fern from our API Definition.
22

3+
import type * as Webflow from "../index";
4+
35
/**
46
* The payload of data sent from Webflow
57
*/
@@ -12,4 +14,8 @@ export interface SitePublishPayload {
1214
domains?: string[];
1315
/** The name and ID of the user who published the site */
1416
publishedBy?: Record<string, unknown>;
17+
/** Whether the entire site or an individual page was published */
18+
publishScope?: Webflow.SitePublishPayloadPublishScope;
19+
/** The ID of the page that was published */
20+
pageId?: string;
1521
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
/** Whether the entire site or an individual page was published */
4+
export const SitePublishPayloadPublishScope = {
5+
Page: "page",
6+
Site: "site",
7+
} as const;
8+
export type SitePublishPayloadPublishScope =
9+
(typeof SitePublishPayloadPublishScope)[keyof typeof SitePublishPayloadPublishScope];

src/api/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export * from "./SitePlanId";
197197
export * from "./SitePlanName";
198198
export * from "./SitePublish";
199199
export * from "./SitePublishPayload";
200+
export * from "./SitePublishPayloadPublishScope";
200201
export * from "./Sites";
201202
export * from "./Sku";
202203
export * from "./SkuFieldData";

0 commit comments

Comments
 (0)