@gitbook/api 0.64.1 → 0.66.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
@@ -441,7 +441,7 @@ export interface DocumentBlockImage {
441
441
  alt?: string;
442
442
  };
443
443
  fragments: (DocumentFragment & {
444
- type: 'caption';
444
+ fragment: 'caption';
445
445
  nodes: DocumentBlockParagraph[];
446
446
  })[];
447
447
  isVoid: true;
@@ -455,7 +455,7 @@ export interface DocumentBlockImages {
455
455
  fullWidth?: boolean;
456
456
  };
457
457
  nodes: DocumentBlockImage[];
458
- isVoid: true;
458
+ isVoid: false;
459
459
  }
460
460
  export interface DocumentBlockFile {
461
461
  object: 'block';
@@ -520,14 +520,18 @@ export interface DocumentBlockContentRef {
520
520
  };
521
521
  isVoid: true;
522
522
  }
523
+ export type PlainObject = any;
523
524
  /** Action to open an overlay modal defined by "componentId". */
524
525
  export type ContentKitDefaultAction = {
525
526
  action: '@ui.modal.open';
526
527
  componentId: string;
527
- props: object;
528
+ props: PlainObject;
528
529
  } | {
529
530
  action: '@ui.modal.close';
530
- returnValue: object;
531
+ returnValue: PlainObject;
532
+ } | {
533
+ action: '@ui.submit';
534
+ returnValue: PlainObject;
531
535
  } | {
532
536
  action: '@ui.url.open';
533
537
  url: string;
@@ -536,7 +540,7 @@ export type ContentKitDefaultAction = {
536
540
  url: string;
537
541
  } | {
538
542
  action: '@editor.node.updateProps';
539
- props: object;
543
+ props: PlainObject;
540
544
  };
541
545
  /** Custom action to re-render the block. */
542
546
  export type ContentKitAction = {
@@ -553,7 +557,7 @@ export interface DocumentBlockIntegration {
553
557
  /** ID of the block in the integration */
554
558
  block: string;
555
559
  /** Properties passed to the block during rendering */
556
- props: Record<string, any>;
560
+ props: PlainObject;
557
561
  /** Custom action to re-render the block. */
558
562
  action?: ContentKitAction;
559
563
  /**
@@ -1037,7 +1041,7 @@ export interface RevisionPageBase {
1037
1041
  id: string;
1038
1042
  /**
1039
1043
  * Title of the page
1040
- * @maxLength 100
1044
+ * @minLength 1
1041
1045
  */
1042
1046
  title: string;
1043
1047
  /** Emoji of the page, if one has been set. */
@@ -1064,7 +1068,7 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
1064
1068
  description?: string;
1065
1069
  /** ID of the document with the page body. If undefined, the page is empty. */
1066
1070
  documentId?: string;
1067
- pages: (RevisionPageDocument | RevisionPageLink)[];
1071
+ pages: (RevisionPageDocument | RevisionPageLink | RevisionPageComputed)[];
1068
1072
  git?: GitSyncBlob;
1069
1073
  layout: RevisionPageLayoutOptions;
1070
1074
  cover?: RevisionPageDocumentCover;
@@ -1083,6 +1087,8 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
1083
1087
  * @default false
1084
1088
  */
1085
1089
  noRobotsIndex?: boolean;
1090
+ /** Defined when the page was generated by a computed content. */
1091
+ computed?: ComputedContentSource;
1086
1092
  };
1087
1093
  export type RevisionPageLink = RevisionPageBase & {
1088
1094
  /** @deprecated */
@@ -1097,6 +1103,23 @@ export type RevisionPageLink = RevisionPageBase & {
1097
1103
  */
1098
1104
  hidden?: boolean;
1099
1105
  };
1106
+ export type ComputedContentDependency = ContentRefSpace;
1107
+ /** Parameters for a computed content */
1108
+ export interface ComputedContentSource {
1109
+ /** Name of the integration */
1110
+ integration: string;
1111
+ /** Identifier of the source used for computation */
1112
+ source: string;
1113
+ /** Properties to be passed to the computation */
1114
+ props: PlainObject;
1115
+ /** Dependencies the computation depend on. When the dependency's targets are updated, the computation will be updated. */
1116
+ dependsOn?: ComputedContentDependency[];
1117
+ }
1118
+ export type RevisionPageComputed = RevisionPageBase & {
1119
+ type: 'computed';
1120
+ /** Parameters for a computed content */
1121
+ computed: ComputedContentSource;
1122
+ };
1100
1123
  export interface GitSyncBlob {
1101
1124
  /** SHA for the blob */
1102
1125
  oid: string;
@@ -1253,9 +1276,9 @@ export type RevisionPageGroup = RevisionPageBase & {
1253
1276
  * @default false
1254
1277
  */
1255
1278
  noRobotsIndex?: boolean;
1256
- pages: (RevisionPageDocument | RevisionPageLink)[];
1279
+ pages: (RevisionPageDocument | RevisionPageLink | RevisionPageComputed)[];
1257
1280
  };
1258
- export type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
1281
+ export type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink | RevisionPageComputed;
1259
1282
  export interface RevisionFile {
1260
1283
  id: string;
1261
1284
  name: string;
@@ -1370,7 +1393,11 @@ export type RevisionTypeUpdate = RevisionBase & {
1370
1393
  /** Revision created when updating a change request with changes from primary. */
1371
1394
  type: 'update';
1372
1395
  };
1373
- export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate;
1396
+ export type RevisionTypeComputed = RevisionBase & {
1397
+ /** Virtual revision, computed from a source revision */
1398
+ type: 'computed';
1399
+ };
1400
+ export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
1374
1401
  export declare enum ImportContentSource {
1375
1402
  Website = "website",
1376
1403
  Docx = "docx",
@@ -1644,6 +1671,32 @@ export declare enum IntegrationCategory {
1644
1671
  export type IntegrationCategories = IntegrationCategory[];
1645
1672
  /** Custom blocks defined by this integration. */
1646
1673
  export type IntegrationBlocks = IntegrationBlock[];
1674
+ /** ContentKit component for configuration */
1675
+ export interface IntegrationConfigurationComponent {
1676
+ /** ID of the ContentKit component defined in the integration */
1677
+ componentId: string;
1678
+ }
1679
+ /** Definition of a content source provided by the integration. */
1680
+ export interface IntegrationContentSource {
1681
+ /** Unique ID in the integration for the source. */
1682
+ id: string;
1683
+ /**
1684
+ * Short descriptive title for the source.
1685
+ * @minLength 2
1686
+ * @maxLength 40
1687
+ */
1688
+ title: string;
1689
+ /**
1690
+ * Long descriptive text for the source.
1691
+ * @minLength 0
1692
+ * @maxLength 150
1693
+ */
1694
+ description?: string;
1695
+ /** URL of the icon to represent this source. */
1696
+ icon?: string;
1697
+ /** ContentKit component for configuration */
1698
+ configuration?: IntegrationConfigurationComponent;
1699
+ }
1647
1700
  /** Schema for a configuration */
1648
1701
  export interface IntegrationConfigurationSchema {
1649
1702
  properties: Record<string, {
@@ -1668,11 +1721,6 @@ export interface IntegrationConfigurationSchema {
1668
1721
  /** @uniqueItems true */
1669
1722
  required?: string[];
1670
1723
  }
1671
- /** ContentKit component for configuration */
1672
- export interface IntegrationConfigurationComponent {
1673
- /** ID of the ContentKit component defined in the integration */
1674
- componentId: string;
1675
- }
1676
1724
  export type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
1677
1725
  export interface IntegrationConfigurations {
1678
1726
  account?: IntegrationConfiguration;
@@ -1751,6 +1799,7 @@ export interface Integration {
1751
1799
  categories: IntegrationCategories;
1752
1800
  /** Custom blocks defined by this integration. */
1753
1801
  blocks?: IntegrationBlocks;
1802
+ contentSources?: IntegrationContentSource[];
1754
1803
  configurations?: IntegrationConfigurations;
1755
1804
  /** External urls configured by the developer of the integration */
1756
1805
  externalLinks: IntegrationExternalLinks;
@@ -1900,6 +1949,15 @@ export interface ContentReferencesStats {
1900
1949
  changeRequest?: number;
1901
1950
  };
1902
1951
  }
1952
+ /**
1953
+ * Indicator of the relationship with the content ref target.
1954
+ * - `reference` - The content soft-references the ref target
1955
+ * - `dependsOn` - The content depends on the ref target
1956
+ */
1957
+ export declare enum ContentReferenceRelation {
1958
+ Reference = "reference",
1959
+ DependsOn = "dependsOn"
1960
+ }
1903
1961
  export interface ContentReferenceUsage {
1904
1962
  /**
1905
1963
  * Text to display to represent the reference. Possible values include:
@@ -1908,6 +1966,12 @@ export interface ContentReferenceUsage {
1908
1966
  * - `in-app` - The target is a URL link pointing to an internal location in the app.
1909
1967
  */
1910
1968
  status: ContentReferenceStatus;
1969
+ /**
1970
+ * Indicator of the relationship with the content ref target.
1971
+ * - `reference` - The content soft-references the ref target
1972
+ * - `dependsOn` - The content depends on the ref target
1973
+ */
1974
+ relation: ContentReferenceRelation;
1911
1975
  /** The reference target where a list of pages are pointing at */
1912
1976
  targetReference?: ContentLocation;
1913
1977
  /** Pages locations where a link to the target is found. */
@@ -2085,7 +2149,8 @@ export interface UserContributor {
2085
2149
  export declare enum RevisionPageType {
2086
2150
  Document = "document",
2087
2151
  Group = "group",
2088
- Link = "link"
2152
+ Link = "link",
2153
+ Computed = "computed"
2089
2154
  }
2090
2155
  export interface ChangedRevisionPage {
2091
2156
  id: string;
@@ -2528,6 +2593,7 @@ export interface PublishIntegration {
2528
2593
  categories?: IntegrationCategories;
2529
2594
  /** Custom blocks defined by this integration. */
2530
2595
  blocks?: IntegrationBlocks;
2596
+ contentSources?: IntegrationContentSource[];
2531
2597
  /** External urls configured by the developer of the integration */
2532
2598
  externalLinks?: IntegrationExternalLinks;
2533
2599
  configurations?: IntegrationConfigurations;
@@ -2825,6 +2891,12 @@ export type ContentKitContextConfigurationSite = ContentKitContextBase & {
2825
2891
  /** ID of the site the site-installation configuration is in. */
2826
2892
  siteId: string;
2827
2893
  };
2894
+ /** Context while rendering the configuration flow of a content source. */
2895
+ export type ContentKitContextConfigurationContentSource = ContentKitContextBase & {
2896
+ type: 'configuration_contentsource';
2897
+ /** ID of the organization the content source installation configuration is in. */
2898
+ organizationId: string;
2899
+ };
2828
2900
  /** Context while rendering in a document. */
2829
2901
  export type ContentKitContextDocument = ContentKitContextBase & {
2830
2902
  type: 'document';
@@ -2833,7 +2905,7 @@ export type ContentKitContextDocument = ContentKitContextBase & {
2833
2905
  editable: boolean;
2834
2906
  };
2835
2907
  /** Object representing the context in which a ContentKit component is rendered. */
2836
- export type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextConfigurationSite | ContentKitContextDocument;
2908
+ export type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextConfigurationSite | ContentKitContextConfigurationContentSource | ContentKitContextDocument;
2837
2909
  /** Event generated when rendering a UI */
2838
2910
  export type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent) & {
2839
2911
  auth?: {
@@ -2850,8 +2922,28 @@ export type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent) & {
2850
2922
  context: ContentKitContext;
2851
2923
  action?: object;
2852
2924
  };
2925
+ /** Generic event when computing the content of a space */
2926
+ export type ContentComputeEvent = SpaceEvent & {
2927
+ sourceId: string;
2928
+ /** Properties passed to the rendering. */
2929
+ props: PlainObject;
2930
+ };
2931
+ /**
2932
+ * Event generated when computing the document of a pages.
2933
+ * The integration should respond with a `Document`.
2934
+ */
2935
+ export type ContentComputeDocumentEvent = ContentComputeEvent & {
2936
+ type: 'content_compute_document';
2937
+ };
2938
+ /**
2939
+ * Event generated when computing revision in a content.
2940
+ * The integration should respond with an array of pages and files.
2941
+ */
2942
+ export type ContentComputeRevisionEvent = ContentComputeEvent & {
2943
+ type: 'content_compute_revision';
2944
+ };
2853
2945
  /** Any event that can be received from GitBook. */
2854
- export type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent;
2946
+ export type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
2855
2947
  export interface IntegrationEvent {
2856
2948
  /** Unique ID of the event. */
2857
2949
  id: string;
@@ -3221,18 +3313,26 @@ export interface ContentKitConfiguration {
3221
3313
  }
3222
3314
  /** Element used as root */
3223
3315
  export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
3224
- /** Output of the integration when rendering an UI. */
3225
- export interface ContentKitRenderOutput {
3316
+ /** Output of type element in the lifecycle of the component. */
3317
+ export interface ContentKitRenderOutputElement {
3318
+ type?: 'element';
3226
3319
  /** Element used as root */
3227
3320
  element: ContentKitRootElement;
3228
3321
  state: object;
3229
- props: object;
3322
+ props: PlainObject;
3230
3323
  }
3324
+ /** Output of completed lifecycle of the component. */
3325
+ export interface ContentKitRenderOutputComplete {
3326
+ type: 'complete';
3327
+ returnValue?: object;
3328
+ }
3329
+ /** Output of the integration when rendering a UI. */
3330
+ export type ContentKitRenderOutput = ContentKitRenderOutputElement | ContentKitRenderOutputComplete;
3231
3331
  export interface RenderIntegrationUI {
3232
3332
  /** ID of the component to render in the integration. */
3233
3333
  componentId: string;
3234
3334
  /** Current properties of the UI. */
3235
- props: object;
3335
+ props: PlainObject;
3236
3336
  /** Current local state of the UI. */
3237
3337
  state?: object;
3238
3338
  /** Object representing the context in which a ContentKit component is rendered. */
@@ -3601,6 +3701,8 @@ export type OrganizationUsageSites = {
3601
3701
  premium: number;
3602
3702
  /** Count of all ultimate sites */
3603
3703
  ultimate: number;
3704
+ /** Count of all sponsored sites */
3705
+ sponsored: number;
3604
3706
  };
3605
3707
  /** Team members usage metrics of an organization */
3606
3708
  export interface OrganizationUsageTeams {
@@ -3766,6 +3868,7 @@ export declare enum SiteType {
3766
3868
  Basic = "basic",
3767
3869
  Premium = "premium",
3768
3870
  Ultimate = "ultimate",
3871
+ Sponsored = "sponsored",
3769
3872
  LegacyBasic = "legacy-basic",
3770
3873
  LegacyPremium = "legacy-premium"
3771
3874
  }
@@ -3887,6 +3990,12 @@ export type BillingOperationPreviewResponse = {
3887
3990
  plan: BillingProduct;
3888
3991
  invoice?: BillingInvoicePreview;
3889
3992
  };
3993
+ /**
3994
+ * Title of the site section
3995
+ * @minLength 2
3996
+ * @maxLength 128
3997
+ */
3998
+ export type SiteSectionTitle = string;
3890
3999
  /**
3891
4000
  * Path to the section on the site
3892
4001
  * @minLength 1
@@ -3929,7 +4038,7 @@ export interface SiteSection {
3929
4038
  /** Unique identifier of the site section */
3930
4039
  id: string;
3931
4040
  /** Title of the site section */
3932
- title: string;
4041
+ title: SiteSectionTitle;
3933
4042
  /** Whether this is the default section for the site */
3934
4043
  default?: boolean;
3935
4044
  /** Path to the section on the site */
@@ -4383,6 +4492,64 @@ export interface ContentPublishingAuth {
4383
4492
  fallbackURL?: string;
4384
4493
  }
4385
4494
  export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
4495
+ export type InputPageBase = {
4496
+ /**
4497
+ * Optional unique identifier for the page.
4498
+ * It can be used to reference pages in document links.
4499
+ */
4500
+ id?: string;
4501
+ /** @minLength 1 */
4502
+ title: string;
4503
+ } & ({
4504
+ /** Emoji of the page. */
4505
+ emoji: Emoji;
4506
+ } | {
4507
+ /** Icon of the page. */
4508
+ icon?: Icon;
4509
+ });
4510
+ export type InputPageDocument = InputPageBase & {
4511
+ type: 'document';
4512
+ /**
4513
+ * @minLength 0
4514
+ * @maxLength 300
4515
+ */
4516
+ description?: string;
4517
+ /** Page's slug in its direct parent */
4518
+ slug?: string;
4519
+ pages?: (InputPageDocument | InputPageLink | InputPageComputed)[];
4520
+ /** Parameters for a computed content */
4521
+ computed?: ComputedContentSource;
4522
+ };
4523
+ export type InputPageLink = InputPageBase & {
4524
+ type: 'link';
4525
+ /** A relative reference to content in GitBook. */
4526
+ target: ContentRef;
4527
+ };
4528
+ export type InputPageComputed = InputPageBase & {
4529
+ type: 'computed';
4530
+ /** Parameters for a computed content */
4531
+ computed: ComputedContentSource;
4532
+ };
4533
+ export type InputPageGroup = InputPageBase & {
4534
+ type: 'group';
4535
+ /** Page's slug in its direct parent */
4536
+ slug?: string;
4537
+ /** @minLength 1 */
4538
+ pages: (InputPageDocument | InputPageLink | InputPageComputed)[];
4539
+ };
4540
+ export type InputPage = InputPageDocument | InputPageLink | InputPageComputed | InputPageGroup;
4541
+ export interface InputFile {
4542
+ id?: string;
4543
+ name: string;
4544
+ contentType: string;
4545
+ downloadURL: string;
4546
+ size: number;
4547
+ /** For images, it contains the dimensions of it. */
4548
+ dimensions?: {
4549
+ width: number;
4550
+ height: number;
4551
+ };
4552
+ }
4386
4553
  /** The type of semantic change. */
4387
4554
  export declare enum RevisionSemanticChangeType {
4388
4555
  PageCreated = "page_created",
@@ -4440,6 +4607,15 @@ export interface IntegrationEnvironment {
4440
4607
  installation?: string;
4441
4608
  };
4442
4609
  }
4610
+ /** Response expected for an event of type `content_compute_document`. */
4611
+ export interface ContentComputeDocumentEventResponse {
4612
+ document: Document;
4613
+ }
4614
+ /** Response expected for an event of type `content_compute_pages`. */
4615
+ export interface ContentComputeRevisionEventResponse {
4616
+ pages?: InputPage[];
4617
+ files?: InputFile[];
4618
+ }
4443
4619
  export declare enum BillingTrialStatus {
4444
4620
  Notapplicable = "notapplicable",
4445
4621
  None = "none",
@@ -5353,6 +5529,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5353
5529
  * @default true
5354
5530
  */
5355
5531
  metadata?: boolean;
5532
+ /**
5533
+ * If `false` is passed, content will not be computed
5534
+ * @default true
5535
+ */
5536
+ computed?: boolean;
5356
5537
  }, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
5357
5538
  /**
5358
5539
  * No description
@@ -5377,6 +5558,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5377
5558
  * @default true
5378
5559
  */
5379
5560
  metadata?: boolean;
5561
+ /**
5562
+ * If `false` is passed, content will not be computed
5563
+ * @default true
5564
+ */
5565
+ computed?: boolean;
5380
5566
  }, params?: RequestParams) => Promise<HttpResponse<{
5381
5567
  pages: RevisionPage[];
5382
5568
  }, Error>>;
@@ -5402,6 +5588,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5402
5588
  * @default true
5403
5589
  */
5404
5590
  metadata?: boolean;
5591
+ /**
5592
+ * If `false` is passed, content will not be computed
5593
+ * @default true
5594
+ */
5595
+ computed?: boolean;
5405
5596
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5406
5597
  items: RevisionFile[];
5407
5598
  }, Error>>;
@@ -5419,6 +5610,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5419
5610
  * @default true
5420
5611
  */
5421
5612
  metadata?: boolean;
5613
+ /**
5614
+ * If `false` is passed, content will not be computed
5615
+ * @default true
5616
+ */
5617
+ computed?: boolean;
5422
5618
  }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
5423
5619
  /**
5424
5620
  * No description
@@ -5457,6 +5653,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5457
5653
  * @default true
5458
5654
  */
5459
5655
  metadata?: boolean;
5656
+ /**
5657
+ * If `false` is passed, content will not be computed
5658
+ * @default true
5659
+ */
5660
+ computed?: boolean;
5460
5661
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
5461
5662
  /**
5462
5663
  * No description
@@ -5533,7 +5734,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5533
5734
  * @default true
5534
5735
  */
5535
5736
  metadata?: boolean;
5737
+ /**
5738
+ * If `false` is passed, content will not be computed
5739
+ * @default true
5740
+ */
5741
+ computed?: boolean;
5536
5742
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
5743
+ /**
5744
+ * No description
5745
+ *
5746
+ * @name ComputePageDocument
5747
+ * @summary Get the document for a page in a computed content.
5748
+ * @request POST:/spaces/{spaceId}/content/computed/document
5749
+ * @secure
5750
+ */
5751
+ computePageDocument: (spaceId: string, data: {
5752
+ /** Parameters for a computed content */
5753
+ source: ComputedContentSource;
5754
+ }, query?: {
5755
+ /** Output format for the content. */
5756
+ format?: "document" | "markdown";
5757
+ }, params?: RequestParams) => Promise<HttpResponse<Document, Error>>;
5537
5758
  /**
5538
5759
  * No description
5539
5760
  *
@@ -5938,6 +6159,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5938
6159
  * @default true
5939
6160
  */
5940
6161
  metadata?: boolean;
6162
+ /**
6163
+ * If `false` is passed, content will not be computed
6164
+ * @default true
6165
+ */
6166
+ computed?: boolean;
5941
6167
  }, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
5942
6168
  /**
5943
6169
  * No description
@@ -5962,6 +6188,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5962
6188
  * @default true
5963
6189
  */
5964
6190
  metadata?: boolean;
6191
+ /**
6192
+ * If `false` is passed, content will not be computed
6193
+ * @default true
6194
+ */
6195
+ computed?: boolean;
5965
6196
  }, params?: RequestParams) => Promise<HttpResponse<{
5966
6197
  pages: RevisionPage[];
5967
6198
  }, Error>>;
@@ -5987,6 +6218,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5987
6218
  * @default true
5988
6219
  */
5989
6220
  metadata?: boolean;
6221
+ /**
6222
+ * If `false` is passed, content will not be computed
6223
+ * @default true
6224
+ */
6225
+ computed?: boolean;
5990
6226
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5991
6227
  items: RevisionFile[];
5992
6228
  }, Error>>;
@@ -6004,6 +6240,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6004
6240
  * @default true
6005
6241
  */
6006
6242
  metadata?: boolean;
6243
+ /**
6244
+ * If `false` is passed, content will not be computed
6245
+ * @default true
6246
+ */
6247
+ computed?: boolean;
6007
6248
  }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
6008
6249
  /**
6009
6250
  * No description
@@ -6042,6 +6283,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6042
6283
  * @default true
6043
6284
  */
6044
6285
  metadata?: boolean;
6286
+ /**
6287
+ * If `false` is passed, content will not be computed
6288
+ * @default true
6289
+ */
6290
+ computed?: boolean;
6045
6291
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
6046
6292
  /**
6047
6293
  * No description
@@ -6111,6 +6357,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6111
6357
  * @default true
6112
6358
  */
6113
6359
  metadata?: boolean;
6360
+ /**
6361
+ * If `false` is passed, content will not be computed
6362
+ * @default true
6363
+ */
6364
+ computed?: boolean;
6114
6365
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
6115
6366
  /**
6116
6367
  * No description
@@ -6147,6 +6398,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6147
6398
  /** Temporary URL to print the content. The URL will work for 1h. */
6148
6399
  url: URL;
6149
6400
  }, Error>>;
6401
+ /**
6402
+ * No description
6403
+ *
6404
+ * @tags spaces
6405
+ * @name GetSyncedBlockContentInChangeRequest
6406
+ * @summary Get the content of a synced block in the context of a change request.
6407
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/synced-blocks/{syncedBlockId}/content
6408
+ * @secure
6409
+ */
6410
+ getSyncedBlockContentInChangeRequest: (spaceId: string, changeRequestId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<{
6411
+ document: JSONDocument;
6412
+ files: RevisionFile[];
6413
+ }, Error | {
6414
+ error: {
6415
+ /** @format int32 */
6416
+ code: 404;
6417
+ message: string;
6418
+ };
6419
+ }>>;
6150
6420
  /**
6151
6421
  * No description
6152
6422
  *
@@ -6161,6 +6431,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6161
6431
  * @default true
6162
6432
  */
6163
6433
  metadata?: boolean;
6434
+ /**
6435
+ * If `false` is passed, content will not be computed
6436
+ * @default true
6437
+ */
6438
+ computed?: boolean;
6164
6439
  }, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
6165
6440
  /**
6166
6441
  * No description
@@ -6176,6 +6451,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6176
6451
  * @default true
6177
6452
  */
6178
6453
  metadata?: boolean;
6454
+ /**
6455
+ * If `false` is passed, content will not be computed
6456
+ * @default true
6457
+ */
6458
+ computed?: boolean;
6179
6459
  /**
6180
6460
  * Limit the number of changes returned
6181
6461
  * @default 10
@@ -6196,6 +6476,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6196
6476
  * @default true
6197
6477
  */
6198
6478
  metadata?: boolean;
6479
+ /**
6480
+ * If `false` is passed, content will not be computed
6481
+ * @default true
6482
+ */
6483
+ computed?: boolean;
6199
6484
  }, params?: RequestParams) => Promise<HttpResponse<{
6200
6485
  pages: RevisionPage[];
6201
6486
  }, Error>>;
@@ -6221,6 +6506,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6221
6506
  * @default true
6222
6507
  */
6223
6508
  metadata?: boolean;
6509
+ /**
6510
+ * If `false` is passed, content will not be computed
6511
+ * @default true
6512
+ */
6513
+ computed?: boolean;
6224
6514
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6225
6515
  items: RevisionFile[];
6226
6516
  }, Error>>;
@@ -6238,6 +6528,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6238
6528
  * @default true
6239
6529
  */
6240
6530
  metadata?: boolean;
6531
+ /**
6532
+ * If `false` is passed, content will not be computed
6533
+ * @default true
6534
+ */
6535
+ computed?: boolean;
6241
6536
  }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
6242
6537
  /**
6243
6538
  * No description
@@ -6255,6 +6550,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6255
6550
  * @default true
6256
6551
  */
6257
6552
  metadata?: boolean;
6553
+ /**
6554
+ * If `false` is passed, content will not be computed
6555
+ * @default true
6556
+ */
6557
+ computed?: boolean;
6258
6558
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
6259
6559
  /**
6260
6560
  * No description
@@ -6272,6 +6572,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6272
6572
  * @default true
6273
6573
  */
6274
6574
  metadata?: boolean;
6575
+ /**
6576
+ * If `false` is passed, content will not be computed
6577
+ * @default true
6578
+ */
6579
+ computed?: boolean;
6275
6580
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
6276
6581
  /**
6277
6582
  * No description
@@ -8556,8 +8861,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8556
8861
  createSyncedBlock: (organizationId: string, data: {
8557
8862
  /** Title of synced block */
8558
8863
  title?: string;
8559
- /** The content of the synced block. For now, only JSON documents are supported. */
8560
- content: Document;
8561
8864
  }, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
8562
8865
  /**
8563
8866
  * No description
@@ -8599,14 +8902,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8599
8902
  *
8600
8903
  * @tags organizations
8601
8904
  * @name GetSyncedBlockContent
8602
- * @summary Get a synced block content
8905
+ * @summary Get the content of a synced block.
8603
8906
  * @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content
8604
8907
  * @secure
8605
8908
  */
8606
8909
  getSyncedBlockContent: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<{
8607
8910
  document: JSONDocument;
8608
8911
  files: RevisionFile[];
8609
- }, Error>>;
8912
+ }, Error | {
8913
+ error: {
8914
+ /** @format int32 */
8915
+ code: 404;
8916
+ message: string;
8917
+ };
8918
+ }>>;
8610
8919
  /**
8611
8920
  * No description
8612
8921
  *
@@ -8808,8 +9117,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8808
9117
  visibility?: SiteVisibility;
8809
9118
  /** Basename for the site. For e.g. api */
8810
9119
  basename?: SiteBasename;
8811
- /** ID of the site-space to be used as the default */
9120
+ /** ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section. */
8812
9121
  defaultSiteSpace?: string;
9122
+ /** ID of the site-section to be used as the default. */
9123
+ defaultSiteSection?: string;
8813
9124
  }, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
8814
9125
  /**
8815
9126
  * No description
@@ -9226,8 +9537,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9226
9537
  * @secure
9227
9538
  */
9228
9539
  updateSiteSectionById: (organizationId: string, siteId: string, siteSectionId: string, data: {
9540
+ /** Title of the site section */
9541
+ title?: SiteSectionTitle;
9229
9542
  /** Path to the section on the site */
9230
9543
  path?: SiteSectionPath;
9544
+ /** ID of the site-space to be used as the default in this section. */
9545
+ defaultSiteSpace?: string;
9231
9546
  }, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
9232
9547
  /**
9233
9548
  * No description