@gitbook/api 0.148.0 → 0.150.0

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/dist/client.d.ts CHANGED
@@ -1312,7 +1312,30 @@ export interface DocumentBlockColumns {
1312
1312
  nodes: DocumentBlockColumn[];
1313
1313
  isVoid: false;
1314
1314
  }
1315
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn;
1315
+ export interface DocumentBlockUpdate {
1316
+ object: 'block';
1317
+ type: 'update';
1318
+ key?: string;
1319
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
1320
+ data: {
1321
+ date: Timestamp;
1322
+ tags?: string[];
1323
+ };
1324
+ isVoid?: false;
1325
+ }
1326
+ export interface DocumentBlockUpdates {
1327
+ object: 'block';
1328
+ type: 'updates';
1329
+ key?: string;
1330
+ nodes: DocumentBlockUpdate[];
1331
+ isVoid?: false;
1332
+ data: {
1333
+ /** @default "full" */
1334
+ format: 'numeric' | 'full' | 'short';
1335
+ sticky: boolean;
1336
+ };
1337
+ }
1338
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn | DocumentBlockUpdates | DocumentBlockUpdate;
1316
1339
  export interface DocumentInlineMention {
1317
1340
  object: 'inline';
1318
1341
  type: 'mention';
@@ -1383,6 +1406,8 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
1383
1406
  * @default false
1384
1407
  */
1385
1408
  noRobotsIndex?: boolean;
1409
+ /** Meta links associated with the page. */
1410
+ metaLinks?: RevisionPageMetaLinks;
1386
1411
  } & ({
1387
1412
  computed: ComputedContentSourceDocument;
1388
1413
  /** Seed to use for the generation of IDs. */
@@ -1550,6 +1575,11 @@ export interface RevisionPageDocumentCover {
1550
1575
  }
1551
1576
  export type VariableValue = string | number | boolean;
1552
1577
  export type Variables = Record<string, VariableValue>;
1578
+ export type RevisionPageMetaLinkTarget = ContentRefPage | ContentRefURL;
1579
+ export interface RevisionPageMetaLinks {
1580
+ canonical?: RevisionPageMetaLinkTarget;
1581
+ alternates?: RevisionPageMetaLinkTarget[];
1582
+ }
1553
1583
  /** Parameters for an OpenAPI computed document */
1554
1584
  export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIBase & {
1555
1585
  props: {
@@ -3457,6 +3487,7 @@ export declare enum SiteFeatureKey {
3457
3487
  /** A list of all premium customizations. */
3458
3488
  export declare enum SiteCustomizationFeature {
3459
3489
  HeaderLogo = "header-logo",
3490
+ HeaderPrimaryLink = "header-primary-link",
3460
3491
  ThemePreset = "theme-preset",
3461
3492
  PremiumFonts = "premium-fonts",
3462
3493
  CustomIcons = "custom-icons",
@@ -5243,6 +5274,8 @@ export interface SiteCustomizationSettings {
5243
5274
  /** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
5244
5275
  preset: CustomizationHeaderPreset;
5245
5276
  logo?: CustomizationThemedURL;
5277
+ /** Destination to open when visitors click the site title/logo in the header. */
5278
+ primaryLink?: ContentRef;
5246
5279
  /**
5247
5280
  * Color of the background in the header. This value is now deprecated in favour of the new theming colors.
5248
5281
  * @deprecated
@@ -8159,6 +8192,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8159
8192
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8160
8193
  items: ContentLocation[];
8161
8194
  }, any>>;
8195
+ /**
8196
+ * No description
8197
+ *
8198
+ * @tags space-content
8199
+ * @name ListSpacePageMetaLinks
8200
+ * @summary List all meta links for a space page
8201
+ * @request GET:/spaces/{spaceId}/content/page/{pageId}/meta-links
8202
+ * @secure
8203
+ */
8204
+ listSpacePageMetaLinks: (spaceId: string, pageId: string, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
8162
8205
  /**
8163
8206
  * No description
8164
8207
  *
@@ -8878,6 +8921,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8878
8921
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8879
8922
  items: ContentLocation[];
8880
8923
  }, any>>;
8924
+ /**
8925
+ * No description
8926
+ *
8927
+ * @tags change-request-content
8928
+ * @name ListChangeRequestPageMetaLinks
8929
+ * @summary List all meta links of a change request page
8930
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links
8931
+ * @secure
8932
+ */
8933
+ listChangeRequestPageMetaLinks: (spaceId: string, changeRequestId: string, pageId: string, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
8881
8934
  /**
8882
8935
  * No description
8883
8936
  *
@@ -9142,6 +9195,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9142
9195
  */
9143
9196
  computed?: boolean;
9144
9197
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
9198
+ /**
9199
+ * No description
9200
+ *
9201
+ * @tags space-content
9202
+ * @name ListRevisionPageMetaLinks
9203
+ * @summary List all meta links for a revision page
9204
+ * @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links
9205
+ * @secure
9206
+ */
9207
+ listRevisionPageMetaLinks: (spaceId: string, revisionId: string, pageId: string, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
9145
9208
  /**
9146
9209
  * No description
9147
9210
  *
@@ -12711,6 +12774,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12711
12774
  preset?: CustomizationHeaderPreset | null;
12712
12775
  /** The header logo to use. Set to null to reset the override. */
12713
12776
  logo?: CustomizationThemedURL | null;
12777
+ /** The destination to open when visitors click the site title/logo in the header. Set to null to reset the override. */
12778
+ primaryLink?: ContentRef | null;
12714
12779
  /** The background color used in the header. Set to null to reset the override. */
12715
12780
  backgroundColor?: CustomizationThemedColor | null;
12716
12781
  /** The color used by the links in the header. Set to null to reset the override. */
@@ -74,7 +74,7 @@ export declare const SITE_VISIBILITY_ENUM: ["public", "unlisted", "share-link",
74
74
  export declare const SITE_ADS_TOPIC_ENUM: ["webdev", "crypto"];
75
75
  export declare const SITE_AGENTS_CONTEXT_ENUM: ["excluded", "included"];
76
76
  export declare const SITE_FEATURE_KEY_ENUM: ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
77
- export declare const SITE_CUSTOMIZATION_FEATURE_ENUM: ["header-logo", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
77
+ export declare const SITE_CUSTOMIZATION_FEATURE_ENUM: ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
78
78
  export declare const CONTENT_KIT_ICON_ENUM: ["close", "edit", "github", "gitlab", "maximize", "email", "settings", "search", "delete", "star", "warning", "link", "link-external", "eye", "eye-off", "lock", "check", "check-circle"];
79
79
  export declare const SITE_SECTION_TITLE_MAX_LENGTH = 128;
80
80
  export declare const SITE_SECTION_TITLE_MIN_LENGTH = 2;
package/dist/index.cjs CHANGED
@@ -441,7 +441,7 @@ module.exports = __toCommonJS(src_exports);
441
441
 
442
442
  // package.json
443
443
  var name = "@gitbook/api";
444
- var version = "0.148.0";
444
+ var version = "0.150.0";
445
445
 
446
446
  // src/client.ts
447
447
  var import_event_iterator = __toESM(require_node(), 1);
@@ -907,6 +907,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
907
907
  })(SiteFeatureKey || {});
908
908
  var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
909
909
  SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
910
+ SiteCustomizationFeature2["HeaderPrimaryLink"] = "header-primary-link";
910
911
  SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
911
912
  SiteCustomizationFeature2["PremiumFonts"] = "premium-fonts";
912
913
  SiteCustomizationFeature2["CustomIcons"] = "custom-icons";
@@ -1782,6 +1783,13 @@ var Api = class extends HttpClient {
1782
1783
  format: "json",
1783
1784
  ...params
1784
1785
  }),
1786
+ listSpacePageMetaLinks: (spaceId, pageId, params = {}) => this.request({
1787
+ path: `/spaces/${spaceId}/content/page/${pageId}/meta-links`,
1788
+ method: "GET",
1789
+ secure: true,
1790
+ format: "json",
1791
+ ...params
1792
+ }),
1785
1793
  getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
1786
1794
  path: `/spaces/${spaceId}/content/path/${pagePath}`,
1787
1795
  method: "GET",
@@ -2080,6 +2088,13 @@ var Api = class extends HttpClient {
2080
2088
  format: "json",
2081
2089
  ...params
2082
2090
  }),
2091
+ listChangeRequestPageMetaLinks: (spaceId, changeRequestId, pageId, params = {}) => this.request({
2092
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/meta-links`,
2093
+ method: "GET",
2094
+ secure: true,
2095
+ format: "json",
2096
+ ...params
2097
+ }),
2083
2098
  getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
2084
2099
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
2085
2100
  method: "GET",
@@ -2168,6 +2183,13 @@ var Api = class extends HttpClient {
2168
2183
  format: "json",
2169
2184
  ...params
2170
2185
  }),
2186
+ listRevisionPageMetaLinks: (spaceId, revisionId, pageId, params = {}) => this.request({
2187
+ path: `/spaces/${spaceId}/revisions/${revisionId}/page/${pageId}/meta-links`,
2188
+ method: "GET",
2189
+ secure: true,
2190
+ format: "json",
2191
+ ...params
2192
+ }),
2171
2193
  getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
2172
2194
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
2173
2195
  method: "GET",
@@ -4038,7 +4060,7 @@ var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
4038
4060
  var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
4039
4061
  var SITE_AGENTS_CONTEXT_ENUM = ["excluded", "included"];
4040
4062
  var SITE_FEATURE_KEY_ENUM = ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
4041
- var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
4063
+ var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
4042
4064
  var CONTENT_KIT_ICON_ENUM = ["close", "edit", "github", "gitlab", "maximize", "email", "settings", "search", "delete", "star", "warning", "link", "link-external", "eye", "eye-off", "lock", "check", "check-circle"];
4043
4065
  var SITE_SECTION_TITLE_MAX_LENGTH = 128;
4044
4066
  var SITE_SECTION_TITLE_MIN_LENGTH = 2;
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.148.0";
175
+ var version = "0.150.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -638,6 +638,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
638
638
  })(SiteFeatureKey || {});
639
639
  var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
640
640
  SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
641
+ SiteCustomizationFeature2["HeaderPrimaryLink"] = "header-primary-link";
641
642
  SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
642
643
  SiteCustomizationFeature2["PremiumFonts"] = "premium-fonts";
643
644
  SiteCustomizationFeature2["CustomIcons"] = "custom-icons";
@@ -1513,6 +1514,13 @@ var Api = class extends HttpClient {
1513
1514
  format: "json",
1514
1515
  ...params
1515
1516
  }),
1517
+ listSpacePageMetaLinks: (spaceId, pageId, params = {}) => this.request({
1518
+ path: `/spaces/${spaceId}/content/page/${pageId}/meta-links`,
1519
+ method: "GET",
1520
+ secure: true,
1521
+ format: "json",
1522
+ ...params
1523
+ }),
1516
1524
  getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
1517
1525
  path: `/spaces/${spaceId}/content/path/${pagePath}`,
1518
1526
  method: "GET",
@@ -1811,6 +1819,13 @@ var Api = class extends HttpClient {
1811
1819
  format: "json",
1812
1820
  ...params
1813
1821
  }),
1822
+ listChangeRequestPageMetaLinks: (spaceId, changeRequestId, pageId, params = {}) => this.request({
1823
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/meta-links`,
1824
+ method: "GET",
1825
+ secure: true,
1826
+ format: "json",
1827
+ ...params
1828
+ }),
1814
1829
  getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
1815
1830
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
1816
1831
  method: "GET",
@@ -1899,6 +1914,13 @@ var Api = class extends HttpClient {
1899
1914
  format: "json",
1900
1915
  ...params
1901
1916
  }),
1917
+ listRevisionPageMetaLinks: (spaceId, revisionId, pageId, params = {}) => this.request({
1918
+ path: `/spaces/${spaceId}/revisions/${revisionId}/page/${pageId}/meta-links`,
1919
+ method: "GET",
1920
+ secure: true,
1921
+ format: "json",
1922
+ ...params
1923
+ }),
1902
1924
  getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
1903
1925
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
1904
1926
  method: "GET",
@@ -3769,7 +3791,7 @@ var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
3769
3791
  var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
3770
3792
  var SITE_AGENTS_CONTEXT_ENUM = ["excluded", "included"];
3771
3793
  var SITE_FEATURE_KEY_ENUM = ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
3772
- var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
3794
+ var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
3773
3795
  var CONTENT_KIT_ICON_ENUM = ["close", "edit", "github", "gitlab", "maximize", "email", "settings", "search", "delete", "star", "warning", "link", "link-external", "eye", "eye-off", "lock", "check", "check-circle"];
3774
3796
  var SITE_SECTION_TITLE_MAX_LENGTH = 128;
3775
3797
  var SITE_SECTION_TITLE_MIN_LENGTH = 2;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.148.0",
7
+ "version": "0.150.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -1981,6 +1981,40 @@
1981
1981
  }
1982
1982
  }
1983
1983
  },
1984
+ "/spaces/{spaceId}/content/page/{pageId}/meta-links": {
1985
+ "get": {
1986
+ "operationId": "listSpacePageMetaLinks",
1987
+ "summary": "List all meta links for a space page",
1988
+ "tags": [
1989
+ "space-content"
1990
+ ],
1991
+ "security": [
1992
+ {
1993
+ "user": []
1994
+ }
1995
+ ],
1996
+ "parameters": [
1997
+ {
1998
+ "$ref": "#/components/parameters/spaceId"
1999
+ },
2000
+ {
2001
+ "$ref": "#/components/parameters/pageId"
2002
+ }
2003
+ ],
2004
+ "responses": {
2005
+ "200": {
2006
+ "description": "OK",
2007
+ "content": {
2008
+ "application/json": {
2009
+ "schema": {
2010
+ "$ref": "#/components/schemas/RevisionPageMetaLinks"
2011
+ }
2012
+ }
2013
+ }
2014
+ }
2015
+ }
2016
+ }
2017
+ },
1984
2018
  "/spaces/{spaceId}/content/path/{pagePath}": {
1985
2019
  "get": {
1986
2020
  "operationId": "getPageByPath",
@@ -3999,6 +4033,43 @@
3999
4033
  }
4000
4034
  }
4001
4035
  },
4036
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links": {
4037
+ "get": {
4038
+ "operationId": "listChangeRequestPageMetaLinks",
4039
+ "summary": "List all meta links of a change request page",
4040
+ "tags": [
4041
+ "change-request-content"
4042
+ ],
4043
+ "security": [
4044
+ {
4045
+ "user": []
4046
+ }
4047
+ ],
4048
+ "parameters": [
4049
+ {
4050
+ "$ref": "#/components/parameters/spaceId"
4051
+ },
4052
+ {
4053
+ "$ref": "#/components/parameters/changeRequestId"
4054
+ },
4055
+ {
4056
+ "$ref": "#/components/parameters/pageId"
4057
+ }
4058
+ ],
4059
+ "responses": {
4060
+ "200": {
4061
+ "description": "OK",
4062
+ "content": {
4063
+ "application/json": {
4064
+ "schema": {
4065
+ "$ref": "#/components/schemas/RevisionPageMetaLinks"
4066
+ }
4067
+ }
4068
+ }
4069
+ }
4070
+ }
4071
+ }
4072
+ },
4002
4073
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}": {
4003
4074
  "get": {
4004
4075
  "operationId": "getReusableContentInChangeRequestById",
@@ -4542,6 +4613,43 @@
4542
4613
  }
4543
4614
  }
