@gitbook/api 0.35.0 → 0.36.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
@@ -1685,6 +1685,11 @@ export declare type OrganizationInvite = {
1685
1685
  /** The collection the member has been invited to */
1686
1686
  collection: Collection;
1687
1687
  });
1688
+ export interface OrganizationPointer {
1689
+ type: 'organization';
1690
+ /** Unique identifier for the organization */
1691
+ organization: string;
1692
+ }
1688
1693
  export interface Capture {
1689
1694
  /** Unique identifier for the capture */
1690
1695
  id: string;
@@ -1844,11 +1849,6 @@ export interface SyncedBlock {
1844
1849
  organization: string;
1845
1850
  /** @format date-time */
1846
1851
  createdAt: string;
1847
- /**
1848
- * Timestamp of when the synced block was last edited, if it has been edited since its creation.
1849
- * @format date-time
1850
- */
1851
- editedAt?: string;
1852
1852
  /**
1853
1853
  * Title describing the synced block.
1854
1854
  * @maxLength 100
@@ -1897,28 +1897,31 @@ export interface ContentAuditSourceSection {
1897
1897
  space: Space;
1898
1898
  page: RevisionPageDocument;
1899
1899
  }
1900
- export declare type ContentReferenceUsage = {
1900
+ export interface ContentReferenceUsage {
1901
1901
  /**
1902
1902
  * Text to display to represent the reference. Possible values include:
1903
+ * - `ok` - No problems detected for this content reference.
1903
1904
  * - `broken` - The target does not exist in the revision.
1904
1905
  * - `in-app` - The target is a URL link pointing to an internal location in the app.
1905
1906
  */
1906
- status?: ContentReferenceStatus;
1907
+ status: ContentReferenceStatus;
1907
1908
  /** The reference target where a list of pages are pointing at */
1908
1909
  targetReference: ContentReferenceResolved;
1909
1910
  /** All pages where the target is being referenced. */
1910
1911
  locationReferences: ContentReferenceResolved[];
1911
- }[];
1912
+ }
1912
1913
  export interface ContentReferenceResolved {
1913
1914
  /** Text to display to represent the reference */
1914
1915
  text: string;
1915
1916
  /** The type of the content reference */
1916
- type: 'space' | 'page' | 'file' | 'anchor' | 'collection' | 'user' | 'snippet' | 'url';
1917
+ type: 'space' | 'page' | 'file' | 'anchor' | 'collection' | 'user' | 'snippet' | 'url' | 'synced-block';
1917
1918
  /** Target in-app url for the reference */
1918
1919
  url: string;
1919
1920
  extra: {
1921
+ collection?: Collection;
1920
1922
  space?: Space;
1921
- page?: RevisionPageDocument;
1923
+ page?: RevisionPage;
1924
+ anchor?: RevisionPage;
1922
1925
  file?: RevisionFile;
1923
1926
  snippet?: Snippet;
1924
1927
  user?: User;
@@ -1926,10 +1929,12 @@ export interface ContentReferenceResolved {
1926
1929
  }
1927
1930
  /**
1928
1931
  * Text to display to represent the reference. Possible values include:
1932
+ * - `ok` - No problems detected for this content reference.
1929
1933
  * - `broken` - The target does not exist in the revision.
1930
1934
  * - `in-app` - The target is a URL link pointing to an internal location in the app.
1931
1935
  */
1932
1936
  export declare enum ContentReferenceStatus {
1937
+ Ok = "ok",
1933
1938
  Broken = "broken",
1934
1939
  InApp = "in-app"
1935
1940
  }
@@ -3565,13 +3570,17 @@ export interface ContentKitURL {
3565
3570
  query?: Record<string, string | ContentKitDynamicBinding>;
3566
3571
  }
3567
3572
  /** Channel to subscribe to for API updates. */
3568
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | {
3573
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | {
3574
+ channel: 'space-change-request-broken-links';
3575
+ space: string;
3576
+ changeRequest: string;
3577
+ } | CollectionChannel | CollectionPublishingCustomizationChannel | {
3569
3578
  channel: 'organization';
3570
3579
  organization: string;
3571
3580
  } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | {
3572
3581
  channel: 'organization-experimental-features';
3573
3582
  organization: string;
3574
- } | {
3583
+ } | OrganizationSyncedBlockChannel | {
3575
3584
  channel: 'space-comments';
3576
3585
  space: string;
3577
3586
  changeRequest?: string;
@@ -3591,7 +3600,10 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
3591
3600
  space: string;
3592
3601
  changeRequest?: string;
3593
3602
  comment: string;
3594
- } | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel;
3603
+ } | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteSpaceChannel | SiteSpacesChannel | {
3604
+ channel: 'site-publishing-auth';
3605
+ site: string;
3606
+ } | CustomHostnameChannel;
3595
3607
  export interface SpaceInfoChannel {
3596
3608
  channel: 'space';
3597
3609
  space: string;
@@ -3680,6 +3692,11 @@ export interface OrganizationTeamChannel {
3680
3692
  organization: string;
3681
3693
  team: string;
3682
3694
  }
3695
+ export interface OrganizationSyncedBlockChannel {
3696
+ channel: 'organization-synced-block';
3697
+ organization: string;
3698
+ syncedBlock: string;
3699
+ }
3683
3700
  export interface OrganizationTeamMembersChannel {
3684
3701
  channel: 'organization-team-members';
3685
3702
  organization: string;
@@ -3768,6 +3785,20 @@ export interface SiteChannel {
3768
3785
  channel: 'site';
3769
3786
  site: string;
3770
3787
  }
3788
+ export interface SiteSpaceChannel {
3789
+ channel: 'site-space';
3790
+ site: string;
3791
+ siteSpace: string;
3792
+ }
3793
+ /** Subscription channel for changes in site spaces in an organization. */
3794
+ export interface SiteSpacesChannel {
3795
+ channel: 'site-spaces';
3796
+ site: string;
3797
+ }
3798
+ export interface CustomHostnameChannel {
3799
+ channel: 'custom-hostname';
3800
+ customHostname: string;
3801
+ }
3771
3802
  /** Custom field */
3772
3803
  export interface CustomField {
3773
3804
  id: string;
@@ -4011,7 +4042,7 @@ export interface Site {
4011
4042
  title: SiteTitle;
4012
4043
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
4013
4044
  hostname?: SiteHostname;
4014
- /** Basename for the site. For e.g. /api */
4045
+ /** Basename for the site. For e.g. api */
4015
4046
  basename: SiteBasename;
4016
4047
  /**
4017
4048
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
@@ -4024,6 +4055,7 @@ export interface Site {
4024
4055
  siteSpaces: number;
4025
4056
  /** @format date-time */
4026
4057
  createdAt: string;
4058
+ subscription: SiteSubscription;
4027
4059
  /** URLs associated with the object */
4028
4060
  urls: {
4029
4061
  /**
@@ -4141,16 +4173,19 @@ export declare type SitePublishingAuth = {
4141
4173
  fallbackURL?: string;
4142
4174
  } & SpaceVisitorAuth;
4143
4175
  /**
4144
- * Basename for the site. For e.g. /api
4176
+ * Basename for the site. For e.g. api
4177
+ * @minLength 1
4145
4178
  * @maxLength 100
4146
4179
  */
4147
4180
  export declare type SiteBasename = string;
4148
4181
  /**
4149
4182
  * Custom hostname for the site, for e.g. docs.mycompany.com
4150
- * @maxLength 100
4183
+ * @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
4151
4184
  */
4152
4185
  export declare type SiteHostname = string;
4153
4186
  export interface SiteSpace {
4187
+ /** The object type, which is always "site-space" */
4188
+ object?: 'site-space';
4154
4189
  /** Unique identifier of the site-space */
4155
4190
  id: string;
4156
4191
  /** Path to the space on the site */
@@ -4165,6 +4200,71 @@ export interface SiteSpace {
4165
4200
  * @maxLength 100
4166
4201
  */
4167
4202
  export declare type SiteSpacePath = string;
4203
+ export declare enum SiteSubscriptionStatus {
4204
+ Active = "active",
4205
+ Inactive = "inactive"
4206
+ }
4207
+ export declare enum SiteSubscriptionType {
4208
+ Basic = "basic",
4209
+ Premium = "premium"
4210
+ }
4211
+ export interface SiteSubscription {
4212
+ type: SiteSubscriptionType;
4213
+ status: SiteSubscriptionStatus;
4214
+ }
4215
+ export interface CustomHostname {
4216
+ object: 'custom-hostname';
4217
+ /** Custom hostname for the site, for e.g. docs.mycompany.com */
4218
+ hostname: SiteHostname;
4219
+ target: OrganizationPointer | SpacePointer | CollectionPointer;
4220
+ isActive: boolean;
4221
+ status?: CustomHostnameStatus;
4222
+ /** URLs associated with the object */
4223
+ urls: {
4224
+ /**
4225
+ * URL of the custom hostname in the API
4226
+ * @format uri
4227
+ */
4228
+ location: string;
4229
+ };
4230
+ }
4231
+ export declare type CustomHostnameStatus = CustomHostnameDnsStatus | CustomHostnameSslStatus | CustomHostnameErrorStatus;
4232
+ export declare enum CustomHostnameDnsStatus {
4233
+ DnsPassed = "dns_passed",
4234
+ DnsWrongCname = "dns_wrong_cname",
4235
+ DnsNoCname = "dns_no_cname",
4236
+ DnsCloudflareProxied = "dns_cloudflare_proxied",
4237
+ DnsWrongCaa = "dns_wrong_caa"
4238
+ }
4239
+ export declare enum CustomHostnameSslStatus {
4240
+ Live = "live",
4241
+ SslUnknown = "ssl_unknown",
4242
+ SslPending = "ssl_pending",
4243
+ SslFailed = "ssl_failed",
4244
+ SslRetryExpired = "ssl_retry_expired"
4245
+ }
4246
+ export declare enum CustomHostnameErrorStatus {
4247
+ InvalidDomain = "invalid_domain",
4248
+ InternalError = "internal_error"
4249
+ }
4250
+ export interface Seat {
4251
+ object: 'seat';
4252
+ /** The unique ID of the organization */
4253
+ organization: string;
4254
+ /** The unique ID of the organization member */
4255
+ member: string;
4256
+ /** @format date-time */
4257
+ createdAt: string;
4258
+ /** @format date-time */
4259
+ updatedAt: string;
4260
+ }
4261
+ /** A summary of the seats usage and availability in the organization. */
4262
+ export interface SeatsUsage {
4263
+ /** The total amount of seats in the organization. */
4264
+ total: number;
4265
+ /** How many seats are still available. */
4266
+ available: number;
4267
+ }
4168
4268
  import { EventIterator } from 'event-iterator';
4169
4269
  export declare type QueryParamsType = Record<string | number, any>;
4170
4270
  export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
@@ -4664,7 +4764,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4664
4764
  * @request GET:/spaces/{spaceId}/content
4665
4765
  * @secure
4666
4766
  */
4667
- getCurrentRevision: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
4767
+ getCurrentRevision: (spaceId: string, query?: {
4768
+ /**
4769
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4770
+ * @default true
4771
+ */
4772
+ metadata?: boolean;
4773
+ }, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
4668
4774
  /**
4669
4775
  * No description
4670
4776
  *
@@ -4682,7 +4788,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4682
4788
  * @request GET:/spaces/{spaceId}/content/pages
4683
4789
  * @secure
4684
4790
  */
4685
- listPages: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<{
4791
+ listPages: (spaceId: string, query?: {
4792
+ /**
4793
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4794
+ * @default true
4795
+ */
4796
+ metadata?: boolean;
4797
+ }, params?: RequestParams) => Promise<HttpResponse<{
4686
4798
  pages: RevisionPage[];
4687
4799
  }, Error>>;
4688
4800
  /**
@@ -4698,6 +4810,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4698
4810
  page?: string;
4699
4811
  /** The number of results per page */
4700
4812
  limit?: number;
4813
+ /**
4814
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4815
+ * @default true
4816
+ */
4817
+ metadata?: boolean;
4701
4818
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4702
4819
  items: RevisionFile[];
4703
4820
  }, Error>>;
@@ -4709,7 +4826,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4709
4826
  * @request GET:/spaces/{spaceId}/content/files/{fileId}
4710
4827
  * @secure
4711
4828
  */
4712
- getFileById: (spaceId: string, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
4829
+ getFileById: (spaceId: string, fileId: string, query?: {
4830
+ /**
4831
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4832
+ * @default true
4833
+ */
4834
+ metadata?: boolean;
4835
+ }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
4713
4836
  /**
4714
4837
  * No description
4715
4838
  *
@@ -4721,6 +4844,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4721
4844
  getPageById: (spaceId: string, pageId: string, query?: {
4722
4845
  /** Output format for the content. */
4723
4846
  format?: 'document' | 'markdown';
4847
+ /**
4848
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4849
+ * @default true
4850
+ */
4851
+ metadata?: boolean;
4724
4852
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
4725
4853
  /**
4726
4854
  * No description
@@ -4742,6 +4870,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4742
4870
  getPageByPath: (spaceId: string, pagePath: string, query?: {
4743
4871
  /** Output format for the content. */
4744
4872
  format?: 'document' | 'markdown';
4873
+ /**
4874
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4875
+ * @default true
4876
+ */
4877
+ metadata?: boolean;
4745
4878
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
4746
4879
  /**
4747
4880
  * No description
@@ -4919,6 +5052,38 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4919
5052
  /** The user requests that were sent. */
4920
5053
  users?: ChangeRequestRequestedReviewer[];
4921
5054
  }, Error>>;
5055
+ /**
5056
+ * No description
5057
+ *
5058
+ * @tags spaces, links
5059
+ * @name ListChangeRequestLinks
5060
+ * @summary Get all links in the context of a change request including their status and location where they appear.
5061
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/links
5062
+ * @secure
5063
+ */
5064
+ listChangeRequestLinks: (spaceId: string, changeRequestId: string, query?: {
5065
+ /** Identifier of the page results to fetch. */
5066
+ page?: string;
5067
+ /** The number of results per page */
5068
+ limit?: number;
5069
+ /**
5070
+ * Text to display to represent the reference. Possible values include:
5071
+ * - `ok` - No problems detected for this content reference.
5072
+ * - `broken` - The target does not exist in the revision.
5073
+ * - `in-app` - The target is a URL link pointing to an internal location in the app.
5074
+ */
5075
+ status?: ContentReferenceStatus;
5076
+ brokenContext?: 'change-request' | 'space';
5077
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
5078
+ stats: ContentReferencesStats;
5079
+ items: ContentReferenceUsage[];
5080
+ }, Error | {
5081
+ error: {
5082
+ /** @format int32 */
5083
+ code: 404;
5084
+ message: string;
5085
+ };
5086
+ }>>;
4922
5087
  /**
4923
5088
  * No description
4924
5089
  *
@@ -5084,7 +5249,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5084
5249
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content
5085
5250
  * @secure
5086
5251
  */
5087
- getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
5252
+ getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
5253
+ /**
5254
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5255
+ * @default true
5256
+ */
5257
+ metadata?: boolean;
5258
+ }, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
5088
5259
  /**
5089
5260
  * No description
5090
5261
  *
@@ -5102,7 +5273,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5102
5273
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
5103
5274
  * @secure
5104
5275
  */
5105
- listPagesInChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
5276
+ listPagesInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
5277
+ /**
5278
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5279
+ * @default true
5280
+ */
5281
+ metadata?: boolean;
5282
+ }, params?: RequestParams) => Promise<HttpResponse<{
5106
5283
  pages: RevisionPage[];
5107
5284
  }, Error>>;
5108
5285
  /**
@@ -5118,6 +5295,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5118
5295
  page?: string;
5119
5296
  /** The number of results per page */
5120
5297
  limit?: number;
5298
+ /**
5299
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5300
+ * @default true
5301
+ */
5302
+ metadata?: boolean;
5121
5303
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5122
5304
  items: RevisionFile[];
5123
5305
  }, Error>>;
@@ -5129,7 +5311,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5129
5311
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
5130
5312
  * @secure
5131
5313
  */
5132
- getFileInChangeRequestById: (spaceId: string, changeRequestId: string, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
5314
+ getFileInChangeRequestById: (spaceId: string, changeRequestId: string, fileId: string, query?: {
5315
+ /**
5316
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5317
+ * @default true
5318
+ */
5319
+ metadata?: boolean;
5320
+ }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
5133
5321
  /**
5134
5322
  * No description
5135
5323
  *
@@ -5141,6 +5329,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5141
5329
  getPageInChangeRequestById: (spaceId: string, changeRequestId: string, pageId: string, query?: {
5142
5330
  /** Output format for the content. */
5143
5331
  format?: 'document' | 'markdown';
5332
+ /**
5333
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5334
+ * @default true
5335
+ */
5336
+ metadata?: boolean;
5144
5337
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
5145
5338
  /**
5146
5339
  * No description
@@ -5162,6 +5355,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5162
5355
  getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
5163
5356
  /** Output format for the content. */
5164
5357
  format?: 'document' | 'markdown';
5358
+ /**
5359
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5360
+ * @default true
5361
+ */
5362
+ metadata?: boolean;
5165
5363
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
5166
5364
  /**
5167
5365
  * No description
@@ -5188,7 +5386,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5188
5386
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}
5189
5387
  * @secure
5190
5388
  */
5191
- getRevisionById: (spaceId: string, revisionId: string, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
5389
+ getRevisionById: (spaceId: string, revisionId: string, query?: {
5390
+ /**
5391
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5392
+ * @default true
5393
+ */
5394
+ metadata?: boolean;
5395
+ }, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
5192
5396
  /**
5193
5397
  * No description
5194
5398
  *
@@ -5198,16 +5402,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5198
5402
  * @secure
5199
5403
  */
5200
5404
  getRevisionSemanticChanges: (spaceId: string, revisionId: string, query?: {
5405
+ /**
5406
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5407
+ * @default true
5408
+ */
5409
+ metadata?: boolean;
5201
5410
  /**
5202
5411
  * Limit the number of changes returned
5203
5412
  * @default 10
5204
5413
  */
5205
5414
  limit?: number;
5206
- /**
5207
- * Whether to include changes to metadata, such as git information and custom fields
5208
- * @default true
5209
- */
5210
- metadata?: boolean;
5211
5415
  }, params?: RequestParams) => Promise<HttpResponse<{
5212
5416
  changes: RevisionSemanticChange[];
5213
5417
  /** How many changes were omitted because above the result limit */
@@ -5221,7 +5425,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5221
5425
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/pages
5222
5426
  * @secure
5223
5427
  */
5224
- listPagesInRevisionById: (spaceId: string, revisionId: string, params?: RequestParams) => Promise<HttpResponse<{
5428
+ listPagesInRevisionById: (spaceId: string, revisionId: string, query?: {
5429
+ /**
5430
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5431
+ * @default true
5432
+ */
5433
+ metadata?: boolean;
5434
+ }, params?: RequestParams) => Promise<HttpResponse<{
5225
5435
  pages: RevisionPage[];
5226
5436
  }, Error>>;
5227
5437
  /**
@@ -5237,6 +5447,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5237
5447
  page?: string;
5238
5448
  /** The number of results per page */
5239
5449
  limit?: number;
5450
+ /**
5451
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5452
+ * @default true
5453
+ */
5454
+ metadata?: boolean;
5240
5455
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5241
5456
  items: RevisionFile[];
5242
5457
  }, Error>>;
@@ -5248,7 +5463,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5248
5463
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
5249
5464
  * @secure
5250
5465
  */
5251
- getFileInRevisionById: (spaceId: string, revisionId: string, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
5466
+ getFileInRevisionById: (spaceId: string, revisionId: string, fileId: string, query?: {
5467
+ /**
5468
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5469
+ * @default true
5470
+ */
5471
+ metadata?: boolean;
5472
+ }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
5252
5473
  /**
5253
5474
  * No description
5254
5475
  *
@@ -5260,6 +5481,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5260
5481
  getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
5261
5482
  /** Output format for the content. */
5262
5483
  format?: 'document' | 'markdown';
5484
+ /**
5485
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5486
+ * @default true
5487
+ */
5488
+ metadata?: boolean;
5263
5489
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
5264
5490
  /**
5265
5491
  * No description
@@ -5272,6 +5498,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5272
5498
  getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
5273
5499
  /** Output format for the content. */
5274
5500
  format?: 'document' | 'markdown';
5501
+ /**
5502
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5503
+ * @default true
5504
+ */
5505
+ metadata?: boolean;
5275
5506
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
5276
5507
  /**
5277
5508
  * No description
@@ -7291,6 +7522,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7291
7522
  * @secure
7292
7523
  */
7293
7524
  getSyncedBlock: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
7525
+ /**
7526
+ * No description
7527
+ *
7528
+ * @tags organizations
7529
+ * @name UpdateSyncedBlock
7530
+ * @summary Update an existing synced block.
7531
+ * @request PUT:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
7532
+ * @secure
7533
+ */
7534
+ updateSyncedBlock: (organizationId: string, syncedBlockId: string, data: {
7535
+ /** A new title for the Synced Block. */
7536
+ title?: string;
7537
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7294
7538
  /**
7295
7539
  * No description
7296
7540
  *
@@ -7431,6 +7675,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7431
7675
  page?: string;
7432
7676
  /** The number of results per page */
7433
7677
  limit?: number;
7678
+ /** Identifier of the space to filter the sites by */
7679
+ space?: string;
7434
7680
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7435
7681
  items: Site[];
7436
7682
  }, Error>>;
@@ -7445,7 +7691,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7445
7691
  */
7446
7692
  createSite: (organizationId: string, data: {
7447
7693
  /** Title of the site */
7448
- title: SiteTitle;
7694
+ title?: SiteTitle;
7449
7695
  /**
7450
7696
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
7451
7697
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
@@ -7455,8 +7701,210 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7455
7701
  */
7456
7702
  visibility?: SiteVisibility;
7457
7703
  /** ID of spaces to be added to the site */
7458
- spaces: string[];
7704
+ spaces?: string[];
7705
+ }, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
7706
+ /**
7707
+ * No description
7708
+ *
7709
+ * @tags sites
7710
+ * @name GetSiteById
7711
+ * @summary Get an organization site by its ID
7712
+ * @request GET:/orgs/{organizationId}/sites/{siteId}
7713
+ * @secure
7714
+ */
7715
+ getSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, Error | {
7716
+ error: {
7717
+ /** @format int32 */
7718
+ code: 404;
7719
+ message: string;
7720
+ };
7721
+ }>>;
7722
+ /**
7723
+ * No description
7724
+ *
7725
+ * @tags sites
7726
+ * @name UpdateSiteById
7727
+ * @summary Update a site in an organization
7728
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}
7729
+ * @secure
7730
+ */
7731
+ updateSiteById: (organizationId: string, siteId: string, data: {
7732
+ /** Title of the site */
7733
+ title?: SiteTitle;
7734
+ /**
7735
+ * * `public`: Anyone can access the site, and the site is indexed by search engines.
7736
+ * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
7737
+ * * `share-link`: Anyone with a secret token in the url can access the site.
7738
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
7739
+ * * `unpublished`: The site is not accessible to anyone.
7740
+ */
7741
+ visibility?: SiteVisibility;
7742
+ /** Custom hostname for the site, for e.g. docs.mycompany.com */
7743
+ hostname?: SiteHostname;
7744
+ /** Basename for the site. For e.g. api */
7745
+ basename?: SiteBasename;
7746
+ /** ID of the site-space to be used as the default */
7747
+ defaultSiteSpace?: string;
7459
7748
  }, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
7749
+ /**
7750
+ * No description
7751
+ *
7752
+ * @tags sites
7753
+ * @name DeleteSiteById
7754
+ * @summary Delete a site in an organization
7755
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}
7756
+ * @secure
7757
+ */
7758
+ deleteSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7759
+ /**
7760
+ * No description
7761
+ *
7762
+ * @tags sites
7763
+ * @name GetSitePublishingAuthSettings
7764
+ * @summary Get the publishing authentication settings for a site.
7765
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/publishing/auth
7766
+ * @secure
7767
+ */
7768
+ getSitePublishingAuthSettings: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SitePublishingAuth, Error | {
7769
+ error: {
7770
+ /** @format int32 */
7771
+ code: 400;
7772
+ message: string;
7773
+ };
7774
+ }>>;
7775
+ /**
7776
+ * No description
7777
+ *
7778
+ * @tags sites
7779
+ * @name AddSpaceToSite
7780
+ * @summary Add a space to a site in an organization
7781
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/spaces
7782
+ * @secure
7783
+ */
7784
+ addSpaceToSite: (organizationId: string, siteId: string, data: {
7785
+ /** ID of the space */
7786
+ spaceId: string;
7787
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
7788
+ /**
7789
+ * No description
7790
+ *
7791
+ * @tags sites
7792
+ * @name ListSiteSpaces
7793
+ * @summary List all the site spaces under a site in an organization
7794
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/spaces
7795
+ * @secure
7796
+ */
7797
+ listSiteSpaces: (organizationId: string, siteId: string, query?: {
7798
+ /** Identifier of the page results to fetch. */
7799
+ page?: string;
7800
+ /** The number of results per page */
7801
+ limit?: number;
7802
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
7803
+ items: SiteSpace[];
7804
+ }, Error>>;
7805
+ /**
7806
+ * No description
7807
+ *
7808
+ * @tags sites
7809
+ * @name UpdateSiteSpaceById
7810
+ * @summary Update a space on a site in an organization
7811
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
7812
+ * @secure
7813
+ */
7814
+ updateSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, data: {
7815
+ /** Path to the space on the site */
7816
+ path?: SiteSpacePath;
7817
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
7818
+ /**
7819
+ * No description
7820
+ *
7821
+ * @tags sites
7822
+ * @name DeleteSiteSpaceById
7823
+ * @summary Delete a space on a site in an organization
7824
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
7825
+ * @secure
7826
+ */
7827
+ deleteSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7828
+ };
7829
+ customHostnames: {
7830
+ /**
7831
+ * No description
7832
+ *
7833
+ * @tags custom-hostnames
7834
+ * @name GetCustomHostname
7835
+ * @summary Get the details about a custom hostname.
7836
+ * @request GET:/custom-hostnames/{hostname}
7837
+ * @secure
7838
+ */
7839
+ getCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error>>;
7840
+ /**
7841
+ * No description
7842
+ *
7843
+ * @tags custom-hostnames
7844
+ * @name SetupCustomHostname
7845
+ * @summary Setup a custom hostname on a content or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
7846
+ * @request POST:/custom-hostnames/{hostname}
7847
+ * @secure
7848
+ */
7849
+ setupCustomHostname: (hostname: string, data: {
7850
+ target: OrganizationPointer | SpacePointer | CollectionPointer;
7851
+ }, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error | {
7852
+ error: {
7853
+ /** @format int32 */
7854
+ code: 409;
7855
+ message: string;
7856
+ };
7857
+ }>>;
7858
+ /**
7859
+ * No description
7860
+ *
7861
+ * @tags custom-hostnames
7862
+ * @name DnsRevalidateCustomHostname
7863
+ * @summary Revalidate a custom hostname's DNS records and status.
7864
+ * @request PATCH:/custom-hostnames/{hostname}
7865
+ * @secure
7866
+ */
7867
+ dnsRevalidateCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
7868
+ error: {
7869
+ /** @format int32 */
7870
+ code: 409;
7871
+ message: string;
7872
+ };
7873
+ }>>;
7874
+ /**
7875
+ * No description
7876
+ *
7877
+ * @tags custom-hostnames
7878
+ * @name RemoveCustomHostname
7879
+ * @summary Remove a custom hostname from a content or organization. The custom hostname will continue to point to the content or organization unless it is used for another one.
7880
+ * @request DELETE:/custom-hostnames/{hostname}
7881
+ * @secure
7882
+ */
7883
+ removeCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7884
+ /**
7885
+ * No description
7886
+ *
7887
+ * @tags custom-hostnames
7888
+ * @name TestCustomHostname
7889
+ * @summary Test if a custom hostname can be used for a content or organization.
7890
+ * @request POST:/custom-hostnames/{hostname}/test
7891
+ * @secure
7892
+ */
7893
+ testCustomHostname: (hostname: string, data: {
7894
+ target: OrganizationPointer | SpacePointer | CollectionPointer;
7895
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
7896
+ error: {
7897
+ /** @format int32 */
7898
+ code: 400;
7899
+ message: string;
7900
+ };
7901
+ } | {
7902
+ error: {
7903
+ /** @format int32 */
7904
+ code: 409;
7905
+ message: string;
7906
+ };
7907
+ }>>;
7460
7908
  };
7461
7909
  internal: {
7462
7910
  /**