Skip to content

Commit ec6e690

Browse files
SDK regeneration
1 parent cc13f0b commit ec6e690

29 files changed

Lines changed: 1756 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": "549d014f65c12ff88077dea2ce7f398297b0a3cd",
3838
"sdkVersion": "3.3.5"
3939
}

reference.md

Lines changed: 289 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`
@@ -7474,6 +7477,291 @@ await client.sites.wellKnown.delete("580e63e98c9a982ac9b8b741");
74747477
</dl>
74757478

74767479

7480+
</dd>
7481+
</dl>
7482+
</details>
7483+
7484+
## Sites GoogleTag
7485+
<details><summary><code>client.sites.googleTag.<a href="/src/api/resources/sites/resources/googleTag/client/Client.ts">list</a>(site_id) -> Webflow.GoogleTagIds</code></summary>
7486+
<dl>
7487+
<dd>
7488+
7489+
#### 📝 Description
7490+
7491+
<dl>
7492+
<dd>
7493+
7494+
<dl>
7495+
<dd>
7496+
7497+
List all Google Tag IDs configured for a site, sorted by order.
7498+
7499+
Required scope: `sites:read`
7500+
</dd>
7501+
</dl>
7502+
</dd>
7503+
</dl>
7504+
7505+
#### 🔌 Usage
7506+
7507+
<dl>
7508+
<dd>
7509+
7510+
<dl>
7511+
<dd>
7512+
7513+
```typescript
7514+
await client.sites.googleTag.list("580e63e98c9a982ac9b8b741");
7515+
7516+
```
7517+
</dd>
7518+
</dl>
7519+
</dd>
7520+
</dl>
7521+
7522+
#### ⚙️ Parameters
7523+
7524+
<dl>
7525+
<dd>
7526+
7527+
<dl>
7528+
<dd>
7529+
7530+
**site_id:** `string` — Unique identifier for a Site
7531+
7532+
</dd>
7533+
</dl>
7534+
7535+
<dl>
7536+
<dd>
7537+
7538+
**requestOptions:** `GoogleTagClient.RequestOptions`
7539+
7540+
</dd>
7541+
</dl>
7542+
</dd>
7543+
</dl>
7544+
7545+
7546+
</dd>
7547+
</dl>
7548+
</details>
7549+
7550+
<details><summary><code>client.sites.googleTag.<a href="/src/api/resources/sites/resources/googleTag/client/Client.ts">deleteAll</a>(site_id) -> void</code></summary>
7551+
<dl>
7552+
<dd>
7553+
7554+
#### 📝 Description
7555+
7556+
<dl>
7557+
<dd>
7558+
7559+
<dl>
7560+
<dd>
7561+
7562+
Delete all Google Tag IDs from a site.
7563+
7564+
Required scope: `sites:write`
7565+
</dd>
7566+
</dl>
7567+
</dd>
7568+
</dl>
7569+
7570+
#### 🔌 Usage
7571+
7572+
<dl>
7573+
<dd>
7574+
7575+
<dl>
7576+
<dd>
7577+
7578+
```typescript
7579+
await client.sites.googleTag.deleteAll("580e63e98c9a982ac9b8b741");
7580+
7581+
```
7582+
</dd>
7583+
</dl>
7584+
</dd>
7585+
</dl>
7586+
7587+
#### ⚙️ Parameters
7588+
7589+
<dl>
7590+
<dd>
7591+
7592+
<dl>
7593+
<dd>
7594+
7595+
**site_id:** `string` — Unique identifier for a Site
7596+
7597+
</dd>
7598+
</dl>
7599+
7600+
<dl>
7601+
<dd>
7602+
7603+
**requestOptions:** `GoogleTagClient.RequestOptions`
7604+
7605+
</dd>
7606+
</dl>
7607+
</dd>
7608+
</dl>
7609+
7610+
7611+
</dd>
7612+
</dl>
7613+
</details>
7614+
7615+
<details><summary><code>client.sites.googleTag.<a href="/src/api/resources/sites/resources/googleTag/client/Client.ts">upsert</a>(site_id, { ...params }) -> Webflow.GoogleTagIds</code></summary>
7616+
<dl>
7617+
<dd>
7618+
7619+
#### 📝 Description
7620+
7621+
<dl>
7622+
<dd>
7623+
7624+
<dl>
7625+
<dd>
7626+
7627+
Add or update Google Tag IDs for a site. Existing tags not referenced in the request are preserved. A site may have a maximum of 25 tags total.
7628+
7629+
`order` is optional on input — it is auto-assigned for new tags and returned on all tags in the response.
7630+
7631+
Required scope: `sites:write`
7632+
</dd>
7633+
</dl>
7634+
</dd>
7635+
</dl>
7636+
7637+
#### 🔌 Usage
7638+
7639+
<dl>
7640+
<dd>
7641+
7642+
<dl>
7643+
<dd>
7644+
7645+
```typescript
7646+
await client.sites.googleTag.upsert("580e63e98c9a982ac9b8b741", {
7647+
googleTagIds: [{
7648+
order: 0,
7649+
displayName: "Main Analytics Tag",
7650+
tagId: "G-1234567890"
7651+
}]
7652+
});
7653+
7654+
```
7655+
</dd>
7656+
</dl>
7657+
</dd>
7658+
</dl>
7659+
7660+
#### ⚙️ Parameters
7661+
7662+
<dl>
7663+
<dd>
7664+
7665+
<dl>
7666+
<dd>
7667+
7668+
**site_id:** `string` — Unique identifier for a Site
7669+
7670+
</dd>
7671+
</dl>
7672+
7673+
<dl>
7674+
<dd>
7675+
7676+
**request:** `Webflow.GoogleTagIds`
7677+
7678+
</dd>
7679+
</dl>
7680+
7681+
<dl>
7682+
<dd>
7683+
7684+
**requestOptions:** `GoogleTagClient.RequestOptions`
7685+
7686+
</dd>
7687+
</dl>
7688+
</dd>
7689+
</dl>
7690+
7691+
7692+
</dd>
7693+
</dl>
7694+
</details>
7695+
7696+
<details><summary><code>client.sites.googleTag.<a href="/src/api/resources/sites/resources/googleTag/client/Client.ts">delete</a>(site_id, tag_id) -> Webflow.GoogleTagIds</code></summary>
7697+
<dl>
7698+
<dd>
7699+
7700+
#### 📝 Description
7701+
7702+
<dl>
7703+
<dd>
7704+
7705+
<dl>
7706+
<dd>
7707+
7708+
Delete a single Google Tag ID from a site. The `order` values of the remaining tags are renormalized after deletion.
7709+
7710+
Required scope: `sites:write`
7711+
</dd>
7712+
</dl>
7713+
</dd>
7714+
</dl>
7715+
7716+
#### 🔌 Usage
7717+
7718+
<dl>
7719+
<dd>
7720+
7721+
<dl>
7722+
<dd>
7723+
7724+
```typescript
7725+
await client.sites.googleTag.delete("580e63e98c9a982ac9b8b741", "G-XXXXXXXXXX");
7726+
7727+
```
7728+
</dd>
7729+
</dl>
7730+
</dd>
7731+
</dl>
7732+
7733+
#### ⚙️ Parameters
7734+
7735+
<dl>
7736+
<dd>
7737+
7738+
<dl>
7739+
<dd>
7740+
7741+
**site_id:** `string` — Unique identifier for a Site
7742+
7743+
</dd>
7744+
</dl>
7745+
7746+
<dl>
7747+
<dd>
7748+
7749+
**tag_id:** `string` — The Google Tag ID (e.g. G-XXXXXXXXXX)
7750+
7751+
</dd>
7752+
</dl>
7753+
7754+
<dl>
7755+
<dd>
7756+
7757+
**requestOptions:** `GoogleTagClient.RequestOptions`
7758+
7759+
</dd>
7760+
</dl>
7761+
</dd>
7762+
</dl>
7763+
7764+
74777765
</dd>
74787766
</dl>
74797767
</details>

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import * as Webflow from "../../../index";
1212
import { ActivityLogsClient } from "../resources/activityLogs/client/Client";
1313
import { CommentsClient } from "../resources/comments/client/Client";
1414
import { FormsClient } from "../resources/forms/client/Client";
15+
import { GoogleTagClient } from "../resources/googleTag/client/Client";
1516
import { PlansClient } from "../resources/plans/client/Client";
1617
import { RedirectsClient } from "../resources/redirects/client/Client";
1718
import { RobotsTxtClient } from "../resources/robotsTxt/client/Client";
@@ -33,6 +34,7 @@ export class SitesClient {
3334
protected _plans: PlansClient | undefined;
3435
protected _robotsTxt: RobotsTxtClient | undefined;
3536
protected _wellKnown: WellKnownClient | undefined;
37+
protected _googleTag: GoogleTagClient | undefined;
3638
protected _activityLogs: ActivityLogsClient | undefined;
3739
protected _comments: CommentsClient | undefined;
3840
protected _scripts: ScriptsClient | undefined;
@@ -58,6 +60,10 @@ export class SitesClient {
5860
return (this._wellKnown ??= new WellKnownClient(this._options));
5961
}
6062

63+
public get googleTag(): GoogleTagClient {
64+
return (this._googleTag ??= new GoogleTagClient(this._options));
65+
}
66+
6167
public get activityLogs(): ActivityLogsClient {
6268
return (this._activityLogs ??= new ActivityLogsClient(this._options));
6369
}
@@ -825,12 +831,15 @@ export class SitesClient {
825831
}
826832

827833
/**
828-
* Publishes a site to one or more more domains.
834+
* Publishes a site or an individual page to one or more domains.
835+
* If multiple individual pages are published to staging, publishing from staging to production publishes all staged changes.
829836
*
830837
* To publish to a specific custom domain, use the domain IDs from the [Get Custom Domains](/data/reference/sites/get-custom-domain) endpoint.
831838
*
832839
* You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body.
833840
*
841+
* To publish an individual page instead of the entire site, provide the ID of the page in the `pageId` parameter.
842+
*
834843
* <Note title="Rate limit: 1 publish per minute">This endpoint has a specific rate limit of one successful publish queue per minute.</Note>
835844
*
836845
* 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
}

0 commit comments

Comments
 (0)