@gitbook/api 0.96.0 → 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 +1093 -1839
- package/dist/index.cjs +110 -504
- package/dist/index.d.ts +13 -1
- package/dist/index.js +107 -499
- package/package.json +10 -1
- package/spec/openapi.json +2841 -5073
- package/spec/openapi.yaml +2502 -3825
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 {
|
|
@@ -599,457 +986,77 @@ export interface OpenAPIOperationPointer {
|
|
|
599
986
|
/** Path of the operation in the OpenAPI spec. */
|
|
600
987
|
path: string;
|
|
601
988
|
/** HTTP method of the operation in the OpenAPI spec. */
|
|
602
|
-
method: string;
|
|
603
|
-
}
|
|
604
|
-
export interface DocumentBlockOpenAPI {
|
|
605
|
-
object: 'block';
|
|
606
|
-
type: 'swagger';
|
|
607
|
-
key?: string;
|
|
608
|
-
data: OpenAPIOperationPointer & {
|
|
609
|
-
ref: ContentRefFile | ContentRefURL | ContentRefOpenAPI;
|
|
610
|
-
/** If true, the block is opened by default. */
|
|
611
|
-
expanded?: boolean;
|
|
612
|
-
fullWidth?: boolean;
|
|
613
|
-
};
|
|
614
|
-
isVoid: true;
|
|
615
|
-
meta?: {
|
|
616
|
-
/** Unique ID to be used in an URL for the block. */
|
|
617
|
-
id: string;
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
export interface DocumentBlockReusableContent {
|
|
621
|
-
object: 'block';
|
|
622
|
-
type: 'reusable-content';
|
|
623
|
-
key?: string;
|
|
624
|
-
data: {
|
|
625
|
-
ref: ContentRefReusableContent;
|
|
626
|
-
};
|
|
627
|
-
isVoid: true;
|
|
628
|
-
}
|
|
629
|
-
export interface DocumentBlockStepperStep {
|
|
630
|
-
object: 'block';
|
|
631
|
-
type: 'stepper-step';
|
|
632
|
-
key?: string;
|
|
633
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
|
|
634
|
-
data: {
|
|
635
|
-
icon?: string;
|
|
636
|
-
};
|
|
637
|
-
isVoid?: false;
|
|
638
|
-
}
|
|
639
|
-
export interface DocumentBlockStepper {
|
|
640
|
-
object: 'block';
|
|
641
|
-
type: 'stepper';
|
|
642
|
-
key?: string;
|
|
643
|
-
nodes: DocumentBlockStepperStep[];
|
|
644
|
-
isVoid?: false;
|
|
645
|
-
data?: object;
|
|
646
|
-
}
|
|
647
|
-
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
|
|
648
|
-
export interface JSONDocument {
|
|
649
|
-
object: 'document';
|
|
650
|
-
data: {
|
|
651
|
-
/** The schema version of the document. If undefined, the document is considered to be of the latest schema version. */
|
|
652
|
-
schemaVersion?: number;
|
|
653
|
-
[key: string]: any;
|
|
654
|
-
};
|
|
655
|
-
nodes: DocumentBlocksTopLevels[];
|
|
656
|
-
}
|
|
657
|
-
export type Document = MarkdownDocument | {
|
|
658
|
-
document: JSONDocument;
|
|
659
|
-
} | object;
|
|
660
|
-
/**
|
|
661
|
-
* Page source
|
|
662
|
-
* The source points to a page in a space.
|
|
663
|
-
*/
|
|
664
|
-
export interface SearchAIAnswerSource {
|
|
665
|
-
type: 'page';
|
|
666
|
-
/** Short explanation of how the source was used to answer. */
|
|
667
|
-
reason?: string;
|
|
668
|
-
/** The page ID of the source. */
|
|
669
|
-
page: string;
|
|
670
|
-
/** The revision ID where the page was extracted from. */
|
|
671
|
-
revision: string;
|
|
672
|
-
/** The space ID owning the page. */
|
|
673
|
-
space: string;
|
|
674
|
-
/** The IDs of the sections of the page that were used to answer the question. */
|
|
675
|
-
sections: string[];
|
|
676
|
-
}
|
|
677
|
-
/** Answer from AI for a question asked on a content. */
|
|
678
|
-
export interface SearchAIAnswer {
|
|
679
|
-
answer?: Document;
|
|
680
|
-
followupQuestions: string[];
|
|
681
|
-
/** The sources used to generate the answer. */
|
|
682
|
-
sources: SearchAIAnswerSource[];
|
|
683
|
-
}
|
|
684
|
-
export interface SearchAIQuery {
|
|
685
|
-
query: string;
|
|
686
|
-
/**
|
|
687
|
-
* @deprecated
|
|
688
|
-
* @maxItems 10
|
|
689
|
-
*/
|
|
690
|
-
previousQueries?: string[];
|
|
691
|
-
}
|
|
692
|
-
/** Questions recommended by the AI for the given content. */
|
|
693
|
-
export interface SearchAIRecommendedQuestions {
|
|
694
|
-
questions: string[];
|
|
695
|
-
}
|
|
696
|
-
export interface User {
|
|
697
|
-
/** Type of Object, always equals to "user" */
|
|
698
|
-
object: 'user';
|
|
699
|
-
/** Unique identifier for the user */
|
|
700
|
-
id: string;
|
|
701
|
-
/** Full name for the user */
|
|
702
|
-
displayName: string;
|
|
703
|
-
/** Email address of the user */
|
|
704
|
-
email?: string;
|
|
705
|
-
/** URL of the user's profile picture */
|
|
706
|
-
photoURL?: string;
|
|
707
|
-
/** URLs associated with the object */
|
|
708
|
-
urls: {
|
|
709
|
-
/**
|
|
710
|
-
* URL of the user in the API
|
|
711
|
-
* @format uri
|
|
712
|
-
*/
|
|
713
|
-
location: string;
|
|
714
|
-
};
|
|
715
|
-
}
|
|
716
|
-
/** @format date-time */
|
|
717
|
-
export type Timestamp = string;
|
|
718
|
-
/** The API token details, excluding the token itself. */
|
|
719
|
-
export interface UserAPIToken {
|
|
720
|
-
/** The API token ID. */
|
|
721
|
-
id: string;
|
|
722
|
-
/** The API token name. */
|
|
723
|
-
label: string;
|
|
724
|
-
/** The API token creation date. */
|
|
725
|
-
createdAt: Timestamp;
|
|
726
|
-
}
|
|
727
|
-
/** The API token details, including the token itself. */
|
|
728
|
-
export type UserAPITokenExtended = UserAPIToken & {
|
|
729
|
-
/** The actual token value. */
|
|
730
|
-
token: string;
|
|
731
|
-
};
|
|
732
|
-
/**
|
|
733
|
-
* Title of the space
|
|
734
|
-
* @maxLength 50
|
|
735
|
-
*/
|
|
736
|
-
export type SpaceTitle = string;
|
|
737
|
-
/**
|
|
738
|
-
* Unicode codepoint or character of the emoji
|
|
739
|
-
* @format emoji
|
|
740
|
-
* @maxLength 50
|
|
741
|
-
* @example "🎉"
|
|
742
|
-
*/
|
|
743
|
-
export type Emoji = string;
|
|
744
|
-
/**
|
|
745
|
-
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
746
|
-
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
747
|
-
* * `share-link`: Anyone with a secret token in the url can access the content.
|
|
748
|
-
* * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
|
|
749
|
-
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
750
|
-
* Only available for spaces in a collection.
|
|
751
|
-
* * `private`: Authorized members can access the content.
|
|
752
|
-
*/
|
|
753
|
-
export declare enum ContentVisibility {
|
|
754
|
-
Public = "public",
|
|
755
|
-
Unlisted = "unlisted",
|
|
756
|
-
ShareLink = "share-link",
|
|
757
|
-
VisitorAuth = "visitor-auth",
|
|
758
|
-
InCollection = "in-collection",
|
|
759
|
-
Private = "private"
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* Determines how a Space can be edited.
|
|
763
|
-
* * `live`: Users can directly edit the space
|
|
764
|
-
* * `locked`: All edits are locked for this space.
|
|
765
|
-
*/
|
|
766
|
-
export declare enum SpaceEditMode {
|
|
767
|
-
Live = "live",
|
|
768
|
-
Locked = "locked"
|
|
769
|
-
}
|
|
770
|
-
/**
|
|
771
|
-
* @format uri
|
|
772
|
-
* @maxLength 2048
|
|
773
|
-
*/
|
|
774
|
-
export type URL = string;
|
|
775
|
-
/** The provider of the Git Sync installation. */
|
|
776
|
-
export declare enum GitSyncProvider {
|
|
777
|
-
Github = "github",
|
|
778
|
-
Gitlab = "gitlab",
|
|
779
|
-
GithubLegacy = "github-legacy"
|
|
780
|
-
}
|
|
781
|
-
export interface GitSyncState {
|
|
782
|
-
/** The provider of the Git Sync installation. */
|
|
783
|
-
installationProvider?: GitSyncProvider;
|
|
784
|
-
/** The integration name providing the Git Sync. */
|
|
785
|
-
integration?: string;
|
|
786
|
-
/** The URL to the repository tree, used when rendering public content. */
|
|
787
|
-
url?: string;
|
|
788
|
-
/** When the Git provider details were last updated */
|
|
789
|
-
updatedAt?: Timestamp;
|
|
790
|
-
}
|
|
791
|
-
/** Custom backend for Visitor Authentication */
|
|
792
|
-
export interface VisitorAuthCustomBackend {
|
|
793
|
-
/** Custom backend for Visitor Authentication */
|
|
794
|
-
backend: 'custom';
|
|
795
|
-
}
|
|
796
|
-
/** Integration backend for Visitor Authentication */
|
|
797
|
-
export interface VisitorAuthIntegrationBackend {
|
|
798
|
-
/** Integration as backend for Visitor Authentication */
|
|
799
|
-
backend: 'integration';
|
|
800
|
-
}
|
|
801
|
-
export type VisitorAuth = VisitorAuthCustomBackend | (VisitorAuthIntegrationBackend & {
|
|
802
|
-
/** Name of integration being used as the backend for Visitor Authentication */
|
|
803
|
-
integration: string;
|
|
804
|
-
});
|
|
805
|
-
/**
|
|
806
|
-
* "The role of a member in an organization.
|
|
807
|
-
* "admin": Can administrate the content: create, delete spaces, ...
|
|
808
|
-
* "create": Can create content.
|
|
809
|
-
* "review": Can review content.
|
|
810
|
-
* "edit": Can edit the content (live or change requests).
|
|
811
|
-
* "comment": Can access the content and its discussions.
|
|
812
|
-
* "read": Can access the content, but cannot update it in any way.
|
|
813
|
-
*/
|
|
814
|
-
export declare enum MemberRole {
|
|
815
|
-
Admin = "admin",
|
|
816
|
-
Create = "create",
|
|
817
|
-
Edit = "edit",
|
|
818
|
-
Review = "review",
|
|
819
|
-
Comment = "comment",
|
|
820
|
-
Read = "read"
|
|
821
|
-
}
|
|
822
|
-
/** The role of a member in an organization, null for guests */
|
|
823
|
-
export type MemberRoleOrGuest = MemberRole | null;
|
|
824
|
-
/** Default level for a piece of content */
|
|
825
|
-
export type DefaultLevel = MemberRoleOrGuest | 'inherit';
|
|
826
|
-
export interface Space {
|
|
827
|
-
/** Type of Object, always equals to "space" */
|
|
828
|
-
object: 'space';
|
|
829
|
-
/** Unique identifier for the space */
|
|
830
|
-
id: string;
|
|
831
|
-
/** Title of the space */
|
|
832
|
-
title: SpaceTitle;
|
|
833
|
-
/** An emoji for this space. It'll match the emoji shown in the GitBook app. */
|
|
834
|
-
emoji: Emoji;
|
|
835
|
-
/**
|
|
836
|
-
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
837
|
-
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
838
|
-
* * `share-link`: Anyone with a secret token in the url can access the content.
|
|
839
|
-
* * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
|
|
840
|
-
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
841
|
-
* Only available for spaces in a collection.
|
|
842
|
-
* * `private`: Authorized members can access the content.
|
|
843
|
-
*/
|
|
844
|
-
visibility: ContentVisibility;
|
|
845
|
-
createdAt: Timestamp;
|
|
846
|
-
updatedAt: Timestamp;
|
|
847
|
-
deletedAt?: Timestamp;
|
|
848
|
-
/**
|
|
849
|
-
* Determines how a Space can be edited.
|
|
850
|
-
* * `live`: Users can directly edit the space
|
|
851
|
-
* * `locked`: All edits are locked for this space.
|
|
852
|
-
*/
|
|
853
|
-
editMode?: SpaceEditMode;
|
|
854
|
-
/** URLs associated with the object */
|
|
855
|
-
urls: {
|
|
856
|
-
/**
|
|
857
|
-
* URL of the space in the API
|
|
858
|
-
* @format uri
|
|
859
|
-
*/
|
|
860
|
-
location: string;
|
|
861
|
-
/**
|
|
862
|
-
* URL of the space in the application
|
|
863
|
-
* @format uri
|
|
864
|
-
*/
|
|
865
|
-
app: string;
|
|
866
|
-
/**
|
|
867
|
-
* URL of the published version of the space. Only defined when visibility is not "private."
|
|
868
|
-
* @format uri
|
|
869
|
-
*/
|
|
870
|
-
published?: string;
|
|
871
|
-
/**
|
|
872
|
-
* URL of the public version of the space. Only defined when visibility is "public".
|
|
873
|
-
* @format uri
|
|
874
|
-
*/
|
|
875
|
-
public?: string;
|
|
876
|
-
/** URL of the icon of this space, if defined. */
|
|
877
|
-
icon?: URL;
|
|
878
|
-
};
|
|
879
|
-
/** ID of the organization owning this space */
|
|
880
|
-
organization: string;
|
|
881
|
-
/** ID of the parent collection. */
|
|
882
|
-
parent?: string;
|
|
883
|
-
gitSync?: GitSyncState;
|
|
884
|
-
visitorAuth?: VisitorAuth;
|
|
885
|
-
/** ID of the active revision in the space. */
|
|
886
|
-
revision: string;
|
|
887
|
-
/** Default level for a piece of content */
|
|
888
|
-
defaultLevel: DefaultLevel;
|
|
889
|
-
/** Count of opened comments on the space. */
|
|
890
|
-
comments: number;
|
|
891
|
-
/** Total count of change requests on the space. */
|
|
892
|
-
changeRequests: number;
|
|
893
|
-
/** Count of open change requests on the space. */
|
|
894
|
-
changeRequestsOpen: number;
|
|
895
|
-
/** Count of draft change requests on the space. */
|
|
896
|
-
changeRequestsDraft: number;
|
|
897
|
-
/** The set of permissions for the space */
|
|
898
|
-
permissions: {
|
|
899
|
-
/** Can the user access the space in the application. */
|
|
900
|
-
access: boolean;
|
|
901
|
-
/** Can the user edit the title, install integrations, and manage the space. */
|
|
902
|
-
admin: boolean;
|
|
903
|
-
/** Can the user edit the content of the space by creating a change request. */
|
|
904
|
-
edit: boolean;
|
|
905
|
-
/** Can the user comment on the content. */
|
|
906
|
-
comment: boolean;
|
|
907
|
-
/** Can the user merge change requests. */
|
|
908
|
-
merge: boolean;
|
|
909
|
-
/** Can the user review change requests. */
|
|
910
|
-
review: boolean;
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
export interface SpacePointer {
|
|
914
|
-
type: 'space';
|
|
915
|
-
/** Unique identifier for the space */
|
|
916
|
-
space: string;
|
|
917
|
-
}
|
|
918
|
-
export interface CollectionPointer {
|
|
919
|
-
type: 'collection';
|
|
920
|
-
/** Unique identifier for the collection */
|
|
921
|
-
collection: string;
|
|
922
|
-
}
|
|
923
|
-
/** Position at which to insert an item */
|
|
924
|
-
export interface ContentPosition {
|
|
925
|
-
before?: SpacePointer | CollectionPointer;
|
|
926
|
-
after?: SpacePointer | CollectionPointer;
|
|
927
|
-
}
|
|
928
|
-
/** Format the custom block as a codeblock */
|
|
929
|
-
export type IntegrationBlockMarkdown = {
|
|
930
|
-
/** Code block syntax to use to identify the block. */
|
|
931
|
-
codeblock: string;
|
|
932
|
-
/** Key of the property to use as body of the codeblock. */
|
|
933
|
-
body: string;
|
|
934
|
-
};
|
|
935
|
-
export interface IntegrationBlock {
|
|
936
|
-
/** Unique ID in the integration for the block. It also represents the UI component used. */
|
|
937
|
-
id: string;
|
|
938
|
-
/**
|
|
939
|
-
* Short descriptive title for the block.
|
|
940
|
-
* @minLength 2
|
|
941
|
-
* @maxLength 40
|
|
942
|
-
*/
|
|
943
|
-
title: string;
|
|
944
|
-
/**
|
|
945
|
-
* Long descriptive text for the block.
|
|
946
|
-
* @minLength 0
|
|
947
|
-
* @maxLength 150
|
|
948
|
-
*/
|
|
949
|
-
description?: string;
|
|
950
|
-
/** URL of the icon to represent this block. */
|
|
951
|
-
icon?: string;
|
|
952
|
-
/** URLs patterns to convert as this block. */
|
|
953
|
-
urlUnfurl?: string[];
|
|
954
|
-
/** Format the custom block as a codeblock */
|
|
955
|
-
markdown?: IntegrationBlockMarkdown;
|
|
989
|
+
method: string;
|
|
956
990
|
}
|
|
957
|
-
export
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
}
|
|
972
|
-
export interface SearchAIAnswerStream {
|
|
973
|
-
type: 'answer';
|
|
974
|
-
/** Answer from AI for a question asked on a content. */
|
|
975
|
-
answer: SearchAIAnswer;
|
|
991
|
+
export interface DocumentBlockOpenAPI {
|
|
992
|
+
object: 'block';
|
|
993
|
+
type: 'swagger';
|
|
994
|
+
key?: string;
|
|
995
|
+
data: OpenAPIOperationPointer & {
|
|
996
|
+
ref: ContentRefFile | ContentRefURL;
|
|
997
|
+
/** If true, the block is opened by default. */
|
|
998
|
+
expanded?: boolean;
|
|
999
|
+
fullWidth?: boolean;
|
|
1000
|
+
};
|
|
1001
|
+
isVoid: true;
|
|
1002
|
+
meta?: {
|
|
1003
|
+
/** Unique ID to be used in an URL for the block. */
|
|
1004
|
+
id: string;
|
|
1005
|
+
};
|
|
976
1006
|
}
|
|
977
|
-
export interface
|
|
978
|
-
|
|
1007
|
+
export interface DocumentBlockOpenAPIOperation {
|
|
1008
|
+
object: 'block';
|
|
1009
|
+
type: 'openapi-operation';
|
|
1010
|
+
key?: string;
|
|
1011
|
+
data: OpenAPIOperationPointer & {
|
|
1012
|
+
ref: ContentRefOpenAPI;
|
|
1013
|
+
};
|
|
1014
|
+
isVoid: true;
|
|
1015
|
+
meta?: {
|
|
1016
|
+
/** Unique ID to be used in an URL for the block. */
|
|
1017
|
+
id: string;
|
|
1018
|
+
};
|
|
979
1019
|
}
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1020
|
+
export interface DocumentBlockReusableContent {
|
|
1021
|
+
object: 'block';
|
|
1022
|
+
type: 'reusable-content';
|
|
1023
|
+
key?: string;
|
|
1024
|
+
data: {
|
|
1025
|
+
ref: ContentRefReusableContent;
|
|
1026
|
+
};
|
|
1027
|
+
isVoid: true;
|
|
986
1028
|
}
|
|
987
|
-
export interface
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
/** URL to use as a prefix for the commit URL. */
|
|
997
|
-
repoCommitURL?: string;
|
|
998
|
-
/** Path to a root directory for the project in the repository. */
|
|
999
|
-
repoProjectDirectory?: string;
|
|
1000
|
-
/** 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. */
|
|
1001
|
-
timestamp?: Timestamp;
|
|
1002
|
-
force?: boolean;
|
|
1003
|
-
/** If true, the import will generate a revision without updating the space primary content. */
|
|
1004
|
-
standalone?: boolean;
|
|
1005
|
-
/** Optional metadata to store on the space about the Git provider */
|
|
1006
|
-
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;
|
|
1007
1038
|
}
|
|
1008
|
-
export interface
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
/** Unique identifier to use to cache the Git repository across multiple operations. */
|
|
1016
|
-
repoCacheID?: string;
|
|
1017
|
-
/** URL to use as a prefix for external file references. */
|
|
1018
|
-
repoTreeURL?: string;
|
|
1019
|
-
/** URL to use as a prefix for the commit URL. */
|
|
1020
|
-
repoCommitURL?: string;
|
|
1021
|
-
/** Path to a root directory for the project in the repository. */
|
|
1022
|
-
repoProjectDirectory?: string;
|
|
1023
|
-
/** 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. */
|
|
1024
|
-
timestamp?: Timestamp;
|
|
1025
|
-
force?: boolean;
|
|
1026
|
-
/** Optional metadata to store on the space about the Git provider */
|
|
1027
|
-
gitInfo?: UpdateSpaceGitInfo;
|
|
1039
|
+
export interface DocumentBlockStepper {
|
|
1040
|
+
object: 'block';
|
|
1041
|
+
type: 'stepper';
|
|
1042
|
+
key?: string;
|
|
1043
|
+
nodes: DocumentBlockStepperStep[];
|
|
1044
|
+
isVoid?: false;
|
|
1045
|
+
data?: object;
|
|
1028
1046
|
}
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
id: string;
|
|
1039
|
-
/**
|
|
1040
|
-
* Title of the page
|
|
1041
|
-
* @minLength 1
|
|
1042
|
-
*/
|
|
1043
|
-
title: string;
|
|
1044
|
-
/** Emoji of the page, if one has been set. */
|
|
1045
|
-
emoji?: Emoji;
|
|
1046
|
-
/** Icon of the page, if one has been set. */
|
|
1047
|
-
icon?: Icon;
|
|
1048
|
-
/** When the page was first created. Only present if page has been edited at least once. */
|
|
1049
|
-
createdAt?: Timestamp;
|
|
1050
|
-
/** When the page was last edited. Only present if page has been edited at least once. */
|
|
1051
|
-
updatedAt?: Timestamp;
|
|
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[];
|
|
1052
1056
|
}
|
|
1057
|
+
export type Document = MarkdownDocument | {
|
|
1058
|
+
document: JSONDocument;
|
|
1059
|
+
} | object;
|
|
1053
1060
|
export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
1054
1061
|
/** @deprecated */
|
|
1055
1062
|
kind: 'sheet';
|
|
@@ -1126,196 +1133,54 @@ export interface ComputedContentSource {
|
|
|
1126
1133
|
integration: string;
|
|
1127
1134
|
/** Identifier of the source used for computation */
|
|
1128
1135
|
source: string;
|
|
1129
|
-
/** Properties to be passed to the computation */
|
|
1130
|
-
props: PlainObject;
|
|
1131
|
-
/**
|
|
1132
|
-
* Dependencies the computation depends on.
|
|
1133
|
-
* The state of the dependencies will be passed to the computation.
|
|
1134
|
-
* When the dependency's targets are updated, the computation will be updated.
|
|
1135
|
-
*/
|
|
1136
|
-
dependencies?: Record<string, {
|
|
1137
|
-
ref: ComputedContentDependencyRef;
|
|
1138
|
-
} | ComputedContentDependencyValue>;
|
|
1139
|
-
}
|
|
1140
|
-
export type RevisionPageComputed = RevisionPageBase & {
|
|
1141
|
-
type: 'computed';
|
|
1142
|
-
/** Parameters for a computed content */
|
|
1143
|
-
computed: ComputedContentSource;
|
|
1144
|
-
};
|
|
1145
|
-
export interface GitSyncBlob {
|
|
1146
|
-
/** SHA for the blob */
|
|
1147
|
-
oid: string;
|
|
1148
|
-
/** Path of the blob in the Git tree */
|
|
1149
|
-
path: string;
|
|
1150
|
-
}
|
|
1151
|
-
/** Size of the cover image. */
|
|
1152
|
-
export declare enum RevisionPageLayoutOptionsCoverSize {
|
|
1153
|
-
Hero = "hero",
|
|
1154
|
-
Full = "full"
|
|
1155
|
-
}
|
|
1156
|
-
export interface RevisionPageLayoutOptions {
|
|
1157
|
-
/** Should the cover be visible? */
|
|
1158
|
-
cover?: boolean;
|
|
1159
|
-
/** Size of the cover image. */
|
|
1160
|
-
coverSize?: RevisionPageLayoutOptionsCoverSize;
|
|
1161
|
-
/** Should the title be visible? */
|
|
1162
|
-
title?: boolean;
|
|
1163
|
-
/** Should the description be visible? */
|
|
1164
|
-
description?: boolean;
|
|
1165
|
-
/** Should the table of contents be visible? */
|
|
1166
|
-
tableOfContents?: boolean;
|
|
1167
|
-
/** Should the outline be visible? */
|
|
1168
|
-
outline?: boolean;
|
|
1169
|
-
/** Should the pagination be visible? */
|
|
1170
|
-
pagination?: boolean;
|
|
1171
|
-
}
|
|
1172
|
-
export interface RevisionPageDocumentCover {
|
|
1173
|
-
/** Content reference pointing to the source image. */
|
|
1174
|
-
ref?: ContentRefFile;
|
|
1175
|
-
/** Vertical position of the cover image. */
|
|
1176
|
-
yPos: number;
|
|
1177
|
-
}
|
|
1178
|
-
/** A score breakdown for a specific page. */
|
|
1179
|
-
export interface AnalyticsFeedbacksPageScore {
|
|
1180
|
-
/** Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad'). */
|
|
1181
|
-
score: number;
|
|
1182
|
-
/** Total number of ratings done by end users. */
|
|
1183
|
-
total: number;
|
|
1184
|
-
/**
|
|
1185
|
-
* Summary of the rating based on the score ('good', 'ok', or 'bad')
|
|
1186
|
-
* @deprecated
|
|
1187
|
-
*/
|
|
1188
|
-
rating: string;
|
|
1189
|
-
/** Score multiplied by the number of ratings to give more importance to highly rated content. */
|
|
1190
|
-
ponderedScore: number;
|
|
1191
|
-
/** Number of 'bad' ratings. */
|
|
1192
|
-
bad: number;
|
|
1193
|
-
/** Number of 'ok' ratings. */
|
|
1194
|
-
ok: number;
|
|
1195
|
-
/** Number of 'good' ratings. */
|
|
1196
|
-
good: number;
|
|
1197
|
-
}
|
|
1198
|
-
/** Page entry in the content analytics. */
|
|
1199
|
-
export interface AnalyticsContentPage {
|
|
1200
|
-
page: RevisionPageDocument;
|
|
1201
|
-
pageViews: number;
|
|
1202
|
-
/** A score breakdown for a specific page. */
|
|
1203
|
-
feedbacks?: AnalyticsFeedbacksPageScore;
|
|
1204
|
-
}
|
|
1205
|
-
export interface AnalyticsContentPages {
|
|
1206
|
-
pages: AnalyticsContentPage[];
|
|
1207
|
-
}
|
|
1208
|
-
export declare enum AnalyticsSearchPeriod {
|
|
1209
|
-
LastMonth = "last_month",
|
|
1210
|
-
LastWeek = "last_week",
|
|
1211
|
-
LastYear = "last_year"
|
|
1212
|
-
}
|
|
1213
|
-
/** Analytics entry for a search query. */
|
|
1214
|
-
export interface AnalyticsSearchQuery {
|
|
1215
|
-
query: string;
|
|
1216
|
-
/** Number of searches done by users. */
|
|
1217
|
-
searches: number;
|
|
1218
|
-
/** Number of objects matching this search. */
|
|
1219
|
-
hits: number;
|
|
1220
|
-
/** Number of pages matching this search. */
|
|
1221
|
-
pageHits: number;
|
|
1222
|
-
/** Number of sections matching this search. */
|
|
1223
|
-
sectionHits: number;
|
|
1224
|
-
}
|
|
1225
|
-
/** Top search queries for a content. */
|
|
1226
|
-
export interface AnalyticsTopSearches {
|
|
1227
|
-
/** Number of searches done by users. */
|
|
1228
|
-
searches: number;
|
|
1229
|
-
/** Top queries searched for this content. */
|
|
1230
|
-
queries: AnalyticsSearchQuery[];
|
|
1231
|
-
}
|
|
1232
|
-
export declare enum AnalyticsTrafficInterval {
|
|
1233
|
-
Daily = "daily",
|
|
1234
|
-
Weekly = "weekly",
|
|
1235
|
-
Monthly = "monthly"
|
|
1236
|
-
}
|
|
1237
|
-
export interface AnalyticsTrafficPageViews {
|
|
1238
|
-
/** Total number of page views over the period. */
|
|
1239
|
-
count: number;
|
|
1240
|
-
/** Page views per interval (day, week, month). */
|
|
1241
|
-
views: {
|
|
1242
|
-
timestamp: string;
|
|
1243
|
-
count: number;
|
|
1244
|
-
}[];
|
|
1245
|
-
}
|
|
1246
|
-
export interface SpaceTrackPageView {
|
|
1247
|
-
/** Unique identifier of the page. */
|
|
1248
|
-
pageId?: string;
|
|
1249
|
-
/** Analytics info on the GitBook's content visitor. */
|
|
1250
|
-
visitor: {
|
|
1251
|
-
/** GitBook's unique identifier of the visitor. */
|
|
1252
|
-
anonymousId: string;
|
|
1253
|
-
/** The visitors cookies. */
|
|
1254
|
-
cookies: Record<string, string>;
|
|
1255
|
-
/**
|
|
1256
|
-
* IP address of the visitor.
|
|
1257
|
-
* If undefined, it'll default to the IP executing the request.
|
|
1258
|
-
*/
|
|
1259
|
-
ip?: string;
|
|
1260
|
-
/**
|
|
1261
|
-
* User-agent of the visitor.
|
|
1262
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
|
|
1263
|
-
*/
|
|
1264
|
-
userAgent: string;
|
|
1265
|
-
/**
|
|
1266
|
-
* Language of the visitor.
|
|
1267
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
|
|
1268
|
-
*/
|
|
1269
|
-
language?: string;
|
|
1270
|
-
};
|
|
1271
|
-
/** The GitBook content's URL visited (including URL params). */
|
|
1272
|
-
url: string;
|
|
1273
|
-
/** The URL of referrer that linked to the page. */
|
|
1274
|
-
referrer: string;
|
|
1275
|
-
}
|
|
1276
|
-
export type InviteUsersAndTeams = ({
|
|
1277
|
-
/** @minItems 1 */
|
|
1278
|
-
teams: string[];
|
|
1279
|
-
} | {
|
|
1280
|
-
/** @minItems 1 */
|
|
1281
|
-
users: string[];
|
|
1282
|
-
}) & {
|
|
1283
|
-
/** Role to set. */
|
|
1284
|
-
role: MemberRoleOrGuest;
|
|
1285
|
-
};
|
|
1286
|
-
/** Permission of a user in a content. */
|
|
1287
|
-
export interface UserContentPermission {
|
|
1288
|
-
/**
|
|
1289
|
-
* "The role of a member in an organization.
|
|
1290
|
-
* "admin": Can administrate the content: create, delete spaces, ...
|
|
1291
|
-
* "create": Can create content.
|
|
1292
|
-
* "review": Can review content.
|
|
1293
|
-
* "edit": Can edit the content (live or change requests).
|
|
1294
|
-
* "comment": Can access the content and its discussions.
|
|
1295
|
-
* "read": Can access the content, but cannot update it in any way.
|
|
1136
|
+
/** Properties to be passed to the computation */
|
|
1137
|
+
props: PlainObject;
|
|
1138
|
+
/**
|
|
1139
|
+
* Dependencies the computation depends on.
|
|
1140
|
+
* The state of the dependencies will be passed to the computation.
|
|
1141
|
+
* When the dependency's targets are updated, the computation will be updated.
|
|
1296
1142
|
*/
|
|
1297
|
-
|
|
1298
|
-
|
|
1143
|
+
dependencies?: Record<string, {
|
|
1144
|
+
ref: ComputedContentDependencyRef;
|
|
1145
|
+
} | ComputedContentDependencyValue>;
|
|
1299
1146
|
}
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
export
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
/**
|
|
1318
|
-
|
|
1147
|
+
export type RevisionPageComputed = RevisionPageBase & {
|
|
1148
|
+
type: 'computed';
|
|
1149
|
+
/** Parameters for a computed content */
|
|
1150
|
+
computed: ComputedContentSource;
|
|
1151
|
+
};
|
|
1152
|
+
export interface GitSyncBlob {
|
|
1153
|
+
/** SHA for the blob */
|
|
1154
|
+
oid: string;
|
|
1155
|
+
/** Path of the blob in the Git tree */
|
|
1156
|
+
path: string;
|
|
1157
|
+
}
|
|
1158
|
+
/** Size of the cover image. */
|
|
1159
|
+
export declare enum RevisionPageLayoutOptionsCoverSize {
|
|
1160
|
+
Hero = "hero",
|
|
1161
|
+
Full = "full"
|
|
1162
|
+
}
|
|
1163
|
+
export interface RevisionPageLayoutOptions {
|
|
1164
|
+
/** Should the cover be visible? */
|
|
1165
|
+
cover?: boolean;
|
|
1166
|
+
/** Size of the cover image. */
|
|
1167
|
+
coverSize?: RevisionPageLayoutOptionsCoverSize;
|
|
1168
|
+
/** Should the title be visible? */
|
|
1169
|
+
title?: boolean;
|
|
1170
|
+
/** Should the description be visible? */
|
|
1171
|
+
description?: boolean;
|
|
1172
|
+
/** Should the table of contents be visible? */
|
|
1173
|
+
tableOfContents?: boolean;
|
|
1174
|
+
/** Should the outline be visible? */
|
|
1175
|
+
outline?: boolean;
|
|
1176
|
+
/** Should the pagination be visible? */
|
|
1177
|
+
pagination?: boolean;
|
|
1178
|
+
}
|
|
1179
|
+
export interface RevisionPageDocumentCover {
|
|
1180
|
+
/** Content reference pointing to the source image. */
|
|
1181
|
+
ref?: ContentRefFile;
|
|
1182
|
+
/** Vertical position of the cover image. */
|
|
1183
|
+
yPos: number;
|
|
1319
1184
|
}
|
|
1320
1185
|
export type RevisionPageGroup = RevisionPageBase & {
|
|
1321
1186
|
/** @deprecated */
|
|
@@ -1569,6 +1434,14 @@ export declare enum BillingProduct {
|
|
|
1569
1434
|
TeamDec2021 = "team_dec_2021",
|
|
1570
1435
|
BusinessDec2021 = "business_dec_2021"
|
|
1571
1436
|
}
|
|
1437
|
+
/** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
|
|
1438
|
+
export declare enum BillingTrialStatus {
|
|
1439
|
+
Notapplicable = "notapplicable",
|
|
1440
|
+
None = "none",
|
|
1441
|
+
Active = "active",
|
|
1442
|
+
Ended = "ended",
|
|
1443
|
+
Expired = "expired"
|
|
1444
|
+
}
|
|
1572
1445
|
export declare enum OrganizationBlockReason {
|
|
1573
1446
|
Security = "security"
|
|
1574
1447
|
}
|
|
@@ -1613,8 +1486,14 @@ export interface Organization {
|
|
|
1613
1486
|
/** URL of the logo of this organization, if defined. */
|
|
1614
1487
|
logo?: URL;
|
|
1615
1488
|
};
|
|
1616
|
-
|
|
1617
|
-
|
|
1489
|
+
trial: {
|
|
1490
|
+
/** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
|
|
1491
|
+
status: BillingTrialStatus;
|
|
1492
|
+
/** The trial's end date, if the organization has or had a trial. */
|
|
1493
|
+
endDate?: Timestamp;
|
|
1494
|
+
/** The decision taken by the user at the end of the trial */
|
|
1495
|
+
decision?: 'downgrade';
|
|
1496
|
+
};
|
|
1618
1497
|
/** Custom hostname linked to this organization */
|
|
1619
1498
|
customHostname?: string;
|
|
1620
1499
|
/** If the organization is blocked, information about the block will appear here */
|
|
@@ -1748,6 +1627,7 @@ export interface ContentLocationReusableContent {
|
|
|
1748
1627
|
* Slug used as reference
|
|
1749
1628
|
* @minLength 1
|
|
1750
1629
|
* @maxLength 100
|
|
1630
|
+
* @pattern ^[a-z0-9]+(?:-[a-z0-9]+)*$
|
|
1751
1631
|
*/
|
|
1752
1632
|
export type OpenAPISpecSlug = string;
|
|
1753
1633
|
/** Processing state */
|
|
@@ -2311,161 +2191,6 @@ export interface UpdateCommentReplySchema {
|
|
|
2311
2191
|
/** Reactions to remove from the comment. */
|
|
2312
2192
|
removedReactions?: string[];
|
|
2313
2193
|
}
|
|
2314
|
-
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
2315
|
-
export type Color = string;
|
|
2316
|
-
export interface CustomizationThemedColor {
|
|
2317
|
-
light: Color;
|
|
2318
|
-
dark: Color;
|
|
2319
|
-
}
|
|
2320
|
-
export declare enum CustomizationCorners {
|
|
2321
|
-
Straight = "straight",
|
|
2322
|
-
Rounded = "rounded"
|
|
2323
|
-
}
|
|
2324
|
-
export declare enum CustomizationFont {
|
|
2325
|
-
ABCFavorit = "ABCFavorit",
|
|
2326
|
-
Inter = "Inter",
|
|
2327
|
-
Roboto = "Roboto",
|
|
2328
|
-
RobotoSlab = "RobotoSlab",
|
|
2329
|
-
OpenSans = "OpenSans",
|
|
2330
|
-
SourceSansPro = "SourceSansPro",
|
|
2331
|
-
Lato = "Lato",
|
|
2332
|
-
Ubuntu = "Ubuntu",
|
|
2333
|
-
Raleway = "Raleway",
|
|
2334
|
-
Merriweather = "Merriweather",
|
|
2335
|
-
Overpass = "Overpass",
|
|
2336
|
-
NotoSans = "NotoSans",
|
|
2337
|
-
IBMPlexSerif = "IBMPlexSerif",
|
|
2338
|
-
Poppins = "Poppins",
|
|
2339
|
-
FiraSans = "FiraSans"
|
|
2340
|
-
}
|
|
2341
|
-
/**
|
|
2342
|
-
* The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
|
|
2343
|
-
* @deprecated
|
|
2344
|
-
*/
|
|
2345
|
-
export declare enum CustomizationBackground {
|
|
2346
|
-
Plain = "plain",
|
|
2347
|
-
Match = "match"
|
|
2348
|
-
}
|
|
2349
|
-
/** Language for the UI element */
|
|
2350
|
-
export declare enum CustomizationLocale {
|
|
2351
|
-
En = "en",
|
|
2352
|
-
Fr = "fr",
|
|
2353
|
-
Es = "es",
|
|
2354
|
-
Zh = "zh",
|
|
2355
|
-
Ja = "ja",
|
|
2356
|
-
De = "de",
|
|
2357
|
-
Nl = "nl",
|
|
2358
|
-
No = "no",
|
|
2359
|
-
PtBr = "pt-br"
|
|
2360
|
-
}
|
|
2361
|
-
export interface CustomizationThemedURL {
|
|
2362
|
-
light: URL;
|
|
2363
|
-
dark: URL;
|
|
2364
|
-
}
|
|
2365
|
-
/**
|
|
2366
|
-
* The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
|
|
2367
|
-
* @deprecated
|
|
2368
|
-
*/
|
|
2369
|
-
export declare enum CustomizationHeaderPreset {
|
|
2370
|
-
Default = "default",
|
|
2371
|
-
Bold = "bold",
|
|
2372
|
-
Contrast = "contrast",
|
|
2373
|
-
Custom = "custom",
|
|
2374
|
-
None = "none"
|
|
2375
|
-
}
|
|
2376
|
-
export interface CustomizationContentLink {
|
|
2377
|
-
title: string;
|
|
2378
|
-
/** A relative reference to content in GitBook. */
|
|
2379
|
-
to: ContentRef;
|
|
2380
|
-
}
|
|
2381
|
-
export interface CustomizationHeaderItem {
|
|
2382
|
-
title: string;
|
|
2383
|
-
style?: 'link' | 'button-primary' | 'button-secondary';
|
|
2384
|
-
to: ContentRef | null;
|
|
2385
|
-
links: CustomizationContentLink[];
|
|
2386
|
-
}
|
|
2387
|
-
export interface CustomizationFooterGroup {
|
|
2388
|
-
title: string;
|
|
2389
|
-
links: CustomizationContentLink[];
|
|
2390
|
-
}
|
|
2391
|
-
export declare enum CustomizationThemeMode {
|
|
2392
|
-
Light = "light",
|
|
2393
|
-
Dark = "dark"
|
|
2394
|
-
}
|
|
2395
|
-
export interface CustomizationSettings {
|
|
2396
|
-
/** Inherit customization settings from the parent collection. */
|
|
2397
|
-
inherit: boolean;
|
|
2398
|
-
/** Title to use for the published content. If not defined, it'll fallback to the content title. */
|
|
2399
|
-
title?: string;
|
|
2400
|
-
styling: {
|
|
2401
|
-
primaryColor: CustomizationThemedColor;
|
|
2402
|
-
corners: CustomizationCorners;
|
|
2403
|
-
font: CustomizationFont;
|
|
2404
|
-
/** The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead. */
|
|
2405
|
-
background?: CustomizationBackground;
|
|
2406
|
-
};
|
|
2407
|
-
internationalization: {
|
|
2408
|
-
/** Language for the UI element */
|
|
2409
|
-
locale: CustomizationLocale;
|
|
2410
|
-
/** Inherit locale from the parent collection. */
|
|
2411
|
-
inherit: boolean;
|
|
2412
|
-
};
|
|
2413
|
-
favicon: {
|
|
2414
|
-
icon: CustomizationThemedURL;
|
|
2415
|
-
} | {
|
|
2416
|
-
/** Unicode codepoint or character of the emoji */
|
|
2417
|
-
emoji: Emoji;
|
|
2418
|
-
} | object;
|
|
2419
|
-
header: {
|
|
2420
|
-
/** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
|
|
2421
|
-
preset: CustomizationHeaderPreset;
|
|
2422
|
-
logo?: CustomizationThemedURL;
|
|
2423
|
-
backgroundColor?: CustomizationThemedColor;
|
|
2424
|
-
linkColor?: CustomizationThemedColor;
|
|
2425
|
-
links: CustomizationHeaderItem[];
|
|
2426
|
-
};
|
|
2427
|
-
footer: {
|
|
2428
|
-
logo?: CustomizationThemedURL;
|
|
2429
|
-
groups: CustomizationFooterGroup[];
|
|
2430
|
-
/** @maxLength 300 */
|
|
2431
|
-
copyright?: string;
|
|
2432
|
-
};
|
|
2433
|
-
themes: {
|
|
2434
|
-
default: CustomizationThemeMode;
|
|
2435
|
-
/** Should the reader be able to switch between dark and light mode */
|
|
2436
|
-
toggeable: boolean;
|
|
2437
|
-
};
|
|
2438
|
-
pdf: {
|
|
2439
|
-
/** If true, PDF export is enabled for the published content. */
|
|
2440
|
-
enabled: boolean;
|
|
2441
|
-
};
|
|
2442
|
-
feedback: {
|
|
2443
|
-
/** If true, feedback gathering is enabled */
|
|
2444
|
-
enabled: boolean;
|
|
2445
|
-
};
|
|
2446
|
-
aiSearch: {
|
|
2447
|
-
/** If true, AI search is enabled */
|
|
2448
|
-
enabled: boolean;
|
|
2449
|
-
};
|
|
2450
|
-
git: {
|
|
2451
|
-
/** Whether the public content should show a link to edit the content on the git provider set up in the GitSync */
|
|
2452
|
-
showEditLink: boolean;
|
|
2453
|
-
};
|
|
2454
|
-
pagination: {
|
|
2455
|
-
/** Whether the pagination navigation should be displayed on pages. */
|
|
2456
|
-
enabled: boolean;
|
|
2457
|
-
};
|
|
2458
|
-
trademark: {
|
|
2459
|
-
/** Whether the GitBook trademark ("Powered by GitBook") should be visible */
|
|
2460
|
-
enabled: boolean;
|
|
2461
|
-
};
|
|
2462
|
-
privacyPolicy: {
|
|
2463
|
-
url?: URL;
|
|
2464
|
-
};
|
|
2465
|
-
socialPreview: {
|
|
2466
|
-
url?: URL;
|
|
2467
|
-
};
|
|
2468
|
-
}
|
|
2469
2194
|
/**
|
|
2470
2195
|
* Title of the integration
|
|
2471
2196
|
* @minLength 2
|
|
@@ -2747,48 +2472,26 @@ export interface CustomField {
|
|
|
2747
2472
|
placeholder: CustomFieldPlaceholder;
|
|
2748
2473
|
options?: CustomFieldOptions;
|
|
2749
2474
|
createdAt: Timestamp;
|
|
2750
|
-
updatedAt: Timestamp;
|
|
2751
|
-
/** URLs associated with the object */
|
|
2752
|
-
urls: {
|
|
2753
|
-
/**
|
|
2754
|
-
* URL of the custom field in the API
|
|
2755
|
-
* @format uri
|
|
2756
|
-
*/
|
|
2757
|
-
location: string;
|
|
2758
|
-
};
|
|
2759
|
-
}
|
|
2760
|
-
export type CustomFieldValues = {
|
|
2761
|
-
/** Custom field */
|
|
2762
|
-
customField: CustomField;
|
|
2763
|
-
value?: CustomFieldValue;
|
|
2764
|
-
}[];
|
|
2765
|
-
export interface UpdateCustomFieldValues {
|
|
2766
|
-
values: Record<string, {
|
|
2767
|
-
value: CustomFieldValue;
|
|
2768
|
-
}>;
|
|
2769
|
-
}
|
|
2770
|
-
export declare enum PageFeedbackRating {
|
|
2771
|
-
Bad = "bad",
|
|
2772
|
-
Ok = "ok",
|
|
2773
|
-
Good = "good"
|
|
2774
|
-
}
|
|
2775
|
-
export interface PageFeedback {
|
|
2776
|
-
/** Type of Object, always equal to "page-feedback" */
|
|
2777
|
-
object: 'page-feedback';
|
|
2778
|
-
visitorId: string;
|
|
2779
|
-
rating: PageFeedbackRating;
|
|
2780
|
-
createdAt: Timestamp;
|
|
2781
|
-
/** ID of the revision when the rating was created */
|
|
2782
|
-
revision: string;
|
|
2475
|
+
updatedAt: Timestamp;
|
|
2783
2476
|
/** URLs associated with the object */
|
|
2784
2477
|
urls: {
|
|
2785
2478
|
/**
|
|
2786
|
-
* URL of the
|
|
2479
|
+
* URL of the custom field in the API
|
|
2787
2480
|
* @format uri
|
|
2788
2481
|
*/
|
|
2789
2482
|
location: string;
|
|
2790
2483
|
};
|
|
2791
2484
|
}
|
|
2485
|
+
export type CustomFieldValues = {
|
|
2486
|
+
/** Custom field */
|
|
2487
|
+
customField: CustomField;
|
|
2488
|
+
value?: CustomFieldValue;
|
|
2489
|
+
}[];
|
|
2490
|
+
export interface UpdateCustomFieldValues {
|
|
2491
|
+
values: Record<string, {
|
|
2492
|
+
value: CustomFieldValue;
|
|
2493
|
+
}>;
|
|
2494
|
+
}
|
|
2792
2495
|
/** Secrets stored on the integration and passed at runtime. */
|
|
2793
2496
|
export type IntegrationSecrets = Record<string, string>;
|
|
2794
2497
|
export interface PublishIntegration {
|
|
@@ -3288,7 +2991,7 @@ export interface ContentKitTextInput {
|
|
|
3288
2991
|
placeholder?: string;
|
|
3289
2992
|
multiline?: boolean;
|
|
3290
2993
|
/** @default "text" */
|
|
3291
|
-
inputType?: 'text' | 'password';
|
|
2994
|
+
inputType?: 'text' | 'password' | 'email';
|
|
3292
2995
|
}
|
|
3293
2996
|
/** Any element that can be used as children. */
|
|
3294
2997
|
export type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink | ContentKitStepperStep;
|
|
@@ -3410,6 +3113,10 @@ export interface ContentKitCard {
|
|
|
3410
3113
|
/** Buttons displayed in the top right corner of the card. */
|
|
3411
3114
|
buttons?: ContentKitButton[];
|
|
3412
3115
|
}
|
|
3116
|
+
/** Built-in sources that can be used to provide a ContentKitSelect. */
|
|
3117
|
+
export interface ContentKitBuiltInSource {
|
|
3118
|
+
source: 'openapi';
|
|
3119
|
+
}
|
|
3413
3120
|
/** An individual option in a select element */
|
|
3414
3121
|
export interface ContentKitSelectOption {
|
|
3415
3122
|
id: string;
|
|
@@ -3432,8 +3139,8 @@ export interface ContentKitSelect {
|
|
|
3432
3139
|
multiple?: boolean;
|
|
3433
3140
|
/** Should the filter input be allowed to be selected as an option. */
|
|
3434
3141
|
acceptInput?: boolean;
|
|
3435
|
-
/**
|
|
3436
|
-
options: ContentKitSelectOption[] | {
|
|
3142
|
+
/** Options to be displayed in the select. */
|
|
3143
|
+
options: ContentKitBuiltInSource | ContentKitSelectOption[] | {
|
|
3437
3144
|
/** External source of options. The URL should respond with an array of options. */
|
|
3438
3145
|
url: string | ContentKitURL;
|
|
3439
3146
|
};
|
|
@@ -3666,6 +3373,35 @@ export type SiteAds = {
|
|
|
3666
3373
|
/** The ad network zone ID */
|
|
3667
3374
|
zoneId: string;
|
|
3668
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
|
+
};
|
|
3669
3405
|
export interface Site {
|
|
3670
3406
|
object: 'site';
|
|
3671
3407
|
/** Unique identifier of the site */
|
|
@@ -3695,6 +3431,8 @@ export interface Site {
|
|
|
3695
3431
|
createdAt: string;
|
|
3696
3432
|
adaptiveContent?: SiteAdaptiveContent;
|
|
3697
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[];
|
|
3698
3436
|
/** URLs associated with the object */
|
|
3699
3437
|
urls: {
|
|
3700
3438
|
/**
|
|
@@ -4068,36 +3806,23 @@ export interface BillingDiscount {
|
|
|
4068
3806
|
/** Percent that will be deducted from the subtotal of the invoice */
|
|
4069
3807
|
percentOff: number;
|
|
4070
3808
|
}
|
|
4071
|
-
/** These are all the features we check to determine the new pricing site type. */
|
|
4072
|
-
export declare enum SiteToMigrateFeature {
|
|
4073
|
-
Sections = "sections",
|
|
4074
|
-
VisitorAuth = "visitor-auth",
|
|
4075
|
-
Redirects = "redirects",
|
|
4076
|
-
CustomHostname = "custom-hostname",
|
|
4077
|
-
AISearch = "AI-search",
|
|
4078
|
-
PDFExport = "PDF-export",
|
|
4079
|
-
PageRatings = "page-ratings",
|
|
4080
|
-
CustomLogo = "custom-logo",
|
|
4081
|
-
CustomThemePreset = "custom-theme-preset",
|
|
4082
|
-
CustomFonts = "custom-fonts",
|
|
4083
|
-
CustomIcons = "custom-icons",
|
|
4084
|
-
CustomFooterLogo = "custom-footer-logo",
|
|
4085
|
-
CustomFooterCopyright = "custom-footer-copyright",
|
|
4086
|
-
CustomFooterLinks = "custom-footer-links",
|
|
4087
|
-
Unlisted = "unlisted",
|
|
4088
|
-
ShareLinks = "share-links"
|
|
4089
|
-
}
|
|
4090
3809
|
export interface SiteToMigrate {
|
|
4091
3810
|
object: 'site-to-migrate';
|
|
4092
3811
|
site: Site;
|
|
4093
3812
|
/** The new type of the site */
|
|
4094
3813
|
newType: SiteType;
|
|
4095
|
-
features:
|
|
3814
|
+
features: SiteFeature[];
|
|
4096
3815
|
}
|
|
4097
3816
|
export interface BillingPortal {
|
|
4098
3817
|
/** URL to the billing portal for an organization */
|
|
4099
3818
|
url: string;
|
|
4100
3819
|
}
|
|
3820
|
+
/** Search result representing a space. */
|
|
3821
|
+
export interface SearchSpaceResult {
|
|
3822
|
+
id: string;
|
|
3823
|
+
title: string;
|
|
3824
|
+
pages: SearchPageResult[];
|
|
3825
|
+
}
|
|
4101
3826
|
export interface CreateSpace {
|
|
4102
3827
|
/** @maxLength 50 */
|
|
4103
3828
|
title?: string;
|
|
@@ -4247,6 +3972,50 @@ export interface OrganizationUsage {
|
|
|
4247
3972
|
/** Team members usage metrics of an organization */
|
|
4248
3973
|
teamMembers: OrganizationUsageTeamMembers;
|
|
4249
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
|
+
}
|
|
4250
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. */
|
|
4251
4020
|
export type BillingOperationPreviewResponse = {
|
|
4252
4021
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
@@ -4281,9 +4050,19 @@ export declare enum CustomizationTheme {
|
|
|
4281
4050
|
Bold = "bold",
|
|
4282
4051
|
Gradient = "gradient"
|
|
4283
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
|
+
}
|
|
4284
4059
|
export interface CustomizationTint {
|
|
4285
4060
|
color: CustomizationThemedColor;
|
|
4286
4061
|
}
|
|
4062
|
+
export declare enum CustomizationCorners {
|
|
4063
|
+
Straight = "straight",
|
|
4064
|
+
Rounded = "rounded"
|
|
4065
|
+
}
|
|
4287
4066
|
/**
|
|
4288
4067
|
* The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
|
|
4289
4068
|
* - `default`: Links are colored in the primary color and feature an underline in the same color.
|
|
@@ -4293,6 +4072,32 @@ export declare enum CustomizationLinksStyle {
|
|
|
4293
4072
|
Default = "default",
|
|
4294
4073
|
Accent = "accent"
|
|
4295
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
|
+
}
|
|
4296
4101
|
export declare enum CustomizationIconsStyle {
|
|
4297
4102
|
Regular = "regular",
|
|
4298
4103
|
Solid = "solid",
|
|
@@ -4318,6 +4123,52 @@ export declare enum CustomizationSidebarListStyle {
|
|
|
4318
4123
|
Pill = "pill",
|
|
4319
4124
|
Line = "line"
|
|
4320
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;
|
|
4141
|
+
}
|
|
4142
|
+
/**
|
|
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
|
|
4145
|
+
*/
|
|
4146
|
+
export declare enum CustomizationHeaderPreset {
|
|
4147
|
+
Default = "default",
|
|
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"
|
|
4171
|
+
}
|
|
4321
4172
|
export interface SiteCustomizationSettings {
|
|
4322
4173
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
4323
4174
|
title?: SiteTitle;
|
|
@@ -4562,42 +4413,6 @@ export interface UserSitePermission {
|
|
|
4562
4413
|
/** The content or organization that enforced this permission level. */
|
|
4563
4414
|
origin: SpacePointer | OrganizationPointer;
|
|
4564
4415
|
}
|
|
4565
|
-
export type SiteTrackPageView = {
|
|
4566
|
-
/** Unique identifier of the page. */
|
|
4567
|
-
pageId?: string;
|
|
4568
|
-
/** Analytics info on the GitBook's content visitor. */
|
|
4569
|
-
visitor: {
|
|
4570
|
-
/** GitBook's unique identifier of the visitor. */
|
|
4571
|
-
anonymousId: string;
|
|
4572
|
-
/** The visitors cookies. */
|
|
4573
|
-
cookies: Record<string, string>;
|
|
4574
|
-
/**
|
|
4575
|
-
* IP address of the visitor.
|
|
4576
|
-
* If undefined, it'll default to the IP executing the request.
|
|
4577
|
-
*/
|
|
4578
|
-
ip?: string;
|
|
4579
|
-
/**
|
|
4580
|
-
* User-agent of the visitor.
|
|
4581
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
|
|
4582
|
-
*/
|
|
4583
|
-
userAgent: string;
|
|
4584
|
-
/**
|
|
4585
|
-
* Language of the visitor.
|
|
4586
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
|
|
4587
|
-
*/
|
|
4588
|
-
language?: string;
|
|
4589
|
-
};
|
|
4590
|
-
/** The GitBook content's URL visited (including URL params). */
|
|
4591
|
-
url: string;
|
|
4592
|
-
/** The URL of referrer that linked to the page. */
|
|
4593
|
-
referrer: string;
|
|
4594
|
-
} & ({
|
|
4595
|
-
/** Unique identifier of the space. */
|
|
4596
|
-
spaceId: string;
|
|
4597
|
-
} | {
|
|
4598
|
-
/** The site-space that was viewed */
|
|
4599
|
-
siteSpaceId: string;
|
|
4600
|
-
});
|
|
4601
4416
|
/** Analytics info on the GitBook's site session. */
|
|
4602
4417
|
export interface SiteInsightsEventSession {
|
|
4603
4418
|
/** GitBook's unique identifier of the visitor. */
|
|
@@ -4676,6 +4491,11 @@ export type SiteInsightsEventSearchOpenResult = SiteInsightsEventBase & {
|
|
|
4676
4491
|
pageId: string;
|
|
4677
4492
|
};
|
|
4678
4493
|
};
|
|
4494
|
+
export declare enum PageFeedbackRating {
|
|
4495
|
+
Bad = "bad",
|
|
4496
|
+
Ok = "ok",
|
|
4497
|
+
Good = "good"
|
|
4498
|
+
}
|
|
4679
4499
|
export type SiteInsightsEventPagePostFeedback = SiteInsightsEventBase & {
|
|
4680
4500
|
type: 'page_post_feedback';
|
|
4681
4501
|
feedback: {
|
|
@@ -5063,54 +4883,11 @@ export interface SiteInsightsVisitorSegment {
|
|
|
5063
4883
|
/** The number of sessions for this visitor profile. */
|
|
5064
4884
|
sessions: number;
|
|
5065
4885
|
}
|
|
5066
|
-
/**
|
|
5067
|
-
* The interval for grouping the results
|
|
5068
|
-
* @default "week"
|
|
5069
|
-
*/
|
|
5070
|
-
export declare enum InsightsInterval {
|
|
5071
|
-
Day = "day",
|
|
5072
|
-
Week = "week",
|
|
5073
|
-
Month = "month",
|
|
5074
|
-
Year = "year"
|
|
5075
|
-
}
|
|
5076
4886
|
export interface SiteAdsStats {
|
|
5077
4887
|
impressions: number;
|
|
5078
4888
|
clicks: number;
|
|
5079
4889
|
revenue: string;
|
|
5080
4890
|
}
|
|
5081
|
-
export interface SearchInsightsIntervals {
|
|
5082
|
-
values?: {
|
|
5083
|
-
/**
|
|
5084
|
-
* The start date of this interval
|
|
5085
|
-
* @format date-time
|
|
5086
|
-
*/
|
|
5087
|
-
date: string;
|
|
5088
|
-
/** The total number of searches during the interval. */
|
|
5089
|
-
total: number;
|
|
5090
|
-
/** Top queries searched for this content. */
|
|
5091
|
-
queries: AnalyticsSearchQuery[];
|
|
5092
|
-
}[];
|
|
5093
|
-
}
|
|
5094
|
-
/** Page entry in the content insights. */
|
|
5095
|
-
export interface InsightsContentPage {
|
|
5096
|
-
/** Unique identifier for the page in the revision */
|
|
5097
|
-
id: string;
|
|
5098
|
-
/** Title of the page */
|
|
5099
|
-
title: string;
|
|
5100
|
-
/** Complete path to access the page in the revision. */
|
|
5101
|
-
path?: string;
|
|
5102
|
-
/** Emoji of the page, if one has been set. */
|
|
5103
|
-
emoji?: Emoji;
|
|
5104
|
-
/** Icon of the page, if one has been set. */
|
|
5105
|
-
icon?: Icon;
|
|
5106
|
-
}
|
|
5107
|
-
/** Analytics entry for an ask. */
|
|
5108
|
-
export interface AnalyticsAsk {
|
|
5109
|
-
/** The question that was asked. */
|
|
5110
|
-
ask: string;
|
|
5111
|
-
/** Number of times this question was asked. */
|
|
5112
|
-
count: number;
|
|
5113
|
-
}
|
|
5114
4891
|
/**
|
|
5115
4892
|
* The source path to redirect from.
|
|
5116
4893
|
* @maxLength 512
|
|
@@ -5143,6 +4920,25 @@ export interface SiteRedirect {
|
|
|
5143
4920
|
source: SiteRedirectSourcePath;
|
|
5144
4921
|
destination: SiteRedirectDestination;
|
|
5145
4922
|
}
|
|
4923
|
+
export interface StorageFileMetadata {
|
|
4924
|
+
/** Original filename */
|
|
4925
|
+
name: string;
|
|
4926
|
+
/** MIME type of the file */
|
|
4927
|
+
type: string;
|
|
4928
|
+
/** Size of the file in bytes */
|
|
4929
|
+
size: number;
|
|
4930
|
+
}
|
|
4931
|
+
export declare enum StorageUploadKind {
|
|
4932
|
+
CustomizationFont = "customization_font"
|
|
4933
|
+
}
|
|
4934
|
+
export interface StorageUploadURL {
|
|
4935
|
+
/** The kind of file to upload */
|
|
4936
|
+
object: 'storage-signed-url';
|
|
4937
|
+
/** Presigned URL for uploading the file */
|
|
4938
|
+
url: URL;
|
|
4939
|
+
/** The bucket object key for the file */
|
|
4940
|
+
key: string;
|
|
4941
|
+
}
|
|
5146
4942
|
export declare enum CustomHostnameDnsStatus {
|
|
5147
4943
|
DnsPassed = "dns_passed",
|
|
5148
4944
|
DnsWrongCname = "dns_wrong_cname",
|
|
@@ -5398,11 +5194,77 @@ export interface OpenAPISpecContent {
|
|
|
5398
5194
|
filesystem: object;
|
|
5399
5195
|
url: URL;
|
|
5400
5196
|
}
|
|
5401
|
-
/**
|
|
5402
|
-
* @minLength 64
|
|
5403
|
-
* @maxLength 64
|
|
5404
|
-
*/
|
|
5405
|
-
export type SHA256 = string;
|
|
5197
|
+
/**
|
|
5198
|
+
* @minLength 64
|
|
5199
|
+
* @maxLength 64
|
|
5200
|
+
*/
|
|
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
|
+
});
|
|
5406
5268
|
export interface UpdateContentPublishingAuth {
|
|
5407
5269
|
/**
|
|
5408
5270
|
* A fallback URL that will be used if authentication fails.
|
|
@@ -5430,7 +5292,7 @@ export interface ContentPublishingAuth {
|
|
|
5430
5292
|
*/
|
|
5431
5293
|
fallbackURL?: string;
|
|
5432
5294
|
}
|
|
5433
|
-
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
|
|
5295
|
+
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
|
|
5434
5296
|
/** Dependency for a computation, before its resolution. */
|
|
5435
5297
|
export interface ComputedContentDependency {
|
|
5436
5298
|
ref: ComputedContentDependencyRef;
|
|
@@ -5623,13 +5485,6 @@ export interface ContentComputeRevisionEventResponse {
|
|
|
5623
5485
|
pages?: InputPage[];
|
|
5624
5486
|
files?: InputFile[];
|
|
5625
5487
|
}
|
|
5626
|
-
export declare enum BillingTrialStatus {
|
|
5627
|
-
Notapplicable = "notapplicable",
|
|
5628
|
-
None = "none",
|
|
5629
|
-
Active = "active",
|
|
5630
|
-
Ended = "ended",
|
|
5631
|
-
Expired = "expired"
|
|
5632
|
-
}
|
|
5633
5488
|
export declare enum APIIntegrationScope {
|
|
5634
5489
|
IntegrationRead = "integration:read",
|
|
5635
5490
|
IntegrationUpdate = "integration:update",
|
|
@@ -5989,6 +5844,86 @@ export interface APIChannelMutationData {
|
|
|
5989
5844
|
}
|
|
5990
5845
|
/** Data passed through a realtime channel */
|
|
5991
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;
|
|
5909
|
+
};
|
|
5910
|
+
trademark: {
|
|
5911
|
+
/** Whether the GitBook trademark ("Powered by GitBook") should be visible */
|
|
5912
|
+
enabled: boolean;
|
|
5913
|
+
};
|
|
5914
|
+
privacyPolicy: {
|
|
5915
|
+
url?: URL;
|
|
5916
|
+
};
|
|
5917
|
+
socialPreview: {
|
|
5918
|
+
url?: URL;
|
|
5919
|
+
};
|
|
5920
|
+
}
|
|
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;
|
|
5992
5927
|
/** The status of ads on the site */
|
|
5993
5928
|
export declare enum SiteAdsStatus {
|
|
5994
5929
|
Pending = "pending",
|
|
@@ -5997,6 +5932,12 @@ export declare enum SiteAdsStatus {
|
|
|
5997
5932
|
Rejected = "rejected",
|
|
5998
5933
|
Disabled = "disabled"
|
|
5999
5934
|
}
|
|
5935
|
+
/**
|
|
5936
|
+
* The path of the file in the storage bucket
|
|
5937
|
+
* @minLength 1
|
|
5938
|
+
* @maxLength 512
|
|
5939
|
+
*/
|
|
5940
|
+
export type StorageFileKey = string;
|
|
6000
5941
|
export interface Seat {
|
|
6001
5942
|
object: 'seat';
|
|
6002
5943
|
/** The unique ID of the organization */
|
|
@@ -6112,85 +6053,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6112
6053
|
* @secure
|
|
6113
6054
|
*/
|
|
6114
6055
|
getApiInformation: (params?: RequestParams) => Promise<HttpResponse<ApiInformation, Error>>;
|
|
6115
|
-
search: {
|
|
6116
|
-
/**
|
|
6117
|
-
* No description
|
|
6118
|
-
*
|
|
6119
|
-
* @tags search
|
|
6120
|
-
* @name SearchContent
|
|
6121
|
-
* @summary Search content across spaces that is accessible by the currently authenticated target
|
|
6122
|
-
* @request GET:/search
|
|
6123
|
-
* @deprecated
|
|
6124
|
-
* @secure
|
|
6125
|
-
*/
|
|
6126
|
-
searchContent: (query: {
|
|
6127
|
-
/** @maxLength 512 */
|
|
6128
|
-
query: string;
|
|
6129
|
-
/** Identifier of the page results to fetch. */
|
|
6130
|
-
page?: string;
|
|
6131
|
-
/**
|
|
6132
|
-
* The number of results per page
|
|
6133
|
-
* @min 0
|
|
6134
|
-
* @max 1000
|
|
6135
|
-
*/
|
|
6136
|
-
limit?: number;
|
|
6137
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6138
|
-
items: SearchSpaceResult[];
|
|
6139
|
-
}, Error>>;
|
|
6140
|
-
/**
|
|
6141
|
-
* No description
|
|
6142
|
-
*
|
|
6143
|
-
* @name AskQueryWithGet
|
|
6144
|
-
* @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
|
|
6145
|
-
* @request GET:/search/ask
|
|
6146
|
-
* @deprecated
|
|
6147
|
-
* @secure
|
|
6148
|
-
*/
|
|
6149
|
-
askQueryWithGet: (query: {
|
|
6150
|
-
query: string;
|
|
6151
|
-
/** Output format for the content. */
|
|
6152
|
-
format?: "document" | "markdown";
|
|
6153
|
-
/** Return query details in the result */
|
|
6154
|
-
details?: boolean;
|
|
6155
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
6156
|
-
/** Answer from AI for a question asked on a content. */
|
|
6157
|
-
answer?: SearchAIAnswer;
|
|
6158
|
-
}, Error>>;
|
|
6159
|
-
/**
|
|
6160
|
-
* No description
|
|
6161
|
-
*
|
|
6162
|
-
* @name AskQuery
|
|
6163
|
-
* @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
|
|
6164
|
-
* @request POST:/search/ask
|
|
6165
|
-
* @deprecated
|
|
6166
|
-
* @secure
|
|
6167
|
-
*/
|
|
6168
|
-
askQuery: (data: SearchAIQuery, query?: {
|
|
6169
|
-
/** Output format for the content. */
|
|
6170
|
-
format?: "document" | "markdown";
|
|
6171
|
-
/** Return query details in the result */
|
|
6172
|
-
details?: boolean;
|
|
6173
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
6174
|
-
/** Answer from AI for a question asked on a content. */
|
|
6175
|
-
answer?: SearchAIAnswer;
|
|
6176
|
-
}, Error>>;
|
|
6177
|
-
/**
|
|
6178
|
-
* No description
|
|
6179
|
-
*
|
|
6180
|
-
* @name GetRecommendedQuestions
|
|
6181
|
-
* @summary Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.
|
|
6182
|
-
* @request POST:/search/questions
|
|
6183
|
-
* @deprecated
|
|
6184
|
-
* @secure
|
|
6185
|
-
*/
|
|
6186
|
-
getRecommendedQuestions: (data: {
|
|
6187
|
-
/**
|
|
6188
|
-
* @maxItems 50
|
|
6189
|
-
* @minItems 1
|
|
6190
|
-
*/
|
|
6191
|
-
documents: string[];
|
|
6192
|
-
}, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
6193
|
-
};
|
|
6194
6056
|
user: {
|
|
6195
6057
|
/**
|
|
6196
6058
|
* @description Returns details about the user associated with the authentication provided in the request's authorization header.
|
|
@@ -6368,96 +6230,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6368
6230
|
/**
|
|
6369
6231
|
* No description
|
|
6370
6232
|
*
|
|
6233
|
+
* @tags search
|
|
6371
6234
|
* @name SearchSpaceContent
|
|
6372
|
-
* @summary Search content in a space
|
|
6373
|
-
* @request GET:/spaces/{spaceId}/search
|
|
6374
|
-
* @secure
|
|
6375
|
-
*/
|
|
6376
|
-
searchSpaceContent: (spaceId: string, query: {
|
|
6377
|
-
/** @maxLength 512 */
|
|
6378
|
-
query: string;
|
|
6379
|
-
/** Identifier of the page results to fetch. */
|
|
6380
|
-
page?: string;
|
|
6381
|
-
/**
|
|
6382
|
-
* The number of results per page
|
|
6383
|
-
* @min 0
|
|
6384
|
-
* @max 1000
|
|
6385
|
-
*/
|
|
6386
|
-
limit?: number;
|
|
6387
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6388
|
-
items: SearchPageResult[];
|
|
6389
|
-
}, Error>>;
|
|
6390
|
-
/**
|
|
6391
|
-
* No description
|
|
6392
|
-
*
|
|
6393
|
-
* @name AskQueryInSpaceWithGet
|
|
6394
|
-
* @summary Ask a question to an AI within the context of the space.
|
|
6395
|
-
* @request GET:/spaces/{spaceId}/search/ask
|
|
6396
|
-
* @deprecated
|
|
6397
|
-
* @secure
|
|
6398
|
-
*/
|
|
6399
|
-
askQueryInSpaceWithGet: (spaceId: string, query: {
|
|
6400
|
-
query: string;
|
|
6401
|
-
/** Output format for the content. */
|
|
6402
|
-
format?: "document" | "markdown";
|
|
6403
|
-
/** Return query details in the result */
|
|
6404
|
-
details?: boolean;
|
|
6405
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
6406
|
-
/** Answer from AI for a question asked on a content. */
|
|
6407
|
-
answer?: SearchAIAnswer;
|
|
6408
|
-
}, Error>>;
|
|
6409
|
-
/**
|
|
6410
|
-
* No description
|
|
6411
|
-
*
|
|
6412
|
-
* @name AskQueryInSpace
|
|
6413
|
-
* @summary Ask a question to an AI within the context of the space.
|
|
6414
|
-
* @request POST:/spaces/{spaceId}/search/ask
|
|
6415
|
-
* @secure
|
|
6416
|
-
*/
|
|
6417
|
-
askQueryInSpace: (spaceId: string, data: SearchAIQuery, query?: {
|
|
6418
|
-
/** Output format for the content. */
|
|
6419
|
-
format?: "document" | "markdown";
|
|
6420
|
-
/** Return query details in the result */
|
|
6421
|
-
details?: boolean;
|
|
6422
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
6423
|
-
/** Answer from AI for a question asked on a content. */
|
|
6424
|
-
answer?: SearchAIAnswer;
|
|
6425
|
-
}, Error>>;
|
|
6426
|
-
/**
|
|
6427
|
-
* No description
|
|
6428
|
-
*
|
|
6429
|
-
* @name StreamAskInSpace
|
|
6430
|
-
* @summary Ask a question to an AI within the context of the space and stream the answer as a Server-Sent Events URL.
|
|
6431
|
-
* @request GET:/spaces/{spaceId}/search/ask/stream
|
|
6432
|
-
* @secure
|
|
6433
|
-
*/
|
|
6434
|
-
streamAskInSpace: (spaceId: string, query: {
|
|
6435
|
-
query: string;
|
|
6436
|
-
/** Output format for the content. */
|
|
6437
|
-
format?: "document" | "markdown";
|
|
6438
|
-
/** Ensure that the response is never null */
|
|
6439
|
-
details?: boolean;
|
|
6440
|
-
}, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
|
|
6441
|
-
/**
|
|
6442
|
-
* No description
|
|
6443
|
-
*
|
|
6444
|
-
* @name GetRecommendedQuestionsInSpace
|
|
6445
|
-
* @summary Get a list of questions that can be asked in a space.
|
|
6446
|
-
* @request GET:/spaces/{spaceId}/search/questions
|
|
6447
|
-
* @deprecated
|
|
6448
|
-
* @secure
|
|
6449
|
-
*/
|
|
6450
|
-
getRecommendedQuestionsInSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
6451
|
-
/**
|
|
6452
|
-
* No description
|
|
6453
|
-
*
|
|
6454
|
-
* @name StreamRecommendedQuestionsInSpace
|
|
6455
|
-
* @summary Stream a list of questions that can be asked in a space.
|
|
6456
|
-
* @request GET:/spaces/{spaceId}/search/questions/stream
|
|
6457
|
-
* @deprecated
|
|
6235
|
+
* @summary Search content in a space
|
|
6236
|
+
* @request GET:/spaces/{spaceId}/search
|
|
6458
6237
|
* @secure
|
|
6459
6238
|
*/
|
|
6460
|
-
|
|
6239
|
+
searchSpaceContent: (spaceId: string, query: {
|
|
6240
|
+
/** @maxLength 512 */
|
|
6241
|
+
query: string;
|
|
6242
|
+
/** Identifier of the page results to fetch. */
|
|
6243
|
+
page?: string;
|
|
6244
|
+
/**
|
|
6245
|
+
* The number of results per page
|
|
6246
|
+
* @min 0
|
|
6247
|
+
* @max 1000
|
|
6248
|
+
*/
|
|
6249
|
+
limit?: number;
|
|
6250
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6251
|
+
items: SearchPageResult[];
|
|
6252
|
+
}, Error>>;
|
|
6461
6253
|
/**
|
|
6462
6254
|
* No description
|
|
6463
6255
|
*
|
|
@@ -6494,54 +6286,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6494
6286
|
message: string;
|
|
6495
6287
|
};
|
|
6496
6288
|
}>>;
|
|
6497
|
-
/**
|
|
6498
|
-
* No description
|
|
6499
|
-
*
|
|
6500
|
-
* @tags analytics, spaces
|
|
6501
|
-
* @name GetContentAnalyticsForSpaceById
|
|
6502
|
-
* @summary Get content analytics for a given space.
|
|
6503
|
-
* @request GET:/spaces/{spaceId}/insights/content
|
|
6504
|
-
* @deprecated
|
|
6505
|
-
* @secure
|
|
6506
|
-
*/
|
|
6507
|
-
getContentAnalyticsForSpaceById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
|
|
6508
|
-
/**
|
|
6509
|
-
* No description
|
|
6510
|
-
*
|
|
6511
|
-
* @tags analytics, spaces
|
|
6512
|
-
* @name GetSearchAnalyticsForSpaceById
|
|
6513
|
-
* @summary Get an overview of the top search queries in a space.
|
|
6514
|
-
* @request GET:/spaces/{spaceId}/insights/search
|
|
6515
|
-
* @deprecated
|
|
6516
|
-
* @secure
|
|
6517
|
-
*/
|
|
6518
|
-
getSearchAnalyticsForSpaceById: (spaceId: string, query?: {
|
|
6519
|
-
period?: AnalyticsSearchPeriod;
|
|
6520
|
-
}, params?: RequestParams) => Promise<HttpResponse<AnalyticsTopSearches, Error>>;
|
|
6521
|
-
/**
|
|
6522
|
-
* @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.
|
|
6523
|
-
*
|
|
6524
|
-
* @tags analytics, spaces
|
|
6525
|
-
* @name GetTrafficAnalyticsForSpaceById
|
|
6526
|
-
* @summary Get traffic page views for a given space
|
|
6527
|
-
* @request GET:/spaces/{spaceId}/insights/traffic
|
|
6528
|
-
* @deprecated
|
|
6529
|
-
* @secure
|
|
6530
|
-
*/
|
|
6531
|
-
getTrafficAnalyticsForSpaceById: (spaceId: string, query?: {
|
|
6532
|
-
interval?: AnalyticsTrafficInterval;
|
|
6533
|
-
}, params?: RequestParams) => Promise<HttpResponse<AnalyticsTrafficPageViews, Error>>;
|
|
6534
|
-
/**
|
|
6535
|
-
* @description Track a page view in a space.
|
|
6536
|
-
*
|
|
6537
|
-
* @tags analytics, spaces
|
|
6538
|
-
* @name TrackViewInSpaceById
|
|
6539
|
-
* @summary Track a page view in a space
|
|
6540
|
-
* @request POST:/spaces/{spaceId}/insights/track_view
|
|
6541
|
-
* @deprecated
|
|
6542
|
-
* @secure
|
|
6543
|
-
*/
|
|
6544
|
-
trackViewInSpaceById: (spaceId: string, data: SpaceTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
6545
6289
|
/**
|
|
6546
6290
|
* No description
|
|
6547
6291
|
*
|
|
@@ -6703,6 +6447,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6703
6447
|
/**
|
|
6704
6448
|
* No description
|
|
6705
6449
|
*
|
|
6450
|
+
* @tags spaces
|
|
6706
6451
|
* @name GetCurrentRevision
|
|
6707
6452
|
* @summary Get the current primary content revision for a space
|
|
6708
6453
|
* @request GET:/spaces/{spaceId}/content
|
|
@@ -6723,6 +6468,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6723
6468
|
/**
|
|
6724
6469
|
* No description
|
|
6725
6470
|
*
|
|
6471
|
+
* @tags spaces
|
|
6726
6472
|
* @name ImportContent
|
|
6727
6473
|
* @summary Import content in a space.
|
|
6728
6474
|
* @request POST:/spaces/{spaceId}/content/import
|
|
@@ -6732,6 +6478,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6732
6478
|
/**
|
|
6733
6479
|
* No description
|
|
6734
6480
|
*
|
|
6481
|
+
* @tags spaces
|
|
6735
6482
|
* @name ListPages
|
|
6736
6483
|
* @summary List all pages for the main revision content of a space
|
|
6737
6484
|
* @request GET:/spaces/{spaceId}/content/pages
|
|
@@ -6754,6 +6501,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6754
6501
|
/**
|
|
6755
6502
|
* No description
|
|
6756
6503
|
*
|
|
6504
|
+
* @tags spaces
|
|
6757
6505
|
* @name ListFiles
|
|
6758
6506
|
* @summary List all files for the main revision content of a space
|
|
6759
6507
|
* @request GET:/spaces/{spaceId}/content/files
|
|
@@ -6784,6 +6532,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6784
6532
|
/**
|
|
6785
6533
|
* No description
|
|
6786
6534
|
*
|
|
6535
|
+
* @tags spaces
|
|
6787
6536
|
* @name GetFileById
|
|
6788
6537
|
* @summary Get a file by its ID in the main revision of a space
|
|
6789
6538
|
* @request GET:/spaces/{spaceId}/content/files/{fileId}
|
|
@@ -6825,6 +6574,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6825
6574
|
/**
|
|
6826
6575
|
* No description
|
|
6827
6576
|
*
|
|
6577
|
+
* @tags spaces
|
|
6828
6578
|
* @name GetPageById
|
|
6829
6579
|
* @summary Get a page by its ID in the primary content.
|
|
6830
6580
|
* @request GET:/spaces/{spaceId}/content/page/{pageId}
|
|
@@ -6897,6 +6647,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6897
6647
|
/**
|
|
6898
6648
|
* No description
|
|
6899
6649
|
*
|
|
6650
|
+
* @tags spaces
|
|
6900
6651
|
* @name ImportContentInPageById
|
|
6901
6652
|
* @summary Import external content into a page by its ID.
|
|
6902
6653
|
* @request POST:/spaces/{spaceId}/content/page/{pageId}/import
|
|
@@ -6906,6 +6657,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6906
6657
|
/**
|
|
6907
6658
|
* No description
|
|
6908
6659
|
*
|
|
6660
|
+
* @tags spaces
|
|
6909
6661
|
* @name GetPageByPath
|
|
6910
6662
|
* @summary Get a page by its path in the primary content.
|
|
6911
6663
|
* @request GET:/spaces/{spaceId}/content/path/{pagePath}
|
|
@@ -6928,6 +6680,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6928
6680
|
/**
|
|
6929
6681
|
* No description
|
|
6930
6682
|
*
|
|
6683
|
+
* @tags spaces
|
|
6931
6684
|
* @name GetReusableContentById
|
|
6932
6685
|
* @summary Get a reusable content by its ID in the main revision of a space
|
|
6933
6686
|
* @request GET:/spaces/{spaceId}/content/reusable-contents/{reusableContentId}
|
|
@@ -6948,6 +6701,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6948
6701
|
/**
|
|
6949
6702
|
* No description
|
|
6950
6703
|
*
|
|
6704
|
+
* @tags computed-content
|
|
6951
6705
|
* @name GetComputedDocument
|
|
6952
6706
|
* @summary Generate a document for a page in a computed content.
|
|
6953
6707
|
* @request POST:/spaces/{spaceId}/content/computed/document
|
|
@@ -6963,6 +6717,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6963
6717
|
/**
|
|
6964
6718
|
* No description
|
|
6965
6719
|
*
|
|
6720
|
+
* @tags computed-content
|
|
6966
6721
|
* @name GetComputedRevision
|
|
6967
6722
|
* @summary Get the computed content for a source in a computed content.
|
|
6968
6723
|
* @request POST:/spaces/{spaceId}/content/computed/revision
|
|
@@ -6978,6 +6733,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6978
6733
|
/**
|
|
6979
6734
|
* No description
|
|
6980
6735
|
*
|
|
6736
|
+
* @tags spaces
|
|
6981
6737
|
* @name GetDocumentById
|
|
6982
6738
|
* @summary Get a document by its ID in a space.
|
|
6983
6739
|
* @request GET:/spaces/{spaceId}/documents/{documentId}
|
|
@@ -6990,7 +6746,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6990
6746
|
/**
|
|
6991
6747
|
* No description
|
|
6992
6748
|
*
|
|
6993
|
-
* @tags
|
|
6749
|
+
* @tags change-requests
|
|
6994
6750
|
* @name CreateChangeRequest
|
|
6995
6751
|
* @summary Create a new change request for a space.
|
|
6996
6752
|
* @request POST:/spaces/{spaceId}/change-requests
|
|
@@ -7028,7 +6784,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7028
6784
|
/**
|
|
7029
6785
|
* No description
|
|
7030
6786
|
*
|
|
7031
|
-
* @tags
|
|
6787
|
+
* @tags change-requests
|
|
7032
6788
|
* @name GetChangeRequestById
|
|
7033
6789
|
* @summary Get the change request with the given id.
|
|
7034
6790
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}
|
|
@@ -7044,7 +6800,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7044
6800
|
/**
|
|
7045
6801
|
* No description
|
|
7046
6802
|
*
|
|
7047
|
-
* @tags
|
|
6803
|
+
* @tags change-requests
|
|
7048
6804
|
* @name UpdateChangeRequestById
|
|
7049
6805
|
* @summary Update the details of a change request
|
|
7050
6806
|
* @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}
|
|
@@ -7058,7 +6814,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7058
6814
|
/**
|
|
7059
6815
|
* No description
|
|
7060
6816
|
*
|
|
7061
|
-
* @tags
|
|
6817
|
+
* @tags change-requests
|
|
7062
6818
|
* @name MergeChangeRequest
|
|
7063
6819
|
* @summary Merge a change request in the primary content of a space.
|
|
7064
6820
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/merge
|
|
@@ -7072,7 +6828,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7072
6828
|
/**
|
|
7073
6829
|
* No description
|
|
7074
6830
|
*
|
|
7075
|
-
* @tags
|
|
6831
|
+
* @tags change-requests
|
|
7076
6832
|
* @name UpdateChangeRequest
|
|
7077
6833
|
* @summary Update a change-request with changes from primary content.
|
|
7078
6834
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/update
|
|
@@ -7086,7 +6842,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7086
6842
|
/**
|
|
7087
6843
|
* No description
|
|
7088
6844
|
*
|
|
7089
|
-
* @tags
|
|
6845
|
+
* @tags change-requests
|
|
7090
6846
|
* @name GetReviewsByChangeRequestId
|
|
7091
6847
|
* @summary Get all reviews for a change request.
|
|
7092
6848
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
@@ -7115,7 +6871,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7115
6871
|
/**
|
|
7116
6872
|
* No description
|
|
7117
6873
|
*
|
|
7118
|
-
* @tags
|
|
6874
|
+
* @tags change-requests
|
|
7119
6875
|
* @name SubmitChangeRequestReview
|
|
7120
6876
|
* @summary Submit a review for a change request.
|
|
7121
6877
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
@@ -7169,7 +6925,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7169
6925
|
/**
|
|
7170
6926
|
* No description
|
|
7171
6927
|
*
|
|
7172
|
-
* @tags
|
|
6928
|
+
* @tags change-requests, links
|
|
7173
6929
|
* @name ListChangeRequestLinks
|
|
7174
6930
|
* @summary Get all links in the context of a change request including their status and location where they appear.
|
|
7175
6931
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/links
|
|
@@ -7205,7 +6961,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7205
6961
|
/**
|
|
7206
6962
|
* No description
|
|
7207
6963
|
*
|
|
7208
|
-
* @tags
|
|
6964
|
+
* @tags comments
|
|
7209
6965
|
* @name ListCommentsInChangeRequest
|
|
7210
6966
|
* @summary List all the comments in a change request.
|
|
7211
6967
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
@@ -7240,7 +6996,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7240
6996
|
/**
|
|
7241
6997
|
* No description
|
|
7242
6998
|
*
|
|
7243
|
-
* @tags
|
|
6999
|
+
* @tags comments
|
|
7244
7000
|
* @name PostCommentInChangeRequest
|
|
7245
7001
|
* @summary Post a new comment in a change request.
|
|
7246
7002
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
@@ -7250,7 +7006,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7250
7006
|
/**
|
|
7251
7007
|
* No description
|
|
7252
7008
|
*
|
|
7253
|
-
* @tags
|
|
7009
|
+
* @tags comments
|
|
7254
7010
|
* @name GetCommentInChangeRequest
|
|
7255
7011
|
* @summary Get a comment in a change request.
|
|
7256
7012
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
@@ -7263,7 +7019,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7263
7019
|
/**
|
|
7264
7020
|
* No description
|
|
7265
7021
|
*
|
|
7266
|
-
* @tags
|
|
7022
|
+
* @tags comments
|
|
7267
7023
|
* @name DeleteCommentInChangeRequest
|
|
7268
7024
|
* @summary Delete a comment in a change request.
|
|
7269
7025
|
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
@@ -7273,7 +7029,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7273
7029
|
/**
|
|
7274
7030
|
* No description
|
|
7275
7031
|
*
|
|
7276
|
-
* @tags
|
|
7032
|
+
* @tags comments
|
|
7277
7033
|
* @name UpdateCommentInChangeRequest
|
|
7278
7034
|
* @summary Update a comment in a change request.
|
|
7279
7035
|
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
@@ -7283,7 +7039,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7283
7039
|
/**
|
|
7284
7040
|
* No description
|
|
7285
7041
|
*
|
|
7286
|
-
* @tags
|
|
7042
|
+
* @tags comments
|
|
7287
7043
|
* @name ListCommentRepliesInChangeRequest
|
|
7288
7044
|
* @summary List all the replies to a comment in a change request.
|
|
7289
7045
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
@@ -7306,7 +7062,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7306
7062
|
/**
|
|
7307
7063
|
* No description
|
|
7308
7064
|
*
|
|
7309
|
-
* @tags
|
|
7065
|
+
* @tags comments
|
|
7310
7066
|
* @name PostCommentReplyInChangeRequest
|
|
7311
7067
|
* @summary Post a new reply to a comment in a change request.
|
|
7312
7068
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
@@ -7319,7 +7075,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7319
7075
|
/**
|
|
7320
7076
|
* No description
|
|
7321
7077
|
*
|
|
7322
|
-
* @tags
|
|
7078
|
+
* @tags comments
|
|
7323
7079
|
* @name GetCommentReplyInChangeRequest
|
|
7324
7080
|
* @summary Get a comment reply in a change request.
|
|
7325
7081
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
@@ -7332,7 +7088,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7332
7088
|
/**
|
|
7333
7089
|
* No description
|
|
7334
7090
|
*
|
|
7335
|
-
* @tags
|
|
7091
|
+
* @tags comments
|
|
7336
7092
|
* @name UpdateCommentReplyInChangeRequest
|
|
7337
7093
|
* @summary Update a comment reply in a change request.
|
|
7338
7094
|
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
@@ -7342,7 +7098,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7342
7098
|
/**
|
|
7343
7099
|
* No description
|
|
7344
7100
|
*
|
|
7345
|
-
* @tags
|
|
7101
|
+
* @tags comments
|
|
7346
7102
|
* @name DeleteCommentReplyInChangeRequest
|
|
7347
7103
|
* @summary Delete a comment reply in a change request.
|
|
7348
7104
|
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
@@ -7352,7 +7108,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7352
7108
|
/**
|
|
7353
7109
|
* No description
|
|
7354
7110
|
*
|
|
7355
|
-
* @tags
|
|
7111
|
+
* @tags change-requests
|
|
7356
7112
|
* @name GetContributorsByChangeRequestId
|
|
7357
7113
|
* @summary Get all contributors for the change request with the given id.
|
|
7358
7114
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/contributors
|
|
@@ -7370,6 +7126,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7370
7126
|
/**
|
|
7371
7127
|
* No description
|
|
7372
7128
|
*
|
|
7129
|
+
* @tags change-requests
|
|
7373
7130
|
* @name GetRevisionOfChangeRequestById
|
|
7374
7131
|
* @summary Get the latest content revision for a change request.
|
|
7375
7132
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content
|
|
@@ -7390,6 +7147,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7390
7147
|
/**
|
|
7391
7148
|
* No description
|
|
7392
7149
|
*
|
|
7150
|
+
* @tags change-requests
|
|
7393
7151
|
* @name ImportContentInChangeRequest
|
|
7394
7152
|
* @summary Import content in a change request.
|
|
7395
7153
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/import
|
|
@@ -7399,6 +7157,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7399
7157
|
/**
|
|
7400
7158
|
* No description
|
|
7401
7159
|
*
|
|
7160
|
+
* @tags change-requests
|
|
7402
7161
|
* @name ListPagesInChangeRequest
|
|
7403
7162
|
* @summary List all pages in the content of a change request
|
|
7404
7163
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
|
|
@@ -7421,6 +7180,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7421
7180
|
/**
|
|
7422
7181
|
* No description
|
|
7423
7182
|
*
|
|
7183
|
+
* @tags change-requests
|
|
7424
7184
|
* @name ListFilesInChangeRequestById
|
|
7425
7185
|
* @summary List all files in a change request content
|
|
7426
7186
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
|
|
@@ -7451,6 +7211,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7451
7211
|
/**
|
|
7452
7212
|
* No description
|
|
7453
7213
|
*
|
|
7214
|
+
* @tags change-requests
|
|
7454
7215
|
* @name GetFileInChangeRequestById
|
|
7455
7216
|
* @summary Get a file by its ID in the content of a change request
|
|
7456
7217
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
|
|
@@ -7471,7 +7232,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7471
7232
|
/**
|
|
7472
7233
|
* No description
|
|
7473
7234
|
*
|
|
7474
|
-
* @tags
|
|
7235
|
+
* @tags change-requests
|
|
7475
7236
|
* @name ListChangeRequestFileBacklinks
|
|
7476
7237
|
* @summary Get backlink locations for a file existing in a change request.
|
|
7477
7238
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks
|
|
@@ -7492,6 +7253,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7492
7253
|
/**
|
|
7493
7254
|
* No description
|
|
7494
7255
|
*
|
|
7256
|
+
* @tags change-requests
|
|
7495
7257
|
* @name GetPageInChangeRequestById
|
|
7496
7258
|
* @summary Get a page by its ID in a change request.
|
|
7497
7259
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}
|
|
@@ -7514,7 +7276,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7514
7276
|
/**
|
|
7515
7277
|
* No description
|
|
7516
7278
|
*
|
|
7517
|
-
* @tags
|
|
7279
|
+
* @tags change-requests
|
|
7518
7280
|
* @name ListPageLinksInChangeRequest
|
|
7519
7281
|
* @summary List all links in a page inside a change request.
|
|
7520
7282
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
|
|
@@ -7536,7 +7298,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7536
7298
|
/**
|
|
7537
7299
|
* No description
|
|
7538
7300
|
*
|
|
7539
|
-
* @tags
|
|
7301
|
+
* @tags change-requests
|
|
7540
7302
|
* @name ListChangeRequestPageBacklinks
|
|
7541
7303
|
* @summary Get backlink locations for a page existing in a change request.
|
|
7542
7304
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks
|
|
@@ -7557,6 +7319,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7557
7319
|
/**
|
|
7558
7320
|
* No description
|
|
7559
7321
|
*
|
|
7322
|
+
* @tags change-requests
|
|
7560
7323
|
* @name ImportContentInChangeRequestPageById
|
|
7561
7324
|
* @summary Import external content into a page of a change-request by its ID.
|
|
7562
7325
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import
|
|
@@ -7566,6 +7329,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7566
7329
|
/**
|
|
7567
7330
|
* No description
|
|
7568
7331
|
*
|
|
7332
|
+
* @tags change-requests
|
|
7569
7333
|
* @name GetPageInChangeRequestByPath
|
|
7570
7334
|
* @summary Get a page by its path in a change request.
|
|
7571
7335
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
|
|
@@ -7588,6 +7352,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7588
7352
|
/**
|
|
7589
7353
|
* No description
|
|
7590
7354
|
*
|
|
7355
|
+
* @tags change-requests
|
|
7591
7356
|
* @name GetReusableContentInChangeRequestById
|
|
7592
7357
|
* @summary Get a reusable content by its ID in the content of a change request
|
|
7593
7358
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}
|
|
@@ -7608,7 +7373,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7608
7373
|
/**
|
|
7609
7374
|
* No description
|
|
7610
7375
|
*
|
|
7611
|
-
* @tags
|
|
7376
|
+
* @tags change-requests
|
|
7612
7377
|
* @name GetChangeRequestPdf
|
|
7613
7378
|
* @summary Generate a URL to export the content of a change request as a PDF.
|
|
7614
7379
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/pdf
|
|
@@ -7626,7 +7391,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7626
7391
|
/**
|
|
7627
7392
|
* No description
|
|
7628
7393
|
*
|
|
7629
|
-
* @tags
|
|
7394
|
+
* @tags change-requests
|
|
7630
7395
|
* @name StreamBrainstormChangeRequest
|
|
7631
7396
|
* @summary Brainstorm with AI on a change request and stream the results as a Server-Sent Events.
|
|
7632
7397
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/task/brainstorm
|
|
@@ -7639,7 +7404,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7639
7404
|
/**
|
|
7640
7405
|
* No description
|
|
7641
7406
|
*
|
|
7642
|
-
* @tags
|
|
7407
|
+
* @tags change-requests
|
|
7643
7408
|
* @name StreamImplementChangeRequestTask
|
|
7644
7409
|
* @summary Implement a task on a change request and stream the results as a Server-Sent Events.
|
|
7645
7410
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/task/implement
|
|
@@ -7652,6 +7417,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7652
7417
|
/**
|
|
7653
7418
|
* No description
|
|
7654
7419
|
*
|
|
7420
|
+
* @tags revisions
|
|
7655
7421
|
* @name GetRevisionById
|
|
7656
7422
|
* @summary Get a specific revision in a space
|
|
7657
7423
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}
|
|
@@ -7672,6 +7438,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7672
7438
|
/**
|
|
7673
7439
|
* No description
|
|
7674
7440
|
*
|
|
7441
|
+
* @tags revisions
|
|
7675
7442
|
* @name GetRevisionSemanticChanges
|
|
7676
7443
|
* @summary Return the semantic changes between a revision and its parent.
|
|
7677
7444
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/changes
|
|
@@ -7697,6 +7464,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7697
7464
|
/**
|
|
7698
7465
|
* No description
|
|
7699
7466
|
*
|
|
7467
|
+
* @tags revisions
|
|
7700
7468
|
* @name ListPagesInRevisionById
|
|
7701
7469
|
* @summary List all pages in a revision
|
|
7702
7470
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/pages
|
|
@@ -7719,6 +7487,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7719
7487
|
/**
|
|
7720
7488
|
* No description
|
|
7721
7489
|
*
|
|
7490
|
+
* @tags revisions
|
|
7722
7491
|
* @name ListFilesInRevisionById
|
|
7723
7492
|
* @summary List all files in a revision
|
|
7724
7493
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/files
|
|
@@ -7749,6 +7518,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7749
7518
|
/**
|
|
7750
7519
|
* No description
|
|
7751
7520
|
*
|
|
7521
|
+
* @tags revisions
|
|
7752
7522
|
* @name GetFileInRevisionById
|
|
7753
7523
|
* @summary Get a file in a revision by its ID
|
|
7754
7524
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
|
|
@@ -7769,6 +7539,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7769
7539
|
/**
|
|
7770
7540
|
* No description
|
|
7771
7541
|
*
|
|
7542
|
+
* @tags revisions
|
|
7772
7543
|
* @name GetPageInRevisionById
|
|
7773
7544
|
* @summary Get a page by its ID in a revision.
|
|
7774
7545
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}
|
|
@@ -7791,6 +7562,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7791
7562
|
/**
|
|
7792
7563
|
* No description
|
|
7793
7564
|
*
|
|
7565
|
+
* @tags revisions
|
|
7794
7566
|
* @name GetPageInRevisionByPath
|
|
7795
7567
|
* @summary Get a page by its path in a revision.
|
|
7796
7568
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}
|
|
@@ -7813,8 +7585,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7813
7585
|
/**
|
|
7814
7586
|
* No description
|
|
7815
7587
|
*
|
|
7588
|
+
* @tags revisions
|
|
7816
7589
|
* @name GetReusableContentInRevisionById
|
|
7817
|
-
* @summary Get
|
|
7590
|
+
* @summary Get reusable content in a revision by its ID
|
|
7818
7591
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}
|
|
7819
7592
|
* @secure
|
|
7820
7593
|
*/
|
|
@@ -7833,7 +7606,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7833
7606
|
/**
|
|
7834
7607
|
* No description
|
|
7835
7608
|
*
|
|
7836
|
-
* @tags
|
|
7609
|
+
* @tags comments
|
|
7837
7610
|
* @name ListCommentsInSpace
|
|
7838
7611
|
* @summary List all the comments in a space.
|
|
7839
7612
|
* @request GET:/spaces/{spaceId}/comments
|
|
@@ -7868,7 +7641,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7868
7641
|
/**
|
|
7869
7642
|
* No description
|
|
7870
7643
|
*
|
|
7871
|
-
* @tags
|
|
7644
|
+
* @tags comments
|
|
7872
7645
|
* @name PostCommentInSpace
|
|
7873
7646
|
* @summary Post a new comment in a space.
|
|
7874
7647
|
* @request POST:/spaces/{spaceId}/comments
|
|
@@ -7878,7 +7651,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7878
7651
|
/**
|
|
7879
7652
|
* No description
|
|
7880
7653
|
*
|
|
7881
|
-
* @tags
|
|
7654
|
+
* @tags comments
|
|
7882
7655
|
* @name GetCommentInSpace
|
|
7883
7656
|
* @summary Get a comment in a space.
|
|
7884
7657
|
* @request GET:/spaces/{spaceId}/comments/{commentId}
|
|
@@ -7891,7 +7664,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7891
7664
|
/**
|
|
7892
7665
|
* No description
|
|
7893
7666
|
*
|
|
7894
|
-
* @tags
|
|
7667
|
+
* @tags comments
|
|
7895
7668
|
* @name DeleteCommentInSpace
|
|
7896
7669
|
* @summary Delete a comment in a space.
|
|
7897
7670
|
* @request DELETE:/spaces/{spaceId}/comments/{commentId}
|
|
@@ -7911,7 +7684,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7911
7684
|
/**
|
|
7912
7685
|
* No description
|
|
7913
7686
|
*
|
|
7914
|
-
* @tags
|
|
7687
|
+
* @tags comments
|
|
7915
7688
|
* @name ListCommentRepliesInSpace
|
|
7916
7689
|
* @summary List all the replies to a comment in a space.
|
|
7917
7690
|
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies
|
|
@@ -7934,7 +7707,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7934
7707
|
/**
|
|
7935
7708
|
* No description
|
|
7936
7709
|
*
|
|
7937
|
-
* @tags
|
|
7710
|
+
* @tags comments
|
|
7938
7711
|
* @name PostCommentReplyInSpace
|
|
7939
7712
|
* @summary Post a new reply to a comment in a space.
|
|
7940
7713
|
* @request POST:/spaces/{spaceId}/comments/{commentId}/replies
|
|
@@ -7944,7 +7717,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7944
7717
|
/**
|
|
7945
7718
|
* No description
|
|
7946
7719
|
*
|
|
7947
|
-
* @tags
|
|
7720
|
+
* @tags comments
|
|
7948
7721
|
* @name GetCommentReplyInSpace
|
|
7949
7722
|
* @summary Get a comment reply in a space.
|
|
7950
7723
|
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
@@ -7957,7 +7730,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7957
7730
|
/**
|
|
7958
7731
|
* No description
|
|
7959
7732
|
*
|
|
7960
|
-
* @tags
|
|
7733
|
+
* @tags comments
|
|
7961
7734
|
* @name UpdateCommentReplyInSpace
|
|
7962
7735
|
* @summary Update a comment reply in a space.
|
|
7963
7736
|
* @request PUT:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
@@ -7967,7 +7740,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7967
7740
|
/**
|
|
7968
7741
|
* No description
|
|
7969
7742
|
*
|
|
7970
|
-
* @tags
|
|
7743
|
+
* @tags comments
|
|
7971
7744
|
* @name DeleteCommentReplyInSpace
|
|
7972
7745
|
* @summary Delete a comment reply in a space.
|
|
7973
7746
|
* @request DELETE:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
@@ -7997,40 +7770,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7997
7770
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7998
7771
|
items: UserContentPermission[];
|
|
7999
7772
|
}, Error>>;
|
|
8000
|
-
/**
|
|
8001
|
-
* No description
|
|
8002
|
-
*
|
|
8003
|
-
* @tags spaces
|
|
8004
|
-
* @name GetSpacePublishingCustomizationById
|
|
8005
|
-
* @summary Get the publishing customization configuration for a space.
|
|
8006
|
-
* @request GET:/spaces/{spaceId}/publishing/customization
|
|
8007
|
-
* @deprecated
|
|
8008
|
-
* @secure
|
|
8009
|
-
*/
|
|
8010
|
-
getSpacePublishingCustomizationById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
|
|
8011
|
-
error: {
|
|
8012
|
-
/** @format int32 */
|
|
8013
|
-
code: 400;
|
|
8014
|
-
message: string;
|
|
8015
|
-
};
|
|
8016
|
-
}>>;
|
|
8017
|
-
/**
|
|
8018
|
-
* No description
|
|
8019
|
-
*
|
|
8020
|
-
* @tags spaces
|
|
8021
|
-
* @name UpdateSpacePublishingCustomizationById
|
|
8022
|
-
* @summary Update the publishing customization configuration for a space.
|
|
8023
|
-
* @request PUT:/spaces/{spaceId}/publishing/customization
|
|
8024
|
-
* @deprecated
|
|
8025
|
-
* @secure
|
|
8026
|
-
*/
|
|
8027
|
-
updateSpacePublishingCustomizationById: (spaceId: string, data: CustomizationSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
|
|
8028
|
-
error: {
|
|
8029
|
-
/** @format int32 */
|
|
8030
|
-
code: 400;
|
|
8031
|
-
message: string;
|
|
8032
|
-
};
|
|
8033
|
-
}>>;
|
|
8034
7773
|
/**
|
|
8035
7774
|
* No description
|
|
8036
7775
|
*
|
|
@@ -8098,28 +7837,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8098
7837
|
* @secure
|
|
8099
7838
|
*/
|
|
8100
7839
|
updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8101
|
-
/**
|
|
8102
|
-
* No description
|
|
8103
|
-
*
|
|
8104
|
-
* @tags spaces
|
|
8105
|
-
* @name GetPageFeedback
|
|
8106
|
-
* @summary Get a page feedback by a visitor.
|
|
8107
|
-
* @request GET:/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}
|
|
8108
|
-
* @secure
|
|
8109
|
-
*/
|
|
8110
|
-
getPageFeedback: (spaceId: string, pageId: string, visitorId: string, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
|
|
8111
|
-
/**
|
|
8112
|
-
* No description
|
|
8113
|
-
*
|
|
8114
|
-
* @tags spaces
|
|
8115
|
-
* @name CreatePageFeedback
|
|
8116
|
-
* @summary Create a page feedback by a visitor.
|
|
8117
|
-
* @request PUT:/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}
|
|
8118
|
-
* @secure
|
|
8119
|
-
*/
|
|
8120
|
-
createPageFeedback: (spaceId: string, pageId: string, visitorId: string, data: {
|
|
8121
|
-
rating: PageFeedbackRating;
|
|
8122
|
-
}, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
|
|
8123
7840
|
/**
|
|
8124
7841
|
* No description
|
|
8125
7842
|
*
|
|
@@ -8498,6 +8215,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8498
8215
|
blockDomain?: string;
|
|
8499
8216
|
/** If true, returns only integrations with blocks. If false, returns only integrations without blocks. */
|
|
8500
8217
|
blocks?: boolean;
|
|
8218
|
+
/** If true, returns only integrations with contentSources. If false, returns only integrations without contentSources. */
|
|
8219
|
+
contentSources?: boolean;
|
|
8220
|
+
/** If defined, only list integrations owned by the given organization. */
|
|
8221
|
+
owner?: string;
|
|
8501
8222
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8502
8223
|
items: Integration[];
|
|
8503
8224
|
}, Error>>;
|
|
@@ -8691,6 +8412,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8691
8412
|
/**
|
|
8692
8413
|
* No description
|
|
8693
8414
|
*
|
|
8415
|
+
* @tags integrations
|
|
8694
8416
|
* @name RenderIntegrationUiWithGet
|
|
8695
8417
|
* @summary Render an integration UI in the context of an installation.
|
|
8696
8418
|
* @request GET:/integrations/{integrationName}/render
|
|
@@ -8703,6 +8425,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8703
8425
|
/**
|
|
8704
8426
|
* No description
|
|
8705
8427
|
*
|
|
8428
|
+
* @tags integrations
|
|
8706
8429
|
* @name RenderIntegrationUiWithPost
|
|
8707
8430
|
* @summary Render an integration UI in the context of an installation.
|
|
8708
8431
|
* @request POST:/integrations/{integrationName}/render
|
|
@@ -8867,6 +8590,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8867
8590
|
/**
|
|
8868
8591
|
* No description
|
|
8869
8592
|
*
|
|
8593
|
+
* @tags integrations
|
|
8870
8594
|
* @name UpdateIntegrationSpaceInstallation
|
|
8871
8595
|
* @summary Update external IDs and configurations of an integration's installation for a space
|
|
8872
8596
|
* @request PATCH:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
@@ -8882,6 +8606,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8882
8606
|
/**
|
|
8883
8607
|
* No description
|
|
8884
8608
|
*
|
|
8609
|
+
* @tags integrations
|
|
8885
8610
|
* @name UninstallIntegrationFromSpace
|
|
8886
8611
|
* @summary Uninstall the integration from a space
|
|
8887
8612
|
* @request DELETE:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
@@ -8964,6 +8689,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8964
8689
|
/**
|
|
8965
8690
|
* No description
|
|
8966
8691
|
*
|
|
8692
|
+
* @tags integrations
|
|
8967
8693
|
* @name UpdateIntegrationSiteInstallation
|
|
8968
8694
|
* @summary Update external IDs and configurations of an integration's installation for a site
|
|
8969
8695
|
* @request PATCH:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
|
|
@@ -8979,6 +8705,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8979
8705
|
/**
|
|
8980
8706
|
* No description
|
|
8981
8707
|
*
|
|
8708
|
+
* @tags integrations
|
|
8982
8709
|
* @name UninstallIntegrationFromSite
|
|
8983
8710
|
* @summary Uninstall the integration from a site
|
|
8984
8711
|
* @request DELETE:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
|
|
@@ -9008,16 +8735,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9008
8735
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9009
8736
|
items: Organization[];
|
|
9010
8737
|
}, Error>>;
|
|
9011
|
-
/**
|
|
9012
|
-
* No description
|
|
9013
|
-
*
|
|
9014
|
-
* @tags organizations
|
|
9015
|
-
* @name CreateOrganization
|
|
9016
|
-
* @summary Create an organization
|
|
9017
|
-
* @request POST:/orgs
|
|
9018
|
-
* @secure
|
|
9019
|
-
*/
|
|
9020
|
-
createOrganization: (data: CreateOrganization, params?: RequestParams) => Promise<HttpResponse<Organization, Error>>;
|
|
9021
8738
|
/**
|
|
9022
8739
|
* No description
|
|
9023
8740
|
*
|
|
@@ -9034,22 +8751,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9034
8751
|
message: string;
|
|
9035
8752
|
};
|
|
9036
8753
|
}>>;
|
|
9037
|
-
/**
|
|
9038
|
-
* No description
|
|
9039
|
-
*
|
|
9040
|
-
* @tags organizations
|
|
9041
|
-
* @name DeleteOrganizationById
|
|
9042
|
-
* @summary Delete an organization by its ID
|
|
9043
|
-
* @request DELETE:/orgs/{organizationId}
|
|
9044
|
-
* @secure
|
|
9045
|
-
*/
|
|
9046
|
-
deleteOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
9047
|
-
error: {
|
|
9048
|
-
/** @format int32 */
|
|
9049
|
-
code: 404;
|
|
9050
|
-
message: string;
|
|
9051
|
-
};
|
|
9052
|
-
}>>;
|
|
9053
8754
|
/**
|
|
9054
8755
|
* No description
|
|
9055
8756
|
*
|
|
@@ -9079,16 +8780,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9079
8780
|
message: string;
|
|
9080
8781
|
};
|
|
9081
8782
|
}>>;
|
|
9082
|
-
/**
|
|
9083
|
-
* @description Lists all spaces, collections, sites accessible by current user in the current organization. This endpoint is internal for now as the data structure is optimized for the sidebar.
|
|
9084
|
-
*
|
|
9085
|
-
* @tags organizations, critical
|
|
9086
|
-
* @name GetOrganizationAllContent
|
|
9087
|
-
* @summary List all content in an organization
|
|
9088
|
-
* @request GET:/orgs/{organizationId}/content
|
|
9089
|
-
* @secure
|
|
9090
|
-
*/
|
|
9091
|
-
getOrganizationAllContent: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationAllContent, Error>>;
|
|
9092
8783
|
/**
|
|
9093
8784
|
* @description Lists members for the specified organization.
|
|
9094
8785
|
*
|
|
@@ -9362,176 +9053,48 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9362
9053
|
* @request DELETE:/orgs/{organizationId}/teams/{teamId}/members/{userId}
|
|
9363
9054
|
* @secure
|
|
9364
9055
|
*/
|
|
9365
|
-
deleteMemberFromOrganizationTeamById: (organizationId: string, teamId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9366
|
-
/**
|
|
9367
|
-
* No description
|
|
9368
|
-
*
|
|
9369
|
-
* @tags organizations
|
|
9370
|
-
* @name InviteUsersToOrganization
|
|
9371
|
-
* @summary Invite users to a given organization based on a list of emails
|
|
9372
|
-
* @request POST:/orgs/{organizationId}/invites
|
|
9373
|
-
* @secure
|
|
9374
|
-
*/
|
|
9375
|
-
inviteUsersToOrganization: (organizationId: string, data: InviteUsersToOrganization, params?: RequestParams) => Promise<HttpResponse<{
|
|
9376
|
-
users: string[];
|
|
9377
|
-
/** The number of users who were added to the organization */
|
|
9378
|
-
invited: number;
|
|
9379
|
-
failedSSOEmails?: string[];
|
|
9380
|
-
}, Error | {
|
|
9381
|
-
error: {
|
|
9382
|
-
/** @format int32 */
|
|
9383
|
-
code: 400;
|
|
9384
|
-
message: string;
|
|
9385
|
-
};
|
|
9386
|
-
}>>;
|
|
9387
|
-
/**
|
|
9388
|
-
* No description
|
|
9389
|
-
*
|
|
9390
|
-
* @tags organizations
|
|
9391
|
-
* @name JoinOrganizationWithInvite
|
|
9392
|
-
* @summary Use an invite to join an organization.
|
|
9393
|
-
* @request POST:/orgs/{organizationId}/invites/{inviteId}
|
|
9394
|
-
* @secure
|
|
9395
|
-
*/
|
|
9396
|
-
joinOrganizationWithInvite: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
|
|
9397
|
-
/**
|
|
9398
|
-
* No description
|
|
9399
|
-
*
|
|
9400
|
-
* @tags organizations
|
|
9401
|
-
* @name ListOrganizationContentInviteLinks
|
|
9402
|
-
* @summary List invite links to content in an organization
|
|
9403
|
-
* @request GET:/orgs/{organizationId}/content-link-invites
|
|
9404
|
-
* @secure
|
|
9405
|
-
*/
|
|
9406
|
-
listOrganizationContentInviteLinks: (organizationId: string, query?: {
|
|
9407
|
-
/** Identifier of the page results to fetch. */
|
|
9408
|
-
page?: string;
|
|
9409
|
-
/**
|
|
9410
|
-
* The number of results per page
|
|
9411
|
-
* @min 0
|
|
9412
|
-
* @max 1000
|
|
9413
|
-
*/
|
|
9414
|
-
limit?: number;
|
|
9415
|
-
/** If specified, only return invite links that provide specific permissions on the given space. */
|
|
9416
|
-
space?: string;
|
|
9417
|
-
/** If specified, only return invite links that provide permissions on the given collection. */
|
|
9418
|
-
collection?: string;
|
|
9419
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9420
|
-
items: (InviteLinkToCollection | InviteLinkToSpace)[];
|
|
9421
|
-
}, Error>>;
|
|
9422
|
-
/**
|
|
9423
|
-
* No description
|
|
9424
|
-
*
|
|
9425
|
-
* @tags organizations
|
|
9426
|
-
* @name ListOrganizationInviteLinks
|
|
9427
|
-
* @summary List invite links to an organization
|
|
9428
|
-
* @request GET:/orgs/{organizationId}/link-invites
|
|
9429
|
-
* @secure
|
|
9430
|
-
*/
|
|
9431
|
-
listOrganizationInviteLinks: (organizationId: string, query?: {
|
|
9432
|
-
/** Identifier of the page results to fetch. */
|
|
9433
|
-
page?: string;
|
|
9434
|
-
/**
|
|
9435
|
-
* The number of results per page
|
|
9436
|
-
* @min 0
|
|
9437
|
-
* @max 1000
|
|
9438
|
-
*/
|
|
9439
|
-
limit?: number;
|
|
9440
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9441
|
-
items: InviteLinkToOrganization[];
|
|
9442
|
-
}, Error>>;
|
|
9443
|
-
/**
|
|
9444
|
-
* No description
|
|
9445
|
-
*
|
|
9446
|
-
* @tags organizations
|
|
9447
|
-
* @name CreateOrganizationInvite
|
|
9448
|
-
* @summary Create a new organization invite
|
|
9449
|
-
* @request POST:/orgs/{organizationId}/link-invites
|
|
9450
|
-
* @secure
|
|
9451
|
-
*/
|
|
9452
|
-
createOrganizationInvite: (organizationId: string, data: CreateOrganizationInvite, params?: RequestParams) => Promise<HttpResponse<OrganizationInviteLink, Error>>;
|
|
9453
|
-
/**
|
|
9454
|
-
* No description
|
|
9455
|
-
*
|
|
9456
|
-
* @tags organizations
|
|
9457
|
-
* @name UpdateOrganizationInviteById
|
|
9458
|
-
* @summary Update an organization invite.
|
|
9459
|
-
* @request PATCH:/orgs/{organizationId}/link-invites/{inviteId}
|
|
9460
|
-
* @secure
|
|
9461
|
-
*/
|
|
9462
|
-
updateOrganizationInviteById: (organizationId: string, inviteId: string, data: {
|
|
9463
|
-
/** The role of a member in an organization, null for guests */
|
|
9464
|
-
role: MemberRoleOrGuest;
|
|
9465
|
-
} | {
|
|
9466
|
-
/** The role of a member in an organization, null for guests */
|
|
9467
|
-
level: MemberRoleOrGuest;
|
|
9468
|
-
}, params?: RequestParams) => Promise<HttpResponse<OrganizationInviteLink, Error>>;
|
|
9469
|
-
/**
|
|
9470
|
-
* No description
|
|
9471
|
-
*
|
|
9472
|
-
* @tags organizations
|
|
9473
|
-
* @name DeleteOrganizationInviteById
|
|
9474
|
-
* @summary Deletes an organization invite.
|
|
9475
|
-
* @request DELETE:/orgs/{organizationId}/link-invites/{inviteId}
|
|
9476
|
-
* @secure
|
|
9477
|
-
*/
|
|
9478
|
-
deleteOrganizationInviteById: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9056
|
+
deleteMemberFromOrganizationTeamById: (organizationId: string, teamId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9479
9057
|
/**
|
|
9480
9058
|
* No description
|
|
9481
9059
|
*
|
|
9482
9060
|
* @tags organizations
|
|
9483
|
-
* @name
|
|
9484
|
-
* @summary
|
|
9485
|
-
* @request POST:/orgs/{organizationId}/
|
|
9061
|
+
* @name InviteUsersToOrganization
|
|
9062
|
+
* @summary Invite users to a given organization based on a list of emails
|
|
9063
|
+
* @request POST:/orgs/{organizationId}/invites
|
|
9486
9064
|
* @secure
|
|
9487
9065
|
*/
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
},
|
|
9066
|
+
inviteUsersToOrganization: (organizationId: string, data: InviteUsersToOrganization, params?: RequestParams) => Promise<HttpResponse<{
|
|
9067
|
+
users: string[];
|
|
9068
|
+
/** The number of users who were added to the organization */
|
|
9069
|
+
invited: number;
|
|
9070
|
+
failedSSOEmails?: string[];
|
|
9071
|
+
}, Error | {
|
|
9072
|
+
error: {
|
|
9073
|
+
/** @format int32 */
|
|
9074
|
+
code: 400;
|
|
9075
|
+
message: string;
|
|
9076
|
+
};
|
|
9077
|
+
}>>;
|
|
9494
9078
|
/**
|
|
9495
9079
|
* No description
|
|
9496
9080
|
*
|
|
9497
9081
|
* @tags organizations
|
|
9498
|
-
* @name
|
|
9499
|
-
* @summary
|
|
9500
|
-
* @request POST:/orgs/{organizationId}/
|
|
9082
|
+
* @name JoinOrganizationWithInvite
|
|
9083
|
+
* @summary Use an invite to join an organization.
|
|
9084
|
+
* @request POST:/orgs/{organizationId}/invites/{inviteId}
|
|
9501
9085
|
* @secure
|
|
9502
9086
|
*/
|
|
9503
|
-
|
|
9087
|
+
joinOrganizationWithInvite: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
|
|
9504
9088
|
/**
|
|
9505
9089
|
* No description
|
|
9506
9090
|
*
|
|
9507
9091
|
* @tags organizations
|
|
9508
|
-
* @name
|
|
9509
|
-
* @summary
|
|
9510
|
-
* @request
|
|
9511
|
-
* @secure
|
|
9512
|
-
*/
|
|
9513
|
-
previewMigrateOrganizationPlan: (organizationId: string, data: MigrateOrganizationParameters, params?: RequestParams) => Promise<HttpResponse<{
|
|
9514
|
-
totals: {
|
|
9515
|
-
/** Count of all members */
|
|
9516
|
-
members: number;
|
|
9517
|
-
/** Count of all premium sites */
|
|
9518
|
-
premiumSites: number;
|
|
9519
|
-
/** Count of all ultimate sites */
|
|
9520
|
-
ultimateSites: number;
|
|
9521
|
-
};
|
|
9522
|
-
invoice?: BillingInvoicePreview;
|
|
9523
|
-
discount?: BillingDiscount;
|
|
9524
|
-
}, Error>>;
|
|
9525
|
-
/**
|
|
9526
|
-
* No description
|
|
9527
|
-
*
|
|
9528
|
-
* @tags organizations, sites
|
|
9529
|
-
* @name ListSitesToMigrate
|
|
9530
|
-
* @summary Lists all legacy sites of an org and computes their new type and contributing features
|
|
9531
|
-
* @request GET:/orgs/{organizationId}/billing/migrate/sites
|
|
9092
|
+
* @name ListOrganizationInviteLinks
|
|
9093
|
+
* @summary List invite links to an organization
|
|
9094
|
+
* @request GET:/orgs/{organizationId}/link-invites
|
|
9532
9095
|
* @secure
|
|
9533
9096
|
*/
|
|
9534
|
-
|
|
9097
|
+
listOrganizationInviteLinks: (organizationId: string, query?: {
|
|
9535
9098
|
/** Identifier of the page results to fetch. */
|
|
9536
9099
|
page?: string;
|
|
9537
9100
|
/**
|
|
@@ -9541,49 +9104,44 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9541
9104
|
*/
|
|
9542
9105
|
limit?: number;
|
|
9543
9106
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9544
|
-
items:
|
|
9107
|
+
items: InviteLinkToOrganization[];
|
|
9545
9108
|
}, Error>>;
|
|
9546
9109
|
/**
|
|
9547
9110
|
* No description
|
|
9548
9111
|
*
|
|
9549
9112
|
* @tags organizations
|
|
9550
|
-
* @name
|
|
9551
|
-
* @summary
|
|
9552
|
-
* @request
|
|
9113
|
+
* @name CreateOrganizationInvite
|
|
9114
|
+
* @summary Create a new organization invite
|
|
9115
|
+
* @request POST:/orgs/{organizationId}/link-invites
|
|
9553
9116
|
* @secure
|
|
9554
9117
|
*/
|
|
9555
|
-
|
|
9118
|
+
createOrganizationInvite: (organizationId: string, data: CreateOrganizationInvite, params?: RequestParams) => Promise<HttpResponse<OrganizationInviteLink, Error>>;
|
|
9556
9119
|
/**
|
|
9557
9120
|
* No description
|
|
9558
9121
|
*
|
|
9559
9122
|
* @tags organizations
|
|
9560
|
-
* @name
|
|
9561
|
-
* @summary
|
|
9562
|
-
* @request
|
|
9123
|
+
* @name UpdateOrganizationInviteById
|
|
9124
|
+
* @summary Update an organization invite.
|
|
9125
|
+
* @request PATCH:/orgs/{organizationId}/link-invites/{inviteId}
|
|
9563
9126
|
* @secure
|
|
9564
9127
|
*/
|
|
9565
|
-
|
|
9566
|
-
/** The
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
/** The desired amount of published premium sites */
|
|
9573
|
-
premiumSites?: number;
|
|
9574
|
-
/** The desired amount of published ultimate sites */
|
|
9575
|
-
ultimateSites?: number;
|
|
9576
|
-
}, params?: RequestParams) => Promise<HttpResponse<BillingInvoicePreview, Error>>;
|
|
9128
|
+
updateOrganizationInviteById: (organizationId: string, inviteId: string, data: {
|
|
9129
|
+
/** The role of a member in an organization, null for guests */
|
|
9130
|
+
role: MemberRoleOrGuest;
|
|
9131
|
+
} | {
|
|
9132
|
+
/** The role of a member in an organization, null for guests */
|
|
9133
|
+
level: MemberRoleOrGuest;
|
|
9134
|
+
}, params?: RequestParams) => Promise<HttpResponse<OrganizationInviteLink, Error>>;
|
|
9577
9135
|
/**
|
|
9578
9136
|
* No description
|
|
9579
9137
|
*
|
|
9580
9138
|
* @tags organizations
|
|
9581
|
-
* @name
|
|
9582
|
-
* @summary
|
|
9583
|
-
* @request
|
|
9139
|
+
* @name DeleteOrganizationInviteById
|
|
9140
|
+
* @summary Deletes an organization invite.
|
|
9141
|
+
* @request DELETE:/orgs/{organizationId}/link-invites/{inviteId}
|
|
9584
9142
|
* @secure
|
|
9585
9143
|
*/
|
|
9586
|
-
|
|
9144
|
+
deleteOrganizationInviteById: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9587
9145
|
/**
|
|
9588
9146
|
* No description
|
|
9589
9147
|
*
|
|
@@ -9763,7 +9321,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9763
9321
|
*
|
|
9764
9322
|
* @tags spaces
|
|
9765
9323
|
* @name ListOrganizationIntegrations
|
|
9766
|
-
* @summary List integrations
|
|
9324
|
+
* @summary List integrations available to an organization.
|
|
9767
9325
|
* @request GET:/orgs/{organizationId}/integrations
|
|
9768
9326
|
* @secure
|
|
9769
9327
|
*/
|
|
@@ -9778,6 +9336,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9778
9336
|
limit?: number;
|
|
9779
9337
|
/** A search string to filter integrations by name */
|
|
9780
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;
|
|
9781
9353
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9782
9354
|
items: Integration[];
|
|
9783
9355
|
}, Error>>;
|
|
@@ -9950,94 +9522,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9950
9522
|
/**
|
|
9951
9523
|
* No description
|
|
9952
9524
|
*
|
|
9953
|
-
* @tags
|
|
9954
|
-
* @name GetUsageForOrganizationById
|
|
9955
|
-
* @summary Get all usage metrics for an organization
|
|
9956
|
-
* @request GET:/orgs/{organizationId}/usage
|
|
9957
|
-
* @secure
|
|
9958
|
-
*/
|
|
9959
|
-
getUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationUsage, Error>>;
|
|
9960
|
-
/**
|
|
9961
|
-
* No description
|
|
9962
|
-
*
|
|
9963
|
-
* @tags organizations, usage
|
|
9964
|
-
* @name GetCollectionsUsageForOrganizationById
|
|
9965
|
-
* @summary Get collections usage metrics for an organization
|
|
9966
|
-
* @request GET:/orgs/{organizationId}/usage/collections
|
|
9967
|
-
* @secure
|
|
9968
|
-
*/
|
|
9969
|
-
getCollectionsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
9970
|
-
/** Collections usage metrics of an organization */
|
|
9971
|
-
collections: OrganizationUsageCollections;
|
|
9972
|
-
}, Error>>;
|
|
9973
|
-
/**
|
|
9974
|
-
* No description
|
|
9975
|
-
*
|
|
9976
|
-
* @tags organizations, usage
|
|
9977
|
-
* @name GetSpacesUsageForOrganizationById
|
|
9978
|
-
* @summary Get spaces usage metrics for an organization
|
|
9979
|
-
* @request GET:/orgs/{organizationId}/usage/spaces
|
|
9980
|
-
* @secure
|
|
9981
|
-
*/
|
|
9982
|
-
getSpacesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
9983
|
-
/** Spaces usage metrics of an organization */
|
|
9984
|
-
spaces: OrganizationUsageSpaces;
|
|
9985
|
-
}, Error>>;
|
|
9986
|
-
/**
|
|
9987
|
-
* No description
|
|
9988
|
-
*
|
|
9989
|
-
* @tags organizations, usage
|
|
9990
|
-
* @name GetSitesUsageForOrganizationById
|
|
9991
|
-
* @summary Get sites usage metrics for an organization
|
|
9992
|
-
* @request GET:/orgs/{organizationId}/usage/sites
|
|
9993
|
-
* @secure
|
|
9994
|
-
*/
|
|
9995
|
-
getSitesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
9996
|
-
/** Sites usage metrics of an organization */
|
|
9997
|
-
sites: OrganizationUsageSites;
|
|
9998
|
-
}, Error>>;
|
|
9999
|
-
/**
|
|
10000
|
-
* No description
|
|
10001
|
-
*
|
|
10002
|
-
* @tags organizations, usage
|
|
10003
|
-
* @name GetTeamsUsageForOrganizationById
|
|
10004
|
-
* @summary Get teams usage metrics for an organization
|
|
10005
|
-
* @request GET:/orgs/{organizationId}/usage/teams
|
|
10006
|
-
* @secure
|
|
10007
|
-
*/
|
|
10008
|
-
getTeamsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
10009
|
-
/** Team members usage metrics of an organization */
|
|
10010
|
-
teams: OrganizationUsageTeams;
|
|
10011
|
-
}, Error>>;
|
|
10012
|
-
/**
|
|
10013
|
-
* No description
|
|
10014
|
-
*
|
|
10015
|
-
* @tags organizations, usage
|
|
10016
|
-
* @name GetMembersUsageForOrganizationById
|
|
10017
|
-
* @summary Get members usage metrics for an organization
|
|
10018
|
-
* @request GET:/orgs/{organizationId}/usage/members
|
|
10019
|
-
* @secure
|
|
10020
|
-
*/
|
|
10021
|
-
getMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
10022
|
-
/** Members usage metrics of an organization */
|
|
10023
|
-
members: OrganizationUsageMembers;
|
|
10024
|
-
}, Error>>;
|
|
10025
|
-
/**
|
|
10026
|
-
* No description
|
|
10027
|
-
*
|
|
10028
|
-
* @tags organizations, usage
|
|
10029
|
-
* @name GetTeamMembersUsageForOrganizationById
|
|
10030
|
-
* @summary Get team members usage metrics for an organization
|
|
10031
|
-
* @request GET:/orgs/{organizationId}/usage/team-members
|
|
10032
|
-
* @secure
|
|
10033
|
-
*/
|
|
10034
|
-
getTeamMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
10035
|
-
/** Team members usage metrics of an organization */
|
|
10036
|
-
teamMembers: OrganizationUsageTeamMembers;
|
|
10037
|
-
}, Error>>;
|
|
10038
|
-
/**
|
|
10039
|
-
* No description
|
|
10040
|
-
*
|
|
9525
|
+
* @tags search
|
|
10041
9526
|
* @name AskInOrganization
|
|
10042
9527
|
* @summary Ask a question.
|
|
10043
9528
|
* @request POST:/orgs/{organizationId}/ask
|
|
@@ -10055,6 +9540,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10055
9540
|
/**
|
|
10056
9541
|
* No description
|
|
10057
9542
|
*
|
|
9543
|
+
* @tags search
|
|
10058
9544
|
* @name GetRecommendedQuestionsInOrganization
|
|
10059
9545
|
* @summary Get a list of questions recommended to be asked in an organization.
|
|
10060
9546
|
* @request GET:/orgs/{organizationId}/ask/questions
|
|
@@ -10064,6 +9550,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10064
9550
|
/**
|
|
10065
9551
|
* No description
|
|
10066
9552
|
*
|
|
9553
|
+
* @tags search
|
|
10067
9554
|
* @name StreamRecommendedQuestionsInOrganization
|
|
10068
9555
|
* @summary Stream a list of questions recommended to be asked in an organization.
|
|
10069
9556
|
* @request GET:/orgs/{organizationId}/ask/questions/stream
|
|
@@ -10073,6 +9560,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10073
9560
|
/**
|
|
10074
9561
|
* No description
|
|
10075
9562
|
*
|
|
9563
|
+
* @tags search
|
|
10076
9564
|
* @name StreamAskInOrganization
|
|
10077
9565
|
* @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target and stream the answer as a Server-Sent Events URL.
|
|
10078
9566
|
* @request GET:/orgs/{organizationId}/ask/stream
|
|
@@ -10139,19 +9627,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10139
9627
|
/** ID of spaces to be added to the site */
|
|
10140
9628
|
spaces?: string[] | "sample" | "empty";
|
|
10141
9629
|
}, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
10142
|
-
/**
|
|
10143
|
-
* No description
|
|
10144
|
-
*
|
|
10145
|
-
* @tags sites
|
|
10146
|
-
* @name PreviewSitePublishCheckout
|
|
10147
|
-
* @summary Preview checkout information upon publishing a site in the organization.
|
|
10148
|
-
* @request GET:/orgs/{organizationId}/sites/publishing/checkout
|
|
10149
|
-
* @secure
|
|
10150
|
-
*/
|
|
10151
|
-
previewSitePublishCheckout: (organizationId: string, query: {
|
|
10152
|
-
/** The plan of the site to preview the checkout information for. */
|
|
10153
|
-
plan: SiteType;
|
|
10154
|
-
}, params?: RequestParams) => Promise<HttpResponse<BillingOperationPreviewResponse, Error>>;
|
|
10155
9630
|
/**
|
|
10156
9631
|
* No description
|
|
10157
9632
|
*
|
|
@@ -10331,66 +9806,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10331
9806
|
message: string;
|
|
10332
9807
|
};
|
|
10333
9808
|
}>>;
|
|
10334
|
-
/**
|
|
10335
|
-
* No description
|
|
10336
|
-
*
|
|
10337
|
-
* @tags sites
|
|
10338
|
-
* @name UpdateSitePlan
|
|
10339
|
-
* @summary Update the site plan.
|
|
10340
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/plan
|
|
10341
|
-
* @secure
|
|
10342
|
-
*/
|
|
10343
|
-
updateSitePlan: (organizationId: string, siteId: string, data: {
|
|
10344
|
-
/** The type of the site */
|
|
10345
|
-
plan: SiteType;
|
|
10346
|
-
/** Desired interval for new subscriptions. Defaults to the existing billing interval. */
|
|
10347
|
-
interval?: BillingInterval;
|
|
10348
|
-
/** Reason that triggered the billing upgrade */
|
|
10349
|
-
reason?: string;
|
|
10350
|
-
}, query?: {
|
|
10351
|
-
/** The app screen URL to bring the user back to after a successful checkout. */
|
|
10352
|
-
successReturnURL?: string;
|
|
10353
|
-
/** The app screen URL to bring the user back to after a canceled checkout. */
|
|
10354
|
-
cancelReturnURL?: string;
|
|
10355
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
10356
|
-
/** User must checkout to complete the update. */
|
|
10357
|
-
type: "checkout";
|
|
10358
|
-
/** Stripe payment session ID */
|
|
10359
|
-
sessionId: string;
|
|
10360
|
-
} | {
|
|
10361
|
-
/** User needs to go through the legacy update flow. */
|
|
10362
|
-
type: "legacy-checkout";
|
|
10363
|
-
/** Stripe payment session ID */
|
|
10364
|
-
sessionId: string;
|
|
10365
|
-
} | {
|
|
10366
|
-
/** The site plan was successfully updated. */
|
|
10367
|
-
type: "success";
|
|
10368
|
-
/**
|
|
10369
|
-
* * `upgraded`: Subscription was upgraded to include the site
|
|
10370
|
-
* * `downgraded`: Subscription was downgraded by removing the site
|
|
10371
|
-
* * `no-payment-changes`: No impact on subscription (e.g. trial, unpublished)
|
|
10372
|
-
*/
|
|
10373
|
-
outcome?: "upgraded" | "downgraded" | "no-payment-changes";
|
|
10374
|
-
}, Error>>;
|
|
10375
|
-
/**
|
|
10376
|
-
* No description
|
|
10377
|
-
*
|
|
10378
|
-
* @tags sites
|
|
10379
|
-
* @name PreviewSitePlanUpdate
|
|
10380
|
-
* @summary Preview an upgrade to a site plan, returning checkout information.
|
|
10381
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/plan
|
|
10382
|
-
* @secure
|
|
10383
|
-
*/
|
|
10384
|
-
previewSitePlanUpdate: (organizationId: string, siteId: string, query: {
|
|
10385
|
-
/** The desired site plan */
|
|
10386
|
-
plan: SiteType;
|
|
10387
|
-
}, params?: RequestParams) => Promise<HttpResponse<BillingOperationPreviewResponse, Error | {
|
|
10388
|
-
error: {
|
|
10389
|
-
/** @format int32 */
|
|
10390
|
-
code: 404;
|
|
10391
|
-
message: string;
|
|
10392
|
-
};
|
|
10393
|
-
}>>;
|
|
10394
9809
|
/**
|
|
10395
9810
|
* No description
|
|
10396
9811
|
*
|
|
@@ -10501,22 +9916,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10501
9916
|
message: string;
|
|
10502
9917
|
};
|
|
10503
9918
|
}>>;
|
|
10504
|
-
/**
|
|
10505
|
-
* No description
|
|
10506
|
-
*
|
|
10507
|
-
* @tags sites
|
|
10508
|
-
* @name GetSiteRawCustomizationById
|
|
10509
|
-
* @summary Get the raw customization settings of a site.
|
|
10510
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/customization/raw
|
|
10511
|
-
* @secure
|
|
10512
|
-
*/
|
|
10513
|
-
getSiteRawCustomizationById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
10514
|
-
error: {
|
|
10515
|
-
/** @format int32 */
|
|
10516
|
-
code: 400;
|
|
10517
|
-
message: string;
|
|
10518
|
-
};
|
|
10519
|
-
}>>;
|
|
10520
9919
|
/**
|
|
10521
9920
|
* No description
|
|
10522
9921
|
*
|
|
@@ -10747,6 +10146,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10747
10146
|
/**
|
|
10748
10147
|
* No description
|
|
10749
10148
|
*
|
|
10149
|
+
* @tags sites
|
|
10750
10150
|
* @name SearchSiteContent
|
|
10751
10151
|
* @summary Search content in a site
|
|
10752
10152
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/search
|
|
@@ -10794,6 +10194,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10794
10194
|
/**
|
|
10795
10195
|
* No description
|
|
10796
10196
|
*
|
|
10197
|
+
* @tags search
|
|
10797
10198
|
* @name StreamAskInSite
|
|
10798
10199
|
* @summary Ask a question in a site. The response is streamed.
|
|
10799
10200
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/ask
|
|
@@ -10814,6 +10215,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10814
10215
|
/**
|
|
10815
10216
|
* No description
|
|
10816
10217
|
*
|
|
10218
|
+
* @tags search
|
|
10817
10219
|
* @name StreamRecommendedQuestionsInSite
|
|
10818
10220
|
* @summary Stream a list of questions that can be asked in a site.
|
|
10819
10221
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/ask/questions
|
|
@@ -11006,46 +10408,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11006
10408
|
message: string;
|
|
11007
10409
|
};
|
|
11008
10410
|
}>>;
|
|
11009
|
-
/**
|
|
11010
|
-
* No description
|
|
11011
|
-
*
|
|
11012
|
-
* @tags sites
|
|
11013
|
-
* @name GetSiteSpaceRawCustomizationById
|
|
11014
|
-
* @summary Get the raw customization settings of a site space.
|
|
11015
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw
|
|
11016
|
-
* @secure
|
|
11017
|
-
*/
|
|
11018
|
-
getSiteSpaceRawCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteSpaceCustomizationSettings, Error | {
|
|
11019
|
-
error: {
|
|
11020
|
-
/** @format int32 */
|
|
11021
|
-
code: 400;
|
|
11022
|
-
message: string;
|
|
11023
|
-
};
|
|
11024
|
-
}>>;
|
|
11025
|
-
/**
|
|
11026
|
-
* No description
|
|
11027
|
-
*
|
|
11028
|
-
* @tags analytics, sites
|
|
11029
|
-
* @name GetContentAnalyticsForSiteSpaceById
|
|
11030
|
-
* @summary Get page traffic and ratings for a given site space.
|
|
11031
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content
|
|
11032
|
-
* @secure
|
|
11033
|
-
*/
|
|
11034
|
-
getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, query?: {
|
|
11035
|
-
period?: AnalyticsSearchPeriod;
|
|
11036
|
-
}, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
|
|
11037
|
-
/**
|
|
11038
|
-
* No description
|
|
11039
|
-
*
|
|
11040
|
-
* @tags sites
|
|
11041
|
-
* @name CreateSitesPageFeedback
|
|
11042
|
-
* @summary Create a page feedback by a visitor on a site.
|
|
11043
|
-
* @request PUT:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/pages/{pageId}/feedbacks/{visitorId}
|
|
11044
|
-
* @secure
|
|
11045
|
-
*/
|
|
11046
|
-
createSitesPageFeedback: (organizationId: string, siteId: string, siteSpaceId: string, pageId: string, visitorId: string, data: {
|
|
11047
|
-
rating: PageFeedbackRating;
|
|
11048
|
-
}, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
|
|
11049
10411
|
/**
|
|
11050
10412
|
* No description
|
|
11051
10413
|
*
|
|
@@ -11142,17 +10504,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11142
10504
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11143
10505
|
items: UserSitePermission[];
|
|
11144
10506
|
}, Error>>;
|
|
11145
|
-
/**
|
|
11146
|
-
* @description Track a page view in a site.
|
|
11147
|
-
*
|
|
11148
|
-
* @tags analytics, sites
|
|
11149
|
-
* @name TrackViewInSiteById
|
|
11150
|
-
* @summary Track a page view in a site
|
|
11151
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/insights/track_view
|
|
11152
|
-
* @deprecated
|
|
11153
|
-
* @secure
|
|
11154
|
-
*/
|
|
11155
|
-
trackViewInSiteById: (organizationId: string, siteId: string, data: SiteTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
11156
10507
|
/**
|
|
11157
10508
|
* @description Track events in a site.
|
|
11158
10509
|
*
|
|
@@ -11187,59 +10538,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11187
10538
|
listSiteVisitorSegments: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11188
10539
|
items: SiteInsightsVisitorSegment[];
|
|
11189
10540
|
}, any>>;
|
|
11190
|
-
/**
|
|
11191
|
-
* No description
|
|
11192
|
-
*
|
|
11193
|
-
* @tags analytics, sites
|
|
11194
|
-
* @name GetAdsInsightsForSiteById
|
|
11195
|
-
* @summary Get analytics insights of ads on a site.
|
|
11196
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/insights/ads
|
|
11197
|
-
* @secure
|
|
11198
|
-
*/
|
|
11199
|
-
getAdsInsightsForSiteById: (organizationId: string, siteId: string, query?: {
|
|
11200
|
-
/** The interval for grouping the results */
|
|
11201
|
-
interval?: InsightsInterval;
|
|
11202
|
-
/**
|
|
11203
|
-
* The earliest timestamp for any data returned
|
|
11204
|
-
* @format date-time
|
|
11205
|
-
*/
|
|
11206
|
-
start?: string;
|
|
11207
|
-
/**
|
|
11208
|
-
* The latest timestamp for any data returned
|
|
11209
|
-
* @format date-time
|
|
11210
|
-
*/
|
|
11211
|
-
end?: string;
|
|
11212
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
11213
|
-
/** A time serie of the ads stats over the provided period */
|
|
11214
|
-
values: {
|
|
11215
|
-
/**
|
|
11216
|
-
* The start date of this interval
|
|
11217
|
-
* @format date-time
|
|
11218
|
-
*/
|
|
11219
|
-
date: string;
|
|
11220
|
-
stats: SiteAdsStats;
|
|
11221
|
-
}[];
|
|
11222
|
-
account: {
|
|
11223
|
-
/** Email address on the Ads platform. */
|
|
11224
|
-
email: string;
|
|
11225
|
-
/** URL to configure payout. */
|
|
11226
|
-
url: string;
|
|
11227
|
-
};
|
|
11228
|
-
}, Error>>;
|
|
11229
|
-
/**
|
|
11230
|
-
* No description
|
|
11231
|
-
*
|
|
11232
|
-
* @tags analytics, sites
|
|
11233
|
-
* @name GetSearchAnalyticsForSiteById
|
|
11234
|
-
* @summary Get an overview of the top search queries in a site.
|
|
11235
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/insights/search
|
|
11236
|
-
* @secure
|
|
11237
|
-
*/
|
|
11238
|
-
getSearchAnalyticsForSiteById: (organizationId: string, siteId: string, query?: {
|
|
11239
|
-
period?: AnalyticsSearchPeriod;
|
|
11240
|
-
/** The site spaces to filter the search on */
|
|
11241
|
-
siteSpaceIds?: string[];
|
|
11242
|
-
}, params?: RequestParams) => Promise<HttpResponse<AnalyticsTopSearches, Error>>;
|
|
11243
10541
|
/**
|
|
11244
10542
|
* No description
|
|
11245
10543
|
*
|
|
@@ -11338,6 +10636,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11338
10636
|
message: string;
|
|
11339
10637
|
};
|
|
11340
10638
|
}>>;
|
|
10639
|
+
/**
|
|
10640
|
+
* @description Generate a pre-signed URL that can be used to upload a file to storage
|
|
10641
|
+
*
|
|
10642
|
+
* @tags organization
|
|
10643
|
+
* @name GenerateSiteStorageUploadUrl
|
|
10644
|
+
* @summary Create a signed URL to upload a file
|
|
10645
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/storage/upload
|
|
10646
|
+
* @secure
|
|
10647
|
+
*/
|
|
10648
|
+
generateSiteStorageUploadUrl: (organizationId: string, siteId: string, data: {
|
|
10649
|
+
file: StorageFileMetadata;
|
|
10650
|
+
kind: StorageUploadKind;
|
|
10651
|
+
}, params?: RequestParams) => Promise<HttpResponse<StorageUploadURL, Error | {
|
|
10652
|
+
error: {
|
|
10653
|
+
/** @format int32 */
|
|
10654
|
+
code: 400;
|
|
10655
|
+
message: string;
|
|
10656
|
+
};
|
|
10657
|
+
}>>;
|
|
11341
10658
|
/**
|
|
11342
10659
|
* No description
|
|
11343
10660
|
*
|
|
@@ -11515,24 +10832,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11515
10832
|
* @secure
|
|
11516
10833
|
*/
|
|
11517
10834
|
getCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error>>;
|
|
11518
|
-
/**
|
|
11519
|
-
* No description
|
|
11520
|
-
*
|
|
11521
|
-
* @tags custom-hostnames
|
|
11522
|
-
* @name SetupCustomHostname
|
|
11523
|
-
* @summary Setup a custom hostname on a site or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
|
|
11524
|
-
* @request POST:/custom-hostnames/{hostname}
|
|
11525
|
-
* @secure
|
|
11526
|
-
*/
|
|
11527
|
-
setupCustomHostname: (hostname: string, data: {
|
|
11528
|
-
target: OrganizationPointer | SitePointer;
|
|
11529
|
-
}, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error | {
|
|
11530
|
-
error: {
|
|
11531
|
-
/** @format int32 */
|
|
11532
|
-
code: 409;
|
|
11533
|
-
message: string;
|
|
11534
|
-
};
|
|
11535
|
-
}>>;
|
|
11536
10835
|
/**
|
|
11537
10836
|
* No description
|
|
11538
10837
|
*
|
|
@@ -11559,30 +10858,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11559
10858
|
* @secure
|
|
11560
10859
|
*/
|
|
11561
10860
|
removeCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
11562
|
-
/**
|
|
11563
|
-
* No description
|
|
11564
|
-
*
|
|
11565
|
-
* @tags custom-hostnames
|
|
11566
|
-
* @name TestCustomHostname
|
|
11567
|
-
* @summary Test if a custom hostname can be used for a site or organization.
|
|
11568
|
-
* @request POST:/custom-hostnames/{hostname}/test
|
|
11569
|
-
* @secure
|
|
11570
|
-
*/
|
|
11571
|
-
testCustomHostname: (hostname: string, data: {
|
|
11572
|
-
target: OrganizationPointer | SitePointer;
|
|
11573
|
-
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
11574
|
-
error: {
|
|
11575
|
-
/** @format int32 */
|
|
11576
|
-
code: 400;
|
|
11577
|
-
message: string;
|
|
11578
|
-
};
|
|
11579
|
-
} | {
|
|
11580
|
-
error: {
|
|
11581
|
-
/** @format int32 */
|
|
11582
|
-
code: 409;
|
|
11583
|
-
message: string;
|
|
11584
|
-
};
|
|
11585
|
-
}>>;
|
|
11586
10861
|
};
|
|
11587
10862
|
ads: {
|
|
11588
10863
|
/**
|
|
@@ -11653,22 +10928,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11653
10928
|
status: "pending";
|
|
11654
10929
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
11655
10930
|
};
|
|
11656
|
-
internal: {
|
|
11657
|
-
/**
|
|
11658
|
-
* No description
|
|
11659
|
-
*
|
|
11660
|
-
* @tags hive, critical
|
|
11661
|
-
* @name GenerateHiveAccessToken
|
|
11662
|
-
* @summary Returns a token to authenticate with Hive.
|
|
11663
|
-
* @request POST:/internal/hive/token
|
|
11664
|
-
* @secure
|
|
11665
|
-
*/
|
|
11666
|
-
generateHiveAccessToken: (data?: {
|
|
11667
|
-
/** @deprecated */
|
|
11668
|
-
spaces?: string[];
|
|
11669
|
-
contentIds?: string[];
|
|
11670
|
-
}, params?: RequestParams) => Promise<HttpResponse<HiveAccessToken, Error>>;
|
|
11671
|
-
};
|
|
11672
10931
|
urls: {
|
|
11673
10932
|
/**
|
|
11674
10933
|
* No description
|
|
@@ -11721,11 +10980,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11721
10980
|
* @default false
|
|
11722
10981
|
*/
|
|
11723
10982
|
redirectOnError?: boolean;
|
|
11724
|
-
/**
|
|
11725
|
-
* When true the HTTP response can be cached by the CDN
|
|
11726
|
-
* @default false
|
|
11727
|
-
*/
|
|
11728
|
-
cache?: boolean;
|
|
11729
10983
|
}, params?: RequestParams) => Promise<HttpResponse<PublishedSiteContentLookup, Error | {
|
|
11730
10984
|
error: {
|
|
11731
10985
|
/** @format int32 */
|