4544
4615
  },
4616
+ "/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links": {
4617
+ "get": {
4618
+ "operationId": "listRevisionPageMetaLinks",
4619
+ "summary": "List all meta links for a revision page",
4620
+ "tags": [
4621
+ "space-content"
4622
+ ],
4623
+ "security": [
4624
+ {
4625
+ "user": []
4626
+ }
4627
+ ],
4628
+ "parameters": [
4629
+ {
4630
+ "$ref": "#/components/parameters/spaceId"
4631
+ },
4632
+ {
4633
+ "$ref": "#/components/parameters/revisionId"
4634
+ },
4635
+ {
4636
+ "$ref": "#/components/parameters/pageId"
4637
+ }
4638
+ ],
4639
+ "responses": {
4640
+ "200": {
4641
+ "description": "OK",
4642
+ "content": {
4643
+ "application/json": {
4644
+ "schema": {
4645
+ "$ref": "#/components/schemas/RevisionPageMetaLinks"
4646
+ }
4647
+ }
4648
+ }
4649
+ }
4650
+ }
4651
+ }
4652
+ },
4545
4653
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}": {
4546
4654
  "get": {
4547
4655
  "operationId": "getPageInChangeRequestByPath",
@@ -14653,6 +14761,21 @@
14653
14761
  }
