@gitbook/api 0.96.1 → 0.97.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 +871 -1269
- package/dist/index.cjs +87 -284
- package/dist/index.d.ts +13 -1
- package/dist/index.js +85 -279
- package/package.json +10 -1
- package/spec/openapi.json +2799 -4021
- package/spec/openapi.yaml +2157 -2913
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
|
-
/**
|
|
23
|
-
export
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|
183
|
+
* URL of the space in the API
|
|
32
184
|
* @format uri
|
|
33
185
|
*/
|
|
34
|
-
|
|
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
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
|
67
|
-
|
|
68
|
-
|
|
244
|
+
export interface CollectionPointer {
|
|
245
|
+
type: 'collection';
|
|
246
|
+
/** Unique identifier for the collection */
|
|
247
|
+
collection: string;
|
|
69
248
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
249
|
+
/** Position at which to insert an item */
|
|
250
|
+
export interface ContentPosition {
|
|
251
|
+
before?: SpacePointer | CollectionPointer;
|
|
252
|
+
after?: SpacePointer | CollectionPointer;
|
|
73
253
|
}
|
|
74
|
-
|
|
75
|
-
|
|
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 {
|
|
@@ -633,436 +1020,43 @@ export interface DocumentBlockOpenAPIOperation {
|
|
|
633
1020
|
export interface DocumentBlockReusableContent {
|
|
634
1021
|
object: 'block';
|
|
635
1022
|
type: 'reusable-content';
|
|
636
|
-
key?: string;
|
|
637
|
-
data: {
|
|
638
|
-
ref: ContentRefReusableContent;
|
|
639
|
-
};
|
|
640
|
-
isVoid: true;
|
|
641
|
-
}
|
|
642
|
-
export interface DocumentBlockStepperStep {
|
|
643
|
-
object: 'block';
|
|
644
|
-
type: 'stepper-step';
|
|
645
|
-
key?: string;
|
|
646
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
|
|
647
|
-
data: {
|
|
648
|
-
icon?: string;
|
|
649
|
-
};
|
|
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;
|
|
667
|
-
};
|
|
668
|
-
nodes: DocumentBlocksTopLevels[];
|
|
669
|
-
}
|
|
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;
|
|
1023
|
+
key?: string;
|
|
1024
|
+
data: {
|
|
1025
|
+
ref: ContentRefReusableContent;
|
|
1026
|
+
};
|
|
1027
|
+
isVoid: true;
|
|
1020
1028
|
}
|
|
1021
|
-
export interface
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
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;
|
|
1029
|
+
export interface DocumentBlockStepperStep {
|
|
1030
|
+
object: 'block';
|
|
1031
|
+
type: 'stepper-step';
|
|
1032
|
+
key?: string;
|
|
1033
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
|
|
1034
|
+
data: {
|
|
1035
|
+
icon?: string;
|
|
1036
|
+
};
|
|
1037
|
+
isVoid?: false;
|
|
1041
1038
|
}
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
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;
|
|
1039
|
+
export interface DocumentBlockStepper {
|
|
1040
|
+
object: 'block';
|
|
1041
|
+
type: 'stepper';
|
|
1042
|
+
key?: string;
|
|
1043
|
+
nodes: DocumentBlockStepperStep[];
|
|
1044
|
+
isVoid?: false;
|
|
1045
|
+
data?: object;
|
|
1065
1046
|
}
|
|
1047
|
+
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
|
|
1048
|
+
export interface JSONDocument {
|
|
1049
|
+
object: 'document';
|
|
1050
|
+
data: {
|
|
1051
|
+
/** The schema version of the document. If undefined, the document is considered to be of the latest schema version. */
|
|
1052
|
+
schemaVersion?: number;
|
|
1053
|
+
[key: string]: any;
|
|
1054
|
+
};
|
|
1055
|
+
nodes: DocumentBlocksTopLevels[];
|
|
1056
|
+
}
|
|
1057
|
+
export type Document = MarkdownDocument | {
|
|
1058
|
+
document: JSONDocument;
|
|
1059
|
+
} | object;
|
|
1066
1060
|
export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
1067
1061
|
/** @deprecated */
|
|
1068
1062
|
kind: 'sheet';
|
|
@@ -1188,148 +1182,6 @@ export interface RevisionPageDocumentCover {
|
|
|
1188
1182
|
/** Vertical position of the cover image. */
|
|
1189
1183
|
yPos: number;
|
|
1190
1184
|
}
|
|
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
1185
|
export type RevisionPageGroup = RevisionPageBase & {
|
|
1334
1186
|
/** @deprecated */
|
|
1335
1187
|
kind: 'group';
|
|
@@ -1775,6 +1627,7 @@ export interface ContentLocationReusableContent {
|
|
|
1775
1627
|
* Slug used as reference
|
|
1776
1628
|
* @minLength 1
|
|
1777
1629
|
* @maxLength 100
|
|
1630
|
+
* @pattern ^[a-z0-9]+(?:-[a-z0-9]+)*$
|
|
1778
1631
|
*/
|
|
1779
1632
|
export type OpenAPISpecSlug = string;
|
|
1780
1633
|
/** Processing state */
|
|
@@ -2302,196 +2155,41 @@ export interface RevisionSemanticChangeCustomFieldsEdited {
|
|
|
2302
2155
|
type: 'custom_fields_edited';
|
|
2303
2156
|
customFields: ChangeAttributeCustomFields;
|
|
2304
2157
|
}
|
|
2305
|
-
export interface ChangedRevisionReusableContent {
|
|
2306
|
-
id: string;
|
|
2307
|
-
title: string;
|
|
2308
|
-
document?: string;
|
|
2309
|
-
}
|
|
2310
|
-
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 {
|
|
2158
|
+
export interface ChangedRevisionReusableContent {
|
|
2159
|
+
id: string;
|
|
2404
2160
|
title: string;
|
|
2405
|
-
|
|
2406
|
-
to: ContentRef;
|
|
2161
|
+
document?: string;
|
|
2407
2162
|
}
|
|
2408
|
-
export interface
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
to: ContentRef | null;
|
|
2412
|
-
links: CustomizationContentLink[];
|
|
2163
|
+
export interface RevisionSemanticChangeReusableContentCreated {
|
|
2164
|
+
type: 'reusable_content_created';
|
|
2165
|
+
reusableContent: ChangedRevisionReusableContent;
|
|
2413
2166
|
}
|
|
2414
|
-
export interface
|
|
2415
|
-
|
|
2416
|
-
|
|
2167
|
+
export interface RevisionSemanticChangeReusableContentDeleted {
|
|
2168
|
+
type: 'reusable_content_deleted';
|
|
2169
|
+
reusableContent: ChangedRevisionReusableContent;
|
|
2417
2170
|
}
|
|
2418
|
-
export
|
|
2419
|
-
|
|
2420
|
-
|
|
2171
|
+
export interface RevisionReusableContentChangeAttributes {
|
|
2172
|
+
title?: ChangeAttributeString;
|
|
2173
|
+
document?: ChangeAttributeString;
|
|
2421
2174
|
}
|
|
2422
|
-
export interface
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
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
|
-
};
|
|
2175
|
+
export interface RevisionSemanticChangeReusableContentEdited {
|
|
2176
|
+
type: 'reusable_content_edited';
|
|
2177
|
+
reusableContent: ChangedRevisionReusableContent;
|
|
2178
|
+
attributes: RevisionReusableContentChangeAttributes;
|
|
2179
|
+
}
|
|
2180
|
+
export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited;
|
|
2181
|
+
export interface RevisionSemanticChanges {
|
|
2182
|
+
changes: RevisionSemanticChange[];
|
|
2183
|
+
/** How many changes were omitted because above the result limit */
|
|
2184
|
+
more?: number;
|
|
2185
|
+
}
|
|
2186
|
+
export interface UpdateCommentReplySchema {
|
|
2187
|
+
/** Content of the comment. */
|
|
2188
|
+
body?: Document;
|
|
2189
|
+
/** Reactions to add to the comment. */
|
|
2190
|
+
addedReactions?: string[];
|
|
2191
|
+
/** Reactions to remove from the comment. */
|
|
2192
|
+
removedReactions?: string[];
|
|
2495
2193
|
}
|
|
2496
2194
|
/**
|
|
2497
2195
|
* Title of the integration
|
|
@@ -2794,28 +2492,6 @@ export interface UpdateCustomFieldValues {
|
|
|
2794
2492
|
value: CustomFieldValue;
|
|
2795
2493
|
}>;
|
|
2796
2494
|
}
|
|
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
2495
|
/** Secrets stored on the integration and passed at runtime. */
|
|
2820
2496
|
export type IntegrationSecrets = Record<string, string>;
|
|
2821
2497
|
export interface PublishIntegration {
|
|
@@ -3437,6 +3113,10 @@ export interface ContentKitCard {
|
|
|
3437
3113
|
/** Buttons displayed in the top right corner of the card. */
|
|
3438
3114
|
buttons?: ContentKitButton[];
|
|
3439
3115
|
}
|
|
3116
|
+
/** Built-in sources that can be used to provide a ContentKitSelect. */
|
|
3117
|
+
export interface ContentKitBuiltInSource {
|
|
3118
|
+
source: 'openapi';
|
|
3119
|
+
}
|
|
3440
3120
|
/** An individual option in a select element */
|
|
3441
3121
|
export interface ContentKitSelectOption {
|
|
3442
3122
|
id: string;
|
|
@@ -3459,8 +3139,8 @@ export interface ContentKitSelect {
|
|
|
3459
3139
|
multiple?: boolean;
|
|
3460
3140
|
/** Should the filter input be allowed to be selected as an option. */
|
|
3461
3141
|
acceptInput?: boolean;
|
|
3462
|
-
/**
|
|
3463
|
-
options: ContentKitSelectOption[] | {
|
|
3142
|
+
/** Options to be displayed in the select. */
|
|
3143
|
+
options: ContentKitBuiltInSource | ContentKitSelectOption[] | {
|
|
3464
3144
|
/** External source of options. The URL should respond with an array of options. */
|
|
3465
3145
|
url: string | ContentKitURL;
|
|
3466
3146
|
};
|
|
@@ -3693,6 +3373,35 @@ export type SiteAds = {
|
|
|
3693
3373
|
/** The ad network zone ID */
|
|
3694
3374
|
zoneId: string;
|
|
3695
3375
|
};
|
|
3376
|
+
/** A list of all premium customizations. */
|
|
3377
|
+
export declare enum SiteCustomizationFeature {
|
|
3378
|
+
HeaderLogo = "header-logo",
|
|
3379
|
+
ThemePreset = "theme-preset",
|
|
3380
|
+
CustomFonts = "custom-fonts",
|
|
3381
|
+
CustomIcons = "custom-icons",
|
|
3382
|
+
FooterLogo = "footer-logo",
|
|
3383
|
+
FooterLinks = "footer-links",
|
|
3384
|
+
FooterCopyright = "footer-copyright",
|
|
3385
|
+
SemanticColors = "semantic-colors"
|
|
3386
|
+
}
|
|
3387
|
+
/** A site feature and the plan it is available on. */
|
|
3388
|
+
export type SiteFeature = {
|
|
3389
|
+
/** The feature identifier, matching the feature table keys in the pricing definition */
|
|
3390
|
+
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';
|
|
3391
|
+
/** The type of the site */
|
|
3392
|
+
plan: SiteType;
|
|
3393
|
+
/** A frozen feature is still enabled but cannot be changed or modified. */
|
|
3394
|
+
frozen: boolean;
|
|
3395
|
+
} | {
|
|
3396
|
+
/** The feature identifier, always set to `sites-advanced-customization` */
|
|
3397
|
+
id: 'sites-advanced-customization';
|
|
3398
|
+
/** The type of the site */
|
|
3399
|
+
plan: SiteType;
|
|
3400
|
+
/** A frozen feature is still enabled but cannot be changed or modified. */
|
|
3401
|
+
frozen: boolean;
|
|
3402
|
+
/** A list of the actual advanced customizations used */
|
|
3403
|
+
customizations: SiteCustomizationFeature[];
|
|
3404
|
+
};
|
|
3696
3405
|
export interface Site {
|
|
3697
3406
|
object: 'site';
|
|
3698
3407
|
/** Unique identifier of the site */
|
|
@@ -3722,6 +3431,8 @@ export interface Site {
|
|
|
3722
3431
|
createdAt: string;
|
|
3723
3432
|
adaptiveContent?: SiteAdaptiveContent;
|
|
3724
3433
|
ads?: SiteAds;
|
|
3434
|
+
/** 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. */
|
|
3435
|
+
features: SiteFeature[];
|
|
3725
3436
|
/** URLs associated with the object */
|
|
3726
3437
|
urls: {
|
|
3727
3438
|
/**
|
|
@@ -4095,36 +3806,23 @@ export interface BillingDiscount {
|
|
|
4095
3806
|
/** Percent that will be deducted from the subtotal of the invoice */
|
|
4096
3807
|
percentOff: number;
|
|
4097
3808
|
}
|
|
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
3809
|
export interface SiteToMigrate {
|
|
4118
3810
|
object: 'site-to-migrate';
|
|
4119
3811
|
site: Site;
|
|
4120
3812
|
/** The new type of the site */
|
|
4121
3813
|
newType: SiteType;
|
|
4122
|
-
features:
|
|
3814
|
+
features: SiteFeature[];
|
|
4123
3815
|
}
|
|
4124
3816
|
export interface BillingPortal {
|
|
4125
3817
|
/** URL to the billing portal for an organization */
|
|
4126
3818
|
url: string;
|
|
4127
3819
|
}
|
|
3820
|
+
/** Search result representing a space. */
|
|
3821
|
+
export interface SearchSpaceResult {
|
|
3822
|
+
id: string;
|
|
3823
|
+
title: string;
|
|
3824
|
+
pages: SearchPageResult[];
|
|
3825
|
+
}
|
|
4128
3826
|
export interface CreateSpace {
|
|
4129
3827
|
/** @maxLength 50 */
|
|
4130
3828
|
title?: string;
|
|
@@ -4274,6 +3972,50 @@ export interface OrganizationUsage {
|
|
|
4274
3972
|
/** Team members usage metrics of an organization */
|
|
4275
3973
|
teamMembers: OrganizationUsageTeamMembers;
|
|
4276
3974
|
}
|
|
3975
|
+
export interface SearchAIQuery {
|
|
3976
|
+
query: string;
|
|
3977
|
+
/**
|
|
3978
|
+
* @deprecated
|
|
3979
|
+
* @maxItems 10
|
|
3980
|
+
*/
|
|
3981
|
+
previousQueries?: string[];
|
|
3982
|
+
}
|
|
3983
|
+
/**
|
|
3984
|
+
* Page source
|
|
3985
|
+
* The source points to a page in a space.
|
|
3986
|
+
*/
|
|
3987
|
+
export interface SearchAIAnswerSource {
|
|
3988
|
+
type: 'page';
|
|
3989
|
+
/** Short explanation of how the source was used to answer. */
|
|
3990
|
+
reason?: string;
|
|
3991
|
+
/** The page ID of the source. */
|
|
3992
|
+
page: string;
|
|
3993
|
+
/** The revision ID where the page was extracted from. */
|
|
3994
|
+
revision: string;
|
|
3995
|
+
/** The space ID owning the page. */
|
|
3996
|
+
space: string;
|
|
3997
|
+
/** The IDs of the sections of the page that were used to answer the question. */
|
|
3998
|
+
sections: string[];
|
|
3999
|
+
}
|
|
4000
|
+
/** Answer from AI for a question asked on a content. */
|
|
4001
|
+
export interface SearchAIAnswer {
|
|
4002
|
+
answer?: Document;
|
|
4003
|
+
followupQuestions: string[];
|
|
4004
|
+
/** The sources used to generate the answer. */
|
|
4005
|
+
sources: SearchAIAnswerSource[];
|
|
4006
|
+
}
|
|
4007
|
+
/** Questions recommended by the AI for the given content. */
|
|
4008
|
+
export interface SearchAIRecommendedQuestions {
|
|
4009
|
+
questions: string[];
|
|
4010
|
+
}
|
|
4011
|
+
export interface SearchAIRecommendedQuestionStream {
|
|
4012
|
+
question: string;
|
|
4013
|
+
}
|
|
4014
|
+
export interface SearchAIAnswerStream {
|
|
4015
|
+
type: 'answer';
|
|
4016
|
+
/** Answer from AI for a question asked on a content. */
|
|
4017
|
+
answer: SearchAIAnswer;
|
|
4018
|
+
}
|
|
4277
4019
|
/** 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
4020
|
export type BillingOperationPreviewResponse = {
|
|
4279
4021
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
@@ -4308,9 +4050,19 @@ export declare enum CustomizationTheme {
|
|
|
4308
4050
|
Bold = "bold",
|
|
4309
4051
|
Gradient = "gradient"
|
|
4310
4052
|
}
|
|
4053
|
+
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
4054
|
+
export type Color = string;
|
|
4055
|
+
export interface CustomizationThemedColor {
|
|
4056
|
+
light: Color;
|
|
4057
|
+
dark: Color;
|
|
4058
|
+
}
|
|
4311
4059
|
export interface CustomizationTint {
|
|
4312
4060
|
color: CustomizationThemedColor;
|
|
4313
4061
|
}
|
|
4062
|
+
export declare enum CustomizationCorners {
|
|
4063
|
+
Straight = "straight",
|
|
4064
|
+
Rounded = "rounded"
|
|
4065
|
+
}
|
|
4314
4066
|
/**
|
|
4315
4067
|
* The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
|
|
4316
4068
|
* - `default`: Links are colored in the primary color and feature an underline in the same color.
|
|
@@ -4320,6 +4072,32 @@ export declare enum CustomizationLinksStyle {
|
|
|
4320
4072
|
Default = "default",
|
|
4321
4073
|
Accent = "accent"
|
|
4322
4074
|
}
|
|
4075
|
+
export declare enum CustomizationDefaultFont {
|
|
4076
|
+
ABCFavorit = "ABCFavorit",
|
|
4077
|
+
Inter = "Inter",
|
|
4078
|
+
Roboto = "Roboto",
|
|
4079
|
+
RobotoSlab = "RobotoSlab",
|
|
4080
|
+
OpenSans = "OpenSans",
|
|
4081
|
+
SourceSansPro = "SourceSansPro",
|
|
4082
|
+
Lato = "Lato",
|
|
4083
|
+
Ubuntu = "Ubuntu",
|
|
4084
|
+
Raleway = "Raleway",
|
|
4085
|
+
Merriweather = "Merriweather",
|
|
4086
|
+
Overpass = "Overpass",
|
|
4087
|
+
NotoSans = "NotoSans",
|
|
4088
|
+
IBMPlexSerif = "IBMPlexSerif",
|
|
4089
|
+
Poppins = "Poppins",
|
|
4090
|
+
FiraSans = "FiraSans"
|
|
4091
|
+
}
|
|
4092
|
+
export type CustomizationFont = CustomizationDefaultFont;
|
|
4093
|
+
/**
|
|
4094
|
+
* The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
|
|
4095
|
+
* @deprecated
|
|
4096
|
+
*/
|
|
4097
|
+
export declare enum CustomizationBackground {
|
|
4098
|
+
Plain = "plain",
|
|
4099
|
+
Match = "match"
|
|
4100
|
+
}
|
|
4323
4101
|
export declare enum CustomizationIconsStyle {
|
|
4324
4102
|
Regular = "regular",
|
|
4325
4103
|
Solid = "solid",
|
|
@@ -4327,23 +4105,69 @@ export declare enum CustomizationIconsStyle {
|
|
|
4327
4105
|
Light = "light",
|
|
4328
4106
|
Thin = "thin"
|
|
4329
4107
|
}
|
|
4330
|
-
/**
|
|
4331
|
-
* - `default`: No background, content sits directly against sidebar edge.
|
|
4332
|
-
* - `filled`: Muted background color that extends to sidebar edges.
|
|
4333
|
-
*/
|
|
4334
|
-
export declare enum CustomizationSidebarBackgroundStyle {
|
|
4335
|
-
Default = "default",
|
|
4336
|
-
Filled = "filled"
|
|
4108
|
+
/**
|
|
4109
|
+
* - `default`: No background, content sits directly against sidebar edge.
|
|
4110
|
+
* - `filled`: Muted background color that extends to sidebar edges.
|
|
4111
|
+
*/
|
|
4112
|
+
export declare enum CustomizationSidebarBackgroundStyle {
|
|
4113
|
+
Default = "default",
|
|
4114
|
+
Filled = "filled"
|
|
4115
|
+
}
|
|
4116
|
+
/**
|
|
4117
|
+
* - `default`: Simple list items without special styling, groups are inset with a line.
|
|
4118
|
+
* - `pill`: Rounded capsule shape around selected/active items.
|
|
4119
|
+
* - `line`: Continuous line next to all items, with colored line part for selected/active items.
|
|
4120
|
+
*/
|
|
4121
|
+
export declare enum CustomizationSidebarListStyle {
|
|
4122
|
+
Default = "default",
|
|
4123
|
+
Pill = "pill",
|
|
4124
|
+
Line = "line"
|
|
4125
|
+
}
|
|
4126
|
+
/** Language for the UI element */
|
|
4127
|
+
export declare enum CustomizationLocale {
|
|
4128
|
+
En = "en",
|
|
4129
|
+
Fr = "fr",
|
|
4130
|
+
Es = "es",
|
|
4131
|
+
Zh = "zh",
|
|
4132
|
+
Ja = "ja",
|
|
4133
|
+
De = "de",
|
|
4134
|
+
Nl = "nl",
|
|
4135
|
+
No = "no",
|
|
4136
|
+
PtBr = "pt-br"
|
|
4137
|
+
}
|
|
4138
|
+
export interface CustomizationThemedURL {
|
|
4139
|
+
light: URL;
|
|
4140
|
+
dark: URL;
|
|
4337
4141
|
}
|
|
4338
4142
|
/**
|
|
4339
|
-
*
|
|
4340
|
-
*
|
|
4341
|
-
* - `line`: Continuous line next to all items, with colored line part for selected/active items.
|
|
4143
|
+
* The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
|
|
4144
|
+
* @deprecated
|
|
4342
4145
|
*/
|
|
4343
|
-
export declare enum
|
|
4146
|
+
export declare enum CustomizationHeaderPreset {
|
|
4344
4147
|
Default = "default",
|
|
4345
|
-
|
|
4346
|
-
|
|
4148
|
+
Bold = "bold",
|
|
4149
|
+
Contrast = "contrast",
|
|
4150
|
+
Custom = "custom",
|
|
4151
|
+
None = "none"
|
|
4152
|
+
}
|
|
4153
|
+
export interface CustomizationContentLink {
|
|
4154
|
+
title: string;
|
|
4155
|
+
/** A relative reference to content in GitBook. */
|
|
4156
|
+
to: ContentRef;
|
|
4157
|
+
}
|
|
4158
|
+
export interface CustomizationHeaderItem {
|
|
4159
|
+
title: string;
|
|
4160
|
+
style?: 'link' | 'button-primary' | 'button-secondary';
|
|
4161
|
+
to: ContentRef | null;
|
|
4162
|
+
links: CustomizationContentLink[];
|
|
4163
|
+
}
|
|
4164
|
+
export interface CustomizationFooterGroup {
|
|
4165
|
+
title: string;
|
|
4166
|
+
links: CustomizationContentLink[];
|
|
4167
|
+
}
|
|
4168
|
+
export declare enum CustomizationThemeMode {
|
|
4169
|
+
Light = "light",
|
|
4170
|
+
Dark = "dark"
|
|
4347
4171
|
}
|
|
4348
4172
|
export interface SiteCustomizationSettings {
|
|
4349
4173
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
@@ -4589,42 +4413,6 @@ export interface UserSitePermission {
|
|
|
4589
4413
|
/** The content or organization that enforced this permission level. */
|
|
4590
4414
|
origin: SpacePointer | OrganizationPointer;
|
|
4591
4415
|
}
|
|
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
4416
|
/** Analytics info on the GitBook's site session. */
|
|
4629
4417
|
export interface SiteInsightsEventSession {
|
|
4630
4418
|
/** GitBook's unique identifier of the visitor. */
|
|
@@ -4703,6 +4491,11 @@ export type SiteInsightsEventSearchOpenResult = SiteInsightsEventBase & {
|
|
|
4703
4491
|
pageId: string;
|
|
4704
4492
|
};
|
|
4705
4493
|
};
|
|
4494
|
+
export declare enum PageFeedbackRating {
|
|
4495
|
+
Bad = "bad",
|
|
4496
|
+
Ok = "ok",
|
|
4497
|
+
Good = "good"
|
|
4498
|
+
}
|
|
4706
4499
|
export type SiteInsightsEventPagePostFeedback = SiteInsightsEventBase & {
|
|
4707
4500
|
type: 'page_post_feedback';
|
|
4708
4501
|
feedback: {
|
|
@@ -5090,54 +4883,11 @@ export interface SiteInsightsVisitorSegment {
|
|
|
5090
4883
|
/** The number of sessions for this visitor profile. */
|
|
5091
4884
|
sessions: number;
|
|
5092
4885
|
}
|
|
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
4886
|
export interface SiteAdsStats {
|
|
5104
4887
|
impressions: number;
|
|
5105
4888
|
clicks: number;
|
|
5106
4889
|
revenue: string;
|
|
5107
4890
|
}
|
|
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
4891
|
/**
|
|
5142
4892
|
* The source path to redirect from.
|
|
5143
4893
|
* @maxLength 512
|
|
@@ -5449,6 +5199,72 @@ export interface OpenAPISpecContent {
|
|
|
5449
5199
|
* @maxLength 64
|
|
5450
5200
|
*/
|
|
5451
5201
|
export type SHA256 = string;
|
|
5202
|
+
export interface SpaceTrackPageView {
|
|
5203
|
+
/** Unique identifier of the page. */
|
|
5204
|
+
pageId?: string;
|
|
5205
|
+
/** Analytics info on the GitBook's content visitor. */
|
|
5206
|
+
visitor: {
|
|
5207
|
+
/** GitBook's unique identifier of the visitor. */
|
|
5208
|
+
anonymousId: string;
|
|
5209
|
+
/** The visitors cookies. */
|
|
5210
|
+
cookies: Record<string, string>;
|
|
5211
|
+
/**
|
|
5212
|
+
* IP address of the visitor.
|
|
5213
|
+
* If undefined, it'll default to the IP executing the request.
|
|
5214
|
+
*/
|
|
5215
|
+
ip?: string;
|
|
5216
|
+
/**
|
|
5217
|
+
* User-agent of the visitor.
|
|
5218
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
|
|
5219
|
+
*/
|
|
5220
|
+
userAgent: string;
|
|
5221
|
+
/**
|
|
5222
|
+
* Language of the visitor.
|
|
5223
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
|
|
5224
|
+
*/
|
|
5225
|
+
language?: string;
|
|
5226
|
+
};
|
|
5227
|
+
/** The GitBook content's URL visited (including URL params). */
|
|
5228
|
+
url: string;
|
|
5229
|
+
/** The URL of referrer that linked to the page. */
|
|
5230
|
+
referrer: string;
|
|
5231
|
+
}
|
|
5232
|
+
export type SiteTrackPageView = {
|
|
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
|
+
/** Unique identifier of the space. */
|
|
5263
|
+
spaceId: string;
|
|
5264
|
+
} | {
|
|
5265
|
+
/** The site-space that was viewed */
|
|
5266
|
+
siteSpaceId: string;
|
|
5267
|
+
});
|
|
5452
5268
|
export interface UpdateContentPublishingAuth {
|
|
5453
5269
|
/**
|
|
5454
5270
|
* A fallback URL that will be used if authentication fails.
|
|
@@ -6001,33 +5817,113 @@ export interface SpaceContentRefsChannelData {
|
|
|
6001
5817
|
revision: string;
|
|
6002
5818
|
updatedAt: number;
|
|
6003
5819
|
};
|
|
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;
|
|
5820
|
+
}
|
|
5821
|
+
export interface ChangeRequestContentRefsChannelData {
|
|
5822
|
+
channel: 'space-change-request-content-refs';
|
|
5823
|
+
/** Data passed on the channel messages for content refs indexation. */
|
|
5824
|
+
data: {
|
|
5825
|
+
/** ID of the latest indexed revision */
|
|
5826
|
+
revision: string;
|
|
5827
|
+
updatedAt: number;
|
|
5828
|
+
};
|
|
5829
|
+
}
|
|
5830
|
+
export interface OrganizationAIIndexationChannelData {
|
|
5831
|
+
channel: 'organization-ai-indexation';
|
|
5832
|
+
data: {
|
|
5833
|
+
/** The space that was indexed */
|
|
5834
|
+
space: string;
|
|
5835
|
+
};
|
|
5836
|
+
}
|
|
5837
|
+
export interface APIChannelMutationData {
|
|
5838
|
+
channel: '*';
|
|
5839
|
+
/** Data passed on the channels associated to API endpoints. */
|
|
5840
|
+
data: {
|
|
5841
|
+
/** ID of the API execution that triggered the mutation. */
|
|
5842
|
+
executionId: string;
|
|
5843
|
+
};
|
|
5844
|
+
}
|
|
5845
|
+
/** Data passed through a realtime channel */
|
|
5846
|
+
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | APIChannelMutationData;
|
|
5847
|
+
export interface CustomizationSettings {
|
|
5848
|
+
/** Inherit customization settings from the parent collection. */
|
|
5849
|
+
inherit: boolean;
|
|
5850
|
+
/** Title to use for the published content. If not defined, it'll fallback to the content title. */
|
|
5851
|
+
title?: string;
|
|
5852
|
+
styling: {
|
|
5853
|
+
primaryColor: CustomizationThemedColor;
|
|
5854
|
+
corners: CustomizationCorners;
|
|
5855
|
+
font: CustomizationDefaultFont;
|
|
5856
|
+
/** The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead. */
|
|
5857
|
+
background?: CustomizationBackground;
|
|
5858
|
+
};
|
|
5859
|
+
internationalization: {
|
|
5860
|
+
/** Language for the UI element */
|
|
5861
|
+
locale: CustomizationLocale;
|
|
5862
|
+
/** Inherit locale from the parent collection. */
|
|
5863
|
+
inherit: boolean;
|
|
5864
|
+
};
|
|
5865
|
+
favicon: {
|
|
5866
|
+
icon: CustomizationThemedURL;
|
|
5867
|
+
} | {
|
|
5868
|
+
/** Unicode codepoint or character of the emoji */
|
|
5869
|
+
emoji: Emoji;
|
|
5870
|
+
} | object;
|
|
5871
|
+
header: {
|
|
5872
|
+
/** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
|
|
5873
|
+
preset: CustomizationHeaderPreset;
|
|
5874
|
+
logo?: CustomizationThemedURL;
|
|
5875
|
+
backgroundColor?: CustomizationThemedColor;
|
|
5876
|
+
linkColor?: CustomizationThemedColor;
|
|
5877
|
+
links: CustomizationHeaderItem[];
|
|
5878
|
+
};
|
|
5879
|
+
footer: {
|
|
5880
|
+
logo?: CustomizationThemedURL;
|
|
5881
|
+
groups: CustomizationFooterGroup[];
|
|
5882
|
+
/** @maxLength 300 */
|
|
5883
|
+
copyright?: string;
|
|
5884
|
+
};
|
|
5885
|
+
themes: {
|
|
5886
|
+
default: CustomizationThemeMode;
|
|
5887
|
+
/** Should the reader be able to switch between dark and light mode */
|
|
5888
|
+
toggeable: boolean;
|
|
5889
|
+
};
|
|
5890
|
+
pdf: {
|
|
5891
|
+
/** If true, PDF export is enabled for the published content. */
|
|
5892
|
+
enabled: boolean;
|
|
5893
|
+
};
|
|
5894
|
+
feedback: {
|
|
5895
|
+
/** If true, feedback gathering is enabled */
|
|
5896
|
+
enabled: boolean;
|
|
5897
|
+
};
|
|
5898
|
+
aiSearch: {
|
|
5899
|
+
/** If true, AI search is enabled */
|
|
5900
|
+
enabled: boolean;
|
|
5901
|
+
};
|
|
5902
|
+
git: {
|
|
5903
|
+
/** Whether the public content should show a link to edit the content on the git provider set up in the GitSync */
|
|
5904
|
+
showEditLink: boolean;
|
|
5905
|
+
};
|
|
5906
|
+
pagination: {
|
|
5907
|
+
/** Whether the pagination navigation should be displayed on pages. */
|
|
5908
|
+
enabled: boolean;
|
|
6012
5909
|
};
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
data: {
|
|
6017
|
-
/** The space that was indexed */
|
|
6018
|
-
space: string;
|
|
5910
|
+
trademark: {
|
|
5911
|
+
/** Whether the GitBook trademark ("Powered by GitBook") should be visible */
|
|
5912
|
+
enabled: boolean;
|
|
6019
5913
|
};
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
/** ID of the API execution that triggered the mutation. */
|
|
6026
|
-
executionId: string;
|
|
5914
|
+
privacyPolicy: {
|
|
5915
|
+
url?: URL;
|
|
5916
|
+
};
|
|
5917
|
+
socialPreview: {
|
|
5918
|
+
url?: URL;
|
|
6027
5919
|
};
|
|
6028
5920
|
}
|
|
6029
|
-
/**
|
|
6030
|
-
|
|
5921
|
+
/**
|
|
5922
|
+
* A user friendly name for the font family (e.g., "Open Sans", "Playfair Display")
|
|
5923
|
+
* @minLength 1
|
|
5924
|
+
* @maxLength 50
|
|
5925
|
+
*/
|
|
5926
|
+
export type CustomizationFontFamilyName = string;
|
|
6031
5927
|
/** The status of ads on the site */
|
|
6032
5928
|
export declare enum SiteAdsStatus {
|
|
6033
5929
|
Pending = "pending",
|
|
@@ -6036,6 +5932,12 @@ export declare enum SiteAdsStatus {
|
|
|
6036
5932
|
Rejected = "rejected",
|
|
6037
5933
|
Disabled = "disabled"
|
|
6038
5934
|
}
|
|
5935
|
+
/**
|
|
5936
|
+
* The path of the file in the storage bucket
|
|
5937
|
+
* @minLength 1
|
|
5938
|
+
* @maxLength 512
|
|
5939
|
+
*/
|
|
5940
|
+
export type StorageFileKey = string;
|
|
6039
5941
|
export interface Seat {
|
|
6040
5942
|
object: 'seat';
|
|
6041
5943
|
/** The unique ID of the organization */
|
|
@@ -6151,88 +6053,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6151
6053
|
* @secure
|
|
6152
6054
|
*/
|
|
6153
6055
|
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
6056
|
user: {
|
|
6237
6057
|
/**
|
|
6238
6058
|
* @description Returns details about the user associated with the authentication provided in the request's authorization header.
|
|
@@ -6430,82 +6250,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6430
6250
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6431
6251
|
items: SearchPageResult[];
|
|
6432
6252
|
}, 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
6253
|
/**
|
|
6510
6254
|
* No description
|
|
6511
6255
|
*
|
|
@@ -6542,54 +6286,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6542
6286
|
message: string;
|
|
6543
6287
|
};
|
|
6544
6288
|
}>>;
|
|
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
6289
|
/**
|
|
6594
6290
|
* No description
|
|
6595
6291
|
*
|
|
@@ -8074,40 +7770,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8074
7770
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8075
7771
|
items: UserContentPermission[];
|
|
8076
7772
|
}, 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
7773
|
/**
|
|
8112
7774
|
* No description
|
|
8113
7775
|
*
|
|
@@ -8175,28 +7837,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8175
7837
|
* @secure
|
|
8176
7838
|
*/
|
|
8177
7839
|
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
7840
|
/**
|
|
8201
7841
|
* No description
|
|
8202
7842
|
*
|
|
@@ -8577,6 +8217,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8577
8217
|
blocks?: boolean;
|
|
8578
8218
|
/** If true, returns only integrations with contentSources. If false, returns only integrations without contentSources. */
|
|
8579
8219
|
contentSources?: boolean;
|
|
8220
|
+
/** If defined, only list integrations owned by the given organization. */
|
|
8221
|
+
owner?: string;
|
|
8580
8222
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8581
8223
|
items: Integration[];
|
|
8582
8224
|
}, Error>>;
|
|
@@ -9679,7 +9321,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9679
9321
|
*
|
|
9680
9322
|
* @tags spaces
|
|
9681
9323
|
* @name ListOrganizationIntegrations
|
|
9682
|
-
* @summary List integrations
|
|
9324
|
+
* @summary List integrations available to an organization.
|
|
9683
9325
|
* @request GET:/orgs/{organizationId}/integrations
|
|
9684
9326
|
* @secure
|
|
9685
9327
|
*/
|
|
@@ -9694,6 +9336,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9694
9336
|
limit?: number;
|
|
9695
9337
|
/** A search string to filter integrations by name */
|
|
9696
9338
|
search?: string;
|
|
9339
|
+
/** Filter the integrations by category */
|
|
9340
|
+
category?: IntegrationCategory;
|
|
9341
|
+
/**
|
|
9342
|
+
* Filter the integrations by block's domains
|
|
9343
|
+
* @maxLength 100
|
|
9344
|
+
* @pattern ^[a-zA-Z0-9-_.]+$
|
|
9345
|
+
*/
|
|
9346
|
+
blockDomain?: string;
|
|
9347
|
+
/** If true, returns only integrations with blocks. If false, returns only integrations without blocks. */
|
|
9348
|
+
blocks?: boolean;
|
|
9349
|
+
/** If true, returns only integrations with contentSources. If false, returns only integrations without contentSources. */
|
|
9350
|
+
contentSources?: boolean;
|
|
9351
|
+
/** If defined, only list integrations owned by the given organization. */
|
|
9352
|
+
owner?: string;
|
|
9697
9353
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9698
9354
|
items: Integration[];
|
|
9699
9355
|
}, Error>>;
|
|
@@ -10752,30 +10408,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10752
10408
|
message: string;
|
|
10753
10409
|
};
|
|
10754
10410
|
}>>;
|
|
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
10411
|
/**
|
|
10780
10412
|
* No description
|
|
10781
10413
|
*
|
|
@@ -10872,17 +10504,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10872
10504
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10873
10505
|
items: UserSitePermission[];
|
|
10874
10506
|
}, 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
10507
|
/**
|
|
10887
10508
|
* @description Track events in a site.
|
|
10888
10509
|
*
|
|
@@ -10917,20 +10538,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10917
10538
|
listSiteVisitorSegments: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10918
10539
|
items: SiteInsightsVisitorSegment[];
|
|
10919
10540
|
}, 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
10541
|
/**
|
|
10935
10542
|
* No description
|
|
10936
10543
|
*
|
|
@@ -11373,11 +10980,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11373
10980
|
* @default false
|
|
11374
10981
|
*/
|
|
11375
10982
|
redirectOnError?: boolean;
|
|
11376
|
-
/**
|
|
11377
|
-
* When true the HTTP response can be cached by the CDN
|
|
11378
|
-
* @default false
|
|
11379
|
-
*/
|
|
11380
|
-
cache?: boolean;
|
|
11381
10983
|
}, params?: RequestParams) => Promise<HttpResponse<PublishedSiteContentLookup, Error | {
|
|
11382
10984
|
error: {
|
|
11383
10985
|
/** @format int32 */
|