@gitbook/api 0.36.0 → 0.38.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
@@ -588,6 +588,7 @@ export interface DocumentInlineLink {
588
588
  key?: string;
589
589
  nodes: (DocumentText | DocumentInlineImage)[];
590
590
  data: {
591
+ /** A relative reference to content in GitBook. */
591
592
  ref: ContentRef;
592
593
  };
593
594
  isVoid?: false;
@@ -627,6 +628,7 @@ export interface DocumentInlineMention {
627
628
  type: 'mention';
628
629
  key?: string;
629
630
  data: {
631
+ /** A relative reference to content in GitBook. */
630
632
  ref: ContentRef;
631
633
  };
632
634
  isVoid: true;
@@ -982,6 +984,7 @@ export interface DocumentBlockContentRef {
982
984
  type: 'content-ref';
983
985
  key?: string;
984
986
  data: {
987
+ /** A relative reference to content in GitBook. */
985
988
  ref: ContentRef;
986
989
  };
987
990
  isVoid: true;
@@ -1029,6 +1032,7 @@ export interface DocumentBlockSyncedBlock {
1029
1032
  };
1030
1033
  isVoid: true;
1031
1034
  }
1035
+ /** A relative reference to content in GitBook. */
1032
1036
  export declare type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefSyncedBlock;
1033
1037
  export interface ContentRefURL {
1034
1038
  kind: 'url';
@@ -1074,6 +1078,51 @@ export interface ContentRefSyncedBlock {
1074
1078
  syncedBlock: string;
1075
1079
  organization: string;
1076
1080
  }
1081
+ /** An absolute reference to content in GitBook. */
1082
+ export declare type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationSyncedBlock;
1083
+ export interface ContentLocationURL {
1084
+ kind: 'url';
1085
+ url: string;
1086
+ }
1087
+ export interface ContentLocationFile {
1088
+ kind: 'file';
1089
+ organization: Organization;
1090
+ space: Space;
1091
+ changeRequest?: ChangeRequest;
1092
+ file: RevisionFile;
1093
+ }
1094
+ export interface ContentLocationPage {
1095
+ kind: 'page';
1096
+ organization: Organization;
1097
+ page: RevisionPage;
1098
+ space: Space;
1099
+ changeRequest?: ChangeRequest;
1100
+ anchor?: string;
1101
+ }
1102
+ export interface ContentLocationUser {
1103
+ kind: 'user';
1104
+ user: User;
1105
+ }
1106
+ export interface ContentLocationCollection {
1107
+ kind: 'collection';
1108
+ organization: Organization;
1109
+ collection: Collection;
1110
+ }
1111
+ export interface ContentLocationSpace {
1112
+ kind: 'space';
1113
+ organization: Organization;
1114
+ space: Space;
1115
+ }
1116
+ export interface ContentLocationSnippet {
1117
+ kind: 'snippet';
1118
+ organization: Organization;
1119
+ snippet: Snippet;
1120
+ }
1121
+ export interface ContentLocationSyncedBlock {
1122
+ kind: 'synced-block';
1123
+ organization: Organization;
1124
+ syncedBlock: SyncedBlock;
1125
+ }
1077
1126
  export interface Space {
1078
1127
  /** Type of Object, always equals to "space" */
1079
1128
  object: 'space';
@@ -1153,15 +1202,20 @@ export declare enum SpaceEditMode {
1153
1202
  * @maxLength 50
1154
1203
  */
1155
1204
  export declare type SpaceTitle = string;
1156
- export declare type SpaceVisitorAuth = {
1205
+ export declare type SpaceVisitorAuth = SpaceVisitorAuthCustomBackend | (SpaceVisitorAuthIntegrationBackend & {
1206
+ /** Name of integration being used as the backend for Visitor Authentication */
1207
+ integration: string;
1208
+ });
1209
+ /** Custom backend for Visitor Authentication */
1210
+ export interface SpaceVisitorAuthCustomBackend {
1157
1211
  /** Custom backend for Visitor Authentication */
1158
1212
  backend: 'custom';
1159
- } | {
1213
+ }
1214
+ /** Integration backend for Visitor Authentication */
1215
+ export interface SpaceVisitorAuthIntegrationBackend {
1160
1216
  /** Integration as backend for Visitor Authentication */
1161
1217
  backend: 'integration';
1162
- /** Name of integration being used as the backend for Visitor Authentication */
1163
- integration: string;
1164
- };
1218
+ }
1165
1219
  export interface RevisionBase {
1166
1220
  /** Type of Object, always equals to "revision" */
1167
1221
  object: 'revision';
@@ -1295,6 +1349,7 @@ export declare type RevisionPageLink = RevisionPageBase & {
1295
1349
  /** @deprecated */
1296
1350
  kind: 'link';
1297
1351
  type: 'link';
1352
+ /** A relative reference to content in GitBook. */
1298
1353
  target: ContentRef;
1299
1354
  href?: string;
1300
1355
  };
@@ -1335,7 +1390,9 @@ export declare enum ImportContentSource {
1335
1390
  OpenApi = "open-api"
1336
1391
  }
1337
1392
  export interface ChangeAttributeContentReference {
1393
+ /** A relative reference to content in GitBook. */
1338
1394
  before?: ContentRef;
1395
+ /** A relative reference to content in GitBook. */
1339
1396
  after?: ContentRef;
1340
1397
  }
1341
1398
  export interface ChangeAttributeCustomFields {
@@ -1690,6 +1747,88 @@ export interface OrganizationPointer {
1690
1747
  /** Unique identifier for the organization */
1691
1748
  organization: string;
1692
1749
  }
1750
+ /** All usage metrics of an organization */
1751
+ export interface OrganizationUsage {
1752
+ /** Spaces usage metrics of an organization */
1753
+ spaces: OrganizationUsageSpaces;
1754
+ /** Collections usage metrics of an organization */
1755
+ collections: OrganizationUsageCollections;
1756
+ /** Sites usage metrics of an organization */
1757
+ sites: OrganizationUsageSites;
1758
+ /** Seats usage metrics of an organization */
1759
+ seats: OrganizationUsageSeats;
1760
+ /** Team members usage metrics of an organization */
1761
+ teams: OrganizationUsageTeams;
1762
+ /** Members usage metrics of an organization */
1763
+ members: OrganizationUsageMembers;
1764
+ /** Team members usage metrics of an organization */
1765
+ teamMembers: OrganizationUsageTeamMembers;
1766
+ }
1767
+ /** Spaces usage metrics of an organization */
1768
+ export interface OrganizationUsageSpaces {
1769
+ /** Count of all spaces */
1770
+ total: number;
1771
+ }
1772
+ /** Collections usage metrics of an organization */
1773
+ export interface OrganizationUsageCollections {
1774
+ /** Count of all collections */
1775
+ total: number;
1776
+ }
1777
+ /** Sites usage metrics of an organization */
1778
+ export interface OrganizationUsageSites {
1779
+ /** Count of all sites */
1780
+ total: number;
1781
+ /** Count of all public sites */
1782
+ public: number;
1783
+ /** Count of all unlisted sites */
1784
+ unlisted: number;
1785
+ /** Count of all link-shared sites */
1786
+ shareLink: number;
1787
+ /** Count of all visitor-authenticated sites */
1788
+ visitorAuth: number;
1789
+ /** Count of all unpublished sites */
1790
+ unpublished: number;
1791
+ }
1792
+ /** Members usage metrics of an organization */
1793
+ export interface OrganizationUsageMembers {
1794
+ /** Count of all members */
1795
+ total: number;
1796
+ /** Count of all admins */
1797
+ admin: number;
1798
+ /** Count of all creators */
1799
+ create: number;
1800
+ /** Count of all editors */
1801
+ edit: number;
1802
+ /** Count of all reviewers */
1803
+ review: number;
1804
+ /** Count of all commenters */
1805
+ comment: number;
1806
+ /** Count of all readers */
1807
+ read: number;
1808
+ /** Count of all guests */
1809
+ guest: number;
1810
+ }
1811
+ /** Team members usage metrics of an organization */
1812
+ export interface OrganizationUsageTeams {
1813
+ /** Count of all teams */
1814
+ total: number;
1815
+ }
1816
+ /** Team members usage metrics of an organization */
1817
+ export interface OrganizationUsageTeamMembers {
1818
+ /** Count of all organization members in a team */
1819
+ total: number;
1820
+ /** Count of all team owners */
1821
+ owner: number;
1822
+ /** Count of all team members */
1823
+ member: number;
1824
+ }
1825
+ /** Seats usage metrics of an organization */
1826
+ export interface OrganizationUsageSeats {
1827
+ /** The total amount of seats in the organization. */
1828
+ total: number;
1829
+ /** How many seats are still available. */
1830
+ available: number;
1831
+ }
1693
1832
  export interface Capture {
1694
1833
  /** Unique identifier for the capture */
1695
1834
  id: string;
@@ -1854,12 +1993,13 @@ export interface SyncedBlock {
1854
1993
  * @maxLength 100
1855
1994
  */
1856
1995
  title?: string;
1857
- document: JSONDocument;
1858
1996
  /** URLs associated with the object */
1859
1997
  urls: {
1860
1998
  /** URL of the synced block in the API */
1861
1999
  location: URL;
1862
2000
  };
2001
+ document: JSONDocument;
2002
+ files?: RevisionFile[];
1863
2003
  }
1864
2004
  /** Content audit relation */
1865
2005
  export interface ContentAuditRelation {
@@ -1944,10 +2084,8 @@ export interface ContentReferencesStats {
1944
2084
  broken: {
1945
2085
  /** Count of broken links */
1946
2086
  total: number;
1947
- /** Count of broken links in space. When in the context of a change request it refers to the broken links already existing at the time of the change request creation. */
1948
- space: number;
1949
2087
  /** Count of broken links that were broken in current change request, if applicable. */
1950
- changeRequest: number;
2088
+ changeRequest?: number;
1951
2089
  };
1952
2090
  }
1953
2091
  export interface ChangeRequest {
@@ -3007,6 +3145,10 @@ export interface BillingPortal {
3007
3145
  }
3008
3146
  /** Name of the product */
3009
3147
  export declare enum BillingProduct {
3148
+ Free2024 = "free_2024",
3149
+ Plus2024 = "plus_2024",
3150
+ Pro2024 = "pro_2024",
3151
+ Enterprise2024 = "enterprise_2024",
3010
3152
  Free = "free",
3011
3153
  Plus = "plus",
3012
3154
  Pro = "pro",
@@ -3570,14 +3712,17 @@ export interface ContentKitURL {
3570
3712
  query?: Record<string, string | ContentKitDynamicBinding>;
3571
3713
  }
3572
3714
  /** Channel to subscribe to for API updates. */
3573
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | {
3715
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | {
3716
+ channel: 'space-broken-links';
3717
+ space: string;
3718
+ } | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | {
3574
3719
  channel: 'space-change-request-broken-links';
3575
3720
  space: string;
3576
3721
  changeRequest: string;
3577
3722
  } | CollectionChannel | CollectionPublishingCustomizationChannel | {
3578
3723
  channel: 'organization';
3579
3724
  organization: string;
3580
- } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | {
3725
+ } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationSeatsChannel | OrganizationUsageSeatsChannel | OrganizationSeatChannel | {
3581
3726
  channel: 'organization-experimental-features';
3582
3727
  organization: string;
3583
3728
  } | OrganizationSyncedBlockChannel | {
@@ -3600,10 +3745,7 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
3600
3745
  space: string;
3601
3746
  changeRequest?: string;
3602
3747
  comment: string;
3603
- } | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteSpaceChannel | SiteSpacesChannel | {
3604
- channel: 'site-publishing-auth';
3605
- site: string;
3606
- } | CustomHostnameChannel;
3748
+ } | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | CustomHostnameChannel;
3607
3749
  export interface SpaceInfoChannel {
3608
3750
  channel: 'space';
3609
3751
  space: string;
@@ -3750,6 +3892,22 @@ export interface OrganizationSitesChannel {
3750
3892
  channel: 'organization-sites';
3751
3893
  organization: string;
3752
3894
  }
3895
+ /** Subscription channel for changes in a member seat in an organization. */
3896
+ export interface OrganizationSeatChannel {
3897
+ channel: 'organization-seat';
3898
+ organization: string;
3899
+ member: string;
3900
+ }
3901
+ /** Subscription channel for changes in seats in an organization. */
3902
+ export interface OrganizationSeatsChannel {
3903
+ channel: 'organization-seats';
3904
+ organization: string;
3905
+ }
3906
+ /** Subscription channel for changes in seats usage in an organization. */
3907
+ export interface OrganizationUsageSeatsChannel {
3908
+ channel: 'organization-usage-seats';
3909
+ organization: string;
3910
+ }
3753
3911
  export interface IntegrationChannel {
3754
3912
  channel: 'integration';
3755
3913
  integration: string;
@@ -3785,16 +3943,39 @@ export interface SiteChannel {
3785
3943
  channel: 'site';
3786
3944
  site: string;
3787
3945
  }
3946
+ export interface SiteCustomizationChannel {
3947
+ channel: 'site-customization';
3948
+ site: string;
3949
+ }
3950
+ export interface SitePublishingAuthChannel {
3951
+ channel: 'site-publishing-auth';
3952
+ site: string;
3953
+ }
3788
3954
  export interface SiteSpaceChannel {
3789
3955
  channel: 'site-space';
3790
3956
  site: string;
3791
3957
  siteSpace: string;
3792
3958
  }
3959
+ export interface SiteSpaceCustomizationChannel {
3960
+ channel: 'site-space-customization';
3961
+ site: string;
3962
+ siteSpace: string;
3963
+ }
3793
3964
  /** Subscription channel for changes in site spaces in an organization. */
3794
3965
  export interface SiteSpacesChannel {
3795
3966
  channel: 'site-spaces';
3796
3967
  site: string;
3797
3968
  }
3969
+ export interface SiteShareLinkChannel {
3970
+ channel: 'site-share-link';
3971
+ site: string;
3972
+ siteShareLink: string;
3973
+ }
3974
+ /** Subscription channel for changes in share links in a site */
3975
+ export interface SiteShareLinksChannel {
3976
+ channel: 'site-share-links';
3977
+ site: string;
3978
+ }
3798
3979
  export interface CustomHostnameChannel {
3799
3980
  channel: 'custom-hostname';
3800
3981
  customHostname: string;
@@ -3974,6 +4155,7 @@ export declare type CustomizationHeaderLink = CustomizationContentLink & {
3974
4155
  };
3975
4156
  export interface CustomizationContentLink {
3976
4157
  title: string;
4158
+ /** A relative reference to content in GitBook. */
3977
4159
  to: ContentRef;
3978
4160
  }
3979
4161
  export interface CustomizationFooterGroup {
@@ -4034,6 +4216,11 @@ export interface ShareLink {
4034
4216
  * @maxLength 50
4035
4217
  */
4036
4218
  export declare type ShareLinkName = string;
4219
+ export interface SitePointer {
4220
+ type: 'site';
4221
+ /** Unique identifier for the site */
4222
+ site: string;
4223
+ }
4037
4224
  export interface Site {
4038
4225
  object: 'site';
4039
4226
  /** Unique identifier of the site */
@@ -4043,7 +4230,7 @@ export interface Site {
4043
4230
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
4044
4231
  hostname?: SiteHostname;
4045
4232
  /** Basename for the site. For e.g. api */
4046
- basename: SiteBasename;
4233
+ basename?: SiteBasename;
4047
4234
  /**
4048
4235
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
4049
4236
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
@@ -4147,6 +4334,90 @@ export interface SiteCustomizationSettings {
4147
4334
  url?: URL;
4148
4335
  };
4149
4336
  }
4337
+ export interface SiteSpaceCustomizationOverrides {
4338
+ styling?: {
4339
+ /** The primary color used for links and UI text. Set to null to reset the override. */
4340
+ primaryColor?: CustomizationThemedColor | null;
4341
+ /** The style of the corners to use. Set to null to reset the override. */
4342
+ corners?: CustomizationCorners | null;
4343
+ /** The font family to use for the content. Set to null to reset the override. */
4344
+ font?: CustomizationFont | null;
4345
+ /** The style of background to use. Set to null to reset the override. */
4346
+ background?: CustomizationBackground | null;
4347
+ };
4348
+ internationalization?: {
4349
+ /** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
4350
+ locale: CustomizationLocale | null;
4351
+ };
4352
+ /** The favicon to use. Set to null to reset the override. */
4353
+ favicon?: {
4354
+ icon: CustomizationThemedURL;
4355
+ } | {
4356
+ /** Unicode codepoint or character of the emoji */
4357
+ emoji: Emoji;
4358
+ } | object | null;
4359
+ header?: {
4360
+ /** The theme preset to use. Set to null to reset the override. */
4361
+ preset?: CustomizationHeaderPreset | null;
4362
+ /** The header logo to use. Set to null to reset the override. */
4363
+ logo?: CustomizationThemedURL | null;
4364
+ /** The background color used in the header. Set to null to reset the override. */
4365
+ backgroundColor?: CustomizationThemedColor | null;
4366
+ /** The color used by the links in the header. Set to null to reset the override. */
4367
+ linkColor?: CustomizationThemedColor | null;
4368
+ /** The links that are displayed in the header. Set to null to reset the override. */
4369
+ links?: CustomizationHeaderLink[] | null;
4370
+ };
4371
+ footer?: {
4372
+ /** The logo displayed in the footer. Set to null to reset the override. */
4373
+ logo?: CustomizationThemedURL | null;
4374
+ /** The links groups that are displayed in the footer. Set to null to reset the override. */
4375
+ groups?: CustomizationFooterGroup[] | null;
4376
+ /**
4377
+ * The copyright text that is displayed in the footer. Set to null to reset the override.
4378
+ * @maxLength 300
4379
+ */
4380
+ copyright?: string | null;
4381
+ };
4382
+ themes?: {
4383
+ /** The theme mode default value. Set to null to reset the override. */
4384
+ default?: CustomizationThemeMode | null;
4385
+ /** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
4386
+ toggeable?: boolean | null;
4387
+ };
4388
+ pdf?: {
4389
+ /** If true, PDF export is enabled for the published site. Set to null to reset the override. */
4390
+ enabled: boolean | null;
4391
+ };
4392
+ feedback?: {
4393
+ /** If true, feedback gathering is enabled. Set to null to reset the override. */
4394
+ enabled: boolean | null;
4395
+ };
4396
+ aiSearch?: {
4397
+ /** If true, AI search is enabled. Set to null to reset the override. */
4398
+ enabled: boolean | null;
4399
+ };
4400
+ git?: {
4401
+ /** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override. */
4402
+ showEditLink: boolean | null;
4403
+ };
4404
+ pagination?: {
4405
+ /** Whether the pagination navigation should be displayed on pages. Set to null to reset the override. */
4406
+ enabled: boolean | null;
4407
+ };
4408
+ trademark?: {
4409
+ /** Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override. */
4410
+ enabled: boolean | null;
4411
+ };
4412
+ privacyPolicy?: {
4413
+ /** The custom link to the privacy policy. Set to null to reset the override. */
4414
+ url?: URL | null;
4415
+ };
4416
+ socialPreview?: {
4417
+ /** The URL for the social preview image. Set to null to reset the override. */
4418
+ url?: URL | null;
4419
+ };
4420
+ }
4150
4421
  /**
4151
4422
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
4152
4423
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
@@ -4172,6 +4443,13 @@ export declare type SitePublishingAuth = {
4172
4443
  */
4173
4444
  fallbackURL?: string;
4174
4445
  } & SpaceVisitorAuth;
4446
+ export declare type SitePublishingAuthUpdate = (SpaceVisitorAuthCustomBackend | SpaceVisitorAuthIntegrationBackend) & {
4447
+ /**
4448
+ * A fallback URL that will be used if authentication fails.
4449
+ * @format uri
4450
+ */
4451
+ fallbackURL?: string;
4452
+ };
4175
4453
  /**
4176
4454
  * Basename for the site. For e.g. api
4177
4455
  * @minLength 1
@@ -4216,7 +4494,7 @@ export interface CustomHostname {
4216
4494
  object: 'custom-hostname';
4217
4495
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
4218
4496
  hostname: SiteHostname;
4219
- target: OrganizationPointer | SpacePointer | CollectionPointer;
4497
+ target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
4220
4498
  isActive: boolean;
4221
4499
  status?: CustomHostnameStatus;
4222
4500
  /** URLs associated with the object */
@@ -4258,13 +4536,6 @@ export interface Seat {
4258
4536
  /** @format date-time */
4259
4537
  updatedAt: string;
4260
4538
  }
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
- }
4268
4539
  import { EventIterator } from 'event-iterator';
4269
4540
  export declare type QueryParamsType = Record<string | number, any>;
4270
4541
  export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
@@ -4359,7 +4630,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4359
4630
  query: string;
4360
4631
  /** Identifier of the page results to fetch. */
4361
4632
  page?: string;
4362
- /** The number of results per page */
4633
+ /**
4634
+ * The number of results per page
4635
+ * @min 0
4636
+ * @max 1000
4637
+ */
4363
4638
  limit?: number;
4364
4639
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4365
4640
  items: SearchSpaceResult[];
@@ -4599,7 +4874,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4599
4874
  query: string;
4600
4875
  /** Identifier of the page results to fetch. */
4601
4876
  page?: string;
4602
- /** The number of results per page */
4877
+ /**
4878
+ * The number of results per page
4879
+ * @min 0
4880
+ * @max 1000
4881
+ */
4603
4882
  limit?: number;
4604
4883
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4605
4884
  items: SearchPageResult[];
@@ -4766,7 +5045,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4766
5045
  */
4767
5046
  getCurrentRevision: (spaceId: string, query?: {
4768
5047
  /**
4769
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5048
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4770
5049
  * @default true
4771
5050
  */
4772
5051
  metadata?: boolean;
@@ -4790,7 +5069,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4790
5069
  */
4791
5070
  listPages: (spaceId: string, query?: {
4792
5071
  /**
4793
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5072
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4794
5073
  * @default true
4795
5074
  */
4796
5075
  metadata?: boolean;
@@ -4808,10 +5087,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4808
5087
  listFiles: (spaceId: string, query?: {
4809
5088
  /** Identifier of the page results to fetch. */
4810
5089
  page?: string;
4811
- /** The number of results per page */
5090
+ /**
5091
+ * The number of results per page
5092
+ * @min 0
5093
+ * @max 1000
5094
+ */
4812
5095
  limit?: number;
4813
5096
  /**
4814
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5097
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4815
5098
  * @default true
4816
5099
  */
4817
5100
  metadata?: boolean;
@@ -4828,7 +5111,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4828
5111
  */
4829
5112
  getFileById: (spaceId: string, fileId: string, query?: {
4830
5113
  /**
4831
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5114
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4832
5115
  * @default true
4833
5116
  */
4834
5117
  metadata?: boolean;
@@ -4845,7 +5128,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4845
5128
  /** Output format for the content. */
4846
5129
  format?: 'document' | 'markdown';
4847
5130
  /**
4848
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5131
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4849
5132
  * @default true
4850
5133
  */
4851
5134
  metadata?: boolean;
@@ -4871,7 +5154,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4871
5154
  /** Output format for the content. */
4872
5155
  format?: 'document' | 'markdown';
4873
5156
  /**
4874
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5157
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4875
5158
  * @default true
4876
5159
  */
4877
5160
  metadata?: boolean;
@@ -4910,7 +5193,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4910
5193
  listChangeRequestsForSpace: (spaceId: string, query?: {
4911
5194
  /** Identifier of the page results to fetch. */
4912
5195
  page?: string;
4913
- /** The number of results per page */
5196
+ /**
5197
+ * The number of results per page
5198
+ * @min 0
5199
+ * @max 1000
5200
+ */
4914
5201
  limit?: number;
4915
5202
  /**
4916
5203
  * If defined, only change requests matching this status will be returned
@@ -4991,7 +5278,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4991
5278
  format?: 'document' | 'markdown';
4992
5279
  /** Identifier of the page results to fetch. */
4993
5280
  page?: string;
4994
- /** The number of results per page */
5281
+ /**
5282
+ * The number of results per page
5283
+ * @min 0
5284
+ * @max 1000
5285
+ */
4995
5286
  limit?: number;
4996
5287
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4997
5288
  items: ChangeRequestReview[];
@@ -5029,7 +5320,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5029
5320
  getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
5030
5321
  /** Identifier of the page results to fetch. */
5031
5322
  page?: string;
5032
- /** The number of results per page */
5323
+ /**
5324
+ * The number of results per page
5325
+ * @min 0
5326
+ * @max 1000
5327
+ */
5033
5328
  limit?: number;
5034
5329
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5035
5330
  items: ChangeRequestRequestedReviewer[];
@@ -5064,7 +5359,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5064
5359
  listChangeRequestLinks: (spaceId: string, changeRequestId: string, query?: {
5065
5360
  /** Identifier of the page results to fetch. */
5066
5361
  page?: string;
5067
- /** The number of results per page */
5362
+ /**
5363
+ * The number of results per page
5364
+ * @min 0
5365
+ * @max 1000
5366
+ */
5068
5367
  limit?: number;
5069
5368
  /**
5070
5369
  * Text to display to represent the reference. Possible values include:
@@ -5096,7 +5395,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5096
5395
  listCommentsInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
5097
5396
  /** Identifier of the page results to fetch. */
5098
5397
  page?: string;
5099
- /** The number of results per page */
5398
+ /**
5399
+ * The number of results per page
5400
+ * @min 0
5401
+ * @max 1000
5402
+ */
5100
5403
  limit?: number;
5101
5404
  /**
5102
5405
  * An order for the items in the list
@@ -5170,7 +5473,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5170
5473
  listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
5171
5474
  /** Identifier of the page results to fetch. */
5172
5475
  page?: string;
5173
- /** The number of results per page */
5476
+ /**
5477
+ * The number of results per page
5478
+ * @min 0
5479
+ * @max 1000
5480
+ */
5174
5481
  limit?: number;
5175
5482
  /** Output format for the content. */
5176
5483
  format?: 'document' | 'markdown';
@@ -5251,7 +5558,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5251
5558
  */
5252
5559
  getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
5253
5560
  /**
5254
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5561
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5255
5562
  * @default true
5256
5563
  */
5257
5564
  metadata?: boolean;
@@ -5275,7 +5582,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5275
5582
  */
5276
5583
  listPagesInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
5277
5584
  /**
5278
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5585
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5279
5586
  * @default true
5280
5587
  */
5281
5588
  metadata?: boolean;
@@ -5293,10 +5600,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5293
5600
  listFilesInChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
5294
5601
  /** Identifier of the page results to fetch. */
5295
5602
  page?: string;
5296
- /** The number of results per page */
5603
+ /**
5604
+ * The number of results per page
5605
+ * @min 0
5606
+ * @max 1000
5607
+ */
5297
5608
  limit?: number;
5298
5609
  /**
5299
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5610
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5300
5611
  * @default true
5301
5612
  */
5302
5613
  metadata?: boolean;
@@ -5313,7 +5624,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5313
5624
  */
5314
5625
  getFileInChangeRequestById: (spaceId: string, changeRequestId: string, fileId: string, query?: {
5315
5626
  /**
5316
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5627
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5317
5628
  * @default true
5318
5629
  */
5319
5630
  metadata?: boolean;
@@ -5330,7 +5641,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5330
5641
  /** Output format for the content. */
5331
5642
  format?: 'document' | 'markdown';
5332
5643
  /**
5333
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5644
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5334
5645
  * @default true
5335
5646
  */
5336
5647
  metadata?: boolean;
@@ -5356,7 +5667,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5356
5667
  /** Output format for the content. */
5357
5668
  format?: 'document' | 'markdown';
5358
5669
  /**
5359
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5670
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5360
5671
  * @default true
5361
5672
  */
5362
5673
  metadata?: boolean;
@@ -5378,6 +5689,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5378
5689
  /** The relation of the touched content to the change request. */
5379
5690
  relation: 'synced-block';
5380
5691
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
5692
+ /**
5693
+ * No description
5694
+ *
5695
+ * @tags spaces
5696
+ * @name GetChangeRequestPdf
5697
+ * @summary Generate a URL to export the content of a change request as a PDF.
5698
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/pdf
5699
+ * @secure
5700
+ */
5701
+ getChangeRequestPdf: (spaceId: string, changeRequestId: string, query?: {
5702
+ /** Generate a PDF only for the provided page. */
5703
+ only?: boolean;
5704
+ /** ID of a specific page to generate a PDF for. */
5705
+ page?: string;
5706
+ }, params?: RequestParams) => Promise<HttpResponse<{
5707
+ /** Temporary URL to print the content. The URL will work for 1h. */
5708
+ url: URL;
5709
+ }, Error>>;
5381
5710
  /**
5382
5711
  * No description
5383
5712
  *
@@ -5388,7 +5717,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5388
5717
  */
5389
5718
  getRevisionById: (spaceId: string, revisionId: string, query?: {
5390
5719
  /**
5391
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5720
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5392
5721
  * @default true
5393
5722
  */
5394
5723
  metadata?: boolean;
@@ -5403,7 +5732,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5403
5732
  */
5404
5733
  getRevisionSemanticChanges: (spaceId: string, revisionId: string, query?: {
5405
5734
  /**
5406
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5735
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5407
5736
  * @default true
5408
5737
  */
5409
5738
  metadata?: boolean;
@@ -5427,7 +5756,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5427
5756
  */
5428
5757
  listPagesInRevisionById: (spaceId: string, revisionId: string, query?: {
5429
5758
  /**
5430
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5759
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5431
5760
  * @default true
5432
5761
  */
5433
5762
  metadata?: boolean;
@@ -5445,10 +5774,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5445
5774
  listFilesInRevisionById: (spaceId: string, revisionId: string, query?: {
5446
5775
  /** Identifier of the page results to fetch. */
5447
5776
  page?: string;
5448
- /** The number of results per page */
5777
+ /**
5778
+ * The number of results per page
5779
+ * @min 0
5780
+ * @max 1000
5781
+ */
5449
5782
  limit?: number;
5450
5783
  /**
5451
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5784
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5452
5785
  * @default true
5453
5786
  */
5454
5787
  metadata?: boolean;
@@ -5465,7 +5798,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5465
5798
  */
5466
5799
  getFileInRevisionById: (spaceId: string, revisionId: string, fileId: string, query?: {
5467
5800
  /**
5468
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5801
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5469
5802
  * @default true
5470
5803
  */
5471
5804
  metadata?: boolean;
@@ -5482,7 +5815,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5482
5815
  /** Output format for the content. */
5483
5816
  format?: 'document' | 'markdown';
5484
5817
  /**
5485
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5818
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5486
5819
  * @default true
5487
5820
  */
5488
5821
  metadata?: boolean;
@@ -5499,7 +5832,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5499
5832
  /** Output format for the content. */
5500
5833
  format?: 'document' | 'markdown';
5501
5834
  /**
5502
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5835
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5503
5836
  * @default true
5504
5837
  */
5505
5838
  metadata?: boolean;
@@ -5516,7 +5849,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5516
5849
  listCommentsInSpace: (spaceId: string, query?: {
5517
5850
  /** Identifier of the page results to fetch. */
5518
5851
  page?: string;
5519
- /** The number of results per page */
5852
+ /**
5853
+ * The number of results per page
5854
+ * @min 0
5855
+ * @max 1000
5856
+ */
5520
5857
  limit?: number;
5521
5858
  /**
5522
5859
  * An order for the items in the list
@@ -5590,7 +5927,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5590
5927
  listCommentRepliesInSpace: (spaceId: string, commentId: string, query?: {
5591
5928
  /** Identifier of the page results to fetch. */
5592
5929
  page?: string;
5593
- /** The number of results per page */
5930
+ /**
5931
+ * The number of results per page
5932
+ * @min 0
5933
+ * @max 1000
5934
+ */
5594
5935
  limit?: number;
5595
5936
  /** Output format for the content. */
5596
5937
  format?: 'document' | 'markdown';
@@ -5652,7 +5993,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5652
5993
  listPermissionsAggregateInSpace: (spaceId: string, query?: {
5653
5994
  /** Identifier of the page results to fetch. */
5654
5995
  page?: string;
5655
- /** The number of results per page */
5996
+ /**
5997
+ * The number of results per page
5998
+ * @min 0
5999
+ * @max 1000
6000
+ */
5656
6001
  limit?: number;
5657
6002
  /** If defined, only members with this role will be returned. */
5658
6003
  role?: MemberRole;
@@ -5885,6 +6230,41 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5885
6230
  * @secure
5886
6231
  */
5887
6232
  deleteSpaceShareLinkById: (spaceId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
6233
+ /**
6234
+ * No description
6235
+ *
6236
+ * @tags spaces, links
6237
+ * @name ListSpaceLinks
6238
+ * @summary Get all links in the context of a space including their status and location where they appear.
6239
+ * @request GET:/spaces/{spaceId}/links
6240
+ * @secure
6241
+ */
6242
+ listSpaceLinks: (spaceId: string, query?: {
6243
+ /** Identifier of the page results to fetch. */
6244
+ page?: string;
6245
+ /**
6246
+ * The number of results per page
6247
+ * @min 0
6248
+ * @max 1000
6249
+ */
6250
+ limit?: number;
6251
+ /**
6252
+ * Text to display to represent the reference. Possible values include:
6253
+ * - `ok` - No problems detected for this content reference.
6254
+ * - `broken` - The target does not exist in the revision.
6255
+ * - `in-app` - The target is a URL link pointing to an internal location in the app.
6256
+ */
6257
+ status?: ContentReferenceStatus;
6258
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
6259
+ stats: ContentReferencesStats;
6260
+ items: ContentReferenceUsage[];
6261
+ }, Error | {
6262
+ error: {
6263
+ /** @format int32 */
6264
+ code: 404;
6265
+ message: string;
6266
+ };
6267
+ }>>;
5888
6268
  };
5889
6269
  collections: {
5890
6270
  /**
@@ -5946,7 +6326,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5946
6326
  listSpacesInCollectionById: (collectionId: string, query?: {
5947
6327
  /** Identifier of the page results to fetch. */
5948
6328
  page?: string;
5949
- /** The number of results per page */
6329
+ /**
6330
+ * The number of results per page
6331
+ * @min 0
6332
+ * @max 1000
6333
+ */
5950
6334
  limit?: number;
5951
6335
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5952
6336
  items: Space[];
@@ -6021,7 +6405,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6021
6405
  listPermissionsAggregateInCollection: (collectionId: string, query?: {
6022
6406
  /** Identifier of the page results to fetch. */
6023
6407
  page?: string;
6024
- /** The number of results per page */
6408
+ /**
6409
+ * The number of results per page
6410
+ * @min 0
6411
+ * @max 1000
6412
+ */
6025
6413
  limit?: number;
6026
6414
  /** If defined, only members with this role will be returned. */
6027
6415
  role?: MemberRole;
@@ -6143,7 +6531,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6143
6531
  listIntegrations: (query?: {
6144
6532
  /** Identifier of the page results to fetch. */
6145
6533
  page?: string;
6146
- /** The number of results per page */
6534
+ /**
6535
+ * The number of results per page
6536
+ * @min 0
6537
+ * @max 1000
6538
+ */
6147
6539
  limit?: number;
6148
6540
  /** A search string to filter integrations by name */
6149
6541
  search?: any;
@@ -6212,7 +6604,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6212
6604
  listIntegrationInstallations: (integrationName: string, query?: {
6213
6605
  /** Identifier of the page results to fetch. */
6214
6606
  page?: string;
6215
- /** The number of results per page */
6607
+ /**
6608
+ * The number of results per page
6609
+ * @min 0
6610
+ * @max 1000
6611
+ */
6216
6612
  limit?: number;
6217
6613
  /** External Id to filter by */
6218
6614
  externalId?: string;
@@ -6247,7 +6643,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6247
6643
  listIntegrationEvents: (integrationName: string, query?: {
6248
6644
  /** Identifier of the page results to fetch. */
6249
6645
  page?: string;
6250
- /** The number of results per page */
6646
+ /**
6647
+ * The number of results per page
6648
+ * @min 0
6649
+ * @max 1000
6650
+ */
6251
6651
  limit?: number;
6252
6652
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6253
6653
  items: IntegrationEvent[];
@@ -6283,7 +6683,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6283
6683
  listIntegrationSpaceInstallations: (integrationName: string, query?: {
6284
6684
  /** Identifier of the page results to fetch. */
6285
6685
  page?: string;
6286
- /** The number of results per page */
6686
+ /**
6687
+ * The number of results per page
6688
+ * @min 0
6689
+ * @max 1000
6690
+ */
6287
6691
  limit?: number;
6288
6692
  /** External Id to filter by */
6289
6693
  externalId?: string;
@@ -6445,7 +6849,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6445
6849
  listIntegrationInstallationSpaces: (integrationName: string, installationId: string, query?: {
6446
6850
  /** Identifier of the page results to fetch. */
6447
6851
  page?: string;
6448
- /** The number of results per page */
6852
+ /**
6853
+ * The number of results per page
6854
+ * @min 0
6855
+ * @max 1000
6856
+ */
6449
6857
  limit?: number;
6450
6858
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6451
6859
  items: IntegrationSpaceInstallation[];
@@ -6502,45 +6910,40 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6502
6910
  * @secure
6503
6911
  */
6504
6912
  uninstallIntegrationFromSpace: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
6505
- };
6506
- orgs: {
6507
6913
  /**
6508
6914
  * No description
6509
6915
  *
6510
- * @tags organizations
6511
- * @name ListOrganizationsForAuthenticatedUser
6512
- * @summary Get the list of organizations for the currently authenticated user
6513
- * @request GET:/orgs
6916
+ * @tags integrations
6917
+ * @name ListIntegrationInstallationSites
6918
+ * @summary List installations on sites for an integration in an organization
6919
+ * @request GET:/integrations/{integrationName}/installations/{installationId}/sites
6514
6920
  * @secure
6515
6921
  */
6516
- listOrganizationsForAuthenticatedUser: (query?: {
6922
+ listIntegrationInstallationSites: (integrationName: string, installationId: string, query?: {
6517
6923
  /** Identifier of the page results to fetch. */
6518
6924
  page?: string;
6519
- /** The number of results per page */
6925
+ /**
6926
+ * The number of results per page
6927
+ * @min 0
6928
+ * @max 1000
6929
+ */
6520
6930
  limit?: number;
6521
6931
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6522
- items: Organization[];
6932
+ items: IntegrationSiteInstallation[];
6523
6933
  }, Error>>;
6524
6934
  /**
6525
6935
  * No description
6526
6936
  *
6527
- * @tags organizations
6528
- * @name CreateOrganization
6529
- * @summary Create an organization
6530
- * @request POST:/orgs
6531
- * @secure
6532
- */
6533
- createOrganization: (data: RequestCreateOrganization, params?: RequestParams) => Promise<HttpResponse<Organization, Error>>;
6534
- /**
6535
- * No description
6536
- *
6537
- * @tags organizations
6538
- * @name GetOrganizationById
6539
- * @summary Get an organization by its ID
6540
- * @request GET:/orgs/{organizationId}
6937
+ * @tags integrations
6938
+ * @name InstallIntegrationOnSite
6939
+ * @summary Install integration on a site using an existing installation
6940
+ * @request POST:/integrations/{integrationName}/installations/{installationId}/sites
6541
6941
  * @secure
6542
6942
  */
6543
- getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
6943
+ installIntegrationOnSite: (integrationName: string, installationId: string, data: {
6944
+ /** ID of the site to install the integration on */
6945
+ siteId: string;
6946
+ }, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
6544
6947
  error: {
6545
6948
  /** @format int32 */
6546
6949
  code: 404;
@@ -6550,13 +6953,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6550
6953
  /**
6551
6954
  * No description
6552
6955
  *
6553
- * @tags organizations
6554
- * @name DeleteOrganizationById
6555
- * @summary Delete an organization by its ID
6556
- * @request DELETE:/orgs/{organizationId}
6956
+ * @tags integrations
6957
+ * @name GetIntegrationSiteInstallation
6958
+ * @summary Get a specific integration's site installation
6959
+ * @request GET:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
6557
6960
  * @secure
6558
6961
  */
6559
- deleteOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
6962
+ getIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
6560
6963
  error: {
6561
6964
  /** @format int32 */
6562
6965
  code: 404;
@@ -6566,21 +6969,104 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6566
6969
  /**
6567
6970
  * No description
6568
6971
  *
6569
- * @tags organizations
6570
- * @name UpdateOrganizationById
6571
- * @summary Update an organization by its ID
6572
- * @request PATCH:/orgs/{organizationId}
6972
+ * @name UpdateIntegrationSiteInstallation
6973
+ * @summary Update external IDs and configurations of an integration's installation for a site
6974
+ * @request PATCH:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
6573
6975
  * @secure
6574
6976
  */
6575
- updateOrganizationById: (organizationId: string, data: {
6576
- /** Name of the organization */
6577
- title?: OrganizationTitle;
6578
- emailDomains?: OrganizationEmailDomains;
6579
- /** The role of a member in an organization, null for guests */
6580
- defaultRole?: MemberRoleOrGuest;
6581
- defaultContent?: OrganizationDefaultContent | null;
6582
- logo?: URL | null;
6583
- sso?: boolean;
6977
+ updateIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, data: RequestUpdateIntegrationSiteInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error>>;
6978
+ /**
6979
+ * No description
6980
+ *
6981
+ * @name UninstallIntegrationFromSite
6982
+ * @summary Uninstall the integration from a site
6983
+ * @request DELETE:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
6984
+ * @secure
6985
+ */
6986
+ uninstallIntegrationFromSite: (integrationName: string, installationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
6987
+ };
6988
+ orgs: {
6989
+ /**
6990
+ * No description
6991
+ *
6992
+ * @tags organizations
6993
+ * @name ListOrganizationsForAuthenticatedUser
6994
+ * @summary Get the list of organizations for the currently authenticated user
6995
+ * @request GET:/orgs
6996
+ * @secure
6997
+ */
6998
+ listOrganizationsForAuthenticatedUser: (query?: {
6999
+ /** Identifier of the page results to fetch. */
7000
+ page?: string;
7001
+ /**
7002
+ * The number of results per page
7003
+ * @min 0
7004
+ * @max 1000
7005
+ */
7006
+ limit?: number;
7007
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
7008
+ items: Organization[];
7009
+ }, Error>>;
7010
+ /**
7011
+ * No description
7012
+ *
7013
+ * @tags organizations
7014
+ * @name CreateOrganization
7015
+ * @summary Create an organization
7016
+ * @request POST:/orgs
7017
+ * @secure
7018
+ */
7019
+ createOrganization: (data: RequestCreateOrganization, params?: RequestParams) => Promise<HttpResponse<Organization, Error>>;
7020
+ /**
7021
+ * No description
7022
+ *
7023
+ * @tags organizations
7024
+ * @name GetOrganizationById
7025
+ * @summary Get an organization by its ID
7026
+ * @request GET:/orgs/{organizationId}
7027
+ * @secure
7028
+ */
7029
+ getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
7030
+ error: {
7031
+ /** @format int32 */
7032
+ code: 404;
7033
+ message: string;
7034
+ };
7035
+ }>>;
7036
+ /**
7037
+ * No description
7038
+ *
7039
+ * @tags organizations
7040
+ * @name DeleteOrganizationById
7041
+ * @summary Delete an organization by its ID
7042
+ * @request DELETE:/orgs/{organizationId}
7043
+ * @secure
7044
+ */
7045
+ deleteOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
7046
+ error: {
7047
+ /** @format int32 */
7048
+ code: 404;
7049
+ message: string;
7050
+ };
7051
+ }>>;
7052
+ /**
7053
+ * No description
7054
+ *
7055
+ * @tags organizations
7056
+ * @name UpdateOrganizationById
7057
+ * @summary Update an organization by its ID
7058
+ * @request PATCH:/orgs/{organizationId}
7059
+ * @secure
7060
+ */
7061
+ updateOrganizationById: (organizationId: string, data: {
7062
+ /** Name of the organization */
7063
+ title?: OrganizationTitle;
7064
+ emailDomains?: OrganizationEmailDomains;
7065
+ /** The role of a member in an organization, null for guests */
7066
+ defaultRole?: MemberRoleOrGuest;
7067
+ defaultContent?: OrganizationDefaultContent | null;
7068
+ logo?: URL | null;
7069
+ sso?: boolean;
6584
7070
  ai?: boolean;
6585
7071
  aiInsights?: boolean;
6586
7072
  }, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
@@ -6602,7 +7088,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6602
7088
  listMembersInOrganizationById: (organizationId: string, query?: {
6603
7089
  /** Identifier of the page results to fetch. */
6604
7090
  page?: string;
6605
- /** The number of results per page */
7091
+ /**
7092
+ * The number of results per page
7093
+ * @min 0
7094
+ * @max 1000
7095
+ */
6606
7096
  limit?: number;
6607
7097
  /** The Role to filter the member list by */
6608
7098
  role?: MemberRole | 'guest';
@@ -6676,7 +7166,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6676
7166
  listSpacesForOrganizationMember: (organizationId: string, userId: string, query?: {
6677
7167
  /** Identifier of the page results to fetch. */
6678
7168
  page?: string;
6679
- /** The number of results per page */
7169
+ /**
7170
+ * The number of results per page
7171
+ * @min 0
7172
+ * @max 1000
7173
+ */
6680
7174
  limit?: number;
6681
7175
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6682
7176
  items: MemberContentPermission[];
@@ -6693,7 +7187,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6693
7187
  listTeamsForOrganizationMember: (organizationId: string, userId: string, query?: {
6694
7188
  /** Identifier of the page results to fetch. */
6695
7189
  page?: string;
6696
- /** The number of results per page */
7190
+ /**
7191
+ * The number of results per page
7192
+ * @min 0
7193
+ * @max 1000
7194
+ */
6697
7195
  limit?: number;
6698
7196
  /** If provided, only teams whose name contains the given parameter will be returned. Case insensitive. */
6699
7197
  title?: string;
@@ -6715,7 +7213,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6715
7213
  listTeamsInOrganizationById: (organizationId: string, query?: {
6716
7214
  /** Identifier of the page results to fetch. */
6717
7215
  page?: string;
6718
- /** The number of results per page */
7216
+ /**
7217
+ * The number of results per page
7218
+ * @min 0
7219
+ * @max 1000
7220
+ */
6719
7221
  limit?: number;
6720
7222
  /** The unique identifier of a member of the organization. Only teams they can manage will be returned. */
6721
7223
  owner?: string;
@@ -6797,7 +7299,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6797
7299
  listTeamMembersInOrganizationById: (organizationId: string, teamId: string, query?: {
6798
7300
  /** Identifier of the page results to fetch. */
6799
7301
  page?: string;
6800
- /** The number of results per page */
7302
+ /**
7303
+ * The number of results per page
7304
+ * @min 0
7305
+ * @max 1000
7306
+ */
6801
7307
  limit?: number;
6802
7308
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6803
7309
  items: OrganizationTeamMember[];
@@ -6959,7 +7465,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6959
7465
  query: string;
6960
7466
  /** Identifier of the page results to fetch. */
6961
7467
  page?: string;
6962
- /** The number of results per page */
7468
+ /**
7469
+ * The number of results per page
7470
+ * @min 0
7471
+ * @max 1000
7472
+ */
6963
7473
  limit?: number;
6964
7474
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6965
7475
  items: SearchSpaceResult[];
@@ -6976,7 +7486,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6976
7486
  listSpacesInOrganizationById: (organizationId: string, query?: {
6977
7487
  /** Identifier of the page results to fetch. */
6978
7488
  page?: string;
6979
- /** The number of results per page */
7489
+ /**
7490
+ * The number of results per page
7491
+ * @min 0
7492
+ * @max 1000
7493
+ */
6980
7494
  limit?: number;
6981
7495
  /** If defined, only content with this visibility will be returned. */
6982
7496
  visibility?: ContentVisibility;
@@ -7005,7 +7519,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7005
7519
  listSpacesWithGitSyncInOrganizationById: (organizationId: string, query?: {
7006
7520
  /** Identifier of the page results to fetch. */
7007
7521
  page?: string;
7008
- /** The number of results per page */
7522
+ /**
7523
+ * The number of results per page
7524
+ * @min 0
7525
+ * @max 1000
7526
+ */
7009
7527
  limit?: number;
7010
7528
  /** If defined, only spaces with matching Git sync status are returned */
7011
7529
  status?: GitSyncOperationState;
@@ -7028,7 +7546,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7028
7546
  listCollectionsInOrganizationById: (organizationId: string, query?: {
7029
7547
  /** Identifier of the page results to fetch. */
7030
7548
  page?: string;
7031
- /** The number of results per page */
7549
+ /**
7550
+ * The number of results per page
7551
+ * @min 0
7552
+ * @max 1000
7553
+ */
7032
7554
  limit?: number;
7033
7555
  /**
7034
7556
  * If true, all nested collections will be listed
@@ -7065,7 +7587,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7065
7587
  listOrganizationCustomFields: (organizationId: string, query?: {
7066
7588
  /** Identifier of the page results to fetch. */
7067
7589
  page?: string;
7068
- /** The number of results per page */
7590
+ /**
7591
+ * The number of results per page
7592
+ * @min 0
7593
+ * @max 1000
7594
+ */
7069
7595
  limit?: number;
7070
7596
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7071
7597
  items: CustomField[];
@@ -7140,7 +7666,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7140
7666
  listOrganizationIntegrations: (organizationId: string, query?: {
7141
7667
  /** Identifier of the page results to fetch. */
7142
7668
  page?: string;
7143
- /** The number of results per page */
7669
+ /**
7670
+ * The number of results per page
7671
+ * @min 0
7672
+ * @max 1000
7673
+ */
7144
7674
  limit?: number;
7145
7675
  /** A search string to filter integrations by name */
7146
7676
  search?: any;
@@ -7177,7 +7707,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7177
7707
  listOrganizationInstallations: (organizationId: string, query?: {
7178
7708
  /** Identifier of the page results to fetch. */
7179
7709
  page?: string;
7180
- /** The number of results per page */
7710
+ /**
7711
+ * The number of results per page
7712
+ * @min 0
7713
+ * @max 1000
7714
+ */
7181
7715
  limit?: number;
7182
7716
  /** A search string to filter integrations by name */
7183
7717
  search?: any;
@@ -7208,6 +7742,107 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7208
7742
  * @secure
7209
7743
  */
7210
7744
  updateOrgExperimentalFeatures: (organizationId: string, data: Record<string, boolean>, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7745
+ /**
7746
+ * No description
7747
+ *
7748
+ * @tags organizations, usage
7749
+ * @name GetUsageForOrganizationById
7750
+ * @summary Get all usage metrics for an organization
7751
+ * @request GET:/orgs/{organizationId}/usage
7752
+ * @secure
7753
+ */
7754
+ getUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationUsage, Error>>;
7755
+ /**
7756
+ * No description
7757
+ *
7758
+ * @tags organizations, usage
7759
+ * @name GetCollectionsUsageForOrganizationById
7760
+ * @summary Get collections usage metrics for an organization
7761
+ * @request GET:/orgs/{organizationId}/usage/collections
7762
+ * @secure
7763
+ */
7764
+ getCollectionsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7765
+ /** Collections usage metrics of an organization */
7766
+ collections: OrganizationUsageCollections;
7767
+ }, Error>>;
7768
+ /**
7769
+ * No description
7770
+ *
7771
+ * @tags organizations, usage
7772
+ * @name GetSpacesUsageForOrganizationById
7773
+ * @summary Get spaces usage metrics for an organization
7774
+ * @request GET:/orgs/{organizationId}/usage/spaces
7775
+ * @secure
7776
+ */
7777
+ getSpacesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7778
+ /** Spaces usage metrics of an organization */
7779
+ spaces: OrganizationUsageSpaces;
7780
+ }, Error>>;
7781
+ /**
7782
+ * No description
7783
+ *
7784
+ * @tags organizations, usage
7785
+ * @name GetSitesUsageForOrganizationById
7786
+ * @summary Get sites usage metrics for an organization
7787
+ * @request GET:/orgs/{organizationId}/usage/sites
7788
+ * @secure
7789
+ */
7790
+ getSitesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7791
+ /** Sites usage metrics of an organization */
7792
+ sites: OrganizationUsageSites;
7793
+ }, Error>>;
7794
+ /**
7795
+ * No description
7796
+ *
7797
+ * @tags organizations, usage
7798
+ * @name GetTeamsUsageForOrganizationById
7799
+ * @summary Get teams usage metrics for an organization
7800
+ * @request GET:/orgs/{organizationId}/usage/teams
7801
+ * @secure
7802
+ */
7803
+ getTeamsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7804
+ /** Team members usage metrics of an organization */
7805
+ teams: OrganizationUsageTeams;
7806
+ }, Error>>;
7807
+ /**
7808
+ * No description
7809
+ *
7810
+ * @tags organizations, usage
7811
+ * @name GetMembersUsageForOrganizationById
7812
+ * @summary Get members usage metrics for an organization
7813
+ * @request GET:/orgs/{organizationId}/usage/members
7814
+ * @secure
7815
+ */
7816
+ getMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7817
+ /** Members usage metrics of an organization */
7818
+ members: OrganizationUsageMembers;
7819
+ }, Error>>;
7820
+ /**
7821
+ * No description
7822
+ *
7823
+ * @tags organizations, usage
7824
+ * @name GetTeamMembersUsageForOrganizationById
7825
+ * @summary Get team members usage metrics for an organization
7826
+ * @request GET:/orgs/{organizationId}/usage/team-members
7827
+ * @secure
7828
+ */
7829
+ getTeamMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7830
+ /** Team members usage metrics of an organization */
7831
+ teamMembers: OrganizationUsageTeamMembers;
7832
+ }, Error>>;
7833
+ /**
7834
+ * No description
7835
+ *
7836
+ * @tags organizations, usage
7837
+ * @name GetSeatsUsageForOrganizationById
7838
+ * @summary Get seats usage metrics for an organization
7839
+ * @request GET:/orgs/{organizationId}/usage/seats
7840
+ * @secure
7841
+ */
7842
+ getSeatsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7843
+ /** Seats usage metrics of an organization */
7844
+ seats: OrganizationUsageSeats;
7845
+ }, Error>>;
7211
7846
  /**
7212
7847
  * No description
7213
7848
  *
@@ -7220,7 +7855,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7220
7855
  listEntitySchemas: (organizationId: string, query?: {
7221
7856
  /** Identifier of the page results to fetch. */
7222
7857
  page?: string;
7223
- /** The number of results per page */
7858
+ /**
7859
+ * The number of results per page
7860
+ * @min 0
7861
+ * @max 1000
7862
+ */
7224
7863
  limit?: number;
7225
7864
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7226
7865
  items: EntitySchema[];
@@ -7267,7 +7906,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7267
7906
  listSchemaEntities: (organizationId: string, entityType: EntityType, query?: {
7268
7907
  /** Identifier of the page results to fetch. */
7269
7908
  page?: string;
7270
- /** The number of results per page */
7909
+ /**
7910
+ * The number of results per page
7911
+ * @min 0
7912
+ * @max 1000
7913
+ */
7271
7914
  limit?: number;
7272
7915
  /** Query to filter entities with, ex: a == 'something' && b >= 10 */
7273
7916
  query?: string;
@@ -7314,7 +7957,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7314
7957
  format?: 'document' | 'markdown';
7315
7958
  /** Identifier of the page results to fetch. */
7316
7959
  page?: string;
7317
- /** The number of results per page */
7960
+ /**
7961
+ * The number of results per page
7962
+ * @min 0
7963
+ * @max 1000
7964
+ */
7318
7965
  limit?: number;
7319
7966
  /** The context in which the item was captured */
7320
7967
  context?: 'walkthrough' | 'thread';
@@ -7397,7 +8044,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7397
8044
  listSnippets: (organizationId: string, query?: {
7398
8045
  /** Identifier of the page results to fetch. */
7399
8046
  page?: string;
7400
- /** The number of results per page */
8047
+ /**
8048
+ * The number of results per page
8049
+ * @min 0
8050
+ * @max 1000
8051
+ */
7401
8052
  limit?: number;
7402
8053
  /** If specified, only snippets from the specified source will be returned. */
7403
8054
  source?: string;
@@ -7481,7 +8132,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7481
8132
  getSnippetSuggestedLocations: (organizationId: string, snippetId: string, query?: {
7482
8133
  /** Identifier of the page results to fetch. */
7483
8134
  page?: string;
7484
- /** The number of results per page */
8135
+ /**
8136
+ * The number of results per page
8137
+ * @min 0
8138
+ * @max 1000
8139
+ */
7485
8140
  limit?: number;
7486
8141
  /** If specified, only locations in the given space will be returned. If not specified, GitBook will suggest spaces. */
7487
8142
  spaceId?: string;
@@ -7535,6 +8190,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7535
8190
  /** A new title for the Synced Block. */
7536
8191
  title?: string;
7537
8192
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8193
+ /**
8194
+ * No description
8195
+ *
8196
+ * @tags organizations
8197
+ * @name GetSyncedBlockBacklinks
8198
+ * @summary Get a list of pages that reference this synced block.
8199
+ * @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks
8200
+ * @secure
8201
+ */
8202
+ getSyncedBlockBacklinks: (organizationId: string, syncedBlockId: string, query?: {
8203
+ /** Identifier of the page results to fetch. */
8204
+ page?: string;
8205
+ /**
8206
+ * The number of results per page
8207
+ * @min 0
8208
+ * @max 1000
8209
+ */
8210
+ limit?: number;
8211
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8212
+ items: ContentLocation[];
8213
+ }, Error>>;
7538
8214
  /**
7539
8215
  * No description
7540
8216
  *
@@ -7593,7 +8269,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7593
8269
  listContentAuditRelations: (organizationId: string, query?: {
7594
8270
  /** Identifier of the page results to fetch. */
7595
8271
  page?: string;
7596
- /** The number of results per page */
8272
+ /**
8273
+ * The number of results per page
8274
+ * @min 0
8275
+ * @max 1000
8276
+ */
7597
8277
  limit?: number;
7598
8278
  /**
7599
8279
  * Status of the audit relation to filter on
@@ -7673,7 +8353,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7673
8353
  listSites: (organizationId: string, query?: {
7674
8354
  /** Identifier of the page results to fetch. */
7675
8355
  page?: string;
7676
- /** The number of results per page */
8356
+ /**
8357
+ * The number of results per page
8358
+ * @min 0
8359
+ * @max 1000
8360
+ */
7677
8361
  limit?: number;
7678
8362
  /** Identifier of the space to filter the sites by */
7679
8363
  space?: string;
@@ -7739,8 +8423,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7739
8423
  * * `unpublished`: The site is not accessible to anyone.
7740
8424
  */
7741
8425
  visibility?: SiteVisibility;
7742
- /** Custom hostname for the site, for e.g. docs.mycompany.com */
7743
- hostname?: SiteHostname;
7744
8426
  /** Basename for the site. For e.g. api */
7745
8427
  basename?: SiteBasename;
7746
8428
  /** ID of the site-space to be used as the default */
@@ -7756,6 +8438,64 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7756
8438
  * @secure
7757
8439
  */
7758
8440
  deleteSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8441
+ /**
8442
+ * No description
8443
+ *
8444
+ * @tags sites
8445
+ * @name ListSiteShareLinks
8446
+ * @summary List all the share links created in a site
8447
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/share-links
8448
+ * @secure
8449
+ */
8450
+ listSiteShareLinks: (organizationId: string, siteId: string, query?: {
8451
+ /** Identifier of the page results to fetch. */
8452
+ page?: string;
8453
+ /**
8454
+ * The number of results per page
8455
+ * @min 0
8456
+ * @max 1000
8457
+ */
8458
+ limit?: number;
8459
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8460
+ items: ShareLink[];
8461
+ }, Error>>;
8462
+ /**
8463
+ * No description
8464
+ *
8465
+ * @tags sites
8466
+ * @name CreateSiteShareLink
8467
+ * @summary Create a share link in a site
8468
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/share-links
8469
+ * @secure
8470
+ */
8471
+ createSiteShareLink: (organizationId: string, siteId: string, data: {
8472
+ /** Name of the share link */
8473
+ name: ShareLinkName;
8474
+ }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
8475
+ /**
8476
+ * No description
8477
+ *
8478
+ * @tags sites
8479
+ * @name UpdateSiteShareLinkById
8480
+ * @summary Update the details of a site share link
8481
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}
8482
+ * @secure
8483
+ */
8484
+ updateSiteShareLinkById: (organizationId: string, siteId: string, shareLinkId: string, data: {
8485
+ active?: boolean;
8486
+ /** Name of the share link */
8487
+ name?: ShareLinkName;
8488
+ }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
8489
+ /**
8490
+ * No description
8491
+ *
8492
+ * @tags sites
8493
+ * @name DeleteSiteShareLinkById
8494
+ * @summary Deletes a site share link
8495
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}
8496
+ * @secure
8497
+ */
8498
+ deleteSiteShareLinkById: (organizationId: string, siteId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7759
8499
  /**
7760
8500
  * No description
7761
8501
  *
@@ -7772,6 +8512,54 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7772
8512
  message: string;
7773
8513
  };
7774
8514
  }>>;
8515
+ /**
8516
+ * No description
8517
+ *
8518
+ * @tags sites
8519
+ * @name UpdateSitePublishingAuthSettings
8520
+ * @summary Update the publishing authentication settings for a site.
8521
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/publishing/auth
8522
+ * @secure
8523
+ */
8524
+ updateSitePublishingAuthSettings: (organizationId: string, siteId: string, data: SitePublishingAuthUpdate, params?: RequestParams) => Promise<HttpResponse<SitePublishingAuth, Error | {
8525
+ error: {
8526
+ /** @format int32 */
8527
+ code: 400;
8528
+ message: string;
8529
+ };
8530
+ }>>;
8531
+ /**
8532
+ * No description
8533
+ *
8534
+ * @tags sites
8535
+ * @name GetSiteCustomizationById
8536
+ * @summary Get the customization configuration for a site.
8537
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/customization
8538
+ * @secure
8539
+ */
8540
+ getSiteCustomizationById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8541
+ error: {
8542
+ /** @format int32 */
8543
+ code: 400;
8544
+ message: string;
8545
+ };
8546
+ }>>;
8547
+ /**
8548
+ * No description
8549
+ *
8550
+ * @tags sites
8551
+ * @name UpdateSiteCustomizationById
8552
+ * @summary Update the customization configuration for a site.
8553
+ * @request PUT:/orgs/{organizationId}/sites/{siteId}/customization
8554
+ * @secure
8555
+ */
8556
+ updateSiteCustomizationById: (organizationId: string, siteId: string, data: SiteCustomizationSettings, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8557
+ error: {
8558
+ /** @format int32 */
8559
+ code: 400;
8560
+ message: string;
8561
+ };
8562
+ }>>;
7775
8563
  /**
7776
8564
  * No description
7777
8565
  *
@@ -7797,7 +8585,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7797
8585
  listSiteSpaces: (organizationId: string, siteId: string, query?: {
7798
8586
  /** Identifier of the page results to fetch. */
7799
8587
  page?: string;
7800
- /** The number of results per page */
8588
+ /**
8589
+ * The number of results per page
8590
+ * @min 0
8591
+ * @max 1000
8592
+ */
7801
8593
  limit?: number;
7802
8594
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7803
8595
  items: SiteSpace[];
@@ -7825,6 +8617,162 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7825
8617
  * @secure
7826
8618
  */
7827
8619
  deleteSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8620
+ /**
8621
+ * No description
8622
+ *
8623
+ * @tags sites
8624
+ * @name GetSiteSpaceCustomizationById
8625
+ * @summary Get the customization configuration for a site space.
8626
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
8627
+ * @secure
8628
+ */
8629
+ getSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8630
+ error: {
8631
+ /** @format int32 */
8632
+ code: 400;
8633
+ message: string;
8634
+ };
8635
+ }>>;
8636
+ /**
8637
+ * No description
8638
+ *
8639
+ * @tags sites
8640
+ * @name OverrideSiteSpaceCustomizationById
8641
+ * @summary Override the customization configuration for a site space.
8642
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
8643
+ * @secure
8644
+ */
8645
+ overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data: SiteSpaceCustomizationOverrides, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8646
+ error: {
8647
+ /** @format int32 */
8648
+ code: 400;
8649
+ message: string;
8650
+ };
8651
+ }>>;
8652
+ /**
8653
+ * No description
8654
+ *
8655
+ * @tags seats
8656
+ * @name ListSeatsInOrganizationById
8657
+ * @summary List all seats in an organization
8658
+ * @request GET:/orgs/{organizationId}/seats
8659
+ * @secure
8660
+ */
8661
+ listSeatsInOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
8662
+ items: Seat[];
8663
+ }, Error>>;
8664
+ /**
8665
+ * No description
8666
+ *
8667
+ * @tags seats
8668
+ * @name AddSeatsToOrganizationById
8669
+ * @summary Add more seats to an organization
8670
+ * @request POST:/orgs/{organizationId}/seats
8671
+ * @secure
8672
+ */
8673
+ addSeatsToOrganizationById: (organizationId: string, data: {
8674
+ /** How many seats to add */
8675
+ amount: number;
8676
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8677
+ /**
8678
+ * No description
8679
+ *
8680
+ * @tags seats
8681
+ * @name RemoveSeatsFromOrganizationById
8682
+ * @summary Remove unassigned seats from an organization
8683
+ * @request DELETE:/orgs/{organizationId}/seats
8684
+ * @secure
8685
+ */
8686
+ removeSeatsFromOrganizationById: (organizationId: string, data: {
8687
+ /** How many seats to remove. Omit to remove all unassigned seats. */
8688
+ amount?: number;
8689
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8690
+ /**
8691
+ * No description
8692
+ *
8693
+ * @tags seats
8694
+ * @name AssignSeatsToMembersInOrganizationById
8695
+ * @summary Assign seats for one or more members within an organization
8696
+ * @request PUT:/orgs/{organizationId}/seats/members
8697
+ * @secure
8698
+ */
8699
+ assignSeatsToMembersInOrganizationById: (organizationId: string, data: {
8700
+ /** The unique ID of the organization member */
8701
+ member: string;
8702
+ }[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
8703
+ error: {
8704
+ /** @format int32 */
8705
+ code: 409;
8706
+ message: string;
8707
+ };
8708
+ }>>;
8709
+ /**
8710
+ * No description
8711
+ *
8712
+ * @tags seats
8713
+ * @name RevokeSeatsFromMembersInOrganizationById
8714
+ * @summary Revoke seats for one or more members within an organization
8715
+ * @request DELETE:/orgs/{organizationId}/seats/members
8716
+ * @secure
8717
+ */
8718
+ revokeSeatsFromMembersInOrganizationById: (organizationId: string, data: {
8719
+ /** The unique ID of the organization member */
8720
+ member: string;
8721
+ }[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
8722
+ error: {
8723
+ /** @format int32 */
8724
+ code: 409;
8725
+ message: string;
8726
+ };
8727
+ }>>;
8728
+ /**
8729
+ * No description
8730
+ *
8731
+ * @tags seats
8732
+ * @name GetSeatForMemberInOrganizationById
8733
+ * @summary Get the seat of a member of the organization
8734
+ * @request GET:/orgs/{organizationId}/seats/members/{userId}
8735
+ * @secure
8736
+ */
8737
+ getSeatForMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<Seat, Error | {
8738
+ error: {
8739
+ /** @format int32 */
8740
+ code: 409;
8741
+ message: string;
8742
+ };
8743
+ }>>;
8744
+ /**
8745
+ * No description
8746
+ *
8747
+ * @tags seats
8748
+ * @name AssignSeatToMemberInOrganizationById
8749
+ * @summary Assign an available seat to a member of the organization
8750
+ * @request PUT:/orgs/{organizationId}/seats/members/{userId}
8751
+ * @secure
8752
+ */
8753
+ assignSeatToMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
8754
+ error: {
8755
+ /** @format int32 */
8756
+ code: 409;
8757
+ message: string;
8758
+ };
8759
+ }>>;
8760
+ /**
8761
+ * No description
8762
+ *
8763
+ * @tags seats
8764
+ * @name RevokeSeatFromMemberInOrganizationById
8765
+ * @summary Revoke a seat from a member of the organization
8766
+ * @request DELETE:/orgs/{organizationId}/seats/members/{userId}
8767
+ * @secure
8768
+ */
8769
+ revokeSeatFromMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
8770
+ error: {
8771
+ /** @format int32 */
8772
+ code: 409;
8773
+ message: string;
8774
+ };
8775
+ }>>;
7828
8776
  };
7829
8777
  customHostnames: {
7830
8778
  /**
@@ -7847,7 +8795,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7847
8795
  * @secure
7848
8796
  */
7849
8797
  setupCustomHostname: (hostname: string, data: {
7850
- target: OrganizationPointer | SpacePointer | CollectionPointer;
8798
+ target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
7851
8799
  }, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error | {
7852
8800
  error: {
7853
8801
  /** @format int32 */
@@ -7891,7 +8839,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7891
8839
  * @secure
7892
8840
  */
7893
8841
  testCustomHostname: (hostname: string, data: {
7894
- target: OrganizationPointer | SpacePointer | CollectionPointer;
8842
+ target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
7895
8843
  }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
7896
8844
  error: {
7897
8845
  /** @format int32 */