@gitbook/api 0.96.1 → 0.98.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
@@ -11,6 +11,26 @@ export interface ApiInformation {
11
11
  /** Date of the latest release in ISO format */
12
12
  build: string;
13
13
  }
14
+ export interface User {
15
+ /** Type of Object, always equals to "user" */
16
+ object: 'user';
17
+ /** Unique identifier for the user */
18
+ id: string;
19
+ /** Full name for the user */
20
+ displayName: string;
21
+ /** Email address of the user */
22
+ email?: string;
23
+ /** URL of the user's profile picture */
24
+ photoURL?: string;
25
+ /** URLs associated with the object */
26
+ urls: {
27
+ /**
28
+ * URL of the user in the API
29
+ * @format uri
30
+ */
31
+ location: string;
32
+ };
33
+ }
14
34
  export interface List {
15
35
  next?: {
16
36
  /** Unique identifier to query the next results page */
@@ -19,60 +39,427 @@ export interface List {
19
39
  /** Total count of objects in the list */
20
40
  count?: number;
21
41
  }
22
- /** Search result representing a section in a page. */
23
- export interface SearchSectionResult {
42
+ /** @format date-time */
43
+ export type Timestamp = string;
44
+ /** The API token details, excluding the token itself. */
45
+ export interface UserAPIToken {
46
+ /** The API token ID. */
24
47
  id: string;
25
- title: string;
26
- path: string;
27
- body: string;
48
+ /** The API token name. */
49
+ label: string;
50
+ /** The API token creation date. */
51
+ createdAt: Timestamp;
52
+ }
53
+ /** The API token details, including the token itself. */
54
+ export type UserAPITokenExtended = UserAPIToken & {
55
+ /** The actual token value. */
56
+ token: string;
57
+ };
58
+ /**
59
+ * Title of the space
60
+ * @maxLength 50
61
+ */
62
+ export type SpaceTitle = string;
63
+ /**
64
+ * Unicode codepoint or character of the emoji
65
+ * @format emoji
66
+ * @maxLength 50
67
+ * @example "🎉"
68
+ */
69
+ export type Emoji = string;
70
+ /**
71
+ * * `public`: Anyone can access the content, and the content is indexed by search engines.
72
+ * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
73
+ * * `share-link`: Anyone with a secret token in the url can access the content.
74
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
75
+ * * `in-collection`: Anyone who can access the parent collection can access the content.
76
+ * Only available for spaces in a collection.
77
+ * * `private`: Authorized members can access the content.
78
+ */
79
+ export declare enum ContentVisibility {
80
+ Public = "public",
81
+ Unlisted = "unlisted",
82
+ ShareLink = "share-link",
83
+ VisitorAuth = "visitor-auth",
84
+ InCollection = "in-collection",
85
+ Private = "private"
86
+ }
87
+ /**
88
+ * Determines how a Space can be edited.
89
+ * * `live`: Users can directly edit the space
90
+ * * `locked`: All edits are locked for this space.
91
+ */
92
+ export declare enum SpaceEditMode {
93
+ Live = "live",
94
+ Locked = "locked"
95
+ }
96
+ /**
97
+ * @format uri
98
+ * @maxLength 2048
99
+ */
100
+ export type URL = string;
101
+ /** The provider of the Git Sync installation. */
102
+ export declare enum GitSyncProvider {
103
+ Github = "github",
104
+ Gitlab = "gitlab",
105
+ GithubLegacy = "github-legacy"
106
+ }
107
+ export interface GitSyncState {
108
+ /** The provider of the Git Sync installation. */
109
+ installationProvider?: GitSyncProvider;
110
+ /** The integration name providing the Git Sync. */
111
+ integration?: string;
112
+ /** The URL to the repository tree, used when rendering public content. */
113
+ url?: string;
114
+ /** When the Git provider details were last updated */
115
+ updatedAt?: Timestamp;
116
+ }
117
+ /** Custom backend for Visitor Authentication */
118
+ export interface VisitorAuthCustomBackend {
119
+ /** Custom backend for Visitor Authentication */
120
+ backend: 'custom';
121
+ }
122
+ /** Integration backend for Visitor Authentication */
123
+ export interface VisitorAuthIntegrationBackend {
124
+ /** Integration as backend for Visitor Authentication */
125
+ backend: 'integration';
126
+ }
127
+ export type VisitorAuth = VisitorAuthCustomBackend | (VisitorAuthIntegrationBackend & {
128
+ /** Name of integration being used as the backend for Visitor Authentication */
129
+ integration: string;
130
+ });
131
+ /**
132
+ * "The role of a member in an organization.
133
+ * "admin": Can administrate the content: create, delete spaces, ...
134
+ * "create": Can create content.
135
+ * "review": Can review content.
136
+ * "edit": Can edit the content (live or change requests).
137
+ * "comment": Can access the content and its discussions.
138
+ * "read": Can access the content, but cannot update it in any way.
139
+ */
140
+ export declare enum MemberRole {
141
+ Admin = "admin",
142
+ Create = "create",
143
+ Edit = "edit",
144
+ Review = "review",
145
+ Comment = "comment",
146
+ Read = "read"
147
+ }
148
+ /** The role of a member in an organization, null for guests */
149
+ export type MemberRoleOrGuest = MemberRole | null;
150
+ /** Default level for a piece of content */
151
+ export type DefaultLevel = MemberRoleOrGuest | 'inherit';
152
+ export interface Space {
153
+ /** Type of Object, always equals to "space" */
154
+ object: 'space';
155
+ /** Unique identifier for the space */
156
+ id: string;
157
+ /** Title of the space */
158
+ title: SpaceTitle;
159
+ /** An emoji for this space. It'll match the emoji shown in the GitBook app. */
160
+ emoji: Emoji;
161
+ /**
162
+ * * `public`: Anyone can access the content, and the content is indexed by search engines.
163
+ * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
164
+ * * `share-link`: Anyone with a secret token in the url can access the content.
165
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
166
+ * * `in-collection`: Anyone who can access the parent collection can access the content.
167
+ * Only available for spaces in a collection.
168
+ * * `private`: Authorized members can access the content.
169
+ */
170
+ visibility: ContentVisibility;
171
+ createdAt: Timestamp;
172
+ updatedAt: Timestamp;
173
+ deletedAt?: Timestamp;
174
+ /**
175
+ * Determines how a Space can be edited.
176
+ * * `live`: Users can directly edit the space
177
+ * * `locked`: All edits are locked for this space.
178
+ */
179
+ editMode?: SpaceEditMode;
28
180
  /** URLs associated with the object */
29
181
  urls: {
30
182
  /**
31
- * URL of the section in the application
183
+ * URL of the space in the API
32
184
  * @format uri
33
185
  */
34
- app: string;
35
- };
36
- }
37
- /** Search result representing a page in a space. */
38
- export interface SearchPageResult {
39
- id: string;
40
- title: string;
41
- path: string;
42
- sections?: SearchSectionResult[];
43
- /** URLs associated with the object */
44
- urls: {
186
+ location: string;
45
187
  /**
46
- * URL of the page in the application
188
+ * URL of the space in the application
47
189
  * @format uri
48
190
  */
49
191
  app: string;
192
+ /**
193
+ * URL of the published version of the space. Only defined when visibility is not "private."
194
+ * @format uri
195
+ */
196
+ published?: string;
197
+ /**
198
+ * URL of the public version of the space. Only defined when visibility is "public".
199
+ * @format uri
200
+ */
201
+ public?: string;
202
+ /** URL of the icon of this space, if defined. */
203
+ icon?: URL;
204
+ };
205
+ /** ID of the organization owning this space */
206
+ organization: string;
207
+ /** ID of the parent collection. */
208
+ parent?: string;
209
+ gitSync?: GitSyncState;
210
+ visitorAuth?: VisitorAuth;
211
+ /** ID of the active revision in the space. */
212
+ revision: string;
213
+ /** Default level for a piece of content */
214
+ defaultLevel: DefaultLevel;
215
+ /** Count of opened comments on the space. */
216
+ comments: number;
217
+ /** Total count of change requests on the space. */
218
+ changeRequests: number;
219
+ /** Count of open change requests on the space. */
220
+ changeRequestsOpen: number;
221
+ /** Count of draft change requests on the space. */
222
+ changeRequestsDraft: number;
223
+ /** The set of permissions for the space */
224
+ permissions: {
225
+ /** Can the user access the space in the application. */
226
+ access: boolean;
227
+ /** Can the user edit the title, install integrations, and manage the space. */
228
+ admin: boolean;
229
+ /** Can the user edit the content of the space by creating a change request. */
230
+ edit: boolean;
231
+ /** Can the user comment on the content. */
232
+ comment: boolean;
233
+ /** Can the user merge change requests. */
234
+ merge: boolean;
235
+ /** Can the user review change requests. */
236
+ review: boolean;
50
237
  };
51
238
  }
52
- /** Search result representing a space. */
53
- export interface SearchSpaceResult {
54
- id: string;
55
- title: string;
56
- pages: SearchPageResult[];
57
- }
58
- export interface MarkdownDocument {
59
- /** Content of the document formatted as markdown */
60
- markdown: string;
61
- }
62
- export interface DocumentMarkBold {
63
- object: 'mark';
64
- type: 'bold';
239
+ export interface SpacePointer {
240
+ type: 'space';
241
+ /** Unique identifier for the space */
242
+ space: string;
65
243
  }
66
- export interface DocumentMarkItalic {
67
- object: 'mark';
68
- type: 'italic';
244
+ export interface CollectionPointer {
245
+ type: 'collection';
246
+ /** Unique identifier for the collection */
247
+ collection: string;
69
248
  }
70
- export interface DocumentMarkCode {
71
- object: 'mark';
72
- type: 'code';
249
+ /** Position at which to insert an item */
250
+ export interface ContentPosition {
251
+ before?: SpacePointer | CollectionPointer;
252
+ after?: SpacePointer | CollectionPointer;
73
253
  }
74
- export interface DocumentMarkKeyboard {
75
- object: 'mark';
254
+ /** Format the custom block as a codeblock */
255
+ export type IntegrationBlockMarkdown = {
256
+ /** Code block syntax to use to identify the block. */
257
+ codeblock: string;
258
+ /** Key of the property to use as body of the codeblock. */
259
+ body: string;
260
+ };
261
+ export interface IntegrationBlock {
262
+ /** Unique ID in the integration for the block. It also represents the UI component used. */
263
+ id: string;
264
+ /**
265
+ * Short descriptive title for the block.
266
+ * @minLength 2
267
+ * @maxLength 40
268
+ */
269
+ title: string;
270
+ /**
271
+ * Long descriptive text for the block.
272
+ * @minLength 0
273
+ * @maxLength 150
274
+ */
275
+ description?: string;
276
+ /** URL of the icon to represent this block. */
277
+ icon?: string;
278
+ /** URLs patterns to convert as this block. */
279
+ urlUnfurl?: string[];
280
+ /** Format the custom block as a codeblock */
281
+ markdown?: IntegrationBlockMarkdown;
282
+ }
283
+ export type Embed = {
284
+ title: string;
285
+ site: string;
286
+ icon?: string;
287
+ } & ({
288
+ type: 'link';
289
+ } | {
290
+ type: 'rich';
291
+ html: string;
292
+ } | {
293
+ type: 'integration';
294
+ /** The identifier of the integration performing the rendering */
295
+ integration: string;
296
+ block: IntegrationBlock;
297
+ });
298
+ /** Search result representing a section in a page. */
299
+ export interface SearchSectionResult {
300
+ id: string;
301
+ title: string;
302
+ path: string;
303
+ body: string;
304
+ /** URLs associated with the object */
305
+ urls: {
306
+ /**
307
+ * URL of the section in the application
308
+ * @format uri
309
+ */
310
+ app: string;
311
+ };
312
+ }
313
+ /** Search result representing a page in a space. */
314
+ export interface SearchPageResult {
315
+ id: string;
316
+ title: string;
317
+ path: string;
318
+ sections?: SearchSectionResult[];
319
+ /** URLs associated with the object */
320
+ urls: {
321
+ /**
322
+ * URL of the page in the application
323
+ * @format uri
324
+ */
325
+ app: string;
326
+ };
327
+ }
328
+ /** Update metadata about the Git provider on the space */
329
+ export interface UpdateSpaceGitInfo {
330
+ /** The git provider */
331
+ provider?: 'github' | 'gitlab';
332
+ /** The repository's tree URL */
333
+ url?: string;
334
+ }
335
+ export interface ImportGitRepository {
336
+ /** URL of the Git repository to import. It can contain basic auth credentials. */
337
+ url: string;
338
+ /** Git ref to import in the format "refs/heads/main" */
339
+ ref: string;
340
+ /** Unique identifier to use to cache the Git repository across multiple operations. */
341
+ repoCacheID?: string;
342
+ /** URL to use as a prefix for external file references. */
343
+ repoTreeURL?: string;
344
+ /** URL to use as a prefix for the commit URL. */
345
+ repoCommitURL?: string;
346
+ /** Path to a root directory for the project in the repository. */
347
+ repoProjectDirectory?: string;
348
+ /** The timestamp of the event that triggered this import. It ensures that Git sync import and export operations are executed in the same order on GitBook and on the remote repository. */
349
+ timestamp?: Timestamp;
350
+ force?: boolean;
351
+ /** If true, the import will generate a revision without updating the space primary content. */
352
+ standalone?: boolean;
353
+ /** Optional metadata to store on the space about the Git provider */
354
+ gitInfo?: UpdateSpaceGitInfo;
355
+ }
356
+ export interface ExportToGitRepository {
357
+ /** URL of the Git repository to export to. It can contain basic auth credentials. */
358
+ url: string;
359
+ /** Git ref to push the commit to in the format "refs/heads/main" */
360
+ ref: string;
361
+ /** Message for the commit generated by the export */
362
+ commitMessage: string;
363
+ /** Unique identifier to use to cache the Git repository across multiple operations. */
364
+ repoCacheID?: string;
365
+ /** URL to use as a prefix for external file references. */
366
+ repoTreeURL?: string;
367
+ /** URL to use as a prefix for the commit URL. */
368
+ repoCommitURL?: string;
369
+ /** Path to a root directory for the project in the repository. */
370
+ repoProjectDirectory?: string;
371
+ /** The timestamp of the event that triggered this export. It ensures that Git sync import and export operations are executed in the same order on GitBook and on the remote repository. */
372
+ timestamp?: Timestamp;
373
+ force?: boolean;
374
+ /** Optional metadata to store on the space about the Git provider */
375
+ gitInfo?: UpdateSpaceGitInfo;
376
+ }
377
+ export type InviteUsersAndTeams = ({
378
+ /** @minItems 1 */
379
+ teams: string[];
380
+ } | {
381
+ /** @minItems 1 */
382
+ users: string[];
383
+ }) & {
384
+ /** Role to set. */
385
+ role: MemberRoleOrGuest;
386
+ };
387
+ /** Permission of a user in a content. */
388
+ export interface UserContentPermission {
389
+ /**
390
+ * "The role of a member in an organization.
391
+ * "admin": Can administrate the content: create, delete spaces, ...
392
+ * "create": Can create content.
393
+ * "review": Can review content.
394
+ * "edit": Can edit the content (live or change requests).
395
+ * "comment": Can access the content and its discussions.
396
+ * "read": Can access the content, but cannot update it in any way.
397
+ */
398
+ permission: MemberRole;
399
+ user: User;
400
+ }
401
+ /**
402
+ * Title of the team
403
+ * @minLength 1
404
+ * @maxLength 64
405
+ */
406
+ export type OrganizationTeamTitle = string;
407
+ export interface OrganizationTeam {
408
+ /** Type of Object, always equals to "team" */
409
+ object: 'team';
410
+ /** Unique identifier for the team. */
411
+ id: string;
412
+ /** Title of the team */
413
+ title: OrganizationTeamTitle;
414
+ /** Count of members in this team. */
415
+ members: number;
416
+ /** Count of spaces this team has access to. */
417
+ spaces: number;
418
+ /** Date at which the team was created. */
419
+ createdAt: Timestamp;
420
+ }
421
+ /**
422
+ * Name of the icon
423
+ * @format icon
424
+ * @maxLength 50
425
+ * @example "gear"
426
+ */
427
+ export type Icon = string;
428
+ export interface RevisionPageBase {
429
+ /** Unique identifier for the page in the revision */
430
+ id: string;
431
+ /**
432
+ * Title of the page
433
+ * @minLength 1
434
+ */
435
+ title: string;
436
+ /** Emoji of the page, if one has been set. */
437
+ emoji?: Emoji;
438
+ /** Icon of the page, if one has been set. */
439
+ icon?: Icon;
440
+ /** When the page was first created. Only present if page has been edited at least once. */
441
+ createdAt?: Timestamp;
442
+ /** When the page was last edited. Only present if page has been edited at least once. */
443
+ updatedAt?: Timestamp;
444
+ }
445
+ export interface MarkdownDocument {
446
+ /** Content of the document formatted as markdown */
447
+ markdown: string;
448
+ }
449
+ export interface DocumentMarkBold {
450
+ object: 'mark';
451
+ type: 'bold';
452
+ }
453
+ export interface DocumentMarkItalic {
454
+ object: 'mark';
455
+ type: 'italic';
456
+ }
457
+ export interface DocumentMarkCode {
458
+ object: 'mark';
459
+ type: 'code';
460
+ }
461
+ export interface DocumentMarkKeyboard {
462
+ object: 'mark';
76
463
  type: 'keyboard';
77
464
  }
78
465
  export interface DocumentMarkStrikethrough {
@@ -630,439 +1017,64 @@ export interface DocumentBlockOpenAPIOperation {
630
1017
  id: string;
631
1018
  };
632
1019
  }
633
- export interface DocumentBlockReusableContent {
634
- object: 'block';
635
- type: 'reusable-content';
636
- key?: string;
637
- data: {
638
- ref: ContentRefReusableContent;
639
- };
640
- isVoid: true;
1020
+ /** Pointer to schemas in the OpenAPI spec. */
1021
+ export interface OpenAPISchemasPointer {
1022
+ /** List of schemas name from the OpenAPI spec. */
1023
+ schemas: string[];
641
1024
  }
642
- export interface DocumentBlockStepperStep {
1025
+ export interface DocumentBlockOpenAPISchemas {
643
1026
  object: 'block';
644
- type: 'stepper-step';
1027
+ type: 'openapi-schemas';
645
1028
  key?: string;
646
- nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
647
- data: {
648
- icon?: string;
1029
+ data: OpenAPISchemasPointer & {
1030
+ ref: ContentRefOpenAPI;
649
1031
  };
650
- isVoid?: false;
651
- }
652
- export interface DocumentBlockStepper {
653
- object: 'block';
654
- type: 'stepper';
655
- key?: string;
656
- nodes: DocumentBlockStepperStep[];
657
- isVoid?: false;
658
- data?: object;
659
- }
660
- export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
661
- export interface JSONDocument {
662
- object: 'document';
663
- data: {
664
- /** The schema version of the document. If undefined, the document is considered to be of the latest schema version. */
665
- schemaVersion?: number;
666
- [key: string]: any;
1032
+ isVoid: true;
1033
+ meta?: {
1034
+ /** Unique ID to be used in an URL for the block. */
1035
+ id: string;
667
1036
  };
668
- nodes: DocumentBlocksTopLevels[];
669
1037
  }
670
- export type Document = MarkdownDocument | {
671
- document: JSONDocument;
672
- } | object;
673
- /**
674
- * Page source
675
- * The source points to a page in a space.
676
- */
677
- export interface SearchAIAnswerSource {
678
- type: 'page';
679
- /** Short explanation of how the source was used to answer. */
680
- reason?: string;
681
- /** The page ID of the source. */
682
- page: string;
683
- /** The revision ID where the page was extracted from. */
684
- revision: string;
685
- /** The space ID owning the page. */
686
- space: string;
687
- /** The IDs of the sections of the page that were used to answer the question. */
688
- sections: string[];
689
- }
690
- /** Answer from AI for a question asked on a content. */
691
- export interface SearchAIAnswer {
692
- answer?: Document;
693
- followupQuestions: string[];
694
- /** The sources used to generate the answer. */
695
- sources: SearchAIAnswerSource[];
696
- }
697
- export interface SearchAIQuery {
698
- query: string;
699
- /**
700
- * @deprecated
701
- * @maxItems 10
702
- */
703
- previousQueries?: string[];
704
- }
705
- /** Questions recommended by the AI for the given content. */
706
- export interface SearchAIRecommendedQuestions {
707
- questions: string[];
708
- }
709
- export interface User {
710
- /** Type of Object, always equals to "user" */
711
- object: 'user';
712
- /** Unique identifier for the user */
713
- id: string;
714
- /** Full name for the user */
715
- displayName: string;
716
- /** Email address of the user */
717
- email?: string;
718
- /** URL of the user's profile picture */
719
- photoURL?: string;
720
- /** URLs associated with the object */
721
- urls: {
722
- /**
723
- * URL of the user in the API
724
- * @format uri
725
- */
726
- location: string;
727
- };
728
- }
729
- /** @format date-time */
730
- export type Timestamp = string;
731
- /** The API token details, excluding the token itself. */
732
- export interface UserAPIToken {
733
- /** The API token ID. */
734
- id: string;
735
- /** The API token name. */
736
- label: string;
737
- /** The API token creation date. */
738
- createdAt: Timestamp;
739
- }
740
- /** The API token details, including the token itself. */
741
- export type UserAPITokenExtended = UserAPIToken & {
742
- /** The actual token value. */
743
- token: string;
744
- };
745
- /**
746
- * Title of the space
747
- * @maxLength 50
748
- */
749
- export type SpaceTitle = string;
750
- /**
751
- * Unicode codepoint or character of the emoji
752
- * @format emoji
753
- * @maxLength 50
754
- * @example "🎉"
755
- */
756
- export type Emoji = string;
757
- /**
758
- * * `public`: Anyone can access the content, and the content is indexed by search engines.
759
- * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
760
- * * `share-link`: Anyone with a secret token in the url can access the content.
761
- * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
762
- * * `in-collection`: Anyone who can access the parent collection can access the content.
763
- * Only available for spaces in a collection.
764
- * * `private`: Authorized members can access the content.
765
- */
766
- export declare enum ContentVisibility {
767
- Public = "public",
768
- Unlisted = "unlisted",
769
- ShareLink = "share-link",
770
- VisitorAuth = "visitor-auth",
771
- InCollection = "in-collection",
772
- Private = "private"
773
- }
774
- /**
775
- * Determines how a Space can be edited.
776
- * * `live`: Users can directly edit the space
777
- * * `locked`: All edits are locked for this space.
778
- */
779
- export declare enum SpaceEditMode {
780
- Live = "live",
781
- Locked = "locked"
782
- }
783
- /**
784
- * @format uri
785
- * @maxLength 2048
786
- */
787
- export type URL = string;
788
- /** The provider of the Git Sync installation. */
789
- export declare enum GitSyncProvider {
790
- Github = "github",
791
- Gitlab = "gitlab",
792
- GithubLegacy = "github-legacy"
793
- }
794
- export interface GitSyncState {
795
- /** The provider of the Git Sync installation. */
796
- installationProvider?: GitSyncProvider;
797
- /** The integration name providing the Git Sync. */
798
- integration?: string;
799
- /** The URL to the repository tree, used when rendering public content. */
800
- url?: string;
801
- /** When the Git provider details were last updated */
802
- updatedAt?: Timestamp;
803
- }
804
- /** Custom backend for Visitor Authentication */
805
- export interface VisitorAuthCustomBackend {
806
- /** Custom backend for Visitor Authentication */
807
- backend: 'custom';
808
- }
809
- /** Integration backend for Visitor Authentication */
810
- export interface VisitorAuthIntegrationBackend {
811
- /** Integration as backend for Visitor Authentication */
812
- backend: 'integration';
813
- }
814
- export type VisitorAuth = VisitorAuthCustomBackend | (VisitorAuthIntegrationBackend & {
815
- /** Name of integration being used as the backend for Visitor Authentication */
816
- integration: string;
817
- });
818
- /**
819
- * "The role of a member in an organization.
820
- * "admin": Can administrate the content: create, delete spaces, ...
821
- * "create": Can create content.
822
- * "review": Can review content.
823
- * "edit": Can edit the content (live or change requests).
824
- * "comment": Can access the content and its discussions.
825
- * "read": Can access the content, but cannot update it in any way.
826
- */
827
- export declare enum MemberRole {
828
- Admin = "admin",
829
- Create = "create",
830
- Edit = "edit",
831
- Review = "review",
832
- Comment = "comment",
833
- Read = "read"
834
- }
835
- /** The role of a member in an organization, null for guests */
836
- export type MemberRoleOrGuest = MemberRole | null;
837
- /** Default level for a piece of content */
838
- export type DefaultLevel = MemberRoleOrGuest | 'inherit';
839
- export interface Space {
840
- /** Type of Object, always equals to "space" */
841
- object: 'space';
842
- /** Unique identifier for the space */
843
- id: string;
844
- /** Title of the space */
845
- title: SpaceTitle;
846
- /** An emoji for this space. It'll match the emoji shown in the GitBook app. */
847
- emoji: Emoji;
848
- /**
849
- * * `public`: Anyone can access the content, and the content is indexed by search engines.
850
- * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
851
- * * `share-link`: Anyone with a secret token in the url can access the content.
852
- * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
853
- * * `in-collection`: Anyone who can access the parent collection can access the content.
854
- * Only available for spaces in a collection.
855
- * * `private`: Authorized members can access the content.
856
- */
857
- visibility: ContentVisibility;
858
- createdAt: Timestamp;
859
- updatedAt: Timestamp;
860
- deletedAt?: Timestamp;
861
- /**
862
- * Determines how a Space can be edited.
863
- * * `live`: Users can directly edit the space
864
- * * `locked`: All edits are locked for this space.
865
- */
866
- editMode?: SpaceEditMode;
867
- /** URLs associated with the object */
868
- urls: {
869
- /**
870
- * URL of the space in the API
871
- * @format uri
872
- */
873
- location: string;
874
- /**
875
- * URL of the space in the application
876
- * @format uri
877
- */
878
- app: string;
879
- /**
880
- * URL of the published version of the space. Only defined when visibility is not "private."
881
- * @format uri
882
- */
883
- published?: string;
884
- /**
885
- * URL of the public version of the space. Only defined when visibility is "public".
886
- * @format uri
887
- */
888
- public?: string;
889
- /** URL of the icon of this space, if defined. */
890
- icon?: URL;
891
- };
892
- /** ID of the organization owning this space */
893
- organization: string;
894
- /** ID of the parent collection. */
895
- parent?: string;
896
- gitSync?: GitSyncState;
897
- visitorAuth?: VisitorAuth;
898
- /** ID of the active revision in the space. */
899
- revision: string;
900
- /** Default level for a piece of content */
901
- defaultLevel: DefaultLevel;
902
- /** Count of opened comments on the space. */
903
- comments: number;
904
- /** Total count of change requests on the space. */
905
- changeRequests: number;
906
- /** Count of open change requests on the space. */
907
- changeRequestsOpen: number;
908
- /** Count of draft change requests on the space. */
909
- changeRequestsDraft: number;
910
- /** The set of permissions for the space */
911
- permissions: {
912
- /** Can the user access the space in the application. */
913
- access: boolean;
914
- /** Can the user edit the title, install integrations, and manage the space. */
915
- admin: boolean;
916
- /** Can the user edit the content of the space by creating a change request. */
917
- edit: boolean;
918
- /** Can the user comment on the content. */
919
- comment: boolean;
920
- /** Can the user merge change requests. */
921
- merge: boolean;
922
- /** Can the user review change requests. */
923
- review: boolean;
924
- };
925
- }
926
- export interface SpacePointer {
927
- type: 'space';
928
- /** Unique identifier for the space */
929
- space: string;
930
- }
931
- export interface CollectionPointer {
932
- type: 'collection';
933
- /** Unique identifier for the collection */
934
- collection: string;
935
- }
936
- /** Position at which to insert an item */
937
- export interface ContentPosition {
938
- before?: SpacePointer | CollectionPointer;
939
- after?: SpacePointer | CollectionPointer;
940
- }
941
- /** Format the custom block as a codeblock */
942
- export type IntegrationBlockMarkdown = {
943
- /** Code block syntax to use to identify the block. */
944
- codeblock: string;
945
- /** Key of the property to use as body of the codeblock. */
946
- body: string;
947
- };
948
- export interface IntegrationBlock {
949
- /** Unique ID in the integration for the block. It also represents the UI component used. */
950
- id: string;
951
- /**
952
- * Short descriptive title for the block.
953
- * @minLength 2
954
- * @maxLength 40
955
- */
956
- title: string;
957
- /**
958
- * Long descriptive text for the block.
959
- * @minLength 0
960
- * @maxLength 150
961
- */
962
- description?: string;
963
- /** URL of the icon to represent this block. */
964
- icon?: string;
965
- /** URLs patterns to convert as this block. */
966
- urlUnfurl?: string[];
967
- /** Format the custom block as a codeblock */
968
- markdown?: IntegrationBlockMarkdown;
969
- }
970
- export type Embed = {
971
- title: string;
972
- site: string;
973
- icon?: string;
974
- } & ({
975
- type: 'link';
976
- } | {
977
- type: 'rich';
978
- html: string;
979
- } | {
980
- type: 'integration';
981
- /** The identifier of the integration performing the rendering */
982
- integration: string;
983
- block: IntegrationBlock;
984
- });
985
- export interface SearchAIAnswerStream {
986
- type: 'answer';
987
- /** Answer from AI for a question asked on a content. */
988
- answer: SearchAIAnswer;
989
- }
990
- export interface SearchAIRecommendedQuestionStream {
991
- question: string;
992
- }
993
- /** Update metadata about the Git provider on the space */
994
- export interface UpdateSpaceGitInfo {
995
- /** The git provider */
996
- provider?: 'github' | 'gitlab';
997
- /** The repository's tree URL */
998
- url?: string;
999
- }
1000
- export interface ImportGitRepository {
1001
- /** URL of the Git repository to import. It can contain basic auth credentials. */
1002
- url: string;
1003
- /** Git ref to import in the format "refs/heads/main" */
1004
- ref: string;
1005
- /** Unique identifier to use to cache the Git repository across multiple operations. */
1006
- repoCacheID?: string;
1007
- /** URL to use as a prefix for external file references. */
1008
- repoTreeURL?: string;
1009
- /** URL to use as a prefix for the commit URL. */
1010
- repoCommitURL?: string;
1011
- /** Path to a root directory for the project in the repository. */
1012
- repoProjectDirectory?: string;
1013
- /** The timestamp of the event that triggered this import. It ensures that Git sync import and export operations are executed in the same order on GitBook and on the remote repository. */
1014
- timestamp?: Timestamp;
1015
- force?: boolean;
1016
- /** If true, the import will generate a revision without updating the space primary content. */
1017
- standalone?: boolean;
1018
- /** Optional metadata to store on the space about the Git provider */
1019
- gitInfo?: UpdateSpaceGitInfo;
1038
+ export interface DocumentBlockReusableContent {
1039
+ object: 'block';
1040
+ type: 'reusable-content';
1041
+ key?: string;
1042
+ data: {
1043
+ ref: ContentRefReusableContent;
1044
+ };
1045
+ isVoid: true;
1020
1046
  }
1021
- export interface ExportToGitRepository {
1022
- /** URL of the Git repository to export to. It can contain basic auth credentials. */
1023
- url: string;
1024
- /** Git ref to push the commit to in the format "refs/heads/main" */
1025
- ref: string;
1026
- /** Message for the commit generated by the export */
1027
- commitMessage: string;
1028
- /** Unique identifier to use to cache the Git repository across multiple operations. */
1029
- repoCacheID?: string;
1030
- /** URL to use as a prefix for external file references. */
1031
- repoTreeURL?: string;
1032
- /** URL to use as a prefix for the commit URL. */
1033
- repoCommitURL?: string;
1034
- /** Path to a root directory for the project in the repository. */
1035
- repoProjectDirectory?: string;
1036
- /** The timestamp of the event that triggered this export. It ensures that Git sync import and export operations are executed in the same order on GitBook and on the remote repository. */
1037
- timestamp?: Timestamp;
1038
- force?: boolean;
1039
- /** Optional metadata to store on the space about the Git provider */
1040
- gitInfo?: UpdateSpaceGitInfo;
1047
+ export interface DocumentBlockStepperStep {
1048
+ object: 'block';
1049
+ type: 'stepper-step';
1050
+ key?: string;
1051
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
1052
+ data: {
1053
+ icon?: string;
1054
+ };
1055
+ isVoid?: false;
1041
1056
  }
1042
- /**
1043
- * Name of the icon
1044
- * @format icon
1045
- * @maxLength 50
1046
- * @example "gear"
1047
- */
1048
- export type Icon = string;
1049
- export interface RevisionPageBase {
1050
- /** Unique identifier for the page in the revision */
1051
- id: string;
1052
- /**
1053
- * Title of the page
1054
- * @minLength 1
1055
- */
1056
- title: string;
1057
- /** Emoji of the page, if one has been set. */
1058
- emoji?: Emoji;
1059
- /** Icon of the page, if one has been set. */
1060
- icon?: Icon;
1061
- /** When the page was first created. Only present if page has been edited at least once. */
1062
- createdAt?: Timestamp;
1063
- /** When the page was last edited. Only present if page has been edited at least once. */
1064
- updatedAt?: Timestamp;
1057
+ export interface DocumentBlockStepper {
1058
+ object: 'block';
1059
+ type: 'stepper';
1060
+ key?: string;
1061
+ nodes: DocumentBlockStepperStep[];
1062
+ isVoid?: false;
1063
+ data?: object;
1064
+ }
1065
+ export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
1066
+ export interface JSONDocument {
1067
+ object: 'document';
1068
+ data: {
1069
+ /** The schema version of the document. If undefined, the document is considered to be of the latest schema version. */
1070
+ schemaVersion?: number;
1071
+ [key: string]: any;
1072
+ };
1073
+ nodes: DocumentBlocksTopLevels[];
1065
1074
  }
1075
+ export type Document = MarkdownDocument | {
1076
+ document: JSONDocument;
1077
+ } | object;
1066
1078
  export type RevisionPageDocument = RevisionPageBase & Document & {
1067
1079
  /** @deprecated */
1068
1080
  kind: 'sheet';
@@ -1188,148 +1200,6 @@ export interface RevisionPageDocumentCover {
1188
1200
  /** Vertical position of the cover image. */
1189
1201
  yPos: number;
1190
1202
  }
1191
- /** A score breakdown for a specific page. */
1192
- export interface AnalyticsFeedbacksPageScore {
1193
- /** Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad'). */
1194
- score: number;
1195
- /** Total number of ratings done by end users. */
1196
- total: number;
1197
- /**
1198
- * Summary of the rating based on the score ('good', 'ok', or 'bad')
1199
- * @deprecated
1200
- */
1201
- rating: string;
1202
- /** Score multiplied by the number of ratings to give more importance to highly rated content. */
1203
- ponderedScore: number;
1204
- /** Number of 'bad' ratings. */
1205
- bad: number;
1206
- /** Number of 'ok' ratings. */
1207
- ok: number;
1208
- /** Number of 'good' ratings. */
1209
- good: number;
1210
- }
1211
- /** Page entry in the content analytics. */
1212
- export interface AnalyticsContentPage {
1213
- page: RevisionPageDocument;
1214
- pageViews: number;
1215
- /** A score breakdown for a specific page. */
1216
- feedbacks?: AnalyticsFeedbacksPageScore;
1217
- }
1218
- export interface AnalyticsContentPages {
1219
- pages: AnalyticsContentPage[];
1220
- }
1221
- export declare enum AnalyticsSearchPeriod {
1222
- LastMonth = "last_month",
1223
- LastWeek = "last_week",
1224
- LastYear = "last_year"
1225
- }
1226
- /** Analytics entry for a search query. */
1227
- export interface AnalyticsSearchQuery {
1228
- query: string;
1229
- /** Number of searches done by users. */
1230
- searches: number;
1231
- /** Number of objects matching this search. */
1232
- hits: number;
1233
- /** Number of pages matching this search. */
1234
- pageHits: number;
1235
- /** Number of sections matching this search. */
1236
- sectionHits: number;
1237
- }
1238
- /** Top search queries for a content. */
1239
- export interface AnalyticsTopSearches {
1240
- /** Number of searches done by users. */
1241
- searches: number;
1242
- /** Top queries searched for this content. */
1243
- queries: AnalyticsSearchQuery[];
1244
- }
1245
- export declare enum AnalyticsTrafficInterval {
1246
- Daily = "daily",
1247
- Weekly = "weekly",
1248
- Monthly = "monthly"
1249
- }
1250
- export interface AnalyticsTrafficPageViews {
1251
- /** Total number of page views over the period. */
1252
- count: number;
1253
- /** Page views per interval (day, week, month). */
1254
- views: {
1255
- timestamp: string;
1256
- count: number;
1257
- }[];
1258
- }
1259
- export interface SpaceTrackPageView {
1260
- /** Unique identifier of the page. */
1261
- pageId?: string;
1262
- /** Analytics info on the GitBook's content visitor. */
1263
- visitor: {
1264
- /** GitBook's unique identifier of the visitor. */
1265
- anonymousId: string;
1266
- /** The visitors cookies. */
1267
- cookies: Record<string, string>;
1268
- /**
1269
- * IP address of the visitor.
1270
- * If undefined, it'll default to the IP executing the request.
1271
- */
1272
- ip?: string;
1273
- /**
1274
- * User-agent of the visitor.
1275
- * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
1276
- */
1277
- userAgent: string;
1278
- /**
1279
- * Language of the visitor.
1280
- * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
1281
- */
1282
- language?: string;
1283
- };
1284
- /** The GitBook content's URL visited (including URL params). */
1285
- url: string;
1286
- /** The URL of referrer that linked to the page. */
1287
- referrer: string;
1288
- }
1289
- export type InviteUsersAndTeams = ({
1290
- /** @minItems 1 */
1291
- teams: string[];
1292
- } | {
1293
- /** @minItems 1 */
1294
- users: string[];
1295
- }) & {
1296
- /** Role to set. */
1297
- role: MemberRoleOrGuest;
1298
- };
1299
- /** Permission of a user in a content. */
1300
- export interface UserContentPermission {
1301
- /**
1302
- * "The role of a member in an organization.
1303
- * "admin": Can administrate the content: create, delete spaces, ...
1304
- * "create": Can create content.
1305
- * "review": Can review content.
1306
- * "edit": Can edit the content (live or change requests).
1307
- * "comment": Can access the content and its discussions.
1308
- * "read": Can access the content, but cannot update it in any way.
1309
- */
1310
- permission: MemberRole;
1311
- user: User;
1312
- }
1313
- /**
1314
- * Title of the team
1315
- * @minLength 1
1316
- * @maxLength 64
1317
- */
1318
- export type OrganizationTeamTitle = string;
1319
- export interface OrganizationTeam {
1320
- /** Type of Object, always equals to "team" */
1321
- object: 'team';
1322
- /** Unique identifier for the team. */
1323
- id: string;
1324
- /** Title of the team */
1325
- title: OrganizationTeamTitle;
1326
- /** Count of members in this team. */
1327
- members: number;
1328
- /** Count of spaces this team has access to. */
1329
- spaces: number;
1330
- /** Date at which the team was created. */
1331
- createdAt: Timestamp;
1332
- }
1333
1203
  export type RevisionPageGroup = RevisionPageBase & {
1334
1204
  /** @deprecated */
1335
1205
  kind: 'group';
@@ -1775,6 +1645,7 @@ export interface ContentLocationReusableContent {
1775
1645
  * Slug used as reference
1776
1646
  * @minLength 1
1777
1647
  * @maxLength 100
1648
+ * @pattern ^[a-z0-9]+(?:-[a-z0-9]+)*$
1778
1649
  */
1779
1650
  export type OpenAPISpecSlug = string;
1780
1651
  /** Processing state */
@@ -2308,190 +2179,35 @@ export interface ChangedRevisionReusableContent {
2308
2179
  document?: string;
2309
2180
  }
2310
2181
  export interface RevisionSemanticChangeReusableContentCreated {
2311
- type: 'reusable_content_created';
2312
- reusableContent: ChangedRevisionReusableContent;
2313
- }
2314
- export interface RevisionSemanticChangeReusableContentDeleted {
2315
- type: 'reusable_content_deleted';
2316
- reusableContent: ChangedRevisionReusableContent;
2317
- }
2318
- export interface RevisionReusableContentChangeAttributes {
2319
- title?: ChangeAttributeString;
2320
- document?: ChangeAttributeString;
2321
- }
2322
- export interface RevisionSemanticChangeReusableContentEdited {
2323
- type: 'reusable_content_edited';
2324
- reusableContent: ChangedRevisionReusableContent;
2325
- attributes: RevisionReusableContentChangeAttributes;
2326
- }
2327
- export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited;
2328
- export interface RevisionSemanticChanges {
2329
- changes: RevisionSemanticChange[];
2330
- /** How many changes were omitted because above the result limit */
2331
- more?: number;
2332
- }
2333
- export interface UpdateCommentReplySchema {
2334
- /** Content of the comment. */
2335
- body?: Document;
2336
- /** Reactions to add to the comment. */
2337
- addedReactions?: string[];
2338
- /** Reactions to remove from the comment. */
2339
- removedReactions?: string[];
2340
- }
2341
- /** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
2342
- export type Color = string;
2343
- export interface CustomizationThemedColor {
2344
- light: Color;
2345
- dark: Color;
2346
- }
2347
- export declare enum CustomizationCorners {
2348
- Straight = "straight",
2349
- Rounded = "rounded"
2350
- }
2351
- export declare enum CustomizationFont {
2352
- ABCFavorit = "ABCFavorit",
2353
- Inter = "Inter",
2354
- Roboto = "Roboto",
2355
- RobotoSlab = "RobotoSlab",
2356
- OpenSans = "OpenSans",
2357
- SourceSansPro = "SourceSansPro",
2358
- Lato = "Lato",
2359
- Ubuntu = "Ubuntu",
2360
- Raleway = "Raleway",
2361
- Merriweather = "Merriweather",
2362
- Overpass = "Overpass",
2363
- NotoSans = "NotoSans",
2364
- IBMPlexSerif = "IBMPlexSerif",
2365
- Poppins = "Poppins",
2366
- FiraSans = "FiraSans"
2367
- }
2368
- /**
2369
- * The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
2370
- * @deprecated
2371
- */
2372
- export declare enum CustomizationBackground {
2373
- Plain = "plain",
2374
- Match = "match"
2375
- }
2376
- /** Language for the UI element */
2377
- export declare enum CustomizationLocale {
2378
- En = "en",
2379
- Fr = "fr",
2380
- Es = "es",
2381
- Zh = "zh",
2382
- Ja = "ja",
2383
- De = "de",
2384
- Nl = "nl",
2385
- No = "no",
2386
- PtBr = "pt-br"
2387
- }
2388
- export interface CustomizationThemedURL {
2389
- light: URL;
2390
- dark: URL;
2391
- }
2392
- /**
2393
- * The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
2394
- * @deprecated
2395
- */
2396
- export declare enum CustomizationHeaderPreset {
2397
- Default = "default",
2398
- Bold = "bold",
2399
- Contrast = "contrast",
2400
- Custom = "custom",
2401
- None = "none"
2402
- }
2403
- export interface CustomizationContentLink {
2404
- title: string;
2405
- /** A relative reference to content in GitBook. */
2406
- to: ContentRef;
2182
+ type: 'reusable_content_created';
2183
+ reusableContent: ChangedRevisionReusableContent;
2407
2184
  }
2408
- export interface CustomizationHeaderItem {
2409
- title: string;
2410
- style?: 'link' | 'button-primary' | 'button-secondary';
2411
- to: ContentRef | null;
2412
- links: CustomizationContentLink[];
2185
+ export interface RevisionSemanticChangeReusableContentDeleted {
2186
+ type: 'reusable_content_deleted';
2187
+ reusableContent: ChangedRevisionReusableContent;
2413
2188
  }
2414
- export interface CustomizationFooterGroup {
2415
- title: string;
2416
- links: CustomizationContentLink[];
2189
+ export interface RevisionReusableContentChangeAttributes {
2190
+ title?: ChangeAttributeString;
2191
+ document?: ChangeAttributeString;
2417
2192
  }
2418
- export declare enum CustomizationThemeMode {
2419
- Light = "light",
2420
- Dark = "dark"
2193
+ export interface RevisionSemanticChangeReusableContentEdited {
2194
+ type: 'reusable_content_edited';
2195
+ reusableContent: ChangedRevisionReusableContent;
2196
+ attributes: RevisionReusableContentChangeAttributes;
2421
2197
  }
2422
- export interface CustomizationSettings {
2423
- /** Inherit customization settings from the parent collection. */
2424
- inherit: boolean;
2425
- /** Title to use for the published content. If not defined, it'll fallback to the content title. */
2426
- title?: string;
2427
- styling: {
2428
- primaryColor: CustomizationThemedColor;
2429
- corners: CustomizationCorners;
2430
- font: CustomizationFont;
2431
- /** The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead. */
2432
- background?: CustomizationBackground;
2433
- };
2434
- internationalization: {
2435
- /** Language for the UI element */
2436
- locale: CustomizationLocale;
2437
- /** Inherit locale from the parent collection. */
2438
- inherit: boolean;
2439
- };
2440
- favicon: {
2441
- icon: CustomizationThemedURL;
2442
- } | {
2443
- /** Unicode codepoint or character of the emoji */
2444
- emoji: Emoji;
2445
- } | object;
2446
- header: {
2447
- /** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
2448
- preset: CustomizationHeaderPreset;
2449
- logo?: CustomizationThemedURL;
2450
- backgroundColor?: CustomizationThemedColor;
2451
- linkColor?: CustomizationThemedColor;
2452
- links: CustomizationHeaderItem[];
2453
- };
2454
- footer: {
2455
- logo?: CustomizationThemedURL;
2456
- groups: CustomizationFooterGroup[];
2457
- /** @maxLength 300 */
2458
- copyright?: string;
2459
- };
2460
- themes: {
2461
- default: CustomizationThemeMode;
2462
- /** Should the reader be able to switch between dark and light mode */
2463
- toggeable: boolean;
2464
- };
2465
- pdf: {
2466
- /** If true, PDF export is enabled for the published content. */
2467
- enabled: boolean;
2468
- };
2469
- feedback: {
2470
- /** If true, feedback gathering is enabled */
2471
- enabled: boolean;
2472
- };
2473
- aiSearch: {
2474
- /** If true, AI search is enabled */
2475
- enabled: boolean;
2476
- };
2477
- git: {
2478
- /** Whether the public content should show a link to edit the content on the git provider set up in the GitSync */
2479
- showEditLink: boolean;
2480
- };
2481
- pagination: {
2482
- /** Whether the pagination navigation should be displayed on pages. */
2483
- enabled: boolean;
2484
- };
2485
- trademark: {
2486
- /** Whether the GitBook trademark ("Powered by GitBook") should be visible */
2487
- enabled: boolean;
2488
- };
2489
- privacyPolicy: {
2490
- url?: URL;
2491
- };
2492
- socialPreview: {
2493
- url?: URL;
2494
- };
2198
+ export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited;
2199
+ export interface RevisionSemanticChanges {
2200
+ changes: RevisionSemanticChange[];
2201
+ /** How many changes were omitted because above the result limit */
2202
+ more?: number;
2203
+ }
2204
+ export interface UpdateCommentReplySchema {
2205
+ /** Content of the comment. */
2206
+ body?: Document;
2207
+ /** Reactions to add to the comment. */
2208
+ addedReactions?: string[];
2209
+ /** Reactions to remove from the comment. */
2210
+ removedReactions?: string[];
2495
2211
  }
2496
2212
  /**
2497
2213
  * Title of the integration
@@ -2719,6 +2435,8 @@ export interface Integration {
2719
2435
  /** The set of permissions for the integration */
2720
2436
  permissions: {
2721
2437
  admin: boolean;
2438
+ /** Integration can be installed whatever the permissions of the user. */
2439
+ install: boolean;
2722
2440
  };
2723
2441
  /**
2724
2442
  * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
@@ -2794,28 +2512,6 @@ export interface UpdateCustomFieldValues {
2794
2512
  value: CustomFieldValue;
2795
2513
  }>;
2796
2514
  }
2797
- export declare enum PageFeedbackRating {
2798
- Bad = "bad",
2799
- Ok = "ok",
2800
- Good = "good"
2801
- }
2802
- export interface PageFeedback {
2803
- /** Type of Object, always equal to "page-feedback" */
2804
- object: 'page-feedback';
2805
- visitorId: string;
2806
- rating: PageFeedbackRating;
2807
- createdAt: Timestamp;
2808
- /** ID of the revision when the rating was created */
2809
- revision: string;
2810
- /** URLs associated with the object */
2811
- urls: {
2812
- /**
2813
- * URL of the page feedback in the API
2814
- * @format uri
2815
- */
2816
- location: string;
2817
- };
2818
- }
2819
2515
  /** Secrets stored on the integration and passed at runtime. */
2820
2516
  export type IntegrationSecrets = Record<string, string>;
2821
2517
  export interface PublishIntegration {
@@ -3437,6 +3133,10 @@ export interface ContentKitCard {
3437
3133
  /** Buttons displayed in the top right corner of the card. */
3438
3134
  buttons?: ContentKitButton[];
3439
3135
  }
3136
+ /** Built-in sources that can be used to provide a ContentKitSelect. */
3137
+ export interface ContentKitBuiltInSource {
3138
+ source: 'openapi';
3139
+ }
3440
3140
  /** An individual option in a select element */
3441
3141
  export interface ContentKitSelectOption {
3442
3142
  id: string;
@@ -3459,8 +3159,8 @@ export interface ContentKitSelect {
3459
3159
  multiple?: boolean;
3460
3160
  /** Should the filter input be allowed to be selected as an option. */
3461
3161
  acceptInput?: boolean;
3462
- /** Array of options to display in the select. */
3463
- options: ContentKitSelectOption[] | {
3162
+ /** Options to be displayed in the select. */
3163
+ options: ContentKitBuiltInSource | ContentKitSelectOption[] | {
3464
3164
  /** External source of options. The URL should respond with an array of options. */
3465
3165
  url: string | ContentKitURL;
3466
3166
  };
@@ -3693,6 +3393,35 @@ export type SiteAds = {
3693
3393
  /** The ad network zone ID */
3694
3394
  zoneId: string;
3695
3395
  };
3396
+ /** A list of all premium customizations. */
3397
+ export declare enum SiteCustomizationFeature {
3398
+ HeaderLogo = "header-logo",
3399
+ ThemePreset = "theme-preset",
3400
+ CustomFonts = "custom-fonts",
3401
+ CustomIcons = "custom-icons",
3402
+ FooterLogo = "footer-logo",
3403
+ FooterLinks = "footer-links",
3404
+ FooterCopyright = "footer-copyright",
3405
+ SemanticColors = "semantic-colors"
3406
+ }
3407
+ /** A site feature and the plan it is available on. */
3408
+ export type SiteFeature = {
3409
+ /** The feature identifier, matching the feature table keys in the pricing definition */
3410
+ id: 'sites-sections' | 'sites-visitor-authentication' | 'sites-adaptive-content' | 'sites-redirects' | 'sites-custom-domain' | 'sites-ai-search' | 'sites-pdf-export' | 'sites-page-feedback' | 'sites-unlisted-visibility' | 'sites-share-links';
3411
+ /** The type of the site */
3412
+ plan: SiteType;
3413
+ /** A frozen feature is still enabled but cannot be changed or modified. */
3414
+ frozen: boolean;
3415
+ } | {
3416
+ /** The feature identifier, always set to `sites-advanced-customization` */
3417
+ id: 'sites-advanced-customization';
3418
+ /** The type of the site */
3419
+ plan: SiteType;
3420
+ /** A frozen feature is still enabled but cannot be changed or modified. */
3421
+ frozen: boolean;
3422
+ /** A list of the actual advanced customizations used */
3423
+ customizations: SiteCustomizationFeature[];
3424
+ };
3696
3425
  export interface Site {
3697
3426
  object: 'site';
3698
3427
  /** Unique identifier of the site */
@@ -3722,6 +3451,8 @@ export interface Site {
3722
3451
  createdAt: string;
3723
3452
  adaptiveContent?: SiteAdaptiveContent;
3724
3453
  ads?: SiteAds;
3454
+ /** A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified. */
3455
+ features: SiteFeature[];
3725
3456
  /** URLs associated with the object */
3726
3457
  urls: {
3727
3458
  /**
@@ -3936,7 +3667,9 @@ export interface TeamMember {
3936
3667
  }
3937
3668
  /** A member of a team in an organization, including its relationship to it */
3938
3669
  export interface OrganizationTeamMember {
3670
+ /** User information as an organization member */
3939
3671
  organization: OrganizationMember;
3672
+ /** User information as a team member */
3940
3673
  team: TeamMember;
3941
3674
  }
3942
3675
  export interface UpdateMembersInOrganizationTeam {
@@ -4095,36 +3828,23 @@ export interface BillingDiscount {
4095
3828
  /** Percent that will be deducted from the subtotal of the invoice */
4096
3829
  percentOff: number;
4097
3830
  }
4098
- /** These are all the features we check to determine the new pricing site type. */
4099
- export declare enum SiteToMigrateFeature {
4100
- Sections = "sections",
4101
- VisitorAuth = "visitor-auth",
4102
- Redirects = "redirects",
4103
- CustomHostname = "custom-hostname",
4104
- AISearch = "AI-search",
4105
- PDFExport = "PDF-export",
4106
- PageRatings = "page-ratings",
4107
- CustomLogo = "custom-logo",
4108
- CustomThemePreset = "custom-theme-preset",
4109
- CustomFonts = "custom-fonts",
4110
- CustomIcons = "custom-icons",
4111
- CustomFooterLogo = "custom-footer-logo",
4112
- CustomFooterCopyright = "custom-footer-copyright",
4113
- CustomFooterLinks = "custom-footer-links",
4114
- Unlisted = "unlisted",
4115
- ShareLinks = "share-links"
4116
- }
4117
3831
  export interface SiteToMigrate {
4118
3832
  object: 'site-to-migrate';
4119
3833
  site: Site;
4120
3834
  /** The new type of the site */
4121
3835
  newType: SiteType;
4122
- features: SiteToMigrateFeature[];
3836
+ features: SiteFeature[];
4123
3837
  }
4124
3838
  export interface BillingPortal {
4125
3839
  /** URL to the billing portal for an organization */
4126
3840
  url: string;
4127
3841
  }
3842
+ /** Search result representing a space. */
3843
+ export interface SearchSpaceResult {
3844
+ id: string;
3845
+ title: string;
3846
+ pages: SearchPageResult[];
3847
+ }
4128
3848
  export interface CreateSpace {
4129
3849
  /** @maxLength 50 */
4130
3850
  title?: string;
@@ -4274,6 +3994,50 @@ export interface OrganizationUsage {
4274
3994
  /** Team members usage metrics of an organization */
4275
3995
  teamMembers: OrganizationUsageTeamMembers;
4276
3996
  }
3997
+ export interface SearchAIQuery {
3998
+ query: string;
3999
+ /**
4000
+ * @deprecated
4001
+ * @maxItems 10
4002
+ */
4003
+ previousQueries?: string[];
4004
+ }
4005
+ /**
4006
+ * Page source
4007
+ * The source points to a page in a space.
4008
+ */
4009
+ export interface SearchAIAnswerSource {
4010
+ type: 'page';
4011
+ /** Short explanation of how the source was used to answer. */
4012
+ reason?: string;
4013
+ /** The page ID of the source. */
4014
+ page: string;
4015
+ /** The revision ID where the page was extracted from. */
4016
+ revision: string;
4017
+ /** The space ID owning the page. */
4018
+ space: string;
4019
+ /** The IDs of the sections of the page that were used to answer the question. */
4020
+ sections: string[];
4021
+ }
4022
+ /** Answer from AI for a question asked on a content. */
4023
+ export interface SearchAIAnswer {
4024
+ answer?: Document;
4025
+ followupQuestions: string[];
4026
+ /** The sources used to generate the answer. */
4027
+ sources: SearchAIAnswerSource[];
4028
+ }
4029
+ /** Questions recommended by the AI for the given content. */
4030
+ export interface SearchAIRecommendedQuestions {
4031
+ questions: string[];
4032
+ }
4033
+ export interface SearchAIRecommendedQuestionStream {
4034
+ question: string;
4035
+ }
4036
+ export interface SearchAIAnswerStream {
4037
+ type: 'answer';
4038
+ /** Answer from AI for a question asked on a content. */
4039
+ answer: SearchAIAnswer;
4040
+ }
4277
4041
  /** A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request. */
4278
4042
  export type BillingOperationPreviewResponse = {
4279
4043
  /** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
@@ -4308,9 +4072,19 @@ export declare enum CustomizationTheme {
4308
4072
  Bold = "bold",
4309
4073
  Gradient = "gradient"
4310
4074
  }
4075
+ /** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
4076
+ export type Color = string;
4077
+ export interface CustomizationThemedColor {
4078
+ light: Color;
4079
+ dark: Color;
4080
+ }
4311
4081
  export interface CustomizationTint {
4312
4082
  color: CustomizationThemedColor;
4313
4083
  }
4084
+ export declare enum CustomizationCorners {
4085
+ Straight = "straight",
4086
+ Rounded = "rounded"
4087
+ }
4314
4088
  /**
4315
4089
  * The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
4316
4090
  * - `default`: Links are colored in the primary color and feature an underline in the same color.
@@ -4320,6 +4094,32 @@ export declare enum CustomizationLinksStyle {
4320
4094
  Default = "default",
4321
4095
  Accent = "accent"
4322
4096
  }
4097
+ export declare enum CustomizationDefaultFont {
4098
+ ABCFavorit = "ABCFavorit",
4099
+ Inter = "Inter",
4100
+ Roboto = "Roboto",
4101
+ RobotoSlab = "RobotoSlab",
4102
+ OpenSans = "OpenSans",
4103
+ SourceSansPro = "SourceSansPro",
4104
+ Lato = "Lato",
4105
+ Ubuntu = "Ubuntu",
4106
+ Raleway = "Raleway",
4107
+ Merriweather = "Merriweather",
4108
+ Overpass = "Overpass",
4109
+ NotoSans = "NotoSans",
4110
+ IBMPlexSerif = "IBMPlexSerif",
4111
+ Poppins = "Poppins",
4112
+ FiraSans = "FiraSans"
4113
+ }
4114
+ export type CustomizationFont = CustomizationDefaultFont;
4115
+ /**
4116
+ * The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
4117
+ * @deprecated
4118
+ */
4119
+ export declare enum CustomizationBackground {
4120
+ Plain = "plain",
4121
+ Match = "match"
4122
+ }
4323
4123
  export declare enum CustomizationIconsStyle {
4324
4124
  Regular = "regular",
4325
4125
  Solid = "solid",
@@ -4328,22 +4128,77 @@ export declare enum CustomizationIconsStyle {
4328
4128
  Thin = "thin"
4329
4129
  }
4330
4130
  /**
4331
- * - `default`: No background, content sits directly against sidebar edge.
4332
- * - `filled`: Muted background color that extends to sidebar edges.
4131
+ * - `default`: No background, content sits directly against sidebar edge.
4132
+ * - `filled`: Muted background color that extends to sidebar edges.
4133
+ */
4134
+ export declare enum CustomizationSidebarBackgroundStyle {
4135
+ Default = "default",
4136
+ Filled = "filled"
4137
+ }
4138
+ /**
4139
+ * - `default`: Simple list items without special styling, groups are inset with a line.
4140
+ * - `pill`: Rounded capsule shape around selected/active items.
4141
+ * - `line`: Continuous line next to all items, with colored line part for selected/active items.
4142
+ */
4143
+ export declare enum CustomizationSidebarListStyle {
4144
+ Default = "default",
4145
+ Pill = "pill",
4146
+ Line = "line"
4147
+ }
4148
+ /**
4149
+ * The style of the search button.
4150
+ * - `prominent`: large search bar in the middle of the header, with less room for other header items,
4151
+ * - `subtle`: small search bar in the corner of the header, with more room for other header items.
4152
+ */
4153
+ export declare enum CustomizationSearchStyle {
4154
+ Prominent = "prominent",
4155
+ Subtle = "subtle"
4156
+ }
4157
+ /** Language for the UI element */
4158
+ export declare enum CustomizationLocale {
4159
+ En = "en",
4160
+ Fr = "fr",
4161
+ Es = "es",
4162
+ Zh = "zh",
4163
+ Ja = "ja",
4164
+ De = "de",
4165
+ Nl = "nl",
4166
+ No = "no",
4167
+ PtBr = "pt-br"
4168
+ }
4169
+ export interface CustomizationThemedURL {
4170
+ light: URL;
4171
+ dark: URL;
4172
+ }
4173
+ /**
4174
+ * The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
4175
+ * @deprecated
4333
4176
  */
4334
- export declare enum CustomizationSidebarBackgroundStyle {
4177
+ export declare enum CustomizationHeaderPreset {
4335
4178
  Default = "default",
4336
- Filled = "filled"
4179
+ Bold = "bold",
4180
+ Contrast = "contrast",
4181
+ Custom = "custom",
4182
+ None = "none"
4337
4183
  }
4338
- /**
4339
- * - `default`: Simple list items without special styling, groups are inset with a line.
4340
- * - `pill`: Rounded capsule shape around selected/active items.
4341
- * - `line`: Continuous line next to all items, with colored line part for selected/active items.
4342
- */
4343
- export declare enum CustomizationSidebarListStyle {
4344
- Default = "default",
4345
- Pill = "pill",
4346
- Line = "line"
4184
+ export interface CustomizationContentLink {
4185
+ title: string;
4186
+ /** A relative reference to content in GitBook. */
4187
+ to: ContentRef;
4188
+ }
4189
+ export interface CustomizationHeaderItem {
4190
+ title: string;
4191
+ style?: 'link' | 'button-primary' | 'button-secondary';
4192
+ to: ContentRef | null;
4193
+ links: CustomizationContentLink[];
4194
+ }
4195
+ export interface CustomizationFooterGroup {
4196
+ title: string;
4197
+ links: CustomizationContentLink[];
4198
+ }
4199
+ export declare enum CustomizationThemeMode {
4200
+ Light = "light",
4201
+ Dark = "dark"
4347
4202
  }
4348
4203
  export interface SiteCustomizationSettings {
4349
4204
  /** Title to use for the published site. If not defined, it'll fallback to the default content title. */
@@ -4390,6 +4245,12 @@ export interface SiteCustomizationSettings {
4390
4245
  */
4391
4246
  list: CustomizationSidebarListStyle;
4392
4247
  };
4248
+ /**
4249
+ * The style of the search button.
4250
+ * - `prominent`: large search bar in the middle of the header, with less room for other header items,
4251
+ * - `subtle`: small search bar in the corner of the header, with more room for other header items.
4252
+ */
4253
+ search: CustomizationSearchStyle;
4393
4254
  };
4394
4255
  internationalization: {
4395
4256
  /** Language for the UI element */
@@ -4589,42 +4450,6 @@ export interface UserSitePermission {
4589
4450
  /** The content or organization that enforced this permission level. */
4590
4451
  origin: SpacePointer | OrganizationPointer;
4591
4452
  }
4592
- export type SiteTrackPageView = {
4593
- /** Unique identifier of the page. */
4594
- pageId?: string;
4595
- /** Analytics info on the GitBook's content visitor. */
4596
- visitor: {
4597
- /** GitBook's unique identifier of the visitor. */
4598
- anonymousId: string;
4599
- /** The visitors cookies. */
4600
- cookies: Record<string, string>;
4601
- /**
4602
- * IP address of the visitor.
4603
- * If undefined, it'll default to the IP executing the request.
4604
- */
4605
- ip?: string;
4606
- /**
4607
- * User-agent of the visitor.
4608
- * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
4609
- */
4610
- userAgent: string;
4611
- /**
4612
- * Language of the visitor.
4613
- * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
4614
- */
4615
- language?: string;
4616
- };
4617
- /** The GitBook content's URL visited (including URL params). */
4618
- url: string;
4619
- /** The URL of referrer that linked to the page. */
4620
- referrer: string;
4621
- } & ({
4622
- /** Unique identifier of the space. */
4623
- spaceId: string;
4624
- } | {
4625
- /** The site-space that was viewed */
4626
- siteSpaceId: string;
4627
- });
4628
4453
  /** Analytics info on the GitBook's site session. */
4629
4454
  export interface SiteInsightsEventSession {
4630
4455
  /** GitBook's unique identifier of the visitor. */
@@ -4703,6 +4528,11 @@ export type SiteInsightsEventSearchOpenResult = SiteInsightsEventBase & {
4703
4528
  pageId: string;
4704
4529
  };
4705
4530
  };
4531
+ export declare enum PageFeedbackRating {
4532
+ Bad = "bad",
4533
+ Ok = "ok",
4534
+ Good = "good"
4535
+ }
4706
4536
  export type SiteInsightsEventPagePostFeedback = SiteInsightsEventBase & {
4707
4537
  type: 'page_post_feedback';
4708
4538
  feedback: {
@@ -5090,54 +4920,11 @@ export interface SiteInsightsVisitorSegment {
5090
4920
  /** The number of sessions for this visitor profile. */
5091
4921
  sessions: number;
5092
4922
  }
5093
- /**
5094
- * The interval for grouping the results
5095
- * @default "week"
5096
- */
5097
- export declare enum InsightsInterval {
5098
- Day = "day",
5099
- Week = "week",
5100
- Month = "month",
5101
- Year = "year"
5102
- }
5103
4923
  export interface SiteAdsStats {
5104
4924
  impressions: number;
5105
4925
  clicks: number;
5106
4926
  revenue: string;
5107
4927
  }
5108
- export interface SearchInsightsIntervals {
5109
- values?: {
5110
- /**
5111
- * The start date of this interval
5112
- * @format date-time
5113
- */
5114
- date: string;
5115
- /** The total number of searches during the interval. */
5116
- total: number;
5117
- /** Top queries searched for this content. */
5118
- queries: AnalyticsSearchQuery[];
5119
- }[];
5120
- }
5121
- /** Page entry in the content insights. */
5122
- export interface InsightsContentPage {
5123
- /** Unique identifier for the page in the revision */
5124
- id: string;
5125
- /** Title of the page */
5126
- title: string;
5127
- /** Complete path to access the page in the revision. */
5128
- path?: string;
5129
- /** Emoji of the page, if one has been set. */
5130
- emoji?: Emoji;
5131
- /** Icon of the page, if one has been set. */
5132
- icon?: Icon;
5133
- }
5134
- /** Analytics entry for an ask. */
5135
- export interface AnalyticsAsk {
5136
- /** The question that was asked. */
5137
- ask: string;
5138
- /** Number of times this question was asked. */
5139
- count: number;
5140
- }
5141
4928
  /**
5142
4929
  * The source path to redirect from.
5143
4930
  * @maxLength 512
@@ -5242,17 +5029,10 @@ export interface UnsplashImage {
5242
5029
  export interface HiveAccessToken {
5243
5030
  contents: Record<string, string>;
5244
5031
  }
5245
- /** The type of purge, e.g by tags or hosts */
5246
- export declare enum PurgeCDNCacheContextType {
5247
- Tags = "tags",
5248
- Hosts = "hosts"
5249
- }
5250
5032
  /** The context to send when purging the CDN Cache */
5251
5033
  export interface PurgeCDNCacheContext {
5252
- /** The type of purge, e.g by tags or hosts */
5253
- type: PurgeCDNCacheContextType;
5254
- /** The list of tags or hosts to purge */
5255
- values: string[];
5034
+ /** The list of tags to purge */
5035
+ tags: string[];
5256
5036
  }
5257
5037
  /** The Cloudflare Hostname status */
5258
5038
  export declare enum CloudflareHostnameStatus {
@@ -5449,6 +5229,72 @@ export interface OpenAPISpecContent {
5449
5229
  * @maxLength 64
5450
5230
  */
5451
5231
  export type SHA256 = string;
5232
+ export interface SpaceTrackPageView {
5233
+ /** Unique identifier of the page. */
5234
+ pageId?: string;
5235
+ /** Analytics info on the GitBook's content visitor. */
5236
+ visitor: {
5237
+ /** GitBook's unique identifier of the visitor. */
5238
+ anonymousId: string;
5239
+ /** The visitors cookies. */
5240
+ cookies: Record<string, string>;
5241
+ /**
5242
+ * IP address of the visitor.
5243
+ * If undefined, it'll default to the IP executing the request.
5244
+ */
5245
+ ip?: string;
5246
+ /**
5247
+ * User-agent of the visitor.
5248
+ * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
5249
+ */
5250
+ userAgent: string;
5251
+ /**
5252
+ * Language of the visitor.
5253
+ * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
5254
+ */
5255
+ language?: string;
5256
+ };
5257
+ /** The GitBook content's URL visited (including URL params). */
5258
+ url: string;
5259
+ /** The URL of referrer that linked to the page. */
5260
+ referrer: string;
5261
+ }
5262
+ export type SiteTrackPageView = {
5263
+ /** Unique identifier of the page. */
5264
+ pageId?: string;
5265
+ /** Analytics info on the GitBook's content visitor. */
5266
+ visitor: {
5267
+ /** GitBook's unique identifier of the visitor. */
5268
+ anonymousId: string;
5269
+ /** The visitors cookies. */
5270
+ cookies: Record<string, string>;
5271
+ /**
5272
+ * IP address of the visitor.
5273
+ * If undefined, it'll default to the IP executing the request.
5274
+ */
5275
+ ip?: string;
5276
+ /**
5277
+ * User-agent of the visitor.
5278
+ * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
5279
+ */
5280
+ userAgent: string;
5281
+ /**
5282
+ * Language of the visitor.
5283
+ * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
5284
+ */
5285
+ language?: string;
5286
+ };
5287
+ /** The GitBook content's URL visited (including URL params). */
5288
+ url: string;
5289
+ /** The URL of referrer that linked to the page. */
5290
+ referrer: string;
5291
+ } & ({
5292
+ /** Unique identifier of the space. */
5293
+ spaceId: string;
5294
+ } | {
5295
+ /** The site-space that was viewed */
5296
+ siteSpaceId: string;
5297
+ });
5452
5298
  export interface UpdateContentPublishingAuth {
5453
5299
  /**
5454
5300
  * A fallback URL that will be used if authentication fails.
@@ -5476,7 +5322,7 @@ export interface ContentPublishingAuth {
5476
5322
  */
5477
5323
  fallbackURL?: string;
5478
5324
  }
5479
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
5325
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
5480
5326
  /** Dependency for a computation, before its resolution. */
5481
5327
  export interface ComputedContentDependency {
5482
5328
  ref: ComputedContentDependencyRef;
@@ -5485,6 +5331,7 @@ export type InputPageBase = {
5485
5331
  /**
5486
5332
  * Optional unique identifier for the page.
5487
5333
  * It can be used to reference pages in document links.
5334
+ * @pattern ^[a-zA-Z0-9]{1,40}$
5488
5335
  */
5489
5336
  id?: string;
5490
5337
  /** @minLength 1 */
@@ -6001,33 +5848,113 @@ export interface SpaceContentRefsChannelData {
6001
5848
  revision: string;
6002
5849
  updatedAt: number;
6003
5850
  };
6004
- }
6005
- export interface ChangeRequestContentRefsChannelData {
6006
- channel: 'space-change-request-content-refs';
6007
- /** Data passed on the channel messages for content refs indexation. */
6008
- data: {
6009
- /** ID of the latest indexed revision */
6010
- revision: string;
6011
- updatedAt: number;
5851
+ }
5852
+ export interface ChangeRequestContentRefsChannelData {
5853
+ channel: 'space-change-request-content-refs';
5854
+ /** Data passed on the channel messages for content refs indexation. */
5855
+ data: {
5856
+ /** ID of the latest indexed revision */
5857
+ revision: string;
5858
+ updatedAt: number;
5859
+ };
5860
+ }
5861
+ export interface OrganizationAIIndexationChannelData {
5862
+ channel: 'organization-ai-indexation';
5863
+ data: {
5864
+ /** The space that was indexed */
5865
+ space: string;
5866
+ };
5867
+ }
5868
+ export interface APIChannelMutationData {
5869
+ channel: '*';
5870
+ /** Data passed on the channels associated to API endpoints. */
5871
+ data: {
5872
+ /** ID of the API execution that triggered the mutation. */
5873
+ executionId: string;
5874
+ };
5875
+ }
5876
+ /** Data passed through a realtime channel */
5877
+ export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | APIChannelMutationData;
5878
+ export interface CustomizationSettings {
5879
+ /** Inherit customization settings from the parent collection. */
5880
+ inherit: boolean;
5881
+ /** Title to use for the published content. If not defined, it'll fallback to the content title. */
5882
+ title?: string;
5883
+ styling: {
5884
+ primaryColor: CustomizationThemedColor;
5885
+ corners: CustomizationCorners;
5886
+ font: CustomizationDefaultFont;
5887
+ /** The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead. */
5888
+ background?: CustomizationBackground;
5889
+ };
5890
+ internationalization: {
5891
+ /** Language for the UI element */
5892
+ locale: CustomizationLocale;
5893
+ /** Inherit locale from the parent collection. */
5894
+ inherit: boolean;
5895
+ };
5896
+ favicon: {
5897
+ icon: CustomizationThemedURL;
5898
+ } | {
5899
+ /** Unicode codepoint or character of the emoji */
5900
+ emoji: Emoji;
5901
+ } | object;
5902
+ header: {
5903
+ /** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
5904
+ preset: CustomizationHeaderPreset;
5905
+ logo?: CustomizationThemedURL;
5906
+ backgroundColor?: CustomizationThemedColor;
5907
+ linkColor?: CustomizationThemedColor;
5908
+ links: CustomizationHeaderItem[];
5909
+ };
5910
+ footer: {
5911
+ logo?: CustomizationThemedURL;
5912
+ groups: CustomizationFooterGroup[];
5913
+ /** @maxLength 300 */
5914
+ copyright?: string;
5915
+ };
5916
+ themes: {
5917
+ default: CustomizationThemeMode;
5918
+ /** Should the reader be able to switch between dark and light mode */
5919
+ toggeable: boolean;
5920
+ };
5921
+ pdf: {
5922
+ /** If true, PDF export is enabled for the published content. */
5923
+ enabled: boolean;
5924
+ };
5925
+ feedback: {
5926
+ /** If true, feedback gathering is enabled */
5927
+ enabled: boolean;
5928
+ };
5929
+ aiSearch: {
5930
+ /** If true, AI search is enabled */
5931
+ enabled: boolean;
5932
+ };
5933
+ git: {
5934
+ /** Whether the public content should show a link to edit the content on the git provider set up in the GitSync */
5935
+ showEditLink: boolean;
5936
+ };
5937
+ pagination: {
5938
+ /** Whether the pagination navigation should be displayed on pages. */
5939
+ enabled: boolean;
6012
5940
  };
6013
- }
6014
- export interface OrganizationAIIndexationChannelData {
6015
- channel: 'organization-ai-indexation';
6016
- data: {
6017
- /** The space that was indexed */
6018
- space: string;
5941
+ trademark: {
5942
+ /** Whether the GitBook trademark ("Powered by GitBook") should be visible */
5943
+ enabled: boolean;
6019
5944
  };
6020
- }
6021
- export interface APIChannelMutationData {
6022
- channel: '*';
6023
- /** Data passed on the channels associated to API endpoints. */
6024
- data: {
6025
- /** ID of the API execution that triggered the mutation. */
6026
- executionId: string;
5945
+ privacyPolicy: {
5946
+ url?: URL;
5947
+ };
5948
+ socialPreview: {
5949
+ url?: URL;
6027
5950
  };
6028
5951
  }
6029
- /** Data passed through a realtime channel */
6030
- export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | APIChannelMutationData;
5952
+ /**
5953
+ * A user friendly name for the font family (e.g., "Open Sans", "Playfair Display")
5954
+ * @minLength 1
5955
+ * @maxLength 50
5956
+ */
5957
+ export type CustomizationFontFamilyName = string;
6031
5958
  /** The status of ads on the site */
6032
5959
  export declare enum SiteAdsStatus {
6033
5960
  Pending = "pending",
@@ -6036,6 +5963,12 @@ export declare enum SiteAdsStatus {
6036
5963
  Rejected = "rejected",
6037
5964
  Disabled = "disabled"
6038
5965
  }
5966
+ /**
5967
+ * The path of the file in the storage bucket
5968
+ * @minLength 1
5969
+ * @maxLength 512
5970
+ */
5971
+ export type StorageFileKey = string;
6039
5972
  export interface Seat {
6040
5973
  object: 'seat';
6041
5974
  /** The unique ID of the organization */
@@ -6151,88 +6084,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6151
6084
  * @secure
6152
6085
  */
6153
6086
  getApiInformation: (params?: RequestParams) => Promise<HttpResponse<ApiInformation, Error>>;
6154
- search: {
6155
- /**
6156
- * No description
6157
- *
6158
- * @tags search
6159
- * @name SearchContent
6160
- * @summary Search content across spaces that is accessible by the currently authenticated target
6161
- * @request GET:/search
6162
- * @deprecated
6163
- * @secure
6164
- */
6165
- searchContent: (query: {
6166
- /** @maxLength 512 */
6167
- query: string;
6168
- /** Identifier of the page results to fetch. */
6169
- page?: string;
6170
- /**
6171
- * The number of results per page
6172
- * @min 0
6173
- * @max 1000
6174
- */
6175
- limit?: number;
6176
- }, params?: RequestParams) => Promise<HttpResponse<List & {
6177
- items: SearchSpaceResult[];
6178
- }, Error>>;
6179
- /**
6180
- * No description
6181
- *
6182
- * @tags search
6183
- * @name AskQueryWithGet
6184
- * @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
6185
- * @request GET:/search/ask
6186
- * @deprecated
6187
- * @secure
6188
- */
6189
- askQueryWithGet: (query: {
6190
- query: string;
6191
- /** Output format for the content. */
6192
- format?: "document" | "markdown";
6193
- /** Return query details in the result */
6194
- details?: boolean;
6195
- }, params?: RequestParams) => Promise<HttpResponse<{
6196
- /** Answer from AI for a question asked on a content. */
6197
- answer?: SearchAIAnswer;
6198
- }, Error>>;
6199
- /**
6200
- * No description
6201
- *
6202
- * @tags search
6203
- * @name AskQuery
6204
- * @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
6205
- * @request POST:/search/ask
6206
- * @deprecated
6207
- * @secure
6208
- */
6209
- askQuery: (data: SearchAIQuery, query?: {
6210
- /** Output format for the content. */
6211
- format?: "document" | "markdown";
6212
- /** Return query details in the result */
6213
- details?: boolean;
6214
- }, params?: RequestParams) => Promise<HttpResponse<{
6215
- /** Answer from AI for a question asked on a content. */
6216
- answer?: SearchAIAnswer;
6217
- }, Error>>;
6218
- /**
6219
- * No description
6220
- *
6221
- * @tags search
6222
- * @name GetRecommendedQuestions
6223
- * @summary Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.
6224
- * @request POST:/search/questions
6225
- * @deprecated
6226
- * @secure
6227
- */
6228
- getRecommendedQuestions: (data: {
6229
- /**
6230
- * @maxItems 50
6231
- * @minItems 1
6232
- */
6233
- documents: string[];
6234
- }, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
6235
- };
6236
6087
  user: {
6237
6088
  /**
6238
6089
  * @description Returns details about the user associated with the authentication provided in the request's authorization header.
@@ -6430,82 +6281,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6430
6281
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6431
6282
  items: SearchPageResult[];
6432
6283
  }, Error>>;
6433
- /**
6434
- * No description
6435
- *
6436
- * @tags search
6437
- * @name AskQueryInSpaceWithGet
6438
- * @summary Ask a question to an AI within the context of the space.
6439
- * @request GET:/spaces/{spaceId}/search/ask
6440
- * @deprecated
6441
- * @secure
6442
- */
6443
- askQueryInSpaceWithGet: (spaceId: string, query: {
6444
- query: string;
6445
- /** Output format for the content. */
6446
- format?: "document" | "markdown";
6447
- /** Return query details in the result */
6448
- details?: boolean;
6449
- }, params?: RequestParams) => Promise<HttpResponse<{
6450
- /** Answer from AI for a question asked on a content. */
6451
- answer?: SearchAIAnswer;
6452
- }, Error>>;
6453
- /**
6454
- * No description
6455
- *
6456
- * @tags ask
6457
- * @name AskQueryInSpace
6458
- * @summary Ask a question to an AI within the context of the space.
6459
- * @request POST:/spaces/{spaceId}/search/ask
6460
- * @secure
6461
- */
6462
- askQueryInSpace: (spaceId: string, data: SearchAIQuery, query?: {
6463
- /** Output format for the content. */
6464
- format?: "document" | "markdown";
6465
- /** Return query details in the result */
6466
- details?: boolean;
6467
- }, params?: RequestParams) => Promise<HttpResponse<{
6468
- /** Answer from AI for a question asked on a content. */
6469
- answer?: SearchAIAnswer;
6470
- }, Error>>;
6471
- /**
6472
- * No description
6473
- *
6474
- * @tags search
6475
- * @name StreamAskInSpace
6476
- * @summary Ask a question to an AI within the context of the space and stream the answer as a Server-Sent Events URL.
6477
- * @request GET:/spaces/{spaceId}/search/ask/stream
6478
- * @secure
6479
- */
6480
- streamAskInSpace: (spaceId: string, query: {
6481
- query: string;
6482
- /** Output format for the content. */
6483
- format?: "document" | "markdown";
6484
- /** Ensure that the response is never null */
6485
- details?: boolean;
6486
- }, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
6487
- /**
6488
- * No description
6489
- *
6490
- * @tags search
6491
- * @name GetRecommendedQuestionsInSpace
6492
- * @summary Get a list of questions that can be asked in a space.
6493
- * @request GET:/spaces/{spaceId}/search/questions
6494
- * @deprecated
6495
- * @secure
6496
- */
6497
- getRecommendedQuestionsInSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
6498
- /**
6499
- * No description
6500
- *
6501
- * @tags search
6502
- * @name StreamRecommendedQuestionsInSpace
6503
- * @summary Stream a list of questions that can be asked in a space.
6504
- * @request GET:/spaces/{spaceId}/search/questions/stream
6505
- * @deprecated
6506
- * @secure
6507
- */
6508
- streamRecommendedQuestionsInSpace: (spaceId: string, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
6509
6284
  /**
6510
6285
  * No description
6511
6286
  *
@@ -6542,54 +6317,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6542
6317
  message: string;
6543
6318
  };
6544
6319
  }>>;
6545
- /**
6546
- * No description
6547
- *
6548
- * @tags analytics, spaces
6549
- * @name GetContentAnalyticsForSpaceById
6550
- * @summary Get content analytics for a given space.
6551
- * @request GET:/spaces/{spaceId}/insights/content
6552
- * @deprecated
6553
- * @secure
6554
- */
6555
- getContentAnalyticsForSpaceById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
6556
- /**
6557
- * No description
6558
- *
6559
- * @tags analytics, spaces
6560
- * @name GetSearchAnalyticsForSpaceById
6561
- * @summary Get an overview of the top search queries in a space.
6562
- * @request GET:/spaces/{spaceId}/insights/search
6563
- * @deprecated
6564
- * @secure
6565
- */
6566
- getSearchAnalyticsForSpaceById: (spaceId: string, query?: {
6567
- period?: AnalyticsSearchPeriod;
6568
- }, params?: RequestParams) => Promise<HttpResponse<AnalyticsTopSearches, Error>>;
6569
- /**
6570
- * @description Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.
6571
- *
6572
- * @tags analytics, spaces
6573
- * @name GetTrafficAnalyticsForSpaceById
6574
- * @summary Get traffic page views for a given space
6575
- * @request GET:/spaces/{spaceId}/insights/traffic
6576
- * @deprecated
6577
- * @secure
6578
- */
6579
- getTrafficAnalyticsForSpaceById: (spaceId: string, query?: {
6580
- interval?: AnalyticsTrafficInterval;
6581
- }, params?: RequestParams) => Promise<HttpResponse<AnalyticsTrafficPageViews, Error>>;
6582
- /**
6583
- * @description Track a page view in a space.
6584
- *
6585
- * @tags analytics, spaces
6586
- * @name TrackViewInSpaceById
6587
- * @summary Track a page view in a space
6588
- * @request POST:/spaces/{spaceId}/insights/track_view
6589
- * @deprecated
6590
- * @secure
6591
- */
6592
- trackViewInSpaceById: (spaceId: string, data: SpaceTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
6593
6320
  /**
6594
6321
  * No description
6595
6322
  *
@@ -8074,40 +7801,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8074
7801
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8075
7802
  items: UserContentPermission[];
8076
7803
  }, Error>>;
8077
- /**
8078
- * No description
8079
- *
8080
- * @tags spaces
8081
- * @name GetSpacePublishingCustomizationById
8082
- * @summary Get the publishing customization configuration for a space.
8083
- * @request GET:/spaces/{spaceId}/publishing/customization
8084
- * @deprecated
8085
- * @secure
8086
- */
8087
- getSpacePublishingCustomizationById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
8088
- error: {
8089
- /** @format int32 */
8090
- code: 400;
8091
- message: string;
8092
- };
8093
- }>>;
8094
- /**
8095
- * No description
8096
- *
8097
- * @tags spaces
8098
- * @name UpdateSpacePublishingCustomizationById
8099
- * @summary Update the publishing customization configuration for a space.
8100
- * @request PUT:/spaces/{spaceId}/publishing/customization
8101
- * @deprecated
8102
- * @secure
8103
- */
8104
- updateSpacePublishingCustomizationById: (spaceId: string, data: CustomizationSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
8105
- error: {
8106
- /** @format int32 */
8107
- code: 400;
8108
- message: string;
8109
- };
8110
- }>>;
8111
7804
  /**
8112
7805
  * No description
8113
7806
  *
@@ -8175,28 +7868,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8175
7868
  * @secure
8176
7869
  */
8177
7870
  updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8178
- /**
8179
- * No description
8180
- *
8181
- * @tags spaces
8182
- * @name GetPageFeedback
8183
- * @summary Get a page feedback by a visitor.
8184
- * @request GET:/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}
8185
- * @secure
8186
- */
8187
- getPageFeedback: (spaceId: string, pageId: string, visitorId: string, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
8188
- /**
8189
- * No description
8190
- *
8191
- * @tags spaces
8192
- * @name CreatePageFeedback
8193
- * @summary Create a page feedback by a visitor.
8194
- * @request PUT:/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}
8195
- * @secure
8196
- */
8197
- createPageFeedback: (spaceId: string, pageId: string, visitorId: string, data: {
8198
- rating: PageFeedbackRating;
8199
- }, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
8200
7871
  /**
8201
7872
  * No description
8202
7873
  *
@@ -8577,6 +8248,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8577
8248
  blocks?: boolean;
8578
8249
  /** If true, returns only integrations with contentSources. If false, returns only integrations without contentSources. */
8579
8250
  contentSources?: boolean;
8251
+ /** If defined, only list integrations owned by the given organization. */
8252
+ owner?: string;
8580
8253
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8581
8254
  items: Integration[];
8582
8255
  }, Error>>;
@@ -9679,7 +9352,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9679
9352
  *
9680
9353
  * @tags spaces
9681
9354
  * @name ListOrganizationIntegrations
9682
- * @summary List integrations owned by an organization
9355
+ * @summary List integrations available to an organization.
9683
9356
  * @request GET:/orgs/{organizationId}/integrations
9684
9357
  * @secure
9685
9358
  */
@@ -9694,6 +9367,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9694
9367
  limit?: number;
9695
9368
  /** A search string to filter integrations by name */
9696
9369
  search?: string;
9370
+ /** Filter the integrations by category */
9371
+ category?: IntegrationCategory;
9372
+ /**
9373
+ * Filter the integrations by block's domains
9374
+ * @maxLength 100
9375
+ * @pattern ^[a-zA-Z0-9-_.]+$
9376
+ */
9377
+ blockDomain?: string;
9378
+ /** If true, returns only integrations with blocks. If false, returns only integrations without blocks. */
9379
+ blocks?: boolean;
9380
+ /** If true, returns only integrations with contentSources. If false, returns only integrations without contentSources. */
9381
+ contentSources?: boolean;
9382
+ /** If defined, only list integrations owned by the given organization. */
9383
+ owner?: string;
9697
9384
  }, params?: RequestParams) => Promise<HttpResponse<List & {
9698
9385
  items: Integration[];
9699
9386
  }, Error>>;
@@ -10654,6 +10341,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10654
10341
  background?: CustomizationSidebarBackgroundStyle | null;
10655
10342
  list?: CustomizationSidebarListStyle | null;
10656
10343
  };
10344
+ /** Styling for the search button at the top of the site. */
10345
+ search?: CustomizationSearchStyle | null;
10657
10346
  /** The style of background to use. Set to null to reset the override. */
10658
10347
  background?: CustomizationBackground | null;
10659
10348
  };
@@ -10752,30 +10441,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10752
10441
  message: string;
10753
10442
  };
10754
10443
  }>>;
10755
- /**
10756
- * No description
10757
- *
10758
- * @tags analytics, sites
10759
- * @name GetContentAnalyticsForSiteSpaceById
10760
- * @summary Get page traffic and ratings for a given site space.
10761
- * @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content
10762
- * @secure
10763
- */
10764
- getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, query?: {
10765
- period?: AnalyticsSearchPeriod;
10766
- }, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
10767
- /**
10768
- * No description
10769
- *
10770
- * @tags sites
10771
- * @name CreateSitesPageFeedback
10772
- * @summary Create a page feedback by a visitor on a site.
10773
- * @request PUT:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/pages/{pageId}/feedbacks/{visitorId}
10774
- * @secure
10775
- */
10776
- createSitesPageFeedback: (organizationId: string, siteId: string, siteSpaceId: string, pageId: string, visitorId: string, data: {
10777
- rating: PageFeedbackRating;
10778
- }, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
10779
10444
  /**
10780
10445
  * No description
10781
10446
  *
@@ -10872,17 +10537,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10872
10537
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10873
10538
  items: UserSitePermission[];
10874
10539
  }, Error>>;
10875
- /**
10876
- * @description Track a page view in a site.
10877
- *
10878
- * @tags analytics, sites
10879
- * @name TrackViewInSiteById
10880
- * @summary Track a page view in a site
10881
- * @request POST:/orgs/{organizationId}/sites/{siteId}/insights/track_view
10882
- * @deprecated
10883
- * @secure
10884
- */
10885
- trackViewInSiteById: (organizationId: string, siteId: string, data: SiteTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
10886
10540
  /**
10887
10541
  * @description Track events in a site.
10888
10542
  *
@@ -10917,20 +10571,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10917
10571
  listSiteVisitorSegments: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<List & {
10918
10572
  items: SiteInsightsVisitorSegment[];
10919
10573
  }, any>>;
10920
- /**
10921
- * No description
10922
- *
10923
- * @tags analytics, sites
10924
- * @name GetSearchAnalyticsForSiteById
10925
- * @summary Get an overview of the top search queries in a site.
10926
- * @request GET:/orgs/{organizationId}/sites/{siteId}/insights/search
10927
- * @secure
10928
- */
10929
- getSearchAnalyticsForSiteById: (organizationId: string, siteId: string, query?: {
10930
- period?: AnalyticsSearchPeriod;
10931
- /** The site spaces to filter the search on */
10932
- siteSpaceIds?: string[];
10933
- }, params?: RequestParams) => Promise<HttpResponse<AnalyticsTopSearches, Error>>;
10934
10574
  /**
10935
10575
  * No description
10936
10576
  *
@@ -11373,11 +11013,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11373
11013
  * @default false
11374
11014
  */
11375
11015
  redirectOnError?: boolean;
11376
- /**
11377
- * When true the HTTP response can be cached by the CDN
11378
- * @default false
11379
- */
11380
- cache?: boolean;
11381
11016
  }, params?: RequestParams) => Promise<HttpResponse<PublishedSiteContentLookup, Error | {
11382
11017
  error: {
11383
11018
  /** @format int32 */