14654
14762
  ]
14655
14763
  },
14764
+ "primaryLink": {
14765
+ "description": "The destination to open when visitors click the site title/logo in the header. Set to null to reset the override.",
14766
+ "oneOf": [
14767
+ {
14768
+ "$ref": "#/components/schemas/ContentRef"
14769
+ },
14770
+ {
14771
+ "type": "string",
14772
+ "nullable": true,
14773
+ "enum": [
14774
+ null
14775
+ ]
14776
+ }
14777
+ ]
14778
+ },
14656
14779
  "backgroundColor": {
14657
14780
  "description": "The background color used in the header. Set to null to reset the override.",
14658
14781
  "oneOf": [
@@ -22362,6 +22485,161 @@
22362
22485
  "isVoid"
22363
22486
  ]
22364
22487
  },
22488
+ "DocumentBlockUpdate": {
22489
+ "type": "object",
22490
+ "properties": {
22491
+ "object": {
22492
+ "type": "string",
22493
+ "enum": [
22494
+ "block"
22495
+ ]
22496
+ },
22497
+ "type": {
22498
+ "type": "string",
22499
+ "enum": [
22500
+ "update"
22501
+ ]
22502
+ },
22503
+ "key": {
22504
+ "type": "string"
22505
+ },
22506
+ "nodes": {
22507
+ "type": "array",
22508
+ "items": {
22509
+ "oneOf": [
22510
+ {
22511
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
22512
+ },
22513
+ {
22514
+ "$ref": "#/components/schemas/DocumentBlockContentRef"
22515
+ },
22516
+ {
22517
+ "$ref": "#/components/schemas/DocumentBlockCode"
22518
+ },
22519
+ {
22520
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
22521
+ },
22522
+ {
22523
+ "$ref": "#/components/schemas/DocumentBlockFile"
22524
+ },
22525
+ {
22526
+ "$ref": "#/components/schemas/DocumentBlockImages"
22527
+ },
22528
+ {
22529
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
22530
+ },
22531
+ {
22532
+ "$ref": "#/components/schemas/DocumentBlockHint"
22533
+ },
22534
+ {
22535
+ "$ref": "#/components/schemas/DocumentBlockQuote"
22536
+ },
22537
+ {
22538
+ "$ref": "#/components/schemas/DocumentBlockMath"
22539
+ },
22540
+ {
22541
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
22542
+ },
22543
+ {
22544
+ "$ref": "#/components/schemas/DocumentBlockTabs"
22545
+ },
22546
+ {
22547
+ "$ref": "#/components/schemas/DocumentBlockExpandable"
22548
+ }
22549
+ ]
22550
+ }
22551
+ },
22552
+ "data": {
22553
+ "type": "object",
22554
+ "properties": {
22555
+ "date": {
22556
+ "$ref": "#/components/schemas/Timestamp"
22557
+ },
22558
+ "tags": {
22559
+ "type": "array",
22560
+ "items": {
22561
+ "type": "string"
22562
+ }
22563
+ }
22564
+ },
22565
+ "required": [
22566
+ "date"
22567
+ ]
22568
+ },
22569
+ "isVoid": {
22570
+ "type": "boolean",
22571
+ "enum": [
22572
+ false
22573
+ ]
22574
+ }
22575
+ },
22576
+ "required": [
22577
+ "object",
22578
+ "type",
22579
+ "nodes",
22580
+ "data"
22581
+ ]
22582
+ },
22583
+ "DocumentBlockUpdates": {
22584
+ "type": "object",
22585
+ "properties": {
22586
+ "object": {
22587
+ "type": "string",
22588
+ "enum": [
22589
+ "block"
22590
+ ]
22591
+ },
22592
+ "type": {
22593
+ "type": "string",
22594
+ "enum": [
22595
+ "updates"
22596
+ ]
22597
+ },
22598
+ "key": {
22599
+ "type": "string"
22600
+ },
22601
+ "nodes": {
22602
+ "type": "array",
22603
+ "items": {
22604
+ "$ref": "#/components/schemas/DocumentBlockUpdate"
22605
+ }
22606
+ },
22607
+ "isVoid": {
22608
+ "type": "boolean",
22609
+ "enum": [
22610
+ false
22611
+ ]
22612
+ },
22613
+ "data": {
22614
+ "type": "object",
22615
+ "properties": {
22616
+ "format": {
22617
+ "type": "string",
22618
+ "enum": [
22619
+ "numeric",
22620
+ "full",
22621
+ "short"
22622
+ ],
22623
+ "default": "full"
22624
+ },
22625
+ "sticky": {
22626
+ "type": "boolean"
22627
+ }
22628
+ },
22629
+ "required": [
22630
+ "sticky",
22631
+ "format"
22632
+ ],
22633
+ "additionalProperties": false
22634
+ }
22635
+ },
22636
+ "required": [
22637
+ "object",
22638
+ "type",
22639
+ "nodes",
22640
+ "data"
22641
+ ]
22642
+ },
22365
22643
  "DocumentBlock": {
22366
22644
  "oneOf": [
22367
22645
  {
@@ -22462,6 +22740,12 @@
22462
22740
  },
22463
22741
  {
22464
22742
  "$ref": "#/components/schemas/DocumentBlockColumn"
22743
+ },
22744
+ {
22745
+ "$ref": "#/components/schemas/DocumentBlockUpdates"
22746
+ },
22747
+ {
22748
+ "$ref": "#/components/schemas/DocumentBlockUpdate"
22465
22749
  }
22466
22750
  ]
22467
22751
  },
