@gitbook/api 0.19.0 → 0.20.1
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 +915 -449
- package/dist/index.cjs +37 -36
- package/dist/index.js +37 -36
- package/package.json +2 -2
- package/spec/openapi.json +136 -74
- package/spec/openapi.yaml +85 -46
package/dist/client.d.ts
CHANGED
|
@@ -1,36 +1,31 @@
|
|
|
1
1
|
export interface Error {
|
|
2
2
|
error: {
|
|
3
|
+
/** @format int32 */
|
|
3
4
|
code: number;
|
|
4
5
|
message: string;
|
|
5
6
|
};
|
|
6
7
|
}
|
|
7
8
|
export interface List {
|
|
8
9
|
next?: {
|
|
10
|
+
/** Unique identifier to query the next results page */
|
|
9
11
|
page: string;
|
|
10
12
|
};
|
|
11
13
|
/** Total count of objects in the list */
|
|
12
14
|
count?: number;
|
|
13
15
|
}
|
|
14
|
-
/**
|
|
15
|
-
* @format uri
|
|
16
|
-
*/
|
|
16
|
+
/** @format uri */
|
|
17
17
|
export declare type URL = string;
|
|
18
|
-
/**
|
|
19
|
-
* @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$
|
|
20
|
-
*/
|
|
18
|
+
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
21
19
|
export declare type Color = string;
|
|
22
|
-
/**
|
|
23
|
-
* @format date
|
|
24
|
-
*/
|
|
20
|
+
/** @format date */
|
|
25
21
|
export declare type Date = string;
|
|
26
22
|
/**
|
|
27
23
|
* Unicode codepoint or character of the emoji
|
|
28
|
-
* @
|
|
24
|
+
* @maxLength 20
|
|
25
|
+
* @example "🎉"
|
|
29
26
|
*/
|
|
30
27
|
export declare type Emoji = string;
|
|
31
|
-
/**
|
|
32
|
-
* An emoji reaction by one or many users
|
|
33
|
-
*/
|
|
28
|
+
/** An emoji reaction by one or many users */
|
|
34
29
|
export interface EmojiReaction {
|
|
35
30
|
/** The Emoji of the reaction */
|
|
36
31
|
emoji: string;
|
|
@@ -48,8 +43,11 @@ export interface RequestSpaceTrackPageView {
|
|
|
48
43
|
pageId: string;
|
|
49
44
|
/** Analytics info on the GitBook's content visitor. */
|
|
50
45
|
visitor: {
|
|
46
|
+
/** GitBook's unique identifier of the visitor. */
|
|
51
47
|
anonymousId: string;
|
|
48
|
+
/** The visitors cookies. */
|
|
52
49
|
cookies: Record<string, string>;
|
|
50
|
+
/** User-agent of the visitor. */
|
|
53
51
|
userAgent: string;
|
|
54
52
|
};
|
|
55
53
|
/** The GitBook content's URL visited (including URL params). */
|
|
@@ -69,6 +67,7 @@ export interface RequestPublishIntegration {
|
|
|
69
67
|
description: IntegrationDescription;
|
|
70
68
|
/** Long form markdown summary of the integration */
|
|
71
69
|
summary?: IntegrationSummary;
|
|
70
|
+
/** @maxItems 3 */
|
|
72
71
|
previewImages?: string[];
|
|
73
72
|
visibility?: IntegrationVisibility;
|
|
74
73
|
/** Allowed installation target for the integration. If not specified, the integration can be installed at `all` targets (org, spaces etc) */
|
|
@@ -91,9 +90,9 @@ export interface RequestPublishIntegration {
|
|
|
91
90
|
/**
|
|
92
91
|
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
93
92
|
* headers when processing the script fetch event and the blocks fetch events.
|
|
94
|
-
*
|
|
95
93
|
*/
|
|
96
94
|
contentSecurityPolicy?: IntegrationContentSecurityPolicy;
|
|
95
|
+
/** @maxItems 100 */
|
|
97
96
|
entities?: EntityRawSchema[];
|
|
98
97
|
}
|
|
99
98
|
export interface RequestUpdateIntegrationInstallation {
|
|
@@ -111,15 +110,14 @@ export interface RequestUpgradeOrganizationBilling {
|
|
|
111
110
|
interval: BillingInterval;
|
|
112
111
|
/** Reason that triggered the billing upgrade */
|
|
113
112
|
reason?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Mode to use for the upgrade (default value is `commit`): - `auto`: user is redirect to checkout if possible, other a preview of the auto-upgrade is returned. - `commit`: a checkout session is returned or an auto-upgrade is done - `preview`: a preview invoice is always returned
|
|
116
|
-
*
|
|
117
|
-
*/
|
|
113
|
+
/** Mode to use for the upgrade (default value is `commit`): - `auto`: user is redirect to checkout if possible, other a preview of the auto-upgrade is returned. - `commit`: a checkout session is returned or an auto-upgrade is done - `preview`: a preview invoice is always returned */
|
|
118
114
|
mode?: 'auto' | 'commit' | 'preview';
|
|
119
115
|
}
|
|
120
116
|
export interface RequestInviteUsersToOrganization {
|
|
121
117
|
emails: (string | {
|
|
118
|
+
/** The email address of the user to invite as a member */
|
|
122
119
|
email: string;
|
|
120
|
+
/** The role of a member in an organization, null for guests */
|
|
123
121
|
role: MemberRoleOrGuest;
|
|
124
122
|
})[];
|
|
125
123
|
/** Default role to set on newly invited members. */
|
|
@@ -171,10 +169,14 @@ export interface RequestImportContent {
|
|
|
171
169
|
source: ImportContentSource;
|
|
172
170
|
}
|
|
173
171
|
export interface RequestCreateSpace {
|
|
172
|
+
/** @maxLength 50 */
|
|
174
173
|
title?: string;
|
|
175
174
|
/** Unicode codepoint or character of the emoji */
|
|
176
175
|
emoji?: Emoji;
|
|
177
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* Private spaces are no longer supported by GitBook.
|
|
178
|
+
* @deprecated
|
|
179
|
+
*/
|
|
178
180
|
private?: boolean;
|
|
179
181
|
/** ID of a parent collection */
|
|
180
182
|
parent?: string;
|
|
@@ -209,9 +211,7 @@ export interface RequestCreateOrganization {
|
|
|
209
211
|
type?: OrganizationType;
|
|
210
212
|
useCase?: OrganizationUseCase;
|
|
211
213
|
}
|
|
212
|
-
/**
|
|
213
|
-
* Update metadata about the Git provider on the space
|
|
214
|
-
*/
|
|
214
|
+
/** Update metadata about the Git provider on the space */
|
|
215
215
|
export interface RequestUpdateSpaceGitInfo {
|
|
216
216
|
/** The git provider */
|
|
217
217
|
provider?: 'github' | 'gitlab';
|
|
@@ -224,24 +224,18 @@ export interface ApiInformation {
|
|
|
224
224
|
/** Date of the latest release in ISO format */
|
|
225
225
|
build: string;
|
|
226
226
|
}
|
|
227
|
-
/**
|
|
228
|
-
* The context to send when purging the CDN Cache
|
|
229
|
-
*/
|
|
227
|
+
/** The context to send when purging the CDN Cache */
|
|
230
228
|
export interface RequestPurgeCDNCacheContext {
|
|
231
229
|
/** The type of purge, e.g by tags or hosts */
|
|
232
230
|
type: PurgeCDNCacheContextType;
|
|
233
231
|
/** The list of tags or hosts to purge */
|
|
234
232
|
values: string[];
|
|
235
233
|
}
|
|
236
|
-
/**
|
|
237
|
-
* The context to send when blocking/unblocking a user
|
|
238
|
-
*/
|
|
234
|
+
/** The context to send when blocking/unblocking a user */
|
|
239
235
|
export interface RequestBlockUserContext {
|
|
240
236
|
block: boolean;
|
|
241
237
|
}
|
|
242
|
-
/**
|
|
243
|
-
* The context to send when triggering a content indexing.
|
|
244
|
-
*/
|
|
238
|
+
/** The context to send when triggering a content indexing. */
|
|
245
239
|
export interface TriggerContentIndexingContext {
|
|
246
240
|
/** The unique identifier of the Space to index. */
|
|
247
241
|
spaceId: string;
|
|
@@ -261,12 +255,14 @@ export interface User {
|
|
|
261
255
|
photoURL?: string;
|
|
262
256
|
/** URLs associated with the object */
|
|
263
257
|
urls: {
|
|
258
|
+
/**
|
|
259
|
+
* URL of the user in the API
|
|
260
|
+
* @format uri
|
|
261
|
+
*/
|
|
264
262
|
location?: string;
|
|
265
263
|
};
|
|
266
264
|
}
|
|
267
|
-
/**
|
|
268
|
-
* The API token details, excluding the token itself.
|
|
269
|
-
*/
|
|
265
|
+
/** The API token details, excluding the token itself. */
|
|
270
266
|
export interface UserAPIToken {
|
|
271
267
|
/** The API token ID. */
|
|
272
268
|
id: string;
|
|
@@ -275,10 +271,9 @@ export interface UserAPIToken {
|
|
|
275
271
|
/** The API token creation date. */
|
|
276
272
|
createdAt: Date;
|
|
277
273
|
}
|
|
278
|
-
/**
|
|
279
|
-
* The API token details, including the token itself.
|
|
280
|
-
*/
|
|
274
|
+
/** The API token details, including the token itself. */
|
|
281
275
|
export declare type UserAPITokenExtended = UserAPIToken & {
|
|
276
|
+
/** The actual token value. */
|
|
282
277
|
token: string;
|
|
283
278
|
};
|
|
284
279
|
export interface Team {
|
|
@@ -288,14 +283,14 @@ export interface Team {
|
|
|
288
283
|
id: string;
|
|
289
284
|
}
|
|
290
285
|
/**
|
|
291
|
-
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
292
|
-
* `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
293
|
-
* `share-link`: Anyone with a secret token in the url can access the content.
|
|
294
|
-
* `visitor-auth`: Anyone authenticated through a JWT token can access the content.
|
|
295
|
-
* `in-collection`: Anyone who can access the parent collection can access the content.
|
|
296
|
-
|
|
297
|
-
* `private`: Authorized members can access the content.
|
|
298
|
-
*/
|
|
286
|
+
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
287
|
+
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
288
|
+
* * `share-link`: Anyone with a secret token in the url can access the content.
|
|
289
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
|
|
290
|
+
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
291
|
+
* Only available for spaces in a collection.
|
|
292
|
+
* * `private`: Authorized members can access the content.
|
|
293
|
+
*/
|
|
299
294
|
export declare enum ContentVisibility {
|
|
300
295
|
Public = "public",
|
|
301
296
|
Unlisted = "unlisted",
|
|
@@ -304,9 +299,7 @@ export declare enum ContentVisibility {
|
|
|
304
299
|
InCollection = "in-collection",
|
|
305
300
|
Private = "private"
|
|
306
301
|
}
|
|
307
|
-
/**
|
|
308
|
-
* Contributor towards content.
|
|
309
|
-
*/
|
|
302
|
+
/** Contributor towards content. */
|
|
310
303
|
export interface UserContributor {
|
|
311
304
|
updatedAt: Date;
|
|
312
305
|
count: number;
|
|
@@ -344,36 +337,62 @@ export declare type Embed = {
|
|
|
344
337
|
html: string;
|
|
345
338
|
});
|
|
346
339
|
export declare type Comment = {
|
|
340
|
+
/** Type of Object, always equals to "comment" */
|
|
347
341
|
object: 'comment';
|
|
342
|
+
/** Unique identifier for the comment. */
|
|
348
343
|
id: string;
|
|
344
|
+
/** The user who posted the comment. */
|
|
349
345
|
postedBy: User;
|
|
346
|
+
/** When the comment was posted. */
|
|
350
347
|
postedAt: Date;
|
|
348
|
+
/** Date when the comment was edited, if it has been edited. */
|
|
351
349
|
editedAt?: Date;
|
|
350
|
+
/** Any emoji reactions to the comment. */
|
|
352
351
|
reactions: EmojiReactions;
|
|
352
|
+
/** The number of replies to this comment. */
|
|
353
353
|
replies: number;
|
|
354
|
+
/** The content of the comment. */
|
|
354
355
|
body: Document;
|
|
356
|
+
/** Information about the target of the comment. */
|
|
355
357
|
target: {
|
|
358
|
+
/** The node this comment is attached to. */
|
|
356
359
|
node?: {
|
|
357
|
-
id
|
|
360
|
+
id: string;
|
|
358
361
|
preview?: string;
|
|
359
362
|
};
|
|
363
|
+
/** The change request containing this comment, if the comment was made inside a change request. */
|
|
360
364
|
changeRequest?: string;
|
|
365
|
+
/** The review containing this comment, if this comment was made as part of a review. */
|
|
361
366
|
review?: string;
|
|
367
|
+
/** Information about the page, if this comment refers to a specific page. */
|
|
362
368
|
page?: RevisionPageBase & {
|
|
369
|
+
/** The fully qualified path to the page */
|
|
363
370
|
path: string;
|
|
371
|
+
/** True if the target of this comment no longer exists in the primary content */
|
|
364
372
|
outdated: boolean;
|
|
365
373
|
};
|
|
374
|
+
/** The space containing this comment. */
|
|
366
375
|
space: string;
|
|
376
|
+
/** The revision in which the target can be found in. */
|
|
367
377
|
revision: string;
|
|
368
378
|
};
|
|
379
|
+
/** URLs associated with the object */
|
|
369
380
|
urls: {
|
|
381
|
+
/**
|
|
382
|
+
* URL of the comment in the API
|
|
383
|
+
* @format uri
|
|
384
|
+
*/
|
|
370
385
|
location: string;
|
|
371
386
|
};
|
|
372
387
|
} & ({
|
|
388
|
+
/** Status of the comment. */
|
|
373
389
|
status: 'resolved';
|
|
390
|
+
/** If the comment has been resolved, the date at which it was resolved. If this field is not defined, the comment is not resolved. */
|
|
374
391
|
resolvedAt: Date;
|
|
392
|
+
/** If the comment has been resolved, the user who resolved it. If this field is not defined, the comment is not resolved. */
|
|
375
393
|
resolvedBy: User;
|
|
376
394
|
} | {
|
|
395
|
+
/** Status of the comment. */
|
|
377
396
|
status: 'open';
|
|
378
397
|
});
|
|
379
398
|
export interface CommentReply {
|
|
@@ -389,27 +408,31 @@ export interface CommentReply {
|
|
|
389
408
|
body: Document;
|
|
390
409
|
/** URLs associated with the object */
|
|
391
410
|
urls: {
|
|
411
|
+
/**
|
|
412
|
+
* URL of the comment reply in the API
|
|
413
|
+
* @format uri
|
|
414
|
+
*/
|
|
392
415
|
location: string;
|
|
393
416
|
};
|
|
394
417
|
}
|
|
395
418
|
export declare type PublishedContentLookup = {
|
|
419
|
+
/** Type of target for the redirect */
|
|
396
420
|
target: 'application' | 'content' | 'external';
|
|
397
421
|
redirect: URL;
|
|
398
422
|
} | {
|
|
423
|
+
/** ID of the space matching. */
|
|
399
424
|
space: string;
|
|
425
|
+
/** Identifier of the change request being previewed in this URL. */
|
|
400
426
|
changeRequest?: string;
|
|
427
|
+
/** Identifier of the revision being previewed in this URL. */
|
|
401
428
|
revision?: string;
|
|
429
|
+
/** Path of the content relative to the space */
|
|
402
430
|
pathname: string;
|
|
431
|
+
/** Prefix of the path in the URL dedicated to the space */
|
|
403
432
|
basePath: string;
|
|
433
|
+
/** Short-lived API token to fetch content related to the space in the context of the URL. */
|
|
404
434
|
apiToken: string;
|
|
405
435
|
};
|
|
406
|
-
/**
|
|
407
|
-
* Drawing generated from a prompt
|
|
408
|
-
*/
|
|
409
|
-
export interface GeneratedDrawing {
|
|
410
|
-
/** Mermaid diagram generated */
|
|
411
|
-
mermaid?: string;
|
|
412
|
-
}
|
|
413
436
|
export declare type Document = MarkdownDocument | {
|
|
414
437
|
document: JSONDocument;
|
|
415
438
|
} | object;
|
|
@@ -523,6 +546,7 @@ export interface DocumentInlineAnnotation {
|
|
|
523
546
|
key?: string;
|
|
524
547
|
fragments: (DocumentFragment & {
|
|
525
548
|
type: 'annotation-body';
|
|
549
|
+
/** @minItems 1 */
|
|
526
550
|
nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
|
|
527
551
|
})[];
|
|
528
552
|
isVoid: false;
|
|
@@ -543,9 +567,11 @@ export interface DocumentBlockHeading {
|
|
|
543
567
|
key?: string;
|
|
544
568
|
nodes: (DocumentInline | DocumentText)[];
|
|
545
569
|
data: {
|
|
570
|
+
/** @pattern ^[-a-z0-9.+_]+$ */
|
|
546
571
|
id?: string;
|
|
547
572
|
};
|
|
548
573
|
meta?: {
|
|
574
|
+
/** Unique ID to be used in an URL for the block. */
|
|
549
575
|
id: string;
|
|
550
576
|
};
|
|
551
577
|
isVoid?: false;
|
|
@@ -581,6 +607,7 @@ export interface DocumentBlockListOrdered {
|
|
|
581
607
|
type: 'list-ordered';
|
|
582
608
|
key?: string;
|
|
583
609
|
data: {
|
|
610
|
+
/** An integer to start counting from for the list items. */
|
|
584
611
|
start?: number;
|
|
585
612
|
};
|
|
586
613
|
nodes: DocumentBlockListItem[];
|
|
@@ -671,6 +698,7 @@ export interface DocumentBlockCode {
|
|
|
671
698
|
data: {
|
|
672
699
|
syntax?: string;
|
|
673
700
|
title?: string;
|
|
701
|
+
/** @default "scroll" */
|
|
674
702
|
overflow?: 'scroll' | 'wrap';
|
|
675
703
|
lineNumbers?: boolean;
|
|
676
704
|
fullWidth?: boolean;
|
|
@@ -706,13 +734,19 @@ export interface DocumentBlockExpandable {
|
|
|
706
734
|
fragments: ((DocumentFragment & {
|
|
707
735
|
fragment: 'expandable-title';
|
|
708
736
|
type: 'expandable-title';
|
|
737
|
+
/**
|
|
738
|
+
* @maxItems 1
|
|
739
|
+
* @minItems 1
|
|
740
|
+
*/
|
|
709
741
|
nodes: DocumentBlockParagraph[];
|
|
710
742
|
}) | (DocumentFragment & {
|
|
711
743
|
fragment: 'expandable-body';
|
|
712
744
|
type: 'expandable-body';
|
|
745
|
+
/** @minItems 1 */
|
|
713
746
|
nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
|
|
714
747
|
}))[];
|
|
715
748
|
meta?: {
|
|
749
|
+
/** Unique ID to be used in an URL for the block. */
|
|
716
750
|
id: string;
|
|
717
751
|
};
|
|
718
752
|
}
|
|
@@ -730,13 +764,17 @@ export interface DocumentBlockSwagger {
|
|
|
730
764
|
key?: string;
|
|
731
765
|
data: {
|
|
732
766
|
ref: ContentRefFile;
|
|
767
|
+
/** Path of the operation in the OpenAPI spec. */
|
|
733
768
|
path?: string;
|
|
769
|
+
/** HTTP method of the operation in the OpenAPI spec. */
|
|
734
770
|
method?: string;
|
|
771
|
+
/** If true, the block is opened by default. */
|
|
735
772
|
expanded?: boolean;
|
|
736
773
|
fullWidth?: boolean;
|
|
737
774
|
};
|
|
738
775
|
isVoid: true;
|
|
739
776
|
meta?: {
|
|
777
|
+
/** Unique ID to be used in an URL for the block. */
|
|
740
778
|
id: string;
|
|
741
779
|
};
|
|
742
780
|
}
|
|
@@ -749,6 +787,7 @@ export interface DocumentBlockTable {
|
|
|
749
787
|
view: DocumentTableViewGrid | DocumentTableViewCards;
|
|
750
788
|
records: Record<string, DocumentTableRecord>;
|
|
751
789
|
definition: Record<string, DocumentTableDefinition>;
|
|
790
|
+
/** Whether to render the block as a full width one */
|
|
752
791
|
fullWidth?: boolean;
|
|
753
792
|
};
|
|
754
793
|
fragments: DocumentFragment[];
|
|
@@ -824,8 +863,10 @@ export interface DocumentTableViewGrid {
|
|
|
824
863
|
*
|
|
825
864
|
* We later changed this to treat the widths in columnWidths as exact values - they are
|
|
826
865
|
* never scaled. A columnWidth of 50 is rendered as 50px.
|
|
866
|
+
*
|
|
827
867
|
* In order to maintain backwards compatibility, we track whether or not we
|
|
828
868
|
* use the new system here.
|
|
869
|
+
*
|
|
829
870
|
* All new tables should have this value set to true, older tables will have it set
|
|
830
871
|
* to undefined.
|
|
831
872
|
*/
|
|
@@ -840,6 +881,7 @@ export interface DocumentBlockTabsItem {
|
|
|
840
881
|
title?: string;
|
|
841
882
|
};
|
|
842
883
|
meta?: {
|
|
884
|
+
/** Unique ID to be used in an URL for the block. */
|
|
843
885
|
id: string;
|
|
844
886
|
};
|
|
845
887
|
isVoid?: false;
|
|
@@ -858,10 +900,19 @@ export interface DocumentBlockIntegration {
|
|
|
858
900
|
type: 'integration';
|
|
859
901
|
key?: string;
|
|
860
902
|
data: {
|
|
903
|
+
/** Name of the integration */
|
|
861
904
|
integration: string;
|
|
905
|
+
/** ID of the block in the integration */
|
|
862
906
|
block: string;
|
|
907
|
+
/** Properties passed to the block during rendering */
|
|
863
908
|
props: Record<string, any>;
|
|
909
|
+
/** Custom action to re-render the block. */
|
|
864
910
|
action?: ContentKitAction;
|
|
911
|
+
/**
|
|
912
|
+
* URL associated with the content represented by the block.
|
|
913
|
+
* This property is set when creating a block from a URL (unfurl) to ensure
|
|
914
|
+
* we can convert the block back to an embed.
|
|
915
|
+
*/
|
|
865
916
|
url?: string;
|
|
866
917
|
fullWidth?: boolean;
|
|
867
918
|
};
|
|
@@ -914,7 +965,11 @@ export interface Space {
|
|
|
914
965
|
object: 'space';
|
|
915
966
|
/** Unique identifier for the space */
|
|
916
967
|
id: string;
|
|
917
|
-
/**
|
|
968
|
+
/**
|
|
969
|
+
* Title of the space
|
|
970
|
+
* @minLength 0
|
|
971
|
+
* @maxLength 100
|
|
972
|
+
*/
|
|
918
973
|
title: string;
|
|
919
974
|
/**
|
|
920
975
|
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
@@ -924,7 +979,6 @@ export interface Space {
|
|
|
924
979
|
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
925
980
|
* Only available for spaces in a collection.
|
|
926
981
|
* * `private`: Authorized members can access the content.
|
|
927
|
-
*
|
|
928
982
|
*/
|
|
929
983
|
visibility: ContentVisibility;
|
|
930
984
|
createdAt: Date;
|
|
@@ -932,9 +986,25 @@ export interface Space {
|
|
|
932
986
|
deletedAt?: Date;
|
|
933
987
|
/** URLs associated with the object */
|
|
934
988
|
urls: {
|
|
989
|
+
/**
|
|
990
|
+
* URL of the space in the API
|
|
991
|
+
* @format uri
|
|
992
|
+
*/
|
|
935
993
|
location: string;
|
|
994
|
+
/**
|
|
995
|
+
* URL of the space in the application
|
|
996
|
+
* @format uri
|
|
997
|
+
*/
|
|
936
998
|
app: string;
|
|
999
|
+
/**
|
|
1000
|
+
* URL of the published version of the space. Only defined when visibility is not "private."
|
|
1001
|
+
* @format uri
|
|
1002
|
+
*/
|
|
937
1003
|
published?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* URL of the public version of the space. Only defined when visibility is "public".
|
|
1006
|
+
* @format uri
|
|
1007
|
+
*/
|
|
938
1008
|
public?: string;
|
|
939
1009
|
};
|
|
940
1010
|
/** ID of the organization owning this space */
|
|
@@ -954,22 +1024,38 @@ export interface RevisionBase {
|
|
|
954
1024
|
/** Metadata about a potential associated git commit. */
|
|
955
1025
|
git?: GitSyncCommit;
|
|
956
1026
|
urls: {
|
|
1027
|
+
/**
|
|
1028
|
+
* URL in the application for the revision
|
|
1029
|
+
* @format uri
|
|
1030
|
+
*/
|
|
957
1031
|
app: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* URL of the published version of the revision. Only defined when the space visibility is not "private."
|
|
1034
|
+
* @format uri
|
|
1035
|
+
*/
|
|
958
1036
|
published?: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* URL of the public version of the revision. Only defined when the space visibility is "public".
|
|
1039
|
+
* @format uri
|
|
1040
|
+
*/
|
|
959
1041
|
public?: string;
|
|
960
1042
|
};
|
|
961
1043
|
}
|
|
962
1044
|
export declare type RevisionTypeMerge = RevisionBase & {
|
|
1045
|
+
/** Revision created when merging a change request with primary. */
|
|
963
1046
|
type: 'merge';
|
|
964
1047
|
mergedFrom: ChangeRequest;
|
|
965
1048
|
};
|
|
966
1049
|
export declare type RevisionTypeRollback = RevisionBase & {
|
|
1050
|
+
/** Revision created as a rollback of a previous revision. */
|
|
967
1051
|
type: 'rollback';
|
|
968
1052
|
};
|
|
969
1053
|
export declare type RevisionTypeUpdate = RevisionBase & {
|
|
1054
|
+
/** Revision created when updating a change request with changes from primary. */
|
|
970
1055
|
type: 'update';
|
|
971
1056
|
};
|
|
972
1057
|
export declare type RevisionTypeEdits = RevisionBase & {
|
|
1058
|
+
/** Revision created by editing the content. */
|
|
973
1059
|
type: 'edits';
|
|
974
1060
|
};
|
|
975
1061
|
export declare type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate;
|
|
@@ -977,7 +1063,10 @@ export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | Re
|
|
|
977
1063
|
export interface RevisionPageBase {
|
|
978
1064
|
/** Unique identifier for the page in the revision */
|
|
979
1065
|
id: string;
|
|
980
|
-
/**
|
|
1066
|
+
/**
|
|
1067
|
+
* Title of the page
|
|
1068
|
+
* @maxLength 100
|
|
1069
|
+
*/
|
|
981
1070
|
title: string;
|
|
982
1071
|
/** When the page was first created. Only present if page has been edited at least once. */
|
|
983
1072
|
createdAt?: Date;
|
|
@@ -985,11 +1074,15 @@ export interface RevisionPageBase {
|
|
|
985
1074
|
updatedAt?: Date;
|
|
986
1075
|
}
|
|
987
1076
|
export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
1077
|
+
/** @deprecated */
|
|
988
1078
|
kind: 'sheet';
|
|
989
1079
|
type: 'document';
|
|
1080
|
+
/** Page's slug in its direct parent */
|
|
990
1081
|
slug: string;
|
|
1082
|
+
/** Complete path to access the page in the revision. */
|
|
991
1083
|
path: string;
|
|
992
1084
|
description?: string;
|
|
1085
|
+
/** ID of the document with the page body. If undefined, the page is empty. */
|
|
993
1086
|
documentId?: string;
|
|
994
1087
|
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
995
1088
|
git?: GitSyncBlob;
|
|
@@ -1003,9 +1096,12 @@ export interface RevisionPageDocumentCover {
|
|
|
1003
1096
|
yPos: number;
|
|
1004
1097
|
}
|
|
1005
1098
|
export declare type RevisionPageGroup = RevisionPageBase & {
|
|
1099
|
+
/** @deprecated */
|
|
1006
1100
|
kind: 'group';
|
|
1007
1101
|
type: 'group';
|
|
1102
|
+
/** Page's slug in its direct parent */
|
|
1008
1103
|
slug: string;
|
|
1104
|
+
/** Complete path to access the page in the revision. */
|
|
1009
1105
|
path: string;
|
|
1010
1106
|
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
1011
1107
|
};
|
|
@@ -1026,22 +1122,19 @@ export interface RevisionPageLayoutOptions {
|
|
|
1026
1122
|
/** Should the pagination be visible? */
|
|
1027
1123
|
pagination?: boolean;
|
|
1028
1124
|
}
|
|
1029
|
-
/**
|
|
1030
|
-
* Size of the cover image.
|
|
1031
|
-
*/
|
|
1125
|
+
/** Size of the cover image. */
|
|
1032
1126
|
export declare enum RevisionPageLayoutOptionsCoverSize {
|
|
1033
1127
|
Hero = "hero",
|
|
1034
1128
|
Full = "full"
|
|
1035
1129
|
}
|
|
1036
|
-
/**
|
|
1037
|
-
* The core layout presets for a page.
|
|
1038
|
-
*/
|
|
1130
|
+
/** The core layout presets for a page. */
|
|
1039
1131
|
export declare enum RevisionPageLayoutPreset {
|
|
1040
1132
|
Docs = "docs",
|
|
1041
1133
|
Editorial = "editorial",
|
|
1042
1134
|
Landing = "landing"
|
|
1043
1135
|
}
|
|
1044
1136
|
export declare type RevisionPageLink = RevisionPageBase & {
|
|
1137
|
+
/** @deprecated */
|
|
1045
1138
|
kind: 'link';
|
|
1046
1139
|
type: 'link';
|
|
1047
1140
|
target: ContentRef;
|
|
@@ -1195,9 +1288,7 @@ export interface RevisionSemanticChangePageMoved {
|
|
|
1195
1288
|
after?: ChangedRevisionPage;
|
|
1196
1289
|
};
|
|
1197
1290
|
}
|
|
1198
|
-
/**
|
|
1199
|
-
* The type of semantic change.
|
|
1200
|
-
*/
|
|
1291
|
+
/** The type of semantic change. */
|
|
1201
1292
|
export declare enum RevisionSemanticChangeType {
|
|
1202
1293
|
PageCreated = "page_created",
|
|
1203
1294
|
PageEdited = "page_edited",
|
|
@@ -1222,7 +1313,6 @@ export interface GitSyncOperation {
|
|
|
1222
1313
|
* * `running`: The operation is still running
|
|
1223
1314
|
* * `failure`: The operation failed
|
|
1224
1315
|
* * `success`: The operation was successful
|
|
1225
|
-
*
|
|
1226
1316
|
*/
|
|
1227
1317
|
state: GitSyncOperationState;
|
|
1228
1318
|
startedAt: Date;
|
|
@@ -1233,8 +1323,8 @@ export interface GitSyncOperation {
|
|
|
1233
1323
|
}
|
|
1234
1324
|
/**
|
|
1235
1325
|
* * `running`: The operation is still running
|
|
1236
|
-
* `failure`: The operation failed
|
|
1237
|
-
* `success`: The operation was successful
|
|
1326
|
+
* * `failure`: The operation failed
|
|
1327
|
+
* * `success`: The operation was successful
|
|
1238
1328
|
*/
|
|
1239
1329
|
export declare enum GitSyncOperationState {
|
|
1240
1330
|
Running = "running",
|
|
@@ -1272,7 +1362,15 @@ export interface Organization {
|
|
|
1272
1362
|
communityType?: OrganizationCommunityType;
|
|
1273
1363
|
/** URLs associated with the object */
|
|
1274
1364
|
urls: {
|
|
1365
|
+
/**
|
|
1366
|
+
* URL of the organization in the API
|
|
1367
|
+
* @format uri
|
|
1368
|
+
*/
|
|
1275
1369
|
location: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* URL of the organization in the application
|
|
1372
|
+
* @format uri
|
|
1373
|
+
*/
|
|
1276
1374
|
app: string;
|
|
1277
1375
|
};
|
|
1278
1376
|
}
|
|
@@ -1282,6 +1380,8 @@ export declare enum OrganizationType {
|
|
|
1282
1380
|
}
|
|
1283
1381
|
/**
|
|
1284
1382
|
* Name of the organization
|
|
1383
|
+
* @minLength 2
|
|
1384
|
+
* @maxLength 300
|
|
1285
1385
|
*/
|
|
1286
1386
|
export declare type OrganizationTitle = string;
|
|
1287
1387
|
export declare type OrganizationEmailDomains = string[];
|
|
@@ -1298,15 +1398,22 @@ export declare enum OrganizationCommunityType {
|
|
|
1298
1398
|
OpenSource = "openSource",
|
|
1299
1399
|
Education = "education"
|
|
1300
1400
|
}
|
|
1401
|
+
export interface OrganizationExperimentalFeature {
|
|
1402
|
+
id: string;
|
|
1403
|
+
title: string;
|
|
1404
|
+
description: string;
|
|
1405
|
+
enabled: boolean;
|
|
1406
|
+
stage: 'alpha' | 'beta';
|
|
1407
|
+
}
|
|
1301
1408
|
/**
|
|
1302
|
-
* "The role of a member in an organization.
|
|
1303
|
-
"admin": Can administrate the content: create, delete spaces, ...
|
|
1304
|
-
"create": Can create content.
|
|
1305
|
-
"review": Can review content.
|
|
1306
|
-
"edit": Can edit the content (live or change requests).
|
|
1307
|
-
"comment": Can access the content and its discussions.
|
|
1308
|
-
"read": Can access the content, but cannot update it in any way.
|
|
1309
|
-
*/
|
|
1409
|
+
* "The role of a member in an organization.
|
|
1410
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
1411
|
+
* "create": Can create content.
|
|
1412
|
+
* "review": Can review content.
|
|
1413
|
+
* "edit": Can edit the content (live or change requests).
|
|
1414
|
+
* "comment": Can access the content and its discussions.
|
|
1415
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
1416
|
+
*/
|
|
1310
1417
|
export declare enum MemberRole {
|
|
1311
1418
|
Admin = "admin",
|
|
1312
1419
|
Create = "create",
|
|
@@ -1315,9 +1422,7 @@ export declare enum MemberRole {
|
|
|
1315
1422
|
Comment = "comment",
|
|
1316
1423
|
Read = "read"
|
|
1317
1424
|
}
|
|
1318
|
-
/**
|
|
1319
|
-
* The role of a member in an organization, null for guests
|
|
1320
|
-
*/
|
|
1425
|
+
/** The role of a member in an organization, null for guests */
|
|
1321
1426
|
export declare type MemberRoleOrGuest = MemberRole | null;
|
|
1322
1427
|
export interface OrganizationTransferResponse {
|
|
1323
1428
|
/** The unique id of the collection created in the target organization containing the content of the source organization. */
|
|
@@ -1344,14 +1449,7 @@ export declare type OrganizationDirectorySyncGroupTeamStatus = {
|
|
|
1344
1449
|
} | {
|
|
1345
1450
|
success: false;
|
|
1346
1451
|
error: string;
|
|
1347
|
-
}
|
|
1348
|
-
success: true;
|
|
1349
|
-
group_id: string;
|
|
1350
|
-
team_id: string;
|
|
1351
|
-
} & {
|
|
1352
|
-
success: false;
|
|
1353
|
-
error: string;
|
|
1354
|
-
});
|
|
1452
|
+
};
|
|
1355
1453
|
export interface OrganizationTarget {
|
|
1356
1454
|
organization: string;
|
|
1357
1455
|
}
|
|
@@ -1390,6 +1488,8 @@ export interface OrganizationTeam {
|
|
|
1390
1488
|
}
|
|
1391
1489
|
/**
|
|
1392
1490
|
* Title of the team
|
|
1491
|
+
* @minLength 1
|
|
1492
|
+
* @maxLength 64
|
|
1393
1493
|
*/
|
|
1394
1494
|
export declare type OrganizationTeamTitle = string;
|
|
1395
1495
|
export interface TeamMember {
|
|
@@ -1397,22 +1497,19 @@ export interface TeamMember {
|
|
|
1397
1497
|
* "The role of a team member.
|
|
1398
1498
|
* "owner": Can manage team members.
|
|
1399
1499
|
* "member": Is a member of the team.
|
|
1400
|
-
*
|
|
1401
1500
|
*/
|
|
1402
1501
|
role: TeamMemberRole;
|
|
1403
1502
|
}
|
|
1404
1503
|
/**
|
|
1405
|
-
* "The role of a team member.
|
|
1406
|
-
"owner": Can manage team members.
|
|
1407
|
-
"member": Is a member of the team.
|
|
1408
|
-
*/
|
|
1504
|
+
* "The role of a team member.
|
|
1505
|
+
* "owner": Can manage team members.
|
|
1506
|
+
* "member": Is a member of the team.
|
|
1507
|
+
*/
|
|
1409
1508
|
export declare enum TeamMemberRole {
|
|
1410
1509
|
Owner = "owner",
|
|
1411
1510
|
Member = "member"
|
|
1412
1511
|
}
|
|
1413
|
-
/**
|
|
1414
|
-
* A member of a team in an organization, including its relationship to it
|
|
1415
|
-
*/
|
|
1512
|
+
/** A member of a team in an organization, including its relationship to it */
|
|
1416
1513
|
export interface OrganizationTeamMember {
|
|
1417
1514
|
organization: OrganizationMember;
|
|
1418
1515
|
team: TeamMember;
|
|
@@ -1442,18 +1539,30 @@ export interface Capture {
|
|
|
1442
1539
|
speech?: number;
|
|
1443
1540
|
'thread.message'?: number;
|
|
1444
1541
|
};
|
|
1445
|
-
/**
|
|
1542
|
+
/**
|
|
1543
|
+
* An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration).
|
|
1544
|
+
* @minItems 1
|
|
1545
|
+
*/
|
|
1446
1546
|
contributors: (Integration | User)[];
|
|
1447
1547
|
/** Output document for the capture. Is not set when capture is not finished. */
|
|
1448
1548
|
output?: Document;
|
|
1449
1549
|
/** URLs associated with the object */
|
|
1450
1550
|
urls: {
|
|
1551
|
+
/**
|
|
1552
|
+
* URL of the capture in the API
|
|
1553
|
+
* @format uri
|
|
1554
|
+
*/
|
|
1451
1555
|
location: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* URL of the capture in the app
|
|
1558
|
+
* @format uri
|
|
1559
|
+
*/
|
|
1452
1560
|
app: string;
|
|
1453
1561
|
};
|
|
1454
1562
|
}
|
|
1455
1563
|
/**
|
|
1456
1564
|
* Optional title describing the capture
|
|
1565
|
+
* @maxLength 100
|
|
1457
1566
|
*/
|
|
1458
1567
|
export declare type CaptureTitle = string;
|
|
1459
1568
|
export declare type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
|
|
@@ -1466,7 +1575,10 @@ export interface BaseCaptureEvent {
|
|
|
1466
1575
|
* @format date-time
|
|
1467
1576
|
*/
|
|
1468
1577
|
timestamp: string;
|
|
1469
|
-
/**
|
|
1578
|
+
/**
|
|
1579
|
+
* Optionally, provide the source of the event. GitBook may use this to improve the generated content.
|
|
1580
|
+
* @maxLength 50
|
|
1581
|
+
*/
|
|
1470
1582
|
source?: string;
|
|
1471
1583
|
/** Optionally, provide the actor of the event, in the context of multiple people contributing to the capture. */
|
|
1472
1584
|
actor?: {
|
|
@@ -1476,8 +1588,10 @@ export interface BaseCaptureEvent {
|
|
|
1476
1588
|
export declare type CaptureSpeechEvent = BaseCaptureEvent & {
|
|
1477
1589
|
type: 'speech';
|
|
1478
1590
|
} & ({
|
|
1591
|
+
/** WAV audio file, encoded as base64 */
|
|
1479
1592
|
audio: string;
|
|
1480
1593
|
} | {
|
|
1594
|
+
/** Transcript of the speech */
|
|
1481
1595
|
transcript: string;
|
|
1482
1596
|
});
|
|
1483
1597
|
export declare type CaptureTerminalCommandEvent = BaseCaptureEvent & {
|
|
@@ -1512,19 +1626,41 @@ export interface UpdateCaptureSchema {
|
|
|
1512
1626
|
body?: Document;
|
|
1513
1627
|
}
|
|
1514
1628
|
export declare type Snippet = Document & {
|
|
1629
|
+
/** Unique identifier for the snippet */
|
|
1515
1630
|
id: string;
|
|
1631
|
+
/** @format date-time */
|
|
1516
1632
|
createdAt: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* Timestamp of when the snippet was last edited, if it has been edited since its creation.
|
|
1635
|
+
* @format date-time
|
|
1636
|
+
*/
|
|
1517
1637
|
editedAt?: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* Title describing the snippet.
|
|
1640
|
+
* @maxLength 100
|
|
1641
|
+
*/
|
|
1518
1642
|
title?: string;
|
|
1643
|
+
/** The source of the snippet. */
|
|
1519
1644
|
source: {
|
|
1645
|
+
/** An ID identifying the source, unique across all sources. */
|
|
1520
1646
|
sourceId: string;
|
|
1647
|
+
/** A display name for the source. */
|
|
1521
1648
|
name: string;
|
|
1649
|
+
/** An ID identifying the snippet in the source system, if available. */
|
|
1522
1650
|
externalId?: string;
|
|
1651
|
+
/** URL of the snippet in the source system, if available. */
|
|
1523
1652
|
externalUrl?: URL;
|
|
1524
1653
|
};
|
|
1654
|
+
/**
|
|
1655
|
+
* An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.
|
|
1656
|
+
* @minItems 1
|
|
1657
|
+
*/
|
|
1525
1658
|
contributors: (Integration | User)[];
|
|
1659
|
+
/** URLs associated with the object */
|
|
1526
1660
|
urls: {
|
|
1661
|
+
/** URL of the snippet in the API */
|
|
1527
1662
|
location: URL;
|
|
1663
|
+
/** URL of the snippet in the app */
|
|
1528
1664
|
app: URL;
|
|
1529
1665
|
};
|
|
1530
1666
|
};
|
|
@@ -1534,9 +1670,7 @@ export interface UpdateSnippetSchema {
|
|
|
1534
1670
|
/** Content of the snippet. */
|
|
1535
1671
|
body?: Document;
|
|
1536
1672
|
}
|
|
1537
|
-
/**
|
|
1538
|
-
* Content audit relation
|
|
1539
|
-
*/
|
|
1673
|
+
/** Content audit relation */
|
|
1540
1674
|
export interface ContentAuditRelation {
|
|
1541
1675
|
id: string;
|
|
1542
1676
|
/** The sources that are related */
|
|
@@ -1550,16 +1684,12 @@ export interface ContentAuditRelation {
|
|
|
1550
1684
|
/** The date at which the relation was created */
|
|
1551
1685
|
createdAt: Date;
|
|
1552
1686
|
}
|
|
1553
|
-
/**
|
|
1554
|
-
* The type of the relation between the sources
|
|
1555
|
-
*/
|
|
1687
|
+
/** The type of the relation between the sources */
|
|
1556
1688
|
export declare enum ContentAuditRelationType {
|
|
1557
1689
|
Contradiction = "contradiction",
|
|
1558
1690
|
Duplicate = "duplicate"
|
|
1559
1691
|
}
|
|
1560
|
-
/**
|
|
1561
|
-
* Status of the audit relation to filter on
|
|
1562
|
-
*/
|
|
1692
|
+
/** Status of the audit relation to filter on */
|
|
1563
1693
|
export declare enum ContentAuditRelationStatus {
|
|
1564
1694
|
Pending = "pending",
|
|
1565
1695
|
Rejected = "rejected"
|
|
@@ -1569,9 +1699,7 @@ export interface ContentAuditRelationStatusUpdate {
|
|
|
1569
1699
|
status: ContentAuditRelationStatus;
|
|
1570
1700
|
}
|
|
1571
1701
|
export declare type ContentAuditSource = ContentAuditSourceSection;
|
|
1572
|
-
/**
|
|
1573
|
-
* A GitBook section source
|
|
1574
|
-
*/
|
|
1702
|
+
/** A GitBook section source */
|
|
1575
1703
|
export interface ContentAuditSourceSection {
|
|
1576
1704
|
id: string;
|
|
1577
1705
|
type: 'section';
|
|
@@ -1586,13 +1714,21 @@ export interface ChangeRequest {
|
|
|
1586
1714
|
/** Incremental identifier of the change request */
|
|
1587
1715
|
number: number;
|
|
1588
1716
|
status: ChangeRequestStatus;
|
|
1589
|
-
/**
|
|
1717
|
+
/**
|
|
1718
|
+
* Subject of the change request
|
|
1719
|
+
* @minLength 0
|
|
1720
|
+
* @maxLength 100
|
|
1721
|
+
*/
|
|
1590
1722
|
subject: string;
|
|
1591
1723
|
createdBy: User;
|
|
1592
1724
|
createdAt: Date;
|
|
1593
1725
|
updatedAt: Date;
|
|
1594
1726
|
/** URLs associated with the object */
|
|
1595
1727
|
urls: {
|
|
1728
|
+
/**
|
|
1729
|
+
* URL of the space in the application
|
|
1730
|
+
* @format uri
|
|
1731
|
+
*/
|
|
1596
1732
|
app: string;
|
|
1597
1733
|
};
|
|
1598
1734
|
}
|
|
@@ -1619,23 +1755,26 @@ export interface ChangeRequestReview {
|
|
|
1619
1755
|
createdAt: Date;
|
|
1620
1756
|
updatedAt: Date;
|
|
1621
1757
|
}
|
|
1622
|
-
/**
|
|
1623
|
-
* Status of a change request review.
|
|
1624
|
-
*/
|
|
1758
|
+
/** Status of a change request review. */
|
|
1625
1759
|
export declare enum ChangeRequestReviewStatus {
|
|
1626
1760
|
ChangesRequested = "changes-requested",
|
|
1627
1761
|
Approved = "approved"
|
|
1628
1762
|
}
|
|
1629
1763
|
export declare type ChangeRequestRequestedReviewer = {
|
|
1764
|
+
/** Type of Object, always equals to "change-request-requested-reviewer" */
|
|
1630
1765
|
object: 'change-request-requested-reviewer';
|
|
1766
|
+
/** The revision of the content when the request was made. */
|
|
1631
1767
|
revision: string;
|
|
1768
|
+
/** The user who made the request. */
|
|
1632
1769
|
requestedBy: User;
|
|
1633
1770
|
createdAt: Date;
|
|
1634
1771
|
} & ({
|
|
1635
1772
|
kind: 'user';
|
|
1773
|
+
/** The user who was requested to review. */
|
|
1636
1774
|
user: User;
|
|
1637
1775
|
} | {
|
|
1638
1776
|
kind: 'team';
|
|
1777
|
+
/** The team who was requested to review. */
|
|
1639
1778
|
team: Team;
|
|
1640
1779
|
});
|
|
1641
1780
|
export interface UpdateCommentSchema {
|
|
@@ -1668,9 +1807,7 @@ export interface PostCommentReplySchema {
|
|
|
1668
1807
|
/** The content of the comment. */
|
|
1669
1808
|
body: Document;
|
|
1670
1809
|
}
|
|
1671
|
-
/**
|
|
1672
|
-
* Permission of a user in a content.
|
|
1673
|
-
*/
|
|
1810
|
+
/** Permission of a user in a content. */
|
|
1674
1811
|
export interface UserContentPermission {
|
|
1675
1812
|
/**
|
|
1676
1813
|
* "The role of a member in an organization.
|
|
@@ -1680,14 +1817,11 @@ export interface UserContentPermission {
|
|
|
1680
1817
|
* "edit": Can edit the content (live or change requests).
|
|
1681
1818
|
* "comment": Can access the content and its discussions.
|
|
1682
1819
|
* "read": Can access the content, but cannot update it in any way.
|
|
1683
|
-
*
|
|
1684
1820
|
*/
|
|
1685
1821
|
permission: MemberRole;
|
|
1686
1822
|
user: User;
|
|
1687
1823
|
}
|
|
1688
|
-
/**
|
|
1689
|
-
* Permission of a member in a content.
|
|
1690
|
-
*/
|
|
1824
|
+
/** Permission of a member in a content. */
|
|
1691
1825
|
export interface MemberContentPermission {
|
|
1692
1826
|
/**
|
|
1693
1827
|
* "The role of a member in an organization.
|
|
@@ -1697,22 +1831,17 @@ export interface MemberContentPermission {
|
|
|
1697
1831
|
* "edit": Can edit the content (live or change requests).
|
|
1698
1832
|
* "comment": Can access the content and its discussions.
|
|
1699
1833
|
* "read": Can access the content, but cannot update it in any way.
|
|
1700
|
-
*
|
|
1701
1834
|
*/
|
|
1702
1835
|
permission: MemberRole;
|
|
1703
1836
|
space: Space;
|
|
1704
1837
|
}
|
|
1705
|
-
/**
|
|
1706
|
-
* Search result representing a space.
|
|
1707
|
-
*/
|
|
1838
|
+
/** Search result representing a space. */
|
|
1708
1839
|
export interface SearchSpaceResult {
|
|
1709
1840
|
id: string;
|
|
1710
1841
|
title: string;
|
|
1711
1842
|
pages: SearchPageResult[];
|
|
1712
1843
|
}
|
|
1713
|
-
/**
|
|
1714
|
-
* Search result representing a page in a space.
|
|
1715
|
-
*/
|
|
1844
|
+
/** Search result representing a page in a space. */
|
|
1716
1845
|
export interface SearchPageResult {
|
|
1717
1846
|
id: string;
|
|
1718
1847
|
title: string;
|
|
@@ -1720,12 +1849,14 @@ export interface SearchPageResult {
|
|
|
1720
1849
|
sections?: SearchSectionResult[];
|
|
1721
1850
|
/** URLs associated with the object */
|
|
1722
1851
|
urls: {
|
|
1852
|
+
/**
|
|
1853
|
+
* URL of the page in the application
|
|
1854
|
+
* @format uri
|
|
1855
|
+
*/
|
|
1723
1856
|
app: string;
|
|
1724
1857
|
};
|
|
1725
1858
|
}
|
|
1726
|
-
/**
|
|
1727
|
-
* Search result representing a section in a page.
|
|
1728
|
-
*/
|
|
1859
|
+
/** Search result representing a section in a page. */
|
|
1729
1860
|
export interface SearchSectionResult {
|
|
1730
1861
|
id: string;
|
|
1731
1862
|
title: string;
|
|
@@ -1733,22 +1864,31 @@ export interface SearchSectionResult {
|
|
|
1733
1864
|
body: string;
|
|
1734
1865
|
/** URLs associated with the object */
|
|
1735
1866
|
urls: {
|
|
1867
|
+
/**
|
|
1868
|
+
* URL of the section in the application
|
|
1869
|
+
* @format uri
|
|
1870
|
+
*/
|
|
1736
1871
|
app: string;
|
|
1737
1872
|
};
|
|
1738
1873
|
}
|
|
1739
1874
|
export interface SearchAIQuery {
|
|
1740
1875
|
query: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* @deprecated
|
|
1878
|
+
* @maxItems 10
|
|
1879
|
+
*/
|
|
1741
1880
|
previousQueries?: string[];
|
|
1742
1881
|
}
|
|
1743
|
-
/**
|
|
1744
|
-
* Answer from AI for a question asked on a content.
|
|
1745
|
-
*/
|
|
1882
|
+
/** Answer from AI for a question asked on a content. */
|
|
1746
1883
|
export interface SearchAIAnswer {
|
|
1747
1884
|
text: string;
|
|
1748
1885
|
followupQuestions: string[];
|
|
1749
1886
|
/** The sources used to generate the answer. */
|
|
1750
1887
|
sources: SearchAIAnswerSource[];
|
|
1751
|
-
/**
|
|
1888
|
+
/**
|
|
1889
|
+
* The pages used to generate the answer. Deprecated - use sources instead.
|
|
1890
|
+
* @deprecated
|
|
1891
|
+
*/
|
|
1752
1892
|
pages: {
|
|
1753
1893
|
page: string;
|
|
1754
1894
|
revision: string;
|
|
@@ -1766,17 +1906,20 @@ export declare type SearchAIAnswerSource = {
|
|
|
1766
1906
|
sections: string[];
|
|
1767
1907
|
} | {
|
|
1768
1908
|
type: 'entity';
|
|
1909
|
+
/** ID of the entity */
|
|
1769
1910
|
entityId: string;
|
|
1911
|
+
/** Type of an entity */
|
|
1770
1912
|
entityType: EntityType;
|
|
1913
|
+
/** The name of the integration that manages this entity. If undefined, this entity is not managed by an integration. */
|
|
1771
1914
|
integration?: string;
|
|
1772
1915
|
} | {
|
|
1773
1916
|
type: 'capture';
|
|
1917
|
+
/** ID of the capture */
|
|
1774
1918
|
captureId: string;
|
|
1919
|
+
/** Source of the capture */
|
|
1775
1920
|
source: string;
|
|
1776
1921
|
});
|
|
1777
|
-
/**
|
|
1778
|
-
* Questions recommended by the AI for the given content.
|
|
1779
|
-
*/
|
|
1922
|
+
/** Questions recommended by the AI for the given content. */
|
|
1780
1923
|
export interface SearchAIRecommendedQuestions {
|
|
1781
1924
|
questions: string[];
|
|
1782
1925
|
}
|
|
@@ -1785,9 +1928,7 @@ export declare enum AnalyticsSearchPeriod {
|
|
|
1785
1928
|
LastWeek = "last_week",
|
|
1786
1929
|
LastYear = "last_year"
|
|
1787
1930
|
}
|
|
1788
|
-
/**
|
|
1789
|
-
* Analytics entry for a search query.
|
|
1790
|
-
*/
|
|
1931
|
+
/** Analytics entry for a search query. */
|
|
1791
1932
|
export interface AnalyticsSearchQuery {
|
|
1792
1933
|
query: string;
|
|
1793
1934
|
/** Number of searches done by users. */
|
|
@@ -1799,9 +1940,7 @@ export interface AnalyticsSearchQuery {
|
|
|
1799
1940
|
/** Number of sections matching this search. */
|
|
1800
1941
|
sectionHits: number;
|
|
1801
1942
|
}
|
|
1802
|
-
/**
|
|
1803
|
-
* Top search queries for a content.
|
|
1804
|
-
*/
|
|
1943
|
+
/** Top search queries for a content. */
|
|
1805
1944
|
export interface AnalyticsTopSearches {
|
|
1806
1945
|
/** Number of searches done by users. */
|
|
1807
1946
|
searches: number;
|
|
@@ -1825,20 +1964,28 @@ export interface AnalyticsTrafficPageViews {
|
|
|
1825
1964
|
export interface AnalyticsContentPages {
|
|
1826
1965
|
pages: AnalyticsContentPage[];
|
|
1827
1966
|
}
|
|
1828
|
-
/**
|
|
1829
|
-
* Page entry in the content analytics.
|
|
1830
|
-
*/
|
|
1967
|
+
/** Page entry in the content analytics. */
|
|
1831
1968
|
export interface AnalyticsContentPage {
|
|
1832
1969
|
page: string;
|
|
1833
1970
|
title: string;
|
|
1834
1971
|
pageViews: number;
|
|
1835
1972
|
feedbacks?: {
|
|
1973
|
+
/** Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad'). */
|
|
1836
1974
|
score: number;
|
|
1975
|
+
/** Total number of ratings done by end users. */
|
|
1837
1976
|
total: number;
|
|
1977
|
+
/**
|
|
1978
|
+
* Summary of the rating based on the score ('good', 'ok', or 'bad')
|
|
1979
|
+
* @deprecated
|
|
1980
|
+
*/
|
|
1838
1981
|
rating: string;
|
|
1982
|
+
/** Score multiplied by the number of ratings to give more importance to highly rated content. */
|
|
1839
1983
|
ponderedScore: number;
|
|
1984
|
+
/** Number of 'bad' ratings. */
|
|
1840
1985
|
bad: number;
|
|
1986
|
+
/** Number of 'ok' ratings. */
|
|
1841
1987
|
ok: number;
|
|
1988
|
+
/** Number of 'good' ratings. */
|
|
1842
1989
|
good: number;
|
|
1843
1990
|
};
|
|
1844
1991
|
}
|
|
@@ -1847,7 +1994,11 @@ export interface Collection {
|
|
|
1847
1994
|
object: 'collection';
|
|
1848
1995
|
/** Unique identifier for the collection */
|
|
1849
1996
|
id: string;
|
|
1850
|
-
/**
|
|
1997
|
+
/**
|
|
1998
|
+
* Title of the collection
|
|
1999
|
+
* @minLength 0
|
|
2000
|
+
* @maxLength 50
|
|
2001
|
+
*/
|
|
1851
2002
|
title: string;
|
|
1852
2003
|
/** Path in the published URL */
|
|
1853
2004
|
path?: string;
|
|
@@ -1859,7 +2010,6 @@ export interface Collection {
|
|
|
1859
2010
|
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
1860
2011
|
* Only available for spaces in a collection.
|
|
1861
2012
|
* * `private`: Authorized members can access the content.
|
|
1862
|
-
*
|
|
1863
2013
|
*/
|
|
1864
2014
|
visibility: ContentVisibility;
|
|
1865
2015
|
publishingType?: 'variants';
|
|
@@ -1867,11 +2017,22 @@ export interface Collection {
|
|
|
1867
2017
|
organization: string;
|
|
1868
2018
|
/** ID of the parent collection, if any */
|
|
1869
2019
|
parent?: string;
|
|
1870
|
-
/**
|
|
2020
|
+
/**
|
|
2021
|
+
* ID of the parent collection, if any
|
|
2022
|
+
* @deprecated
|
|
2023
|
+
*/
|
|
1871
2024
|
collection?: string;
|
|
1872
2025
|
/** URLs associated with the object */
|
|
1873
2026
|
urls: {
|
|
2027
|
+
/**
|
|
2028
|
+
* URL of the collection in the API
|
|
2029
|
+
* @format uri
|
|
2030
|
+
*/
|
|
1874
2031
|
location: string;
|
|
2032
|
+
/**
|
|
2033
|
+
* URL of the collection in the application
|
|
2034
|
+
* @format uri
|
|
2035
|
+
*/
|
|
1875
2036
|
app: string;
|
|
1876
2037
|
};
|
|
1877
2038
|
}
|
|
@@ -1887,7 +2048,10 @@ export interface Integration {
|
|
|
1887
2048
|
description?: IntegrationDescription;
|
|
1888
2049
|
/** Long form markdown summary of the integration */
|
|
1889
2050
|
summary?: IntegrationSummary;
|
|
1890
|
-
/**
|
|
2051
|
+
/**
|
|
2052
|
+
* URLs of images to showcase the integration
|
|
2053
|
+
* @maxItems 3
|
|
2054
|
+
*/
|
|
1891
2055
|
previewImages: string[];
|
|
1892
2056
|
target: IntegrationTarget;
|
|
1893
2057
|
/** If true, the integration has been verified by the GitBook team */
|
|
@@ -1905,10 +2069,30 @@ export interface Integration {
|
|
|
1905
2069
|
owner: Organization;
|
|
1906
2070
|
/** URLs associated with the object */
|
|
1907
2071
|
urls: {
|
|
2072
|
+
/**
|
|
2073
|
+
* URL of the integration in the API
|
|
2074
|
+
* @format uri
|
|
2075
|
+
*/
|
|
1908
2076
|
location: string;
|
|
2077
|
+
/**
|
|
2078
|
+
* URL of the icon associated to the integration
|
|
2079
|
+
* @format uri
|
|
2080
|
+
*/
|
|
1909
2081
|
icon?: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* URL of the integration in the application
|
|
2084
|
+
* @format uri
|
|
2085
|
+
*/
|
|
1910
2086
|
app: string;
|
|
2087
|
+
/**
|
|
2088
|
+
* URL of the integration's assets.
|
|
2089
|
+
* @format uri
|
|
2090
|
+
*/
|
|
1911
2091
|
assets: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* Public HTTP endpoint for the integration
|
|
2094
|
+
* @format uri
|
|
2095
|
+
*/
|
|
1912
2096
|
publicEndpoint: string;
|
|
1913
2097
|
};
|
|
1914
2098
|
/** The set of permissions for the integration */
|
|
@@ -1918,25 +2102,26 @@ export interface Integration {
|
|
|
1918
2102
|
/**
|
|
1919
2103
|
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
1920
2104
|
* headers when processing the script fetch event and the blocks fetch events.
|
|
1921
|
-
*
|
|
1922
2105
|
*/
|
|
1923
2106
|
contentSecurityPolicy?: IntegrationContentSecurityPolicy;
|
|
1924
2107
|
}
|
|
1925
2108
|
/**
|
|
1926
2109
|
* Title of the integration
|
|
2110
|
+
* @minLength 2
|
|
2111
|
+
* @maxLength 30
|
|
1927
2112
|
*/
|
|
1928
2113
|
export declare type IntegrationTitle = string;
|
|
1929
2114
|
/**
|
|
1930
2115
|
* Description of the integration
|
|
2116
|
+
* @maxLength 100
|
|
1931
2117
|
*/
|
|
1932
2118
|
export declare type IntegrationDescription = string;
|
|
1933
2119
|
/**
|
|
1934
2120
|
* Long form markdown summary of the integration
|
|
2121
|
+
* @maxLength 2048
|
|
1935
2122
|
*/
|
|
1936
2123
|
export declare type IntegrationSummary = string;
|
|
1937
|
-
/**
|
|
1938
|
-
* Permissions that should be granted to the integration
|
|
1939
|
-
*/
|
|
2124
|
+
/** Permissions that should be granted to the integration */
|
|
1940
2125
|
export declare type IntegrationScopes = IntegrationScope[];
|
|
1941
2126
|
export declare enum IntegrationScope {
|
|
1942
2127
|
EntitiesWrite = "entities:write",
|
|
@@ -1951,27 +2136,31 @@ export declare enum IntegrationScope {
|
|
|
1951
2136
|
SpaceScriptCookies = "space:script:cookies",
|
|
1952
2137
|
SpaceGitSync = "space:git:sync"
|
|
1953
2138
|
}
|
|
1954
|
-
/**
|
|
1955
|
-
* Categories for which the integration is listed in the marketplace
|
|
1956
|
-
*/
|
|
2139
|
+
/** Categories for which the integration is listed in the marketplace */
|
|
1957
2140
|
export declare type IntegrationCategories = IntegrationCategory[];
|
|
1958
|
-
/**
|
|
1959
|
-
* Format the custom block as a codeblock
|
|
1960
|
-
*/
|
|
2141
|
+
/** Format the custom block as a codeblock */
|
|
1961
2142
|
export declare type IntegrationBlockMarkdown = {
|
|
2143
|
+
/** Code block syntax to use to identify the block. */
|
|
1962
2144
|
codeblock: string;
|
|
2145
|
+
/** Key of the property to use as body of the codeblock. */
|
|
1963
2146
|
body: string;
|
|
1964
2147
|
};
|
|
1965
|
-
/**
|
|
1966
|
-
* Custom blocks defined by this integration.
|
|
1967
|
-
*/
|
|
2148
|
+
/** Custom blocks defined by this integration. */
|
|
1968
2149
|
export declare type IntegrationBlocks = IntegrationBlock[];
|
|
1969
2150
|
export interface IntegrationBlock {
|
|
1970
2151
|
/** Unique ID in the integration for the block. It also represents the UI component used. */
|
|
1971
2152
|
id: string;
|
|
1972
|
-
/**
|
|
2153
|
+
/**
|
|
2154
|
+
* Short descriptive title for the block.
|
|
2155
|
+
* @minLength 2
|
|
2156
|
+
* @maxLength 40
|
|
2157
|
+
*/
|
|
1973
2158
|
title: string;
|
|
1974
|
-
/**
|
|
2159
|
+
/**
|
|
2160
|
+
* Long descriptive text for the block.
|
|
2161
|
+
* @minLength 0
|
|
2162
|
+
* @maxLength 150
|
|
2163
|
+
*/
|
|
1975
2164
|
description?: string;
|
|
1976
2165
|
/** URL of the icon to represent this block. */
|
|
1977
2166
|
icon?: string;
|
|
@@ -1982,6 +2171,7 @@ export interface IntegrationBlock {
|
|
|
1982
2171
|
}
|
|
1983
2172
|
/**
|
|
1984
2173
|
* External urls configured by the developer of the integration
|
|
2174
|
+
* @maxItems 5
|
|
1985
2175
|
*/
|
|
1986
2176
|
export declare type IntegrationExternalLinks = {
|
|
1987
2177
|
url: URL;
|
|
@@ -2010,9 +2200,7 @@ export interface IntegrationEventLog {
|
|
|
2010
2200
|
export interface IntegrationEventTrace {
|
|
2011
2201
|
logs: IntegrationEventLog[];
|
|
2012
2202
|
}
|
|
2013
|
-
/**
|
|
2014
|
-
* Describe whether all spaces have been selected or there's a selection involved
|
|
2015
|
-
*/
|
|
2203
|
+
/** Describe whether all spaces have been selected or there's a selection involved */
|
|
2016
2204
|
export declare enum IntegrationInstallationSpaceSelection {
|
|
2017
2205
|
All = "all",
|
|
2018
2206
|
Selected = "selected"
|
|
@@ -2031,12 +2219,12 @@ export interface IntegrationConfigurations {
|
|
|
2031
2219
|
space?: IntegrationConfiguration;
|
|
2032
2220
|
}
|
|
2033
2221
|
export declare type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
|
|
2034
|
-
/**
|
|
2035
|
-
* Schema for a configuration
|
|
2036
|
-
*/
|
|
2222
|
+
/** Schema for a configuration */
|
|
2037
2223
|
export interface IntegrationConfigurationSchema {
|
|
2038
2224
|
properties: Record<string, {
|
|
2225
|
+
/** @maxLength 30 */
|
|
2039
2226
|
title?: string;
|
|
2227
|
+
/** @maxLength 100 */
|
|
2040
2228
|
description?: string;
|
|
2041
2229
|
} & ({
|
|
2042
2230
|
type: 'string';
|
|
@@ -2052,11 +2240,10 @@ export interface IntegrationConfigurationSchema {
|
|
|
2052
2240
|
callback_url: string;
|
|
2053
2241
|
button_text: string;
|
|
2054
2242
|
})>;
|
|
2243
|
+
/** @uniqueItems true */
|
|
2055
2244
|
required?: string[];
|
|
2056
2245
|
}
|
|
2057
|
-
/**
|
|
2058
|
-
* ContentKit component for configuration
|
|
2059
|
-
*/
|
|
2246
|
+
/** ContentKit component for configuration */
|
|
2060
2247
|
export interface IntegrationConfigurationComponent {
|
|
2061
2248
|
/** ID of the ContentKit component defined in the integration */
|
|
2062
2249
|
componentId: string;
|
|
@@ -2066,9 +2253,7 @@ export declare enum IntegrationVisibility {
|
|
|
2066
2253
|
Private = "private",
|
|
2067
2254
|
Unlisted = "unlisted"
|
|
2068
2255
|
}
|
|
2069
|
-
/**
|
|
2070
|
-
* Installation of an integration on an account
|
|
2071
|
-
*/
|
|
2256
|
+
/** Installation of an integration on an account */
|
|
2072
2257
|
export interface IntegrationInstallation {
|
|
2073
2258
|
id: string;
|
|
2074
2259
|
status: IntegrationInstallationStatus;
|
|
@@ -2082,8 +2267,20 @@ export interface IntegrationInstallation {
|
|
|
2082
2267
|
updatedAt: Date;
|
|
2083
2268
|
/** URLs associated with the object */
|
|
2084
2269
|
urls: {
|
|
2270
|
+
/**
|
|
2271
|
+
* URL of the installation in the API
|
|
2272
|
+
* @format uri
|
|
2273
|
+
*/
|
|
2085
2274
|
location: string;
|
|
2275
|
+
/**
|
|
2276
|
+
* URL of the integration's installation in the application
|
|
2277
|
+
* @format uri
|
|
2278
|
+
*/
|
|
2086
2279
|
app: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* Public HTTP endpoint for the integration's installation
|
|
2282
|
+
* @format uri
|
|
2283
|
+
*/
|
|
2087
2284
|
publicEndpoint: string;
|
|
2088
2285
|
};
|
|
2089
2286
|
/** External IDs assigned by the integration. */
|
|
@@ -2091,9 +2288,7 @@ export interface IntegrationInstallation {
|
|
|
2091
2288
|
/** Target of the integration installation */
|
|
2092
2289
|
target: IntegrationInstallationTarget;
|
|
2093
2290
|
}
|
|
2094
|
-
/**
|
|
2095
|
-
* Installation of an integration at a space level
|
|
2096
|
-
*/
|
|
2291
|
+
/** Installation of an integration at a space level */
|
|
2097
2292
|
export interface IntegrationSpaceInstallation {
|
|
2098
2293
|
/** Unique name identifier of the integration */
|
|
2099
2294
|
integration: string;
|
|
@@ -2108,7 +2303,15 @@ export interface IntegrationSpaceInstallation {
|
|
|
2108
2303
|
externalIds: IntegrationInstallationExternalIds;
|
|
2109
2304
|
/** URLs associated with the object */
|
|
2110
2305
|
urls: {
|
|
2306
|
+
/**
|
|
2307
|
+
* URL of the integration's space installation in the API
|
|
2308
|
+
* @format uri
|
|
2309
|
+
*/
|
|
2111
2310
|
location: string;
|
|
2311
|
+
/**
|
|
2312
|
+
* Public HTTP endpoint for the integration's space installation
|
|
2313
|
+
* @format uri
|
|
2314
|
+
*/
|
|
2112
2315
|
publicEndpoint: string;
|
|
2113
2316
|
};
|
|
2114
2317
|
}
|
|
@@ -2117,15 +2320,14 @@ export declare enum IntegrationInstallationStatus {
|
|
|
2117
2320
|
Pending = "pending",
|
|
2118
2321
|
Paused = "paused"
|
|
2119
2322
|
}
|
|
2120
|
-
/**
|
|
2121
|
-
* Secrets stored on the integration and passed at runtime.
|
|
2122
|
-
*/
|
|
2323
|
+
/** Secrets stored on the integration and passed at runtime. */
|
|
2123
2324
|
export declare type IntegrationSecrets = Record<string, string>;
|
|
2124
|
-
/**
|
|
2125
|
-
* Runtime environment provided during the execution of integration's code.
|
|
2126
|
-
*/
|
|
2325
|
+
/** Runtime environment provided during the execution of integration's code. */
|
|
2127
2326
|
export interface IntegrationEnvironment {
|
|
2128
|
-
/**
|
|
2327
|
+
/**
|
|
2328
|
+
* Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration.
|
|
2329
|
+
* @deprecated
|
|
2330
|
+
*/
|
|
2129
2331
|
authToken?: string;
|
|
2130
2332
|
integration: Integration;
|
|
2131
2333
|
/** Installation of an integration on an account */
|
|
@@ -2139,7 +2341,9 @@ export interface IntegrationEnvironment {
|
|
|
2139
2341
|
/** URL of the HTTP API */
|
|
2140
2342
|
apiEndpoint: string;
|
|
2141
2343
|
apiTokens: {
|
|
2344
|
+
/** API authentication token representing the integration. */
|
|
2142
2345
|
integration: string;
|
|
2346
|
+
/** API authentication token representing the current installation. */
|
|
2143
2347
|
installation?: string;
|
|
2144
2348
|
};
|
|
2145
2349
|
}
|
|
@@ -2148,18 +2352,17 @@ export declare enum IntegrationTarget {
|
|
|
2148
2352
|
All = "all"
|
|
2149
2353
|
}
|
|
2150
2354
|
export declare type IntegrationInstallationTarget = OrganizationTarget;
|
|
2151
|
-
/**
|
|
2152
|
-
* Configuration of the integration at the account level
|
|
2153
|
-
*/
|
|
2355
|
+
/** Configuration of the integration at the account level */
|
|
2154
2356
|
export declare type IntegrationInstallationConfiguration = Record<string, any>;
|
|
2155
2357
|
/**
|
|
2156
2358
|
* External IDs assigned by the integration.
|
|
2359
|
+
* @maxItems 5
|
|
2157
2360
|
*/
|
|
2158
2361
|
export declare type IntegrationInstallationExternalIds = string[];
|
|
2159
2362
|
/**
|
|
2160
|
-
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
2161
|
-
headers when processing the script fetch event and the blocks fetch events.
|
|
2162
|
-
*/
|
|
2363
|
+
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
2364
|
+
* headers when processing the script fetch event and the blocks fetch events.
|
|
2365
|
+
*/
|
|
2163
2366
|
export declare type IntegrationContentSecurityPolicy = string | {
|
|
2164
2367
|
'base-uri'?: string;
|
|
2165
2368
|
'block-all-mixed-content'?: string;
|
|
@@ -2194,12 +2397,11 @@ export declare type IntegrationContentSecurityPolicy = string | {
|
|
|
2194
2397
|
'worker-src'?: string;
|
|
2195
2398
|
};
|
|
2196
2399
|
export declare type SpaceIntegrationBlocks = {
|
|
2400
|
+
/** Unique named identifier for the integration */
|
|
2197
2401
|
name: string;
|
|
2198
2402
|
blocks: IntegrationBlock[];
|
|
2199
2403
|
}[];
|
|
2200
|
-
/**
|
|
2201
|
-
* Entity to create or update in an integration's installation.
|
|
2202
|
-
*/
|
|
2404
|
+
/** Entity to create or update in an integration's installation. */
|
|
2203
2405
|
export interface UpsertEntity {
|
|
2204
2406
|
/** Unique ID of the entity in the context of the integration's entity type */
|
|
2205
2407
|
entityId: EntityId;
|
|
@@ -2208,29 +2410,41 @@ export interface UpsertEntity {
|
|
|
2208
2410
|
entityId: string;
|
|
2209
2411
|
}>;
|
|
2210
2412
|
}
|
|
2211
|
-
/**
|
|
2212
|
-
* Entity created and managed by an integration, representing an external element.
|
|
2213
|
-
*/
|
|
2413
|
+
/** Entity created and managed by an integration, representing an external element. */
|
|
2214
2414
|
export declare type Entity = UpsertEntity & {
|
|
2415
|
+
/** Unique ID for the entity in GitBook */
|
|
2215
2416
|
id: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* Type of an entity. Deprecated, use entityType.
|
|
2419
|
+
* @deprecated
|
|
2420
|
+
*/
|
|
2216
2421
|
type: EntityType;
|
|
2422
|
+
/** Type of an entity */
|
|
2217
2423
|
entityType: EntityType;
|
|
2424
|
+
/** URLs associated with the object */
|
|
2218
2425
|
urls: {
|
|
2426
|
+
/**
|
|
2427
|
+
* URL of the entity in the API
|
|
2428
|
+
* @format uri
|
|
2429
|
+
*/
|
|
2219
2430
|
location: string;
|
|
2220
2431
|
};
|
|
2221
2432
|
};
|
|
2222
2433
|
/**
|
|
2223
2434
|
* Type of an entity
|
|
2435
|
+
* @minLength 1
|
|
2436
|
+
* @maxLength 64
|
|
2224
2437
|
*/
|
|
2225
2438
|
export declare type EntityType = string;
|
|
2226
2439
|
/**
|
|
2227
2440
|
* Unique ID of the entity in the context of the integration's entity type
|
|
2441
|
+
* @minLength 1
|
|
2442
|
+
* @maxLength 256
|
|
2228
2443
|
*/
|
|
2229
2444
|
export declare type EntityId = string;
|
|
2445
|
+
/** @maxLength 50 */
|
|
2230
2446
|
export declare type EntitySchemaTitle = string;
|
|
2231
|
-
/**
|
|
2232
|
-
* Schema for a type of entities
|
|
2233
|
-
*/
|
|
2447
|
+
/** Schema for a type of entities */
|
|
2234
2448
|
export interface EntityRawSchema {
|
|
2235
2449
|
/** Type of an entity */
|
|
2236
2450
|
type: EntityType;
|
|
@@ -2243,16 +2457,27 @@ export interface EntityRawSchema {
|
|
|
2243
2457
|
properties: EntityPropertySchema[];
|
|
2244
2458
|
}
|
|
2245
2459
|
export declare type EntitySchema = EntityRawSchema & {
|
|
2460
|
+
/** Count of entities created in this schema. */
|
|
2246
2461
|
entities: number;
|
|
2462
|
+
/** Integration managing this schema. */
|
|
2247
2463
|
integration?: Integration;
|
|
2464
|
+
/** URLs associated with the object */
|
|
2248
2465
|
urls: {
|
|
2466
|
+
/**
|
|
2467
|
+
* URL of the entity schema in the API
|
|
2468
|
+
* @format uri
|
|
2469
|
+
*/
|
|
2249
2470
|
location: string;
|
|
2250
2471
|
};
|
|
2251
2472
|
};
|
|
2252
2473
|
export declare type EntityPropertySchema = {
|
|
2474
|
+
/** Name of the property in the object */
|
|
2253
2475
|
name: string;
|
|
2476
|
+
/** Title displayed to the users */
|
|
2254
2477
|
title: string;
|
|
2478
|
+
/** Description of the property */
|
|
2255
2479
|
description?: string;
|
|
2480
|
+
/** If true, the property is no longer required and not taken into consideration */
|
|
2256
2481
|
deprecated?: boolean;
|
|
2257
2482
|
} & ({
|
|
2258
2483
|
type: 'text';
|
|
@@ -2280,110 +2505,126 @@ export declare type EntityPropertySchema = {
|
|
|
2280
2505
|
} | {
|
|
2281
2506
|
type: 'relation';
|
|
2282
2507
|
entity: {
|
|
2508
|
+
/** Type of an entity */
|
|
2283
2509
|
type: EntityType;
|
|
2284
2510
|
};
|
|
2285
2511
|
});
|
|
2286
|
-
/**
|
|
2287
|
-
* Any event that can be received from GitBook.
|
|
2288
|
-
*/
|
|
2512
|
+
/** Any event that can be received from GitBook. */
|
|
2289
2513
|
export declare type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SpaceViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | UIRenderEvent;
|
|
2290
|
-
/**
|
|
2291
|
-
* Common properties for all events.
|
|
2292
|
-
*/
|
|
2514
|
+
/** Common properties for all events. */
|
|
2293
2515
|
export interface BaseEvent {
|
|
2294
2516
|
/** Unique identifier for the event. */
|
|
2295
2517
|
eventId: string;
|
|
2296
2518
|
/** Type of the event. */
|
|
2297
2519
|
type: string;
|
|
2298
2520
|
}
|
|
2299
|
-
/**
|
|
2300
|
-
* Common properties for all events related to an installation
|
|
2301
|
-
*/
|
|
2521
|
+
/** Common properties for all events related to an installation */
|
|
2302
2522
|
export declare type InstallationEvent = BaseEvent & {
|
|
2523
|
+
/** ID of the integration installation */
|
|
2303
2524
|
installationId: string;
|
|
2304
2525
|
};
|
|
2305
|
-
/**
|
|
2306
|
-
* Common properties for all events related to a specific space.
|
|
2307
|
-
*/
|
|
2526
|
+
/** Common properties for all events related to a specific space. */
|
|
2308
2527
|
export declare type SpaceEvent = InstallationEvent & {
|
|
2528
|
+
/** ID of the space */
|
|
2309
2529
|
spaceId: string;
|
|
2310
2530
|
};
|
|
2311
|
-
/**
|
|
2312
|
-
* Event received when integration has been installed or updated.
|
|
2313
|
-
*/
|
|
2531
|
+
/** Event received when integration has been installed or updated. */
|
|
2314
2532
|
export declare type InstallationSetupEvent = InstallationEvent & {
|
|
2315
2533
|
type: 'installation_setup';
|
|
2316
2534
|
status: IntegrationInstallationStatus;
|
|
2535
|
+
/** The state of the installation at the account level before it was updated. */
|
|
2317
2536
|
previous?: {
|
|
2318
2537
|
status: IntegrationInstallationStatus;
|
|
2538
|
+
/** The previous configuration of the installation at the account level. */
|
|
2319
2539
|
configuration?: object;
|
|
2320
2540
|
};
|
|
2321
2541
|
};
|
|
2322
|
-
/**
|
|
2323
|
-
* Event received when integration has been installed or updated on a space.
|
|
2324
|
-
*/
|
|
2542
|
+
/** Event received when integration has been installed or updated on a space. */
|
|
2325
2543
|
export declare type SpaceInstallationSetupEvent = SpaceEvent & {
|
|
2326
2544
|
type: 'space_installation_setup';
|
|
2327
2545
|
status: IntegrationInstallationStatus;
|
|
2546
|
+
/** The state of the Space installation before it was updated. */
|
|
2328
2547
|
previous?: {
|
|
2329
2548
|
status: IntegrationInstallationStatus;
|
|
2549
|
+
/** The previous configuration of the Space installation. */
|
|
2330
2550
|
configuration?: object;
|
|
2331
2551
|
};
|
|
2332
2552
|
};
|
|
2333
|
-
/**
|
|
2334
|
-
* Event received when integration has been uninstalled from a space.
|
|
2335
|
-
*/
|
|
2553
|
+
/** Event received when integration has been uninstalled from a space. */
|
|
2336
2554
|
export declare type SpaceInstallationDeletedEvent = SpaceEvent & {
|
|
2337
2555
|
type: 'space_installation_deleted';
|
|
2556
|
+
/** The state of the Space installation before it was deleted. */
|
|
2338
2557
|
previous: {
|
|
2558
|
+
/** The previous configuration of the Space installation. */
|
|
2339
2559
|
configuration?: object;
|
|
2340
2560
|
};
|
|
2341
2561
|
};
|
|
2342
|
-
/**
|
|
2343
|
-
* Event received when a page has been visited.
|
|
2344
|
-
*/
|
|
2562
|
+
/** Event received when a page has been visited. */
|
|
2345
2563
|
export declare type SpaceViewEvent = SpaceEvent & {
|
|
2346
2564
|
type: 'space_view';
|
|
2565
|
+
/** Unique identifier of the visited page. */
|
|
2347
2566
|
pageId?: string;
|
|
2567
|
+
/** Analytics info on the GitBook's content visitor. */
|
|
2348
2568
|
visitor: {
|
|
2569
|
+
/** GitBook's unique identifier of the visitor. */
|
|
2349
2570
|
anonymousId: string;
|
|
2571
|
+
/** The visitors cookies. */
|
|
2350
2572
|
cookies: Record<string, string>;
|
|
2573
|
+
/** User-agent of the visitor. */
|
|
2351
2574
|
userAgent: string;
|
|
2575
|
+
/** IP address of the visitor. */
|
|
2352
2576
|
ip: string;
|
|
2353
2577
|
};
|
|
2578
|
+
/** The GitBook content's URL visited (including URL params). */
|
|
2354
2579
|
url: string;
|
|
2580
|
+
/** The URL of referrer that linked to the page. */
|
|
2355
2581
|
referrer: string;
|
|
2356
2582
|
};
|
|
2357
|
-
/**
|
|
2358
|
-
* Event when the primary content of a space has been updated.
|
|
2359
|
-
*/
|
|
2583
|
+
/** Event when the primary content of a space has been updated. */
|
|
2360
2584
|
export declare type SpaceContentUpdatedEvent = SpaceEvent & {
|
|
2361
2585
|
type: 'space_content_updated';
|
|
2586
|
+
/** Unique identifier of the new content revision */
|
|
2362
2587
|
revisionId: string;
|
|
2363
2588
|
};
|
|
2364
|
-
/**
|
|
2365
|
-
* Event when the visibility of the space has been changed.
|
|
2366
|
-
*/
|
|
2589
|
+
/** Event when the visibility of the space has been changed. */
|
|
2367
2590
|
export declare type SpaceVisibilityUpdatedEvent = SpaceEvent & {
|
|
2368
2591
|
type: 'space_visibility_updated';
|
|
2592
|
+
/**
|
|
2593
|
+
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
2594
|
+
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
2595
|
+
* * `share-link`: Anyone with a secret token in the url can access the content.
|
|
2596
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
|
|
2597
|
+
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
2598
|
+
* Only available for spaces in a collection.
|
|
2599
|
+
* * `private`: Authorized members can access the content.
|
|
2600
|
+
*/
|
|
2369
2601
|
previousVisibility: ContentVisibility;
|
|
2602
|
+
/**
|
|
2603
|
+
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
2604
|
+
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
2605
|
+
* * `share-link`: Anyone with a secret token in the url can access the content.
|
|
2606
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
|
|
2607
|
+
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
2608
|
+
* Only available for spaces in a collection.
|
|
2609
|
+
* * `private`: Authorized members can access the content.
|
|
2610
|
+
*/
|
|
2370
2611
|
visibility: ContentVisibility;
|
|
2371
2612
|
};
|
|
2372
|
-
/**
|
|
2373
|
-
* Event when a GitSync operation has been completed.
|
|
2374
|
-
*/
|
|
2613
|
+
/** Event when a GitSync operation has been completed. */
|
|
2375
2614
|
export declare type SpaceGitSyncCompletedEvent = SpaceEvent & {
|
|
2376
2615
|
type: 'space_gitsync_completed';
|
|
2377
2616
|
state: 'success' | 'failure';
|
|
2617
|
+
/** Unique identifier of the new content revision */
|
|
2378
2618
|
revisionId: string;
|
|
2619
|
+
/** Unique identifier for the commit (sha) */
|
|
2379
2620
|
commitId: string;
|
|
2380
2621
|
};
|
|
2381
|
-
/**
|
|
2382
|
-
* Event when a GitSync operation has been started.
|
|
2383
|
-
*/
|
|
2622
|
+
/** Event when a GitSync operation has been started. */
|
|
2384
2623
|
export declare type SpaceGitSyncStartedEvent = SpaceEvent & {
|
|
2385
2624
|
type: 'space_gitsync_started';
|
|
2625
|
+
/** Unique identifier of the new content revision */
|
|
2386
2626
|
revisionId: string;
|
|
2627
|
+
/** Unique identifier for the commit (sha) */
|
|
2387
2628
|
commitId: string;
|
|
2388
2629
|
};
|
|
2389
2630
|
export interface FetchRequest {
|
|
@@ -2391,41 +2632,40 @@ export interface FetchRequest {
|
|
|
2391
2632
|
url: string;
|
|
2392
2633
|
headers: Record<string, string>;
|
|
2393
2634
|
}
|
|
2394
|
-
/**
|
|
2395
|
-
* Event representing an incoming HTTP request.
|
|
2396
|
-
*/
|
|
2635
|
+
/** Event representing an incoming HTTP request. */
|
|
2397
2636
|
export declare type FetchEvent = BaseEvent & {
|
|
2637
|
+
/** The space ID, if requests are specific to a single space */
|
|
2398
2638
|
spaceId?: string;
|
|
2639
|
+
/** The installation ID, if requests are specific to a single installation */
|
|
2399
2640
|
installationId?: string;
|
|
2400
2641
|
auth?: {
|
|
2642
|
+
/** The user's ID. */
|
|
2401
2643
|
userId: string;
|
|
2402
2644
|
};
|
|
2403
2645
|
type: 'fetch';
|
|
2404
2646
|
request: FetchRequest;
|
|
2405
2647
|
};
|
|
2406
|
-
/**
|
|
2407
|
-
* Common properties for all events related to fetching a published script from an installation
|
|
2408
|
-
*/
|
|
2648
|
+
/** Common properties for all events related to fetching a published script from an installation */
|
|
2409
2649
|
export declare type FetchPublishedScriptEvent = SpaceEvent & {
|
|
2410
2650
|
type: 'fetch_published_script';
|
|
2411
2651
|
};
|
|
2412
|
-
/**
|
|
2413
|
-
* Event generated when rendering a UI
|
|
2414
|
-
*/
|
|
2652
|
+
/** Event generated when rendering a UI */
|
|
2415
2653
|
export declare type UIRenderEvent = (SpaceEvent | InstallationEvent) & {
|
|
2416
2654
|
auth?: {
|
|
2655
|
+
/** The user's ID. */
|
|
2417
2656
|
userId: string;
|
|
2418
2657
|
};
|
|
2419
2658
|
type: 'ui_render';
|
|
2420
2659
|
componentId: string;
|
|
2660
|
+
/** Properties to render the UI. */
|
|
2421
2661
|
props: object;
|
|
2662
|
+
/** State of the UI. */
|
|
2422
2663
|
state?: object;
|
|
2664
|
+
/** Object representing the context in which a ContentKit component is rendered. */
|
|
2423
2665
|
context: ContentKitContext;
|
|
2424
2666
|
action?: object;
|
|
2425
2667
|
};
|
|
2426
|
-
/**
|
|
2427
|
-
* Interval for a billing subscription
|
|
2428
|
-
*/
|
|
2668
|
+
/** Interval for a billing subscription */
|
|
2429
2669
|
export declare enum BillingInterval {
|
|
2430
2670
|
Monthly = "monthly",
|
|
2431
2671
|
Yearly = "yearly"
|
|
@@ -2434,9 +2674,7 @@ export interface BillingPortal {
|
|
|
2434
2674
|
/** URL to the billing portal for an organization */
|
|
2435
2675
|
url: string;
|
|
2436
2676
|
}
|
|
2437
|
-
/**
|
|
2438
|
-
* Name of the product
|
|
2439
|
-
*/
|
|
2677
|
+
/** Name of the product */
|
|
2440
2678
|
export declare enum BillingProduct {
|
|
2441
2679
|
Free = "free",
|
|
2442
2680
|
Plus = "plus",
|
|
@@ -2449,6 +2687,7 @@ export declare enum BillingProduct {
|
|
|
2449
2687
|
}
|
|
2450
2688
|
export declare type BillingUpgrade = {
|
|
2451
2689
|
result: 'checkout';
|
|
2690
|
+
/** Stripe payment session ID */
|
|
2452
2691
|
sessionId: string;
|
|
2453
2692
|
} | {
|
|
2454
2693
|
result: 'preview';
|
|
@@ -2481,10 +2720,8 @@ export declare enum APIIntegrationScope {
|
|
|
2481
2720
|
IntegrationInstallationRead = "integration:installation:read",
|
|
2482
2721
|
IntegrationInstallationUpdate = "integration:installation:update"
|
|
2483
2722
|
}
|
|
2484
|
-
export declare type APIScope = IntegrationScope | APIIntegrationScope
|
|
2485
|
-
/**
|
|
2486
|
-
* The Cloudflare Hostname status
|
|
2487
|
-
*/
|
|
2723
|
+
export declare type APIScope = IntegrationScope | APIIntegrationScope;
|
|
2724
|
+
/** The Cloudflare Hostname status */
|
|
2488
2725
|
export declare enum CloudflareHostnameStatus {
|
|
2489
2726
|
Pending = "pending",
|
|
2490
2727
|
Active = "active",
|
|
@@ -2492,17 +2729,13 @@ export declare enum CloudflareHostnameStatus {
|
|
|
2492
2729
|
Moved = "moved",
|
|
2493
2730
|
Deleted = "deleted"
|
|
2494
2731
|
}
|
|
2495
|
-
/**
|
|
2496
|
-
* The Cloudflare Hostname TLS certificate
|
|
2497
|
-
*/
|
|
2732
|
+
/** The Cloudflare Hostname TLS certificate */
|
|
2498
2733
|
export interface CloudflareHostnameTLSCertificate {
|
|
2499
2734
|
issuer?: string;
|
|
2500
2735
|
expiresOn?: string;
|
|
2501
2736
|
issuedOn?: string;
|
|
2502
2737
|
}
|
|
2503
|
-
/**
|
|
2504
|
-
* The Cloudflare Hostname TLS information
|
|
2505
|
-
*/
|
|
2738
|
+
/** The Cloudflare Hostname TLS information */
|
|
2506
2739
|
export interface CloudflareHostnameTLSInfo {
|
|
2507
2740
|
/** The Cloudflare Hostname TLS status */
|
|
2508
2741
|
status: CloudflareHostnameTLSStatus;
|
|
@@ -2512,9 +2745,7 @@ export interface CloudflareHostnameTLSInfo {
|
|
|
2512
2745
|
certificates: CloudflareHostnameTLSCertificate[];
|
|
2513
2746
|
validationErrors: CloudflareHostnameTLSValidationError[];
|
|
2514
2747
|
}
|
|
2515
|
-
/**
|
|
2516
|
-
* The Cloudflare Hostname TLS status
|
|
2517
|
-
*/
|
|
2748
|
+
/** The Cloudflare Hostname TLS status */
|
|
2518
2749
|
export declare enum CloudflareHostnameTLSStatus {
|
|
2519
2750
|
Initializing = "initializing",
|
|
2520
2751
|
PendingValidation = "pending_validation",
|
|
@@ -2525,23 +2756,17 @@ export declare enum CloudflareHostnameTLSStatus {
|
|
|
2525
2756
|
PendingCleanup = "pending_cleanup",
|
|
2526
2757
|
Deleted = "deleted"
|
|
2527
2758
|
}
|
|
2528
|
-
/**
|
|
2529
|
-
* The Cloudflare Hostname TLS validation error
|
|
2530
|
-
*/
|
|
2759
|
+
/** The Cloudflare Hostname TLS validation error */
|
|
2531
2760
|
export interface CloudflareHostnameTLSValidationError {
|
|
2532
2761
|
message: string;
|
|
2533
2762
|
}
|
|
2534
|
-
/**
|
|
2535
|
-
* The Cloudflare Hostname TLS validation method
|
|
2536
|
-
*/
|
|
2763
|
+
/** The Cloudflare Hostname TLS validation method */
|
|
2537
2764
|
export declare enum CloudflareHostnameTLSValidationMethod {
|
|
2538
2765
|
Http = "http",
|
|
2539
2766
|
Txt = "txt",
|
|
2540
2767
|
Email = "email"
|
|
2541
2768
|
}
|
|
2542
|
-
/**
|
|
2543
|
-
* Cloudflare Custom Domain's information
|
|
2544
|
-
*/
|
|
2769
|
+
/** Cloudflare Custom Domain's information */
|
|
2545
2770
|
export interface CustomDomainInfo {
|
|
2546
2771
|
hostname: string;
|
|
2547
2772
|
/** The Cloudflare Hostname status */
|
|
@@ -2551,9 +2776,7 @@ export interface CustomDomainInfo {
|
|
|
2551
2776
|
ssl?: CloudflareHostnameTLSInfo;
|
|
2552
2777
|
verificationErrors: string[];
|
|
2553
2778
|
}
|
|
2554
|
-
/**
|
|
2555
|
-
* The User Firebase Auth Info.
|
|
2556
|
-
*/
|
|
2779
|
+
/** The User Firebase Auth Info. */
|
|
2557
2780
|
export interface FirebaseUserInfo {
|
|
2558
2781
|
uid: string;
|
|
2559
2782
|
displayName?: string;
|
|
@@ -2562,23 +2785,17 @@ export interface FirebaseUserInfo {
|
|
|
2562
2785
|
photoUrl?: string;
|
|
2563
2786
|
providerId?: string;
|
|
2564
2787
|
}
|
|
2565
|
-
/**
|
|
2566
|
-
* The type of purge, e.g by tags or hosts
|
|
2567
|
-
*/
|
|
2788
|
+
/** The type of purge, e.g by tags or hosts */
|
|
2568
2789
|
export declare enum PurgeCDNCacheContextType {
|
|
2569
2790
|
Tags = "tags",
|
|
2570
2791
|
Hosts = "hosts"
|
|
2571
2792
|
}
|
|
2572
|
-
/**
|
|
2573
|
-
* The GitBook Staff User info.
|
|
2574
|
-
*/
|
|
2793
|
+
/** The GitBook Staff User info. */
|
|
2575
2794
|
export interface StaffUserInfo {
|
|
2576
2795
|
id: string;
|
|
2577
2796
|
searchKey: string;
|
|
2578
2797
|
}
|
|
2579
|
-
/**
|
|
2580
|
-
* The GitBook User info shown in the BackOffice.
|
|
2581
|
-
*/
|
|
2798
|
+
/** The GitBook User info shown in the BackOffice. */
|
|
2582
2799
|
export interface UserBackOfficeInfo {
|
|
2583
2800
|
id: string;
|
|
2584
2801
|
/** The GitBook User risk evaluation. */
|
|
@@ -2588,46 +2805,47 @@ export interface UserBackOfficeInfo {
|
|
|
2588
2805
|
lastSignInAt: string;
|
|
2589
2806
|
disabled: boolean;
|
|
2590
2807
|
}
|
|
2591
|
-
/**
|
|
2592
|
-
* The info returned when impersonating a GitBook User.
|
|
2593
|
-
*/
|
|
2808
|
+
/** The info returned when impersonating a GitBook User. */
|
|
2594
2809
|
export declare type UserImpersonation = UserBackOfficeInfo & {
|
|
2810
|
+
/** The GitBook User impersonation info. */
|
|
2595
2811
|
impersonation: UserImpersonationInfo;
|
|
2596
2812
|
};
|
|
2597
|
-
/**
|
|
2598
|
-
* The GitBook User impersonation info.
|
|
2599
|
-
*/
|
|
2813
|
+
/** The GitBook User impersonation info. */
|
|
2600
2814
|
export interface UserImpersonationInfo {
|
|
2601
2815
|
authURL: string;
|
|
2602
2816
|
impersonatorId: string;
|
|
2603
2817
|
}
|
|
2604
|
-
/**
|
|
2605
|
-
* All the permissions of a user
|
|
2606
|
-
*/
|
|
2818
|
+
/** All the permissions of a user */
|
|
2607
2819
|
export interface UserPermissions {
|
|
2608
2820
|
updatedAt: Date;
|
|
2609
2821
|
searchKey: string;
|
|
2610
2822
|
organizations: Record<string, {
|
|
2823
|
+
/** The role of a member in an organization, null for guests */
|
|
2611
2824
|
role: MemberRoleOrGuest;
|
|
2612
2825
|
teams: Record<string, {
|
|
2826
|
+
/**
|
|
2827
|
+
* "The role of a team member.
|
|
2828
|
+
* "owner": Can manage team members.
|
|
2829
|
+
* "member": Is a member of the team.
|
|
2830
|
+
*/
|
|
2613
2831
|
role: TeamMemberRole;
|
|
2614
2832
|
}>;
|
|
2615
2833
|
disabled?: boolean;
|
|
2616
2834
|
}>;
|
|
2617
2835
|
collections: Record<string, {
|
|
2618
2836
|
organization: string;
|
|
2837
|
+
/** The role of a member in an organization, null for guests */
|
|
2619
2838
|
level: MemberRoleOrGuest;
|
|
2620
2839
|
collection?: string;
|
|
2621
2840
|
}>;
|
|
2622
2841
|
spaces: Record<string, {
|
|
2623
2842
|
organization: string;
|
|
2843
|
+
/** The role of a member in an organization, null for guests */
|
|
2624
2844
|
level: MemberRoleOrGuest;
|
|
2625
2845
|
collection?: string;
|
|
2626
2846
|
}>;
|
|
2627
2847
|
}
|
|
2628
|
-
/**
|
|
2629
|
-
* The GitBook User risk evaluation.
|
|
2630
|
-
*/
|
|
2848
|
+
/** The GitBook User risk evaluation. */
|
|
2631
2849
|
export interface UserRiskEvaluation {
|
|
2632
2850
|
/** True if the user was originally considered as risky */
|
|
2633
2851
|
wasRisky: boolean;
|
|
@@ -2649,9 +2867,7 @@ export interface UserRiskEvaluation {
|
|
|
2649
2867
|
emailVerified: boolean;
|
|
2650
2868
|
activeDaysRemaining: number;
|
|
2651
2869
|
}
|
|
2652
|
-
/**
|
|
2653
|
-
* JWT tokens to authenticate in Hive for all content.
|
|
2654
|
-
*/
|
|
2870
|
+
/** JWT tokens to authenticate in Hive for all content. */
|
|
2655
2871
|
export interface HiveAccessToken {
|
|
2656
2872
|
contents: Record<string, string>;
|
|
2657
2873
|
}
|
|
@@ -2673,56 +2889,43 @@ export interface APITemporaryToken {
|
|
|
2673
2889
|
/** Temporary access token to authenticate with the API */
|
|
2674
2890
|
token: string;
|
|
2675
2891
|
}
|
|
2676
|
-
/**
|
|
2677
|
-
* Common properties for ContentKit context.
|
|
2678
|
-
*/
|
|
2892
|
+
/** Common properties for ContentKit context. */
|
|
2679
2893
|
export interface ContentKitContextBase {
|
|
2680
2894
|
theme: 'dark' | 'light';
|
|
2681
2895
|
}
|
|
2682
|
-
/**
|
|
2683
|
-
* Object representing the context in which a ContentKit component is rendered.
|
|
2684
|
-
*/
|
|
2896
|
+
/** Object representing the context in which a ContentKit component is rendered. */
|
|
2685
2897
|
export declare type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextDocument;
|
|
2686
|
-
/**
|
|
2687
|
-
* Context while rendering in an account installation's configuration.
|
|
2688
|
-
*/
|
|
2898
|
+
/** Context while rendering in an account installation's configuration. */
|
|
2689
2899
|
export declare type ContentKitContextConfigurationAccount = ContentKitContextBase & {
|
|
2690
2900
|
type: 'configuration_account';
|
|
2901
|
+
/** ID of the organization the account installation configuration is in. */
|
|
2691
2902
|
organizationId: string;
|
|
2692
2903
|
};
|
|
2693
|
-
/**
|
|
2694
|
-
* Context while rendering in a space-installation's configuration.
|
|
2695
|
-
*/
|
|
2904
|
+
/** Context while rendering in a space-installation's configuration. */
|
|
2696
2905
|
export declare type ContentKitContextConfigurationSpace = ContentKitContextBase & {
|
|
2697
2906
|
type: 'configuration_space';
|
|
2907
|
+
/** ID of the space the space-installation configuration is in. */
|
|
2698
2908
|
spaceId: string;
|
|
2699
2909
|
};
|
|
2700
|
-
/**
|
|
2701
|
-
* Context while rendering in a document.
|
|
2702
|
-
*/
|
|
2910
|
+
/** Context while rendering in a document. */
|
|
2703
2911
|
export declare type ContentKitContextDocument = ContentKitContextBase & {
|
|
2704
2912
|
type: 'document';
|
|
2913
|
+
/** ID of the space content the document is in. */
|
|
2705
2914
|
spaceId: string;
|
|
2706
2915
|
editable: boolean;
|
|
2707
2916
|
};
|
|
2708
|
-
/**
|
|
2709
|
-
* Binding between a property and a state value.
|
|
2710
|
-
*/
|
|
2917
|
+
/** Binding between a property and a state value. */
|
|
2711
2918
|
export interface ContentKitDynamicBinding {
|
|
2712
2919
|
/** Key in the state */
|
|
2713
2920
|
$state: string;
|
|
2714
2921
|
}
|
|
2715
|
-
/**
|
|
2716
|
-
* Higher level element to represent a custom block.
|
|
2717
|
-
*/
|
|
2922
|
+
/** Higher level element to represent a custom block. */
|
|
2718
2923
|
export interface ContentKitBlock {
|
|
2719
2924
|
type: 'block';
|
|
2720
2925
|
children: ContentKitDescendantElement[];
|
|
2721
2926
|
controls?: (ContentKitBlockControl | ContentKitBlockControl[])[];
|
|
2722
2927
|
}
|
|
2723
|
-
/**
|
|
2724
|
-
* Control menu item displayed for the block.
|
|
2725
|
-
*/
|
|
2928
|
+
/** Control menu item displayed for the block. */
|
|
2726
2929
|
export interface ContentKitBlockControl {
|
|
2727
2930
|
icon?: ContentKitIcon;
|
|
2728
2931
|
label: string;
|
|
@@ -2731,9 +2934,7 @@ export interface ContentKitBlockControl {
|
|
|
2731
2934
|
/** A confirm object that defines an optional confirmation dialog after the input is clicked. */
|
|
2732
2935
|
confirm?: ContentKitConfirm;
|
|
2733
2936
|
}
|
|
2734
|
-
/**
|
|
2735
|
-
* Pressable button triggering an action.
|
|
2736
|
-
*/
|
|
2937
|
+
/** Pressable button triggering an action. */
|
|
2737
2938
|
export interface ContentKitButton {
|
|
2738
2939
|
type: 'button';
|
|
2739
2940
|
style?: 'primary' | 'secondary' | 'danger';
|
|
@@ -2747,9 +2948,7 @@ export interface ContentKitButton {
|
|
|
2747
2948
|
confirm?: ContentKitConfirm;
|
|
2748
2949
|
disabled?: boolean;
|
|
2749
2950
|
}
|
|
2750
|
-
/**
|
|
2751
|
-
* Text input to prompt the user.
|
|
2752
|
-
*/
|
|
2951
|
+
/** Text input to prompt the user. */
|
|
2753
2952
|
export interface ContentKitTextInput {
|
|
2754
2953
|
type: 'textinput';
|
|
2755
2954
|
/** State binding. The value of the input will be stored as a property in the state named after this ID. */
|
|
@@ -2759,11 +2958,10 @@ export interface ContentKitTextInput {
|
|
|
2759
2958
|
/** Text that appears in the form control when it has no value set */
|
|
2760
2959
|
placeholder?: string;
|
|
2761
2960
|
multiline?: boolean;
|
|
2961
|
+
/** @default "text" */
|
|
2762
2962
|
inputType?: 'text' | 'password';
|
|
2763
2963
|
}
|
|
2764
|
-
/**
|
|
2765
|
-
* Low level text element.
|
|
2766
|
-
*/
|
|
2964
|
+
/** Low level text element. */
|
|
2767
2965
|
export interface ContentKitText {
|
|
2768
2966
|
type: 'text';
|
|
2769
2967
|
style?: 'bold' | 'italic' | 'code' | 'strikethrough';
|
|
@@ -2775,49 +2973,36 @@ export interface ContentKitBox {
|
|
|
2775
2973
|
grow?: number;
|
|
2776
2974
|
children: ContentKitDescendantElement[];
|
|
2777
2975
|
}
|
|
2778
|
-
/**
|
|
2779
|
-
* Element used to contextualize other elements or info.
|
|
2780
|
-
*/
|
|
2976
|
+
/** Element used to contextualize other elements or info. */
|
|
2781
2977
|
export interface ContentKitHint {
|
|
2782
2978
|
type: 'hint';
|
|
2783
2979
|
children: ContentKitInlineElement[];
|
|
2784
2980
|
}
|
|
2785
|
-
/**
|
|
2786
|
-
* Horizontal stack of boxes.
|
|
2787
|
-
*/
|
|
2981
|
+
/** Horizontal stack of boxes. */
|
|
2788
2982
|
export interface ContentKitHStack {
|
|
2789
2983
|
type: 'hstack';
|
|
2984
|
+
/** @default "start" */
|
|
2790
2985
|
align?: 'start' | 'center' | 'end';
|
|
2791
2986
|
children: ContentKitDescendantElement[];
|
|
2792
2987
|
}
|
|
2793
|
-
/**
|
|
2794
|
-
* Vertical stack of boxes.
|
|
2795
|
-
*/
|
|
2988
|
+
/** Vertical stack of boxes. */
|
|
2796
2989
|
export interface ContentKitVStack {
|
|
2797
2990
|
type: 'vstack';
|
|
2991
|
+
/** @default "start" */
|
|
2798
2992
|
align?: 'start' | 'center' | 'end';
|
|
2799
2993
|
children: ContentKitDescendantElement[];
|
|
2800
2994
|
}
|
|
2801
|
-
/**
|
|
2802
|
-
* Divider between 2 boxes in a stack.
|
|
2803
|
-
*/
|
|
2995
|
+
/** Divider between 2 boxes in a stack. */
|
|
2804
2996
|
export interface ContentKitDivider {
|
|
2805
2997
|
type: 'divider';
|
|
2806
2998
|
size?: 'small' | 'medium' | 'large';
|
|
2807
2999
|
}
|
|
2808
|
-
/**
|
|
2809
|
-
* Custom action to re-render the block.
|
|
2810
|
-
*/
|
|
3000
|
+
/** Custom action to re-render the block. */
|
|
2811
3001
|
export declare type ContentKitAction = {
|
|
2812
3002
|
action: string;
|
|
2813
3003
|
[key: string]: any;
|
|
2814
|
-
} | ContentKitDefaultAction
|
|
2815
|
-
|
|
2816
|
-
[key: string]: any;
|
|
2817
|
-
} & ContentKitDefaultAction);
|
|
2818
|
-
/**
|
|
2819
|
-
* Action to open an overlay modal defined by "componentId".
|
|
2820
|
-
*/
|
|
3004
|
+
} | ContentKitDefaultAction;
|
|
3005
|
+
/** Action to open an overlay modal defined by "componentId". */
|
|
2821
3006
|
export declare type ContentKitDefaultAction = {
|
|
2822
3007
|
action: '@ui.modal.open';
|
|
2823
3008
|
componentId: string;
|
|
@@ -2852,9 +3037,7 @@ export declare enum ContentKitIcon {
|
|
|
2852
3037
|
Eye = "eye",
|
|
2853
3038
|
Lock = "lock"
|
|
2854
3039
|
}
|
|
2855
|
-
/**
|
|
2856
|
-
* Overlay modal.
|
|
2857
|
-
*/
|
|
3040
|
+
/** Overlay modal. */
|
|
2858
3041
|
export interface ContentKitModal {
|
|
2859
3042
|
type: 'modal';
|
|
2860
3043
|
title?: string;
|
|
@@ -2866,9 +3049,7 @@ export interface ContentKitModal {
|
|
|
2866
3049
|
/** Pressable button triggering an action. */
|
|
2867
3050
|
submit?: ContentKitButton;
|
|
2868
3051
|
}
|
|
2869
|
-
/**
|
|
2870
|
-
* Frame for a webpage
|
|
2871
|
-
*/
|
|
3052
|
+
/** Frame for a webpage */
|
|
2872
3053
|
export interface ContentKitWebFrame {
|
|
2873
3054
|
type: 'webframe';
|
|
2874
3055
|
/** Ratio between width and height. Used to size the webframe. */
|
|
@@ -2882,9 +3063,7 @@ export interface ContentKitWebFrame {
|
|
|
2882
3063
|
/** Data to communicated to the webframe's content. Each state update will cause the webframe to receive a message. */
|
|
2883
3064
|
data?: Record<string, string | ContentKitDynamicBinding>;
|
|
2884
3065
|
}
|
|
2885
|
-
/**
|
|
2886
|
-
* Code block with syntax highlighting
|
|
2887
|
-
*/
|
|
3066
|
+
/** Code block with syntax highlighting */
|
|
2888
3067
|
export interface ContentKitCodeBlock {
|
|
2889
3068
|
type: 'codeblock';
|
|
2890
3069
|
/** Code content to display */
|
|
@@ -2904,18 +3083,14 @@ export interface ContentKitCodeBlock {
|
|
|
2904
3083
|
/** Footer displayed after the code lines */
|
|
2905
3084
|
footer?: ContentKitDescendantElement[];
|
|
2906
3085
|
}
|
|
2907
|
-
/**
|
|
2908
|
-
* Output of the integration when rendering an UI.
|
|
2909
|
-
*/
|
|
3086
|
+
/** Output of the integration when rendering an UI. */
|
|
2910
3087
|
export interface ContentKitRenderOutput {
|
|
2911
3088
|
/** Element used as root */
|
|
2912
3089
|
element: ContentKitRootElement;
|
|
2913
3090
|
state: object;
|
|
2914
3091
|
props: object;
|
|
2915
3092
|
}
|
|
2916
|
-
/**
|
|
2917
|
-
* Block with rich text formatting of a markdown content.
|
|
2918
|
-
*/
|
|
3093
|
+
/** Block with rich text formatting of a markdown content. */
|
|
2919
3094
|
export interface ContentKitMarkdown {
|
|
2920
3095
|
type: 'markdown';
|
|
2921
3096
|
/** Markdown content to display */
|
|
@@ -2935,6 +3110,7 @@ export interface ContentKitCard {
|
|
|
2935
3110
|
export interface ContentKitImage {
|
|
2936
3111
|
type: 'image';
|
|
2937
3112
|
source: {
|
|
3113
|
+
/** @format uri */
|
|
2938
3114
|
url: string;
|
|
2939
3115
|
};
|
|
2940
3116
|
aspectRatio: number;
|
|
@@ -2946,9 +3122,7 @@ export interface ContentKitLink {
|
|
|
2946
3122
|
};
|
|
2947
3123
|
children: string | string[];
|
|
2948
3124
|
}
|
|
2949
|
-
/**
|
|
2950
|
-
* Field for an input.
|
|
2951
|
-
*/
|
|
3125
|
+
/** Field for an input. */
|
|
2952
3126
|
export interface ContentKitInput {
|
|
2953
3127
|
type: 'input';
|
|
2954
3128
|
/** Text label displayed next to the input. */
|
|
@@ -2956,17 +3130,13 @@ export interface ContentKitInput {
|
|
|
2956
3130
|
hint?: string | ContentKitInlineElement;
|
|
2957
3131
|
element: ContentKitTextInput | ContentKitSelect | ContentKitSwitch | ContentKitRadio | ContentKitCheckbox | ContentKitButton | ContentKitCodeBlock;
|
|
2958
3132
|
}
|
|
2959
|
-
/**
|
|
2960
|
-
* An individual option in a select element
|
|
2961
|
-
*/
|
|
3133
|
+
/** An individual option in a select element */
|
|
2962
3134
|
export interface ContentKitSelectOption {
|
|
2963
3135
|
id: string;
|
|
2964
3136
|
label: string;
|
|
2965
3137
|
icon?: ContentKitIcon | ContentKitImage;
|
|
2966
3138
|
}
|
|
2967
|
-
/**
|
|
2968
|
-
* Creates a drop down menu with a list of options for a user to choose.
|
|
2969
|
-
*/
|
|
3139
|
+
/** Creates a drop down menu with a list of options for a user to choose. */
|
|
2970
3140
|
export interface ContentKitSelect {
|
|
2971
3141
|
type: 'select';
|
|
2972
3142
|
/** State binding. The value of the input will be stored as a property in the state named after this ID. */
|
|
@@ -2983,12 +3153,11 @@ export interface ContentKitSelect {
|
|
|
2983
3153
|
acceptInput?: boolean;
|
|
2984
3154
|
/** Array of options to display in the select. */
|
|
2985
3155
|
options: ContentKitSelectOption[] | {
|
|
3156
|
+
/** External source of options. The URL should respond with an array of options. */
|
|
2986
3157
|
url: string | ContentKitURL;
|
|
2987
3158
|
};
|
|
2988
3159
|
}
|
|
2989
|
-
/**
|
|
2990
|
-
* Renders a boolean input.
|
|
2991
|
-
*/
|
|
3160
|
+
/** Renders a boolean input. */
|
|
2992
3161
|
export interface ContentKitSwitch {
|
|
2993
3162
|
type: 'switch';
|
|
2994
3163
|
/** State binding. The value of the input will be stored as a property in the state named after this ID. */
|
|
@@ -3018,53 +3187,53 @@ export interface ContentKitRadio {
|
|
|
3018
3187
|
/** A confirm object that defines an optional confirmation dialog after the input is clicked. */
|
|
3019
3188
|
confirm?: ContentKitConfirm;
|
|
3020
3189
|
}
|
|
3021
|
-
/**
|
|
3022
|
-
* A confirm object that defines an optional confirmation dialog after the input is clicked.
|
|
3023
|
-
*/
|
|
3190
|
+
/** A confirm object that defines an optional confirmation dialog after the input is clicked. */
|
|
3024
3191
|
export interface ContentKitConfirm {
|
|
3025
|
-
/**
|
|
3192
|
+
/**
|
|
3193
|
+
* A text value that defines the dialog's title.
|
|
3194
|
+
* @maxLength 100
|
|
3195
|
+
*/
|
|
3026
3196
|
title: string;
|
|
3027
|
-
/**
|
|
3197
|
+
/**
|
|
3198
|
+
* A text value that defines the explanatory text that appears in the confirm dialog.
|
|
3199
|
+
* @maxLength 300
|
|
3200
|
+
*/
|
|
3028
3201
|
text: string;
|
|
3029
|
-
/**
|
|
3202
|
+
/**
|
|
3203
|
+
* A text value to define the text of the button that confirms the action.
|
|
3204
|
+
* @maxLength 30
|
|
3205
|
+
*/
|
|
3030
3206
|
confirm: string;
|
|
3031
3207
|
style?: 'primary' | 'danger';
|
|
3032
3208
|
}
|
|
3033
|
-
/**
|
|
3034
|
-
* Element used as root
|
|
3035
|
-
*/
|
|
3209
|
+
/** Element used as root */
|
|
3036
3210
|
export declare type ContentKitRootElement = ContentKitBlock | ContentKitModal;
|
|
3037
|
-
/**
|
|
3038
|
-
* Any element that can be used as children.
|
|
3039
|
-
*/
|
|
3211
|
+
/** Any element that can be used as children. */
|
|
3040
3212
|
export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink;
|
|
3041
|
-
/**
|
|
3042
|
-
* Any element that is inline.
|
|
3043
|
-
*/
|
|
3213
|
+
/** Any element that is inline. */
|
|
3044
3214
|
export declare type ContentKitInlineElement = ContentKitText | ContentKitImage | ContentKitLink;
|
|
3045
|
-
/**
|
|
3046
|
-
* Specification for an URL in ContentKit.
|
|
3047
|
-
*/
|
|
3215
|
+
/** Specification for an URL in ContentKit. */
|
|
3048
3216
|
export interface ContentKitURL {
|
|
3049
3217
|
/**
|
|
3050
3218
|
* Hostname of the URL along with the port number if required.
|
|
3051
|
-
* @example api.example.com
|
|
3219
|
+
* @example "api.example.com"
|
|
3052
3220
|
*/
|
|
3053
3221
|
host: string;
|
|
3054
3222
|
/**
|
|
3055
3223
|
* Path of the URL prefixed with a `/`.
|
|
3056
|
-
* @example /v1/options
|
|
3224
|
+
* @example "/v1/options"
|
|
3057
3225
|
*/
|
|
3058
3226
|
pathname: string;
|
|
3059
3227
|
query?: Record<string, string | ContentKitDynamicBinding>;
|
|
3060
3228
|
}
|
|
3061
|
-
/**
|
|
3062
|
-
* Channel to subscribe to for API updates.
|
|
3063
|
-
*/
|
|
3229
|
+
/** Channel to subscribe to for API updates. */
|
|
3064
3230
|
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | {
|
|
3065
3231
|
channel: 'organization';
|
|
3066
3232
|
organization: string;
|
|
3067
3233
|
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
|
|
3234
|
+
channel: 'organization-experimental-features';
|
|
3235
|
+
organization: string;
|
|
3236
|
+
} | {
|
|
3068
3237
|
channel: 'space-comments';
|
|
3069
3238
|
space: string;
|
|
3070
3239
|
changeRequest?: string;
|
|
@@ -3171,31 +3340,23 @@ export interface OrganizationTeamMemberChannel {
|
|
|
3171
3340
|
team?: string;
|
|
3172
3341
|
member: string;
|
|
3173
3342
|
}
|
|
3174
|
-
/**
|
|
3175
|
-
* Subscription channel for changes in spaces in an organization.
|
|
3176
|
-
*/
|
|
3343
|
+
/** Subscription channel for changes in spaces in an organization. */
|
|
3177
3344
|
export interface OrganizationSpacesChannel {
|
|
3178
3345
|
channel: 'organization-spaces';
|
|
3179
3346
|
organization: string;
|
|
3180
3347
|
}
|
|
3181
|
-
/**
|
|
3182
|
-
* Subscription channel for changes in collections in an organization.
|
|
3183
|
-
*/
|
|
3348
|
+
/** Subscription channel for changes in collections in an organization. */
|
|
3184
3349
|
export interface OrganizationCollectionsChannel {
|
|
3185
3350
|
channel: 'organization-collections';
|
|
3186
3351
|
organization: string;
|
|
3187
3352
|
}
|
|
3188
|
-
/**
|
|
3189
|
-
* Subscription channel for entities in an organization.
|
|
3190
|
-
*/
|
|
3353
|
+
/** Subscription channel for entities in an organization. */
|
|
3191
3354
|
export interface OrganizationEntitiesChannel {
|
|
3192
3355
|
channel: 'organization-entities';
|
|
3193
3356
|
organization: string;
|
|
3194
3357
|
entityType: string;
|
|
3195
3358
|
}
|
|
3196
|
-
/**
|
|
3197
|
-
* Subscription channel for all entity schemas in an organization.
|
|
3198
|
-
*/
|
|
3359
|
+
/** Subscription channel for all entity schemas in an organization. */
|
|
3199
3360
|
export interface OrganizationSchemasChannel {
|
|
3200
3361
|
channel: 'organization-schemas';
|
|
3201
3362
|
organization: string;
|
|
@@ -3236,9 +3397,7 @@ export interface IntegrationSpaceInstallationsChannel {
|
|
|
3236
3397
|
integration: string;
|
|
3237
3398
|
installation: string;
|
|
3238
3399
|
}
|
|
3239
|
-
/**
|
|
3240
|
-
* Custom field
|
|
3241
|
-
*/
|
|
3400
|
+
/** Custom field */
|
|
3242
3401
|
export interface CustomField {
|
|
3243
3402
|
id: string;
|
|
3244
3403
|
name: CustomFieldName;
|
|
@@ -3251,14 +3410,22 @@ export interface CustomField {
|
|
|
3251
3410
|
updatedAt: Date;
|
|
3252
3411
|
/** URLs associated with the object */
|
|
3253
3412
|
urls: {
|
|
3413
|
+
/**
|
|
3414
|
+
* URL of the custom field in the API
|
|
3415
|
+
* @format uri
|
|
3416
|
+
*/
|
|
3254
3417
|
location: string;
|
|
3255
3418
|
};
|
|
3256
3419
|
}
|
|
3257
3420
|
/**
|
|
3421
|
+
* @minLength 1
|
|
3422
|
+
* @maxLength 50
|
|
3258
3423
|
* @pattern ^[a-z_\-0-9]+$
|
|
3259
3424
|
*/
|
|
3260
3425
|
export declare type CustomFieldName = string;
|
|
3426
|
+
/** @maxLength 100 */
|
|
3261
3427
|
export declare type CustomFieldTitle = string;
|
|
3428
|
+
/** @maxLength 200 */
|
|
3262
3429
|
export declare type CustomFieldDescription = string;
|
|
3263
3430
|
export declare enum CustomFieldType {
|
|
3264
3431
|
Text = "text",
|
|
@@ -3270,6 +3437,7 @@ export declare enum CustomFieldType {
|
|
|
3270
3437
|
}
|
|
3271
3438
|
export declare type CustomFieldValue = string | number | boolean | string[];
|
|
3272
3439
|
export declare type CustomFieldValues = {
|
|
3440
|
+
/** Custom field */
|
|
3273
3441
|
customField: CustomField;
|
|
3274
3442
|
value?: CustomFieldValue;
|
|
3275
3443
|
}[];
|
|
@@ -3278,7 +3446,12 @@ export interface UpdateCustomFieldValues {
|
|
|
3278
3446
|
value: CustomFieldValue;
|
|
3279
3447
|
}>;
|
|
3280
3448
|
}
|
|
3449
|
+
/**
|
|
3450
|
+
* @maxItems 50
|
|
3451
|
+
* @minItems 1
|
|
3452
|
+
*/
|
|
3281
3453
|
export declare type CustomFieldOptions = string[];
|
|
3454
|
+
/** @maxLength 100 */
|
|
3282
3455
|
export declare type CustomFieldPlaceholder = string;
|
|
3283
3456
|
export interface CustomizationSettings {
|
|
3284
3457
|
/** Inherit customization settings from the parent collection. */
|
|
@@ -3291,12 +3464,15 @@ export interface CustomizationSettings {
|
|
|
3291
3464
|
font: CustomizationFont;
|
|
3292
3465
|
};
|
|
3293
3466
|
internationalization: {
|
|
3467
|
+
/** Language for the UI element */
|
|
3294
3468
|
locale: CustomizationLocale;
|
|
3469
|
+
/** Inherit locale from the parent collection. */
|
|
3295
3470
|
inherit: boolean;
|
|
3296
3471
|
};
|
|
3297
3472
|
favicon: {
|
|
3298
3473
|
icon: CustomizationThemedURL;
|
|
3299
3474
|
} | {
|
|
3475
|
+
/** Unicode codepoint or character of the emoji */
|
|
3300
3476
|
emoji: Emoji;
|
|
3301
3477
|
} | object;
|
|
3302
3478
|
header: {
|
|
@@ -3309,28 +3485,36 @@ export interface CustomizationSettings {
|
|
|
3309
3485
|
footer: {
|
|
3310
3486
|
logo?: CustomizationThemedURL;
|
|
3311
3487
|
groups: CustomizationFooterGroup[];
|
|
3488
|
+
/** @maxLength 300 */
|
|
3312
3489
|
copyright?: string;
|
|
3313
3490
|
};
|
|
3314
3491
|
themes: {
|
|
3315
3492
|
default: CustomizationThemeMode;
|
|
3493
|
+
/** Should the reader be able to switch between dark and light mode */
|
|
3316
3494
|
toggeable: boolean;
|
|
3317
3495
|
};
|
|
3318
3496
|
pdf: {
|
|
3497
|
+
/** If true, PDF export is enabled for the published content. */
|
|
3319
3498
|
enabled: boolean;
|
|
3320
3499
|
};
|
|
3321
3500
|
feedback: {
|
|
3501
|
+
/** If true, feedback gathering is enabled */
|
|
3322
3502
|
enabled: boolean;
|
|
3323
3503
|
};
|
|
3324
3504
|
aiSearch: {
|
|
3505
|
+
/** If true, AI search is enabled */
|
|
3325
3506
|
enabled: boolean;
|
|
3326
3507
|
};
|
|
3327
3508
|
git: {
|
|
3509
|
+
/** Whether the public content should show a link to edit the content on the git provider set up in the GitSync */
|
|
3328
3510
|
showEditLink: boolean;
|
|
3329
3511
|
};
|
|
3330
3512
|
pagination: {
|
|
3513
|
+
/** Whether the pagination navigation should be displayed on pages. */
|
|
3331
3514
|
enabled: boolean;
|
|
3332
3515
|
};
|
|
3333
3516
|
trademark: {
|
|
3517
|
+
/** Whether the GitBook trademark ("Powered by GitBook") should be visible */
|
|
3334
3518
|
enabled: boolean;
|
|
3335
3519
|
};
|
|
3336
3520
|
privacyPolicy: {
|
|
@@ -3342,12 +3526,11 @@ export interface CustomizationSettings {
|
|
|
3342
3526
|
}
|
|
3343
3527
|
export declare type CustomizationCollectionSettings = CustomizationSettings & {
|
|
3344
3528
|
collection: {
|
|
3529
|
+
/** ID of the space used by default in the collection */
|
|
3345
3530
|
defaultSpace?: string;
|
|
3346
3531
|
};
|
|
3347
3532
|
};
|
|
3348
|
-
/**
|
|
3349
|
-
* Language for the UI element
|
|
3350
|
-
*/
|
|
3533
|
+
/** Language for the UI element */
|
|
3351
3534
|
export declare enum CustomizationLocale {
|
|
3352
3535
|
En = "en",
|
|
3353
3536
|
Fr = "fr",
|
|
@@ -3441,7 +3624,8 @@ declare type CancelToken = Symbol | string | number;
|
|
|
3441
3624
|
export declare enum ContentType {
|
|
3442
3625
|
Json = "application/json",
|
|
3443
3626
|
FormData = "multipart/form-data",
|
|
3444
|
-
UrlEncoded = "application/x-www-form-urlencoded"
|
|
3627
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
3628
|
+
Text = "text/plain"
|
|
3445
3629
|
}
|
|
3446
3630
|
export declare class HttpClient<SecurityDataType = unknown> {
|
|
3447
3631
|
baseUrl: string;
|
|
@@ -3452,14 +3636,14 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
3452
3636
|
private baseApiParams;
|
|
3453
3637
|
constructor(apiConfig?: ApiConfig<SecurityDataType>);
|
|
3454
3638
|
setSecurityData: (data: SecurityDataType | null) => void;
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3639
|
+
protected encodeQueryParam(key: string, value: any): string;
|
|
3640
|
+
protected addQueryParam(query: QueryParamsType, key: string): string;
|
|
3641
|
+
protected addArrayQueryParam(query: QueryParamsType, key: string): any;
|
|
3458
3642
|
protected toQueryString(rawQuery?: QueryParamsType): string;
|
|
3459
3643
|
protected addQueryParams(rawQuery?: QueryParamsType): string;
|
|
3460
3644
|
private contentFormatters;
|
|
3461
|
-
|
|
3462
|
-
|
|
3645
|
+
protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
|
|
3646
|
+
protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
|
|
3463
3647
|
abortRequest: (cancelToken: CancelToken) => void;
|
|
3464
3648
|
request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
|
|
3465
3649
|
}
|
|
@@ -3495,7 +3679,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3495
3679
|
*/
|
|
3496
3680
|
searchContent: (query: {
|
|
3497
3681
|
query: string;
|
|
3682
|
+
/** Identifier of the page results to fetch. */
|
|
3498
3683
|
page?: string;
|
|
3684
|
+
/** The number of results per page */
|
|
3499
3685
|
limit?: number;
|
|
3500
3686
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3501
3687
|
items: SearchSpaceResult[];
|
|
@@ -3512,6 +3698,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3512
3698
|
askQueryWithGet: (query: {
|
|
3513
3699
|
query: string;
|
|
3514
3700
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
3701
|
+
/** Answer from AI for a question asked on a content. */
|
|
3515
3702
|
answer?: SearchAIAnswer;
|
|
3516
3703
|
}, Error>>;
|
|
3517
3704
|
/**
|
|
@@ -3523,6 +3710,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3523
3710
|
* @secure
|
|
3524
3711
|
*/
|
|
3525
3712
|
askQuery: (data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
|
|
3713
|
+
/** Answer from AI for a question asked on a content. */
|
|
3526
3714
|
answer?: SearchAIAnswer;
|
|
3527
3715
|
}, Error>>;
|
|
3528
3716
|
/**
|
|
@@ -3534,6 +3722,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3534
3722
|
* @secure
|
|
3535
3723
|
*/
|
|
3536
3724
|
getRecommendedQuestions: (data: {
|
|
3725
|
+
/**
|
|
3726
|
+
* @maxItems 50
|
|
3727
|
+
* @minItems 1
|
|
3728
|
+
*/
|
|
3537
3729
|
documents: string[];
|
|
3538
3730
|
}, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
3539
3731
|
};
|
|
@@ -3582,6 +3774,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3582
3774
|
* @secure
|
|
3583
3775
|
*/
|
|
3584
3776
|
updateSpaceById: (spaceId: string, data: {
|
|
3777
|
+
/**
|
|
3778
|
+
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
3779
|
+
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
3780
|
+
* * `share-link`: Anyone with a secret token in the url can access the content.
|
|
3781
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
|
|
3782
|
+
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
3783
|
+
* Only available for spaces in a collection.
|
|
3784
|
+
* * `private`: Authorized members can access the content.
|
|
3785
|
+
*/
|
|
3585
3786
|
visibility?: ContentVisibility;
|
|
3586
3787
|
}, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
3587
3788
|
/**
|
|
@@ -3614,7 +3815,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3614
3815
|
*/
|
|
3615
3816
|
searchSpaceContent: (spaceId: string, query: {
|
|
3616
3817
|
query: string;
|
|
3818
|
+
/** Identifier of the page results to fetch. */
|
|
3617
3819
|
page?: string;
|
|
3820
|
+
/** The number of results per page */
|
|
3618
3821
|
limit?: number;
|
|
3619
3822
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3620
3823
|
items: SearchPageResult[];
|
|
@@ -3631,6 +3834,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3631
3834
|
askQueryInSpaceWithGet: (spaceId: string, query: {
|
|
3632
3835
|
query: string;
|
|
3633
3836
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
3837
|
+
/** Answer from AI for a question asked on a content. */
|
|
3634
3838
|
answer?: SearchAIAnswer;
|
|
3635
3839
|
}, Error>>;
|
|
3636
3840
|
/**
|
|
@@ -3642,6 +3846,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3642
3846
|
* @secure
|
|
3643
3847
|
*/
|
|
3644
3848
|
askQueryInSpace: (spaceId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
|
|
3849
|
+
/** Answer from AI for a question asked on a content. */
|
|
3645
3850
|
answer?: SearchAIAnswer;
|
|
3646
3851
|
}, Error>>;
|
|
3647
3852
|
/**
|
|
@@ -3684,6 +3889,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3684
3889
|
*/
|
|
3685
3890
|
getSpaceGitInfo: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<GitSyncState, Error | {
|
|
3686
3891
|
error: {
|
|
3892
|
+
/** @format int32 */
|
|
3687
3893
|
code: 404;
|
|
3688
3894
|
message: string;
|
|
3689
3895
|
};
|
|
@@ -3769,7 +3975,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3769
3975
|
* @secure
|
|
3770
3976
|
*/
|
|
3771
3977
|
listFiles: (spaceId: string, query?: {
|
|
3978
|
+
/** Identifier of the page results to fetch. */
|
|
3772
3979
|
page?: string;
|
|
3980
|
+
/** The number of results per page */
|
|
3773
3981
|
limit?: number;
|
|
3774
3982
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3775
3983
|
items: RevisionFile[];
|
|
@@ -3792,6 +4000,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3792
4000
|
* @secure
|
|
3793
4001
|
*/
|
|
3794
4002
|
getPageById: (spaceId: string, pageId: string, query?: {
|
|
4003
|
+
/** Output format for the content. */
|
|
3795
4004
|
format?: 'document' | 'markdown';
|
|
3796
4005
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
3797
4006
|
/**
|
|
@@ -3812,6 +4021,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3812
4021
|
* @secure
|
|
3813
4022
|
*/
|
|
3814
4023
|
getPageByPath: (spaceId: string, pagePath: string, query?: {
|
|
4024
|
+
/** Output format for the content. */
|
|
3815
4025
|
format?: 'document' | 'markdown';
|
|
3816
4026
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
3817
4027
|
/**
|
|
@@ -3833,6 +4043,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3833
4043
|
* @secure
|
|
3834
4044
|
*/
|
|
3835
4045
|
createChangeRequest: (spaceId: string, data: RequestCreateChangeRequest, params?: RequestParams) => Promise<HttpResponse<ChangeRequest & {
|
|
4046
|
+
/** @deprecated */
|
|
3836
4047
|
changeRequest: string;
|
|
3837
4048
|
}, Error>>;
|
|
3838
4049
|
/**
|
|
@@ -3845,8 +4056,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3845
4056
|
* @secure
|
|
3846
4057
|
*/
|
|
3847
4058
|
listChangeRequestsForSpace: (spaceId: string, query?: {
|
|
4059
|
+
/** Identifier of the page results to fetch. */
|
|
3848
4060
|
page?: string;
|
|
4061
|
+
/** The number of results per page */
|
|
3849
4062
|
limit?: number;
|
|
4063
|
+
/**
|
|
4064
|
+
* If defined, only change requests matching this status will be returned
|
|
4065
|
+
* @default "open"
|
|
4066
|
+
*/
|
|
3850
4067
|
status?: ChangeRequestStatus;
|
|
3851
4068
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3852
4069
|
items: ChangeRequest[];
|
|
@@ -3862,6 +4079,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3862
4079
|
*/
|
|
3863
4080
|
getChangeRequestById: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error | {
|
|
3864
4081
|
error: {
|
|
4082
|
+
/** @format int32 */
|
|
3865
4083
|
code: 404;
|
|
3866
4084
|
message: string;
|
|
3867
4085
|
};
|
|
@@ -3876,6 +4094,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3876
4094
|
* @secure
|
|
3877
4095
|
*/
|
|
3878
4096
|
mergeChangeRequest: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<{
|
|
4097
|
+
/** ID of the resulting revision */
|
|
3879
4098
|
revision: string;
|
|
3880
4099
|
result: 'merge' | 'conflicts';
|
|
3881
4100
|
}, Error>>;
|
|
@@ -3889,6 +4108,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3889
4108
|
* @secure
|
|
3890
4109
|
*/
|
|
3891
4110
|
updateChangeRequest: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<{
|
|
4111
|
+
/** ID of the resulting revision */
|
|
3892
4112
|
revision: string;
|
|
3893
4113
|
result: 'update' | 'conflicts';
|
|
3894
4114
|
}, Error>>;
|
|
@@ -3902,13 +4122,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3902
4122
|
* @secure
|
|
3903
4123
|
*/
|
|
3904
4124
|
getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
|
|
4125
|
+
/** Output format for the content. */
|
|
3905
4126
|
format?: 'document' | 'markdown';
|
|
4127
|
+
/** Identifier of the page results to fetch. */
|
|
3906
4128
|
page?: string;
|
|
4129
|
+
/** The number of results per page */
|
|
3907
4130
|
limit?: number;
|
|
3908
4131
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3909
4132
|
items: ChangeRequestReview[];
|
|
3910
4133
|
}, Error | {
|
|
3911
4134
|
error: {
|
|
4135
|
+
/** @format int32 */
|
|
3912
4136
|
code: 404;
|
|
3913
4137
|
message: string;
|
|
3914
4138
|
};
|
|
@@ -3923,7 +4147,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3923
4147
|
* @secure
|
|
3924
4148
|
*/
|
|
3925
4149
|
submitChangeRequestReview: (spaceId: string, changeRequestId: string | number, data: {
|
|
4150
|
+
/** The status of the submitted review. */
|
|
3926
4151
|
status: ChangeRequestReviewStatus;
|
|
4152
|
+
/** Optionally, provide a comment along with the review. */
|
|
3927
4153
|
comment?: Document;
|
|
3928
4154
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequestReview, Error>>;
|
|
3929
4155
|
/**
|
|
@@ -3936,7 +4162,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3936
4162
|
* @secure
|
|
3937
4163
|
*/
|
|
3938
4164
|
getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
|
|
4165
|
+
/** Identifier of the page results to fetch. */
|
|
3939
4166
|
page?: string;
|
|
4167
|
+
/** The number of results per page */
|
|
3940
4168
|
limit?: number;
|
|
3941
4169
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3942
4170
|
items: ChangeRequestRequestedReviewer[];
|
|
@@ -3951,9 +4179,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3951
4179
|
* @secure
|
|
3952
4180
|
*/
|
|
3953
4181
|
requestReviewersForChangeRequest: (spaceId: string, changeRequestId: string | number, data: {
|
|
4182
|
+
/** An array of user ids that will be requested. */
|
|
3954
4183
|
users: string[];
|
|
4184
|
+
/** Optionally, update the subject of the change request when requesting reviewers. */
|
|
3955
4185
|
subject?: string;
|
|
3956
4186
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
4187
|
+
/** The user requests that were sent. */
|
|
3957
4188
|
users?: ChangeRequestRequestedReviewer[];
|
|
3958
4189
|
}, Error>>;
|
|
3959
4190
|
/**
|
|
@@ -3966,10 +4197,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3966
4197
|
* @secure
|
|
3967
4198
|
*/
|
|
3968
4199
|
listCommentsInChangeRequest: (spaceId: string, changeRequestId: string | number, query?: {
|
|
4200
|
+
/** Identifier of the page results to fetch. */
|
|
3969
4201
|
page?: string;
|
|
4202
|
+
/** The number of results per page */
|
|
3970
4203
|
limit?: number;
|
|
4204
|
+
/** Output format for the content. */
|
|
3971
4205
|
format?: 'document' | 'markdown';
|
|
3972
|
-
|
|
4206
|
+
/**
|
|
4207
|
+
* When provided, only comments with the given status are returned. Defaults to "all".
|
|
4208
|
+
* @default "all"
|
|
4209
|
+
*/
|
|
4210
|
+
status?: 'all' | 'open' | 'resolved';
|
|
3973
4211
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3974
4212
|
items: Comment[];
|
|
3975
4213
|
}, Error>>;
|
|
@@ -3993,6 +4231,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3993
4231
|
* @secure
|
|
3994
4232
|
*/
|
|
3995
4233
|
getCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
|
|
4234
|
+
/** Output format for the content. */
|
|
3996
4235
|
format?: 'document' | 'markdown';
|
|
3997
4236
|
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
3998
4237
|
/**
|
|
@@ -4025,8 +4264,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4025
4264
|
* @secure
|
|
4026
4265
|
*/
|
|
4027
4266
|
listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
|
|
4267
|
+
/** Identifier of the page results to fetch. */
|
|
4028
4268
|
page?: string;
|
|
4269
|
+
/** The number of results per page */
|
|
4029
4270
|
limit?: number;
|
|
4271
|
+
/** Output format for the content. */
|
|
4030
4272
|
format?: 'document' | 'markdown';
|
|
4031
4273
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4032
4274
|
items: CommentReply[];
|
|
@@ -4041,6 +4283,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4041
4283
|
* @secure
|
|
4042
4284
|
*/
|
|
4043
4285
|
postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, data: PostCommentReplySchema, query?: {
|
|
4286
|
+
/** Output format for the content. */
|
|
4044
4287
|
format?: 'document' | 'markdown';
|
|
4045
4288
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
4046
4289
|
/**
|
|
@@ -4053,6 +4296,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4053
4296
|
* @secure
|
|
4054
4297
|
*/
|
|
4055
4298
|
getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, query?: {
|
|
4299
|
+
/** Output format for the content. */
|
|
4056
4300
|
format?: 'document' | 'markdown';
|
|
4057
4301
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
4058
4302
|
/**
|
|
@@ -4088,6 +4332,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4088
4332
|
items: UserContributor[];
|
|
4089
4333
|
}, Error | {
|
|
4090
4334
|
error: {
|
|
4335
|
+
/** @format int32 */
|
|
4091
4336
|
code: 404;
|
|
4092
4337
|
message: string;
|
|
4093
4338
|
};
|
|
@@ -4130,7 +4375,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4130
4375
|
* @secure
|
|
4131
4376
|
*/
|
|
4132
4377
|
listFilesInChangeRequestById: (spaceId: string, changeRequestId: string | number, query?: {
|
|
4378
|
+
/** Identifier of the page results to fetch. */
|
|
4133
4379
|
page?: string;
|
|
4380
|
+
/** The number of results per page */
|
|
4134
4381
|
limit?: number;
|
|
4135
4382
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4136
4383
|
items: RevisionFile[];
|
|
@@ -4153,6 +4400,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4153
4400
|
* @secure
|
|
4154
4401
|
*/
|
|
4155
4402
|
getPageInChangeRequestById: (spaceId: string, changeRequestId: string | number, pageId: string, query?: {
|
|
4403
|
+
/** Output format for the content. */
|
|
4156
4404
|
format?: 'document' | 'markdown';
|
|
4157
4405
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
4158
4406
|
/**
|
|
@@ -4173,6 +4421,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4173
4421
|
* @secure
|
|
4174
4422
|
*/
|
|
4175
4423
|
getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string | number, pagePath: string, query?: {
|
|
4424
|
+
/** Output format for the content. */
|
|
4176
4425
|
format?: 'document' | 'markdown';
|
|
4177
4426
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
4178
4427
|
/**
|
|
@@ -4193,10 +4442,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4193
4442
|
* @secure
|
|
4194
4443
|
*/
|
|
4195
4444
|
getRevisionSemanticChanges: (spaceId: string, revisionId: string, query?: {
|
|
4445
|
+
/**
|
|
4446
|
+
* Limit the number of changes returned
|
|
4447
|
+
* @default 10
|
|
4448
|
+
*/
|
|
4196
4449
|
limit?: number;
|
|
4450
|
+
/**
|
|
4451
|
+
* Whether to include changes to metadata, such as git information and custom fields
|
|
4452
|
+
* @default true
|
|
4453
|
+
*/
|
|
4197
4454
|
metadata?: boolean;
|
|
4198
4455
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
4199
4456
|
changes: RevisionSemanticChange[];
|
|
4457
|
+
/** How many changes were omitted because above the result limit */
|
|
4200
4458
|
more?: number;
|
|
4201
4459
|
}, Error>>;
|
|
4202
4460
|
/**
|
|
@@ -4219,7 +4477,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4219
4477
|
* @secure
|
|
4220
4478
|
*/
|
|
4221
4479
|
listFilesInRevisionById: (spaceId: string, revisionId: string, query?: {
|
|
4480
|
+
/** Identifier of the page results to fetch. */
|
|
4222
4481
|
page?: string;
|
|
4482
|
+
/** The number of results per page */
|
|
4223
4483
|
limit?: number;
|
|
4224
4484
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4225
4485
|
items: RevisionFile[];
|
|
@@ -4242,6 +4502,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4242
4502
|
* @secure
|
|
4243
4503
|
*/
|
|
4244
4504
|
getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
|
|
4505
|
+
/** Output format for the content. */
|
|
4245
4506
|
format?: 'document' | 'markdown';
|
|
4246
4507
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
4247
4508
|
/**
|
|
@@ -4253,6 +4514,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4253
4514
|
* @secure
|
|
4254
4515
|
*/
|
|
4255
4516
|
getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
|
|
4517
|
+
/** Output format for the content. */
|
|
4256
4518
|
format?: 'document' | 'markdown';
|
|
4257
4519
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
4258
4520
|
/**
|
|
@@ -4265,9 +4527,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4265
4527
|
* @secure
|
|
4266
4528
|
*/
|
|
4267
4529
|
listCommentsInSpace: (spaceId: string, query?: {
|
|
4530
|
+
/** Identifier of the page results to fetch. */
|
|
4268
4531
|
page?: string;
|
|
4532
|
+
/** The number of results per page */
|
|
4269
4533
|
limit?: number;
|
|
4270
|
-
|
|
4534
|
+
/**
|
|
4535
|
+
* When provided, only comments with the given status are returned. Defaults to "all".
|
|
4536
|
+
* @default "all"
|
|
4537
|
+
*/
|
|
4538
|
+
status?: 'all' | 'open' | 'resolved';
|
|
4539
|
+
/** Output format for the content. */
|
|
4271
4540
|
format?: 'document' | 'markdown';
|
|
4272
4541
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4273
4542
|
items: Comment[];
|
|
@@ -4292,6 +4561,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4292
4561
|
* @secure
|
|
4293
4562
|
*/
|
|
4294
4563
|
getCommentInSpace: (spaceId: string, commentId: string, query?: {
|
|
4564
|
+
/** Output format for the content. */
|
|
4295
4565
|
format?: 'document' | 'markdown';
|
|
4296
4566
|
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
4297
4567
|
/**
|
|
@@ -4324,8 +4594,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4324
4594
|
* @secure
|
|
4325
4595
|
*/
|
|
4326
4596
|
listCommentRepliesInSpace: (spaceId: string, commentId: string, query?: {
|
|
4597
|
+
/** Identifier of the page results to fetch. */
|
|
4327
4598
|
page?: string;
|
|
4599
|
+
/** The number of results per page */
|
|
4328
4600
|
limit?: number;
|
|
4601
|
+
/** Output format for the content. */
|
|
4329
4602
|
format?: 'document' | 'markdown';
|
|
4330
4603
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4331
4604
|
items: CommentReply[];
|
|
@@ -4350,6 +4623,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4350
4623
|
* @secure
|
|
4351
4624
|
*/
|
|
4352
4625
|
getCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, query?: {
|
|
4626
|
+
/** Output format for the content. */
|
|
4353
4627
|
format?: 'document' | 'markdown';
|
|
4354
4628
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
4355
4629
|
/**
|
|
@@ -4382,8 +4656,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4382
4656
|
* @secure
|
|
4383
4657
|
*/
|
|
4384
4658
|
listPermissionsAggregateInSpace: (spaceId: string, query?: {
|
|
4659
|
+
/** Identifier of the page results to fetch. */
|
|
4385
4660
|
page?: string;
|
|
4661
|
+
/** The number of results per page */
|
|
4386
4662
|
limit?: number;
|
|
4663
|
+
/** If defined, only members with this role will be returned. */
|
|
4387
4664
|
role?: MemberRole;
|
|
4388
4665
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4389
4666
|
items: UserContentPermission[];
|
|
@@ -4399,6 +4676,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4399
4676
|
*/
|
|
4400
4677
|
getSpacePublishingCustomizationById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
|
|
4401
4678
|
error: {
|
|
4679
|
+
/** @format int32 */
|
|
4402
4680
|
code: 400;
|
|
4403
4681
|
message: string;
|
|
4404
4682
|
};
|
|
@@ -4414,6 +4692,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4414
4692
|
*/
|
|
4415
4693
|
updateSpacePublishingCustomizationById: (spaceId: string, data: CustomizationSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
|
|
4416
4694
|
error: {
|
|
4695
|
+
/** @format int32 */
|
|
4417
4696
|
code: 400;
|
|
4418
4697
|
message: string;
|
|
4419
4698
|
};
|
|
@@ -4429,6 +4708,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4429
4708
|
*/
|
|
4430
4709
|
getSpacePublishingAuthById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
4431
4710
|
error: {
|
|
4711
|
+
/** @format int32 */
|
|
4432
4712
|
code: 400;
|
|
4433
4713
|
message: string;
|
|
4434
4714
|
};
|
|
@@ -4444,6 +4724,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4444
4724
|
*/
|
|
4445
4725
|
updateSpacePublishingAuthById: (spaceId: string, data: RequestUpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
4446
4726
|
error: {
|
|
4727
|
+
/** @format int32 */
|
|
4447
4728
|
code: 400;
|
|
4448
4729
|
message: string;
|
|
4449
4730
|
};
|
|
@@ -4459,6 +4740,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4459
4740
|
*/
|
|
4460
4741
|
listSpaceIntegrationsBlocks: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceIntegrationBlocks, Error | {
|
|
4461
4742
|
error: {
|
|
4743
|
+
/** @format int32 */
|
|
4462
4744
|
code: 404;
|
|
4463
4745
|
message: string;
|
|
4464
4746
|
};
|
|
@@ -4483,19 +4765,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4483
4765
|
* @secure
|
|
4484
4766
|
*/
|
|
4485
4767
|
updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4486
|
-
/**
|
|
4487
|
-
* No description
|
|
4488
|
-
*
|
|
4489
|
-
* @tags spaces
|
|
4490
|
-
* @name GenerateDrawing
|
|
4491
|
-
* @summary Generate a drawing from text.
|
|
4492
|
-
* @request POST:/spaces/{spaceId}/drawings
|
|
4493
|
-
* @secure
|
|
4494
|
-
*/
|
|
4495
|
-
generateDrawing: (spaceId: string, data: {
|
|
4496
|
-
text: string;
|
|
4497
|
-
context?: string;
|
|
4498
|
-
}, params?: RequestParams) => Promise<HttpResponse<GeneratedDrawing, Error>>;
|
|
4499
4768
|
};
|
|
4500
4769
|
collections: {
|
|
4501
4770
|
/**
|
|
@@ -4518,6 +4787,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4518
4787
|
* @secure
|
|
4519
4788
|
*/
|
|
4520
4789
|
updateCollectionById: (collectionId: string, data: {
|
|
4790
|
+
/**
|
|
4791
|
+
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
4792
|
+
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
4793
|
+
* * `share-link`: Anyone with a secret token in the url can access the content.
|
|
4794
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
|
|
4795
|
+
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
4796
|
+
* Only available for spaces in a collection.
|
|
4797
|
+
* * `private`: Authorized members can access the content.
|
|
4798
|
+
*/
|
|
4521
4799
|
visibility?: ContentVisibility;
|
|
4522
4800
|
}, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
|
|
4523
4801
|
/**
|
|
@@ -4530,7 +4808,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4530
4808
|
* @secure
|
|
4531
4809
|
*/
|
|
4532
4810
|
listSpacesInCollectionById: (collectionId: string, query?: {
|
|
4811
|
+
/** Identifier of the page results to fetch. */
|
|
4533
4812
|
page?: string;
|
|
4813
|
+
/** The number of results per page */
|
|
4534
4814
|
limit?: number;
|
|
4535
4815
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4536
4816
|
items: Space[];
|
|
@@ -4545,8 +4825,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4545
4825
|
* @secure
|
|
4546
4826
|
*/
|
|
4547
4827
|
listPermissionsAggregateInCollection: (collectionId: string, query?: {
|
|
4828
|
+
/** Identifier of the page results to fetch. */
|
|
4548
4829
|
page?: string;
|
|
4830
|
+
/** The number of results per page */
|
|
4549
4831
|
limit?: number;
|
|
4832
|
+
/** If defined, only members with this role will be returned. */
|
|
4550
4833
|
role?: MemberRole;
|
|
4551
4834
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4552
4835
|
items: UserContentPermission[];
|
|
@@ -4562,6 +4845,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4562
4845
|
*/
|
|
4563
4846
|
getCollectionPublishingAuthById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
4564
4847
|
error: {
|
|
4848
|
+
/** @format int32 */
|
|
4565
4849
|
code: 400;
|
|
4566
4850
|
message: string;
|
|
4567
4851
|
};
|
|
@@ -4577,6 +4861,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4577
4861
|
*/
|
|
4578
4862
|
updateCollectionPublishingAuthById: (collectionId: string, data: RequestUpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
4579
4863
|
error: {
|
|
4864
|
+
/** @format int32 */
|
|
4580
4865
|
code: 400;
|
|
4581
4866
|
message: string;
|
|
4582
4867
|
};
|
|
@@ -4592,6 +4877,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4592
4877
|
*/
|
|
4593
4878
|
getCollectionPublishingCustomizationById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
|
|
4594
4879
|
error: {
|
|
4880
|
+
/** @format int32 */
|
|
4595
4881
|
code: 400;
|
|
4596
4882
|
message: string;
|
|
4597
4883
|
};
|
|
@@ -4607,6 +4893,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4607
4893
|
*/
|
|
4608
4894
|
updateCollectionPublishingCustomizationById: (collectionId: string, data: CustomizationCollectionSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
|
|
4609
4895
|
error: {
|
|
4896
|
+
/** @format int32 */
|
|
4610
4897
|
code: 400;
|
|
4611
4898
|
message: string;
|
|
4612
4899
|
};
|
|
@@ -4623,9 +4910,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4623
4910
|
* @secure
|
|
4624
4911
|
*/
|
|
4625
4912
|
listIntegrations: (query?: {
|
|
4913
|
+
/** Identifier of the page results to fetch. */
|
|
4626
4914
|
page?: string;
|
|
4915
|
+
/** The number of results per page */
|
|
4627
4916
|
limit?: number;
|
|
4917
|
+
/** Filter the integrations by category */
|
|
4628
4918
|
category?: IntegrationCategory;
|
|
4919
|
+
/**
|
|
4920
|
+
* Filter the integrations by block's domains
|
|
4921
|
+
* @maxLength 100
|
|
4922
|
+
* @pattern ^[a-zA-Z0-9-_.]+$
|
|
4923
|
+
*/
|
|
4629
4924
|
blockDomain?: string;
|
|
4630
4925
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4631
4926
|
items: Integration[];
|
|
@@ -4641,6 +4936,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4641
4936
|
*/
|
|
4642
4937
|
getIntegrationByName: (integrationName: string, params?: RequestParams) => Promise<HttpResponse<Integration, Error | {
|
|
4643
4938
|
error: {
|
|
4939
|
+
/** @format int32 */
|
|
4644
4940
|
code: 404;
|
|
4645
4941
|
message: string;
|
|
4646
4942
|
};
|
|
@@ -4656,6 +4952,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4656
4952
|
*/
|
|
4657
4953
|
publishIntegration: (integrationName: string, data: RequestPublishIntegration, params?: RequestParams) => Promise<HttpResponse<Integration, Error | {
|
|
4658
4954
|
error: {
|
|
4955
|
+
/** @format int32 */
|
|
4659
4956
|
code: 404;
|
|
4660
4957
|
message: string;
|
|
4661
4958
|
};
|
|
@@ -4680,8 +4977,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4680
4977
|
* @secure
|
|
4681
4978
|
*/
|
|
4682
4979
|
listIntegrationInstallations: (integrationName: string, query?: {
|
|
4980
|
+
/** Identifier of the page results to fetch. */
|
|
4683
4981
|
page?: string;
|
|
4982
|
+
/** The number of results per page */
|
|
4684
4983
|
limit?: number;
|
|
4984
|
+
/** External Id to filter by */
|
|
4685
4985
|
externalId?: string;
|
|
4686
4986
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4687
4987
|
items: IntegrationInstallation[];
|
|
@@ -4697,6 +4997,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4697
4997
|
*/
|
|
4698
4998
|
installIntegration: (integrationName: string, data: OrganizationTarget, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error | {
|
|
4699
4999
|
error: {
|
|
5000
|
+
/** @format int32 */
|
|
4700
5001
|
code: 404;
|
|
4701
5002
|
message: string;
|
|
4702
5003
|
};
|
|
@@ -4711,7 +5012,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4711
5012
|
* @secure
|
|
4712
5013
|
*/
|
|
4713
5014
|
listIntegrationEvents: (integrationName: string, query?: {
|
|
5015
|
+
/** Identifier of the page results to fetch. */
|
|
4714
5016
|
page?: string;
|
|
5017
|
+
/** The number of results per page */
|
|
4715
5018
|
limit?: number;
|
|
4716
5019
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4717
5020
|
items: IntegrationEvent[];
|
|
@@ -4730,6 +5033,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4730
5033
|
trace?: IntegrationEventTrace;
|
|
4731
5034
|
}, Error | {
|
|
4732
5035
|
error: {
|
|
5036
|
+
/** @format int32 */
|
|
4733
5037
|
code: 404;
|
|
4734
5038
|
message: string;
|
|
4735
5039
|
};
|
|
@@ -4744,8 +5048,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4744
5048
|
* @secure
|
|
4745
5049
|
*/
|
|
4746
5050
|
listIntegrationSpaceInstallations: (integrationName: string, query?: {
|
|
5051
|
+
/** Identifier of the page results to fetch. */
|
|
4747
5052
|
page?: string;
|
|
5053
|
+
/** The number of results per page */
|
|
4748
5054
|
limit?: number;
|
|
5055
|
+
/** External Id to filter by */
|
|
4749
5056
|
externalId?: string;
|
|
4750
5057
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4751
5058
|
items: IntegrationSpaceInstallation[];
|
|
@@ -4760,9 +5067,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4760
5067
|
* @secure
|
|
4761
5068
|
*/
|
|
4762
5069
|
updateIntegrationDevSpace: (integrationName: string, spaceId: string, data: {
|
|
5070
|
+
/**
|
|
5071
|
+
* URL of the tunnel to dispatch integration events to
|
|
5072
|
+
* @minLength 1
|
|
5073
|
+
* @maxLength 256
|
|
5074
|
+
*/
|
|
4763
5075
|
tunnelUrl: string;
|
|
4764
5076
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
4765
5077
|
error: {
|
|
5078
|
+
/** @format int32 */
|
|
4766
5079
|
code: 404;
|
|
4767
5080
|
message: string;
|
|
4768
5081
|
};
|
|
@@ -4778,6 +5091,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4778
5091
|
*/
|
|
4779
5092
|
removeIntegrationDevSpace: (integrationName: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
4780
5093
|
error: {
|
|
5094
|
+
/** @format int32 */
|
|
4781
5095
|
code: 404;
|
|
4782
5096
|
message: string;
|
|
4783
5097
|
};
|
|
@@ -4791,6 +5105,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4791
5105
|
* @secure
|
|
4792
5106
|
*/
|
|
4793
5107
|
renderIntegrationUiWithGet: (integrationName: string, query: {
|
|
5108
|
+
/** LZ-string compressed JSON request */
|
|
4794
5109
|
request: string;
|
|
4795
5110
|
}, params?: RequestParams) => Promise<HttpResponse<ContentKitRenderOutput, Error>>;
|
|
4796
5111
|
/**
|
|
@@ -4812,10 +5127,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4812
5127
|
* @secure
|
|
4813
5128
|
*/
|
|
4814
5129
|
queueIntegrationTask: (integrationName: string, data: {
|
|
5130
|
+
/** Payload for the integration task */
|
|
4815
5131
|
task: object;
|
|
5132
|
+
/**
|
|
5133
|
+
* Number of seconds to wait before executing the task, defaults to 0
|
|
5134
|
+
* @min 0
|
|
5135
|
+
* @max 86400
|
|
5136
|
+
*/
|
|
4816
5137
|
schedule?: number;
|
|
4817
5138
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
4818
5139
|
error: {
|
|
5140
|
+
/** @format int32 */
|
|
4819
5141
|
code: 404;
|
|
4820
5142
|
message: string;
|
|
4821
5143
|
};
|
|
@@ -4831,6 +5153,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4831
5153
|
*/
|
|
4832
5154
|
getIntegrationInstallationById: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error | {
|
|
4833
5155
|
error: {
|
|
5156
|
+
/** @format int32 */
|
|
4834
5157
|
code: 404;
|
|
4835
5158
|
message: string;
|
|
4836
5159
|
};
|
|
@@ -4856,6 +5179,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4856
5179
|
*/
|
|
4857
5180
|
uninstallIntegration: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
4858
5181
|
error: {
|
|
5182
|
+
/** @format int32 */
|
|
4859
5183
|
code: 404;
|
|
4860
5184
|
message: string;
|
|
4861
5185
|
};
|
|
@@ -4871,6 +5195,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4871
5195
|
*/
|
|
4872
5196
|
createIntegrationInstallationToken: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<APITemporaryToken, Error | {
|
|
4873
5197
|
error: {
|
|
5198
|
+
/** @format int32 */
|
|
4874
5199
|
code: 404;
|
|
4875
5200
|
message: string;
|
|
4876
5201
|
};
|
|
@@ -4885,7 +5210,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4885
5210
|
* @secure
|
|
4886
5211
|
*/
|
|
4887
5212
|
listIntegrationInstallationSpaces: (integrationName: string, installationId: string, query?: {
|
|
5213
|
+
/** Identifier of the page results to fetch. */
|
|
4888
5214
|
page?: string;
|
|
5215
|
+
/** The number of results per page */
|
|
4889
5216
|
limit?: number;
|
|
4890
5217
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4891
5218
|
items: IntegrationSpaceInstallation[];
|
|
@@ -4899,9 +5226,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4899
5226
|
* @secure
|
|
4900
5227
|
*/
|
|
4901
5228
|
installIntegrationOnSpace: (integrationName: string, installationId: string, data: {
|
|
5229
|
+
/** ID of the space to install the integration on */
|
|
4902
5230
|
space: string;
|
|
4903
5231
|
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
|
|
4904
5232
|
error: {
|
|
5233
|
+
/** @format int32 */
|
|
4905
5234
|
code: 404;
|
|
4906
5235
|
message: string;
|
|
4907
5236
|
};
|
|
@@ -4917,6 +5246,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4917
5246
|
*/
|
|
4918
5247
|
getIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
|
|
4919
5248
|
error: {
|
|
5249
|
+
/** @format int32 */
|
|
4920
5250
|
code: 404;
|
|
4921
5251
|
message: string;
|
|
4922
5252
|
};
|
|
@@ -4951,7 +5281,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4951
5281
|
* @secure
|
|
4952
5282
|
*/
|
|
4953
5283
|
listOrganizationsForAuthenticatedUser: (query?: {
|
|
5284
|
+
/** Identifier of the page results to fetch. */
|
|
4954
5285
|
page?: string;
|
|
5286
|
+
/** The number of results per page */
|
|
4955
5287
|
limit?: number;
|
|
4956
5288
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4957
5289
|
items: Organization[];
|
|
@@ -4977,6 +5309,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4977
5309
|
*/
|
|
4978
5310
|
getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
|
|
4979
5311
|
error: {
|
|
5312
|
+
/** @format int32 */
|
|
4980
5313
|
code: 404;
|
|
4981
5314
|
message: string;
|
|
4982
5315
|
};
|
|
@@ -4992,6 +5325,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4992
5325
|
*/
|
|
4993
5326
|
deleteOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
4994
5327
|
error: {
|
|
5328
|
+
/** @format int32 */
|
|
4995
5329
|
code: 404;
|
|
4996
5330
|
message: string;
|
|
4997
5331
|
};
|
|
@@ -5006,9 +5340,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5006
5340
|
* @secure
|
|
5007
5341
|
*/
|
|
5008
5342
|
listMembersInOrganizationById: (organizationId: string, query?: {
|
|
5343
|
+
/** Identifier of the page results to fetch. */
|
|
5009
5344
|
page?: string;
|
|
5345
|
+
/** The number of results per page */
|
|
5010
5346
|
limit?: number;
|
|
5347
|
+
/** The Role to filter the member list by */
|
|
5011
5348
|
role?: MemberRole | 'guest';
|
|
5349
|
+
/** A query to filter the member list (displayName and email) */
|
|
5012
5350
|
search?: string;
|
|
5013
5351
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5014
5352
|
items: OrganizationMember[];
|
|
@@ -5033,6 +5371,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5033
5371
|
* @secure
|
|
5034
5372
|
*/
|
|
5035
5373
|
updateMemberInOrganizationById: (organizationId: string, userId: string, data: {
|
|
5374
|
+
/** The role of a member in an organization, null for guests */
|
|
5036
5375
|
role?: MemberRoleOrGuest;
|
|
5037
5376
|
}, params?: RequestParams) => Promise<HttpResponse<OrganizationMember, Error>>;
|
|
5038
5377
|
/**
|
|
@@ -5075,7 +5414,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5075
5414
|
* @secure
|
|
5076
5415
|
*/
|
|
5077
5416
|
listSpacesForOrganizationMember: (organizationId: string, userId: string, query?: {
|
|
5417
|
+
/** Identifier of the page results to fetch. */
|
|
5078
5418
|
page?: string;
|
|
5419
|
+
/** The number of results per page */
|
|
5079
5420
|
limit?: number;
|
|
5080
5421
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5081
5422
|
items: MemberContentPermission[];
|
|
@@ -5090,8 +5431,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5090
5431
|
* @secure
|
|
5091
5432
|
*/
|
|
5092
5433
|
listTeamsForOrganizationMember: (organizationId: string, userId: string, query?: {
|
|
5434
|
+
/** Identifier of the page results to fetch. */
|
|
5093
5435
|
page?: string;
|
|
5436
|
+
/** The number of results per page */
|
|
5094
5437
|
limit?: number;
|
|
5438
|
+
/** If provided, only teams whose name contains the given parameter will be returned. Case insensitive. */
|
|
5095
5439
|
title?: string;
|
|
5096
5440
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5097
5441
|
items: {
|
|
@@ -5109,9 +5453,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5109
5453
|
* @secure
|
|
5110
5454
|
*/
|
|
5111
5455
|
listTeamsInOrganizationById: (organizationId: string, query?: {
|
|
5456
|
+
/** Identifier of the page results to fetch. */
|
|
5112
5457
|
page?: string;
|
|
5458
|
+
/** The number of results per page */
|
|
5113
5459
|
limit?: number;
|
|
5460
|
+
/** The unique identifier of a member of the organization. Only teams they can manage will be returned. */
|
|
5114
5461
|
owner?: string;
|
|
5462
|
+
/** If provided, only teams whose name contains the given parameter will be returned. Case insensitive. */
|
|
5115
5463
|
title?: string;
|
|
5116
5464
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5117
5465
|
items: OrganizationTeam[];
|
|
@@ -5126,6 +5474,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5126
5474
|
* @secure
|
|
5127
5475
|
*/
|
|
5128
5476
|
createOrganizationTeam: (organizationId: string, data: {
|
|
5477
|
+
/** Title of the team */
|
|
5129
5478
|
title: OrganizationTeamTitle;
|
|
5130
5479
|
members?: string[];
|
|
5131
5480
|
}, params?: RequestParams) => Promise<HttpResponse<OrganizationTeam, Error>>;
|
|
@@ -5149,6 +5498,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5149
5498
|
* @secure
|
|
5150
5499
|
*/
|
|
5151
5500
|
updateTeamInOrganizationById: (organizationId: string, teamId: string, data: {
|
|
5501
|
+
/** Title of the team */
|
|
5152
5502
|
title: OrganizationTeamTitle;
|
|
5153
5503
|
}, params?: RequestParams) => Promise<HttpResponse<OrganizationTeam, Error>>;
|
|
5154
5504
|
/**
|
|
@@ -5185,7 +5535,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5185
5535
|
* @secure
|
|
5186
5536
|
*/
|
|
5187
5537
|
listTeamMembersInOrganizationById: (organizationId: string, teamId: string, query?: {
|
|
5538
|
+
/** Identifier of the page results to fetch. */
|
|
5188
5539
|
page?: string;
|
|
5540
|
+
/** The number of results per page */
|
|
5189
5541
|
limit?: number;
|
|
5190
5542
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5191
5543
|
items: OrganizationTeamMember[];
|
|
@@ -5200,6 +5552,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5200
5552
|
* @secure
|
|
5201
5553
|
*/
|
|
5202
5554
|
addMemberToOrganizationTeamById: (organizationId: string, teamId: string, userId: string, data: {
|
|
5555
|
+
/**
|
|
5556
|
+
* "The role of a team member.
|
|
5557
|
+
* "owner": Can manage team members.
|
|
5558
|
+
* "member": Is a member of the team.
|
|
5559
|
+
*/
|
|
5203
5560
|
role?: TeamMemberRole;
|
|
5204
5561
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
5205
5562
|
/**
|
|
@@ -5223,10 +5580,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5223
5580
|
*/
|
|
5224
5581
|
inviteUsersToOrganization: (organizationId: string, data: RequestInviteUsersToOrganization, params?: RequestParams) => Promise<HttpResponse<{
|
|
5225
5582
|
users: string[];
|
|
5583
|
+
/** The number of users who were added to the organization */
|
|
5226
5584
|
invited: number;
|
|
5227
5585
|
failedSSOEmails?: string[];
|
|
5228
5586
|
}, Error | {
|
|
5229
5587
|
error: {
|
|
5588
|
+
/** @format int32 */
|
|
5230
5589
|
code: 400;
|
|
5231
5590
|
message: string;
|
|
5232
5591
|
};
|
|
@@ -5281,10 +5640,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5281
5640
|
* @secure
|
|
5282
5641
|
*/
|
|
5283
5642
|
transferOrganization: (organizationId: string, data: {
|
|
5643
|
+
/** The unique id of the organization to transfer into the current one. */
|
|
5284
5644
|
source: string;
|
|
5645
|
+
/** Determine the default role members of the source org will have when they are transferred into the target org. Defaults to null, which means no access. */
|
|
5285
5646
|
defaultOrgRole?: MemberRoleOrGuest | 'saml';
|
|
5286
5647
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5648
|
+
/** The unique id of the collection created in the target organization containing the content of the source organization. */
|
|
5287
5649
|
collection: string;
|
|
5650
|
+
/** The new hostname if the source organization needed to change hostname. */
|
|
5288
5651
|
newSourceHostname?: string;
|
|
5289
5652
|
}, Error>>;
|
|
5290
5653
|
/**
|
|
@@ -5298,7 +5661,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5298
5661
|
*/
|
|
5299
5662
|
searchOrganizationContent: (organizationId: string, query: {
|
|
5300
5663
|
query: string;
|
|
5664
|
+
/** Identifier of the page results to fetch. */
|
|
5301
5665
|
page?: string;
|
|
5666
|
+
/** The number of results per page */
|
|
5302
5667
|
limit?: number;
|
|
5303
5668
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5304
5669
|
items: SearchSpaceResult[];
|
|
@@ -5313,8 +5678,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5313
5678
|
* @secure
|
|
5314
5679
|
*/
|
|
5315
5680
|
listSpacesInOrganizationById: (organizationId: string, query?: {
|
|
5681
|
+
/** Identifier of the page results to fetch. */
|
|
5316
5682
|
page?: string;
|
|
5683
|
+
/** The number of results per page */
|
|
5317
5684
|
limit?: number;
|
|
5685
|
+
/** If defined, only content with this visibility will be returned. */
|
|
5318
5686
|
visibility?: ContentVisibility;
|
|
5319
5687
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5320
5688
|
items: Space[];
|
|
@@ -5339,8 +5707,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5339
5707
|
* @secure
|
|
5340
5708
|
*/
|
|
5341
5709
|
listSpacesWithGitSyncInOrganizationById: (organizationId: string, query?: {
|
|
5710
|
+
/** Identifier of the page results to fetch. */
|
|
5342
5711
|
page?: string;
|
|
5712
|
+
/** The number of results per page */
|
|
5343
5713
|
limit?: number;
|
|
5714
|
+
/** If defined, only spaces with matching Git sync status are returned */
|
|
5344
5715
|
status?: GitSyncOperationState;
|
|
5345
5716
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5346
5717
|
items: {
|
|
@@ -5358,8 +5729,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5358
5729
|
* @secure
|
|
5359
5730
|
*/
|
|
5360
5731
|
listCollectionsInOrganizationById: (organizationId: string, query?: {
|
|
5732
|
+
/** Identifier of the page results to fetch. */
|
|
5361
5733
|
page?: string;
|
|
5734
|
+
/** The number of results per page */
|
|
5362
5735
|
limit?: number;
|
|
5736
|
+
/**
|
|
5737
|
+
* If true, all nested collections will be listed
|
|
5738
|
+
* @default true
|
|
5739
|
+
*/
|
|
5363
5740
|
nested?: boolean;
|
|
5364
5741
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5365
5742
|
items: Collection[];
|
|
@@ -5374,7 +5751,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5374
5751
|
* @secure
|
|
5375
5752
|
*/
|
|
5376
5753
|
createCollection: (organizationId: string, data: {
|
|
5754
|
+
/** @maxLength 50 */
|
|
5377
5755
|
title?: string;
|
|
5756
|
+
/** ID of a parent collection */
|
|
5378
5757
|
parent?: string;
|
|
5379
5758
|
}, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
|
|
5380
5759
|
/**
|
|
@@ -5387,6 +5766,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5387
5766
|
* @secure
|
|
5388
5767
|
*/
|
|
5389
5768
|
setupDirectorySync: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
5769
|
+
/** The URL to navigate to to continue Directory Sync setup. */
|
|
5390
5770
|
setupUrl: string;
|
|
5391
5771
|
}, Error>>;
|
|
5392
5772
|
/**
|
|
@@ -5411,11 +5791,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5411
5791
|
* @secure
|
|
5412
5792
|
*/
|
|
5413
5793
|
syncDirectorySyncGroupsToTeams: (organizationId: string, data: {
|
|
5794
|
+
/**
|
|
5795
|
+
* A list of groups to teams pairs to sync.
|
|
5796
|
+
* The group_id is required and the team_id is optional.
|
|
5797
|
+
* If the latter is omitted, a new team will be created from the group's data.
|
|
5798
|
+
*/
|
|
5414
5799
|
to_sync: {
|
|
5800
|
+
/** The unique identifier of the group for the given identity provider. */
|
|
5415
5801
|
group_id: string;
|
|
5802
|
+
/** The unique identifier of the team for the given identity provider. */
|
|
5416
5803
|
team_id?: string;
|
|
5417
5804
|
}[];
|
|
5418
5805
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5806
|
+
/**
|
|
5807
|
+
* The list of synced pairs, mapped to the original pairs given to the sync parameters.
|
|
5808
|
+
* Either the group_id and team_id will be defined, or the error will be defined to describe why it failed.
|
|
5809
|
+
* Use the success parameter to know if the pair sync was sucessful or not.
|
|
5810
|
+
*/
|
|
5419
5811
|
synced: OrganizationDirectorySyncGroupTeamStatus[];
|
|
5420
5812
|
}, Error>>;
|
|
5421
5813
|
/**
|
|
@@ -5428,7 +5820,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5428
5820
|
* @secure
|
|
5429
5821
|
*/
|
|
5430
5822
|
listOrganizationCustomFields: (organizationId: string, query?: {
|
|
5823
|
+
/** Identifier of the page results to fetch. */
|
|
5431
5824
|
page?: string;
|
|
5825
|
+
/** The number of results per page */
|
|
5432
5826
|
limit?: number;
|
|
5433
5827
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5434
5828
|
items: CustomField[];
|
|
@@ -5461,6 +5855,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5461
5855
|
*/
|
|
5462
5856
|
getOrganizationCustomFieldByName: (organizationId: string, fieldName: string, params?: RequestParams) => Promise<HttpResponse<CustomField, Error | {
|
|
5463
5857
|
error: {
|
|
5858
|
+
/** @format int32 */
|
|
5464
5859
|
code: 404;
|
|
5465
5860
|
message: string;
|
|
5466
5861
|
};
|
|
@@ -5500,7 +5895,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5500
5895
|
* @secure
|
|
5501
5896
|
*/
|
|
5502
5897
|
listOrganizationIntegrations: (organizationId: string, query?: {
|
|
5898
|
+
/** Identifier of the page results to fetch. */
|
|
5503
5899
|
page?: string;
|
|
5900
|
+
/** The number of results per page */
|
|
5504
5901
|
limit?: number;
|
|
5505
5902
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5506
5903
|
items: Integration[];
|
|
@@ -5518,6 +5915,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5518
5915
|
status: IntegrationInstallationStatus;
|
|
5519
5916
|
}, Error | {
|
|
5520
5917
|
error: {
|
|
5918
|
+
/** @format int32 */
|
|
5521
5919
|
code: 404;
|
|
5522
5920
|
message: string;
|
|
5523
5921
|
};
|
|
@@ -5532,14 +5930,37 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5532
5930
|
* @secure
|
|
5533
5931
|
*/
|
|
5534
5932
|
listOrganizationInstallations: (organizationId: string, query?: {
|
|
5933
|
+
/** Identifier of the page results to fetch. */
|
|
5535
5934
|
page?: string;
|
|
5935
|
+
/** The number of results per page */
|
|
5536
5936
|
limit?: number;
|
|
5537
5937
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5538
5938
|
items: {
|
|
5939
|
+
/** Installation of an integration on an account */
|
|
5539
5940
|
installation: IntegrationInstallation;
|
|
5540
5941
|
integration: Integration;
|
|
5541
5942
|
}[];
|
|
5542
5943
|
}, Error>>;
|
|
5944
|
+
/**
|
|
5945
|
+
* No description
|
|
5946
|
+
*
|
|
5947
|
+
* @tags organizations
|
|
5948
|
+
* @name ListOrgExperimentalFeatures
|
|
5949
|
+
* @summary List experiemental features for the given organization.
|
|
5950
|
+
* @request GET:/orgs/{organizationId}/experiments
|
|
5951
|
+
* @secure
|
|
5952
|
+
*/
|
|
5953
|
+
listOrgExperimentalFeatures: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationExperimentalFeature[], Error>>;
|
|
5954
|
+
/**
|
|
5955
|
+
* No description
|
|
5956
|
+
*
|
|
5957
|
+
* @tags organizations
|
|
5958
|
+
* @name UpdateOrgExperimentalFeatures
|
|
5959
|
+
* @summary Toggle on or off experimental features.
|
|
5960
|
+
* @request POST:/orgs/{organizationId}/experiments
|
|
5961
|
+
* @secure
|
|
5962
|
+
*/
|
|
5963
|
+
updateOrgExperimentalFeatures: (organizationId: string, data: Record<string, boolean>, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
5543
5964
|
/**
|
|
5544
5965
|
* No description
|
|
5545
5966
|
*
|
|
@@ -5550,7 +5971,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5550
5971
|
* @secure
|
|
5551
5972
|
*/
|
|
5552
5973
|
listEntitySchemas: (organizationId: string, query?: {
|
|
5974
|
+
/** Identifier of the page results to fetch. */
|
|
5553
5975
|
page?: string;
|
|
5976
|
+
/** The number of results per page */
|
|
5554
5977
|
limit?: number;
|
|
5555
5978
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5556
5979
|
items: EntitySchema[];
|
|
@@ -5595,8 +6018,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5595
6018
|
* @secure
|
|
5596
6019
|
*/
|
|
5597
6020
|
listSchemaEntities: (organizationId: string, entityType: EntityType, query?: {
|
|
6021
|
+
/** Identifier of the page results to fetch. */
|
|
5598
6022
|
page?: string;
|
|
6023
|
+
/** The number of results per page */
|
|
5599
6024
|
limit?: number;
|
|
6025
|
+
/** Query to filter entities with, ex: a == 'something' && b >= 10 */
|
|
5600
6026
|
query?: string;
|
|
5601
6027
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5602
6028
|
items: Entity[];
|
|
@@ -5611,7 +6037,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5611
6037
|
* @secure
|
|
5612
6038
|
*/
|
|
5613
6039
|
upsertSchemaEntities: (organizationId: string, entityType: EntityType, data: {
|
|
6040
|
+
/** If true, all entities not listed in the requests will be deleted */
|
|
5614
6041
|
delete?: boolean | EntityId[];
|
|
6042
|
+
/** Array of entities to create/update. */
|
|
5615
6043
|
entities?: UpsertEntity[];
|
|
5616
6044
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
5617
6045
|
/**
|
|
@@ -5635,9 +6063,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5635
6063
|
* @secure
|
|
5636
6064
|
*/
|
|
5637
6065
|
listCaptures: (organizationId: string, query?: {
|
|
6066
|
+
/** Output format for the content. */
|
|
5638
6067
|
format?: 'document' | 'markdown';
|
|
6068
|
+
/** Identifier of the page results to fetch. */
|
|
5639
6069
|
page?: string;
|
|
6070
|
+
/** The number of results per page */
|
|
5640
6071
|
limit?: number;
|
|
6072
|
+
/** The context in which the item was captured */
|
|
5641
6073
|
context?: 'walkthrough' | 'thread';
|
|
5642
6074
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5643
6075
|
items: Capture[];
|
|
@@ -5652,9 +6084,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5652
6084
|
* @secure
|
|
5653
6085
|
*/
|
|
5654
6086
|
startCapture: (organizationId: string, data: {
|
|
6087
|
+
/** Optional title describing the capture */
|
|
5655
6088
|
title?: CaptureTitle;
|
|
5656
6089
|
context: CaptureContext;
|
|
6090
|
+
/** ID in the original source of the capture. */
|
|
5657
6091
|
externalId?: string;
|
|
6092
|
+
/**
|
|
6093
|
+
* URL of the original source of the capture.
|
|
6094
|
+
* @format uri
|
|
6095
|
+
*/
|
|
5658
6096
|
externalURL?: string;
|
|
5659
6097
|
}, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
|
|
5660
6098
|
/**
|
|
@@ -5668,6 +6106,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5668
6106
|
* @secure
|
|
5669
6107
|
*/
|
|
5670
6108
|
getCapture: (organizationId: string, captureId: string, query?: {
|
|
6109
|
+
/** Output format for the content. */
|
|
5671
6110
|
format?: 'document' | 'markdown';
|
|
5672
6111
|
}, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
|
|
5673
6112
|
/**
|
|
@@ -5714,9 +6153,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5714
6153
|
* @secure
|
|
5715
6154
|
*/
|
|
5716
6155
|
stopCapture: (organizationId: string, captureId: string, data: object, query?: {
|
|
6156
|
+
/** Output format for the content. */
|
|
5717
6157
|
format?: 'document' | 'markdown';
|
|
5718
6158
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5719
6159
|
capture: Capture;
|
|
6160
|
+
/** Example questions that would be answered by the content of this capture. */
|
|
5720
6161
|
followupQuestions?: string[];
|
|
5721
6162
|
}, Error>>;
|
|
5722
6163
|
/**
|
|
@@ -5729,9 +6170,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5729
6170
|
* @secure
|
|
5730
6171
|
*/
|
|
5731
6172
|
listSnippets: (organizationId: string, query?: {
|
|
6173
|
+
/** Output format for the content. */
|
|
5732
6174
|
format?: 'document' | 'markdown';
|
|
6175
|
+
/** Identifier of the page results to fetch. */
|
|
5733
6176
|
page?: string;
|
|
6177
|
+
/** The number of results per page */
|
|
5734
6178
|
limit?: number;
|
|
6179
|
+
/** If specified, only snippets from the specified source will be returned. */
|
|
5735
6180
|
source?: string;
|
|
5736
6181
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5737
6182
|
items: Snippet[];
|
|
@@ -5756,6 +6201,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5756
6201
|
* @secure
|
|
5757
6202
|
*/
|
|
5758
6203
|
getSnippet: (organizationId: string, snippetId: string, query?: {
|
|
6204
|
+
/** Output format for the content. */
|
|
5759
6205
|
format?: 'document' | 'markdown';
|
|
5760
6206
|
}, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
|
|
5761
6207
|
/**
|
|
@@ -5787,6 +6233,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5787
6233
|
* @secure
|
|
5788
6234
|
*/
|
|
5789
6235
|
askInOrganization: (organizationId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
|
|
6236
|
+
/** Answer from AI for a question asked on a content. */
|
|
5790
6237
|
answer?: SearchAIAnswer;
|
|
5791
6238
|
}, Error>>;
|
|
5792
6239
|
/**
|
|
@@ -5799,10 +6246,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5799
6246
|
* @secure
|
|
5800
6247
|
*/
|
|
5801
6248
|
listContentAuditRelations: (organizationId: string, query?: {
|
|
6249
|
+
/** Identifier of the page results to fetch. */
|
|
5802
6250
|
page?: string;
|
|
6251
|
+
/** The number of results per page */
|
|
5803
6252
|
limit?: number;
|
|
6253
|
+
/**
|
|
6254
|
+
* Status of the audit relation to filter on
|
|
6255
|
+
* @default "pending"
|
|
6256
|
+
*/
|
|
5804
6257
|
status?: ContentAuditRelationStatus | 'all';
|
|
6258
|
+
/** Space concerned by the relation */
|
|
5805
6259
|
space?: string;
|
|
6260
|
+
/**
|
|
6261
|
+
* Type of the audit relation to filter on
|
|
6262
|
+
* @default "all"
|
|
6263
|
+
*/
|
|
5806
6264
|
type?: ContentAuditRelationType | 'all';
|
|
5807
6265
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5808
6266
|
items: ContentAuditRelation[];
|
|
@@ -5818,6 +6276,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5818
6276
|
*/
|
|
5819
6277
|
getContentAuditRelationById: (organizationId: string, relationId: string, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
|
|
5820
6278
|
error: {
|
|
6279
|
+
/** @format int32 */
|
|
5821
6280
|
code: 404;
|
|
5822
6281
|
message: string;
|
|
5823
6282
|
};
|
|
@@ -5833,6 +6292,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5833
6292
|
*/
|
|
5834
6293
|
updateContentAuditRelationStatusById: (organizationId: string, relationId: string, data: ContentAuditRelationStatusUpdate, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
|
|
5835
6294
|
error: {
|
|
6295
|
+
/** @format int32 */
|
|
5836
6296
|
code: 404;
|
|
5837
6297
|
message: string;
|
|
5838
6298
|
};
|
|
@@ -5847,9 +6307,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5847
6307
|
* @secure
|
|
5848
6308
|
*/
|
|
5849
6309
|
getContentAuditSourceContentById: (organizationId: string, sourceId: string, query?: {
|
|
6310
|
+
/** Output format for the content. */
|
|
5850
6311
|
format?: 'document' | 'markdown';
|
|
5851
6312
|
}, params?: RequestParams) => Promise<HttpResponse<Document, Error | {
|
|
5852
6313
|
error: {
|
|
6314
|
+
/** @format int32 */
|
|
5853
6315
|
code: 404;
|
|
5854
6316
|
message: string;
|
|
5855
6317
|
};
|
|
@@ -5880,6 +6342,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5880
6342
|
* @secure
|
|
5881
6343
|
*/
|
|
5882
6344
|
getContentByUrl: (query: {
|
|
6345
|
+
/** URL to resolve */
|
|
5883
6346
|
url: string;
|
|
5884
6347
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5885
6348
|
collection: Collection;
|
|
@@ -5898,6 +6361,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5898
6361
|
* @secure
|
|
5899
6362
|
*/
|
|
5900
6363
|
getEmbedByUrl: (query: {
|
|
6364
|
+
/** URL to resolve */
|
|
5901
6365
|
url: string;
|
|
5902
6366
|
}, params?: RequestParams) => Promise<HttpResponse<Embed, Error>>;
|
|
5903
6367
|
/**
|
|
@@ -5910,7 +6374,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5910
6374
|
* @secure
|
|
5911
6375
|
*/
|
|
5912
6376
|
getPublishedContentByUrl: (query: {
|
|
6377
|
+
/** URL to resolve */
|
|
5913
6378
|
url: URL;
|
|
6379
|
+
/** JWT token generated for a visitor auth session */
|
|
5914
6380
|
visitorAuthToken?: string;
|
|
5915
6381
|
}, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup, Error>>;
|
|
5916
6382
|
};
|