@gitbook/api 0.36.0 → 0.37.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,12 @@ 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
+ files?: RevisionFile[];
1863
2002
  }
1864
2003
  /** Content audit relation */
1865
2004
  export interface ContentAuditRelation {
@@ -1944,10 +2083,8 @@ export interface ContentReferencesStats {
1944
2083
  broken: {
1945
2084
  /** Count of broken links */
1946
2085
  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
2086
  /** Count of broken links that were broken in current change request, if applicable. */
1950
- changeRequest: number;
2087
+ changeRequest?: number;
1951
2088
  };
1952
2089
  }
1953
2090
  export interface ChangeRequest {
@@ -3570,14 +3707,17 @@ export interface ContentKitURL {
3570
3707
  query?: Record<string, string | ContentKitDynamicBinding>;
3571
3708
  }
3572
3709
  /** 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 | {
3710
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | {
3711
+ channel: 'space-broken-links';
3712
+ space: string;
3713
+ } | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | {
3574
3714
  channel: 'space-change-request-broken-links';
3575
3715
  space: string;
3576
3716
  changeRequest: string;
3577
3717
  } | CollectionChannel | CollectionPublishingCustomizationChannel | {
3578
3718
  channel: 'organization';
3579
3719
  organization: string;
3580
- } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | {
3720
+ } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationSeatsChannel | OrganizationUsageSeatsChannel | OrganizationSeatChannel | {
3581
3721
  channel: 'organization-experimental-features';
3582
3722
  organization: string;
3583
3723
  } | OrganizationSyncedBlockChannel | {
@@ -3600,10 +3740,7 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
3600
3740
  space: string;
3601
3741
  changeRequest?: string;
3602
3742
  comment: string;
3603
- } | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteSpaceChannel | SiteSpacesChannel | {
3604
- channel: 'site-publishing-auth';
3605
- site: string;
3606
- } | CustomHostnameChannel;
3743
+ } | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | CustomHostnameChannel;
3607
3744
  export interface SpaceInfoChannel {
3608
3745
  channel: 'space';
3609
3746
  space: string;
@@ -3750,6 +3887,22 @@ export interface OrganizationSitesChannel {
3750
3887
  channel: 'organization-sites';
3751
3888
  organization: string;
3752
3889
  }
3890
+ /** Subscription channel for changes in a member seat in an organization. */
3891
+ export interface OrganizationSeatChannel {
3892
+ channel: 'organization-seat';
3893
+ organization: string;
3894
+ member: string;
3895
+ }
3896
+ /** Subscription channel for changes in seats in an organization. */
3897
+ export interface OrganizationSeatsChannel {
3898
+ channel: 'organization-seats';
3899
+ organization: string;
3900
+ }
3901
+ /** Subscription channel for changes in seats usage in an organization. */
3902
+ export interface OrganizationUsageSeatsChannel {
3903
+ channel: 'organization-usage-seats';
3904
+ organization: string;
3905
+ }
3753
3906
  export interface IntegrationChannel {
3754
3907
  channel: 'integration';
3755
3908
  integration: string;
@@ -3785,16 +3938,39 @@ export interface SiteChannel {
3785
3938
  channel: 'site';
3786
3939
  site: string;
3787
3940
  }
3941
+ export interface SiteCustomizationChannel {
3942
+ channel: 'site-customization';
3943
+ site: string;
3944
+ }
3945
+ export interface SitePublishingAuthChannel {
3946
+ channel: 'site-publishing-auth';
3947
+ site: string;
3948
+ }
3788
3949
  export interface SiteSpaceChannel {
3789
3950
  channel: 'site-space';
3790
3951
  site: string;
3791
3952
  siteSpace: string;
3792
3953
  }
3954
+ export interface SiteSpaceCustomizationChannel {
3955
+ channel: 'site-space-customization';
3956
+ site: string;
3957
+ siteSpace: string;
3958
+ }
3793
3959
  /** Subscription channel for changes in site spaces in an organization. */
3794
3960
  export interface SiteSpacesChannel {
3795
3961
  channel: 'site-spaces';
3796
3962
  site: string;
3797
3963
  }
3964
+ export interface SiteShareLinkChannel {
3965
+ channel: 'site-share-link';
3966
+ site: string;
3967
+ siteShareLink: string;
3968
+ }
3969
+ /** Subscription channel for changes in share links in a site */
3970
+ export interface SiteShareLinksChannel {
3971
+ channel: 'site-share-links';
3972
+ site: string;
3973
+ }
3798
3974
  export interface CustomHostnameChannel {
3799
3975
  channel: 'custom-hostname';
3800
3976
  customHostname: string;
@@ -3974,6 +4150,7 @@ export declare type CustomizationHeaderLink = CustomizationContentLink & {
3974
4150
  };
3975
4151
  export interface CustomizationContentLink {
3976
4152
  title: string;
4153
+ /** A relative reference to content in GitBook. */
3977
4154
  to: ContentRef;
3978
4155
  }
3979
4156
  export interface CustomizationFooterGroup {
@@ -4034,6 +4211,11 @@ export interface ShareLink {
4034
4211
  * @maxLength 50
4035
4212
  */
4036
4213
  export declare type ShareLinkName = string;
4214
+ export interface SitePointer {
4215
+ type: 'site';
4216
+ /** Unique identifier for the site */
4217
+ site: string;
4218
+ }
4037
4219
  export interface Site {
4038
4220
  object: 'site';
4039
4221
  /** Unique identifier of the site */
@@ -4172,6 +4354,13 @@ export declare type SitePublishingAuth = {
4172
4354
  */
4173
4355
  fallbackURL?: string;
4174
4356
  } & SpaceVisitorAuth;
4357
+ export declare type SitePublishingAuthUpdate = (SpaceVisitorAuthCustomBackend | SpaceVisitorAuthIntegrationBackend) & {
4358
+ /**
4359
+ * A fallback URL that will be used if authentication fails.
4360
+ * @format uri
4361
+ */
4362
+ fallbackURL?: string;
4363
+ };
4175
4364
  /**
4176
4365
  * Basename for the site. For e.g. api
4177
4366
  * @minLength 1
@@ -4216,7 +4405,7 @@ export interface CustomHostname {
4216
4405
  object: 'custom-hostname';
4217
4406
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
4218
4407
  hostname: SiteHostname;
4219
- target: OrganizationPointer | SpacePointer | CollectionPointer;
4408
+ target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
4220
4409
  isActive: boolean;
4221
4410
  status?: CustomHostnameStatus;
4222
4411
  /** URLs associated with the object */
@@ -4258,13 +4447,6 @@ export interface Seat {
4258
4447
  /** @format date-time */
4259
4448
  updatedAt: string;
4260
4449
  }
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
4450
  import { EventIterator } from 'event-iterator';
4269
4451
  export declare type QueryParamsType = Record<string | number, any>;
4270
4452
  export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
@@ -4359,7 +4541,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4359
4541
  query: string;
4360
4542
  /** Identifier of the page results to fetch. */
4361
4543
  page?: string;
4362
- /** The number of results per page */
4544
+ /**
4545
+ * The number of results per page
4546
+ * @min 0
4547
+ * @max 1000
4548
+ */
4363
4549
  limit?: number;
4364
4550
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4365
4551
  items: SearchSpaceResult[];
@@ -4599,7 +4785,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4599
4785
  query: string;
4600
4786
  /** Identifier of the page results to fetch. */
4601
4787
  page?: string;
4602
- /** The number of results per page */
4788
+ /**
4789
+ * The number of results per page
4790
+ * @min 0
4791
+ * @max 1000
4792
+ */
4603
4793
  limit?: number;
4604
4794
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4605
4795
  items: SearchPageResult[];
@@ -4766,7 +4956,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4766
4956
  */
4767
4957
  getCurrentRevision: (spaceId: string, query?: {
4768
4958
  /**
4769
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4959
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4770
4960
  * @default true
4771
4961
  */
4772
4962
  metadata?: boolean;
@@ -4790,7 +4980,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4790
4980
  */
4791
4981
  listPages: (spaceId: string, query?: {
4792
4982
  /**
4793
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4983
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4794
4984
  * @default true
4795
4985
  */
4796
4986
  metadata?: boolean;
@@ -4808,10 +4998,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4808
4998
  listFiles: (spaceId: string, query?: {
4809
4999
  /** Identifier of the page results to fetch. */
4810
5000
  page?: string;
4811
- /** The number of results per page */
5001
+ /**
5002
+ * The number of results per page
5003
+ * @min 0
5004
+ * @max 1000
5005
+ */
4812
5006
  limit?: number;
4813
5007
  /**
4814
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5008
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4815
5009
  * @default true
4816
5010
  */
4817
5011
  metadata?: boolean;
@@ -4828,7 +5022,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4828
5022
  */
4829
5023
  getFileById: (spaceId: string, fileId: string, query?: {
4830
5024
  /**
4831
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5025
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4832
5026
  * @default true
4833
5027
  */
4834
5028
  metadata?: boolean;
@@ -4845,7 +5039,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4845
5039
  /** Output format for the content. */
4846
5040
  format?: 'document' | 'markdown';
4847
5041
  /**
4848
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5042
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4849
5043
  * @default true
4850
5044
  */
4851
5045
  metadata?: boolean;
@@ -4871,7 +5065,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4871
5065
  /** Output format for the content. */
4872
5066
  format?: 'document' | 'markdown';
4873
5067
  /**
4874
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5068
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4875
5069
  * @default true
4876
5070
  */
4877
5071
  metadata?: boolean;
@@ -4910,7 +5104,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4910
5104
  listChangeRequestsForSpace: (spaceId: string, query?: {
4911
5105
  /** Identifier of the page results to fetch. */
4912
5106
  page?: string;
4913
- /** The number of results per page */
5107
+ /**
5108
+ * The number of results per page
5109
+ * @min 0
5110
+ * @max 1000
5111
+ */
4914
5112
  limit?: number;
4915
5113
  /**
4916
5114
  * If defined, only change requests matching this status will be returned
@@ -4991,7 +5189,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4991
5189
  format?: 'document' | 'markdown';
4992
5190
  /** Identifier of the page results to fetch. */
4993
5191
  page?: string;
4994
- /** The number of results per page */
5192
+ /**
5193
+ * The number of results per page
5194
+ * @min 0
5195
+ * @max 1000
5196
+ */
4995
5197
  limit?: number;
4996
5198
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4997
5199
  items: ChangeRequestReview[];
@@ -5029,7 +5231,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5029
5231
  getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
5030
5232
  /** Identifier of the page results to fetch. */
5031
5233
  page?: string;
5032
- /** The number of results per page */
5234
+ /**
5235
+ * The number of results per page
5236
+ * @min 0
5237
+ * @max 1000
5238
+ */
5033
5239
  limit?: number;
5034
5240
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5035
5241
  items: ChangeRequestRequestedReviewer[];
@@ -5064,7 +5270,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5064
5270
  listChangeRequestLinks: (spaceId: string, changeRequestId: string, query?: {
5065
5271
  /** Identifier of the page results to fetch. */
5066
5272
  page?: string;
5067
- /** The number of results per page */
5273
+ /**
5274
+ * The number of results per page
5275
+ * @min 0
5276
+ * @max 1000
5277
+ */
5068
5278
  limit?: number;
5069
5279
  /**
5070
5280
  * Text to display to represent the reference. Possible values include:
@@ -5096,7 +5306,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5096
5306
  listCommentsInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
5097
5307
  /** Identifier of the page results to fetch. */
5098
5308
  page?: string;
5099
- /** The number of results per page */
5309
+ /**
5310
+ * The number of results per page
5311
+ * @min 0
5312
+ * @max 1000
5313
+ */
5100
5314
  limit?: number;
5101
5315
  /**
5102
5316
  * An order for the items in the list
@@ -5170,7 +5384,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5170
5384
  listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
5171
5385
  /** Identifier of the page results to fetch. */
5172
5386
  page?: string;
5173
- /** The number of results per page */
5387
+ /**
5388
+ * The number of results per page
5389
+ * @min 0
5390
+ * @max 1000
5391
+ */
5174
5392
  limit?: number;
5175
5393
  /** Output format for the content. */
5176
5394
  format?: 'document' | 'markdown';
@@ -5251,7 +5469,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5251
5469
  */
5252
5470
  getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
5253
5471
  /**
5254
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5472
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5255
5473
  * @default true
5256
5474
  */
5257
5475
  metadata?: boolean;
@@ -5275,7 +5493,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5275
5493
  */
5276
5494
  listPagesInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
5277
5495
  /**
5278
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5496
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5279
5497
  * @default true
5280
5498
  */
5281
5499
  metadata?: boolean;
@@ -5293,10 +5511,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5293
5511
  listFilesInChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
5294
5512
  /** Identifier of the page results to fetch. */
5295
5513
  page?: string;
5296
- /** The number of results per page */
5514
+ /**
5515
+ * The number of results per page
5516
+ * @min 0
5517
+ * @max 1000
5518
+ */
5297
5519
  limit?: number;
5298
5520
  /**
5299
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5521
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5300
5522
  * @default true
5301
5523
  */
5302
5524
  metadata?: boolean;
@@ -5313,7 +5535,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5313
5535
  */
5314
5536
  getFileInChangeRequestById: (spaceId: string, changeRequestId: string, fileId: string, query?: {
5315
5537
  /**
5316
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5538
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5317
5539
  * @default true
5318
5540
  */
5319
5541
  metadata?: boolean;
@@ -5330,7 +5552,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5330
5552
  /** Output format for the content. */
5331
5553
  format?: 'document' | 'markdown';
5332
5554
  /**
5333
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5555
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5334
5556
  * @default true
5335
5557
  */
5336
5558
  metadata?: boolean;
@@ -5356,7 +5578,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5356
5578
  /** Output format for the content. */
5357
5579
  format?: 'document' | 'markdown';
5358
5580
  /**
5359
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5581
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5360
5582
  * @default true
5361
5583
  */
5362
5584
  metadata?: boolean;
@@ -5378,6 +5600,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5378
5600
  /** The relation of the touched content to the change request. */
5379
5601
  relation: 'synced-block';
5380
5602
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
5603
+ /**
5604
+ * No description
5605
+ *
5606
+ * @tags spaces
5607
+ * @name GetChangeRequestPdf
5608
+ * @summary Generate a URL to export the content of a change request as a PDF.
5609
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/pdf
5610
+ * @secure
5611
+ */
5612
+ getChangeRequestPdf: (spaceId: string, changeRequestId: string, query?: {
5613
+ /** Generate a PDF only for the provided page. */
5614
+ only?: boolean;
5615
+ /** ID of a specific page to generate a PDF for. */
5616
+ page?: string;
5617
+ }, params?: RequestParams) => Promise<HttpResponse<{
5618
+ /** Temporary URL to print the content. The URL will work for 1h. */
5619
+ url: URL;
5620
+ }, Error>>;
5381
5621
  /**
5382
5622
  * No description
5383
5623
  *
@@ -5388,7 +5628,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5388
5628
  */
5389
5629
  getRevisionById: (spaceId: string, revisionId: string, query?: {
5390
5630
  /**
5391
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5631
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5392
5632
  * @default true
5393
5633
  */
5394
5634
  metadata?: boolean;
@@ -5403,7 +5643,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5403
5643
  */
5404
5644
  getRevisionSemanticChanges: (spaceId: string, revisionId: string, query?: {
5405
5645
  /**
5406
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5646
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5407
5647
  * @default true
5408
5648
  */
5409
5649
  metadata?: boolean;
@@ -5427,7 +5667,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5427
5667
  */
5428
5668
  listPagesInRevisionById: (spaceId: string, revisionId: string, query?: {
5429
5669
  /**
5430
- * 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.
5431
5671
  * @default true
5432
5672
  */
5433
5673
  metadata?: boolean;
@@ -5445,10 +5685,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5445
5685
  listFilesInRevisionById: (spaceId: string, revisionId: string, query?: {
5446
5686
  /** Identifier of the page results to fetch. */
5447
5687
  page?: string;
5448
- /** The number of results per page */
5688
+ /**
5689
+ * The number of results per page
5690
+ * @min 0
5691
+ * @max 1000
5692
+ */
5449
5693
  limit?: number;
5450
5694
  /**
5451
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5695
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5452
5696
  * @default true
5453
5697
  */
5454
5698
  metadata?: boolean;
@@ -5465,7 +5709,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5465
5709
  */
5466
5710
  getFileInRevisionById: (spaceId: string, revisionId: string, fileId: string, query?: {
5467
5711
  /**
5468
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5712
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5469
5713
  * @default true
5470
5714
  */
5471
5715
  metadata?: boolean;
@@ -5482,7 +5726,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5482
5726
  /** Output format for the content. */
5483
5727
  format?: 'document' | 'markdown';
5484
5728
  /**
5485
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5729
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5486
5730
  * @default true
5487
5731
  */
5488
5732
  metadata?: boolean;
@@ -5499,7 +5743,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5499
5743
  /** Output format for the content. */
5500
5744
  format?: 'document' | 'markdown';
5501
5745
  /**
5502
- * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5746
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5503
5747
  * @default true
5504
5748
  */
5505
5749
  metadata?: boolean;
@@ -5516,7 +5760,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5516
5760
  listCommentsInSpace: (spaceId: string, query?: {
5517
5761
  /** Identifier of the page results to fetch. */
5518
5762
  page?: string;
5519
- /** The number of results per page */
5763
+ /**
5764
+ * The number of results per page
5765
+ * @min 0
5766
+ * @max 1000
5767
+ */
5520
5768
  limit?: number;
5521
5769
  /**
5522
5770
  * An order for the items in the list
@@ -5590,7 +5838,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5590
5838
  listCommentRepliesInSpace: (spaceId: string, commentId: string, query?: {
5591
5839
  /** Identifier of the page results to fetch. */
5592
5840
  page?: string;
5593
- /** The number of results per page */
5841
+ /**
5842
+ * The number of results per page
5843
+ * @min 0
5844
+ * @max 1000
5845
+ */
5594
5846
  limit?: number;
5595
5847
  /** Output format for the content. */
5596
5848
  format?: 'document' | 'markdown';
@@ -5652,7 +5904,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5652
5904
  listPermissionsAggregateInSpace: (spaceId: string, query?: {
5653
5905
  /** Identifier of the page results to fetch. */
5654
5906
  page?: string;
5655
- /** The number of results per page */
5907
+ /**
5908
+ * The number of results per page
5909
+ * @min 0
5910
+ * @max 1000
5911
+ */
5656
5912
  limit?: number;
5657
5913
  /** If defined, only members with this role will be returned. */
5658
5914
  role?: MemberRole;
@@ -5885,6 +6141,41 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5885
6141
  * @secure
5886
6142
  */
5887
6143
  deleteSpaceShareLinkById: (spaceId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
6144
+ /**
6145
+ * No description
6146
+ *
6147
+ * @tags spaces, links
6148
+ * @name ListSpaceLinks
6149
+ * @summary Get all links in the context of a space including their status and location where they appear.
6150
+ * @request GET:/spaces/{spaceId}/links
6151
+ * @secure
6152
+ */
6153
+ listSpaceLinks: (spaceId: string, query?: {
6154
+ /** Identifier of the page results to fetch. */
6155
+ page?: string;
6156
+ /**
6157
+ * The number of results per page
6158
+ * @min 0
6159
+ * @max 1000
6160
+ */
6161
+ limit?: number;
6162
+ /**
6163
+ * Text to display to represent the reference. Possible values include:
6164
+ * - `ok` - No problems detected for this content reference.
6165
+ * - `broken` - The target does not exist in the revision.
6166
+ * - `in-app` - The target is a URL link pointing to an internal location in the app.
6167
+ */
6168
+ status?: ContentReferenceStatus;
6169
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
6170
+ stats: ContentReferencesStats;
6171
+ items: ContentReferenceUsage[];
6172
+ }, Error | {
6173
+ error: {
6174
+ /** @format int32 */
6175
+ code: 404;
6176
+ message: string;
6177
+ };
6178
+ }>>;
5888
6179
  };
5889
6180
  collections: {
5890
6181
  /**
@@ -5946,7 +6237,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5946
6237
  listSpacesInCollectionById: (collectionId: string, query?: {
5947
6238
  /** Identifier of the page results to fetch. */
5948
6239
  page?: string;
5949
- /** The number of results per page */
6240
+ /**
6241
+ * The number of results per page
6242
+ * @min 0
6243
+ * @max 1000
6244
+ */
5950
6245
  limit?: number;
5951
6246
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5952
6247
  items: Space[];
@@ -6021,7 +6316,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6021
6316
  listPermissionsAggregateInCollection: (collectionId: string, query?: {
6022
6317
  /** Identifier of the page results to fetch. */
6023
6318
  page?: string;
6024
- /** The number of results per page */
6319
+ /**
6320
+ * The number of results per page
6321
+ * @min 0
6322
+ * @max 1000
6323
+ */
6025
6324
  limit?: number;
6026
6325
  /** If defined, only members with this role will be returned. */
6027
6326
  role?: MemberRole;
@@ -6143,7 +6442,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6143
6442
  listIntegrations: (query?: {
6144
6443
  /** Identifier of the page results to fetch. */
6145
6444
  page?: string;
6146
- /** The number of results per page */
6445
+ /**
6446
+ * The number of results per page
6447
+ * @min 0
6448
+ * @max 1000
6449
+ */
6147
6450
  limit?: number;
6148
6451
  /** A search string to filter integrations by name */
6149
6452
  search?: any;
@@ -6212,7 +6515,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6212
6515
  listIntegrationInstallations: (integrationName: string, query?: {
6213
6516
  /** Identifier of the page results to fetch. */
6214
6517
  page?: string;
6215
- /** The number of results per page */
6518
+ /**
6519
+ * The number of results per page
6520
+ * @min 0
6521
+ * @max 1000
6522
+ */
6216
6523
  limit?: number;
6217
6524
  /** External Id to filter by */
6218
6525
  externalId?: string;
@@ -6247,7 +6554,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6247
6554
  listIntegrationEvents: (integrationName: string, query?: {
6248
6555
  /** Identifier of the page results to fetch. */
6249
6556
  page?: string;
6250
- /** The number of results per page */
6557
+ /**
6558
+ * The number of results per page
6559
+ * @min 0
6560
+ * @max 1000
6561
+ */
6251
6562
  limit?: number;
6252
6563
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6253
6564
  items: IntegrationEvent[];
@@ -6283,7 +6594,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6283
6594
  listIntegrationSpaceInstallations: (integrationName: string, query?: {
6284
6595
  /** Identifier of the page results to fetch. */
6285
6596
  page?: string;
6286
- /** The number of results per page */
6597
+ /**
6598
+ * The number of results per page
6599
+ * @min 0
6600
+ * @max 1000
6601
+ */
6287
6602
  limit?: number;
6288
6603
  /** External Id to filter by */
6289
6604
  externalId?: string;
@@ -6445,7 +6760,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6445
6760
  listIntegrationInstallationSpaces: (integrationName: string, installationId: string, query?: {
6446
6761
  /** Identifier of the page results to fetch. */
6447
6762
  page?: string;
6448
- /** The number of results per page */
6763
+ /**
6764
+ * The number of results per page
6765
+ * @min 0
6766
+ * @max 1000
6767
+ */
6449
6768
  limit?: number;
6450
6769
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6451
6770
  items: IntegrationSpaceInstallation[];
@@ -6502,6 +6821,80 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6502
6821
  * @secure
6503
6822
  */
6504
6823
  uninstallIntegrationFromSpace: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
6824
+ /**
6825
+ * No description
6826
+ *
6827
+ * @tags integrations
6828
+ * @name ListIntegrationInstallationSites
6829
+ * @summary List installations on sites for an integration in an organization
6830
+ * @request GET:/integrations/{integrationName}/installations/{installationId}/sites
6831
+ * @secure
6832
+ */
6833
+ listIntegrationInstallationSites: (integrationName: string, installationId: string, query?: {
6834
+ /** Identifier of the page results to fetch. */
6835
+ page?: string;
6836
+ /**
6837
+ * The number of results per page
6838
+ * @min 0
6839
+ * @max 1000
6840
+ */
6841
+ limit?: number;
6842
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
6843
+ items: IntegrationSiteInstallation[];
6844
+ }, Error>>;
6845
+ /**
6846
+ * No description
6847
+ *
6848
+ * @tags integrations
6849
+ * @name InstallIntegrationOnSite
6850
+ * @summary Install integration on a site using an existing installation
6851
+ * @request POST:/integrations/{integrationName}/installations/{installationId}/sites
6852
+ * @secure
6853
+ */
6854
+ installIntegrationOnSite: (integrationName: string, installationId: string, data: {
6855
+ /** ID of the site to install the integration on */
6856
+ siteId: string;
6857
+ }, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
6858
+ error: {
6859
+ /** @format int32 */
6860
+ code: 404;
6861
+ message: string;
6862
+ };
6863
+ }>>;
6864
+ /**
6865
+ * No description
6866
+ *
6867
+ * @tags integrations
6868
+ * @name GetIntegrationSiteInstallation
6869
+ * @summary Get a specific integration's site installation
6870
+ * @request GET:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
6871
+ * @secure
6872
+ */
6873
+ getIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
6874
+ error: {
6875
+ /** @format int32 */
6876
+ code: 404;
6877
+ message: string;
6878
+ };
6879
+ }>>;
6880
+ /**
6881
+ * No description
6882
+ *
6883
+ * @name UpdateIntegrationSiteInstallation
6884
+ * @summary Update external IDs and configurations of an integration's installation for a site
6885
+ * @request PATCH:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
6886
+ * @secure
6887
+ */
6888
+ updateIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, data: RequestUpdateIntegrationSiteInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error>>;
6889
+ /**
6890
+ * No description
6891
+ *
6892
+ * @name UninstallIntegrationFromSite
6893
+ * @summary Uninstall the integration from a site
6894
+ * @request DELETE:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
6895
+ * @secure
6896
+ */
6897
+ uninstallIntegrationFromSite: (integrationName: string, installationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
6505
6898
  };
6506
6899
  orgs: {
6507
6900
  /**
@@ -6516,7 +6909,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6516
6909
  listOrganizationsForAuthenticatedUser: (query?: {
6517
6910
  /** Identifier of the page results to fetch. */
6518
6911
  page?: string;
6519
- /** The number of results per page */
6912
+ /**
6913
+ * The number of results per page
6914
+ * @min 0
6915
+ * @max 1000
6916
+ */
6520
6917
  limit?: number;
6521
6918
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6522
6919
  items: Organization[];
@@ -6602,7 +6999,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6602
6999
  listMembersInOrganizationById: (organizationId: string, query?: {
6603
7000
  /** Identifier of the page results to fetch. */
6604
7001
  page?: string;
6605
- /** The number of results per page */
7002
+ /**
7003
+ * The number of results per page
7004
+ * @min 0
7005
+ * @max 1000
7006
+ */
6606
7007
  limit?: number;
6607
7008
  /** The Role to filter the member list by */
6608
7009
  role?: MemberRole | 'guest';
@@ -6676,7 +7077,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6676
7077
  listSpacesForOrganizationMember: (organizationId: string, userId: string, query?: {
6677
7078
  /** Identifier of the page results to fetch. */
6678
7079
  page?: string;
6679
- /** The number of results per page */
7080
+ /**
7081
+ * The number of results per page
7082
+ * @min 0
7083
+ * @max 1000
7084
+ */
6680
7085
  limit?: number;
6681
7086
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6682
7087
  items: MemberContentPermission[];
@@ -6693,7 +7098,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6693
7098
  listTeamsForOrganizationMember: (organizationId: string, userId: string, query?: {
6694
7099
  /** Identifier of the page results to fetch. */
6695
7100
  page?: string;
6696
- /** The number of results per page */
7101
+ /**
7102
+ * The number of results per page
7103
+ * @min 0
7104
+ * @max 1000
7105
+ */
6697
7106
  limit?: number;
6698
7107
  /** If provided, only teams whose name contains the given parameter will be returned. Case insensitive. */
6699
7108
  title?: string;
@@ -6715,7 +7124,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6715
7124
  listTeamsInOrganizationById: (organizationId: string, query?: {
6716
7125
  /** Identifier of the page results to fetch. */
6717
7126
  page?: string;
6718
- /** The number of results per page */
7127
+ /**
7128
+ * The number of results per page
7129
+ * @min 0
7130
+ * @max 1000
7131
+ */
6719
7132
  limit?: number;
6720
7133
  /** The unique identifier of a member of the organization. Only teams they can manage will be returned. */
6721
7134
  owner?: string;
@@ -6797,7 +7210,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6797
7210
  listTeamMembersInOrganizationById: (organizationId: string, teamId: string, query?: {
6798
7211
  /** Identifier of the page results to fetch. */
6799
7212
  page?: string;
6800
- /** The number of results per page */
7213
+ /**
7214
+ * The number of results per page
7215
+ * @min 0
7216
+ * @max 1000
7217
+ */
6801
7218
  limit?: number;
6802
7219
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6803
7220
  items: OrganizationTeamMember[];
@@ -6959,9 +7376,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6959
7376
  query: string;
6960
7377
  /** Identifier of the page results to fetch. */
6961
7378
  page?: string;
6962
- /** The number of results per page */
6963
- limit?: number;
6964
- }, params?: RequestParams) => Promise<HttpResponse<List & {
7379
+ /**
7380
+ * The number of results per page
7381
+ * @min 0
7382
+ * @max 1000
7383
+ */
7384
+ limit?: number;
7385
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
6965
7386
  items: SearchSpaceResult[];
6966
7387
  }, Error>>;
6967
7388
  /**
@@ -6976,7 +7397,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6976
7397
  listSpacesInOrganizationById: (organizationId: string, query?: {
6977
7398
  /** Identifier of the page results to fetch. */
6978
7399
  page?: string;
6979
- /** The number of results per page */
7400
+ /**
7401
+ * The number of results per page
7402
+ * @min 0
7403
+ * @max 1000
7404
+ */
6980
7405
  limit?: number;
6981
7406
  /** If defined, only content with this visibility will be returned. */
6982
7407
  visibility?: ContentVisibility;
@@ -7005,7 +7430,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7005
7430
  listSpacesWithGitSyncInOrganizationById: (organizationId: string, query?: {
7006
7431
  /** Identifier of the page results to fetch. */
7007
7432
  page?: string;
7008
- /** The number of results per page */
7433
+ /**
7434
+ * The number of results per page
7435
+ * @min 0
7436
+ * @max 1000
7437
+ */
7009
7438
  limit?: number;
7010
7439
  /** If defined, only spaces with matching Git sync status are returned */
7011
7440
  status?: GitSyncOperationState;
@@ -7028,7 +7457,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7028
7457
  listCollectionsInOrganizationById: (organizationId: string, query?: {
7029
7458
  /** Identifier of the page results to fetch. */
7030
7459
  page?: string;
7031
- /** The number of results per page */
7460
+ /**
7461
+ * The number of results per page
7462
+ * @min 0
7463
+ * @max 1000
7464
+ */
7032
7465
  limit?: number;
7033
7466
  /**
7034
7467
  * If true, all nested collections will be listed
@@ -7065,7 +7498,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7065
7498
  listOrganizationCustomFields: (organizationId: string, query?: {
7066
7499
  /** Identifier of the page results to fetch. */
7067
7500
  page?: string;
7068
- /** The number of results per page */
7501
+ /**
7502
+ * The number of results per page
7503
+ * @min 0
7504
+ * @max 1000
7505
+ */
7069
7506
  limit?: number;
7070
7507
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7071
7508
  items: CustomField[];
@@ -7140,7 +7577,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7140
7577
  listOrganizationIntegrations: (organizationId: string, query?: {
7141
7578
  /** Identifier of the page results to fetch. */
7142
7579
  page?: string;
7143
- /** The number of results per page */
7580
+ /**
7581
+ * The number of results per page
7582
+ * @min 0
7583
+ * @max 1000
7584
+ */
7144
7585
  limit?: number;
7145
7586
  /** A search string to filter integrations by name */
7146
7587
  search?: any;
@@ -7177,7 +7618,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7177
7618
  listOrganizationInstallations: (organizationId: string, query?: {
7178
7619
  /** Identifier of the page results to fetch. */
7179
7620
  page?: string;
7180
- /** The number of results per page */
7621
+ /**
7622
+ * The number of results per page
7623
+ * @min 0
7624
+ * @max 1000
7625
+ */
7181
7626
  limit?: number;
7182
7627
  /** A search string to filter integrations by name */
7183
7628
  search?: any;
@@ -7208,6 +7653,107 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7208
7653
  * @secure
7209
7654
  */
7210
7655
  updateOrgExperimentalFeatures: (organizationId: string, data: Record<string, boolean>, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7656
+ /**
7657
+ * No description
7658
+ *
7659
+ * @tags organizations, usage
7660
+ * @name GetUsageForOrganizationById
7661
+ * @summary Get all usage metrics for an organization
7662
+ * @request GET:/orgs/{organizationId}/usage
7663
+ * @secure
7664
+ */
7665
+ getUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationUsage, Error>>;
7666
+ /**
7667
+ * No description
7668
+ *
7669
+ * @tags organizations, usage
7670
+ * @name GetCollectionsUsageForOrganizationById
7671
+ * @summary Get collections usage metrics for an organization
7672
+ * @request GET:/orgs/{organizationId}/usage/collections
7673
+ * @secure
7674
+ */
7675
+ getCollectionsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7676
+ /** Collections usage metrics of an organization */
7677
+ collections: OrganizationUsageCollections;
7678
+ }, Error>>;
7679
+ /**
7680
+ * No description
7681
+ *
7682
+ * @tags organizations, usage
7683
+ * @name GetSpacesUsageForOrganizationById
7684
+ * @summary Get spaces usage metrics for an organization
7685
+ * @request GET:/orgs/{organizationId}/usage/spaces
7686
+ * @secure
7687
+ */
7688
+ getSpacesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7689
+ /** Spaces usage metrics of an organization */
7690
+ spaces: OrganizationUsageSpaces;
7691
+ }, Error>>;
7692
+ /**
7693
+ * No description
7694
+ *
7695
+ * @tags organizations, usage
7696
+ * @name GetSitesUsageForOrganizationById
7697
+ * @summary Get sites usage metrics for an organization
7698
+ * @request GET:/orgs/{organizationId}/usage/sites
7699
+ * @secure
7700
+ */
7701
+ getSitesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7702
+ /** Sites usage metrics of an organization */
7703
+ sites: OrganizationUsageSites;
7704
+ }, Error>>;
7705
+ /**
7706
+ * No description
7707
+ *
7708
+ * @tags organizations, usage
7709
+ * @name GetTeamsUsageForOrganizationById
7710
+ * @summary Get teams usage metrics for an organization
7711
+ * @request GET:/orgs/{organizationId}/usage/teams
7712
+ * @secure
7713
+ */
7714
+ getTeamsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7715
+ /** Team members usage metrics of an organization */
7716
+ teams: OrganizationUsageTeams;
7717
+ }, Error>>;
7718
+ /**
7719
+ * No description
7720
+ *
7721
+ * @tags organizations, usage
7722
+ * @name GetMembersUsageForOrganizationById
7723
+ * @summary Get members usage metrics for an organization
7724
+ * @request GET:/orgs/{organizationId}/usage/members
7725
+ * @secure
7726
+ */
7727
+ getMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7728
+ /** Members usage metrics of an organization */
7729
+ members: OrganizationUsageMembers;
7730
+ }, Error>>;
7731
+ /**
7732
+ * No description
7733
+ *
7734
+ * @tags organizations, usage
7735
+ * @name GetTeamMembersUsageForOrganizationById
7736
+ * @summary Get team members usage metrics for an organization
7737
+ * @request GET:/orgs/{organizationId}/usage/team-members
7738
+ * @secure
7739
+ */
7740
+ getTeamMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7741
+ /** Team members usage metrics of an organization */
7742
+ teamMembers: OrganizationUsageTeamMembers;
7743
+ }, Error>>;
7744
+ /**
7745
+ * No description
7746
+ *
7747
+ * @tags organizations, usage
7748
+ * @name GetSeatsUsageForOrganizationById
7749
+ * @summary Get seats usage metrics for an organization
7750
+ * @request GET:/orgs/{organizationId}/usage/seats
7751
+ * @secure
7752
+ */
7753
+ getSeatsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
7754
+ /** Seats usage metrics of an organization */
7755
+ seats: OrganizationUsageSeats;
7756
+ }, Error>>;
7211
7757
  /**
7212
7758
  * No description
7213
7759
  *
@@ -7220,7 +7766,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7220
7766
  listEntitySchemas: (organizationId: string, query?: {
7221
7767
  /** Identifier of the page results to fetch. */
7222
7768
  page?: string;
7223
- /** The number of results per page */
7769
+ /**
7770
+ * The number of results per page
7771
+ * @min 0
7772
+ * @max 1000
7773
+ */
7224
7774
  limit?: number;
7225
7775
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7226
7776
  items: EntitySchema[];
@@ -7267,7 +7817,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7267
7817
  listSchemaEntities: (organizationId: string, entityType: EntityType, query?: {
7268
7818
  /** Identifier of the page results to fetch. */
7269
7819
  page?: string;
7270
- /** The number of results per page */
7820
+ /**
7821
+ * The number of results per page
7822
+ * @min 0
7823
+ * @max 1000
7824
+ */
7271
7825
  limit?: number;
7272
7826
  /** Query to filter entities with, ex: a == 'something' && b >= 10 */
7273
7827
  query?: string;
@@ -7314,7 +7868,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7314
7868
  format?: 'document' | 'markdown';
7315
7869
  /** Identifier of the page results to fetch. */
7316
7870
  page?: string;
7317
- /** The number of results per page */
7871
+ /**
7872
+ * The number of results per page
7873
+ * @min 0
7874
+ * @max 1000
7875
+ */
7318
7876
  limit?: number;
7319
7877
  /** The context in which the item was captured */
7320
7878
  context?: 'walkthrough' | 'thread';
@@ -7397,7 +7955,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7397
7955
  listSnippets: (organizationId: string, query?: {
7398
7956
  /** Identifier of the page results to fetch. */
7399
7957
  page?: string;
7400
- /** The number of results per page */
7958
+ /**
7959
+ * The number of results per page
7960
+ * @min 0
7961
+ * @max 1000
7962
+ */
7401
7963
  limit?: number;
7402
7964
  /** If specified, only snippets from the specified source will be returned. */
7403
7965
  source?: string;
@@ -7481,7 +8043,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7481
8043
  getSnippetSuggestedLocations: (organizationId: string, snippetId: string, query?: {
7482
8044
  /** Identifier of the page results to fetch. */
7483
8045
  page?: string;
7484
- /** The number of results per page */
8046
+ /**
8047
+ * The number of results per page
8048
+ * @min 0
8049
+ * @max 1000
8050
+ */
7485
8051
  limit?: number;
7486
8052
  /** If specified, only locations in the given space will be returned. If not specified, GitBook will suggest spaces. */
7487
8053
  spaceId?: string;
@@ -7535,6 +8101,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7535
8101
  /** A new title for the Synced Block. */
7536
8102
  title?: string;
7537
8103
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8104
+ /**
8105
+ * No description
8106
+ *
8107
+ * @tags organizations
8108
+ * @name GetSyncedBlockBacklinks
8109
+ * @summary Get a list of pages that reference this synced block.
8110
+ * @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks
8111
+ * @secure
8112
+ */
8113
+ getSyncedBlockBacklinks: (organizationId: string, syncedBlockId: string, query?: {
8114
+ /** Identifier of the page results to fetch. */
8115
+ page?: string;
8116
+ /**
8117
+ * The number of results per page
8118
+ * @min 0
8119
+ * @max 1000
8120
+ */
8121
+ limit?: number;
8122
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8123
+ items: ContentLocation[];
8124
+ }, Error>>;
7538
8125
  /**
7539
8126
  * No description
7540
8127
  *
@@ -7593,7 +8180,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7593
8180
  listContentAuditRelations: (organizationId: string, query?: {
7594
8181
  /** Identifier of the page results to fetch. */
7595
8182
  page?: string;
7596
- /** The number of results per page */
8183
+ /**
8184
+ * The number of results per page
8185
+ * @min 0
8186
+ * @max 1000
8187
+ */
7597
8188
  limit?: number;
7598
8189
  /**
7599
8190
  * Status of the audit relation to filter on
@@ -7673,7 +8264,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7673
8264
  listSites: (organizationId: string, query?: {
7674
8265
  /** Identifier of the page results to fetch. */
7675
8266
  page?: string;
7676
- /** The number of results per page */
8267
+ /**
8268
+ * The number of results per page
8269
+ * @min 0
8270
+ * @max 1000
8271
+ */
7677
8272
  limit?: number;
7678
8273
  /** Identifier of the space to filter the sites by */
7679
8274
  space?: string;
@@ -7739,8 +8334,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7739
8334
  * * `unpublished`: The site is not accessible to anyone.
7740
8335
  */
7741
8336
  visibility?: SiteVisibility;
7742
- /** Custom hostname for the site, for e.g. docs.mycompany.com */
7743
- hostname?: SiteHostname;
7744
8337
  /** Basename for the site. For e.g. api */
7745
8338
  basename?: SiteBasename;
7746
8339
  /** ID of the site-space to be used as the default */
@@ -7756,6 +8349,64 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7756
8349
  * @secure
7757
8350
  */
7758
8351
  deleteSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8352
+ /**
8353
+ * No description
8354
+ *
8355
+ * @tags sites
8356
+ * @name ListSiteShareLinks
8357
+ * @summary List all the share links created in a site
8358
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/share-links
8359
+ * @secure
8360
+ */
8361
+ listSiteShareLinks: (organizationId: string, siteId: string, query?: {
8362
+ /** Identifier of the page results to fetch. */
8363
+ page?: string;
8364
+ /**
8365
+ * The number of results per page
8366
+ * @min 0
8367
+ * @max 1000
8368
+ */
8369
+ limit?: number;
8370
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8371
+ items: ShareLink[];
8372
+ }, Error>>;
8373
+ /**
8374
+ * No description
8375
+ *
8376
+ * @tags sites
8377
+ * @name CreateSiteShareLink
8378
+ * @summary Create a share link in a site
8379
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/share-links
8380
+ * @secure
8381
+ */
8382
+ createSiteShareLink: (organizationId: string, siteId: string, data: {
8383
+ /** Name of the share link */
8384
+ name: ShareLinkName;
8385
+ }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
8386
+ /**
8387
+ * No description
8388
+ *
8389
+ * @tags sites
8390
+ * @name UpdateSiteShareLinkById
8391
+ * @summary Update the details of a site share link
8392
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}
8393
+ * @secure
8394
+ */
8395
+ updateSiteShareLinkById: (organizationId: string, siteId: string, shareLinkId: string, data: {
8396
+ active?: boolean;
8397
+ /** Name of the share link */
8398
+ name?: ShareLinkName;
8399
+ }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
8400
+ /**
8401
+ * No description
8402
+ *
8403
+ * @tags sites
8404
+ * @name DeleteSiteShareLinkById
8405
+ * @summary Deletes a site share link
8406
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}
8407
+ * @secure
8408
+ */
8409
+ deleteSiteShareLinkById: (organizationId: string, siteId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7759
8410
  /**
7760
8411
  * No description
7761
8412
  *
@@ -7772,6 +8423,54 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7772
8423
  message: string;
7773
8424
  };
7774
8425
  }>>;
8426
+ /**
8427
+ * No description
8428
+ *
8429
+ * @tags sites
8430
+ * @name UpdateSitePublishingAuthSettings
8431
+ * @summary Update the publishing authentication settings for a site.
8432
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/publishing/auth
8433
+ * @secure
8434
+ */
8435
+ updateSitePublishingAuthSettings: (organizationId: string, siteId: string, data: SitePublishingAuthUpdate, params?: RequestParams) => Promise<HttpResponse<SitePublishingAuth, Error | {
8436
+ error: {
8437
+ /** @format int32 */
8438
+ code: 400;
8439
+ message: string;
8440
+ };
8441
+ }>>;
8442
+ /**
8443
+ * No description
8444
+ *
8445
+ * @tags sites
8446
+ * @name GetSiteCustomizationById
8447
+ * @summary Get the customization configuration for a site.
8448
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/customization
8449
+ * @secure
8450
+ */
8451
+ getSiteCustomizationById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8452
+ error: {
8453
+ /** @format int32 */
8454
+ code: 400;
8455
+ message: string;
8456
+ };
8457
+ }>>;
8458
+ /**
8459
+ * No description
8460
+ *
8461
+ * @tags sites
8462
+ * @name UpdateSiteCustomizationById
8463
+ * @summary Update the customization configuration for a site.
8464
+ * @request PUT:/orgs/{organizationId}/sites/{siteId}/customization
8465
+ * @secure
8466
+ */
8467
+ updateSiteCustomizationById: (organizationId: string, siteId: string, data: SiteCustomizationSettings, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8468
+ error: {
8469
+ /** @format int32 */
8470
+ code: 400;
8471
+ message: string;
8472
+ };
8473
+ }>>;
7775
8474
  /**
7776
8475
  * No description
7777
8476
  *
@@ -7797,7 +8496,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7797
8496
  listSiteSpaces: (organizationId: string, siteId: string, query?: {
7798
8497
  /** Identifier of the page results to fetch. */
7799
8498
  page?: string;
7800
- /** The number of results per page */
8499
+ /**
8500
+ * The number of results per page
8501
+ * @min 0
8502
+ * @max 1000
8503
+ */
7801
8504
  limit?: number;
7802
8505
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7803
8506
  items: SiteSpace[];
@@ -7825,6 +8528,146 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7825
8528
  * @secure
7826
8529
  */
7827
8530
  deleteSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8531
+ /**
8532
+ * No description
8533
+ *
8534
+ * @tags sites
8535
+ * @name GetSiteSpaceCustomizationById
8536
+ * @summary Get the customization configuration for a site space.
8537
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
8538
+ * @secure
8539
+ */
8540
+ getSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: 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 seats
8551
+ * @name ListSeatsInOrganizationById
8552
+ * @summary List all seats in an organization
8553
+ * @request GET:/orgs/{organizationId}/seats
8554
+ * @secure
8555
+ */
8556
+ listSeatsInOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
8557
+ items: Seat[];
8558
+ }, Error>>;
8559
+ /**
8560
+ * No description
8561
+ *
8562
+ * @tags seats
8563
+ * @name AddSeatsToOrganizationById
8564
+ * @summary Add more seats to an organization
8565
+ * @request POST:/orgs/{organizationId}/seats
8566
+ * @secure
8567
+ */
8568
+ addSeatsToOrganizationById: (organizationId: string, data: {
8569
+ /** How many seats to add */
8570
+ amount: number;
8571
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8572
+ /**
8573
+ * No description
8574
+ *
8575
+ * @tags seats
8576
+ * @name RemoveSeatsFromOrganizationById
8577
+ * @summary Remove unassigned seats from an organization
8578
+ * @request DELETE:/orgs/{organizationId}/seats
8579
+ * @secure
8580
+ */
8581
+ removeSeatsFromOrganizationById: (organizationId: string, data: {
8582
+ /** How many seats to remove. Omit to remove all unassigned seats. */
8583
+ amount?: number;
8584
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8585
+ /**
8586
+ * No description
8587
+ *
8588
+ * @tags seats
8589
+ * @name AssignSeatsToMembersInOrganizationById
8590
+ * @summary Assign seats for one or more members within an organization
8591
+ * @request PUT:/orgs/{organizationId}/seats/members
8592
+ * @secure
8593
+ */
8594
+ assignSeatsToMembersInOrganizationById: (organizationId: string, data: {
8595
+ /** The unique ID of the organization member */
8596
+ member: string;
8597
+ }[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
8598
+ error: {
8599
+ /** @format int32 */
8600
+ code: 409;
8601
+ message: string;
8602
+ };
8603
+ }>>;
8604
+ /**
8605
+ * No description
8606
+ *
8607
+ * @tags seats
8608
+ * @name RevokeSeatsFromMembersInOrganizationById
8609
+ * @summary Revoke seats for one or more members within an organization
8610
+ * @request DELETE:/orgs/{organizationId}/seats/members
8611
+ * @secure
8612
+ */
8613
+ revokeSeatsFromMembersInOrganizationById: (organizationId: string, data: {
8614
+ /** The unique ID of the organization member */
8615
+ member: string;
8616
+ }[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
8617
+ error: {
8618
+ /** @format int32 */
8619
+ code: 409;
8620
+ message: string;
8621
+ };
8622
+ }>>;
8623
+ /**
8624
+ * No description
8625
+ *
8626
+ * @tags seats
8627
+ * @name GetSeatForMemberInOrganizationById
8628
+ * @summary Get the seat of a member of the organization
8629
+ * @request GET:/orgs/{organizationId}/seats/members/{userId}
8630
+ * @secure
8631
+ */
8632
+ getSeatForMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<Seat, Error | {
8633
+ error: {
8634
+ /** @format int32 */
8635
+ code: 409;
8636
+ message: string;
8637
+ };
8638
+ }>>;
8639
+ /**
8640
+ * No description
8641
+ *
8642
+ * @tags seats
8643
+ * @name AssignSeatToMemberInOrganizationById
8644
+ * @summary Assign an available seat to a member of the organization
8645
+ * @request PUT:/orgs/{organizationId}/seats/members/{userId}
8646
+ * @secure
8647
+ */
8648
+ assignSeatToMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
8649
+ error: {
8650
+ /** @format int32 */
8651
+ code: 409;
8652
+ message: string;
8653
+ };
8654
+ }>>;
8655
+ /**
8656
+ * No description
8657
+ *
8658
+ * @tags seats
8659
+ * @name RevokeSeatFromMemberInOrganizationById
8660
+ * @summary Revoke a seat from a member of the organization
8661
+ * @request DELETE:/orgs/{organizationId}/seats/members/{userId}
8662
+ * @secure
8663
+ */
8664
+ revokeSeatFromMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
8665
+ error: {
8666
+ /** @format int32 */
8667
+ code: 409;
8668
+ message: string;
8669
+ };
8670
+ }>>;
7828
8671
  };
7829
8672
  customHostnames: {
7830
8673
  /**
@@ -7847,7 +8690,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7847
8690
  * @secure
7848
8691
  */
7849
8692
  setupCustomHostname: (hostname: string, data: {
7850
- target: OrganizationPointer | SpacePointer | CollectionPointer;
8693
+ target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
7851
8694
  }, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error | {
7852
8695
  error: {
7853
8696
  /** @format int32 */
@@ -7891,7 +8734,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7891
8734
  * @secure
7892
8735
  */
7893
8736
  testCustomHostname: (hostname: string, data: {
7894
- target: OrganizationPointer | SpacePointer | CollectionPointer;
8737
+ target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
7895
8738
  }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
7896
8739
  error: {
7897
8740
  /** @format int32 */