@@ -22727,6 +23011,10 @@
22727
23011
  "type": "boolean",
22728
23012
  "description": "If true, the page is not indexable by search engine robots.",
22729
23013
  "default": false
23014
+ },
23015
+ "metaLinks": {
23016
+ "description": "Meta links associated with the page.",
23017
+ "$ref": "#/components/schemas/RevisionPageMetaLinks"
22730
23018
  }
22731
23019
  },
22732
23020
  "required": [
@@ -23328,6 +23616,30 @@
23328
23616
  "$ref": "#/components/schemas/VariableValue"
23329
23617
  }
23330
23618
  },
23619
+ "RevisionPageMetaLinkTarget": {
23620
+ "oneOf": [
23621
+ {
23622
+ "$ref": "#/components/schemas/ContentRefPage"
23623
+ },
23624
+ {
23625
+ "$ref": "#/components/schemas/ContentRefURL"
23626
+ }
23627
+ ]
23628
+ },
23629
+ "RevisionPageMetaLinks": {
23630
+ "type": "object",
23631
+ "properties": {
23632
+ "canonical": {
23633
+ "$ref": "#/components/schemas/RevisionPageMetaLinkTarget"
23634
+ },
23635
+ "alternates": {
23636
+ "type": "array",
23637
+ "items": {
23638
+ "$ref": "#/components/schemas/RevisionPageMetaLinkTarget"
23639
+ }
23640
+ }
23641
+ }
23642
+ },
23331
23643
  "ComputedContentSourceDocumentOpenAPI": {
23332
23644
  "allOf": [
23333
23645
  {
@@ -28734,6 +29046,7 @@
28734
29046
  "description": "A list of all premium customizations.",
28735
29047
  "enum": [
28736
29048
  "header-logo",
29049
+ "header-primary-link",
28737
29050
  "theme-preset",
28738
29051
  "premium-fonts",
28739
29052
  "custom-icons",
@@ -33888,6 +34201,10 @@
33888
34201
  "logo": {
33889
34202
  "$ref": "#/components/schemas/CustomizationThemedURL"
33890
34203
  },
34204
+ "primaryLink": {
34205
+ "description": "Destination to open when visitors click the site title/logo in the header.",
34206
+ "$ref": "#/components/schemas/ContentRef"
34207
+ },
33891
34208
  "backgroundColor": {
33892
34209
  "deprecated": true,
33893
34210
  "description": "Color of the background in the header. This value is now deprecated in favour of the new theming colors.",
package/spec/openapi.yaml CHANGED
@@ -1342,6 +1342,24 @@ paths:
1342
1342
  type: array
1343
1343
  items:
1344
1344
  $ref: "#/components/schemas/ContentLocation"
1345
+ "/spaces/{spaceId}/content/page/{pageId}/meta-links":
1346
+ get:
1347
+ operationId: listSpacePageMetaLinks
1348
+ summary: List all meta links for a space page
1349
+ tags:
1350
+ - space-content
1351
+ security:
1352
+ - user: []
1353
+ parameters:
1354
+ - $ref: "#/components/parameters/spaceId"
1355
+ - $ref: "#/components/parameters/pageId"
1356
+ responses:
1357
+ "200":
1358
+ description: OK
1359
+ content:
1360
+ application/json:
1361
+ schema:
1362
+ $ref: "#/components/schemas/RevisionPageMetaLinks"
1345
1363
  "/spaces/{spaceId}/content/path/{pagePath}":
1346
1364
  get:
1347
1365
  operationId: getPageByPath
@@ -2420,6 +2438,25 @@ paths:
2420
2438
  type: array
2421
2439
  items:
2422
2440
  $ref: "#/components/schemas/ContentLocation"
2441
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links":
2442
+ get:
2443
+ operationId: listChangeRequestPageMetaLinks
2444
+ summary: List all meta links of a change request page
2445
+ tags:
2446
+ - change-request-content
2447
+ security:
2448
+ - user: []
2449
+ parameters:
2450
+ - $ref: "#/components/parameters/spaceId"
2451
+ - $ref: "#/components/parameters/changeRequestId"
2452
+ - $ref: "#/components/parameters/pageId"
2453
+ responses:
2454
+ "200":
2455
+ description: OK
2456
+ content:
2457
+ application/json:
2458
+ schema:
2459
+ $ref: "#/components/schemas/RevisionPageMetaLinks"
2423
2460
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}":
2424
2461
  get:
2425
2462
  operationId: getReusableContentInChangeRequestById
@@ -2697,6 +2734,25 @@ paths:
2697
2734
  oneOf:
2698
2735
  - $ref: "#/components/schemas/RevisionPageDocument"
2699
2736
  - $ref: "#/components/schemas/RevisionPageGroup"
2737
+ "/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links":
2738
+ get:
2739
+ operationId: listRevisionPageMetaLinks
2740
+ summary: List all meta links for a revision page
2741
+ tags:
2742
+ - space-content
2743
+ security:
2744
+ - user: []
2745
+ parameters:
2746
+ - $ref: "#/components/parameters/spaceId"
2747
+ - $ref: "#/components/parameters/revisionId"
2748
+ - $ref: "#/components/parameters/pageId"
2749
+ responses:
2750
+ "200":
2751
+ description: OK
2752
+ content:
2753
+ application/json:
2754
+ schema:
2755
+ $ref: "#/components/schemas/RevisionPageMetaLinks"
2700
2756
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}":
2701
2757
  get:
2702
2758
  operationId: getPageInChangeRequestByPath
@@ -8291,6 +8347,14 @@ paths:
8291
8347
  nullable: true
8292
8348
  enum:
8293
8349
  - null
8350
+ primaryLink:
8351
+ description: The destination to open when visitors click the site title/logo in the header. Set to null to reset the override.
8352
+ oneOf:
8353
+ - $ref: "#/components/schemas/ContentRef"
8354
+ - type: string
8355
+ nullable: true
8356
+ enum:
8357
+ - null
8294
8358
  backgroundColor:
8295
8359
  description: The background color used in the header. Set to null to reset the override.
8296
8360
  oneOf:
@@ -13202,6 +13266,98 @@ components:
13202
13266
  - data
13203
13267
  - nodes
13204
13268
  - isVoid
13269
+ DocumentBlockUpdate:
13270
+ type: object
13271
+ properties:
13272
+ object:
13273
+ type: string
13274
+ enum:
13275
+ - block
13276
+ type:
13277
+ type: string
13278
+ enum:
13279
+ - update
13280
+ key:
13281
+ type: string
13282
+ nodes:
13283
+ type: array
13284
+ items:
13285
+ oneOf:
13286
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
13287
+ - $ref: "#/components/schemas/DocumentBlockContentRef"
13288
+ - $ref: "#/components/schemas/DocumentBlockCode"
13289
+ - $ref: "#/components/schemas/DocumentBlockEmbed"
13290
+ - $ref: "#/components/schemas/DocumentBlockFile"
13291
+ - $ref: "#/components/schemas/DocumentBlockImages"
13292
+ - $ref: "#/components/schemas/DocumentBlockDrawing"
13293
+ - $ref: "#/components/schemas/DocumentBlockHint"
13294
+ - $ref: "#/components/schemas/DocumentBlockQuote"
13295
+ - $ref: "#/components/schemas/DocumentBlockMath"
13296
+ - $ref: "#/components/schemas/DocumentBlockIntegration"
13297
+ - $ref: "#/components/schemas/DocumentBlockTabs"
13298
+ - $ref: "#/components/schemas/DocumentBlockExpandable"
13299
+ data:
13300
+ type: object
13301
+ properties:
13302
+ date:
13303
+ $ref: "#/components/schemas/Timestamp"
13304
+ tags:
13305
+ type: array
13306
+ items:
13307
+ type: string
13308
+ required:
13309
+ - date
13310
+ isVoid:
13311
+ type: boolean
13312
+ enum:
13313
+ - false
13314
+ required:
13315
+ - object
13316
+ - type
13317
+ - nodes
13318
+ - data
13319
+ DocumentBlockUpdates:
13320
+ type: object
13321
+ properties:
13322
+ object:
13323
+ type: string
13324
+ enum:
13325
+ - block
13326
+ type:
13327
+ type: string
13328
+ enum:
13329
+ - updates
13330
+ key:
13331
+ type: string
13332
+ nodes:
13333
+ type: array
13334
+ items:
13335
+ $ref: "#/components/schemas/DocumentBlockUpdate"
13336
+ isVoid:
13337
+ type: boolean
13338
+ enum:
13339
+ - false
13340
+ data:
13341
+ type: object
13342
+ properties:
13343
+ format:
13344
+ type: string
13345
+ enum:
13346
+ - numeric
13347
+ - full
13348
+ - short
13349
+ default: full
13350
+ sticky:
13351
+ type: boolean
13352
+ required:
13353
+ - sticky
13354
+ - format
13355
+ additionalProperties: false
13356
+ required:
13357
+ - object
13358
+ - type
13359
+ - nodes
13360
+ - data
13205
13361
  DocumentBlock:
13206
13362
  oneOf:
13207
13363
  - $ref: "#/components/schemas/DocumentBlockParagraph"
@@ -13237,6 +13393,8 @@ components:
13237
13393
  - $ref: "#/components/schemas/DocumentBlockStepperStep"
13238
13394
  - $ref: "#/components/schemas/DocumentBlockColumns"
13239
13395
  - $ref: "#/components/schemas/DocumentBlockColumn"
13396
+ - $ref: "#/components/schemas/DocumentBlockUpdates"
13397
+ - $ref: "#/components/schemas/DocumentBlockUpdate"
13240
13398
  DocumentInlineMention:
13241
13399
  type: object
13242
13400
  properties:
@@ -13405,6 +13563,9 @@ components:
13405
13563
  type: boolean
13406
13564
  description: If true, the page is not indexable by search engine robots.
13407
13565
  default: false
13566
+ metaLinks:
13567
+ description: Meta links associated with the page.
13568
+ $ref: "#/components/schemas/RevisionPageMetaLinks"
13408
13569
  required:
13409
13570
  - kind
13410
13571
  - type
@@ -13784,6 +13945,19 @@ components:
13784
13945
  type: object
13785
13946
  additionalProperties:
13786
13947
  $ref: "#/components/schemas/VariableValue"
13948
+ RevisionPageMetaLinkTarget:
13949
+ oneOf:
13950
+ - $ref: "#/components/schemas/ContentRefPage"
13951
+ - $ref: "#/components/schemas/ContentRefURL"
13952
+ RevisionPageMetaLinks:
13953
+ type: object
13954
+ properties:
13955
+ canonical:
13956
+ $ref: "#/components/schemas/RevisionPageMetaLinkTarget"
13957
+ alternates:
13958
+ type: array
13959
+ items:
13960
+ $ref: "#/components/schemas/RevisionPageMetaLinkTarget"
13787
13961
  ComputedContentSourceDocumentOpenAPI:
13788
13962
  allOf:
13789
13963
  - $ref: "#/components/schemas/ComputedContentSourceOpenAPIBase"
@@ -17422,6 +17596,7 @@ components:
17422
17596
  description: A list of all premium customizations.
17423
17597
  enum:
17424
17598
  - header-logo
17599
+ - header-primary-link
17425
17600
  - theme-preset
17426
17601
  - premium-fonts
17427
17602
  - custom-icons
@@ -20937,6 +21112,9 @@ components:
20937
21112
  $ref: "#/components/schemas/CustomizationHeaderPreset"
20938
21113
  logo:
20939
21114
  $ref: "#/components/schemas/CustomizationThemedURL"
21115
+ primaryLink:
21116
+ description: Destination to open when visitors click the site title/logo in the header.
21117
+ $ref: "#/components/schemas/ContentRef"
20940
21118
  backgroundColor:
20941
21119
  deprecated: true
20942
21120
  description: Color of the background in the header. This value is now deprecated in favour of the new theming colors.