@gitbook/api 0.18.0 → 0.20.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
@@ -1,36 +1,31 @@
1
1
  export interface Error {
2
2
  error: {
3
+ /** @format int32 */
3
4
  code: number;
4
5
  message: string;
5
6
  };
6
7
  }
7
8
  export interface List {
8
9
  next?: {
10
+ /** Unique identifier to query the next results page */
9
11
  page: string;
10
12
  };
11
13
  /** Total count of objects in the list */
12
14
  count?: number;
13
15
  }
14
- /**
15
- * @format uri
16
- */
16
+ /** @format uri */
17
17
  export declare type URL = string;
18
- /**
19
- * @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$
20
- */
18
+ /** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
21
19
  export declare type Color = string;
22
- /**
23
- * @format date
24
- */
20
+ /** @format date */
25
21
  export declare type Date = string;
26
22
  /**
27
23
  * Unicode codepoint or character of the emoji
28
- * @example 🎉
24
+ * @maxLength 20
25
+ * @example "🎉"
29
26
  */
30
27
  export declare type Emoji = string;
31
- /**
32
- * An emoji reaction by one or many users
33
- */
28
+ /** An emoji reaction by one or many users */
34
29
  export interface EmojiReaction {
35
30
  /** The Emoji of the reaction */
36
31
  emoji: string;
@@ -48,8 +43,11 @@ export interface RequestSpaceTrackPageView {
48
43
  pageId: string;
49
44
  /** Analytics info on the GitBook's content visitor. */
50
45
  visitor: {
46
+ /** GitBook's unique identifier of the visitor. */
51
47
  anonymousId: string;
48
+ /** The visitors cookies. */
52
49
  cookies: Record<string, string>;
50
+ /** User-agent of the visitor. */
53
51
  userAgent: string;
54
52
  };
55
53
  /** The GitBook content's URL visited (including URL params). */
@@ -69,6 +67,7 @@ export interface RequestPublishIntegration {
69
67
  description: IntegrationDescription;
70
68
  /** Long form markdown summary of the integration */
71
69
  summary?: IntegrationSummary;
70
+ /** @maxItems 3 */
72
71
  previewImages?: string[];
73
72
  visibility?: IntegrationVisibility;
74
73
  /** Allowed installation target for the integration. If not specified, the integration can be installed at `all` targets (org, spaces etc) */
@@ -91,9 +90,9 @@ export interface RequestPublishIntegration {
91
90
  /**
92
91
  * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
93
92
  * headers when processing the script fetch event and the blocks fetch events.
94
- *
95
93
  */
96
94
  contentSecurityPolicy?: IntegrationContentSecurityPolicy;
95
+ /** @maxItems 100 */
97
96
  entities?: EntityRawSchema[];
98
97
  }
99
98
  export interface RequestUpdateIntegrationInstallation {
@@ -111,15 +110,14 @@ export interface RequestUpgradeOrganizationBilling {
111
110
  interval: BillingInterval;
112
111
  /** Reason that triggered the billing upgrade */
113
112
  reason?: string;
114
- /**
115
- * Mode to use for the upgrade (default value is `commit`): - `auto`: user is redirect to checkout if possible, other a preview of the auto-upgrade is returned. - `commit`: a checkout session is returned or an auto-upgrade is done - `preview`: a preview invoice is always returned
116
- *
117
- */
113
+ /** Mode to use for the upgrade (default value is `commit`): - `auto`: user is redirect to checkout if possible, other a preview of the auto-upgrade is returned. - `commit`: a checkout session is returned or an auto-upgrade is done - `preview`: a preview invoice is always returned */
118
114
  mode?: 'auto' | 'commit' | 'preview';
119
115
  }
120
116
  export interface RequestInviteUsersToOrganization {
121
117
  emails: (string | {
118
+ /** The email address of the user to invite as a member */
122
119
  email: string;
120
+ /** The role of a member in an organization, null for guests */
123
121
  role: MemberRoleOrGuest;
124
122
  })[];
125
123
  /** Default role to set on newly invited members. */
@@ -171,10 +169,14 @@ export interface RequestImportContent {
171
169
  source: ImportContentSource;
172
170
  }
173
171
  export interface RequestCreateSpace {
172
+ /** @maxLength 50 */
174
173
  title?: string;
175
174
  /** Unicode codepoint or character of the emoji */
176
175
  emoji?: Emoji;
177
- /** Private spaces are no longer supported by GitBook. */
176
+ /**
177
+ * Private spaces are no longer supported by GitBook.
178
+ * @deprecated
179
+ */
178
180
  private?: boolean;
179
181
  /** ID of a parent collection */
180
182
  parent?: string;
@@ -209,9 +211,7 @@ export interface RequestCreateOrganization {
209
211
  type?: OrganizationType;
210
212
  useCase?: OrganizationUseCase;
211
213
  }
212
- /**
213
- * Update metadata about the Git provider on the space
214
- */
214
+ /** Update metadata about the Git provider on the space */
215
215
  export interface RequestUpdateSpaceGitInfo {
216
216
  /** The git provider */
217
217
  provider?: 'github' | 'gitlab';
@@ -224,24 +224,18 @@ export interface ApiInformation {
224
224
  /** Date of the latest release in ISO format */
225
225
  build: string;
226
226
  }
227
- /**
228
- * The context to send when purging the CDN Cache
229
- */
227
+ /** The context to send when purging the CDN Cache */
230
228
  export interface RequestPurgeCDNCacheContext {
231
229
  /** The type of purge, e.g by tags or hosts */
232
230
  type: PurgeCDNCacheContextType;
233
231
  /** The list of tags or hosts to purge */
234
232
  values: string[];
235
233
  }
236
- /**
237
- * The context to send when blocking/unblocking a user
238
- */
234
+ /** The context to send when blocking/unblocking a user */
239
235
  export interface RequestBlockUserContext {
240
236
  block: boolean;
241
237
  }
242
- /**
243
- * The context to send when triggering a content indexing.
244
- */
238
+ /** The context to send when triggering a content indexing. */
245
239
  export interface TriggerContentIndexingContext {
246
240
  /** The unique identifier of the Space to index. */
247
241
  spaceId: string;
@@ -261,12 +255,14 @@ export interface User {
261
255
  photoURL?: string;
262
256
  /** URLs associated with the object */
263
257
  urls: {
258
+ /**
259
+ * URL of the user in the API
260
+ * @format uri
261
+ */
264
262
  location?: string;
265
263
  };
266
264
  }
267
- /**
268
- * The API token details, excluding the token itself.
269
- */
265
+ /** The API token details, excluding the token itself. */
270
266
  export interface UserAPIToken {
271
267
  /** The API token ID. */
272
268
  id: string;
@@ -275,10 +271,9 @@ export interface UserAPIToken {
275
271
  /** The API token creation date. */
276
272
  createdAt: Date;
277
273
  }
278
- /**
279
- * The API token details, including the token itself.
280
- */
274
+ /** The API token details, including the token itself. */
281
275
  export declare type UserAPITokenExtended = UserAPIToken & {
276
+ /** The actual token value. */
282
277
  token: string;
283
278
  };
284
279
  export interface Team {
@@ -288,14 +283,14 @@ export interface Team {
288
283
  id: string;
289
284
  }
290
285
  /**
291
- * * `public`: Anyone can access the content, and the content is indexed by search engines.
292
- * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
293
- * `share-link`: Anyone with a secret token in the url can access the content.
294
- * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
295
- * `in-collection`: Anyone who can access the parent collection can access the content.
296
- Only available for spaces in a collection.
297
- * `private`: Authorized members can access the content.
298
- */
286
+ * * `public`: Anyone can access the content, and the content is indexed by search engines.
287
+ * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
288
+ * * `share-link`: Anyone with a secret token in the url can access the content.
289
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
290
+ * * `in-collection`: Anyone who can access the parent collection can access the content.
291
+ * Only available for spaces in a collection.
292
+ * * `private`: Authorized members can access the content.
293
+ */
299
294
  export declare enum ContentVisibility {
300
295
  Public = "public",
301
296
  Unlisted = "unlisted",
@@ -304,9 +299,7 @@ export declare enum ContentVisibility {
304
299
  InCollection = "in-collection",
305
300
  Private = "private"
306
301
  }
307
- /**
308
- * Contributor towards content.
309
- */
302
+ /** Contributor towards content. */
310
303
  export interface UserContributor {
311
304
  updatedAt: Date;
312
305
  count: number;
@@ -344,36 +337,62 @@ export declare type Embed = {
344
337
  html: string;
345
338
  });
346
339
  export declare type Comment = {
340
+ /** Type of Object, always equals to "comment" */
347
341
  object: 'comment';
342
+ /** Unique identifier for the comment. */
348
343
  id: string;
344
+ /** The user who posted the comment. */
349
345
  postedBy: User;
346
+ /** When the comment was posted. */
350
347
  postedAt: Date;
348
+ /** Date when the comment was edited, if it has been edited. */
351
349
  editedAt?: Date;
350
+ /** Any emoji reactions to the comment. */
352
351
  reactions: EmojiReactions;
352
+ /** The number of replies to this comment. */
353
353
  replies: number;
354
+ /** The content of the comment. */
354
355
  body: Document;
356
+ /** Information about the target of the comment. */
355
357
  target: {
358
+ /** The node this comment is attached to. */
356
359
  node?: {
357
- id?: string;
360
+ id: string;
358
361
  preview?: string;
359
362
  };
363
+ /** The change request containing this comment, if the comment was made inside a change request. */
360
364
  changeRequest?: string;
365
+ /** The review containing this comment, if this comment was made as part of a review. */
361
366
  review?: string;
367
+ /** Information about the page, if this comment refers to a specific page. */
362
368
  page?: RevisionPageBase & {
369
+ /** The fully qualified path to the page */
363
370
  path: string;
371
+ /** True if the target of this comment no longer exists in the primary content */
364
372
  outdated: boolean;
365
373
  };
374
+ /** The space containing this comment. */
366
375
  space: string;
376
+ /** The revision in which the target can be found in. */
367
377
  revision: string;
368
378
  };
379
+ /** URLs associated with the object */
369
380
  urls: {
381
+ /**
382
+ * URL of the comment in the API
383
+ * @format uri
384
+ */
370
385
  location: string;
371
386
  };
372
387
  } & ({
388
+ /** Status of the comment. */
373
389
  status: 'resolved';
390
+ /** If the comment has been resolved, the date at which it was resolved. If this field is not defined, the comment is not resolved. */
374
391
  resolvedAt: Date;
392
+ /** If the comment has been resolved, the user who resolved it. If this field is not defined, the comment is not resolved. */
375
393
  resolvedBy: User;
376
394
  } | {
395
+ /** Status of the comment. */
377
396
  status: 'open';
378
397
  });
379
398
  export interface CommentReply {
@@ -389,18 +408,29 @@ export interface CommentReply {
389
408
  body: Document;
390
409
  /** URLs associated with the object */
391
410
  urls: {
411
+ /**
412
+ * URL of the comment reply in the API
413
+ * @format uri
414
+ */
392
415
  location: string;
393
416
  };
394
417
  }
395
418
  export declare type PublishedContentLookup = {
419
+ /** Type of target for the redirect */
396
420
  target: 'application' | 'content' | 'external';
397
421
  redirect: URL;
398
422
  } | {
423
+ /** ID of the space matching. */
399
424
  space: string;
425
+ /** Identifier of the change request being previewed in this URL. */
400
426
  changeRequest?: string;
427
+ /** Identifier of the revision being previewed in this URL. */
401
428
  revision?: string;
429
+ /** Path of the content relative to the space */
402
430
  pathname: string;
431
+ /** Prefix of the path in the URL dedicated to the space */
403
432
  basePath: string;
433
+ /** Short-lived API token to fetch content related to the space in the context of the URL. */
404
434
  apiToken: string;
405
435
  };
406
436
  export declare type Document = MarkdownDocument | {
@@ -516,6 +546,7 @@ export interface DocumentInlineAnnotation {
516
546
  key?: string;
517
547
  fragments: (DocumentFragment & {
518
548
  type: 'annotation-body';
549
+ /** @minItems 1 */
519
550
  nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
520
551
  })[];
521
552
  isVoid: false;
@@ -536,9 +567,11 @@ export interface DocumentBlockHeading {
536
567
  key?: string;
537
568
  nodes: (DocumentInline | DocumentText)[];
538
569
  data: {
570
+ /** @pattern ^[-a-z0-9.+_]+$ */
539
571
  id?: string;
540
572
  };
541
573
  meta?: {
574
+ /** Unique ID to be used in an URL for the block. */
542
575
  id: string;
543
576
  };
544
577
  isVoid?: false;
@@ -574,6 +607,7 @@ export interface DocumentBlockListOrdered {
574
607
  type: 'list-ordered';
575
608
  key?: string;
576
609
  data: {
610
+ /** An integer to start counting from for the list items. */
577
611
  start?: number;
578
612
  };
579
613
  nodes: DocumentBlockListItem[];
@@ -664,6 +698,7 @@ export interface DocumentBlockCode {
664
698
  data: {
665
699
  syntax?: string;
666
700
  title?: string;
701
+ /** @default "scroll" */
667
702
  overflow?: 'scroll' | 'wrap';
668
703
  lineNumbers?: boolean;
669
704
  fullWidth?: boolean;
@@ -699,13 +734,19 @@ export interface DocumentBlockExpandable {
699
734
  fragments: ((DocumentFragment & {
700
735
  fragment: 'expandable-title';
701
736
  type: 'expandable-title';
737
+ /**
738
+ * @maxItems 1
739
+ * @minItems 1
740
+ */
702
741
  nodes: DocumentBlockParagraph[];
703
742
  }) | (DocumentFragment & {
704
743
  fragment: 'expandable-body';
705
744
  type: 'expandable-body';
745
+ /** @minItems 1 */
706
746
  nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
707
747
  }))[];
708
748
  meta?: {
749
+ /** Unique ID to be used in an URL for the block. */
709
750
  id: string;
710
751
  };
711
752
  }
@@ -723,13 +764,17 @@ export interface DocumentBlockSwagger {
723
764
  key?: string;
724
765
  data: {
725
766
  ref: ContentRefFile;
767
+ /** Path of the operation in the OpenAPI spec. */
726
768
  path?: string;
769
+ /** HTTP method of the operation in the OpenAPI spec. */
727
770
  method?: string;
771
+ /** If true, the block is opened by default. */
728
772
  expanded?: boolean;
729
773
  fullWidth?: boolean;
730
774
  };
731
775
  isVoid: true;
732
776
  meta?: {
777
+ /** Unique ID to be used in an URL for the block. */
733
778
  id: string;
734
779
  };
735
780
  }
@@ -742,6 +787,7 @@ export interface DocumentBlockTable {
742
787
  view: DocumentTableViewGrid | DocumentTableViewCards;
743
788
  records: Record<string, DocumentTableRecord>;
744
789
  definition: Record<string, DocumentTableDefinition>;
790
+ /** Whether to render the block as a full width one */
745
791
  fullWidth?: boolean;
746
792
  };
747
793
  fragments: DocumentFragment[];
@@ -817,8 +863,10 @@ export interface DocumentTableViewGrid {
817
863
  *
818
864
  * We later changed this to treat the widths in columnWidths as exact values - they are
819
865
  * never scaled. A columnWidth of 50 is rendered as 50px.
866
+ *
820
867
  * In order to maintain backwards compatibility, we track whether or not we
821
868
  * use the new system here.
869
+ *
822
870
  * All new tables should have this value set to true, older tables will have it set
823
871
  * to undefined.
824
872
  */
@@ -833,6 +881,7 @@ export interface DocumentBlockTabsItem {
833
881
  title?: string;
834
882
  };
835
883
  meta?: {
884
+ /** Unique ID to be used in an URL for the block. */
836
885
  id: string;
837
886
  };
838
887
  isVoid?: false;
@@ -851,10 +900,19 @@ export interface DocumentBlockIntegration {
851
900
  type: 'integration';
852
901
  key?: string;
853
902
  data: {
903
+ /** Name of the integration */
854
904
  integration: string;
905
+ /** ID of the block in the integration */
855
906
  block: string;
907
+ /** Properties passed to the block during rendering */
856
908
  props: Record<string, any>;
909
+ /** Custom action to re-render the block. */
857
910
  action?: ContentKitAction;
911
+ /**
912
+ * URL associated with the content represented by the block.
913
+ * This property is set when creating a block from a URL (unfurl) to ensure
914
+ * we can convert the block back to an embed.
915
+ */
858
916
  url?: string;
859
917
  fullWidth?: boolean;
860
918
  };
@@ -907,7 +965,11 @@ export interface Space {
907
965
  object: 'space';
908
966
  /** Unique identifier for the space */
909
967
  id: string;
910
- /** Title of the space */
968
+ /**
969
+ * Title of the space
970
+ * @minLength 0
971
+ * @maxLength 100
972
+ */
911
973
  title: string;
912
974
  /**
913
975
  * * `public`: Anyone can access the content, and the content is indexed by search engines.
@@ -917,7 +979,6 @@ export interface Space {
917
979
  * * `in-collection`: Anyone who can access the parent collection can access the content.
918
980
  * Only available for spaces in a collection.
919
981
  * * `private`: Authorized members can access the content.
920
- *
921
982
  */
922
983
  visibility: ContentVisibility;
923
984
  createdAt: Date;
@@ -925,9 +986,25 @@ export interface Space {
925
986
  deletedAt?: Date;
926
987
  /** URLs associated with the object */
927
988
  urls: {
989
+ /**
990
+ * URL of the space in the API
991
+ * @format uri
992
+ */
928
993
  location: string;
994
+ /**
995
+ * URL of the space in the application
996
+ * @format uri
997
+ */
929
998
  app: string;
999
+ /**
1000
+ * URL of the published version of the space. Only defined when visibility is not "private."
1001
+ * @format uri
1002
+ */
930
1003
  published?: string;
1004
+ /**
1005
+ * URL of the public version of the space. Only defined when visibility is "public".
1006
+ * @format uri
1007
+ */
931
1008
  public?: string;
932
1009
  };
933
1010
  /** ID of the organization owning this space */
@@ -947,22 +1024,38 @@ export interface RevisionBase {
947
1024
  /** Metadata about a potential associated git commit. */
948
1025
  git?: GitSyncCommit;
949
1026
  urls: {
1027
+ /**
1028
+ * URL in the application for the revision
1029
+ * @format uri
1030
+ */
950
1031
  app: string;
1032
+ /**
1033
+ * URL of the published version of the revision. Only defined when the space visibility is not "private."
1034
+ * @format uri
1035
+ */
951
1036
  published?: string;
1037
+ /**
1038
+ * URL of the public version of the revision. Only defined when the space visibility is "public".
1039
+ * @format uri
1040
+ */
952
1041
  public?: string;
953
1042
  };
954
1043
  }
955
1044
  export declare type RevisionTypeMerge = RevisionBase & {
1045
+ /** Revision created when merging a change request with primary. */
956
1046
  type: 'merge';
957
1047
  mergedFrom: ChangeRequest;
958
1048
  };
959
1049
  export declare type RevisionTypeRollback = RevisionBase & {
1050
+ /** Revision created as a rollback of a previous revision. */
960
1051
  type: 'rollback';
961
1052
  };
962
1053
  export declare type RevisionTypeUpdate = RevisionBase & {
1054
+ /** Revision created when updating a change request with changes from primary. */
963
1055
  type: 'update';
964
1056
  };
965
1057
  export declare type RevisionTypeEdits = RevisionBase & {
1058
+ /** Revision created by editing the content. */
966
1059
  type: 'edits';
967
1060
  };
968
1061
  export declare type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate;
@@ -970,7 +1063,10 @@ export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | Re
970
1063
  export interface RevisionPageBase {
971
1064
  /** Unique identifier for the page in the revision */
972
1065
  id: string;
973
- /** Title of the page */
1066
+ /**
1067
+ * Title of the page
1068
+ * @maxLength 100
1069
+ */
974
1070
  title: string;
975
1071
  /** When the page was first created. Only present if page has been edited at least once. */
976
1072
  createdAt?: Date;
@@ -978,15 +1074,20 @@ export interface RevisionPageBase {
978
1074
  updatedAt?: Date;
979
1075
  }
980
1076
  export declare type RevisionPageDocument = RevisionPageBase & Document & {
1077
+ /** @deprecated */
981
1078
  kind: 'sheet';
982
1079
  type: 'document';
1080
+ /** Page's slug in its direct parent */
983
1081
  slug: string;
1082
+ /** Complete path to access the page in the revision. */
984
1083
  path: string;
985
1084
  description?: string;
1085
+ /** ID of the document with the page body. If undefined, the page is empty. */
986
1086
  documentId?: string;
987
1087
  pages: (RevisionPageDocument | RevisionPageLink)[];
988
1088
  git?: GitSyncBlob;
989
1089
  layout: RevisionPageLayoutOptions;
1090
+ cover?: RevisionPageDocumentCover;
990
1091
  };
991
1092
  export interface RevisionPageDocumentCover {
992
1093
  /** Content reference pointing to the source image. */
@@ -995,9 +1096,12 @@ export interface RevisionPageDocumentCover {
995
1096
  yPos: number;
996
1097
  }
997
1098
  export declare type RevisionPageGroup = RevisionPageBase & {
1099
+ /** @deprecated */
998
1100
  kind: 'group';
999
1101
  type: 'group';
1102
+ /** Page's slug in its direct parent */
1000
1103
  slug: string;
1104
+ /** Complete path to access the page in the revision. */
1001
1105
  path: string;
1002
1106
  pages: (RevisionPageDocument | RevisionPageLink)[];
1003
1107
  };
@@ -1018,22 +1122,19 @@ export interface RevisionPageLayoutOptions {
1018
1122
  /** Should the pagination be visible? */
1019
1123
  pagination?: boolean;
1020
1124
  }
1021
- /**
1022
- * Size of the cover image.
1023
- */
1125
+ /** Size of the cover image. */
1024
1126
  export declare enum RevisionPageLayoutOptionsCoverSize {
1025
1127
  Hero = "hero",
1026
1128
  Full = "full"
1027
1129
  }
1028
- /**
1029
- * The core layout presets for a page.
1030
- */
1130
+ /** The core layout presets for a page. */
1031
1131
  export declare enum RevisionPageLayoutPreset {
1032
1132
  Docs = "docs",
1033
1133
  Editorial = "editorial",
1034
1134
  Landing = "landing"
1035
1135
  }
1036
1136
  export declare type RevisionPageLink = RevisionPageBase & {
1137
+ /** @deprecated */
1037
1138
  kind: 'link';
1038
1139
  type: 'link';
1039
1140
  target: ContentRef;
@@ -1187,9 +1288,7 @@ export interface RevisionSemanticChangePageMoved {
1187
1288
  after?: ChangedRevisionPage;
1188
1289
  };
1189
1290
  }
1190
- /**
1191
- * The type of semantic change.
1192
- */
1291
+ /** The type of semantic change. */
1193
1292
  export declare enum RevisionSemanticChangeType {
1194
1293
  PageCreated = "page_created",
1195
1294
  PageEdited = "page_edited",
@@ -1214,7 +1313,6 @@ export interface GitSyncOperation {
1214
1313
  * * `running`: The operation is still running
1215
1314
  * * `failure`: The operation failed
1216
1315
  * * `success`: The operation was successful
1217
- *
1218
1316
  */
1219
1317
  state: GitSyncOperationState;
1220
1318
  startedAt: Date;
@@ -1225,8 +1323,8 @@ export interface GitSyncOperation {
1225
1323
  }
1226
1324
  /**
1227
1325
  * * `running`: The operation is still running
1228
- * `failure`: The operation failed
1229
- * `success`: The operation was successful
1326
+ * * `failure`: The operation failed
1327
+ * * `success`: The operation was successful
1230
1328
  */
1231
1329
  export declare enum GitSyncOperationState {
1232
1330
  Running = "running",
@@ -1264,7 +1362,15 @@ export interface Organization {
1264
1362
  communityType?: OrganizationCommunityType;
1265
1363
  /** URLs associated with the object */
1266
1364
  urls: {
1365
+ /**
1366
+ * URL of the organization in the API
1367
+ * @format uri
1368
+ */
1267
1369
  location: string;
1370
+ /**
1371
+ * URL of the organization in the application
1372
+ * @format uri
1373
+ */
1268
1374
  app: string;
1269
1375
  };
1270
1376
  }
@@ -1274,6 +1380,8 @@ export declare enum OrganizationType {
1274
1380
  }
1275
1381
  /**
1276
1382
  * Name of the organization
1383
+ * @minLength 2
1384
+ * @maxLength 300
1277
1385
  */
1278
1386
  export declare type OrganizationTitle = string;
1279
1387
  export declare type OrganizationEmailDomains = string[];
@@ -1290,15 +1398,22 @@ export declare enum OrganizationCommunityType {
1290
1398
  OpenSource = "openSource",
1291
1399
  Education = "education"
1292
1400
  }
1401
+ export interface OrganizationExperimentalFeature {
1402
+ id: string;
1403
+ title: string;
1404
+ description: string;
1405
+ enabled: boolean;
1406
+ stage: 'alpha' | 'beta';
1407
+ }
1293
1408
  /**
1294
- * "The role of a member in an organization.
1295
- "admin": Can administrate the content: create, delete spaces, ...
1296
- "create": Can create content.
1297
- "review": Can review content.
1298
- "edit": Can edit the content (live or change requests).
1299
- "comment": Can access the content and its discussions.
1300
- "read": Can access the content, but cannot update it in any way.
1301
- */
1409
+ * "The role of a member in an organization.
1410
+ * "admin": Can administrate the content: create, delete spaces, ...
1411
+ * "create": Can create content.
1412
+ * "review": Can review content.
1413
+ * "edit": Can edit the content (live or change requests).
1414
+ * "comment": Can access the content and its discussions.
1415
+ * "read": Can access the content, but cannot update it in any way.
1416
+ */
1302
1417
  export declare enum MemberRole {
1303
1418
  Admin = "admin",
1304
1419
  Create = "create",
@@ -1307,9 +1422,7 @@ export declare enum MemberRole {
1307
1422
  Comment = "comment",
1308
1423
  Read = "read"
1309
1424
  }
1310
- /**
1311
- * The role of a member in an organization, null for guests
1312
- */
1425
+ /** The role of a member in an organization, null for guests */
1313
1426
  export declare type MemberRoleOrGuest = MemberRole | null;
1314
1427
  export interface OrganizationTransferResponse {
1315
1428
  /** The unique id of the collection created in the target organization containing the content of the source organization. */
@@ -1336,14 +1449,7 @@ export declare type OrganizationDirectorySyncGroupTeamStatus = {
1336
1449
  } | {
1337
1450
  success: false;
1338
1451
  error: string;
1339
- } | ({
1340
- success: true;
1341
- group_id: string;
1342
- team_id: string;
1343
- } & {
1344
- success: false;
1345
- error: string;
1346
- });
1452
+ };
1347
1453
  export interface OrganizationTarget {
1348
1454
  organization: string;
1349
1455
  }
@@ -1382,6 +1488,8 @@ export interface OrganizationTeam {
1382
1488
  }
1383
1489
  /**
1384
1490
  * Title of the team
1491
+ * @minLength 1
1492
+ * @maxLength 64
1385
1493
  */
1386
1494
  export declare type OrganizationTeamTitle = string;
1387
1495
  export interface TeamMember {
@@ -1389,22 +1497,19 @@ export interface TeamMember {
1389
1497
  * "The role of a team member.
1390
1498
  * "owner": Can manage team members.
1391
1499
  * "member": Is a member of the team.
1392
- *
1393
1500
  */
1394
1501
  role: TeamMemberRole;
1395
1502
  }
1396
1503
  /**
1397
- * "The role of a team member.
1398
- "owner": Can manage team members.
1399
- "member": Is a member of the team.
1400
- */
1504
+ * "The role of a team member.
1505
+ * "owner": Can manage team members.
1506
+ * "member": Is a member of the team.
1507
+ */
1401
1508
  export declare enum TeamMemberRole {
1402
1509
  Owner = "owner",
1403
1510
  Member = "member"
1404
1511
  }
1405
- /**
1406
- * A member of a team in an organization, including its relationship to it
1407
- */
1512
+ /** A member of a team in an organization, including its relationship to it */
1408
1513
  export interface OrganizationTeamMember {
1409
1514
  organization: OrganizationMember;
1410
1515
  team: TeamMember;
@@ -1434,18 +1539,30 @@ export interface Capture {
1434
1539
  speech?: number;
1435
1540
  'thread.message'?: number;
1436
1541
  };
1437
- /** An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration). */
1542
+ /**
1543
+ * An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration).
1544
+ * @minItems 1
1545
+ */
1438
1546
  contributors: (Integration | User)[];
1439
1547
  /** Output document for the capture. Is not set when capture is not finished. */
1440
1548
  output?: Document;
1441
1549
  /** URLs associated with the object */
1442
1550
  urls: {
1551
+ /**
1552
+ * URL of the capture in the API
1553
+ * @format uri
1554
+ */
1443
1555
  location: string;
1556
+ /**
1557
+ * URL of the capture in the app
1558
+ * @format uri
1559
+ */
1444
1560
  app: string;
1445
1561
  };
1446
1562
  }
1447
1563
  /**
1448
1564
  * Optional title describing the capture
1565
+ * @maxLength 100
1449
1566
  */
1450
1567
  export declare type CaptureTitle = string;
1451
1568
  export declare type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
@@ -1458,7 +1575,10 @@ export interface BaseCaptureEvent {
1458
1575
  * @format date-time
1459
1576
  */
1460
1577
  timestamp: string;
1461
- /** Optionally, provide the source of the event. GitBook may use this to improve the generated content. */
1578
+ /**
1579
+ * Optionally, provide the source of the event. GitBook may use this to improve the generated content.
1580
+ * @maxLength 50
1581
+ */
1462
1582
  source?: string;
1463
1583
  /** Optionally, provide the actor of the event, in the context of multiple people contributing to the capture. */
1464
1584
  actor?: {
@@ -1468,8 +1588,10 @@ export interface BaseCaptureEvent {
1468
1588
  export declare type CaptureSpeechEvent = BaseCaptureEvent & {
1469
1589
  type: 'speech';
1470
1590
  } & ({
1591
+ /** WAV audio file, encoded as base64 */
1471
1592
  audio: string;
1472
1593
  } | {
1594
+ /** Transcript of the speech */
1473
1595
  transcript: string;
1474
1596
  });
1475
1597
  export declare type CaptureTerminalCommandEvent = BaseCaptureEvent & {
@@ -1504,19 +1626,41 @@ export interface UpdateCaptureSchema {
1504
1626
  body?: Document;
1505
1627
  }
1506
1628
  export declare type Snippet = Document & {
1629
+ /** Unique identifier for the snippet */
1507
1630
  id: string;
1631
+ /** @format date-time */
1508
1632
  createdAt: string;
1633
+ /**
1634
+ * Timestamp of when the snippet was last edited, if it has been edited since its creation.
1635
+ * @format date-time
1636
+ */
1509
1637
  editedAt?: string;
1638
+ /**
1639
+ * Title describing the snippet.
1640
+ * @maxLength 100
1641
+ */
1510
1642
  title?: string;
1643
+ /** The source of the snippet. */
1511
1644
  source: {
1645
+ /** An ID identifying the source, unique across all sources. */
1512
1646
  sourceId: string;
1647
+ /** A display name for the source. */
1513
1648
  name: string;
1649
+ /** An ID identifying the snippet in the source system, if available. */
1514
1650
  externalId?: string;
1651
+ /** URL of the snippet in the source system, if available. */
1515
1652
  externalUrl?: URL;
1516
1653
  };
1654
+ /**
1655
+ * An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.
1656
+ * @minItems 1
1657
+ */
1517
1658
  contributors: (Integration | User)[];
1659
+ /** URLs associated with the object */
1518
1660
  urls: {
1661
+ /** URL of the snippet in the API */
1519
1662
  location: URL;
1663
+ /** URL of the snippet in the app */
1520
1664
  app: URL;
1521
1665
  };
1522
1666
  };
@@ -1526,9 +1670,7 @@ export interface UpdateSnippetSchema {
1526
1670
  /** Content of the snippet. */
1527
1671
  body?: Document;
1528
1672
  }
1529
- /**
1530
- * Content audit relation
1531
- */
1673
+ /** Content audit relation */
1532
1674
  export interface ContentAuditRelation {
1533
1675
  id: string;
1534
1676
  /** The sources that are related */
@@ -1542,16 +1684,12 @@ export interface ContentAuditRelation {
1542
1684
  /** The date at which the relation was created */
1543
1685
  createdAt: Date;
1544
1686
  }
1545
- /**
1546
- * The type of the relation between the sources
1547
- */
1687
+ /** The type of the relation between the sources */
1548
1688
  export declare enum ContentAuditRelationType {
1549
1689
  Contradiction = "contradiction",
1550
1690
  Duplicate = "duplicate"
1551
1691
  }
1552
- /**
1553
- * Status of the audit relation to filter on
1554
- */
1692
+ /** Status of the audit relation to filter on */
1555
1693
  export declare enum ContentAuditRelationStatus {
1556
1694
  Pending = "pending",
1557
1695
  Rejected = "rejected"
@@ -1561,9 +1699,7 @@ export interface ContentAuditRelationStatusUpdate {
1561
1699
  status: ContentAuditRelationStatus;
1562
1700
  }
1563
1701
  export declare type ContentAuditSource = ContentAuditSourceSection;
1564
- /**
1565
- * A GitBook section source
1566
- */
1702
+ /** A GitBook section source */
1567
1703
  export interface ContentAuditSourceSection {
1568
1704
  id: string;
1569
1705
  type: 'section';
@@ -1578,13 +1714,21 @@ export interface ChangeRequest {
1578
1714
  /** Incremental identifier of the change request */
1579
1715
  number: number;
1580
1716
  status: ChangeRequestStatus;
1581
- /** Subject of the change request */
1717
+ /**
1718
+ * Subject of the change request
1719
+ * @minLength 0
1720
+ * @maxLength 100
1721
+ */
1582
1722
  subject: string;
1583
1723
  createdBy: User;
1584
1724
  createdAt: Date;
1585
1725
  updatedAt: Date;
1586
1726
  /** URLs associated with the object */
1587
1727
  urls: {
1728
+ /**
1729
+ * URL of the space in the application
1730
+ * @format uri
1731
+ */
1588
1732
  app: string;
1589
1733
  };
1590
1734
  }
@@ -1611,23 +1755,26 @@ export interface ChangeRequestReview {
1611
1755
  createdAt: Date;
1612
1756
  updatedAt: Date;
1613
1757
  }
1614
- /**
1615
- * Status of a change request review.
1616
- */
1758
+ /** Status of a change request review. */
1617
1759
  export declare enum ChangeRequestReviewStatus {
1618
1760
  ChangesRequested = "changes-requested",
1619
1761
  Approved = "approved"
1620
1762
  }
1621
1763
  export declare type ChangeRequestRequestedReviewer = {
1764
+ /** Type of Object, always equals to "change-request-requested-reviewer" */
1622
1765
  object: 'change-request-requested-reviewer';
1766
+ /** The revision of the content when the request was made. */
1623
1767
  revision: string;
1768
+ /** The user who made the request. */
1624
1769
  requestedBy: User;
1625
1770
  createdAt: Date;
1626
1771
  } & ({
1627
1772
  kind: 'user';
1773
+ /** The user who was requested to review. */
1628
1774
  user: User;
1629
1775
  } | {
1630
1776
  kind: 'team';
1777
+ /** The team who was requested to review. */
1631
1778
  team: Team;
1632
1779
  });
1633
1780
  export interface UpdateCommentSchema {
@@ -1660,9 +1807,7 @@ export interface PostCommentReplySchema {
1660
1807
  /** The content of the comment. */
1661
1808
  body: Document;
1662
1809
  }
1663
- /**
1664
- * Permission of a user in a content.
1665
- */
1810
+ /** Permission of a user in a content. */
1666
1811
  export interface UserContentPermission {
1667
1812
  /**
1668
1813
  * "The role of a member in an organization.
@@ -1672,14 +1817,11 @@ export interface UserContentPermission {
1672
1817
  * "edit": Can edit the content (live or change requests).
1673
1818
  * "comment": Can access the content and its discussions.
1674
1819
  * "read": Can access the content, but cannot update it in any way.
1675
- *
1676
1820
  */
1677
1821
  permission: MemberRole;
1678
1822
  user: User;
1679
1823
  }
1680
- /**
1681
- * Permission of a member in a content.
1682
- */
1824
+ /** Permission of a member in a content. */
1683
1825
  export interface MemberContentPermission {
1684
1826
  /**
1685
1827
  * "The role of a member in an organization.
@@ -1689,22 +1831,17 @@ export interface MemberContentPermission {
1689
1831
  * "edit": Can edit the content (live or change requests).
1690
1832
  * "comment": Can access the content and its discussions.
1691
1833
  * "read": Can access the content, but cannot update it in any way.
1692
- *
1693
1834
  */
1694
1835
  permission: MemberRole;
1695
1836
  space: Space;
1696
1837
  }
1697
- /**
1698
- * Search result representing a space.
1699
- */
1838
+ /** Search result representing a space. */
1700
1839
  export interface SearchSpaceResult {
1701
1840
  id: string;
1702
1841
  title: string;
1703
1842
  pages: SearchPageResult[];
1704
1843
  }
1705
- /**
1706
- * Search result representing a page in a space.
1707
- */
1844
+ /** Search result representing a page in a space. */
1708
1845
  export interface SearchPageResult {
1709
1846
  id: string;
1710
1847
  title: string;
@@ -1712,12 +1849,14 @@ export interface SearchPageResult {
1712
1849
  sections?: SearchSectionResult[];
1713
1850
  /** URLs associated with the object */
1714
1851
  urls: {
1852
+ /**
1853
+ * URL of the page in the application
1854
+ * @format uri
1855
+ */
1715
1856
  app: string;
1716
1857
  };
1717
1858
  }
1718
- /**
1719
- * Search result representing a section in a page.
1720
- */
1859
+ /** Search result representing a section in a page. */
1721
1860
  export interface SearchSectionResult {
1722
1861
  id: string;
1723
1862
  title: string;
@@ -1725,22 +1864,31 @@ export interface SearchSectionResult {
1725
1864
  body: string;
1726
1865
  /** URLs associated with the object */
1727
1866
  urls: {
1867
+ /**
1868
+ * URL of the section in the application
1869
+ * @format uri
1870
+ */
1728
1871
  app: string;
1729
1872
  };
1730
1873
  }
1731
1874
  export interface SearchAIQuery {
1732
1875
  query: string;
1876
+ /**
1877
+ * @deprecated
1878
+ * @maxItems 10
1879
+ */
1733
1880
  previousQueries?: string[];
1734
1881
  }
1735
- /**
1736
- * Answer from AI for a question asked on a content.
1737
- */
1882
+ /** Answer from AI for a question asked on a content. */
1738
1883
  export interface SearchAIAnswer {
1739
1884
  text: string;
1740
1885
  followupQuestions: string[];
1741
1886
  /** The sources used to generate the answer. */
1742
1887
  sources: SearchAIAnswerSource[];
1743
- /** The pages used to generate the answer. Deprecated - use sources instead. */
1888
+ /**
1889
+ * The pages used to generate the answer. Deprecated - use sources instead.
1890
+ * @deprecated
1891
+ */
1744
1892
  pages: {
1745
1893
  page: string;
1746
1894
  revision: string;
@@ -1758,17 +1906,20 @@ export declare type SearchAIAnswerSource = {
1758
1906
  sections: string[];
1759
1907
  } | {
1760
1908
  type: 'entity';
1909
+ /** ID of the entity */
1761
1910
  entityId: string;
1911
+ /** Type of an entity */
1762
1912
  entityType: EntityType;
1913
+ /** The name of the integration that manages this entity. If undefined, this entity is not managed by an integration. */
1763
1914
  integration?: string;
1764
1915
  } | {
1765
1916
  type: 'capture';
1917
+ /** ID of the capture */
1766
1918
  captureId: string;
1919
+ /** Source of the capture */
1767
1920
  source: string;
1768
1921
  });
1769
- /**
1770
- * Questions recommended by the AI for the given content.
1771
- */
1922
+ /** Questions recommended by the AI for the given content. */
1772
1923
  export interface SearchAIRecommendedQuestions {
1773
1924
  questions: string[];
1774
1925
  }
@@ -1777,9 +1928,7 @@ export declare enum AnalyticsSearchPeriod {
1777
1928
  LastWeek = "last_week",
1778
1929
  LastYear = "last_year"
1779
1930
  }
1780
- /**
1781
- * Analytics entry for a search query.
1782
- */
1931
+ /** Analytics entry for a search query. */
1783
1932
  export interface AnalyticsSearchQuery {
1784
1933
  query: string;
1785
1934
  /** Number of searches done by users. */
@@ -1791,9 +1940,7 @@ export interface AnalyticsSearchQuery {
1791
1940
  /** Number of sections matching this search. */
1792
1941
  sectionHits: number;
1793
1942
  }
1794
- /**
1795
- * Top search queries for a content.
1796
- */
1943
+ /** Top search queries for a content. */
1797
1944
  export interface AnalyticsTopSearches {
1798
1945
  /** Number of searches done by users. */
1799
1946
  searches: number;
@@ -1817,20 +1964,28 @@ export interface AnalyticsTrafficPageViews {
1817
1964
  export interface AnalyticsContentPages {
1818
1965
  pages: AnalyticsContentPage[];
1819
1966
  }
1820
- /**
1821
- * Page entry in the content analytics.
1822
- */
1967
+ /** Page entry in the content analytics. */
1823
1968
  export interface AnalyticsContentPage {
1824
1969
  page: string;
1825
1970
  title: string;
1826
1971
  pageViews: number;
1827
1972
  feedbacks?: {
1973
+ /** Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad'). */
1828
1974
  score: number;
1975
+ /** Total number of ratings done by end users. */
1829
1976
  total: number;
1977
+ /**
1978
+ * Summary of the rating based on the score ('good', 'ok', or 'bad')
1979
+ * @deprecated
1980
+ */
1830
1981
  rating: string;
1982
+ /** Score multiplied by the number of ratings to give more importance to highly rated content. */
1831
1983
  ponderedScore: number;
1984
+ /** Number of 'bad' ratings. */
1832
1985
  bad: number;
1986
+ /** Number of 'ok' ratings. */
1833
1987
  ok: number;
1988
+ /** Number of 'good' ratings. */
1834
1989
  good: number;
1835
1990
  };
1836
1991
  }
@@ -1839,7 +1994,11 @@ export interface Collection {
1839
1994
  object: 'collection';
1840
1995
  /** Unique identifier for the collection */
1841
1996
  id: string;
1842
- /** Title of the collection */
1997
+ /**
1998
+ * Title of the collection
1999
+ * @minLength 0
2000
+ * @maxLength 50
2001
+ */
1843
2002
  title: string;
1844
2003
  /** Path in the published URL */
1845
2004
  path?: string;
@@ -1851,7 +2010,6 @@ export interface Collection {
1851
2010
  * * `in-collection`: Anyone who can access the parent collection can access the content.
1852
2011
  * Only available for spaces in a collection.
1853
2012
  * * `private`: Authorized members can access the content.
1854
- *
1855
2013
  */
1856
2014
  visibility: ContentVisibility;
1857
2015
  publishingType?: 'variants';
@@ -1859,11 +2017,22 @@ export interface Collection {
1859
2017
  organization: string;
1860
2018
  /** ID of the parent collection, if any */
1861
2019
  parent?: string;
1862
- /** ID of the parent collection, if any */
2020
+ /**
2021
+ * ID of the parent collection, if any
2022
+ * @deprecated
2023
+ */
1863
2024
  collection?: string;
1864
2025
  /** URLs associated with the object */
1865
2026
  urls: {
2027
+ /**
2028
+ * URL of the collection in the API
2029
+ * @format uri
2030
+ */
1866
2031
  location: string;
2032
+ /**
2033
+ * URL of the collection in the application
2034
+ * @format uri
2035
+ */
1867
2036
  app: string;
1868
2037
  };
1869
2038
  }
@@ -1879,7 +2048,10 @@ export interface Integration {
1879
2048
  description?: IntegrationDescription;
1880
2049
  /** Long form markdown summary of the integration */
1881
2050
  summary?: IntegrationSummary;
1882
- /** URLs of images to showcase the integration */
2051
+ /**
2052
+ * URLs of images to showcase the integration
2053
+ * @maxItems 3
2054
+ */
1883
2055
  previewImages: string[];
1884
2056
  target: IntegrationTarget;
1885
2057
  /** If true, the integration has been verified by the GitBook team */
@@ -1897,10 +2069,30 @@ export interface Integration {
1897
2069
  owner: Organization;
1898
2070
  /** URLs associated with the object */
1899
2071
  urls: {
2072
+ /**
2073
+ * URL of the integration in the API
2074
+ * @format uri
2075
+ */
1900
2076
  location: string;
2077
+ /**
2078
+ * URL of the icon associated to the integration
2079
+ * @format uri
2080
+ */
1901
2081
  icon?: string;
2082
+ /**
2083
+ * URL of the integration in the application
2084
+ * @format uri
2085
+ */
1902
2086
  app: string;
2087
+ /**
2088
+ * URL of the integration's assets.
2089
+ * @format uri
2090
+ */
1903
2091
  assets: string;
2092
+ /**
2093
+ * Public HTTP endpoint for the integration
2094
+ * @format uri
2095
+ */
1904
2096
  publicEndpoint: string;
1905
2097
  };
1906
2098
  /** The set of permissions for the integration */
@@ -1910,25 +2102,26 @@ export interface Integration {
1910
2102
  /**
1911
2103
  * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
1912
2104
  * headers when processing the script fetch event and the blocks fetch events.
1913
- *
1914
2105
  */
1915
2106
  contentSecurityPolicy?: IntegrationContentSecurityPolicy;
1916
2107
  }
1917
2108
  /**
1918
2109
  * Title of the integration
2110
+ * @minLength 2
2111
+ * @maxLength 30
1919
2112
  */
1920
2113
  export declare type IntegrationTitle = string;
1921
2114
  /**
1922
2115
  * Description of the integration
2116
+ * @maxLength 100
1923
2117
  */
1924
2118
  export declare type IntegrationDescription = string;
1925
2119
  /**
1926
2120
  * Long form markdown summary of the integration
2121
+ * @maxLength 2048
1927
2122
  */
1928
2123
  export declare type IntegrationSummary = string;
1929
- /**
1930
- * Permissions that should be granted to the integration
1931
- */
2124
+ /** Permissions that should be granted to the integration */
1932
2125
  export declare type IntegrationScopes = IntegrationScope[];
1933
2126
  export declare enum IntegrationScope {
1934
2127
  EntitiesWrite = "entities:write",
@@ -1943,27 +2136,31 @@ export declare enum IntegrationScope {
1943
2136
  SpaceScriptCookies = "space:script:cookies",
1944
2137
  SpaceGitSync = "space:git:sync"
1945
2138
  }
1946
- /**
1947
- * Categories for which the integration is listed in the marketplace
1948
- */
2139
+ /** Categories for which the integration is listed in the marketplace */
1949
2140
  export declare type IntegrationCategories = IntegrationCategory[];
1950
- /**
1951
- * Format the custom block as a codeblock
1952
- */
2141
+ /** Format the custom block as a codeblock */
1953
2142
  export declare type IntegrationBlockMarkdown = {
2143
+ /** Code block syntax to use to identify the block. */
1954
2144
  codeblock: string;
2145
+ /** Key of the property to use as body of the codeblock. */
1955
2146
  body: string;
1956
2147
  };
1957
- /**
1958
- * Custom blocks defined by this integration.
1959
- */
2148
+ /** Custom blocks defined by this integration. */
1960
2149
  export declare type IntegrationBlocks = IntegrationBlock[];
1961
2150
  export interface IntegrationBlock {
1962
2151
  /** Unique ID in the integration for the block. It also represents the UI component used. */
1963
2152
  id: string;
1964
- /** Short descriptive title for the block. */
2153
+ /**
2154
+ * Short descriptive title for the block.
2155
+ * @minLength 2
2156
+ * @maxLength 40
2157
+ */
1965
2158
  title: string;
1966
- /** Long descriptive text for the block. */
2159
+ /**
2160
+ * Long descriptive text for the block.
2161
+ * @minLength 0
2162
+ * @maxLength 150
2163
+ */
1967
2164
  description?: string;
1968
2165
  /** URL of the icon to represent this block. */
1969
2166
  icon?: string;
@@ -1974,6 +2171,7 @@ export interface IntegrationBlock {
1974
2171
  }
1975
2172
  /**
1976
2173
  * External urls configured by the developer of the integration
2174
+ * @maxItems 5
1977
2175
  */
1978
2176
  export declare type IntegrationExternalLinks = {
1979
2177
  url: URL;
@@ -2002,9 +2200,7 @@ export interface IntegrationEventLog {
2002
2200
  export interface IntegrationEventTrace {
2003
2201
  logs: IntegrationEventLog[];
2004
2202
  }
2005
- /**
2006
- * Describe whether all spaces have been selected or there's a selection involved
2007
- */
2203
+ /** Describe whether all spaces have been selected or there's a selection involved */
2008
2204
  export declare enum IntegrationInstallationSpaceSelection {
2009
2205
  All = "all",
2010
2206
  Selected = "selected"
@@ -2023,12 +2219,12 @@ export interface IntegrationConfigurations {
2023
2219
  space?: IntegrationConfiguration;
2024
2220
  }
2025
2221
  export declare type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
2026
- /**
2027
- * Schema for a configuration
2028
- */
2222
+ /** Schema for a configuration */
2029
2223
  export interface IntegrationConfigurationSchema {
2030
2224
  properties: Record<string, {
2225
+ /** @maxLength 30 */
2031
2226
  title?: string;
2227
+ /** @maxLength 100 */
2032
2228
  description?: string;
2033
2229
  } & ({
2034
2230
  type: 'string';
@@ -2044,11 +2240,10 @@ export interface IntegrationConfigurationSchema {
2044
2240
  callback_url: string;
2045
2241
  button_text: string;
2046
2242
  })>;
2243
+ /** @uniqueItems true */
2047
2244
  required?: string[];
2048
2245
  }
2049
- /**
2050
- * ContentKit component for configuration
2051
- */
2246
+ /** ContentKit component for configuration */
2052
2247
  export interface IntegrationConfigurationComponent {
2053
2248
  /** ID of the ContentKit component defined in the integration */
2054
2249
  componentId: string;
@@ -2058,9 +2253,7 @@ export declare enum IntegrationVisibility {
2058
2253
  Private = "private",
2059
2254
  Unlisted = "unlisted"
2060
2255
  }
2061
- /**
2062
- * Installation of an integration on an account
2063
- */
2256
+ /** Installation of an integration on an account */
2064
2257
  export interface IntegrationInstallation {
2065
2258
  id: string;
2066
2259
  status: IntegrationInstallationStatus;
@@ -2074,8 +2267,20 @@ export interface IntegrationInstallation {
2074
2267
  updatedAt: Date;
2075
2268
  /** URLs associated with the object */
2076
2269
  urls: {
2270
+ /**
2271
+ * URL of the installation in the API
2272
+ * @format uri
2273
+ */
2077
2274
  location: string;
2275
+ /**
2276
+ * URL of the integration's installation in the application
2277
+ * @format uri
2278
+ */
2078
2279
  app: string;
2280
+ /**
2281
+ * Public HTTP endpoint for the integration's installation
2282
+ * @format uri
2283
+ */
2079
2284
  publicEndpoint: string;
2080
2285
  };
2081
2286
  /** External IDs assigned by the integration. */
@@ -2083,9 +2288,7 @@ export interface IntegrationInstallation {
2083
2288
  /** Target of the integration installation */
2084
2289
  target: IntegrationInstallationTarget;
2085
2290
  }
2086
- /**
2087
- * Installation of an integration at a space level
2088
- */
2291
+ /** Installation of an integration at a space level */
2089
2292
  export interface IntegrationSpaceInstallation {
2090
2293
  /** Unique name identifier of the integration */
2091
2294
  integration: string;
@@ -2100,7 +2303,15 @@ export interface IntegrationSpaceInstallation {
2100
2303
  externalIds: IntegrationInstallationExternalIds;
2101
2304
  /** URLs associated with the object */
2102
2305
  urls: {
2306
+ /**
2307
+ * URL of the integration's space installation in the API
2308
+ * @format uri
2309
+ */
2103
2310
  location: string;
2311
+ /**
2312
+ * Public HTTP endpoint for the integration's space installation
2313
+ * @format uri
2314
+ */
2104
2315
  publicEndpoint: string;
2105
2316
  };
2106
2317
  }
@@ -2109,15 +2320,14 @@ export declare enum IntegrationInstallationStatus {
2109
2320
  Pending = "pending",
2110
2321
  Paused = "paused"
2111
2322
  }
2112
- /**
2113
- * Secrets stored on the integration and passed at runtime.
2114
- */
2323
+ /** Secrets stored on the integration and passed at runtime. */
2115
2324
  export declare type IntegrationSecrets = Record<string, string>;
2116
- /**
2117
- * Runtime environment provided during the execution of integration's code.
2118
- */
2325
+ /** Runtime environment provided during the execution of integration's code. */
2119
2326
  export interface IntegrationEnvironment {
2120
- /** Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration. */
2327
+ /**
2328
+ * Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration.
2329
+ * @deprecated
2330
+ */
2121
2331
  authToken?: string;
2122
2332
  integration: Integration;
2123
2333
  /** Installation of an integration on an account */
@@ -2131,7 +2341,9 @@ export interface IntegrationEnvironment {
2131
2341
  /** URL of the HTTP API */
2132
2342
  apiEndpoint: string;
2133
2343
  apiTokens: {
2344
+ /** API authentication token representing the integration. */
2134
2345
  integration: string;
2346
+ /** API authentication token representing the current installation. */
2135
2347
  installation?: string;
2136
2348
  };
2137
2349
  }
@@ -2140,18 +2352,17 @@ export declare enum IntegrationTarget {
2140
2352
  All = "all"
2141
2353
  }
2142
2354
  export declare type IntegrationInstallationTarget = OrganizationTarget;
2143
- /**
2144
- * Configuration of the integration at the account level
2145
- */
2355
+ /** Configuration of the integration at the account level */
2146
2356
  export declare type IntegrationInstallationConfiguration = Record<string, any>;
2147
2357
  /**
2148
2358
  * External IDs assigned by the integration.
2359
+ * @maxItems 5
2149
2360
  */
2150
2361
  export declare type IntegrationInstallationExternalIds = string[];
2151
2362
  /**
2152
- * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
2153
- headers when processing the script fetch event and the blocks fetch events.
2154
- */
2363
+ * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
2364
+ * headers when processing the script fetch event and the blocks fetch events.
2365
+ */
2155
2366
  export declare type IntegrationContentSecurityPolicy = string | {
2156
2367
  'base-uri'?: string;
2157
2368
  'block-all-mixed-content'?: string;
@@ -2186,12 +2397,11 @@ export declare type IntegrationContentSecurityPolicy = string | {
2186
2397
  'worker-src'?: string;
2187
2398
  };
2188
2399
  export declare type SpaceIntegrationBlocks = {
2400
+ /** Unique named identifier for the integration */
2189
2401
  name: string;
2190
2402
  blocks: IntegrationBlock[];
2191
2403
  }[];
2192
- /**
2193
- * Entity to create or update in an integration's installation.
2194
- */
2404
+ /** Entity to create or update in an integration's installation. */
2195
2405
  export interface UpsertEntity {
2196
2406
  /** Unique ID of the entity in the context of the integration's entity type */
2197
2407
  entityId: EntityId;
@@ -2200,29 +2410,41 @@ export interface UpsertEntity {
2200
2410
  entityId: string;
2201
2411
  }>;
2202
2412
  }
2203
- /**
2204
- * Entity created and managed by an integration, representing an external element.
2205
- */
2413
+ /** Entity created and managed by an integration, representing an external element. */
2206
2414
  export declare type Entity = UpsertEntity & {
2415
+ /** Unique ID for the entity in GitBook */
2207
2416
  id: string;
2417
+ /**
2418
+ * Type of an entity. Deprecated, use entityType.
2419
+ * @deprecated
2420
+ */
2208
2421
  type: EntityType;
2422
+ /** Type of an entity */
2209
2423
  entityType: EntityType;
2424
+ /** URLs associated with the object */
2210
2425
  urls: {
2426
+ /**
2427
+ * URL of the entity in the API
2428
+ * @format uri
2429
+ */
2211
2430
  location: string;
2212
2431
  };
2213
2432
  };
2214
2433
  /**
2215
2434
  * Type of an entity
2435
+ * @minLength 1
2436
+ * @maxLength 64
2216
2437
  */
2217
2438
  export declare type EntityType = string;
2218
2439
  /**
2219
2440
  * Unique ID of the entity in the context of the integration's entity type
2441
+ * @minLength 1
2442
+ * @maxLength 256
2220
2443
  */
2221
2444
  export declare type EntityId = string;
2445
+ /** @maxLength 50 */
2222
2446
  export declare type EntitySchemaTitle = string;
2223
- /**
2224
- * Schema for a type of entities
2225
- */
2447
+ /** Schema for a type of entities */
2226
2448
  export interface EntityRawSchema {
2227
2449
  /** Type of an entity */
2228
2450
  type: EntityType;
@@ -2235,16 +2457,27 @@ export interface EntityRawSchema {
2235
2457
  properties: EntityPropertySchema[];
2236
2458
  }
2237
2459
  export declare type EntitySchema = EntityRawSchema & {
2460
+ /** Count of entities created in this schema. */
2238
2461
  entities: number;
2462
+ /** Integration managing this schema. */
2239
2463
  integration?: Integration;
2464
+ /** URLs associated with the object */
2240
2465
  urls: {
2466
+ /**
2467
+ * URL of the entity schema in the API
2468
+ * @format uri
2469
+ */
2241
2470
  location: string;
2242
2471
  };
2243
2472
  };
2244
2473
  export declare type EntityPropertySchema = {
2474
+ /** Name of the property in the object */
2245
2475
  name: string;
2476
+ /** Title displayed to the users */
2246
2477
  title: string;
2478
+ /** Description of the property */
2247
2479
  description?: string;
2480
+ /** If true, the property is no longer required and not taken into consideration */
2248
2481
  deprecated?: boolean;
2249
2482
  } & ({
2250
2483
  type: 'text';
@@ -2272,110 +2505,126 @@ export declare type EntityPropertySchema = {
2272
2505
  } | {
2273
2506
  type: 'relation';
2274
2507
  entity: {
2508
+ /** Type of an entity */
2275
2509
  type: EntityType;
2276
2510
  };
2277
2511
  });
2278
- /**
2279
- * Any event that can be received from GitBook.
2280
- */
2512
+ /** Any event that can be received from GitBook. */
2281
2513
  export declare type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SpaceViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | UIRenderEvent;
2282
- /**
2283
- * Common properties for all events.
2284
- */
2514
+ /** Common properties for all events. */
2285
2515
  export interface BaseEvent {
2286
2516
  /** Unique identifier for the event. */
2287
2517
  eventId: string;
2288
2518
  /** Type of the event. */
2289
2519
  type: string;
2290
2520
  }
2291
- /**
2292
- * Common properties for all events related to an installation
2293
- */
2521
+ /** Common properties for all events related to an installation */
2294
2522
  export declare type InstallationEvent = BaseEvent & {
2523
+ /** ID of the integration installation */
2295
2524
  installationId: string;
2296
2525
  };
2297
- /**
2298
- * Common properties for all events related to a specific space.
2299
- */
2526
+ /** Common properties for all events related to a specific space. */
2300
2527
  export declare type SpaceEvent = InstallationEvent & {
2528
+ /** ID of the space */
2301
2529
  spaceId: string;
2302
2530
  };
2303
- /**
2304
- * Event received when integration has been installed or updated.
2305
- */
2531
+ /** Event received when integration has been installed or updated. */
2306
2532
  export declare type InstallationSetupEvent = InstallationEvent & {
2307
2533
  type: 'installation_setup';
2308
2534
  status: IntegrationInstallationStatus;
2535
+ /** The state of the installation at the account level before it was updated. */
2309
2536
  previous?: {
2310
2537
  status: IntegrationInstallationStatus;
2538
+ /** The previous configuration of the installation at the account level. */
2311
2539
  configuration?: object;
2312
2540
  };
2313
2541
  };
2314
- /**
2315
- * Event received when integration has been installed or updated on a space.
2316
- */
2542
+ /** Event received when integration has been installed or updated on a space. */
2317
2543
  export declare type SpaceInstallationSetupEvent = SpaceEvent & {
2318
2544
  type: 'space_installation_setup';
2319
2545
  status: IntegrationInstallationStatus;
2546
+ /** The state of the Space installation before it was updated. */
2320
2547
  previous?: {
2321
2548
  status: IntegrationInstallationStatus;
2549
+ /** The previous configuration of the Space installation. */
2322
2550
  configuration?: object;
2323
2551
  };
2324
2552
  };
2325
- /**
2326
- * Event received when integration has been uninstalled from a space.
2327
- */
2553
+ /** Event received when integration has been uninstalled from a space. */
2328
2554
  export declare type SpaceInstallationDeletedEvent = SpaceEvent & {
2329
2555
  type: 'space_installation_deleted';
2556
+ /** The state of the Space installation before it was deleted. */
2330
2557
  previous: {
2558
+ /** The previous configuration of the Space installation. */
2331
2559
  configuration?: object;
2332
2560
  };
2333
2561
  };
2334
- /**
2335
- * Event received when a page has been visited.
2336
- */
2562
+ /** Event received when a page has been visited. */
2337
2563
  export declare type SpaceViewEvent = SpaceEvent & {
2338
2564
  type: 'space_view';
2565
+ /** Unique identifier of the visited page. */
2339
2566
  pageId?: string;
2567
+ /** Analytics info on the GitBook's content visitor. */
2340
2568
  visitor: {
2569
+ /** GitBook's unique identifier of the visitor. */
2341
2570
  anonymousId: string;
2571
+ /** The visitors cookies. */
2342
2572
  cookies: Record<string, string>;
2573
+ /** User-agent of the visitor. */
2343
2574
  userAgent: string;
2575
+ /** IP address of the visitor. */
2344
2576
  ip: string;
2345
2577
  };
2578
+ /** The GitBook content's URL visited (including URL params). */
2346
2579
  url: string;
2580
+ /** The URL of referrer that linked to the page. */
2347
2581
  referrer: string;
2348
2582
  };
2349
- /**
2350
- * Event when the primary content of a space has been updated.
2351
- */
2583
+ /** Event when the primary content of a space has been updated. */
2352
2584
  export declare type SpaceContentUpdatedEvent = SpaceEvent & {
2353
2585
  type: 'space_content_updated';
2586
+ /** Unique identifier of the new content revision */
2354
2587
  revisionId: string;
2355
2588
  };
2356
- /**
2357
- * Event when the visibility of the space has been changed.
2358
- */
2589
+ /** Event when the visibility of the space has been changed. */
2359
2590
  export declare type SpaceVisibilityUpdatedEvent = SpaceEvent & {
2360
2591
  type: 'space_visibility_updated';
2592
+ /**
2593
+ * * `public`: Anyone can access the content, and the content is indexed by search engines.
2594
+ * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
2595
+ * * `share-link`: Anyone with a secret token in the url can access the content.
2596
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
2597
+ * * `in-collection`: Anyone who can access the parent collection can access the content.
2598
+ * Only available for spaces in a collection.
2599
+ * * `private`: Authorized members can access the content.
2600
+ */
2361
2601
  previousVisibility: ContentVisibility;
2602
+ /**
2603
+ * * `public`: Anyone can access the content, and the content is indexed by search engines.
2604
+ * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
2605
+ * * `share-link`: Anyone with a secret token in the url can access the content.
2606
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
2607
+ * * `in-collection`: Anyone who can access the parent collection can access the content.
2608
+ * Only available for spaces in a collection.
2609
+ * * `private`: Authorized members can access the content.
2610
+ */
2362
2611
  visibility: ContentVisibility;
2363
2612
  };
2364
- /**
2365
- * Event when a GitSync operation has been completed.
2366
- */
2613
+ /** Event when a GitSync operation has been completed. */
2367
2614
  export declare type SpaceGitSyncCompletedEvent = SpaceEvent & {
2368
2615
  type: 'space_gitsync_completed';
2369
2616
  state: 'success' | 'failure';
2617
+ /** Unique identifier of the new content revision */
2370
2618
  revisionId: string;
2619
+ /** Unique identifier for the commit (sha) */
2371
2620
  commitId: string;
2372
2621
  };
2373
- /**
2374
- * Event when a GitSync operation has been started.
2375
- */
2622
+ /** Event when a GitSync operation has been started. */
2376
2623
  export declare type SpaceGitSyncStartedEvent = SpaceEvent & {
2377
2624
  type: 'space_gitsync_started';
2625
+ /** Unique identifier of the new content revision */
2378
2626
  revisionId: string;
2627
+ /** Unique identifier for the commit (sha) */
2379
2628
  commitId: string;
2380
2629
  };
2381
2630
  export interface FetchRequest {
@@ -2383,41 +2632,40 @@ export interface FetchRequest {
2383
2632
  url: string;
2384
2633
  headers: Record<string, string>;
2385
2634
  }
2386
- /**
2387
- * Event representing an incoming HTTP request.
2388
- */
2635
+ /** Event representing an incoming HTTP request. */
2389
2636
  export declare type FetchEvent = BaseEvent & {
2637
+ /** The space ID, if requests are specific to a single space */
2390
2638
  spaceId?: string;
2639
+ /** The installation ID, if requests are specific to a single installation */
2391
2640
  installationId?: string;
2392
2641
  auth?: {
2642
+ /** The user's ID. */
2393
2643
  userId: string;
2394
2644
  };
2395
2645
  type: 'fetch';
2396
2646
  request: FetchRequest;
2397
2647
  };
2398
- /**
2399
- * Common properties for all events related to fetching a published script from an installation
2400
- */
2648
+ /** Common properties for all events related to fetching a published script from an installation */
2401
2649
  export declare type FetchPublishedScriptEvent = SpaceEvent & {
2402
2650
  type: 'fetch_published_script';
2403
2651
  };
2404
- /**
2405
- * Event generated when rendering a UI
2406
- */
2652
+ /** Event generated when rendering a UI */
2407
2653
  export declare type UIRenderEvent = (SpaceEvent | InstallationEvent) & {
2408
2654
  auth?: {
2655
+ /** The user's ID. */
2409
2656
  userId: string;
2410
2657
  };
2411
2658
  type: 'ui_render';
2412
2659
  componentId: string;
2660
+ /** Properties to render the UI. */
2413
2661
  props: object;
2662
+ /** State of the UI. */
2414
2663
  state?: object;
2664
+ /** Object representing the context in which a ContentKit component is rendered. */
2415
2665
  context: ContentKitContext;
2416
2666
  action?: object;
2417
2667
  };
2418
- /**
2419
- * Interval for a billing subscription
2420
- */
2668
+ /** Interval for a billing subscription */
2421
2669
  export declare enum BillingInterval {
2422
2670
  Monthly = "monthly",
2423
2671
  Yearly = "yearly"
@@ -2426,9 +2674,7 @@ export interface BillingPortal {
2426
2674
  /** URL to the billing portal for an organization */
2427
2675
  url: string;
2428
2676
  }
2429
- /**
2430
- * Name of the product
2431
- */
2677
+ /** Name of the product */
2432
2678
  export declare enum BillingProduct {
2433
2679
  Free = "free",
2434
2680
  Plus = "plus",
@@ -2441,6 +2687,7 @@ export declare enum BillingProduct {
2441
2687
  }
2442
2688
  export declare type BillingUpgrade = {
2443
2689
  result: 'checkout';
2690
+ /** Stripe payment session ID */
2444
2691
  sessionId: string;
2445
2692
  } | {
2446
2693
  result: 'preview';
@@ -2473,10 +2720,8 @@ export declare enum APIIntegrationScope {
2473
2720
  IntegrationInstallationRead = "integration:installation:read",
2474
2721
  IntegrationInstallationUpdate = "integration:installation:update"
2475
2722
  }
2476
- export declare type APIScope = IntegrationScope | APIIntegrationScope | (IntegrationScope & APIIntegrationScope);
2477
- /**
2478
- * The Cloudflare Hostname status
2479
- */
2723
+ export declare type APIScope = IntegrationScope | APIIntegrationScope;
2724
+ /** The Cloudflare Hostname status */
2480
2725
  export declare enum CloudflareHostnameStatus {
2481
2726
  Pending = "pending",
2482
2727
  Active = "active",
@@ -2484,17 +2729,13 @@ export declare enum CloudflareHostnameStatus {
2484
2729
  Moved = "moved",
2485
2730
  Deleted = "deleted"
2486
2731
  }
2487
- /**
2488
- * The Cloudflare Hostname TLS certificate
2489
- */
2732
+ /** The Cloudflare Hostname TLS certificate */
2490
2733
  export interface CloudflareHostnameTLSCertificate {
2491
2734
  issuer?: string;
2492
2735
  expiresOn?: string;
2493
2736
  issuedOn?: string;
2494
2737
  }
2495
- /**
2496
- * The Cloudflare Hostname TLS information
2497
- */
2738
+ /** The Cloudflare Hostname TLS information */
2498
2739
  export interface CloudflareHostnameTLSInfo {
2499
2740
  /** The Cloudflare Hostname TLS status */
2500
2741
  status: CloudflareHostnameTLSStatus;
@@ -2504,9 +2745,7 @@ export interface CloudflareHostnameTLSInfo {
2504
2745
  certificates: CloudflareHostnameTLSCertificate[];
2505
2746
  validationErrors: CloudflareHostnameTLSValidationError[];
2506
2747
  }
2507
- /**
2508
- * The Cloudflare Hostname TLS status
2509
- */
2748
+ /** The Cloudflare Hostname TLS status */
2510
2749
  export declare enum CloudflareHostnameTLSStatus {
2511
2750
  Initializing = "initializing",
2512
2751
  PendingValidation = "pending_validation",
@@ -2517,23 +2756,17 @@ export declare enum CloudflareHostnameTLSStatus {
2517
2756
  PendingCleanup = "pending_cleanup",
2518
2757
  Deleted = "deleted"
2519
2758
  }
2520
- /**
2521
- * The Cloudflare Hostname TLS validation error
2522
- */
2759
+ /** The Cloudflare Hostname TLS validation error */
2523
2760
  export interface CloudflareHostnameTLSValidationError {
2524
2761
  message: string;
2525
2762
  }
2526
- /**
2527
- * The Cloudflare Hostname TLS validation method
2528
- */
2763
+ /** The Cloudflare Hostname TLS validation method */
2529
2764
  export declare enum CloudflareHostnameTLSValidationMethod {
2530
2765
  Http = "http",
2531
2766
  Txt = "txt",
2532
2767
  Email = "email"
2533
2768
  }
2534
- /**
2535
- * Cloudflare Custom Domain's information
2536
- */
2769
+ /** Cloudflare Custom Domain's information */
2537
2770
  export interface CustomDomainInfo {
2538
2771
  hostname: string;
2539
2772
  /** The Cloudflare Hostname status */
@@ -2543,9 +2776,7 @@ export interface CustomDomainInfo {
2543
2776
  ssl?: CloudflareHostnameTLSInfo;
2544
2777
  verificationErrors: string[];
2545
2778
  }
2546
- /**
2547
- * The User Firebase Auth Info.
2548
- */
2779
+ /** The User Firebase Auth Info. */
2549
2780
  export interface FirebaseUserInfo {
2550
2781
  uid: string;
2551
2782
  displayName?: string;
@@ -2554,23 +2785,17 @@ export interface FirebaseUserInfo {
2554
2785
  photoUrl?: string;
2555
2786
  providerId?: string;
2556
2787
  }
2557
- /**
2558
- * The type of purge, e.g by tags or hosts
2559
- */
2788
+ /** The type of purge, e.g by tags or hosts */
2560
2789
  export declare enum PurgeCDNCacheContextType {
2561
2790
  Tags = "tags",
2562
2791
  Hosts = "hosts"
2563
2792
  }
2564
- /**
2565
- * The GitBook Staff User info.
2566
- */
2793
+ /** The GitBook Staff User info. */
2567
2794
  export interface StaffUserInfo {
2568
2795
  id: string;
2569
2796
  searchKey: string;
2570
2797
  }
2571
- /**
2572
- * The GitBook User info shown in the BackOffice.
2573
- */
2798
+ /** The GitBook User info shown in the BackOffice. */
2574
2799
  export interface UserBackOfficeInfo {
2575
2800
  id: string;
2576
2801
  /** The GitBook User risk evaluation. */
@@ -2580,46 +2805,47 @@ export interface UserBackOfficeInfo {
2580
2805
  lastSignInAt: string;
2581
2806
  disabled: boolean;
2582
2807
  }
2583
- /**
2584
- * The info returned when impersonating a GitBook User.
2585
- */
2808
+ /** The info returned when impersonating a GitBook User. */
2586
2809
  export declare type UserImpersonation = UserBackOfficeInfo & {
2810
+ /** The GitBook User impersonation info. */
2587
2811
  impersonation: UserImpersonationInfo;
2588
2812
  };
2589
- /**
2590
- * The GitBook User impersonation info.
2591
- */
2813
+ /** The GitBook User impersonation info. */
2592
2814
  export interface UserImpersonationInfo {
2593
2815
  authURL: string;
2594
2816
  impersonatorId: string;
2595
2817
  }
2596
- /**
2597
- * All the permissions of a user
2598
- */
2818
+ /** All the permissions of a user */
2599
2819
  export interface UserPermissions {
2600
2820
  updatedAt: Date;
2601
2821
  searchKey: string;
2602
2822
  organizations: Record<string, {
2823
+ /** The role of a member in an organization, null for guests */
2603
2824
  role: MemberRoleOrGuest;
2604
2825
  teams: Record<string, {
2826
+ /**
2827
+ * "The role of a team member.
2828
+ * "owner": Can manage team members.
2829
+ * "member": Is a member of the team.
2830
+ */
2605
2831
  role: TeamMemberRole;
2606
2832
  }>;
2607
2833
  disabled?: boolean;
2608
2834
  }>;
2609
2835
  collections: Record<string, {
2610
2836
  organization: string;
2837
+ /** The role of a member in an organization, null for guests */
2611
2838
  level: MemberRoleOrGuest;
2612
2839
  collection?: string;
2613
2840
  }>;
2614
2841
  spaces: Record<string, {
2615
2842
  organization: string;
2843
+ /** The role of a member in an organization, null for guests */
2616
2844
  level: MemberRoleOrGuest;
2617
2845
  collection?: string;
2618
2846
  }>;
2619
2847
  }
2620
- /**
2621
- * The GitBook User risk evaluation.
2622
- */
2848
+ /** The GitBook User risk evaluation. */
2623
2849
  export interface UserRiskEvaluation {
2624
2850
  /** True if the user was originally considered as risky */
2625
2851
  wasRisky: boolean;
@@ -2641,9 +2867,7 @@ export interface UserRiskEvaluation {
2641
2867
  emailVerified: boolean;
2642
2868
  activeDaysRemaining: number;
2643
2869
  }
2644
- /**
2645
- * JWT tokens to authenticate in Hive for all content.
2646
- */
2870
+ /** JWT tokens to authenticate in Hive for all content. */
2647
2871
  export interface HiveAccessToken {
2648
2872
  contents: Record<string, string>;
2649
2873
  }
@@ -2665,56 +2889,43 @@ export interface APITemporaryToken {
2665
2889
  /** Temporary access token to authenticate with the API */
2666
2890
  token: string;
2667
2891
  }
2668
- /**
2669
- * Common properties for ContentKit context.
2670
- */
2892
+ /** Common properties for ContentKit context. */
2671
2893
  export interface ContentKitContextBase {
2672
2894
  theme: 'dark' | 'light';
2673
2895
  }
2674
- /**
2675
- * Object representing the context in which a ContentKit component is rendered.
2676
- */
2896
+ /** Object representing the context in which a ContentKit component is rendered. */
2677
2897
  export declare type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextDocument;
2678
- /**
2679
- * Context while rendering in an account installation's configuration.
2680
- */
2898
+ /** Context while rendering in an account installation's configuration. */
2681
2899
  export declare type ContentKitContextConfigurationAccount = ContentKitContextBase & {
2682
2900
  type: 'configuration_account';
2901
+ /** ID of the organization the account installation configuration is in. */
2683
2902
  organizationId: string;
2684
2903
  };
2685
- /**
2686
- * Context while rendering in a space-installation's configuration.
2687
- */
2904
+ /** Context while rendering in a space-installation's configuration. */
2688
2905
  export declare type ContentKitContextConfigurationSpace = ContentKitContextBase & {
2689
2906
  type: 'configuration_space';
2907
+ /** ID of the space the space-installation configuration is in. */
2690
2908
  spaceId: string;
2691
2909
  };
2692
- /**
2693
- * Context while rendering in a document.
2694
- */
2910
+ /** Context while rendering in a document. */
2695
2911
  export declare type ContentKitContextDocument = ContentKitContextBase & {
2696
2912
  type: 'document';
2913
+ /** ID of the space content the document is in. */
2697
2914
  spaceId: string;
2698
2915
  editable: boolean;
2699
2916
  };
2700
- /**
2701
- * Binding between a property and a state value.
2702
- */
2917
+ /** Binding between a property and a state value. */
2703
2918
  export interface ContentKitDynamicBinding {
2704
2919
  /** Key in the state */
2705
2920
  $state: string;
2706
2921
  }
2707
- /**
2708
- * Higher level element to represent a custom block.
2709
- */
2922
+ /** Higher level element to represent a custom block. */
2710
2923
  export interface ContentKitBlock {
2711
2924
  type: 'block';
2712
2925
  children: ContentKitDescendantElement[];
2713
2926
  controls?: (ContentKitBlockControl | ContentKitBlockControl[])[];
2714
2927
  }
2715
- /**
2716
- * Control menu item displayed for the block.
2717
- */
2928
+ /** Control menu item displayed for the block. */
2718
2929
  export interface ContentKitBlockControl {
2719
2930
  icon?: ContentKitIcon;
2720
2931
  label: string;
@@ -2723,9 +2934,7 @@ export interface ContentKitBlockControl {
2723
2934
  /** A confirm object that defines an optional confirmation dialog after the input is clicked. */
2724
2935
  confirm?: ContentKitConfirm;
2725
2936
  }
2726
- /**
2727
- * Pressable button triggering an action.
2728
- */
2937
+ /** Pressable button triggering an action. */
2729
2938
  export interface ContentKitButton {
2730
2939
  type: 'button';
2731
2940
  style?: 'primary' | 'secondary' | 'danger';
@@ -2739,9 +2948,7 @@ export interface ContentKitButton {
2739
2948
  confirm?: ContentKitConfirm;
2740
2949
  disabled?: boolean;
2741
2950
  }
2742
- /**
2743
- * Text input to prompt the user.
2744
- */
2951
+ /** Text input to prompt the user. */
2745
2952
  export interface ContentKitTextInput {
2746
2953
  type: 'textinput';
2747
2954
  /** State binding. The value of the input will be stored as a property in the state named after this ID. */
@@ -2751,10 +2958,10 @@ export interface ContentKitTextInput {
2751
2958
  /** Text that appears in the form control when it has no value set */
2752
2959
  placeholder?: string;
2753
2960
  multiline?: boolean;
2961
+ /** @default "text" */
2962
+ inputType?: 'text' | 'password';
2754
2963
  }
2755
- /**
2756
- * Low level text element.
2757
- */
2964
+ /** Low level text element. */
2758
2965
  export interface ContentKitText {
2759
2966
  type: 'text';
2760
2967
  style?: 'bold' | 'italic' | 'code' | 'strikethrough';
@@ -2766,49 +2973,36 @@ export interface ContentKitBox {
2766
2973
  grow?: number;
2767
2974
  children: ContentKitDescendantElement[];
2768
2975
  }
2769
- /**
2770
- * Element used to contextualize other elements or info.
2771
- */
2976
+ /** Element used to contextualize other elements or info. */
2772
2977
  export interface ContentKitHint {
2773
2978
  type: 'hint';
2774
2979
  children: ContentKitInlineElement[];
2775
2980
  }
2776
- /**
2777
- * Horizontal stack of boxes.
2778
- */
2981
+ /** Horizontal stack of boxes. */
2779
2982
  export interface ContentKitHStack {
2780
2983
  type: 'hstack';
2984
+ /** @default "start" */
2781
2985
  align?: 'start' | 'center' | 'end';
2782
2986
  children: ContentKitDescendantElement[];
2783
2987
  }
2784
- /**
2785
- * Vertical stack of boxes.
2786
- */
2988
+ /** Vertical stack of boxes. */
2787
2989
  export interface ContentKitVStack {
2788
2990
  type: 'vstack';
2991
+ /** @default "start" */
2789
2992
  align?: 'start' | 'center' | 'end';
2790
2993
  children: ContentKitDescendantElement[];
2791
2994
  }
2792
- /**
2793
- * Divider between 2 boxes in a stack.
2794
- */
2995
+ /** Divider between 2 boxes in a stack. */
2795
2996
  export interface ContentKitDivider {
2796
2997
  type: 'divider';
2797
2998
  size?: 'small' | 'medium' | 'large';
2798
2999
  }
2799
- /**
2800
- * Custom action to re-render the block.
2801
- */
3000
+ /** Custom action to re-render the block. */
2802
3001
  export declare type ContentKitAction = {
2803
3002
  action: string;
2804
3003
  [key: string]: any;
2805
- } | ContentKitDefaultAction | ({
2806
- action: string;
2807
- [key: string]: any;
2808
- } & ContentKitDefaultAction);
2809
- /**
2810
- * Action to open an overlay modal defined by "componentId".
2811
- */
3004
+ } | ContentKitDefaultAction;
3005
+ /** Action to open an overlay modal defined by "componentId". */
2812
3006
  export declare type ContentKitDefaultAction = {
2813
3007
  action: '@ui.modal.open';
2814
3008
  componentId: string;
@@ -2843,9 +3037,7 @@ export declare enum ContentKitIcon {
2843
3037
  Eye = "eye",
2844
3038
  Lock = "lock"
2845
3039
  }
2846
- /**
2847
- * Overlay modal.
2848
- */
3040
+ /** Overlay modal. */
2849
3041
  export interface ContentKitModal {
2850
3042
  type: 'modal';
2851
3043
  title?: string;
@@ -2857,9 +3049,7 @@ export interface ContentKitModal {
2857
3049
  /** Pressable button triggering an action. */
2858
3050
  submit?: ContentKitButton;
2859
3051
  }
2860
- /**
2861
- * Frame for a webpage
2862
- */
3052
+ /** Frame for a webpage */
2863
3053
  export interface ContentKitWebFrame {
2864
3054
  type: 'webframe';
2865
3055
  /** Ratio between width and height. Used to size the webframe. */
@@ -2873,9 +3063,7 @@ export interface ContentKitWebFrame {
2873
3063
  /** Data to communicated to the webframe's content. Each state update will cause the webframe to receive a message. */
2874
3064
  data?: Record<string, string | ContentKitDynamicBinding>;
2875
3065
  }
2876
- /**
2877
- * Code block with syntax highlighting
2878
- */
3066
+ /** Code block with syntax highlighting */
2879
3067
  export interface ContentKitCodeBlock {
2880
3068
  type: 'codeblock';
2881
3069
  /** Code content to display */
@@ -2895,18 +3083,14 @@ export interface ContentKitCodeBlock {
2895
3083
  /** Footer displayed after the code lines */
2896
3084
  footer?: ContentKitDescendantElement[];
2897
3085
  }
2898
- /**
2899
- * Output of the integration when rendering an UI.
2900
- */
3086
+ /** Output of the integration when rendering an UI. */
2901
3087
  export interface ContentKitRenderOutput {
2902
3088
  /** Element used as root */
2903
3089
  element: ContentKitRootElement;
2904
3090
  state: object;
2905
3091
  props: object;
2906
3092
  }
2907
- /**
2908
- * Block with rich text formatting of a markdown content.
2909
- */
3093
+ /** Block with rich text formatting of a markdown content. */
2910
3094
  export interface ContentKitMarkdown {
2911
3095
  type: 'markdown';
2912
3096
  /** Markdown content to display */
@@ -2926,6 +3110,7 @@ export interface ContentKitCard {
2926
3110
  export interface ContentKitImage {
2927
3111
  type: 'image';
2928
3112
  source: {
3113
+ /** @format uri */
2929
3114
  url: string;
2930
3115
  };
2931
3116
  aspectRatio: number;
@@ -2937,9 +3122,7 @@ export interface ContentKitLink {
2937
3122
  };
2938
3123
  children: string | string[];
2939
3124
  }
2940
- /**
2941
- * Field for an input.
2942
- */
3125
+ /** Field for an input. */
2943
3126
  export interface ContentKitInput {
2944
3127
  type: 'input';
2945
3128
  /** Text label displayed next to the input. */
@@ -2947,17 +3130,13 @@ export interface ContentKitInput {
2947
3130
  hint?: string | ContentKitInlineElement;
2948
3131
  element: ContentKitTextInput | ContentKitSelect | ContentKitSwitch | ContentKitRadio | ContentKitCheckbox | ContentKitButton | ContentKitCodeBlock;
2949
3132
  }
2950
- /**
2951
- * An individual option in a select element
2952
- */
3133
+ /** An individual option in a select element */
2953
3134
  export interface ContentKitSelectOption {
2954
3135
  id: string;
2955
3136
  label: string;
2956
3137
  icon?: ContentKitIcon | ContentKitImage;
2957
3138
  }
2958
- /**
2959
- * Creates a drop down menu with a list of options for a user to choose.
2960
- */
3139
+ /** Creates a drop down menu with a list of options for a user to choose. */
2961
3140
  export interface ContentKitSelect {
2962
3141
  type: 'select';
2963
3142
  /** State binding. The value of the input will be stored as a property in the state named after this ID. */
@@ -2974,12 +3153,11 @@ export interface ContentKitSelect {
2974
3153
  acceptInput?: boolean;
2975
3154
  /** Array of options to display in the select. */
2976
3155
  options: ContentKitSelectOption[] | {
3156
+ /** External source of options. The URL should respond with an array of options. */
2977
3157
  url: string | ContentKitURL;
2978
3158
  };
2979
3159
  }
2980
- /**
2981
- * Renders a boolean input.
2982
- */
3160
+ /** Renders a boolean input. */
2983
3161
  export interface ContentKitSwitch {
2984
3162
  type: 'switch';
2985
3163
  /** State binding. The value of the input will be stored as a property in the state named after this ID. */
@@ -3009,53 +3187,53 @@ export interface ContentKitRadio {
3009
3187
  /** A confirm object that defines an optional confirmation dialog after the input is clicked. */
3010
3188
  confirm?: ContentKitConfirm;
3011
3189
  }
3012
- /**
3013
- * A confirm object that defines an optional confirmation dialog after the input is clicked.
3014
- */
3190
+ /** A confirm object that defines an optional confirmation dialog after the input is clicked. */
3015
3191
  export interface ContentKitConfirm {
3016
- /** A text value that defines the dialog's title. */
3192
+ /**
3193
+ * A text value that defines the dialog's title.
3194
+ * @maxLength 100
3195
+ */
3017
3196
  title: string;
3018
- /** A text value that defines the explanatory text that appears in the confirm dialog. */
3197
+ /**
3198
+ * A text value that defines the explanatory text that appears in the confirm dialog.
3199
+ * @maxLength 300
3200
+ */
3019
3201
  text: string;
3020
- /** A text value to define the text of the button that confirms the action. */
3202
+ /**
3203
+ * A text value to define the text of the button that confirms the action.
3204
+ * @maxLength 30
3205
+ */
3021
3206
  confirm: string;
3022
3207
  style?: 'primary' | 'danger';
3023
3208
  }
3024
- /**
3025
- * Element used as root
3026
- */
3209
+ /** Element used as root */
3027
3210
  export declare type ContentKitRootElement = ContentKitBlock | ContentKitModal;
3028
- /**
3029
- * Any element that can be used as children.
3030
- */
3211
+ /** Any element that can be used as children. */
3031
3212
  export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink;
3032
- /**
3033
- * Any element that is inline.
3034
- */
3213
+ /** Any element that is inline. */
3035
3214
  export declare type ContentKitInlineElement = ContentKitText | ContentKitImage | ContentKitLink;
3036
- /**
3037
- * Specification for an URL in ContentKit.
3038
- */
3215
+ /** Specification for an URL in ContentKit. */
3039
3216
  export interface ContentKitURL {
3040
3217
  /**
3041
3218
  * Hostname of the URL along with the port number if required.
3042
- * @example api.example.com
3219
+ * @example "api.example.com"
3043
3220
  */
3044
3221
  host: string;
3045
3222
  /**
3046
3223
  * Path of the URL prefixed with a `/`.
3047
- * @example /v1/options
3224
+ * @example "/v1/options"
3048
3225
  */
3049
3226
  pathname: string;
3050
3227
  query?: Record<string, string | ContentKitDynamicBinding>;
3051
3228
  }
3052
- /**
3053
- * Channel to subscribe to for API updates.
3054
- */
3229
+ /** Channel to subscribe to for API updates. */
3055
3230
  export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | {
3056
3231
  channel: 'organization';
3057
3232
  organization: string;
3058
3233
  } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
3234
+ channel: 'organization-experimental-features';
3235
+ organization: string;
3236
+ } | {
3059
3237
  channel: 'space-comments';
3060
3238
  space: string;
3061
3239
  changeRequest?: string;
@@ -3162,31 +3340,23 @@ export interface OrganizationTeamMemberChannel {
3162
3340
  team?: string;
3163
3341
  member: string;
3164
3342
  }
3165
- /**
3166
- * Subscription channel for changes in spaces in an organization.
3167
- */
3343
+ /** Subscription channel for changes in spaces in an organization. */
3168
3344
  export interface OrganizationSpacesChannel {
3169
3345
  channel: 'organization-spaces';
3170
3346
  organization: string;
3171
3347
  }
3172
- /**
3173
- * Subscription channel for changes in collections in an organization.
3174
- */
3348
+ /** Subscription channel for changes in collections in an organization. */
3175
3349
  export interface OrganizationCollectionsChannel {
3176
3350
  channel: 'organization-collections';
3177
3351
  organization: string;
3178
3352
  }
3179
- /**
3180
- * Subscription channel for entities in an organization.
3181
- */
3353
+ /** Subscription channel for entities in an organization. */
3182
3354
  export interface OrganizationEntitiesChannel {
3183
3355
  channel: 'organization-entities';
3184
3356
  organization: string;
3185
3357
  entityType: string;
3186
3358
  }
3187
- /**
3188
- * Subscription channel for all entity schemas in an organization.
3189
- */
3359
+ /** Subscription channel for all entity schemas in an organization. */
3190
3360
  export interface OrganizationSchemasChannel {
3191
3361
  channel: 'organization-schemas';
3192
3362
  organization: string;
@@ -3227,9 +3397,7 @@ export interface IntegrationSpaceInstallationsChannel {
3227
3397
  integration: string;
3228
3398
  installation: string;
3229
3399
  }
3230
- /**
3231
- * Custom field
3232
- */
3400
+ /** Custom field */
3233
3401
  export interface CustomField {
3234
3402
  id: string;
3235
3403
  name: CustomFieldName;
@@ -3242,14 +3410,22 @@ export interface CustomField {
3242
3410
  updatedAt: Date;
3243
3411
  /** URLs associated with the object */
3244
3412
  urls: {
3413
+ /**
3414
+ * URL of the custom field in the API
3415
+ * @format uri
3416
+ */
3245
3417
  location: string;
3246
3418
  };
3247
3419
  }
3248
3420
  /**
3421
+ * @minLength 1
3422
+ * @maxLength 50
3249
3423
  * @pattern ^[a-z_\-0-9]+$
3250
3424
  */
3251
3425
  export declare type CustomFieldName = string;
3426
+ /** @maxLength 100 */
3252
3427
  export declare type CustomFieldTitle = string;
3428
+ /** @maxLength 200 */
3253
3429
  export declare type CustomFieldDescription = string;
3254
3430
  export declare enum CustomFieldType {
3255
3431
  Text = "text",
@@ -3261,6 +3437,7 @@ export declare enum CustomFieldType {
3261
3437
  }
3262
3438
  export declare type CustomFieldValue = string | number | boolean | string[];
3263
3439
  export declare type CustomFieldValues = {
3440
+ /** Custom field */
3264
3441
  customField: CustomField;
3265
3442
  value?: CustomFieldValue;
3266
3443
  }[];
@@ -3269,7 +3446,12 @@ export interface UpdateCustomFieldValues {
3269
3446
  value: CustomFieldValue;
3270
3447
  }>;
3271
3448
  }
3449
+ /**
3450
+ * @maxItems 50
3451
+ * @minItems 1
3452
+ */
3272
3453
  export declare type CustomFieldOptions = string[];
3454
+ /** @maxLength 100 */
3273
3455
  export declare type CustomFieldPlaceholder = string;
3274
3456
  export interface CustomizationSettings {
3275
3457
  /** Inherit customization settings from the parent collection. */
@@ -3282,12 +3464,15 @@ export interface CustomizationSettings {
3282
3464
  font: CustomizationFont;
3283
3465
  };
3284
3466
  internationalization: {
3467
+ /** Language for the UI element */
3285
3468
  locale: CustomizationLocale;
3469
+ /** Inherit locale from the parent collection. */
3286
3470
  inherit: boolean;
3287
3471
  };
3288
3472
  favicon: {
3289
3473
  icon: CustomizationThemedURL;
3290
3474
  } | {
3475
+ /** Unicode codepoint or character of the emoji */
3291
3476
  emoji: Emoji;
3292
3477
  } | object;
3293
3478
  header: {
@@ -3300,28 +3485,36 @@ export interface CustomizationSettings {
3300
3485
  footer: {
3301
3486
  logo?: CustomizationThemedURL;
3302
3487
  groups: CustomizationFooterGroup[];
3488
+ /** @maxLength 300 */
3303
3489
  copyright?: string;
3304
3490
  };
3305
3491
  themes: {
3306
3492
  default: CustomizationThemeMode;
3493
+ /** Should the reader be able to switch between dark and light mode */
3307
3494
  toggeable: boolean;
3308
3495
  };
3309
3496
  pdf: {
3497
+ /** If true, PDF export is enabled for the published content. */
3310
3498
  enabled: boolean;
3311
3499
  };
3312
3500
  feedback: {
3501
+ /** If true, feedback gathering is enabled */
3313
3502
  enabled: boolean;
3314
3503
  };
3315
3504
  aiSearch: {
3505
+ /** If true, AI search is enabled */
3316
3506
  enabled: boolean;
3317
3507
  };
3318
3508
  git: {
3509
+ /** Whether the public content should show a link to edit the content on the git provider set up in the GitSync */
3319
3510
  showEditLink: boolean;
3320
3511
  };
3321
3512
  pagination: {
3513
+ /** Whether the pagination navigation should be displayed on pages. */
3322
3514
  enabled: boolean;
3323
3515
  };
3324
3516
  trademark: {
3517
+ /** Whether the GitBook trademark ("Powered by GitBook") should be visible */
3325
3518
  enabled: boolean;
3326
3519
  };
3327
3520
  privacyPolicy: {
@@ -3333,12 +3526,11 @@ export interface CustomizationSettings {
3333
3526
  }
3334
3527
  export declare type CustomizationCollectionSettings = CustomizationSettings & {
3335
3528
  collection: {
3529
+ /** ID of the space used by default in the collection */
3336
3530
  defaultSpace?: string;
3337
3531
  };
3338
3532
  };
3339
- /**
3340
- * Language for the UI element
3341
- */
3533
+ /** Language for the UI element */
3342
3534
  export declare enum CustomizationLocale {
3343
3535
  En = "en",
3344
3536
  Fr = "fr",
@@ -3432,7 +3624,8 @@ declare type CancelToken = Symbol | string | number;
3432
3624
  export declare enum ContentType {
3433
3625
  Json = "application/json",
3434
3626
  FormData = "multipart/form-data",
3435
- UrlEncoded = "application/x-www-form-urlencoded"
3627
+ UrlEncoded = "application/x-www-form-urlencoded",
3628
+ Text = "text/plain"
3436
3629
  }
3437
3630
  export declare class HttpClient<SecurityDataType = unknown> {
3438
3631
  baseUrl: string;
@@ -3443,14 +3636,14 @@ export declare class HttpClient<SecurityDataType = unknown> {
3443
3636
  private baseApiParams;
3444
3637
  constructor(apiConfig?: ApiConfig<SecurityDataType>);
3445
3638
  setSecurityData: (data: SecurityDataType | null) => void;
3446
- private encodeQueryParam;
3447
- private addQueryParam;
3448
- private addArrayQueryParam;
3639
+ protected encodeQueryParam(key: string, value: any): string;
3640
+ protected addQueryParam(query: QueryParamsType, key: string): string;
3641
+ protected addArrayQueryParam(query: QueryParamsType, key: string): any;
3449
3642
  protected toQueryString(rawQuery?: QueryParamsType): string;
3450
3643
  protected addQueryParams(rawQuery?: QueryParamsType): string;
3451
3644
  private contentFormatters;
3452
- private mergeRequestParams;
3453
- private createAbortSignal;
3645
+ protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
3646
+ protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
3454
3647
  abortRequest: (cancelToken: CancelToken) => void;
3455
3648
  request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
3456
3649
  }
@@ -3486,7 +3679,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3486
3679
  */
3487
3680
  searchContent: (query: {
3488
3681
  query: string;
3682
+ /** Identifier of the page results to fetch. */
3489
3683
  page?: string;
3684
+ /** The number of results per page */
3490
3685
  limit?: number;
3491
3686
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3492
3687
  items: SearchSpaceResult[];
@@ -3503,6 +3698,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3503
3698
  askQueryWithGet: (query: {
3504
3699
  query: string;
3505
3700
  }, params?: RequestParams) => Promise<HttpResponse<{
3701
+ /** Answer from AI for a question asked on a content. */
3506
3702
  answer?: SearchAIAnswer;
3507
3703
  }, Error>>;
3508
3704
  /**
@@ -3514,6 +3710,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3514
3710
  * @secure
3515
3711
  */
3516
3712
  askQuery: (data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
3713
+ /** Answer from AI for a question asked on a content. */
3517
3714
  answer?: SearchAIAnswer;
3518
3715
  }, Error>>;
3519
3716
  /**
@@ -3525,6 +3722,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3525
3722
  * @secure
3526
3723
  */
3527
3724
  getRecommendedQuestions: (data: {
3725
+ /**
3726
+ * @maxItems 50
3727
+ * @minItems 1
3728
+ */
3528
3729
  documents: string[];
3529
3730
  }, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
3530
3731
  };
@@ -3573,6 +3774,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3573
3774
  * @secure
3574
3775
  */
3575
3776
  updateSpaceById: (spaceId: string, data: {
3777
+ /**
3778
+ * * `public`: Anyone can access the content, and the content is indexed by search engines.
3779
+ * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
3780
+ * * `share-link`: Anyone with a secret token in the url can access the content.
3781
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
3782
+ * * `in-collection`: Anyone who can access the parent collection can access the content.
3783
+ * Only available for spaces in a collection.
3784
+ * * `private`: Authorized members can access the content.
3785
+ */
3576
3786
  visibility?: ContentVisibility;
3577
3787
  }, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
3578
3788
  /**
@@ -3605,7 +3815,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3605
3815
  */
3606
3816
  searchSpaceContent: (spaceId: string, query: {
3607
3817
  query: string;
3818
+ /** Identifier of the page results to fetch. */
3608
3819
  page?: string;
3820
+ /** The number of results per page */
3609
3821
  limit?: number;
3610
3822
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3611
3823
  items: SearchPageResult[];
@@ -3622,6 +3834,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3622
3834
  askQueryInSpaceWithGet: (spaceId: string, query: {
3623
3835
  query: string;
3624
3836
  }, params?: RequestParams) => Promise<HttpResponse<{
3837
+ /** Answer from AI for a question asked on a content. */
3625
3838
  answer?: SearchAIAnswer;
3626
3839
  }, Error>>;
3627
3840
  /**
@@ -3633,6 +3846,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3633
3846
  * @secure
3634
3847
  */
3635
3848
  askQueryInSpace: (spaceId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
3849
+ /** Answer from AI for a question asked on a content. */
3636
3850
  answer?: SearchAIAnswer;
3637
3851
  }, Error>>;
3638
3852
  /**
@@ -3675,6 +3889,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3675
3889
  */
3676
3890
  getSpaceGitInfo: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<GitSyncState, Error | {
3677
3891
  error: {
3892
+ /** @format int32 */
3678
3893
  code: 404;
3679
3894
  message: string;
3680
3895
  };
@@ -3760,7 +3975,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3760
3975
  * @secure
3761
3976
  */
3762
3977
  listFiles: (spaceId: string, query?: {
3978
+ /** Identifier of the page results to fetch. */
3763
3979
  page?: string;
3980
+ /** The number of results per page */
3764
3981
  limit?: number;
3765
3982
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3766
3983
  items: RevisionFile[];
@@ -3783,6 +4000,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3783
4000
  * @secure
3784
4001
  */
3785
4002
  getPageById: (spaceId: string, pageId: string, query?: {
4003
+ /** Output format for the content. */
3786
4004
  format?: 'document' | 'markdown';
3787
4005
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
3788
4006
  /**
@@ -3803,6 +4021,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3803
4021
  * @secure
3804
4022
  */
3805
4023
  getPageByPath: (spaceId: string, pagePath: string, query?: {
4024
+ /** Output format for the content. */
3806
4025
  format?: 'document' | 'markdown';
3807
4026
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
3808
4027
  /**
@@ -3824,6 +4043,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3824
4043
  * @secure
3825
4044
  */
3826
4045
  createChangeRequest: (spaceId: string, data: RequestCreateChangeRequest, params?: RequestParams) => Promise<HttpResponse<ChangeRequest & {
4046
+ /** @deprecated */
3827
4047
  changeRequest: string;
3828
4048
  }, Error>>;
3829
4049
  /**
@@ -3836,8 +4056,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3836
4056
  * @secure
3837
4057
  */
3838
4058
  listChangeRequestsForSpace: (spaceId: string, query?: {
4059
+ /** Identifier of the page results to fetch. */
3839
4060
  page?: string;
4061
+ /** The number of results per page */
3840
4062
  limit?: number;
4063
+ /**
4064
+ * If defined, only change requests matching this status will be returned
4065
+ * @default "open"
4066
+ */
3841
4067
  status?: ChangeRequestStatus;
3842
4068
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3843
4069
  items: ChangeRequest[];
@@ -3853,6 +4079,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3853
4079
  */
3854
4080
  getChangeRequestById: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error | {
3855
4081
  error: {
4082
+ /** @format int32 */
3856
4083
  code: 404;
3857
4084
  message: string;
3858
4085
  };
@@ -3867,6 +4094,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3867
4094
  * @secure
3868
4095
  */
3869
4096
  mergeChangeRequest: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<{
4097
+ /** ID of the resulting revision */
3870
4098
  revision: string;
3871
4099
  result: 'merge' | 'conflicts';
3872
4100
  }, Error>>;
@@ -3880,6 +4108,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3880
4108
  * @secure
3881
4109
  */
3882
4110
  updateChangeRequest: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<{
4111
+ /** ID of the resulting revision */
3883
4112
  revision: string;
3884
4113
  result: 'update' | 'conflicts';
3885
4114
  }, Error>>;
@@ -3893,13 +4122,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3893
4122
  * @secure
3894
4123
  */
3895
4124
  getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
4125
+ /** Output format for the content. */
3896
4126
  format?: 'document' | 'markdown';
4127
+ /** Identifier of the page results to fetch. */
3897
4128
  page?: string;
4129
+ /** The number of results per page */
3898
4130
  limit?: number;
3899
4131
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3900
4132
  items: ChangeRequestReview[];
3901
4133
  }, Error | {
3902
4134
  error: {
4135
+ /** @format int32 */
3903
4136
  code: 404;
3904
4137
  message: string;
3905
4138
  };
@@ -3914,7 +4147,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3914
4147
  * @secure
3915
4148
  */
3916
4149
  submitChangeRequestReview: (spaceId: string, changeRequestId: string | number, data: {
4150
+ /** The status of the submitted review. */
3917
4151
  status: ChangeRequestReviewStatus;
4152
+ /** Optionally, provide a comment along with the review. */
3918
4153
  comment?: Document;
3919
4154
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequestReview, Error>>;
3920
4155
  /**
@@ -3927,7 +4162,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3927
4162
  * @secure
3928
4163
  */
3929
4164
  getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
4165
+ /** Identifier of the page results to fetch. */
3930
4166
  page?: string;
4167
+ /** The number of results per page */
3931
4168
  limit?: number;
3932
4169
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3933
4170
  items: ChangeRequestRequestedReviewer[];
@@ -3942,9 +4179,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3942
4179
  * @secure
3943
4180
  */
3944
4181
  requestReviewersForChangeRequest: (spaceId: string, changeRequestId: string | number, data: {
4182
+ /** An array of user ids that will be requested. */
3945
4183
  users: string[];
4184
+ /** Optionally, update the subject of the change request when requesting reviewers. */
3946
4185
  subject?: string;
3947
4186
  }, params?: RequestParams) => Promise<HttpResponse<{
4187
+ /** The user requests that were sent. */
3948
4188
  users?: ChangeRequestRequestedReviewer[];
3949
4189
  }, Error>>;
3950
4190
  /**
@@ -3957,10 +4197,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3957
4197
  * @secure
3958
4198
  */
3959
4199
  listCommentsInChangeRequest: (spaceId: string, changeRequestId: string | number, query?: {
4200
+ /** Identifier of the page results to fetch. */
3960
4201
  page?: string;
4202
+ /** The number of results per page */
3961
4203
  limit?: number;
4204
+ /** Output format for the content. */
3962
4205
  format?: 'document' | 'markdown';
3963
- status?: 'all';
4206
+ /**
4207
+ * When provided, only comments with the given status are returned. Defaults to "all".
4208
+ * @default "all"
4209
+ */
4210
+ status?: 'all' | 'open' | 'resolved';
3964
4211
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3965
4212
  items: Comment[];
3966
4213
  }, Error>>;
@@ -3984,6 +4231,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3984
4231
  * @secure
3985
4232
  */
3986
4233
  getCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
4234
+ /** Output format for the content. */
3987
4235
  format?: 'document' | 'markdown';
3988
4236
  }, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
3989
4237
  /**
@@ -4016,8 +4264,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4016
4264
  * @secure
4017
4265
  */
4018
4266
  listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
4267
+ /** Identifier of the page results to fetch. */
4019
4268
  page?: string;
4269
+ /** The number of results per page */
4020
4270
  limit?: number;
4271
+ /** Output format for the content. */
4021
4272
  format?: 'document' | 'markdown';
4022
4273
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4023
4274
  items: CommentReply[];
@@ -4032,6 +4283,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4032
4283
  * @secure
4033
4284
  */
4034
4285
  postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, data: PostCommentReplySchema, query?: {
4286
+ /** Output format for the content. */
4035
4287
  format?: 'document' | 'markdown';
4036
4288
  }, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
4037
4289
  /**
@@ -4044,6 +4296,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4044
4296
  * @secure
4045
4297
  */
4046
4298
  getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, query?: {
4299
+ /** Output format for the content. */
4047
4300
  format?: 'document' | 'markdown';
4048
4301
  }, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
4049
4302
  /**
@@ -4079,6 +4332,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4079
4332
  items: UserContributor[];
4080
4333
  }, Error | {
4081
4334
  error: {
4335
+ /** @format int32 */
4082
4336
  code: 404;
4083
4337
  message: string;
4084
4338
  };
@@ -4121,7 +4375,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4121
4375
  * @secure
4122
4376
  */
4123
4377
  listFilesInChangeRequestById: (spaceId: string, changeRequestId: string | number, query?: {
4378
+ /** Identifier of the page results to fetch. */
4124
4379
  page?: string;
4380
+ /** The number of results per page */
4125
4381
  limit?: number;
4126
4382
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4127
4383
  items: RevisionFile[];
@@ -4144,6 +4400,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4144
4400
  * @secure
4145
4401
  */
4146
4402
  getPageInChangeRequestById: (spaceId: string, changeRequestId: string | number, pageId: string, query?: {
4403
+ /** Output format for the content. */
4147
4404
  format?: 'document' | 'markdown';
4148
4405
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
4149
4406
  /**
@@ -4164,6 +4421,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4164
4421
  * @secure
4165
4422
  */
4166
4423
  getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string | number, pagePath: string, query?: {
4424
+ /** Output format for the content. */
4167
4425
  format?: 'document' | 'markdown';
4168
4426
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
4169
4427
  /**
@@ -4184,10 +4442,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4184
4442
  * @secure
4185
4443
  */
4186
4444
  getRevisionSemanticChanges: (spaceId: string, revisionId: string, query?: {
4445
+ /**
4446
+ * Limit the number of changes returned
4447
+ * @default 10
4448
+ */
4187
4449
  limit?: number;
4450
+ /**
4451
+ * Whether to include changes to metadata, such as git information and custom fields
4452
+ * @default true
4453
+ */
4188
4454
  metadata?: boolean;
4189
4455
  }, params?: RequestParams) => Promise<HttpResponse<{
4190
4456
  changes: RevisionSemanticChange[];
4457
+ /** How many changes were omitted because above the result limit */
4191
4458
  more?: number;
4192
4459
  }, Error>>;
4193
4460
  /**
@@ -4210,7 +4477,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4210
4477
  * @secure
4211
4478
  */
4212
4479
  listFilesInRevisionById: (spaceId: string, revisionId: string, query?: {
4480
+ /** Identifier of the page results to fetch. */
4213
4481
  page?: string;
4482
+ /** The number of results per page */
4214
4483
  limit?: number;
4215
4484
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4216
4485
  items: RevisionFile[];
@@ -4233,6 +4502,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4233
4502
  * @secure
4234
4503
  */
4235
4504
  getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
4505
+ /** Output format for the content. */
4236
4506
  format?: 'document' | 'markdown';
4237
4507
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
4238
4508
  /**
@@ -4244,6 +4514,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4244
4514
  * @secure
4245
4515
  */
4246
4516
  getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
4517
+ /** Output format for the content. */
4247
4518
  format?: 'document' | 'markdown';
4248
4519
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
4249
4520
  /**
@@ -4256,9 +4527,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4256
4527
  * @secure
4257
4528
  */
4258
4529
  listCommentsInSpace: (spaceId: string, query?: {
4530
+ /** Identifier of the page results to fetch. */
4259
4531
  page?: string;
4532
+ /** The number of results per page */
4260
4533
  limit?: number;
4261
- status?: 'all';
4534
+ /**
4535
+ * When provided, only comments with the given status are returned. Defaults to "all".
4536
+ * @default "all"
4537
+ */
4538
+ status?: 'all' | 'open' | 'resolved';
4539
+ /** Output format for the content. */
4262
4540
  format?: 'document' | 'markdown';
4263
4541
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4264
4542
  items: Comment[];
@@ -4283,6 +4561,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4283
4561
  * @secure
4284
4562
  */
4285
4563
  getCommentInSpace: (spaceId: string, commentId: string, query?: {
4564
+ /** Output format for the content. */
4286
4565
  format?: 'document' | 'markdown';
4287
4566
  }, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
4288
4567
  /**
@@ -4315,8 +4594,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4315
4594
  * @secure
4316
4595
  */
4317
4596
  listCommentRepliesInSpace: (spaceId: string, commentId: string, query?: {
4597
+ /** Identifier of the page results to fetch. */
4318
4598
  page?: string;
4599
+ /** The number of results per page */
4319
4600
  limit?: number;
4601
+ /** Output format for the content. */
4320
4602
  format?: 'document' | 'markdown';
4321
4603
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4322
4604
  items: CommentReply[];
@@ -4341,6 +4623,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4341
4623
  * @secure
4342
4624
  */
4343
4625
  getCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, query?: {
4626
+ /** Output format for the content. */
4344
4627
  format?: 'document' | 'markdown';
4345
4628
  }, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
4346
4629
  /**
@@ -4373,8 +4656,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4373
4656
  * @secure
4374
4657
  */
4375
4658
  listPermissionsAggregateInSpace: (spaceId: string, query?: {
4659
+ /** Identifier of the page results to fetch. */
4376
4660
  page?: string;
4661
+ /** The number of results per page */
4377
4662
  limit?: number;
4663
+ /** If defined, only members with this role will be returned. */
4378
4664
  role?: MemberRole;
4379
4665
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4380
4666
  items: UserContentPermission[];
@@ -4390,6 +4676,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4390
4676
  */
4391
4677
  getSpacePublishingCustomizationById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
4392
4678
  error: {
4679
+ /** @format int32 */
4393
4680
  code: 400;
4394
4681
  message: string;
4395
4682
  };
@@ -4405,6 +4692,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4405
4692
  */
4406
4693
  updateSpacePublishingCustomizationById: (spaceId: string, data: CustomizationSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
4407
4694
  error: {
4695
+ /** @format int32 */
4408
4696
  code: 400;
4409
4697
  message: string;
4410
4698
  };
@@ -4420,6 +4708,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4420
4708
  */
4421
4709
  getSpacePublishingAuthById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
4422
4710
  error: {
4711
+ /** @format int32 */
4423
4712
  code: 400;
4424
4713
  message: string;
4425
4714
  };
@@ -4435,6 +4724,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4435
4724
  */
4436
4725
  updateSpacePublishingAuthById: (spaceId: string, data: RequestUpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
4437
4726
  error: {
4727
+ /** @format int32 */
4438
4728
  code: 400;
4439
4729
  message: string;
4440
4730
  };
@@ -4450,6 +4740,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4450
4740
  */
4451
4741
  listSpaceIntegrationsBlocks: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceIntegrationBlocks, Error | {
4452
4742
  error: {
4743
+ /** @format int32 */
4453
4744
  code: 404;
4454
4745
  message: string;
4455
4746
  };
@@ -4496,6 +4787,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4496
4787
  * @secure
4497
4788
  */
4498
4789
  updateCollectionById: (collectionId: string, data: {
4790
+ /**
4791
+ * * `public`: Anyone can access the content, and the content is indexed by search engines.
4792
+ * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
4793
+ * * `share-link`: Anyone with a secret token in the url can access the content.
4794
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
4795
+ * * `in-collection`: Anyone who can access the parent collection can access the content.
4796
+ * Only available for spaces in a collection.
4797
+ * * `private`: Authorized members can access the content.
4798
+ */
4499
4799
  visibility?: ContentVisibility;
4500
4800
  }, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
4501
4801
  /**
@@ -4508,7 +4808,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4508
4808
  * @secure
4509
4809
  */
4510
4810
  listSpacesInCollectionById: (collectionId: string, query?: {
4811
+ /** Identifier of the page results to fetch. */
4511
4812
  page?: string;
4813
+ /** The number of results per page */
4512
4814
  limit?: number;
4513
4815
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4514
4816
  items: Space[];
@@ -4523,8 +4825,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4523
4825
  * @secure
4524
4826
  */
4525
4827
  listPermissionsAggregateInCollection: (collectionId: string, query?: {
4828
+ /** Identifier of the page results to fetch. */
4526
4829
  page?: string;
4830
+ /** The number of results per page */
4527
4831
  limit?: number;
4832
+ /** If defined, only members with this role will be returned. */
4528
4833
  role?: MemberRole;
4529
4834
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4530
4835
  items: UserContentPermission[];
@@ -4540,6 +4845,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4540
4845
  */
4541
4846
  getCollectionPublishingAuthById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
4542
4847
  error: {
4848
+ /** @format int32 */
4543
4849
  code: 400;
4544
4850
  message: string;
4545
4851
  };
@@ -4555,6 +4861,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4555
4861
  */
4556
4862
  updateCollectionPublishingAuthById: (collectionId: string, data: RequestUpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
4557
4863
  error: {
4864
+ /** @format int32 */
4558
4865
  code: 400;
4559
4866
  message: string;
4560
4867
  };
@@ -4570,6 +4877,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4570
4877
  */
4571
4878
  getCollectionPublishingCustomizationById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
4572
4879
  error: {
4880
+ /** @format int32 */
4573
4881
  code: 400;
4574
4882
  message: string;
4575
4883
  };
@@ -4585,6 +4893,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4585
4893
  */
4586
4894
  updateCollectionPublishingCustomizationById: (collectionId: string, data: CustomizationCollectionSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
4587
4895
  error: {
4896
+ /** @format int32 */
4588
4897
  code: 400;
4589
4898
  message: string;
4590
4899
  };
@@ -4601,9 +4910,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4601
4910
  * @secure
4602
4911
  */
4603
4912
  listIntegrations: (query?: {
4913
+ /** Identifier of the page results to fetch. */
4604
4914
  page?: string;
4915
+ /** The number of results per page */
4605
4916
  limit?: number;
4917
+ /** Filter the integrations by category */
4606
4918
  category?: IntegrationCategory;
4919
+ /**
4920
+ * Filter the integrations by block's domains
4921
+ * @maxLength 100
4922
+ * @pattern ^[a-zA-Z0-9-_.]+$
4923
+ */
4607
4924
  blockDomain?: string;
4608
4925
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4609
4926
  items: Integration[];
@@ -4619,6 +4936,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4619
4936
  */
4620
4937
  getIntegrationByName: (integrationName: string, params?: RequestParams) => Promise<HttpResponse<Integration, Error | {
4621
4938
  error: {
4939
+ /** @format int32 */
4622
4940
  code: 404;
4623
4941
  message: string;
4624
4942
  };
@@ -4634,6 +4952,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4634
4952
  */
4635
4953
  publishIntegration: (integrationName: string, data: RequestPublishIntegration, params?: RequestParams) => Promise<HttpResponse<Integration, Error | {
4636
4954
  error: {
4955
+ /** @format int32 */
4637
4956
  code: 404;
4638
4957
  message: string;
4639
4958
  };
@@ -4658,8 +4977,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4658
4977
  * @secure
4659
4978
  */
4660
4979
  listIntegrationInstallations: (integrationName: string, query?: {
4980
+ /** Identifier of the page results to fetch. */
4661
4981
  page?: string;
4982
+ /** The number of results per page */
4662
4983
  limit?: number;
4984
+ /** External Id to filter by */
4663
4985
  externalId?: string;
4664
4986
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4665
4987
  items: IntegrationInstallation[];
@@ -4675,6 +4997,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4675
4997
  */
4676
4998
  installIntegration: (integrationName: string, data: OrganizationTarget, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error | {
4677
4999
  error: {
5000
+ /** @format int32 */
4678
5001
  code: 404;
4679
5002
  message: string;
4680
5003
  };
@@ -4689,7 +5012,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4689
5012
  * @secure
4690
5013
  */
4691
5014
  listIntegrationEvents: (integrationName: string, query?: {
5015
+ /** Identifier of the page results to fetch. */
4692
5016
  page?: string;
5017
+ /** The number of results per page */
4693
5018
  limit?: number;
4694
5019
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4695
5020
  items: IntegrationEvent[];
@@ -4708,6 +5033,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4708
5033
  trace?: IntegrationEventTrace;
4709
5034
  }, Error | {
4710
5035
  error: {
5036
+ /** @format int32 */
4711
5037
  code: 404;
4712
5038
  message: string;
4713
5039
  };
@@ -4722,8 +5048,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4722
5048
  * @secure
4723
5049
  */
4724
5050
  listIntegrationSpaceInstallations: (integrationName: string, query?: {
5051
+ /** Identifier of the page results to fetch. */
4725
5052
  page?: string;
5053
+ /** The number of results per page */
4726
5054
  limit?: number;
5055
+ /** External Id to filter by */
4727
5056
  externalId?: string;
4728
5057
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4729
5058
  items: IntegrationSpaceInstallation[];
@@ -4738,9 +5067,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4738
5067
  * @secure
4739
5068
  */
4740
5069
  updateIntegrationDevSpace: (integrationName: string, spaceId: string, data: {
5070
+ /**
5071
+ * URL of the tunnel to dispatch integration events to
5072
+ * @minLength 1
5073
+ * @maxLength 256
5074
+ */
4741
5075
  tunnelUrl: string;
4742
5076
  }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
4743
5077
  error: {
5078
+ /** @format int32 */
4744
5079
  code: 404;
4745
5080
  message: string;
4746
5081
  };
@@ -4756,6 +5091,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4756
5091
  */
4757
5092
  removeIntegrationDevSpace: (integrationName: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
4758
5093
  error: {
5094
+ /** @format int32 */
4759
5095
  code: 404;
4760
5096
  message: string;
4761
5097
  };
@@ -4769,6 +5105,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4769
5105
  * @secure
4770
5106
  */
4771
5107
  renderIntegrationUiWithGet: (integrationName: string, query: {
5108
+ /** LZ-string compressed JSON request */
4772
5109
  request: string;
4773
5110
  }, params?: RequestParams) => Promise<HttpResponse<ContentKitRenderOutput, Error>>;
4774
5111
  /**
@@ -4790,10 +5127,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4790
5127
  * @secure
4791
5128
  */
4792
5129
  queueIntegrationTask: (integrationName: string, data: {
5130
+ /** Payload for the integration task */
4793
5131
  task: object;
5132
+ /**
5133
+ * Number of seconds to wait before executing the task, defaults to 0
5134
+ * @min 0
5135
+ * @max 86400
5136
+ */
4794
5137
  schedule?: number;
4795
5138
  }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
4796
5139
  error: {
5140
+ /** @format int32 */
4797
5141
  code: 404;
4798
5142
  message: string;
4799
5143
  };
@@ -4809,6 +5153,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4809
5153
  */
4810
5154
  getIntegrationInstallationById: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error | {
4811
5155
  error: {
5156
+ /** @format int32 */
4812
5157
  code: 404;
4813
5158
  message: string;
4814
5159
  };
@@ -4834,6 +5179,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4834
5179
  */
4835
5180
  uninstallIntegration: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
4836
5181
  error: {
5182
+ /** @format int32 */
4837
5183
  code: 404;
4838
5184
  message: string;
4839
5185
  };
@@ -4849,6 +5195,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4849
5195
  */
4850
5196
  createIntegrationInstallationToken: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<APITemporaryToken, Error | {
4851
5197
  error: {
5198
+ /** @format int32 */
4852
5199
  code: 404;
4853
5200
  message: string;
4854
5201
  };
@@ -4863,7 +5210,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4863
5210
  * @secure
4864
5211
  */
4865
5212
  listIntegrationInstallationSpaces: (integrationName: string, installationId: string, query?: {
5213
+ /** Identifier of the page results to fetch. */
4866
5214
  page?: string;
5215
+ /** The number of results per page */
4867
5216
  limit?: number;
4868
5217
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4869
5218
  items: IntegrationSpaceInstallation[];
@@ -4877,9 +5226,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4877
5226
  * @secure
4878
5227
  */
4879
5228
  installIntegrationOnSpace: (integrationName: string, installationId: string, data: {
5229
+ /** ID of the space to install the integration on */
4880
5230
  space: string;
4881
5231
  }, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
4882
5232
  error: {
5233
+ /** @format int32 */
4883
5234
  code: 404;
4884
5235
  message: string;
4885
5236
  };
@@ -4895,6 +5246,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4895
5246
  */
4896
5247
  getIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
4897
5248
  error: {
5249
+ /** @format int32 */
4898
5250
  code: 404;
4899
5251
  message: string;
4900
5252
  };
@@ -4929,7 +5281,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4929
5281
  * @secure
4930
5282
  */
4931
5283
  listOrganizationsForAuthenticatedUser: (query?: {
5284
+ /** Identifier of the page results to fetch. */
4932
5285
  page?: string;
5286
+ /** The number of results per page */
4933
5287
  limit?: number;
4934
5288
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4935
5289
  items: Organization[];
@@ -4955,6 +5309,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4955
5309
  */
4956
5310
  getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
4957
5311
  error: {
5312
+ /** @format int32 */
4958
5313
  code: 404;
4959
5314
  message: string;
4960
5315
  };
@@ -4970,6 +5325,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4970
5325
  */
4971
5326
  deleteOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
4972
5327
  error: {
5328
+ /** @format int32 */
4973
5329
  code: 404;
4974
5330
  message: string;
4975
5331
  };
@@ -4984,9 +5340,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4984
5340
  * @secure
4985
5341
  */
4986
5342
  listMembersInOrganizationById: (organizationId: string, query?: {
5343
+ /** Identifier of the page results to fetch. */
4987
5344
  page?: string;
5345
+ /** The number of results per page */
4988
5346
  limit?: number;
5347
+ /** The Role to filter the member list by */
4989
5348
  role?: MemberRole | 'guest';
5349
+ /** A query to filter the member list (displayName and email) */
4990
5350
  search?: string;
4991
5351
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4992
5352
  items: OrganizationMember[];
@@ -5011,6 +5371,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5011
5371
  * @secure
5012
5372
  */
5013
5373
  updateMemberInOrganizationById: (organizationId: string, userId: string, data: {
5374
+ /** The role of a member in an organization, null for guests */
5014
5375
  role?: MemberRoleOrGuest;
5015
5376
  }, params?: RequestParams) => Promise<HttpResponse<OrganizationMember, Error>>;
5016
5377
  /**
@@ -5053,7 +5414,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5053
5414
  * @secure
5054
5415
  */
5055
5416
  listSpacesForOrganizationMember: (organizationId: string, userId: string, query?: {
5417
+ /** Identifier of the page results to fetch. */
5056
5418
  page?: string;
5419
+ /** The number of results per page */
5057
5420
  limit?: number;
5058
5421
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5059
5422
  items: MemberContentPermission[];
@@ -5068,8 +5431,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5068
5431
  * @secure
5069
5432
  */
5070
5433
  listTeamsForOrganizationMember: (organizationId: string, userId: string, query?: {
5434
+ /** Identifier of the page results to fetch. */
5071
5435
  page?: string;
5436
+ /** The number of results per page */
5072
5437
  limit?: number;
5438
+ /** If provided, only teams whose name contains the given parameter will be returned. Case insensitive. */
5073
5439
  title?: string;
5074
5440
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5075
5441
  items: {
@@ -5087,9 +5453,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5087
5453
  * @secure
5088
5454
  */
5089
5455
  listTeamsInOrganizationById: (organizationId: string, query?: {
5456
+ /** Identifier of the page results to fetch. */
5090
5457
  page?: string;
5458
+ /** The number of results per page */
5091
5459
  limit?: number;
5460
+ /** The unique identifier of a member of the organization. Only teams they can manage will be returned. */
5092
5461
  owner?: string;
5462
+ /** If provided, only teams whose name contains the given parameter will be returned. Case insensitive. */
5093
5463
  title?: string;
5094
5464
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5095
5465
  items: OrganizationTeam[];
@@ -5104,6 +5474,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5104
5474
  * @secure
5105
5475
  */
5106
5476
  createOrganizationTeam: (organizationId: string, data: {
5477
+ /** Title of the team */
5107
5478
  title: OrganizationTeamTitle;
5108
5479
  members?: string[];
5109
5480
  }, params?: RequestParams) => Promise<HttpResponse<OrganizationTeam, Error>>;
@@ -5127,6 +5498,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5127
5498
  * @secure
5128
5499
  */
5129
5500
  updateTeamInOrganizationById: (organizationId: string, teamId: string, data: {
5501
+ /** Title of the team */
5130
5502
  title: OrganizationTeamTitle;
5131
5503
  }, params?: RequestParams) => Promise<HttpResponse<OrganizationTeam, Error>>;
5132
5504
  /**
@@ -5163,7 +5535,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5163
5535
  * @secure
5164
5536
  */
5165
5537
  listTeamMembersInOrganizationById: (organizationId: string, teamId: string, query?: {
5538
+ /** Identifier of the page results to fetch. */
5166
5539
  page?: string;
5540
+ /** The number of results per page */
5167
5541
  limit?: number;
5168
5542
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5169
5543
  items: OrganizationTeamMember[];
@@ -5178,6 +5552,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5178
5552
  * @secure
5179
5553
  */
5180
5554
  addMemberToOrganizationTeamById: (organizationId: string, teamId: string, userId: string, data: {
5555
+ /**
5556
+ * "The role of a team member.
5557
+ * "owner": Can manage team members.
5558
+ * "member": Is a member of the team.
5559
+ */
5181
5560
  role?: TeamMemberRole;
5182
5561
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
5183
5562
  /**
@@ -5201,10 +5580,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5201
5580
  */
5202
5581
  inviteUsersToOrganization: (organizationId: string, data: RequestInviteUsersToOrganization, params?: RequestParams) => Promise<HttpResponse<{
5203
5582
  users: string[];
5583
+ /** The number of users who were added to the organization */
5204
5584
  invited: number;
5205
5585
  failedSSOEmails?: string[];
5206
5586
  }, Error | {
5207
5587
  error: {
5588
+ /** @format int32 */
5208
5589
  code: 400;
5209
5590
  message: string;
5210
5591
  };
@@ -5259,10 +5640,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5259
5640
  * @secure
5260
5641
  */
5261
5642
  transferOrganization: (organizationId: string, data: {
5643
+ /** The unique id of the organization to transfer into the current one. */
5262
5644
  source: string;
5645
+ /** Determine the default role members of the source org will have when they are transferred into the target org. Defaults to null, which means no access. */
5263
5646
  defaultOrgRole?: MemberRoleOrGuest | 'saml';
5264
5647
  }, params?: RequestParams) => Promise<HttpResponse<{
5648
+ /** The unique id of the collection created in the target organization containing the content of the source organization. */
5265
5649
  collection: string;
5650
+ /** The new hostname if the source organization needed to change hostname. */
5266
5651
  newSourceHostname?: string;
5267
5652
  }, Error>>;
5268
5653
  /**
@@ -5276,7 +5661,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5276
5661
  */
5277
5662
  searchOrganizationContent: (organizationId: string, query: {
5278
5663
  query: string;
5664
+ /** Identifier of the page results to fetch. */
5279
5665
  page?: string;
5666
+ /** The number of results per page */
5280
5667
  limit?: number;
5281
5668
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5282
5669
  items: SearchSpaceResult[];
@@ -5291,8 +5678,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5291
5678
  * @secure
5292
5679
  */
5293
5680
  listSpacesInOrganizationById: (organizationId: string, query?: {
5681
+ /** Identifier of the page results to fetch. */
5294
5682
  page?: string;
5683
+ /** The number of results per page */
5295
5684
  limit?: number;
5685
+ /** If defined, only content with this visibility will be returned. */
5296
5686
  visibility?: ContentVisibility;
5297
5687
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5298
5688
  items: Space[];
@@ -5317,8 +5707,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5317
5707
  * @secure
5318
5708
  */
5319
5709
  listSpacesWithGitSyncInOrganizationById: (organizationId: string, query?: {
5710
+ /** Identifier of the page results to fetch. */
5320
5711
  page?: string;
5712
+ /** The number of results per page */
5321
5713
  limit?: number;
5714
+ /** If defined, only spaces with matching Git sync status are returned */
5322
5715
  status?: GitSyncOperationState;
5323
5716
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5324
5717
  items: {
@@ -5336,8 +5729,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5336
5729
  * @secure
5337
5730
  */
5338
5731
  listCollectionsInOrganizationById: (organizationId: string, query?: {
5732
+ /** Identifier of the page results to fetch. */
5339
5733
  page?: string;
5734
+ /** The number of results per page */
5340
5735
  limit?: number;
5736
+ /**
5737
+ * If true, all nested collections will be listed
5738
+ * @default true
5739
+ */
5341
5740
  nested?: boolean;
5342
5741
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5343
5742
  items: Collection[];
@@ -5352,7 +5751,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5352
5751
  * @secure
5353
5752
  */
5354
5753
  createCollection: (organizationId: string, data: {
5754
+ /** @maxLength 50 */
5355
5755
  title?: string;
5756
+ /** ID of a parent collection */
5356
5757
  parent?: string;
5357
5758
  }, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
5358
5759
  /**
@@ -5365,6 +5766,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5365
5766
  * @secure
5366
5767
  */
5367
5768
  setupDirectorySync: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
5769
+ /** The URL to navigate to to continue Directory Sync setup. */
5368
5770
  setupUrl: string;
5369
5771
  }, Error>>;
5370
5772
  /**
@@ -5389,11 +5791,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5389
5791
  * @secure
5390
5792
  */
5391
5793
  syncDirectorySyncGroupsToTeams: (organizationId: string, data: {
5794
+ /**
5795
+ * A list of groups to teams pairs to sync.
5796
+ * The group_id is required and the team_id is optional.
5797
+ * If the latter is omitted, a new team will be created from the group's data.
5798
+ */
5392
5799
  to_sync: {
5800
+ /** The unique identifier of the group for the given identity provider. */
5393
5801
  group_id: string;
5802
+ /** The unique identifier of the team for the given identity provider. */
5394
5803
  team_id?: string;
5395
5804
  }[];
5396
5805
  }, params?: RequestParams) => Promise<HttpResponse<{
5806
+ /**
5807
+ * The list of synced pairs, mapped to the original pairs given to the sync parameters.
5808
+ * Either the group_id and team_id will be defined, or the error will be defined to describe why it failed.
5809
+ * Use the success parameter to know if the pair sync was sucessful or not.
5810
+ */
5397
5811
  synced: OrganizationDirectorySyncGroupTeamStatus[];
5398
5812
  }, Error>>;
5399
5813
  /**
@@ -5406,7 +5820,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5406
5820
  * @secure
5407
5821
  */
5408
5822
  listOrganizationCustomFields: (organizationId: string, query?: {
5823
+ /** Identifier of the page results to fetch. */
5409
5824
  page?: string;
5825
+ /** The number of results per page */
5410
5826
  limit?: number;
5411
5827
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5412
5828
  items: CustomField[];
@@ -5439,6 +5855,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5439
5855
  */
5440
5856
  getOrganizationCustomFieldByName: (organizationId: string, fieldName: string, params?: RequestParams) => Promise<HttpResponse<CustomField, Error | {
5441
5857
  error: {
5858
+ /** @format int32 */
5442
5859
  code: 404;
5443
5860
  message: string;
5444
5861
  };
@@ -5478,7 +5895,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5478
5895
  * @secure
5479
5896
  */
5480
5897
  listOrganizationIntegrations: (organizationId: string, query?: {
5898
+ /** Identifier of the page results to fetch. */
5481
5899
  page?: string;
5900
+ /** The number of results per page */
5482
5901
  limit?: number;
5483
5902
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5484
5903
  items: Integration[];
@@ -5496,6 +5915,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5496
5915
  status: IntegrationInstallationStatus;
5497
5916
  }, Error | {
5498
5917
  error: {
5918
+ /** @format int32 */
5499
5919
  code: 404;
5500
5920
  message: string;
5501
5921
  };
@@ -5510,14 +5930,37 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5510
5930
  * @secure
5511
5931
  */
5512
5932
  listOrganizationInstallations: (organizationId: string, query?: {
5933
+ /** Identifier of the page results to fetch. */
5513
5934
  page?: string;
5935
+ /** The number of results per page */
5514
5936
  limit?: number;
5515
5937
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5516
5938
  items: {
5939
+ /** Installation of an integration on an account */
5517
5940
  installation: IntegrationInstallation;
5518
5941
  integration: Integration;
5519
5942
  }[];
5520
5943
  }, Error>>;
5944
+ /**
5945
+ * No description
5946
+ *
5947
+ * @tags organizations
5948
+ * @name ListOrgExperimentalFeatures
5949
+ * @summary List experiemental features for the given organization.
5950
+ * @request GET:/orgs/{organizationId}/experiments
5951
+ * @secure
5952
+ */
5953
+ listOrgExperimentalFeatures: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationExperimentalFeature[], Error>>;
5954
+ /**
5955
+ * No description
5956
+ *
5957
+ * @tags organizations
5958
+ * @name UpdateOrgExperimentalFeatures
5959
+ * @summary Toggle on or off experimental features.
5960
+ * @request POST:/orgs/{organizationId}/experiments
5961
+ * @secure
5962
+ */
5963
+ updateOrgExperimentalFeatures: (organizationId: string, data: Record<string, boolean>, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
5521
5964
  /**
5522
5965
  * No description
5523
5966
  *
@@ -5528,7 +5971,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5528
5971
  * @secure
5529
5972
  */
5530
5973
  listEntitySchemas: (organizationId: string, query?: {
5974
+ /** Identifier of the page results to fetch. */
5531
5975
  page?: string;
5976
+ /** The number of results per page */
5532
5977
  limit?: number;
5533
5978
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5534
5979
  items: EntitySchema[];
@@ -5573,8 +6018,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5573
6018
  * @secure
5574
6019
  */
5575
6020
  listSchemaEntities: (organizationId: string, entityType: EntityType, query?: {
6021
+ /** Identifier of the page results to fetch. */
5576
6022
  page?: string;
6023
+ /** The number of results per page */
5577
6024
  limit?: number;
6025
+ /** Query to filter entities with, ex: a == 'something' && b >= 10 */
5578
6026
  query?: string;
5579
6027
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5580
6028
  items: Entity[];
@@ -5589,7 +6037,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5589
6037
  * @secure
5590
6038
  */
5591
6039
  upsertSchemaEntities: (organizationId: string, entityType: EntityType, data: {
6040
+ /** If true, all entities not listed in the requests will be deleted */
5592
6041
  delete?: boolean | EntityId[];
6042
+ /** Array of entities to create/update. */
5593
6043
  entities?: UpsertEntity[];
5594
6044
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
5595
6045
  /**
@@ -5613,9 +6063,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5613
6063
  * @secure
5614
6064
  */
5615
6065
  listCaptures: (organizationId: string, query?: {
6066
+ /** Output format for the content. */
5616
6067
  format?: 'document' | 'markdown';
6068
+ /** Identifier of the page results to fetch. */
5617
6069
  page?: string;
6070
+ /** The number of results per page */
5618
6071
  limit?: number;
6072
+ /** The context in which the item was captured */
5619
6073
  context?: 'walkthrough' | 'thread';
5620
6074
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5621
6075
  items: Capture[];
@@ -5630,9 +6084,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5630
6084
  * @secure
5631
6085
  */
5632
6086
  startCapture: (organizationId: string, data: {
6087
+ /** Optional title describing the capture */
5633
6088
  title?: CaptureTitle;
5634
6089
  context: CaptureContext;
6090
+ /** ID in the original source of the capture. */
5635
6091
  externalId?: string;
6092
+ /**
6093
+ * URL of the original source of the capture.
6094
+ * @format uri
6095
+ */
5636
6096
  externalURL?: string;
5637
6097
  }, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
5638
6098
  /**
@@ -5646,6 +6106,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5646
6106
  * @secure
5647
6107
  */
5648
6108
  getCapture: (organizationId: string, captureId: string, query?: {
6109
+ /** Output format for the content. */
5649
6110
  format?: 'document' | 'markdown';
5650
6111
  }, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
5651
6112
  /**
@@ -5692,9 +6153,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5692
6153
  * @secure
5693
6154
  */
5694
6155
  stopCapture: (organizationId: string, captureId: string, data: object, query?: {
6156
+ /** Output format for the content. */
5695
6157
  format?: 'document' | 'markdown';
5696
6158
  }, params?: RequestParams) => Promise<HttpResponse<{
5697
6159
  capture: Capture;
6160
+ /** Example questions that would be answered by the content of this capture. */
5698
6161
  followupQuestions?: string[];
5699
6162
  }, Error>>;
5700
6163
  /**
@@ -5707,9 +6170,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5707
6170
  * @secure
5708
6171
  */
5709
6172
  listSnippets: (organizationId: string, query?: {
6173
+ /** Output format for the content. */
5710
6174
  format?: 'document' | 'markdown';
6175
+ /** Identifier of the page results to fetch. */
5711
6176
  page?: string;
6177
+ /** The number of results per page */
5712
6178
  limit?: number;
6179
+ /** If specified, only snippets from the specified source will be returned. */
5713
6180
  source?: string;
5714
6181
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5715
6182
  items: Snippet[];
@@ -5734,6 +6201,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5734
6201
  * @secure
5735
6202
  */
5736
6203
  getSnippet: (organizationId: string, snippetId: string, query?: {
6204
+ /** Output format for the content. */
5737
6205
  format?: 'document' | 'markdown';
5738
6206
  }, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
5739
6207
  /**
@@ -5765,6 +6233,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5765
6233
  * @secure
5766
6234
  */
5767
6235
  askInOrganization: (organizationId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
6236
+ /** Answer from AI for a question asked on a content. */
5768
6237
  answer?: SearchAIAnswer;
5769
6238
  }, Error>>;
5770
6239
  /**
@@ -5777,14 +6246,41 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5777
6246
  * @secure
5778
6247
  */
5779
6248
  listContentAuditRelations: (organizationId: string, query?: {
6249
+ /** Identifier of the page results to fetch. */
5780
6250
  page?: string;
6251
+ /** The number of results per page */
5781
6252
  limit?: number;
6253
+ /**
6254
+ * Status of the audit relation to filter on
6255
+ * @default "pending"
6256
+ */
5782
6257
  status?: ContentAuditRelationStatus | 'all';
6258
+ /** Space concerned by the relation */
5783
6259
  space?: string;
6260
+ /**
6261
+ * Type of the audit relation to filter on
6262
+ * @default "all"
6263
+ */
5784
6264
  type?: ContentAuditRelationType | 'all';
5785
6265
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5786
6266
  items: ContentAuditRelation[];
5787
6267
  }, Error>>;
6268
+ /**
6269
+ * No description
6270
+ *
6271
+ * @tags organizations
6272
+ * @name GetContentAuditRelationById
6273
+ * @summary Get an audit relation by ID
6274
+ * @request GET:/orgs/{organizationId}/insights/audit-relations/{relationId}
6275
+ * @secure
6276
+ */
6277
+ getContentAuditRelationById: (organizationId: string, relationId: string, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
6278
+ error: {
6279
+ /** @format int32 */
6280
+ code: 404;
6281
+ message: string;
6282
+ };
6283
+ }>>;
5788
6284
  /**
5789
6285
  * No description
5790
6286
  *
@@ -5796,6 +6292,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5796
6292
  */
5797
6293
  updateContentAuditRelationStatusById: (organizationId: string, relationId: string, data: ContentAuditRelationStatusUpdate, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
5798
6294
  error: {
6295
+ /** @format int32 */
5799
6296
  code: 404;
5800
6297
  message: string;
5801
6298
  };
@@ -5810,9 +6307,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5810
6307
  * @secure
5811
6308
  */
5812
6309
  getContentAuditSourceContentById: (organizationId: string, sourceId: string, query?: {
6310
+ /** Output format for the content. */
5813
6311
  format?: 'document' | 'markdown';
5814
6312
  }, params?: RequestParams) => Promise<HttpResponse<Document, Error | {
5815
6313
  error: {
6314
+ /** @format int32 */
5816
6315
  code: 404;
5817
6316
  message: string;
5818
6317
  };
@@ -5843,6 +6342,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5843
6342
  * @secure
5844
6343
  */
5845
6344
  getContentByUrl: (query: {
6345
+ /** URL to resolve */
5846
6346
  url: string;
5847
6347
  }, params?: RequestParams) => Promise<HttpResponse<{
5848
6348
  collection: Collection;
@@ -5861,6 +6361,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5861
6361
  * @secure
5862
6362
  */
5863
6363
  getEmbedByUrl: (query: {
6364
+ /** URL to resolve */
5864
6365
  url: string;
5865
6366
  }, params?: RequestParams) => Promise<HttpResponse<Embed, Error>>;
5866
6367
  /**
@@ -5873,7 +6374,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5873
6374
  * @secure
5874
6375
  */
5875
6376
  getPublishedContentByUrl: (query: {
6377
+ /** URL to resolve */
5876
6378
  url: URL;
6379
+ /** JWT token generated for a visitor auth session */
5877
6380
  visitorAuthToken?: string;
5878
6381
  }, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup, Error>>;
5879
6382
  };