@gitbook/api 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +2082 -110
- package/dist/index.cjs +768 -5
- package/dist/index.js +757 -4
- package/package.json +1 -1
- package/spec/openapi.json +11200 -4528
- package/spec/openapi.yaml +5395 -1367
package/dist/client.d.ts
CHANGED
|
@@ -19,6 +19,26 @@ export declare type URL = string;
|
|
|
19
19
|
* @format date
|
|
20
20
|
*/
|
|
21
21
|
export declare type Date = string;
|
|
22
|
+
/**
|
|
23
|
+
* Unicode codepoint or character of the emoji
|
|
24
|
+
* @example 🎉
|
|
25
|
+
*/
|
|
26
|
+
export declare type Emoji = string;
|
|
27
|
+
/**
|
|
28
|
+
* An emoji reaction by one or many users
|
|
29
|
+
*/
|
|
30
|
+
export interface EmojiReaction {
|
|
31
|
+
/** The Emoji of the reaction */
|
|
32
|
+
emoji: string;
|
|
33
|
+
/** The number of users who reacted with this emoji */
|
|
34
|
+
count: number;
|
|
35
|
+
/** The users who reacted with this emoji */
|
|
36
|
+
users: {
|
|
37
|
+
user: User;
|
|
38
|
+
reactedAt: Date;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export declare type EmojiReactions = EmojiReaction[];
|
|
22
42
|
export interface RequestSpaceTrackPageView {
|
|
23
43
|
/** Unique identifier of the page. */
|
|
24
44
|
pageId: string;
|
|
@@ -39,19 +59,26 @@ export interface RequestPublishIntegration {
|
|
|
39
59
|
* @format byte
|
|
40
60
|
*/
|
|
41
61
|
icon?: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
62
|
+
/** Title of the integration */
|
|
63
|
+
title: IntegrationTitle;
|
|
64
|
+
/** Description of the integration */
|
|
65
|
+
description: IntegrationDescription;
|
|
66
|
+
/** Long form markdown summary of the integration */
|
|
67
|
+
summary?: IntegrationSummary;
|
|
45
68
|
previewImages?: string[];
|
|
46
69
|
visibility?: IntegrationVisibility;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
70
|
+
/** Permissions that should be granted to the integration */
|
|
71
|
+
scopes: IntegrationScopes;
|
|
72
|
+
/** Categories for which the integration is listed in the marketplace */
|
|
73
|
+
categories?: IntegrationCategories;
|
|
74
|
+
/** Custom blocks defined by this integration. */
|
|
75
|
+
blocks?: IntegrationBlocks;
|
|
76
|
+
/** External urls configured by the developer of the integration */
|
|
77
|
+
externalLinks?: IntegrationExternalLinks;
|
|
51
78
|
configurations?: IntegrationConfigurations;
|
|
52
79
|
/** Content of the script to use */
|
|
53
80
|
script: string;
|
|
54
|
-
/** The subdomain of the organization under which the integration should be published */
|
|
81
|
+
/** The ID or subdomain of the organization under which the integration should be published */
|
|
55
82
|
organization?: string;
|
|
56
83
|
/** Secrets stored on the integration and passed at runtime. */
|
|
57
84
|
secrets?: IntegrationSecrets;
|
|
@@ -63,8 +90,12 @@ export interface RequestPublishIntegration {
|
|
|
63
90
|
contentSecurityPolicy?: IntegrationContentSecurityPolicy;
|
|
64
91
|
}
|
|
65
92
|
export interface RequestUpdateIntegrationInstallation {
|
|
66
|
-
|
|
67
|
-
|
|
93
|
+
/** External IDs assigned by the integration. */
|
|
94
|
+
externalIds?: IntegrationInstallationExternalIds;
|
|
95
|
+
/** Configuration of the integration at the account level */
|
|
96
|
+
configuration?: IntegrationInstallationConfiguration;
|
|
97
|
+
/** Describe whether all spaces have been selected or there's a selection involved */
|
|
98
|
+
space_selection?: IntegrationInstallationSpaceSelection;
|
|
68
99
|
}
|
|
69
100
|
export interface RequestUpgradeOrganizationBilling {
|
|
70
101
|
/** Name of the product */
|
|
@@ -105,6 +136,8 @@ export interface RequestImportGitRepository {
|
|
|
105
136
|
force?: boolean;
|
|
106
137
|
/** If true, the import will generate a revision without updating the space primary content. */
|
|
107
138
|
standalone?: boolean;
|
|
139
|
+
/** Optional metadata to store on the space about the Git provider */
|
|
140
|
+
gitInfo?: RequestUpdateSpaceGitInfo;
|
|
108
141
|
}
|
|
109
142
|
export interface RequestExportToGitRepository {
|
|
110
143
|
/** URL of the Git repository to export to. It can contain basic auth credentials. */
|
|
@@ -122,12 +155,34 @@ export interface RequestExportToGitRepository {
|
|
|
122
155
|
/** Path to a root directory for the project in the repository. */
|
|
123
156
|
repoProjectDirectory?: string;
|
|
124
157
|
force?: boolean;
|
|
158
|
+
/** Optional metadata to store on the space about the Git provider */
|
|
159
|
+
gitInfo?: RequestUpdateSpaceGitInfo;
|
|
125
160
|
}
|
|
126
161
|
export interface RequestImportContent {
|
|
127
162
|
/** URL of the content to import. */
|
|
128
163
|
url: string;
|
|
129
164
|
source: ImportContentSource;
|
|
130
165
|
}
|
|
166
|
+
export interface RequestCreateSpace {
|
|
167
|
+
title?: string;
|
|
168
|
+
/** Unicode codepoint or character of the emoji */
|
|
169
|
+
emoji?: Emoji;
|
|
170
|
+
/** Private spaces are no longer supported by GitBook. */
|
|
171
|
+
private?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
|
|
174
|
+
* - `website`: A single web page or a collection of related web pages under a single domain.
|
|
175
|
+
* - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
|
|
176
|
+
* - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
|
|
177
|
+
* - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
|
|
178
|
+
* - `database`: A databse entity, persisting data. A database is typically used by services or applications.
|
|
179
|
+
* - `other`: A space that doesn’t match the service, library, or application type.
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
type?: SpaceType;
|
|
183
|
+
/** ID of a parent collection */
|
|
184
|
+
parent?: string;
|
|
185
|
+
}
|
|
131
186
|
export interface RequestCreateChangeRequest {
|
|
132
187
|
/** Subject of the change-request */
|
|
133
188
|
subject?: string;
|
|
@@ -135,16 +190,38 @@ export interface RequestCreateChangeRequest {
|
|
|
135
190
|
export interface RequestRenderIntegrationUI {
|
|
136
191
|
/** ID of the component to render in the integration. */
|
|
137
192
|
componentId: string;
|
|
138
|
-
/** ID of the space to render. */
|
|
139
|
-
spaceId: string;
|
|
140
193
|
/** Current properties of the UI. */
|
|
141
194
|
props: object;
|
|
142
195
|
/** Current local state of the UI. */
|
|
143
196
|
state?: object;
|
|
197
|
+
/** Object representing the context in which a ContentKit component is rendered. */
|
|
144
198
|
context: ContentKitContext;
|
|
145
199
|
/** Custom action to re-render the block. */
|
|
146
200
|
action?: ContentKitAction;
|
|
147
201
|
}
|
|
202
|
+
export interface RequestUpdateContentPublishingAuth {
|
|
203
|
+
/**
|
|
204
|
+
* A fallback URL that will be used if authentication fails.
|
|
205
|
+
* @format uri
|
|
206
|
+
*/
|
|
207
|
+
fallbackURL?: string;
|
|
208
|
+
}
|
|
209
|
+
export interface RequestCreateOrganization {
|
|
210
|
+
/** Name of the organization */
|
|
211
|
+
title: OrganizationTitle;
|
|
212
|
+
emailDomains?: OrganizationEmailDomains;
|
|
213
|
+
type?: OrganizationType;
|
|
214
|
+
useCase?: OrganizationUseCase;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Update metadata about the Git provider on the space
|
|
218
|
+
*/
|
|
219
|
+
export interface RequestUpdateSpaceGitInfo {
|
|
220
|
+
/** The git provider */
|
|
221
|
+
provider?: 'github' | 'gitlab';
|
|
222
|
+
/** The repository's tree URL */
|
|
223
|
+
url?: string;
|
|
224
|
+
}
|
|
148
225
|
export interface ApiInformation {
|
|
149
226
|
/** Current release of GitBook */
|
|
150
227
|
version: string;
|
|
@@ -187,8 +264,31 @@ export interface User {
|
|
|
187
264
|
/** URL of the user's profile picture */
|
|
188
265
|
photoURL?: string;
|
|
189
266
|
}
|
|
267
|
+
/**
|
|
268
|
+
* The API token details, excluding the token itself.
|
|
269
|
+
*/
|
|
270
|
+
export interface UserAPIToken {
|
|
271
|
+
/** The API token ID. */
|
|
272
|
+
id: string;
|
|
273
|
+
/** The API token name. */
|
|
274
|
+
label: string;
|
|
275
|
+
/** The API token creation date. */
|
|
276
|
+
createdAt: Date;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* The API token details, including the token itself.
|
|
280
|
+
*/
|
|
281
|
+
export declare type UserAPITokenExtended = UserAPIToken & {
|
|
282
|
+
token: string;
|
|
283
|
+
};
|
|
190
284
|
export interface UserTarget {
|
|
191
|
-
user
|
|
285
|
+
user: string;
|
|
286
|
+
}
|
|
287
|
+
export interface Team {
|
|
288
|
+
/** Type of Object, always equals to "team" */
|
|
289
|
+
object: 'team';
|
|
290
|
+
/** Unique identifier for the team */
|
|
291
|
+
id: string;
|
|
192
292
|
}
|
|
193
293
|
/**
|
|
194
294
|
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
@@ -207,6 +307,27 @@ export declare enum ContentVisibility {
|
|
|
207
307
|
InCollection = "in-collection",
|
|
208
308
|
Private = "private"
|
|
209
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Contributor towards content.
|
|
312
|
+
*/
|
|
313
|
+
export interface UserContributor {
|
|
314
|
+
updatedAt: Date;
|
|
315
|
+
count: number;
|
|
316
|
+
user: User;
|
|
317
|
+
}
|
|
318
|
+
export interface ContentPublishingAuth {
|
|
319
|
+
/** Type of Object, always equals to "publishing-auth" */
|
|
320
|
+
object: 'publishing-auth';
|
|
321
|
+
/** Unique identifier for the content. */
|
|
322
|
+
id: string;
|
|
323
|
+
/** Private key used to sign JWT tokens. */
|
|
324
|
+
privateKey: string;
|
|
325
|
+
/**
|
|
326
|
+
* URL to redirect to when the visitor auth secret is invalid.
|
|
327
|
+
* @format uri
|
|
328
|
+
*/
|
|
329
|
+
fallbackURL?: string;
|
|
330
|
+
}
|
|
210
331
|
export interface ImportContentResult {
|
|
211
332
|
/** ID of the newly created revision. */
|
|
212
333
|
revision: string;
|
|
@@ -215,11 +336,81 @@ export interface ImportContentResult {
|
|
|
215
336
|
/** How many resources were processed */
|
|
216
337
|
totalResources: number;
|
|
217
338
|
}
|
|
339
|
+
export declare type Comment = {
|
|
340
|
+
object: 'comment';
|
|
341
|
+
id: string;
|
|
342
|
+
postedBy: User;
|
|
343
|
+
postedAt: Date;
|
|
344
|
+
editedAt?: Date;
|
|
345
|
+
reactions: EmojiReactions;
|
|
346
|
+
replies: number;
|
|
347
|
+
body: Document;
|
|
348
|
+
target: {
|
|
349
|
+
node?: {
|
|
350
|
+
id?: string;
|
|
351
|
+
preview?: string;
|
|
352
|
+
};
|
|
353
|
+
changeRequest?: string;
|
|
354
|
+
review?: string;
|
|
355
|
+
page?: RevisionPageBase & {
|
|
356
|
+
path: string;
|
|
357
|
+
outdated: boolean;
|
|
358
|
+
};
|
|
359
|
+
space: string;
|
|
360
|
+
revision: string;
|
|
361
|
+
};
|
|
362
|
+
urls: {
|
|
363
|
+
location: string;
|
|
364
|
+
};
|
|
365
|
+
} & ({
|
|
366
|
+
status: 'resolved';
|
|
367
|
+
resolvedAt: Date;
|
|
368
|
+
resolvedBy: User;
|
|
369
|
+
} | {
|
|
370
|
+
status: 'open';
|
|
371
|
+
});
|
|
372
|
+
export interface CommentReply {
|
|
373
|
+
/** Type of Object, always equals to "comment-reply" */
|
|
374
|
+
object: 'comment-reply';
|
|
375
|
+
/** Unique identifier for the reply. */
|
|
376
|
+
id: string;
|
|
377
|
+
postedBy: User;
|
|
378
|
+
postedAt: Date;
|
|
379
|
+
/** Date when the reply was edited, if it has been edited. */
|
|
380
|
+
editedAt?: Date;
|
|
381
|
+
reactions: EmojiReactions;
|
|
382
|
+
body: Document;
|
|
383
|
+
/** URLs associated with the object */
|
|
384
|
+
urls: {
|
|
385
|
+
location: string;
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
export declare type Document = MarkdownDocument | JSONDocument | object;
|
|
389
|
+
export interface MarkdownDocument {
|
|
390
|
+
/** Content of the document formatted as markdown */
|
|
391
|
+
markdown: string;
|
|
392
|
+
}
|
|
393
|
+
export interface JSONDocument {
|
|
394
|
+
document: {
|
|
395
|
+
nodes: object[];
|
|
396
|
+
};
|
|
397
|
+
}
|
|
218
398
|
export interface Space {
|
|
219
399
|
/** Type of Object, always equals to "space" */
|
|
220
400
|
object: 'space';
|
|
221
401
|
/** Unique identifier for the space */
|
|
222
402
|
id: string;
|
|
403
|
+
/**
|
|
404
|
+
* - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
|
|
405
|
+
* - `website`: A single web page or a collection of related web pages under a single domain.
|
|
406
|
+
* - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
|
|
407
|
+
* - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
|
|
408
|
+
* - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
|
|
409
|
+
* - `database`: A databse entity, persisting data. A database is typically used by services or applications.
|
|
410
|
+
* - `other`: A space that doesn’t match the service, library, or application type.
|
|
411
|
+
*
|
|
412
|
+
*/
|
|
413
|
+
type: SpaceType;
|
|
223
414
|
/** Title of the space */
|
|
224
415
|
title: string;
|
|
225
416
|
/**
|
|
@@ -235,12 +426,91 @@ export interface Space {
|
|
|
235
426
|
visibility: ContentVisibility;
|
|
236
427
|
createdAt: Date;
|
|
237
428
|
updatedAt: Date;
|
|
429
|
+
deletedAt?: Date;
|
|
238
430
|
/** URLs associated with the object */
|
|
239
431
|
urls: {
|
|
432
|
+
location: string;
|
|
240
433
|
app: string;
|
|
241
434
|
published?: string;
|
|
242
435
|
public?: string;
|
|
243
436
|
};
|
|
437
|
+
/** ID of the organization owning this space */
|
|
438
|
+
organization?: string;
|
|
439
|
+
/** ID of the user owning this space */
|
|
440
|
+
user?: string;
|
|
441
|
+
/** If the space is part of the private content of a user, the property is equal to the ID of the user owning it */
|
|
442
|
+
private?: string;
|
|
443
|
+
/** ID of the parent collection. */
|
|
444
|
+
parent?: string;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
|
|
448
|
+
- `website`: A single web page or a collection of related web pages under a single domain.
|
|
449
|
+
- `service`: An independently-deployable software unit that is usually is operated by a person or a team.
|
|
450
|
+
- `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
|
|
451
|
+
- `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
|
|
452
|
+
- `database`: A databse entity, persisting data. A database is typically used by services or applications.
|
|
453
|
+
- `other`: A space that doesn’t match the service, library, or application type.
|
|
454
|
+
*/
|
|
455
|
+
export declare enum SpaceType {
|
|
456
|
+
Application = "application",
|
|
457
|
+
Website = "website",
|
|
458
|
+
Service = "service",
|
|
459
|
+
Library = "library",
|
|
460
|
+
CloudResource = "cloud-resource",
|
|
461
|
+
Database = "database",
|
|
462
|
+
Other = "other"
|
|
463
|
+
}
|
|
464
|
+
export declare enum SpaceRelationType {
|
|
465
|
+
DependsOn = "dependsOn",
|
|
466
|
+
DependencyOf = "dependencyOf",
|
|
467
|
+
PartOf = "partOf",
|
|
468
|
+
HasPart = "hasPart"
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Edge of a space relation (target or source)
|
|
472
|
+
*/
|
|
473
|
+
export interface SpaceRelationEdge {
|
|
474
|
+
/** ID of the space */
|
|
475
|
+
id: string;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Relation between an origin space and another space
|
|
479
|
+
*/
|
|
480
|
+
export interface SpaceRelation {
|
|
481
|
+
id: string;
|
|
482
|
+
type: SpaceRelationType;
|
|
483
|
+
/** Other space in the relation. If undefined, the current user doesn't have access to it. */
|
|
484
|
+
target: Space | SpaceRelationEdge;
|
|
485
|
+
createdAt: Date;
|
|
486
|
+
/** URLs associated with the object */
|
|
487
|
+
urls: {
|
|
488
|
+
location: string;
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Relation between an origin space and another space
|
|
493
|
+
*/
|
|
494
|
+
export declare type SpaceRelationPair = SpaceRelation & {
|
|
495
|
+
target: SpaceRelationEdge;
|
|
496
|
+
source: SpaceRelationEdge;
|
|
497
|
+
};
|
|
498
|
+
/**
|
|
499
|
+
* Environments the entity is linked to
|
|
500
|
+
*/
|
|
501
|
+
export declare type SpaceEntityEnvironments = string[];
|
|
502
|
+
/**
|
|
503
|
+
* Link between an integration entity and a space.
|
|
504
|
+
*/
|
|
505
|
+
export interface SpaceEntity {
|
|
506
|
+
/** Entity created and managed by an integration, representing a resource on an external service. */
|
|
507
|
+
entity: IntegrationEntity;
|
|
508
|
+
/** Environments the entity is linked to */
|
|
509
|
+
environments: SpaceEntityEnvironments;
|
|
510
|
+
/** URLs associated with the object */
|
|
511
|
+
urls: {
|
|
512
|
+
location: string;
|
|
513
|
+
};
|
|
244
514
|
}
|
|
245
515
|
export interface Revision {
|
|
246
516
|
/** Type of Object, always equals to "revision" */
|
|
@@ -264,32 +534,31 @@ export interface Revision {
|
|
|
264
534
|
public?: string;
|
|
265
535
|
};
|
|
266
536
|
}
|
|
267
|
-
export declare type RevisionPage =
|
|
537
|
+
export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
|
|
268
538
|
export interface RevisionPageBase {
|
|
269
539
|
/** Unique identifier for the page in the revision */
|
|
270
540
|
id: string;
|
|
271
541
|
/** Title of the page */
|
|
272
542
|
title: string;
|
|
273
543
|
}
|
|
274
|
-
export declare type
|
|
544
|
+
export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
275
545
|
kind: 'sheet';
|
|
546
|
+
type: 'document';
|
|
276
547
|
slug: string;
|
|
277
548
|
path: string;
|
|
278
549
|
description?: string;
|
|
279
|
-
pages: (
|
|
280
|
-
}
|
|
281
|
-
markdown: string;
|
|
282
|
-
} | {
|
|
283
|
-
document: PageDocument;
|
|
284
|
-
} | object);
|
|
550
|
+
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
551
|
+
};
|
|
285
552
|
export declare type RevisionPageGroup = RevisionPageBase & {
|
|
286
553
|
kind: 'group';
|
|
554
|
+
type: 'group';
|
|
287
555
|
slug: string;
|
|
288
556
|
path: string;
|
|
289
|
-
pages: (
|
|
557
|
+
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
290
558
|
};
|
|
291
559
|
export declare type RevisionPageLink = RevisionPageBase & {
|
|
292
560
|
kind: 'link';
|
|
561
|
+
type: 'link';
|
|
293
562
|
href?: string;
|
|
294
563
|
};
|
|
295
564
|
export interface RevisionFile {
|
|
@@ -298,9 +567,6 @@ export interface RevisionFile {
|
|
|
298
567
|
contentType: string;
|
|
299
568
|
downloadURL: string;
|
|
300
569
|
}
|
|
301
|
-
export interface PageDocument {
|
|
302
|
-
nodes: object[];
|
|
303
|
-
}
|
|
304
570
|
export declare enum ImportContentSource {
|
|
305
571
|
Website = "website",
|
|
306
572
|
Docx = "docx",
|
|
@@ -315,13 +581,77 @@ export declare enum ImportContentSource {
|
|
|
315
581
|
GoogleDocs = "google-docs",
|
|
316
582
|
OpenApi = "open-api"
|
|
317
583
|
}
|
|
584
|
+
export interface GitSyncState {
|
|
585
|
+
/** The provider of the Git Sync installation. */
|
|
586
|
+
installationProvider?: string;
|
|
587
|
+
operation?: GitSyncOperation;
|
|
588
|
+
/** The URL to the repository tree, used when rendering public content. */
|
|
589
|
+
url?: string;
|
|
590
|
+
/** When the Git provider details were last updated */
|
|
591
|
+
updatedAt?: Date;
|
|
592
|
+
}
|
|
593
|
+
export interface GitSyncOperation {
|
|
594
|
+
/**
|
|
595
|
+
* * `running`: The operation is still running
|
|
596
|
+
* * `failure`: The operation failed
|
|
597
|
+
* * `success`: The operation was successful
|
|
598
|
+
*
|
|
599
|
+
*/
|
|
600
|
+
state: GitSyncOperationState;
|
|
601
|
+
startedAt: Date;
|
|
602
|
+
/** Date when the operation was successful (when state is `success`) */
|
|
603
|
+
completedAt?: Date;
|
|
604
|
+
/** Error details, defined if state is `failure`. */
|
|
605
|
+
error?: string;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* * `running`: The operation is still running
|
|
609
|
+
* `failure`: The operation failed
|
|
610
|
+
* `success`: The operation was successful
|
|
611
|
+
*/
|
|
612
|
+
export declare enum GitSyncOperationState {
|
|
613
|
+
Running = "running",
|
|
614
|
+
Failure = "failure",
|
|
615
|
+
Success = "success"
|
|
616
|
+
}
|
|
318
617
|
export interface Organization {
|
|
319
618
|
/** Type of Object, always equals to "organization" */
|
|
320
619
|
object: 'organization';
|
|
321
620
|
/** Unique identifier for the organization */
|
|
322
621
|
id: string;
|
|
323
622
|
/** Name of the organization */
|
|
324
|
-
title:
|
|
623
|
+
title: OrganizationTitle;
|
|
624
|
+
emailDomains: OrganizationEmailDomains;
|
|
625
|
+
type: OrganizationType;
|
|
626
|
+
useCase?: OrganizationUseCase;
|
|
627
|
+
communityType?: OrganizationCommunityType;
|
|
628
|
+
/** URLs associated with the object */
|
|
629
|
+
urls: {
|
|
630
|
+
location: string;
|
|
631
|
+
app: string;
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
export declare enum OrganizationType {
|
|
635
|
+
Business = "business",
|
|
636
|
+
Community = "community"
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* Name of the organization
|
|
640
|
+
*/
|
|
641
|
+
export declare type OrganizationTitle = string;
|
|
642
|
+
export declare type OrganizationEmailDomains = string[];
|
|
643
|
+
export declare enum OrganizationUseCase {
|
|
644
|
+
ProductDocs = "productDocs",
|
|
645
|
+
TeamKnowledgeBase = "teamKnowledgeBase",
|
|
646
|
+
DesignSystem = "designSystem",
|
|
647
|
+
OpenSourceDocs = "openSourceDocs",
|
|
648
|
+
Notes = "notes",
|
|
649
|
+
Other = "other"
|
|
650
|
+
}
|
|
651
|
+
export declare enum OrganizationCommunityType {
|
|
652
|
+
NonProfit = "nonProfit",
|
|
653
|
+
OpenSource = "openSource",
|
|
654
|
+
Education = "education"
|
|
325
655
|
}
|
|
326
656
|
/**
|
|
327
657
|
* "The role of a member in an organization.
|
|
@@ -378,7 +708,7 @@ export declare type OrganizationDirectorySyncGroupTeamStatus = {
|
|
|
378
708
|
error: string;
|
|
379
709
|
});
|
|
380
710
|
export interface OrganizationTarget {
|
|
381
|
-
organization
|
|
711
|
+
organization: string;
|
|
382
712
|
}
|
|
383
713
|
export interface OrganizationMember {
|
|
384
714
|
/** Type of Object, always equals to "member" */
|
|
@@ -392,6 +722,12 @@ export interface OrganizationMember {
|
|
|
392
722
|
disabled: boolean;
|
|
393
723
|
/** Date at which the user joined the organization. */
|
|
394
724
|
joinedAt: Date;
|
|
725
|
+
/** Date at which the user was last seen active in the organization. */
|
|
726
|
+
lastSeenAt?: Date;
|
|
727
|
+
/** Whether the user can login with SSO. */
|
|
728
|
+
sso: boolean;
|
|
729
|
+
spaces: number;
|
|
730
|
+
teams: number;
|
|
395
731
|
}
|
|
396
732
|
export interface OrganizationTeam {
|
|
397
733
|
/** Type of Object, always equals to "team" */
|
|
@@ -402,9 +738,71 @@ export interface OrganizationTeam {
|
|
|
402
738
|
title: string;
|
|
403
739
|
/** Count of members in this team. */
|
|
404
740
|
members: number;
|
|
741
|
+
/** Count of spaces this team has access to. */
|
|
742
|
+
spaces: number;
|
|
405
743
|
/** Date at which the team was created. */
|
|
406
744
|
createdAt: Date;
|
|
407
745
|
}
|
|
746
|
+
export interface TeamMember {
|
|
747
|
+
/**
|
|
748
|
+
* "The role of a team member.
|
|
749
|
+
* "admin": Can administrate team members.
|
|
750
|
+
* "participant": Can participate in a team.
|
|
751
|
+
*
|
|
752
|
+
*/
|
|
753
|
+
role: TeamMemberRole;
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* "The role of a team member.
|
|
757
|
+
"admin": Can administrate team members.
|
|
758
|
+
"participant": Can participate in a team.
|
|
759
|
+
*/
|
|
760
|
+
export declare enum TeamMemberRole {
|
|
761
|
+
Admin = "admin",
|
|
762
|
+
Participant = "participant"
|
|
763
|
+
}
|
|
764
|
+
export interface Recording {
|
|
765
|
+
/** Unique identifier for the recording */
|
|
766
|
+
id: string;
|
|
767
|
+
context: RecordingContext;
|
|
768
|
+
/** @format date-time */
|
|
769
|
+
startedAt: string;
|
|
770
|
+
/** @format date-time */
|
|
771
|
+
stoppedAt?: string;
|
|
772
|
+
}
|
|
773
|
+
export declare type RecordingEvent = RecordingTerminalCommandEvent | RecordingSpeechEvent;
|
|
774
|
+
export declare enum RecordingContext {
|
|
775
|
+
Meeting = "meeting",
|
|
776
|
+
Conversation = "conversation",
|
|
777
|
+
Walkthrough = "walkthrough"
|
|
778
|
+
}
|
|
779
|
+
export interface BaseRecordingEvent {
|
|
780
|
+
/** The type of event */
|
|
781
|
+
type: string;
|
|
782
|
+
/**
|
|
783
|
+
* When the event happened
|
|
784
|
+
* @format date-time
|
|
785
|
+
*/
|
|
786
|
+
timestamp: string;
|
|
787
|
+
/** Optionally, provide the source of the event. GitBook may use this to improve the generated content. */
|
|
788
|
+
source?: string;
|
|
789
|
+
/** Optionally, provide the actor of the event, in the context of multiple people contributing to the recording. */
|
|
790
|
+
actor?: {
|
|
791
|
+
name: string;
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
export declare type RecordingSpeechEvent = BaseRecordingEvent & {
|
|
795
|
+
type: 'speech';
|
|
796
|
+
} & ({
|
|
797
|
+
audio: string;
|
|
798
|
+
} | {
|
|
799
|
+
transcript: string;
|
|
800
|
+
});
|
|
801
|
+
export declare type RecordingTerminalCommandEvent = BaseRecordingEvent & {
|
|
802
|
+
type: 'terminal.command';
|
|
803
|
+
command: string;
|
|
804
|
+
stdout: string;
|
|
805
|
+
};
|
|
408
806
|
export interface ChangeRequest {
|
|
409
807
|
/** Type of Object, always equals to "change-request" */
|
|
410
808
|
object: 'change-request';
|
|
@@ -429,6 +827,72 @@ export declare enum ChangeRequestStatus {
|
|
|
429
827
|
Archived = "archived",
|
|
430
828
|
Merged = "merged"
|
|
431
829
|
}
|
|
830
|
+
export interface ChangeRequestReview {
|
|
831
|
+
/** Type of Object, always equals to "change-request-review" */
|
|
832
|
+
object: 'change-request-review';
|
|
833
|
+
/** Unique identifier for the review. */
|
|
834
|
+
id: string;
|
|
835
|
+
/** The revision this review was made against. */
|
|
836
|
+
revision: string;
|
|
837
|
+
/** The user who performed the review. */
|
|
838
|
+
reviewer: User;
|
|
839
|
+
/** The user who requested the review. If undefined, the review was left without a request. */
|
|
840
|
+
requestedBy?: User;
|
|
841
|
+
/** The status of the review. */
|
|
842
|
+
status: ChangeRequestReviewStatus;
|
|
843
|
+
comment?: Comment;
|
|
844
|
+
createdAt: Date;
|
|
845
|
+
updatedAt: Date;
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* Status of a change request review.
|
|
849
|
+
*/
|
|
850
|
+
export declare enum ChangeRequestReviewStatus {
|
|
851
|
+
ChangesRequested = "changes-requested",
|
|
852
|
+
Approved = "approved"
|
|
853
|
+
}
|
|
854
|
+
export declare type ChangeRequestRequestedReviewer = {
|
|
855
|
+
object: 'change-request-requested-reviewer';
|
|
856
|
+
revision: string;
|
|
857
|
+
requestedBy: User;
|
|
858
|
+
createdAt: Date;
|
|
859
|
+
} & ({
|
|
860
|
+
kind: 'user';
|
|
861
|
+
user: User;
|
|
862
|
+
} | {
|
|
863
|
+
kind: 'team';
|
|
864
|
+
team: Team;
|
|
865
|
+
});
|
|
866
|
+
export interface UpdateCommentSchema {
|
|
867
|
+
/** Whether the comment is resolved or not. */
|
|
868
|
+
resolved?: boolean;
|
|
869
|
+
/** Content of the comment. */
|
|
870
|
+
body?: Document;
|
|
871
|
+
/** Reactions to add to the comment. */
|
|
872
|
+
addedReactions?: string[];
|
|
873
|
+
/** Reactions to remove from the comment. */
|
|
874
|
+
removedReactions?: string[];
|
|
875
|
+
}
|
|
876
|
+
export interface UpdateCommentReplySchema {
|
|
877
|
+
/** Content of the comment. */
|
|
878
|
+
body?: Document;
|
|
879
|
+
/** Reactions to add to the comment. */
|
|
880
|
+
addedReactions?: string[];
|
|
881
|
+
/** Reactions to remove from the comment. */
|
|
882
|
+
removedReactions?: string[];
|
|
883
|
+
}
|
|
884
|
+
export interface PostCommentSchema {
|
|
885
|
+
/** The node to which the comment is posted, if any. */
|
|
886
|
+
node?: string;
|
|
887
|
+
/** The page to which the comment is posted, if any. */
|
|
888
|
+
page?: string;
|
|
889
|
+
/** The content of the comment. */
|
|
890
|
+
body: Document;
|
|
891
|
+
}
|
|
892
|
+
export interface PostCommentReplySchema {
|
|
893
|
+
/** The content of the comment. */
|
|
894
|
+
body: Document;
|
|
895
|
+
}
|
|
432
896
|
/**
|
|
433
897
|
* Permission of a user in a content.
|
|
434
898
|
*/
|
|
@@ -497,11 +961,16 @@ export interface SearchSectionResult {
|
|
|
497
961
|
app: string;
|
|
498
962
|
};
|
|
499
963
|
}
|
|
964
|
+
export interface SearchAIQuery {
|
|
965
|
+
query: string;
|
|
966
|
+
previousQueries?: string[];
|
|
967
|
+
}
|
|
500
968
|
/**
|
|
501
969
|
* Answer from AI for a question asked on a content.
|
|
502
970
|
*/
|
|
503
971
|
export interface SearchAIAnswer {
|
|
504
972
|
text: string;
|
|
973
|
+
followupQuestions: string[];
|
|
505
974
|
pages: {
|
|
506
975
|
page: string;
|
|
507
976
|
revision: string;
|
|
@@ -509,6 +978,12 @@ export interface SearchAIAnswer {
|
|
|
509
978
|
sections: string[];
|
|
510
979
|
}[];
|
|
511
980
|
}
|
|
981
|
+
/**
|
|
982
|
+
* Questions recommended by the AI for the given content.
|
|
983
|
+
*/
|
|
984
|
+
export interface SearchAIRecommendedQuestions {
|
|
985
|
+
questions: string[];
|
|
986
|
+
}
|
|
512
987
|
export declare enum AnalyticsSearchPeriod {
|
|
513
988
|
LastMonth = "last_month",
|
|
514
989
|
LastWeek = "last_week",
|
|
@@ -601,26 +1076,23 @@ export interface Integration {
|
|
|
601
1076
|
/** Unique named identifier for the integration */
|
|
602
1077
|
name: string;
|
|
603
1078
|
/** Title of the integration */
|
|
604
|
-
title:
|
|
1079
|
+
title: IntegrationTitle;
|
|
605
1080
|
/** Description of the integration */
|
|
606
|
-
description?:
|
|
1081
|
+
description?: IntegrationDescription;
|
|
607
1082
|
/** Long form markdown summary of the integration */
|
|
608
|
-
summary?:
|
|
1083
|
+
summary?: IntegrationSummary;
|
|
609
1084
|
/** URLs of images to showcase the integration */
|
|
610
1085
|
previewImages: string[];
|
|
611
1086
|
visibility: IntegrationVisibility;
|
|
612
1087
|
/** Permissions that should be granted to the integration */
|
|
613
|
-
scopes:
|
|
1088
|
+
scopes: IntegrationScopes;
|
|
614
1089
|
/** Categories for which the integration is listed in the marketplace */
|
|
615
|
-
categories:
|
|
1090
|
+
categories: IntegrationCategories;
|
|
616
1091
|
/** Custom blocks defined by this integration. */
|
|
617
|
-
blocks?:
|
|
1092
|
+
blocks?: IntegrationBlocks;
|
|
618
1093
|
configurations?: IntegrationConfigurations;
|
|
619
1094
|
/** External urls configured by the developer of the integration */
|
|
620
|
-
externalLinks:
|
|
621
|
-
url: URL;
|
|
622
|
-
label: string;
|
|
623
|
-
}[];
|
|
1095
|
+
externalLinks: IntegrationExternalLinks;
|
|
624
1096
|
/** URLs associated with the object */
|
|
625
1097
|
urls: {
|
|
626
1098
|
icon?: string;
|
|
@@ -635,15 +1107,37 @@ export interface Integration {
|
|
|
635
1107
|
*/
|
|
636
1108
|
contentSecurityPolicy?: IntegrationContentSecurityPolicy;
|
|
637
1109
|
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Title of the integration
|
|
1112
|
+
*/
|
|
1113
|
+
export declare type IntegrationTitle = string;
|
|
1114
|
+
/**
|
|
1115
|
+
* Description of the integration
|
|
1116
|
+
*/
|
|
1117
|
+
export declare type IntegrationDescription = string;
|
|
1118
|
+
/**
|
|
1119
|
+
* Long form markdown summary of the integration
|
|
1120
|
+
*/
|
|
1121
|
+
export declare type IntegrationSummary = string;
|
|
1122
|
+
/**
|
|
1123
|
+
* Permissions that should be granted to the integration
|
|
1124
|
+
*/
|
|
1125
|
+
export declare type IntegrationScopes = IntegrationScope[];
|
|
638
1126
|
export declare enum IntegrationScope {
|
|
1127
|
+
OrganizationEntitiesWrite = "organization:entities:write",
|
|
639
1128
|
SpaceViewsRead = "space:views:read",
|
|
640
1129
|
SpaceContentRead = "space:content:read",
|
|
641
1130
|
SpaceContentWrite = "space:content:write",
|
|
642
1131
|
SpaceMetadataRead = "space:metadata:read",
|
|
643
1132
|
SpaceMetadataWrite = "space:metadata:write",
|
|
644
1133
|
SpaceScriptInject = "space:script:inject",
|
|
645
|
-
SpaceScriptCookies = "space:script:cookies"
|
|
1134
|
+
SpaceScriptCookies = "space:script:cookies",
|
|
1135
|
+
SpaceGitSync = "space:git:sync"
|
|
646
1136
|
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Categories for which the integration is listed in the marketplace
|
|
1139
|
+
*/
|
|
1140
|
+
export declare type IntegrationCategories = IntegrationCategory[];
|
|
647
1141
|
/**
|
|
648
1142
|
* Format the custom block as a codeblock
|
|
649
1143
|
*/
|
|
@@ -651,6 +1145,10 @@ export declare type IntegrationBlockMarkdown = {
|
|
|
651
1145
|
codeblock: string;
|
|
652
1146
|
body: string;
|
|
653
1147
|
};
|
|
1148
|
+
/**
|
|
1149
|
+
* Custom blocks defined by this integration.
|
|
1150
|
+
*/
|
|
1151
|
+
export declare type IntegrationBlocks = IntegrationBlock[];
|
|
654
1152
|
export interface IntegrationBlock {
|
|
655
1153
|
/** Unique ID in the integration for the block. It also represents the UI component used. */
|
|
656
1154
|
id: string;
|
|
@@ -665,6 +1163,36 @@ export interface IntegrationBlock {
|
|
|
665
1163
|
/** Format the custom block as a codeblock */
|
|
666
1164
|
markdown?: IntegrationBlockMarkdown;
|
|
667
1165
|
}
|
|
1166
|
+
/**
|
|
1167
|
+
* External urls configured by the developer of the integration
|
|
1168
|
+
*/
|
|
1169
|
+
export declare type IntegrationExternalLinks = {
|
|
1170
|
+
url: URL;
|
|
1171
|
+
label: string;
|
|
1172
|
+
}[];
|
|
1173
|
+
export interface IntegrationEvent {
|
|
1174
|
+
/** Unique ID of the event. */
|
|
1175
|
+
id: string;
|
|
1176
|
+
/** Unique ID of the integration. */
|
|
1177
|
+
integrationId: string;
|
|
1178
|
+
/** Unique ID of the integration installation. */
|
|
1179
|
+
installationId?: string;
|
|
1180
|
+
createdAt: Date;
|
|
1181
|
+
/** Any event that can be received from GitBook. */
|
|
1182
|
+
payload: Event;
|
|
1183
|
+
/** Status of the event. */
|
|
1184
|
+
status: 'success' | 'failed';
|
|
1185
|
+
}
|
|
1186
|
+
export interface IntegrationEventLog {
|
|
1187
|
+
/** The message of the log entry. */
|
|
1188
|
+
message?: string;
|
|
1189
|
+
timestamp?: Date;
|
|
1190
|
+
/** The level of the log entry. */
|
|
1191
|
+
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
1192
|
+
}
|
|
1193
|
+
export interface IntegrationEventTrace {
|
|
1194
|
+
logs: IntegrationEventLog[];
|
|
1195
|
+
}
|
|
668
1196
|
/**
|
|
669
1197
|
* Describe whether all spaces have been selected or there's a selection involved
|
|
670
1198
|
*/
|
|
@@ -680,15 +1208,14 @@ export declare enum IntegrationCategory {
|
|
|
680
1208
|
Other = "other"
|
|
681
1209
|
}
|
|
682
1210
|
export interface IntegrationConfigurations {
|
|
683
|
-
/** Schema for a configuration */
|
|
684
1211
|
account?: IntegrationConfiguration;
|
|
685
|
-
/** Schema for a configuration */
|
|
686
1212
|
space?: IntegrationConfiguration;
|
|
687
1213
|
}
|
|
1214
|
+
export declare type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
|
|
688
1215
|
/**
|
|
689
1216
|
* Schema for a configuration
|
|
690
1217
|
*/
|
|
691
|
-
export interface
|
|
1218
|
+
export interface IntegrationConfigurationSchema {
|
|
692
1219
|
properties: Record<string, {
|
|
693
1220
|
title?: string;
|
|
694
1221
|
description?: string;
|
|
@@ -708,9 +1235,17 @@ export interface IntegrationConfiguration {
|
|
|
708
1235
|
})>;
|
|
709
1236
|
required?: string[];
|
|
710
1237
|
}
|
|
1238
|
+
/**
|
|
1239
|
+
* ContentKit component for configuration
|
|
1240
|
+
*/
|
|
1241
|
+
export interface IntegrationConfigurationComponent {
|
|
1242
|
+
/** ID of the ContentKit component defined in the integration */
|
|
1243
|
+
componentId: string;
|
|
1244
|
+
}
|
|
711
1245
|
export declare enum IntegrationVisibility {
|
|
712
1246
|
Public = "public",
|
|
713
|
-
Private = "private"
|
|
1247
|
+
Private = "private",
|
|
1248
|
+
Unlisted = "unlisted"
|
|
714
1249
|
}
|
|
715
1250
|
/**
|
|
716
1251
|
* Installation of an integration on an account
|
|
@@ -721,14 +1256,14 @@ export interface IntegrationInstallation {
|
|
|
721
1256
|
/** Describe whether all spaces have been selected or there's a selection involved */
|
|
722
1257
|
space_selection: IntegrationInstallationSpaceSelection;
|
|
723
1258
|
/** Configuration of the integration at the account level */
|
|
724
|
-
configuration:
|
|
1259
|
+
configuration: IntegrationInstallationConfiguration;
|
|
725
1260
|
/** URLs associated with the object */
|
|
726
1261
|
urls: {
|
|
727
1262
|
app: string;
|
|
728
1263
|
publicEndpoint: string;
|
|
729
1264
|
};
|
|
730
1265
|
/** External IDs assigned by the integration. */
|
|
731
|
-
externalIds:
|
|
1266
|
+
externalIds: IntegrationInstallationExternalIds;
|
|
732
1267
|
/** Target of the integration installation */
|
|
733
1268
|
target: IntegrationInstallationTarget;
|
|
734
1269
|
}
|
|
@@ -741,7 +1276,8 @@ export interface IntegrationSpaceInstallation {
|
|
|
741
1276
|
status: IntegrationInstallationStatus;
|
|
742
1277
|
/** Configuration of the integration for this space */
|
|
743
1278
|
configuration: object;
|
|
744
|
-
|
|
1279
|
+
/** External IDs assigned by the integration. */
|
|
1280
|
+
externalIds: IntegrationInstallationExternalIds;
|
|
745
1281
|
/** URLs associated with the object */
|
|
746
1282
|
urls: {
|
|
747
1283
|
publicEndpoint: string;
|
|
@@ -760,9 +1296,7 @@ export declare type IntegrationSecrets = Record<string, string>;
|
|
|
760
1296
|
* Runtime environment provided during the execution of integration's code.
|
|
761
1297
|
*/
|
|
762
1298
|
export interface IntegrationEnvironment {
|
|
763
|
-
/**
|
|
764
|
-
apiEndpoint: string;
|
|
765
|
-
/** Authentication token to use with the HTTP API */
|
|
1299
|
+
/** Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration. */
|
|
766
1300
|
authToken?: string;
|
|
767
1301
|
integration: Integration;
|
|
768
1302
|
/** Installation of an integration on an account */
|
|
@@ -771,8 +1305,22 @@ export interface IntegrationEnvironment {
|
|
|
771
1305
|
spaceInstallation?: IntegrationSpaceInstallation;
|
|
772
1306
|
/** Secrets stored on the integration and passed at runtime. */
|
|
773
1307
|
secrets: IntegrationSecrets;
|
|
1308
|
+
/** URL of the HTTP API */
|
|
1309
|
+
apiEndpoint: string;
|
|
1310
|
+
apiTokens: {
|
|
1311
|
+
integration: string;
|
|
1312
|
+
installation?: string;
|
|
1313
|
+
};
|
|
774
1314
|
}
|
|
775
1315
|
export declare type IntegrationInstallationTarget = UserTarget | OrganizationTarget;
|
|
1316
|
+
/**
|
|
1317
|
+
* Configuration of the integration at the account level
|
|
1318
|
+
*/
|
|
1319
|
+
export declare type IntegrationInstallationConfiguration = Record<string, any>;
|
|
1320
|
+
/**
|
|
1321
|
+
* External IDs assigned by the integration.
|
|
1322
|
+
*/
|
|
1323
|
+
export declare type IntegrationInstallationExternalIds = string[];
|
|
776
1324
|
/**
|
|
777
1325
|
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
778
1326
|
headers when processing the script fetch event and the blocks fetch events.
|
|
@@ -810,6 +1358,35 @@ export declare type IntegrationContentSecurityPolicy = string | {
|
|
|
810
1358
|
'upgrade-insecure-requests'?: string;
|
|
811
1359
|
'worker-src'?: string;
|
|
812
1360
|
};
|
|
1361
|
+
export declare type SpaceIntegrationBlocks = {
|
|
1362
|
+
name: string;
|
|
1363
|
+
blocks: IntegrationBlock[];
|
|
1364
|
+
}[];
|
|
1365
|
+
/**
|
|
1366
|
+
* Entity to create or update in an integration's installation.
|
|
1367
|
+
*/
|
|
1368
|
+
export interface UpsertIntegrationEntity {
|
|
1369
|
+
/** Unique ID of the entity in the context of the integration's installation */
|
|
1370
|
+
entityId: string;
|
|
1371
|
+
/** Title of the entity */
|
|
1372
|
+
title: string;
|
|
1373
|
+
/** Longer text description of the entity */
|
|
1374
|
+
description: string;
|
|
1375
|
+
/**
|
|
1376
|
+
* URL to open the entity
|
|
1377
|
+
* @format uri
|
|
1378
|
+
*/
|
|
1379
|
+
target: string;
|
|
1380
|
+
/** Metadata stored by the integration on the entity */
|
|
1381
|
+
metadata: Record<string, string | number | boolean>;
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* Entity created and managed by an integration, representing a resource on an external service.
|
|
1385
|
+
*/
|
|
1386
|
+
export declare type IntegrationEntity = UpsertIntegrationEntity & {
|
|
1387
|
+
id: string;
|
|
1388
|
+
integration: string;
|
|
1389
|
+
};
|
|
813
1390
|
/**
|
|
814
1391
|
* Any event that can be received from GitBook.
|
|
815
1392
|
*/
|
|
@@ -930,7 +1507,7 @@ export declare type FetchPublishedScriptEvent = SpaceEvent & {
|
|
|
930
1507
|
/**
|
|
931
1508
|
* Event generated when rendering a UI
|
|
932
1509
|
*/
|
|
933
|
-
export declare type UIRenderEvent = SpaceEvent & {
|
|
1510
|
+
export declare type UIRenderEvent = (SpaceEvent | InstallationEvent) & {
|
|
934
1511
|
auth?: {
|
|
935
1512
|
userId: string;
|
|
936
1513
|
};
|
|
@@ -1143,6 +1720,12 @@ export interface UserRiskEvaluation {
|
|
|
1143
1720
|
emailVerified: boolean;
|
|
1144
1721
|
activeDaysRemaining: number;
|
|
1145
1722
|
}
|
|
1723
|
+
/**
|
|
1724
|
+
* JWT tokens to authenticate in Hive for all content.
|
|
1725
|
+
*/
|
|
1726
|
+
export interface HiveAccessToken {
|
|
1727
|
+
contents: Record<string, string>;
|
|
1728
|
+
}
|
|
1146
1729
|
export interface UnsplashImage {
|
|
1147
1730
|
kind: 'unsplash_image';
|
|
1148
1731
|
id: string;
|
|
@@ -1161,10 +1744,37 @@ export interface APITemporaryToken {
|
|
|
1161
1744
|
/** Temporary access token to authenticate with the API */
|
|
1162
1745
|
token: string;
|
|
1163
1746
|
}
|
|
1164
|
-
|
|
1747
|
+
/**
|
|
1748
|
+
* Common properties for ContentKit context.
|
|
1749
|
+
*/
|
|
1750
|
+
export interface ContentKitContextBase {
|
|
1751
|
+
theme: 'dark' | 'light';
|
|
1752
|
+
}
|
|
1753
|
+
/**
|
|
1754
|
+
* Object representing the context in which a ContentKit component is rendered.
|
|
1755
|
+
*/
|
|
1756
|
+
export declare type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextDocument;
|
|
1757
|
+
/**
|
|
1758
|
+
* Context while rendering in an account installation's configuration.
|
|
1759
|
+
*/
|
|
1760
|
+
export declare type ContentKitContextConfigurationAccount = ContentKitContextBase & {
|
|
1761
|
+
type: 'configuration_account';
|
|
1762
|
+
organizationId: string;
|
|
1763
|
+
};
|
|
1764
|
+
/**
|
|
1765
|
+
* Context while rendering in a space-installation's configuration.
|
|
1766
|
+
*/
|
|
1767
|
+
export declare type ContentKitContextConfigurationSpace = ContentKitContextBase & {
|
|
1768
|
+
type: 'configuration_space';
|
|
1769
|
+
spaceId: string;
|
|
1770
|
+
};
|
|
1771
|
+
/**
|
|
1772
|
+
* Context while rendering in a document.
|
|
1773
|
+
*/
|
|
1774
|
+
export declare type ContentKitContextDocument = ContentKitContextBase & {
|
|
1165
1775
|
type: 'document';
|
|
1776
|
+
spaceId: string;
|
|
1166
1777
|
editable: boolean;
|
|
1167
|
-
theme: 'dark' | 'light';
|
|
1168
1778
|
};
|
|
1169
1779
|
/**
|
|
1170
1780
|
* Binding between a property and a state value.
|
|
@@ -1201,6 +1811,7 @@ export interface ContentKitButton {
|
|
|
1201
1811
|
/** Custom action to re-render the block. */
|
|
1202
1812
|
onPress: ContentKitAction;
|
|
1203
1813
|
icon?: ContentKitIcon;
|
|
1814
|
+
trailingIcon?: ContentKitIcon;
|
|
1204
1815
|
label?: string;
|
|
1205
1816
|
tooltip?: string;
|
|
1206
1817
|
/** A confirm object that defines an optional confirmation dialog after the input is clicked. */
|
|
@@ -1229,15 +1840,22 @@ export interface ContentKitText {
|
|
|
1229
1840
|
children: (string | ContentKitText)[];
|
|
1230
1841
|
}
|
|
1231
1842
|
export interface ContentKitBox {
|
|
1232
|
-
type
|
|
1843
|
+
type: 'box';
|
|
1233
1844
|
/** specifies how much of the remaining space in the container should be assigned to the element */
|
|
1234
1845
|
grow?: number;
|
|
1235
|
-
children
|
|
1846
|
+
children: ContentKitDescendantElement[];
|
|
1236
1847
|
}
|
|
1237
1848
|
/**
|
|
1238
|
-
*
|
|
1849
|
+
* Element used to contextualize other elements or info.
|
|
1239
1850
|
*/
|
|
1240
|
-
export interface
|
|
1851
|
+
export interface ContentKitHint {
|
|
1852
|
+
type: 'hint';
|
|
1853
|
+
children: ContentKitInlineElement[];
|
|
1854
|
+
}
|
|
1855
|
+
/**
|
|
1856
|
+
* Horizontal stack of boxes.
|
|
1857
|
+
*/
|
|
1858
|
+
export interface ContentKitHStack {
|
|
1241
1859
|
type: 'hstack';
|
|
1242
1860
|
align?: 'start' | 'center' | 'end';
|
|
1243
1861
|
children: ContentKitDescendantElement[];
|
|
@@ -1404,6 +2022,7 @@ export interface ContentKitInput {
|
|
|
1404
2022
|
export interface ContentKitSelectOption {
|
|
1405
2023
|
id: string;
|
|
1406
2024
|
label: string;
|
|
2025
|
+
icon?: ContentKitIcon | ContentKitImage;
|
|
1407
2026
|
}
|
|
1408
2027
|
/**
|
|
1409
2028
|
* Creates a drop down menu with a list of options for a user to choose.
|
|
@@ -1414,13 +2033,15 @@ export interface ContentKitSelect {
|
|
|
1414
2033
|
state: string;
|
|
1415
2034
|
/** Value to initialize the select with. */
|
|
1416
2035
|
initialValue?: string | string[];
|
|
2036
|
+
/** Custom action to re-render the block. */
|
|
2037
|
+
onValueChange?: ContentKitAction;
|
|
1417
2038
|
/** Text that appears in the form control when it has no value set */
|
|
1418
2039
|
placeholder?: string;
|
|
1419
2040
|
/** Should the select accept the selection of multiple options. If true, the state will be an array. */
|
|
1420
2041
|
multiple?: boolean;
|
|
1421
|
-
/**
|
|
2042
|
+
/** Array of options to display in the select. */
|
|
1422
2043
|
options: ContentKitSelectOption[] | {
|
|
1423
|
-
url: string;
|
|
2044
|
+
url: string | ContentKitURL;
|
|
1424
2045
|
};
|
|
1425
2046
|
}
|
|
1426
2047
|
/**
|
|
@@ -1432,6 +2053,8 @@ export interface ContentKitSwitch {
|
|
|
1432
2053
|
state: string;
|
|
1433
2054
|
/** Value to initialize the switch with. */
|
|
1434
2055
|
initialValue?: boolean;
|
|
2056
|
+
/** Custom action to re-render the block. */
|
|
2057
|
+
onValueChange?: ContentKitAction;
|
|
1435
2058
|
/** A confirm object that defines an optional confirmation dialog after the input is clicked. */
|
|
1436
2059
|
confirm?: ContentKitConfirm;
|
|
1437
2060
|
}
|
|
@@ -1472,11 +2095,233 @@ export declare type ContentKitRootElement = ContentKitBlock | ContentKitModal;
|
|
|
1472
2095
|
/**
|
|
1473
2096
|
* Any element that can be used as children.
|
|
1474
2097
|
*/
|
|
1475
|
-
export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText;
|
|
2098
|
+
export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint;
|
|
1476
2099
|
/**
|
|
1477
2100
|
* Any element that is inline.
|
|
1478
2101
|
*/
|
|
1479
2102
|
export declare type ContentKitInlineElement = ContentKitText | ContentKitImage;
|
|
2103
|
+
/**
|
|
2104
|
+
* Specification for an URL in ContentKit.
|
|
2105
|
+
*/
|
|
2106
|
+
export interface ContentKitURL {
|
|
2107
|
+
/**
|
|
2108
|
+
* Hostname of the URL along with the port number if required.
|
|
2109
|
+
* @example api.example.com
|
|
2110
|
+
*/
|
|
2111
|
+
host: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* Path of the URL prefixed with a `/`.
|
|
2114
|
+
* @example /v1/options
|
|
2115
|
+
*/
|
|
2116
|
+
pathname: string;
|
|
2117
|
+
query?: Record<string, string | ContentKitDynamicBinding>;
|
|
2118
|
+
}
|
|
2119
|
+
/**
|
|
2120
|
+
* Channel to subscribe to for API updates.
|
|
2121
|
+
*/
|
|
2122
|
+
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpaceRelationsChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | OrganizationEnvironmentsChannel | UserAPITokensChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpaceRelationsChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | {
|
|
2123
|
+
channel: 'space-comments';
|
|
2124
|
+
space: string;
|
|
2125
|
+
changeRequest?: string;
|
|
2126
|
+
} | {
|
|
2127
|
+
channel: 'space-comment';
|
|
2128
|
+
space: string;
|
|
2129
|
+
changeRequest?: string;
|
|
2130
|
+
comment: string;
|
|
2131
|
+
} | {
|
|
2132
|
+
channel: 'space-comment-reply';
|
|
2133
|
+
space: string;
|
|
2134
|
+
changeRequest?: string;
|
|
2135
|
+
comment: string;
|
|
2136
|
+
commentReply: string;
|
|
2137
|
+
} | {
|
|
2138
|
+
channel: 'space-comment-replies';
|
|
2139
|
+
space: string;
|
|
2140
|
+
changeRequest?: string;
|
|
2141
|
+
comment: string;
|
|
2142
|
+
};
|
|
2143
|
+
export interface SpaceInfoChannel {
|
|
2144
|
+
channel: 'space';
|
|
2145
|
+
space: string;
|
|
2146
|
+
}
|
|
2147
|
+
export interface SpaceGitInfoChannel {
|
|
2148
|
+
channel: 'space-git-info';
|
|
2149
|
+
space: string;
|
|
2150
|
+
}
|
|
2151
|
+
export interface SpacePublishingAuthChannel {
|
|
2152
|
+
channel: 'space-publishing-auth';
|
|
2153
|
+
space: string;
|
|
2154
|
+
}
|
|
2155
|
+
export interface SpaceRelationsChannel {
|
|
2156
|
+
channel: 'space-relations';
|
|
2157
|
+
space: string;
|
|
2158
|
+
}
|
|
2159
|
+
export interface SpaceEntitiesChannel {
|
|
2160
|
+
channel: 'space-entities';
|
|
2161
|
+
space: string;
|
|
2162
|
+
}
|
|
2163
|
+
export interface SpaceCustomFieldsChannel {
|
|
2164
|
+
channel: 'space-customfields';
|
|
2165
|
+
space: string;
|
|
2166
|
+
}
|
|
2167
|
+
export interface BackofficeUserInfoChannel {
|
|
2168
|
+
channel: 'backoffice-user-info';
|
|
2169
|
+
user: string;
|
|
2170
|
+
}
|
|
2171
|
+
export interface SpaceIntegrationsChannel {
|
|
2172
|
+
channel: 'space-integrations';
|
|
2173
|
+
space: string;
|
|
2174
|
+
}
|
|
2175
|
+
export interface UserAPITokensChannel {
|
|
2176
|
+
channel: 'user-api-tokens';
|
|
2177
|
+
user: string;
|
|
2178
|
+
}
|
|
2179
|
+
export interface ChangeRequestReviewsChannel {
|
|
2180
|
+
channel: 'space-change-request-reviews';
|
|
2181
|
+
space: string;
|
|
2182
|
+
changeRequest: string;
|
|
2183
|
+
}
|
|
2184
|
+
export interface OrganizationCustomFieldsChannel {
|
|
2185
|
+
channel: 'organization-customfields';
|
|
2186
|
+
organization: string;
|
|
2187
|
+
}
|
|
2188
|
+
export interface OrganizationMembersChannel {
|
|
2189
|
+
channel: 'organization-members';
|
|
2190
|
+
organization: string;
|
|
2191
|
+
}
|
|
2192
|
+
export interface OrganizationMemberChannel {
|
|
2193
|
+
channel: 'organization-member';
|
|
2194
|
+
organization: string;
|
|
2195
|
+
user: string;
|
|
2196
|
+
}
|
|
2197
|
+
export interface OrganizationTeamsChannel {
|
|
2198
|
+
channel: 'organization-teams';
|
|
2199
|
+
organization: string;
|
|
2200
|
+
}
|
|
2201
|
+
export interface OrganizationTeamChannel {
|
|
2202
|
+
channel: 'organization-team';
|
|
2203
|
+
organization: string;
|
|
2204
|
+
team: string;
|
|
2205
|
+
}
|
|
2206
|
+
export interface OrganizationTeamMembersChannel {
|
|
2207
|
+
channel: 'organization-team-members';
|
|
2208
|
+
organization: string;
|
|
2209
|
+
team: string;
|
|
2210
|
+
}
|
|
2211
|
+
export interface OrganizationTeamMemberChannel {
|
|
2212
|
+
channel: 'organization-team-member';
|
|
2213
|
+
organization: string;
|
|
2214
|
+
team?: string;
|
|
2215
|
+
member: string;
|
|
2216
|
+
}
|
|
2217
|
+
/**
|
|
2218
|
+
* Subscription channel for changes in relations between spaces in an organization.
|
|
2219
|
+
*/
|
|
2220
|
+
export interface OrganizationSpaceRelationsChannel {
|
|
2221
|
+
channel: 'organization-space-relations';
|
|
2222
|
+
organization: string;
|
|
2223
|
+
}
|
|
2224
|
+
/**
|
|
2225
|
+
* Subscription channel for changes in spaces in an organization.
|
|
2226
|
+
*/
|
|
2227
|
+
export interface OrganizationSpacesChannel {
|
|
2228
|
+
channel: 'organization-spaces';
|
|
2229
|
+
organization: string;
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* Subscription channel for all integration entities in an organization.
|
|
2233
|
+
*/
|
|
2234
|
+
export interface OrganizationEntitiesChannel {
|
|
2235
|
+
channel: 'organization-entities';
|
|
2236
|
+
organization: string;
|
|
2237
|
+
}
|
|
2238
|
+
export interface OrganizationEnvironmentsChannel {
|
|
2239
|
+
channel: 'organization-environments';
|
|
2240
|
+
organization: string;
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Custom field
|
|
2244
|
+
*/
|
|
2245
|
+
export interface CustomField {
|
|
2246
|
+
id: string;
|
|
2247
|
+
name: CustomFieldName;
|
|
2248
|
+
title: CustomFieldTitle;
|
|
2249
|
+
description: CustomFieldDescription;
|
|
2250
|
+
type: CustomFieldType;
|
|
2251
|
+
createdAt: Date;
|
|
2252
|
+
updatedAt: Date;
|
|
2253
|
+
/** URLs associated with the object */
|
|
2254
|
+
urls: {
|
|
2255
|
+
location: string;
|
|
2256
|
+
};
|
|
2257
|
+
}
|
|
2258
|
+
/**
|
|
2259
|
+
* @pattern ^[a-zA-Z_\-0-9]+$
|
|
2260
|
+
*/
|
|
2261
|
+
export declare type CustomFieldName = string;
|
|
2262
|
+
export declare type CustomFieldTitle = string;
|
|
2263
|
+
export declare type CustomFieldDescription = string;
|
|
2264
|
+
export declare enum CustomFieldType {
|
|
2265
|
+
Text = "text",
|
|
2266
|
+
Number = "number",
|
|
2267
|
+
Boolean = "boolean"
|
|
2268
|
+
}
|
|
2269
|
+
export declare type CustomFieldValue = string | number | boolean;
|
|
2270
|
+
export declare type CustomFieldValues = {
|
|
2271
|
+
customField: CustomField;
|
|
2272
|
+
value?: CustomFieldValue;
|
|
2273
|
+
}[];
|
|
2274
|
+
export interface UpdateCustomFieldValues {
|
|
2275
|
+
values: Record<string, {
|
|
2276
|
+
value: CustomFieldValue;
|
|
2277
|
+
}>;
|
|
2278
|
+
}
|
|
2279
|
+
/**
|
|
2280
|
+
* An environment
|
|
2281
|
+
*/
|
|
2282
|
+
export interface Environment {
|
|
2283
|
+
id: string;
|
|
2284
|
+
name: EnvironmentName;
|
|
2285
|
+
title: EnvironmentTitle;
|
|
2286
|
+
/**
|
|
2287
|
+
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2288
|
+
*
|
|
2289
|
+
*/
|
|
2290
|
+
primary: EnvironmentPrimary;
|
|
2291
|
+
/** URLs associated with the object */
|
|
2292
|
+
urls: {
|
|
2293
|
+
location: string;
|
|
2294
|
+
};
|
|
2295
|
+
}
|
|
2296
|
+
export declare type EnvironmentTitle = string;
|
|
2297
|
+
/**
|
|
2298
|
+
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2299
|
+
*/
|
|
2300
|
+
export declare type EnvironmentPrimary = boolean;
|
|
2301
|
+
/**
|
|
2302
|
+
* @pattern ^[a-zA-Z_\-0-9]+$
|
|
2303
|
+
*/
|
|
2304
|
+
export declare type EnvironmentName = string;
|
|
2305
|
+
export interface CreateEnvironment {
|
|
2306
|
+
name: EnvironmentName;
|
|
2307
|
+
title: EnvironmentTitle;
|
|
2308
|
+
/**
|
|
2309
|
+
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2310
|
+
*
|
|
2311
|
+
*/
|
|
2312
|
+
primary?: EnvironmentPrimary;
|
|
2313
|
+
}
|
|
2314
|
+
/**
|
|
2315
|
+
* An object containing the new title for an Environment
|
|
2316
|
+
*/
|
|
2317
|
+
export interface UpdateEnvironment {
|
|
2318
|
+
title?: EnvironmentTitle;
|
|
2319
|
+
/**
|
|
2320
|
+
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2321
|
+
*
|
|
2322
|
+
*/
|
|
2323
|
+
primary?: EnvironmentPrimary;
|
|
2324
|
+
}
|
|
1480
2325
|
export declare type QueryParamsType = Record<string | number, any>;
|
|
1481
2326
|
export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
1482
2327
|
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
@@ -1574,16 +2419,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1574
2419
|
/**
|
|
1575
2420
|
* No description
|
|
1576
2421
|
*
|
|
1577
|
-
* @name
|
|
2422
|
+
* @name AskQueryWithGet
|
|
1578
2423
|
* @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
|
|
1579
2424
|
* @request GET:/search/ask
|
|
2425
|
+
* @deprecated
|
|
1580
2426
|
* @secure
|
|
1581
2427
|
*/
|
|
1582
|
-
|
|
2428
|
+
askQueryWithGet: (query: {
|
|
1583
2429
|
query: string;
|
|
1584
2430
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
1585
2431
|
answer?: SearchAIAnswer;
|
|
1586
2432
|
}, Error>>;
|
|
2433
|
+
/**
|
|
2434
|
+
* No description
|
|
2435
|
+
*
|
|
2436
|
+
* @name AskQuery
|
|
2437
|
+
* @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
|
|
2438
|
+
* @request POST:/search/ask
|
|
2439
|
+
* @secure
|
|
2440
|
+
*/
|
|
2441
|
+
askQuery: (data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
|
|
2442
|
+
answer?: SearchAIAnswer;
|
|
2443
|
+
}, Error>>;
|
|
2444
|
+
/**
|
|
2445
|
+
* No description
|
|
2446
|
+
*
|
|
2447
|
+
* @name GetRecommendedQuestions
|
|
2448
|
+
* @summary Get a list of questions recommended by AI for a list of content.
|
|
2449
|
+
* @request POST:/search/questions
|
|
2450
|
+
* @secure
|
|
2451
|
+
*/
|
|
2452
|
+
getRecommendedQuestions: (data: {
|
|
2453
|
+
documents: string[];
|
|
2454
|
+
}, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
1587
2455
|
};
|
|
1588
2456
|
user: {
|
|
1589
2457
|
/**
|
|
@@ -1635,6 +2503,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1635
2503
|
* @secure
|
|
1636
2504
|
*/
|
|
1637
2505
|
getSpaceById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
2506
|
+
/**
|
|
2507
|
+
* No description
|
|
2508
|
+
*
|
|
2509
|
+
* @tags spaces
|
|
2510
|
+
* @name UpdateSpaceById
|
|
2511
|
+
* @summary Update the details of a space
|
|
2512
|
+
* @request PATCH:/spaces/{spaceId}
|
|
2513
|
+
* @secure
|
|
2514
|
+
*/
|
|
2515
|
+
updateSpaceById: (spaceId: string, data: {
|
|
2516
|
+
visibility?: ContentVisibility;
|
|
2517
|
+
type?: SpaceType;
|
|
2518
|
+
}, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
2519
|
+
/**
|
|
2520
|
+
* No description
|
|
2521
|
+
*
|
|
2522
|
+
* @tags hive
|
|
2523
|
+
* @name GenerateSpaceHiveReadAccessToken
|
|
2524
|
+
* @summary Returns a token to authenticate with Hive to read content from a given space.
|
|
2525
|
+
* @request POST:/spaces/{spaceId}/hive/token
|
|
2526
|
+
* @secure
|
|
2527
|
+
*/
|
|
2528
|
+
generateSpaceHiveReadAccessToken: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<HiveAccessToken, Error>>;
|
|
2529
|
+
/**
|
|
2530
|
+
* No description
|
|
2531
|
+
*
|
|
2532
|
+
* @tags spaces
|
|
2533
|
+
* @name DuplicateSpace
|
|
2534
|
+
* @summary Create a duplicate of the space.
|
|
2535
|
+
* @request POST:/spaces/{spaceId}/duplicate
|
|
2536
|
+
* @secure
|
|
2537
|
+
*/
|
|
2538
|
+
duplicateSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
1638
2539
|
/**
|
|
1639
2540
|
* No description
|
|
1640
2541
|
*
|
|
@@ -1653,16 +2554,37 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1653
2554
|
/**
|
|
1654
2555
|
* No description
|
|
1655
2556
|
*
|
|
1656
|
-
* @name
|
|
2557
|
+
* @name AskQueryInSpaceWithGet
|
|
1657
2558
|
* @summary Ask a question to an AI within the context of the space.
|
|
1658
2559
|
* @request GET:/spaces/{spaceId}/search/ask
|
|
2560
|
+
* @deprecated
|
|
1659
2561
|
* @secure
|
|
1660
2562
|
*/
|
|
1661
|
-
|
|
2563
|
+
askQueryInSpaceWithGet: (spaceId: string, query: {
|
|
1662
2564
|
query: string;
|
|
1663
2565
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
1664
2566
|
answer?: SearchAIAnswer;
|
|
1665
2567
|
}, Error>>;
|
|
2568
|
+
/**
|
|
2569
|
+
* No description
|
|
2570
|
+
*
|
|
2571
|
+
* @name AskQueryInSpace
|
|
2572
|
+
* @summary Ask a question to an AI within the context of the space.
|
|
2573
|
+
* @request POST:/spaces/{spaceId}/search/ask
|
|
2574
|
+
* @secure
|
|
2575
|
+
*/
|
|
2576
|
+
askQueryInSpace: (spaceId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
|
|
2577
|
+
answer?: SearchAIAnswer;
|
|
2578
|
+
}, Error>>;
|
|
2579
|
+
/**
|
|
2580
|
+
* No description
|
|
2581
|
+
*
|
|
2582
|
+
* @name GetRecommendedQuestionsInSpace
|
|
2583
|
+
* @summary Get a list of questions that can be asked in a space.
|
|
2584
|
+
* @request GET:/spaces/{spaceId}/search/questions
|
|
2585
|
+
* @secure
|
|
2586
|
+
*/
|
|
2587
|
+
getRecommendedQuestionsInSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
1666
2588
|
/**
|
|
1667
2589
|
* No description
|
|
1668
2590
|
*
|
|
@@ -1683,6 +2605,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1683
2605
|
* @secure
|
|
1684
2606
|
*/
|
|
1685
2607
|
exportToGitRepository: (spaceId: string, data: RequestExportToGitRepository, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2608
|
+
/**
|
|
2609
|
+
* No description
|
|
2610
|
+
*
|
|
2611
|
+
* @tags spaces
|
|
2612
|
+
* @name GetSpaceGitInfo
|
|
2613
|
+
* @summary Get metadata about the Git Sync provider currently set up on the space
|
|
2614
|
+
* @request GET:/spaces/{spaceId}/git/info
|
|
2615
|
+
* @secure
|
|
2616
|
+
*/
|
|
2617
|
+
getSpaceGitInfo: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<GitSyncState, Error | {
|
|
2618
|
+
error: {
|
|
2619
|
+
code: 404;
|
|
2620
|
+
message: string;
|
|
2621
|
+
};
|
|
2622
|
+
}>>;
|
|
1686
2623
|
/**
|
|
1687
2624
|
* No description
|
|
1688
2625
|
*
|
|
@@ -1788,7 +2725,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1788
2725
|
*/
|
|
1789
2726
|
getPageByPath: (spaceId: string, pagePath: string, query?: {
|
|
1790
2727
|
format?: 'document' | 'markdown';
|
|
1791
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
2728
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
1792
2729
|
/**
|
|
1793
2730
|
* No description
|
|
1794
2731
|
*
|
|
@@ -1801,6 +2738,37 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1801
2738
|
createChangeRequest: (spaceId: string, data: RequestCreateChangeRequest, params?: RequestParams) => Promise<HttpResponse<ChangeRequest & {
|
|
1802
2739
|
changeRequest: string;
|
|
1803
2740
|
}, Error>>;
|
|
2741
|
+
/**
|
|
2742
|
+
* No description
|
|
2743
|
+
*
|
|
2744
|
+
* @tags spaces
|
|
2745
|
+
* @name ListChangeRequestsForSpace
|
|
2746
|
+
* @summary List change requests for a space.
|
|
2747
|
+
* @request GET:/spaces/{spaceId}/change-requests
|
|
2748
|
+
* @secure
|
|
2749
|
+
*/
|
|
2750
|
+
listChangeRequestsForSpace: (spaceId: string, query?: {
|
|
2751
|
+
page?: string;
|
|
2752
|
+
limit?: number;
|
|
2753
|
+
status?: ChangeRequestStatus;
|
|
2754
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2755
|
+
items: ChangeRequest[];
|
|
2756
|
+
}, Error>>;
|
|
2757
|
+
/**
|
|
2758
|
+
* No description
|
|
2759
|
+
*
|
|
2760
|
+
* @tags spaces
|
|
2761
|
+
* @name GetChangeRequestById
|
|
2762
|
+
* @summary Get the change request with the given id.
|
|
2763
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}
|
|
2764
|
+
* @secure
|
|
2765
|
+
*/
|
|
2766
|
+
getChangeRequestById: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error | {
|
|
2767
|
+
error: {
|
|
2768
|
+
code: 404;
|
|
2769
|
+
message: string;
|
|
2770
|
+
};
|
|
2771
|
+
}>>;
|
|
1804
2772
|
/**
|
|
1805
2773
|
* No description
|
|
1806
2774
|
*
|
|
@@ -1830,100 +2798,300 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1830
2798
|
/**
|
|
1831
2799
|
* No description
|
|
1832
2800
|
*
|
|
1833
|
-
* @
|
|
1834
|
-
* @
|
|
1835
|
-
* @
|
|
2801
|
+
* @tags spaces
|
|
2802
|
+
* @name GetReviewsByChangeRequestId
|
|
2803
|
+
* @summary Get all reviews for a change request.
|
|
2804
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
1836
2805
|
* @secure
|
|
1837
2806
|
*/
|
|
1838
|
-
|
|
2807
|
+
getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
|
|
2808
|
+
format?: 'document' | 'markdown';
|
|
2809
|
+
page?: string;
|
|
2810
|
+
limit?: number;
|
|
2811
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2812
|
+
items: ChangeRequestReview[];
|
|
2813
|
+
}, Error | {
|
|
2814
|
+
error: {
|
|
2815
|
+
code: 404;
|
|
2816
|
+
message: string;
|
|
2817
|
+
};
|
|
2818
|
+
}>>;
|
|
1839
2819
|
/**
|
|
1840
2820
|
* No description
|
|
1841
2821
|
*
|
|
1842
|
-
* @
|
|
1843
|
-
* @
|
|
1844
|
-
* @
|
|
2822
|
+
* @tags spaces
|
|
2823
|
+
* @name SubmitChangeRequestReview
|
|
2824
|
+
* @summary Submit a review for a change request.
|
|
2825
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
1845
2826
|
* @secure
|
|
1846
2827
|
*/
|
|
1847
|
-
|
|
2828
|
+
submitChangeRequestReview: (spaceId: string, changeRequestId: string | number, data: {
|
|
2829
|
+
status: ChangeRequestReviewStatus;
|
|
2830
|
+
comment?: Document;
|
|
2831
|
+
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequestReview, Error>>;
|
|
1848
2832
|
/**
|
|
1849
2833
|
* No description
|
|
1850
2834
|
*
|
|
1851
|
-
* @
|
|
1852
|
-
* @
|
|
1853
|
-
* @
|
|
2835
|
+
* @tags spaces
|
|
2836
|
+
* @name GetRequestedReviewersByChangeRequestId
|
|
2837
|
+
* @summary Get all requested reviewers for a change request.
|
|
2838
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
1854
2839
|
* @secure
|
|
1855
2840
|
*/
|
|
1856
|
-
|
|
2841
|
+
getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
|
|
1857
2842
|
page?: string;
|
|
1858
2843
|
limit?: number;
|
|
1859
2844
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
1860
|
-
items:
|
|
2845
|
+
items: ChangeRequestRequestedReviewer[];
|
|
1861
2846
|
}, Error>>;
|
|
1862
2847
|
/**
|
|
1863
2848
|
* No description
|
|
1864
2849
|
*
|
|
1865
|
-
* @
|
|
1866
|
-
* @
|
|
1867
|
-
* @request
|
|
2850
|
+
* @tags spaces
|
|
2851
|
+
* @name RequestReviewersForChangeRequest
|
|
2852
|
+
* @summary Request reviewers on a change request. Note that requesting a review from teams is not yet supported.
|
|
2853
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
1868
2854
|
* @secure
|
|
1869
2855
|
*/
|
|
1870
|
-
|
|
2856
|
+
requestReviewersForChangeRequest: (spaceId: string, changeRequestId: string | number, data: {
|
|
2857
|
+
users: string[];
|
|
2858
|
+
subject?: string;
|
|
2859
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
2860
|
+
users?: ChangeRequestRequestedReviewer[];
|
|
2861
|
+
}, Error>>;
|
|
2862
|
+
/**
|
|
2863
|
+
* No description
|
|
2864
|
+
*
|
|
2865
|
+
* @tags spaces
|
|
2866
|
+
* @name ListCommentsInChangeRequest
|
|
2867
|
+
* @summary List all the comments in a change request.
|
|
2868
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
2869
|
+
* @secure
|
|
2870
|
+
*/
|
|
2871
|
+
listCommentsInChangeRequest: (spaceId: string, changeRequestId: string | number, query?: {
|
|
2872
|
+
page?: string;
|
|
2873
|
+
limit?: number;
|
|
1871
2874
|
format?: 'document' | 'markdown';
|
|
1872
|
-
|
|
2875
|
+
status?: 'all';
|
|
2876
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2877
|
+
items: Comment[];
|
|
2878
|
+
}, Error>>;
|
|
1873
2879
|
/**
|
|
1874
2880
|
* No description
|
|
1875
2881
|
*
|
|
1876
|
-
* @
|
|
1877
|
-
* @
|
|
1878
|
-
* @
|
|
2882
|
+
* @tags spaces
|
|
2883
|
+
* @name PostCommentInChangeRequest
|
|
2884
|
+
* @summary Post a new comment in a change request.
|
|
2885
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
1879
2886
|
* @secure
|
|
1880
2887
|
*/
|
|
1881
|
-
|
|
2888
|
+
postCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
1882
2889
|
/**
|
|
1883
2890
|
* No description
|
|
1884
2891
|
*
|
|
1885
|
-
* @
|
|
1886
|
-
* @
|
|
1887
|
-
* @
|
|
2892
|
+
* @tags spaces
|
|
2893
|
+
* @name GetCommentInChangeRequest
|
|
2894
|
+
* @summary Get a comment in a change request.
|
|
2895
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
1888
2896
|
* @secure
|
|
1889
2897
|
*/
|
|
1890
|
-
|
|
2898
|
+
getCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
|
|
1891
2899
|
format?: 'document' | 'markdown';
|
|
1892
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
2900
|
+
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
1893
2901
|
/**
|
|
1894
2902
|
* No description
|
|
1895
2903
|
*
|
|
1896
|
-
* @
|
|
1897
|
-
* @
|
|
1898
|
-
* @request
|
|
2904
|
+
* @tags spaces
|
|
2905
|
+
* @name DeleteCommentInChangeRequest
|
|
2906
|
+
* @summary Delete a comment in a change request.
|
|
2907
|
+
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
1899
2908
|
* @secure
|
|
1900
2909
|
*/
|
|
1901
|
-
|
|
2910
|
+
deleteCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
1902
2911
|
/**
|
|
1903
2912
|
* No description
|
|
1904
2913
|
*
|
|
1905
|
-
* @
|
|
1906
|
-
* @
|
|
1907
|
-
* @request
|
|
2914
|
+
* @tags spaces
|
|
2915
|
+
* @name UpdateCommentInChangeRequest
|
|
2916
|
+
* @summary Update a comment in a change request.
|
|
2917
|
+
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
1908
2918
|
* @secure
|
|
1909
2919
|
*/
|
|
1910
|
-
|
|
2920
|
+
updateCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
2921
|
+
/**
|
|
2922
|
+
* No description
|
|
2923
|
+
*
|
|
2924
|
+
* @tags spaces
|
|
2925
|
+
* @name ListCommentRepliesInChangeRequest
|
|
2926
|
+
* @summary List all the replies to a comment in a change request.
|
|
2927
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
2928
|
+
* @secure
|
|
2929
|
+
*/
|
|
2930
|
+
listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
|
|
1911
2931
|
page?: string;
|
|
1912
2932
|
limit?: number;
|
|
2933
|
+
format?: 'document' | 'markdown';
|
|
1913
2934
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
1914
|
-
items:
|
|
2935
|
+
items: CommentReply[];
|
|
1915
2936
|
}, Error>>;
|
|
1916
2937
|
/**
|
|
1917
2938
|
* No description
|
|
1918
2939
|
*
|
|
1919
|
-
* @
|
|
1920
|
-
* @
|
|
1921
|
-
* @request
|
|
2940
|
+
* @tags spaces
|
|
2941
|
+
* @name PostCommentReplyInChangeRequest
|
|
2942
|
+
* @summary Post a new reply to a comment in a change request.
|
|
2943
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
1922
2944
|
* @secure
|
|
1923
2945
|
*/
|
|
1924
|
-
|
|
2946
|
+
postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, data: PostCommentReplySchema, query?: {
|
|
1925
2947
|
format?: 'document' | 'markdown';
|
|
1926
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
2948
|
+
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
2949
|
+
/**
|
|
2950
|
+
* No description
|
|
2951
|
+
*
|
|
2952
|
+
* @tags spaces
|
|
2953
|
+
* @name GetCommentReplyInChangeRequest
|
|
2954
|
+
* @summary Get a comment reply in a change request.
|
|
2955
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
2956
|
+
* @secure
|
|
2957
|
+
*/
|
|
2958
|
+
getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, query?: {
|
|
2959
|
+
format?: 'document' | 'markdown';
|
|
2960
|
+
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
2961
|
+
/**
|
|
2962
|
+
* No description
|
|
2963
|
+
*
|
|
2964
|
+
* @tags spaces
|
|
2965
|
+
* @name UpdateCommentReplyInChangeRequest
|
|
2966
|
+
* @summary Update a comment reply in a change request.
|
|
2967
|
+
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
2968
|
+
* @secure
|
|
2969
|
+
*/
|
|
2970
|
+
updateCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
2971
|
+
/**
|
|
2972
|
+
* No description
|
|
2973
|
+
*
|
|
2974
|
+
* @tags spaces
|
|
2975
|
+
* @name DeleteCommentReplyInChangeRequest
|
|
2976
|
+
* @summary Delete a comment reply in a change request.
|
|
2977
|
+
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
2978
|
+
* @secure
|
|
2979
|
+
*/
|
|
2980
|
+
deleteCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2981
|
+
/**
|
|
2982
|
+
* No description
|
|
2983
|
+
*
|
|
2984
|
+
* @tags spaces
|
|
2985
|
+
* @name GetContributorsByChangeRequestId
|
|
2986
|
+
* @summary Get all contributors for the change request with the given id.
|
|
2987
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/contributors
|
|
2988
|
+
* @secure
|
|
2989
|
+
*/
|
|
2990
|
+
getContributorsByChangeRequestId: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2991
|
+
items: UserContributor[];
|
|
2992
|
+
}, Error | {
|
|
2993
|
+
error: {
|
|
2994
|
+
code: 404;
|
|
2995
|
+
message: string;
|
|
2996
|
+
};
|
|
2997
|
+
}>>;
|
|
2998
|
+
/**
|
|
2999
|
+
* No description
|
|
3000
|
+
*
|
|
3001
|
+
* @name GetRevisionOfChangeRequestById
|
|
3002
|
+
* @summary Get the latest content revision for a change request.
|
|
3003
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content
|
|
3004
|
+
* @secure
|
|
3005
|
+
*/
|
|
3006
|
+
getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
|
|
3007
|
+
/**
|
|
3008
|
+
* No description
|
|
3009
|
+
*
|
|
3010
|
+
* @name ImportContentInChangeRequest
|
|
3011
|
+
* @summary Import content in a change request.
|
|
3012
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/import
|
|
3013
|
+
* @secure
|
|
3014
|
+
*/
|
|
3015
|
+
importContentInChangeRequest: (spaceId: string, changeRequestId: string | number, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
|
|
3016
|
+
/**
|
|
3017
|
+
* No description
|
|
3018
|
+
*
|
|
3019
|
+
* @name ListFilesInChangeRequestById
|
|
3020
|
+
* @summary List all files in the latest content of the change-request
|
|
3021
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
|
|
3022
|
+
* @secure
|
|
3023
|
+
*/
|
|
3024
|
+
listFilesInChangeRequestById: (spaceId: string, changeRequestId: string | number, query?: {
|
|
3025
|
+
page?: string;
|
|
3026
|
+
limit?: number;
|
|
3027
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3028
|
+
items: RevisionFile[];
|
|
3029
|
+
}, Error>>;
|
|
3030
|
+
/**
|
|
3031
|
+
* No description
|
|
3032
|
+
*
|
|
3033
|
+
* @name GetPageInChangeRequestById
|
|
3034
|
+
* @summary Get a page by its ID in a change request.
|
|
3035
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}
|
|
3036
|
+
* @secure
|
|
3037
|
+
*/
|
|
3038
|
+
getPageInChangeRequestById: (spaceId: string, changeRequestId: string | number, pageId: string, query?: {
|
|
3039
|
+
format?: 'document' | 'markdown';
|
|
3040
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
3041
|
+
/**
|
|
3042
|
+
* No description
|
|
3043
|
+
*
|
|
3044
|
+
* @name ImportContentInChangeRequestPageById
|
|
3045
|
+
* @summary Import external content into a page of a change-request by its ID.
|
|
3046
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import
|
|
3047
|
+
* @secure
|
|
3048
|
+
*/
|
|
3049
|
+
importContentInChangeRequestPageById: (spaceId: string, changeRequestId: string | number, pageId: string, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
|
|
3050
|
+
/**
|
|
3051
|
+
* No description
|
|
3052
|
+
*
|
|
3053
|
+
* @name GetPageInChangeRequestByPath
|
|
3054
|
+
* @summary Get a page by its path in a change request.
|
|
3055
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
|
|
3056
|
+
* @secure
|
|
3057
|
+
*/
|
|
3058
|
+
getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string | number, pagePath: string, query?: {
|
|
3059
|
+
format?: 'document' | 'markdown';
|
|
3060
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
3061
|
+
/**
|
|
3062
|
+
* No description
|
|
3063
|
+
*
|
|
3064
|
+
* @name GetRevisionById
|
|
3065
|
+
* @summary Get a specific revision in a space
|
|
3066
|
+
* @request GET:/spaces/{spaceId}/revisions/{revisionId}
|
|
3067
|
+
* @secure
|
|
3068
|
+
*/
|
|
3069
|
+
getRevisionById: (spaceId: string, revisionId: string, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
|
|
3070
|
+
/**
|
|
3071
|
+
* No description
|
|
3072
|
+
*
|
|
3073
|
+
* @name ListFilesInRevisionById
|
|
3074
|
+
* @summary List all files in a revision
|
|
3075
|
+
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/files
|
|
3076
|
+
* @secure
|
|
3077
|
+
*/
|
|
3078
|
+
listFilesInRevisionById: (spaceId: string, revisionId: string, query?: {
|
|
3079
|
+
page?: string;
|
|
3080
|
+
limit?: number;
|
|
3081
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3082
|
+
items: RevisionFile[];
|
|
3083
|
+
}, Error>>;
|
|
3084
|
+
/**
|
|
3085
|
+
* No description
|
|
3086
|
+
*
|
|
3087
|
+
* @name GetPageInRevisionById
|
|
3088
|
+
* @summary Get a page by its ID in a revision.
|
|
3089
|
+
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}
|
|
3090
|
+
* @secure
|
|
3091
|
+
*/
|
|
3092
|
+
getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
|
|
3093
|
+
format?: 'document' | 'markdown';
|
|
3094
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
1927
3095
|
/**
|
|
1928
3096
|
* No description
|
|
1929
3097
|
*
|
|
@@ -1934,7 +3102,124 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1934
3102
|
*/
|
|
1935
3103
|
getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
|
|
1936
3104
|
format?: 'document' | 'markdown';
|
|
1937
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
3105
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
3106
|
+
/**
|
|
3107
|
+
* No description
|
|
3108
|
+
*
|
|
3109
|
+
* @tags spaces
|
|
3110
|
+
* @name ListCommentsInSpace
|
|
3111
|
+
* @summary List all the comments in a space.
|
|
3112
|
+
* @request GET:/spaces/{spaceId}/comments
|
|
3113
|
+
* @secure
|
|
3114
|
+
*/
|
|
3115
|
+
listCommentsInSpace: (spaceId: string, query?: {
|
|
3116
|
+
page?: string;
|
|
3117
|
+
limit?: number;
|
|
3118
|
+
status?: 'all';
|
|
3119
|
+
format?: 'document' | 'markdown';
|
|
3120
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3121
|
+
items: Comment[];
|
|
3122
|
+
}, Error>>;
|
|
3123
|
+
/**
|
|
3124
|
+
* No description
|
|
3125
|
+
*
|
|
3126
|
+
* @tags spaces
|
|
3127
|
+
* @name PostCommentInSpace
|
|
3128
|
+
* @summary Post a new comment in a space.
|
|
3129
|
+
* @request POST:/spaces/{spaceId}/comments
|
|
3130
|
+
* @secure
|
|
3131
|
+
*/
|
|
3132
|
+
postCommentInSpace: (spaceId: string, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
3133
|
+
/**
|
|
3134
|
+
* No description
|
|
3135
|
+
*
|
|
3136
|
+
* @tags spaces
|
|
3137
|
+
* @name GetCommentInSpace
|
|
3138
|
+
* @summary Get a comment in a space.
|
|
3139
|
+
* @request GET:/spaces/{spaceId}/comments/{commentId}
|
|
3140
|
+
* @secure
|
|
3141
|
+
*/
|
|
3142
|
+
getCommentInSpace: (spaceId: string, commentId: string, query?: {
|
|
3143
|
+
format?: 'document' | 'markdown';
|
|
3144
|
+
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
3145
|
+
/**
|
|
3146
|
+
* No description
|
|
3147
|
+
*
|
|
3148
|
+
* @tags spaces
|
|
3149
|
+
* @name DeleteCommentInSpace
|
|
3150
|
+
* @summary Delete a comment in a space.
|
|
3151
|
+
* @request DELETE:/spaces/{spaceId}/comments/{commentId}
|
|
3152
|
+
* @secure
|
|
3153
|
+
*/
|
|
3154
|
+
deleteCommentInSpace: (spaceId: string, commentId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3155
|
+
/**
|
|
3156
|
+
* No description
|
|
3157
|
+
*
|
|
3158
|
+
* @tags spaces
|
|
3159
|
+
* @name UpdateCommentInSpace
|
|
3160
|
+
* @summary Update a comment in a space.
|
|
3161
|
+
* @request PUT:/spaces/{spaceId}/comments/{commentId}
|
|
3162
|
+
* @secure
|
|
3163
|
+
*/
|
|
3164
|
+
updateCommentInSpace: (spaceId: string, commentId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
3165
|
+
/**
|
|
3166
|
+
* No description
|
|
3167
|
+
*
|
|
3168
|
+
* @tags spaces
|
|
3169
|
+
* @name ListCommentRepliesInSpace
|
|
3170
|
+
* @summary List all the replies to a comment in a space.
|
|
3171
|
+
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies
|
|
3172
|
+
* @secure
|
|
3173
|
+
*/
|
|
3174
|
+
listCommentRepliesInSpace: (spaceId: string, commentId: string, query?: {
|
|
3175
|
+
page?: string;
|
|
3176
|
+
limit?: number;
|
|
3177
|
+
format?: 'document' | 'markdown';
|
|
3178
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3179
|
+
items: CommentReply[];
|
|
3180
|
+
}, Error>>;
|
|
3181
|
+
/**
|
|
3182
|
+
* No description
|
|
3183
|
+
*
|
|
3184
|
+
* @tags spaces
|
|
3185
|
+
* @name PostCommentReplyInSpace
|
|
3186
|
+
* @summary Post a new reply to a comment in a space.
|
|
3187
|
+
* @request POST:/spaces/{spaceId}/comments/{commentId}/replies
|
|
3188
|
+
* @secure
|
|
3189
|
+
*/
|
|
3190
|
+
postCommentReplyInSpace: (spaceId: string, commentId: string, data: PostCommentReplySchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
3191
|
+
/**
|
|
3192
|
+
* No description
|
|
3193
|
+
*
|
|
3194
|
+
* @tags spaces
|
|
3195
|
+
* @name GetCommentReplyInSpace
|
|
3196
|
+
* @summary Get a comment reply in a space.
|
|
3197
|
+
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
3198
|
+
* @secure
|
|
3199
|
+
*/
|
|
3200
|
+
getCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, query?: {
|
|
3201
|
+
format?: 'document' | 'markdown';
|
|
3202
|
+
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
3203
|
+
/**
|
|
3204
|
+
* No description
|
|
3205
|
+
*
|
|
3206
|
+
* @tags spaces
|
|
3207
|
+
* @name UpdateCommentReplyInSpace
|
|
3208
|
+
* @summary Update a comment reply in a space.
|
|
3209
|
+
* @request PUT:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
3210
|
+
* @secure
|
|
3211
|
+
*/
|
|
3212
|
+
updateCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, data: UpdateCommentReplySchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
3213
|
+
/**
|
|
3214
|
+
* No description
|
|
3215
|
+
*
|
|
3216
|
+
* @tags spaces
|
|
3217
|
+
* @name DeleteCommentReplyInSpace
|
|
3218
|
+
* @summary Delete a comment reply in a space.
|
|
3219
|
+
* @request DELETE:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
3220
|
+
* @secure
|
|
3221
|
+
*/
|
|
3222
|
+
deleteCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
1938
3223
|
/**
|
|
1939
3224
|
* No description
|
|
1940
3225
|
*
|
|
@@ -1947,9 +3232,191 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1947
3232
|
listPermissionsAggregateInSpace: (spaceId: string, query?: {
|
|
1948
3233
|
page?: string;
|
|
1949
3234
|
limit?: number;
|
|
3235
|
+
role?: MemberRole;
|
|
1950
3236
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
1951
3237
|
items: UserContentPermission[];
|
|
1952
3238
|
}, Error>>;
|
|
3239
|
+
/**
|
|
3240
|
+
* No description
|
|
3241
|
+
*
|
|
3242
|
+
* @tags spaces
|
|
3243
|
+
* @name GetSpacePublishingAuthById
|
|
3244
|
+
* @summary Get the publishing authentication configuration for a space.
|
|
3245
|
+
* @request GET:/spaces/{spaceId}/publishing/auth
|
|
3246
|
+
* @secure
|
|
3247
|
+
*/
|
|
3248
|
+
getSpacePublishingAuthById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
3249
|
+
error: {
|
|
3250
|
+
code: 400;
|
|
3251
|
+
message: string;
|
|
3252
|
+
};
|
|
3253
|
+
}>>;
|
|
3254
|
+
/**
|
|
3255
|
+
* No description
|
|
3256
|
+
*
|
|
3257
|
+
* @tags spaces
|
|
3258
|
+
* @name UpdateSpacePublishingAuthById
|
|
3259
|
+
* @summary Update the publishing authentication configuration for a space.
|
|
3260
|
+
* @request POST:/spaces/{spaceId}/publishing/auth
|
|
3261
|
+
* @secure
|
|
3262
|
+
*/
|
|
3263
|
+
updateSpacePublishingAuthById: (spaceId: string, data: RequestUpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
3264
|
+
error: {
|
|
3265
|
+
code: 400;
|
|
3266
|
+
message: string;
|
|
3267
|
+
};
|
|
3268
|
+
}>>;
|
|
3269
|
+
/**
|
|
3270
|
+
* No description
|
|
3271
|
+
*
|
|
3272
|
+
* @tags integrations
|
|
3273
|
+
* @name ListSpaceIntegrationsBlocks
|
|
3274
|
+
* @summary List integrations blocks for a space
|
|
3275
|
+
* @request GET:/spaces/{spaceId}/integration-blocks
|
|
3276
|
+
* @secure
|
|
3277
|
+
*/
|
|
3278
|
+
listSpaceIntegrationsBlocks: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceIntegrationBlocks, Error | {
|
|
3279
|
+
error: {
|
|
3280
|
+
code: 404;
|
|
3281
|
+
message: string;
|
|
3282
|
+
};
|
|
3283
|
+
}>>;
|
|
3284
|
+
/**
|
|
3285
|
+
* No description
|
|
3286
|
+
*
|
|
3287
|
+
* @tags spaces
|
|
3288
|
+
* @name ListSpaceRelations
|
|
3289
|
+
* @summary List all relations for a space
|
|
3290
|
+
* @request GET:/spaces/{spaceId}/relations
|
|
3291
|
+
* @secure
|
|
3292
|
+
*/
|
|
3293
|
+
listSpaceRelations: (spaceId: string, query?: {
|
|
3294
|
+
page?: string;
|
|
3295
|
+
limit?: number;
|
|
3296
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3297
|
+
items: SpaceRelation[];
|
|
3298
|
+
}, Error>>;
|
|
3299
|
+
/**
|
|
3300
|
+
* No description
|
|
3301
|
+
*
|
|
3302
|
+
* @tags spaces
|
|
3303
|
+
* @name CreateSpaceRelation
|
|
3304
|
+
* @summary Create a new relation between a source space and a target space
|
|
3305
|
+
* @request POST:/spaces/{spaceId}/relations
|
|
3306
|
+
* @secure
|
|
3307
|
+
*/
|
|
3308
|
+
createSpaceRelation: (spaceId: string, data: {
|
|
3309
|
+
target: string;
|
|
3310
|
+
type: SpaceRelationType;
|
|
3311
|
+
}, params?: RequestParams) => Promise<HttpResponse<SpaceRelation, Error>>;
|
|
3312
|
+
/**
|
|
3313
|
+
* No description
|
|
3314
|
+
*
|
|
3315
|
+
* @tags spaces
|
|
3316
|
+
* @name GetSpaceRelation
|
|
3317
|
+
* @summary Get the relation between 2 spaces.
|
|
3318
|
+
* @request GET:/spaces/{spaceId}/relations/{targetSpaceId}
|
|
3319
|
+
* @secure
|
|
3320
|
+
*/
|
|
3321
|
+
getSpaceRelation: (spaceId: string, targetSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceRelation, Error | {
|
|
3322
|
+
error: {
|
|
3323
|
+
code: 404;
|
|
3324
|
+
message: string;
|
|
3325
|
+
};
|
|
3326
|
+
}>>;
|
|
3327
|
+
/**
|
|
3328
|
+
* No description
|
|
3329
|
+
*
|
|
3330
|
+
* @tags spaces
|
|
3331
|
+
* @name DeleteSpaceRelation
|
|
3332
|
+
* @summary Delete a relation between spaces
|
|
3333
|
+
* @request DELETE:/spaces/{spaceId}/relations/{targetSpaceId}
|
|
3334
|
+
* @secure
|
|
3335
|
+
*/
|
|
3336
|
+
deleteSpaceRelation: (spaceId: string, targetSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3337
|
+
/**
|
|
3338
|
+
* No description
|
|
3339
|
+
*
|
|
3340
|
+
* @tags spaces
|
|
3341
|
+
* @name GetSpaceCustomFields
|
|
3342
|
+
* @summary Get the values of the custom fields set on a space
|
|
3343
|
+
* @request GET:/spaces/{spaceId}/custom-fields
|
|
3344
|
+
* @secure
|
|
3345
|
+
*/
|
|
3346
|
+
getSpaceCustomFields: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomFieldValues, Error>>;
|
|
3347
|
+
/**
|
|
3348
|
+
* No description
|
|
3349
|
+
*
|
|
3350
|
+
* @tags spaces
|
|
3351
|
+
* @name UpdateSpaceCustomFields
|
|
3352
|
+
* @summary Update the custom fields in a space
|
|
3353
|
+
* @request PATCH:/spaces/{spaceId}/custom-fields
|
|
3354
|
+
* @secure
|
|
3355
|
+
*/
|
|
3356
|
+
updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3357
|
+
/**
|
|
3358
|
+
* No description
|
|
3359
|
+
*
|
|
3360
|
+
* @tags spaces
|
|
3361
|
+
* @name ListSpaceEntities
|
|
3362
|
+
* @summary List all entities linked to a space
|
|
3363
|
+
* @request GET:/spaces/{spaceId}/entities
|
|
3364
|
+
* @secure
|
|
3365
|
+
*/
|
|
3366
|
+
listSpaceEntities: (spaceId: string, query?: {
|
|
3367
|
+
page?: string;
|
|
3368
|
+
limit?: number;
|
|
3369
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3370
|
+
items: SpaceEntity[];
|
|
3371
|
+
}, Error>>;
|
|
3372
|
+
/**
|
|
3373
|
+
* No description
|
|
3374
|
+
*
|
|
3375
|
+
* @tags spaces
|
|
3376
|
+
* @name AddSpaceEntities
|
|
3377
|
+
* @summary Link the space to entities
|
|
3378
|
+
* @request POST:/spaces/{spaceId}/entities
|
|
3379
|
+
* @secure
|
|
3380
|
+
*/
|
|
3381
|
+
addSpaceEntities: (spaceId: string, data: {
|
|
3382
|
+
entities: {
|
|
3383
|
+
integration: string;
|
|
3384
|
+
entityId: string;
|
|
3385
|
+
environments: string[];
|
|
3386
|
+
}[];
|
|
3387
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3388
|
+
/**
|
|
3389
|
+
* No description
|
|
3390
|
+
*
|
|
3391
|
+
* @tags spaces
|
|
3392
|
+
* @name GetSpaceEntity
|
|
3393
|
+
* @summary Get a space entity
|
|
3394
|
+
* @request GET:/spaces/{spaceId}/entities/{integrationName}/{entityId}
|
|
3395
|
+
* @secure
|
|
3396
|
+
*/
|
|
3397
|
+
getSpaceEntity: (spaceId: string, integrationName: string, entityId: string, params?: RequestParams) => Promise<HttpResponse<SpaceEntity, Error>>;
|
|
3398
|
+
/**
|
|
3399
|
+
* No description
|
|
3400
|
+
*
|
|
3401
|
+
* @tags spaces
|
|
3402
|
+
* @name UpdateSpaceEntity
|
|
3403
|
+
* @summary Update a space entity
|
|
3404
|
+
* @request PATCH:/spaces/{spaceId}/entities/{integrationName}/{entityId}
|
|
3405
|
+
* @secure
|
|
3406
|
+
*/
|
|
3407
|
+
updateSpaceEntity: (spaceId: string, integrationName: string, entityId: string, data: {
|
|
3408
|
+
environments: SpaceEntityEnvironments;
|
|
3409
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3410
|
+
/**
|
|
3411
|
+
* No description
|
|
3412
|
+
*
|
|
3413
|
+
* @tags spaces
|
|
3414
|
+
* @name DeleteSpaceEntity
|
|
3415
|
+
* @summary Delete a space entity
|
|
3416
|
+
* @request DELETE:/spaces/{spaceId}/entities/{integrationName}/{entityId}
|
|
3417
|
+
* @secure
|
|
3418
|
+
*/
|
|
3419
|
+
deleteSpaceEntity: (spaceId: string, integrationName: string, entityId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
1953
3420
|
};
|
|
1954
3421
|
collections: {
|
|
1955
3422
|
/**
|
|
@@ -1962,6 +3429,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1962
3429
|
* @secure
|
|
1963
3430
|
*/
|
|
1964
3431
|
getCollectionById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
|
|
3432
|
+
/**
|
|
3433
|
+
* No description
|
|
3434
|
+
*
|
|
3435
|
+
* @tags collections
|
|
3436
|
+
* @name UpdateCollectionById
|
|
3437
|
+
* @summary Update the details of a collection
|
|
3438
|
+
* @request PATCH:/collections/{collectionId}
|
|
3439
|
+
* @secure
|
|
3440
|
+
*/
|
|
3441
|
+
updateCollectionById: (collectionId: string, data: {
|
|
3442
|
+
visibility?: ContentVisibility;
|
|
3443
|
+
}, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
|
|
1965
3444
|
/**
|
|
1966
3445
|
* No description
|
|
1967
3446
|
*
|
|
@@ -1989,9 +3468,40 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1989
3468
|
listPermissionsAggregateInCollection: (collectionId: string, query?: {
|
|
1990
3469
|
page?: string;
|
|
1991
3470
|
limit?: number;
|
|
3471
|
+
role?: MemberRole;
|
|
1992
3472
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
1993
3473
|
items: UserContentPermission[];
|
|
1994
3474
|
}, Error>>;
|
|
3475
|
+
/**
|
|
3476
|
+
* No description
|
|
3477
|
+
*
|
|
3478
|
+
* @tags collections
|
|
3479
|
+
* @name GetCollectionPublishingAuthById
|
|
3480
|
+
* @summary Get the publishing authentication configuration for a collection.
|
|
3481
|
+
* @request GET:/collections/{collectionId}/publishing/auth
|
|
3482
|
+
* @secure
|
|
3483
|
+
*/
|
|
3484
|
+
getCollectionPublishingAuthById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
3485
|
+
error: {
|
|
3486
|
+
code: 400;
|
|
3487
|
+
message: string;
|
|
3488
|
+
};
|
|
3489
|
+
}>>;
|
|
3490
|
+
/**
|
|
3491
|
+
* No description
|
|
3492
|
+
*
|
|
3493
|
+
* @tags collections
|
|
3494
|
+
* @name UpdateCollectionPublishingAuthById
|
|
3495
|
+
* @summary Update the publishing authentication configuration for a collection.
|
|
3496
|
+
* @request POST:/collections/{collectionId}/publishing/auth
|
|
3497
|
+
* @secure
|
|
3498
|
+
*/
|
|
3499
|
+
updateCollectionPublishingAuthById: (collectionId: string, data: RequestUpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
3500
|
+
error: {
|
|
3501
|
+
code: 400;
|
|
3502
|
+
message: string;
|
|
3503
|
+
};
|
|
3504
|
+
}>>;
|
|
1995
3505
|
};
|
|
1996
3506
|
integrations: {
|
|
1997
3507
|
/**
|
|
@@ -2065,6 +3575,54 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2065
3575
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2066
3576
|
items: IntegrationInstallation[];
|
|
2067
3577
|
}, Error>>;
|
|
3578
|
+
/**
|
|
3579
|
+
* No description
|
|
3580
|
+
*
|
|
3581
|
+
* @tags integrations
|
|
3582
|
+
* @name InstallIntegration
|
|
3583
|
+
* @summary Install integration on a target organization
|
|
3584
|
+
* @request POST:/integrations/{integrationName}/installations
|
|
3585
|
+
* @secure
|
|
3586
|
+
*/
|
|
3587
|
+
installIntegration: (integrationName: string, data: OrganizationTarget, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error | {
|
|
3588
|
+
error: {
|
|
3589
|
+
code: 404;
|
|
3590
|
+
message: string;
|
|
3591
|
+
};
|
|
3592
|
+
}>>;
|
|
3593
|
+
/**
|
|
3594
|
+
* No description
|
|
3595
|
+
*
|
|
3596
|
+
* @tags integrations
|
|
3597
|
+
* @name ListIntegrationEvents
|
|
3598
|
+
* @summary List all integration events
|
|
3599
|
+
* @request GET:/integrations/{integrationName}/events
|
|
3600
|
+
* @secure
|
|
3601
|
+
*/
|
|
3602
|
+
listIntegrationEvents: (integrationName: string, query?: {
|
|
3603
|
+
page?: string;
|
|
3604
|
+
limit?: number;
|
|
3605
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3606
|
+
items: IntegrationEvent[];
|
|
3607
|
+
}, Error>>;
|
|
3608
|
+
/**
|
|
3609
|
+
* No description
|
|
3610
|
+
*
|
|
3611
|
+
* @tags integrations
|
|
3612
|
+
* @name GetIntegrationEvent
|
|
3613
|
+
* @summary Get a specific integration event by its id
|
|
3614
|
+
* @request GET:/integrations/{integrationName}/events/{eventId}
|
|
3615
|
+
* @secure
|
|
3616
|
+
*/
|
|
3617
|
+
getIntegrationEvent: (integrationName: string, eventId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
3618
|
+
event: IntegrationEvent;
|
|
3619
|
+
trace?: IntegrationEventTrace;
|
|
3620
|
+
}, Error | {
|
|
3621
|
+
error: {
|
|
3622
|
+
code: 404;
|
|
3623
|
+
message: string;
|
|
3624
|
+
};
|
|
3625
|
+
}>>;
|
|
2068
3626
|
/**
|
|
2069
3627
|
* No description
|
|
2070
3628
|
*
|
|
@@ -2081,6 +3639,38 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2081
3639
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2082
3640
|
items: IntegrationSpaceInstallation[];
|
|
2083
3641
|
}, Error>>;
|
|
3642
|
+
/**
|
|
3643
|
+
* No description
|
|
3644
|
+
*
|
|
3645
|
+
* @tags integrations
|
|
3646
|
+
* @name UpdateIntegrationDevSpace
|
|
3647
|
+
* @summary Update the development space for an integration
|
|
3648
|
+
* @request PUT:/integrations/{integrationName}/spaces/{spaceId}/dev
|
|
3649
|
+
* @secure
|
|
3650
|
+
*/
|
|
3651
|
+
updateIntegrationDevSpace: (integrationName: string, spaceId: string, data: {
|
|
3652
|
+
tunnelUrl: string;
|
|
3653
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
3654
|
+
error: {
|
|
3655
|
+
code: 404;
|
|
3656
|
+
message: string;
|
|
3657
|
+
};
|
|
3658
|
+
}>>;
|
|
3659
|
+
/**
|
|
3660
|
+
* No description
|
|
3661
|
+
*
|
|
3662
|
+
* @tags integrations
|
|
3663
|
+
* @name RemoveIntegrationDevSpace
|
|
3664
|
+
* @summary Remove the development space for an integration
|
|
3665
|
+
* @request DELETE:/integrations/{integrationName}/spaces/{spaceId}/dev
|
|
3666
|
+
* @secure
|
|
3667
|
+
*/
|
|
3668
|
+
removeIntegrationDevSpace: (integrationName: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
3669
|
+
error: {
|
|
3670
|
+
code: 404;
|
|
3671
|
+
message: string;
|
|
3672
|
+
};
|
|
3673
|
+
}>>;
|
|
2084
3674
|
/**
|
|
2085
3675
|
* No description
|
|
2086
3676
|
*
|
|
@@ -2101,6 +3691,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2101
3691
|
* @secure
|
|
2102
3692
|
*/
|
|
2103
3693
|
renderIntegrationUiWithPost: (integrationName: string, data: RequestRenderIntegrationUI, params?: RequestParams) => Promise<HttpResponse<ContentKitRenderOutput, Error>>;
|
|
3694
|
+
/**
|
|
3695
|
+
* No description
|
|
3696
|
+
*
|
|
3697
|
+
* @tags integrations
|
|
3698
|
+
* @name GetIntegrationInstallationById
|
|
3699
|
+
* @summary Get a specific integration's installation by its ID
|
|
3700
|
+
* @request GET:/integrations/{integrationName}/installations/{installationId}
|
|
3701
|
+
* @secure
|
|
3702
|
+
*/
|
|
3703
|
+
getIntegrationInstallationById: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error | {
|
|
3704
|
+
error: {
|
|
3705
|
+
code: 404;
|
|
3706
|
+
message: string;
|
|
3707
|
+
};
|
|
3708
|
+
}>>;
|
|
2104
3709
|
/**
|
|
2105
3710
|
* No description
|
|
2106
3711
|
*
|
|
@@ -2111,6 +3716,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2111
3716
|
* @secure
|
|
2112
3717
|
*/
|
|
2113
3718
|
updateIntegrationInstallation: (integrationName: string, installationId: string, data: RequestUpdateIntegrationInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error>>;
|
|
3719
|
+
/**
|
|
3720
|
+
* No description
|
|
3721
|
+
*
|
|
3722
|
+
* @tags integrations
|
|
3723
|
+
* @name UninstallIntegration
|
|
3724
|
+
* @summary Uninstall the integration from a target organization
|
|
3725
|
+
* @request DELETE:/integrations/{integrationName}/installations/{installationId}
|
|
3726
|
+
* @secure
|
|
3727
|
+
*/
|
|
3728
|
+
uninstallIntegration: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
3729
|
+
error: {
|
|
3730
|
+
code: 404;
|
|
3731
|
+
message: string;
|
|
3732
|
+
};
|
|
3733
|
+
}>>;
|
|
2114
3734
|
/**
|
|
2115
3735
|
* @description Creates a temporary API token of an integration's installation that has access to the installation and it's scopes. You must be authenticated as the integration to obtain this token.
|
|
2116
3736
|
*
|
|
@@ -2126,6 +3746,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2126
3746
|
message: string;
|
|
2127
3747
|
};
|
|
2128
3748
|
}>>;
|
|
3749
|
+
/**
|
|
3750
|
+
* No description
|
|
3751
|
+
*
|
|
3752
|
+
* @name InstallIntegrationOnSpace
|
|
3753
|
+
* @summary Install integration on a space using an existing installation
|
|
3754
|
+
* @request POST:/integrations/{integrationName}/installations/{installationId}/spaces
|
|
3755
|
+
* @secure
|
|
3756
|
+
*/
|
|
3757
|
+
installIntegrationOnSpace: (integrationName: string, installationId: string, data: {
|
|
3758
|
+
space: string;
|
|
3759
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
|
|
3760
|
+
error: {
|
|
3761
|
+
code: 404;
|
|
3762
|
+
message: string;
|
|
3763
|
+
};
|
|
3764
|
+
}>>;
|
|
2129
3765
|
/**
|
|
2130
3766
|
* No description
|
|
2131
3767
|
*
|
|
@@ -2135,6 +3771,49 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2135
3771
|
* @secure
|
|
2136
3772
|
*/
|
|
2137
3773
|
updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data: RequestUpdateIntegrationInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error>>;
|
|
3774
|
+
/**
|
|
3775
|
+
* No description
|
|
3776
|
+
*
|
|
3777
|
+
* @name UninstallIntegrationFromSpace
|
|
3778
|
+
* @summary Uninstall the integration from a space
|
|
3779
|
+
* @request DELETE:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
3780
|
+
* @secure
|
|
3781
|
+
*/
|
|
3782
|
+
uninstallIntegrationFromSpace: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3783
|
+
/**
|
|
3784
|
+
* No description
|
|
3785
|
+
*
|
|
3786
|
+
* @tags integrations
|
|
3787
|
+
* @name GetIntegrationEntities
|
|
3788
|
+
* @summary List entities managed by an integration in an installation.
|
|
3789
|
+
* @request GET:/integrations/{integrationName}/installations/{installationId}/entities
|
|
3790
|
+
* @secure
|
|
3791
|
+
*/
|
|
3792
|
+
getIntegrationEntities: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3793
|
+
items: IntegrationEntity[];
|
|
3794
|
+
}, Error | {
|
|
3795
|
+
error: {
|
|
3796
|
+
code: 404;
|
|
3797
|
+
message: string;
|
|
3798
|
+
};
|
|
3799
|
+
}>>;
|
|
3800
|
+
/**
|
|
3801
|
+
* @description Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.
|
|
3802
|
+
*
|
|
3803
|
+
* @tags integrations
|
|
3804
|
+
* @name SyncIntegrationEntities
|
|
3805
|
+
* @summary Update all entities for an integration installation.
|
|
3806
|
+
* @request POST:/integrations/{integrationName}/installations/{installationId}/entities
|
|
3807
|
+
* @secure
|
|
3808
|
+
*/
|
|
3809
|
+
syncIntegrationEntities: (integrationName: string, installationId: string, data: {
|
|
3810
|
+
entities: UpsertIntegrationEntity[];
|
|
3811
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
3812
|
+
error: {
|
|
3813
|
+
code: 404;
|
|
3814
|
+
message: string;
|
|
3815
|
+
};
|
|
3816
|
+
}>>;
|
|
2138
3817
|
};
|
|
2139
3818
|
orgs: {
|
|
2140
3819
|
/**
|
|
@@ -2152,6 +3831,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2152
3831
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2153
3832
|
items: Organization[];
|
|
2154
3833
|
}, Error>>;
|
|
3834
|
+
/**
|
|
3835
|
+
* No description
|
|
3836
|
+
*
|
|
3837
|
+
* @tags organizations
|
|
3838
|
+
* @name CreateOrganization
|
|
3839
|
+
* @summary Create an organization
|
|
3840
|
+
* @request POST:/orgs
|
|
3841
|
+
* @secure
|
|
3842
|
+
*/
|
|
3843
|
+
createOrganization: (data: RequestCreateOrganization, params?: RequestParams) => Promise<HttpResponse<Organization, Error>>;
|
|
3844
|
+
/**
|
|
3845
|
+
* No description
|
|
3846
|
+
*
|
|
3847
|
+
* @tags organizations
|
|
3848
|
+
* @name GetOrganizationById
|
|
3849
|
+
* @summary Get an organization by its ID
|
|
3850
|
+
* @request GET:/orgs/{organizationId}
|
|
3851
|
+
* @secure
|
|
3852
|
+
*/
|
|
3853
|
+
getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error>>;
|
|
2155
3854
|
/**
|
|
2156
3855
|
* @description Lists members for the specified organization.
|
|
2157
3856
|
*
|
|
@@ -2164,6 +3863,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2164
3863
|
listMembersInOrganizationById: (organizationId: string, query?: {
|
|
2165
3864
|
page?: string;
|
|
2166
3865
|
limit?: number;
|
|
3866
|
+
role?: MemberRole | 'guest';
|
|
3867
|
+
search?: string;
|
|
2167
3868
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2168
3869
|
items: OrganizationMember[];
|
|
2169
3870
|
}, Error>>;
|
|
@@ -2199,6 +3900,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2199
3900
|
* @secure
|
|
2200
3901
|
*/
|
|
2201
3902
|
removeMemberFromOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3903
|
+
/**
|
|
3904
|
+
* @description Update organization member's "last seen at" timestamp.
|
|
3905
|
+
*
|
|
3906
|
+
* @tags organizations
|
|
3907
|
+
* @name UpdateOrganizationMemberLastSeenAt
|
|
3908
|
+
* @summary Update organization member's "last seen at" timestamp.
|
|
3909
|
+
* @request POST:/orgs/{organizationId}/ping
|
|
3910
|
+
* @secure
|
|
3911
|
+
*/
|
|
3912
|
+
updateOrganizationMemberLastSeenAt: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2202
3913
|
/**
|
|
2203
3914
|
* No description
|
|
2204
3915
|
*
|
|
@@ -2208,7 +3919,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2208
3919
|
* @request POST:/orgs/{organizationId}/members/{userId}/sso
|
|
2209
3920
|
* @secure
|
|
2210
3921
|
*/
|
|
2211
|
-
setUserAsSsoMemberForOrganization: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<
|
|
3922
|
+
setUserAsSsoMemberForOrganization: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationMember, Error>>;
|
|
2212
3923
|
/**
|
|
2213
3924
|
* No description
|
|
2214
3925
|
*
|
|
@@ -2224,6 +3935,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2224
3935
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2225
3936
|
items: MemberContentPermission[];
|
|
2226
3937
|
}, Error>>;
|
|
3938
|
+
/**
|
|
3939
|
+
* No description
|
|
3940
|
+
*
|
|
3941
|
+
* @tags teams
|
|
3942
|
+
* @name ListTeamsForOrganizationMember
|
|
3943
|
+
* @summary List all teams an organization member is part of
|
|
3944
|
+
* @request GET:/orgs/{organizationId}/members/{userId}/teams
|
|
3945
|
+
* @secure
|
|
3946
|
+
*/
|
|
3947
|
+
listTeamsForOrganizationMember: (organizationId: string, userId: string, query?: {
|
|
3948
|
+
page?: string;
|
|
3949
|
+
limit?: number;
|
|
3950
|
+
title?: string;
|
|
3951
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3952
|
+
items: {
|
|
3953
|
+
team: OrganizationTeam;
|
|
3954
|
+
member: TeamMember;
|
|
3955
|
+
}[];
|
|
3956
|
+
}, Error>>;
|
|
2227
3957
|
/**
|
|
2228
3958
|
* @description Lists teams for the specified organization.
|
|
2229
3959
|
*
|
|
@@ -2296,6 +4026,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2296
4026
|
*/
|
|
2297
4027
|
updateMembersInOrganizationTeam: (organizationId: string, teamId: string, data: {
|
|
2298
4028
|
add?: string[];
|
|
4029
|
+
memberships?: Record<string, TeamMember>;
|
|
2299
4030
|
remove?: string[];
|
|
2300
4031
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2301
4032
|
/**
|
|
@@ -2314,15 +4045,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2314
4045
|
items: OrganizationMember[];
|
|
2315
4046
|
}, Error>>;
|
|
2316
4047
|
/**
|
|
2317
|
-
* @description
|
|
4048
|
+
* @description Add or updates member in the specified organization team.
|
|
2318
4049
|
*
|
|
2319
4050
|
* @tags organizations
|
|
2320
4051
|
* @name AddMemberToOrganizationTeamById
|
|
2321
|
-
* @summary Add
|
|
4052
|
+
* @summary Add or update a team membership
|
|
2322
4053
|
* @request PUT:/orgs/{organizationId}/teams/{teamId}/members/{userId}
|
|
2323
4054
|
* @secure
|
|
2324
4055
|
*/
|
|
2325
|
-
addMemberToOrganizationTeamById: (organizationId: string, teamId: string, userId: string,
|
|
4056
|
+
addMemberToOrganizationTeamById: (organizationId: string, teamId: string, userId: string, data: {
|
|
4057
|
+
role?: TeamMemberRole;
|
|
4058
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2326
4059
|
/**
|
|
2327
4060
|
* @description Deletes member from the specified organization team.
|
|
2328
4061
|
*
|
|
@@ -2436,9 +4169,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2436
4169
|
listSpacesInOrganizationById: (organizationId: string, query?: {
|
|
2437
4170
|
page?: string;
|
|
2438
4171
|
limit?: number;
|
|
4172
|
+
visibility?: ContentVisibility;
|
|
2439
4173
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2440
4174
|
items: Space[];
|
|
2441
4175
|
}, Error>>;
|
|
4176
|
+
/**
|
|
4177
|
+
* No description
|
|
4178
|
+
*
|
|
4179
|
+
* @tags spaces
|
|
4180
|
+
* @name CreateSpace
|
|
4181
|
+
* @summary Create an organization space
|
|
4182
|
+
* @request POST:/orgs/{organizationId}/spaces
|
|
4183
|
+
* @secure
|
|
4184
|
+
*/
|
|
4185
|
+
createSpace: (organizationId: string, data: RequestCreateSpace, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
4186
|
+
/**
|
|
4187
|
+
* @description Lists spaces including Git sync metadata for the specified organization.
|
|
4188
|
+
*
|
|
4189
|
+
* @tags organizations
|
|
4190
|
+
* @name ListSpacesWithGitSyncInOrganizationById
|
|
4191
|
+
* @summary List organization spaces including Git sync metadata
|
|
4192
|
+
* @request GET:/orgs/{organizationId}/spaces/gitsync
|
|
4193
|
+
* @secure
|
|
4194
|
+
*/
|
|
4195
|
+
listSpacesWithGitSyncInOrganizationById: (organizationId: string, query?: {
|
|
4196
|
+
page?: string;
|
|
4197
|
+
limit?: number;
|
|
4198
|
+
status?: GitSyncOperationState;
|
|
4199
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4200
|
+
items: {
|
|
4201
|
+
space: Space;
|
|
4202
|
+
gitSync?: GitSyncState;
|
|
4203
|
+
}[];
|
|
4204
|
+
}, Error>>;
|
|
2442
4205
|
/**
|
|
2443
4206
|
* @description Lists collections for the specified organization.
|
|
2444
4207
|
*
|
|
@@ -2496,6 +4259,215 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2496
4259
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
2497
4260
|
synced: OrganizationDirectorySyncGroupTeamStatus[];
|
|
2498
4261
|
}, Error>>;
|
|
4262
|
+
/**
|
|
4263
|
+
* No description
|
|
4264
|
+
*
|
|
4265
|
+
* @tags organizations
|
|
4266
|
+
* @name ListOrganizationCustomFields
|
|
4267
|
+
* @summary Get the custom fields for spaces in an organization
|
|
4268
|
+
* @request GET:/orgs/{organizationId}/custom-fields
|
|
4269
|
+
* @secure
|
|
4270
|
+
*/
|
|
4271
|
+
listOrganizationCustomFields: (organizationId: string, query?: {
|
|
4272
|
+
page?: string;
|
|
4273
|
+
limit?: number;
|
|
4274
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4275
|
+
items: CustomField[];
|
|
4276
|
+
}, Error>>;
|
|
4277
|
+
/**
|
|
4278
|
+
* No description
|
|
4279
|
+
*
|
|
4280
|
+
* @tags organizations
|
|
4281
|
+
* @name CreateOrganizationCustomField
|
|
4282
|
+
* @summary Create a new custom field in an orgamization
|
|
4283
|
+
* @request POST:/orgs/{organizationId}/custom-fields
|
|
4284
|
+
* @secure
|
|
4285
|
+
*/
|
|
4286
|
+
createOrganizationCustomField: (organizationId: string, data: {
|
|
4287
|
+
name: CustomFieldName;
|
|
4288
|
+
type: CustomFieldType;
|
|
4289
|
+
title?: CustomFieldTitle;
|
|
4290
|
+
description?: CustomFieldDescription;
|
|
4291
|
+
}, params?: RequestParams) => Promise<HttpResponse<CustomField, Error>>;
|
|
4292
|
+
/**
|
|
4293
|
+
* No description
|
|
4294
|
+
*
|
|
4295
|
+
* @tags organizations
|
|
4296
|
+
* @name GetOrganizationCustomFieldByName
|
|
4297
|
+
* @summary Get a custom field by its name
|
|
4298
|
+
* @request GET:/orgs/{organizationId}/custom-fields/{fieldName}
|
|
4299
|
+
* @secure
|
|
4300
|
+
*/
|
|
4301
|
+
getOrganizationCustomFieldByName: (organizationId: string, fieldName: string, params?: RequestParams) => Promise<HttpResponse<CustomField, Error | {
|
|
4302
|
+
error: {
|
|
4303
|
+
code: 404;
|
|
4304
|
+
message: string;
|
|
4305
|
+
};
|
|
4306
|
+
}>>;
|
|
4307
|
+
/**
|
|
4308
|
+
* No description
|
|
4309
|
+
*
|
|
4310
|
+
* @tags organizations
|
|
4311
|
+
* @name UpdateOrganizationCustomField
|
|
4312
|
+
* @summary Update a custom field in an organization
|
|
4313
|
+
* @request PATCH:/orgs/{organizationId}/custom-fields/{fieldName}
|
|
4314
|
+
* @secure
|
|
4315
|
+
*/
|
|
4316
|
+
updateOrganizationCustomField: (organizationId: string, fieldName: string, data: {
|
|
4317
|
+
title?: CustomFieldTitle;
|
|
4318
|
+
description?: CustomFieldDescription;
|
|
4319
|
+
}, params?: RequestParams) => Promise<HttpResponse<CustomField, Error>>;
|
|
4320
|
+
/**
|
|
4321
|
+
* No description
|
|
4322
|
+
*
|
|
4323
|
+
* @tags organizations
|
|
4324
|
+
* @name DeleteOrganizationCustomField
|
|
4325
|
+
* @summary Delete a custom field in an organization
|
|
4326
|
+
* @request DELETE:/orgs/{organizationId}/custom-fields/{fieldName}
|
|
4327
|
+
* @secure
|
|
4328
|
+
*/
|
|
4329
|
+
deleteOrganizationCustomField: (organizationId: string, fieldName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4330
|
+
/**
|
|
4331
|
+
* No description
|
|
4332
|
+
*
|
|
4333
|
+
* @tags spaces
|
|
4334
|
+
* @name ListSpaceRelationsInOrganization
|
|
4335
|
+
* @summary List all relations between spaces in an organization
|
|
4336
|
+
* @request GET:/orgs/{organizationId}/space-relations
|
|
4337
|
+
* @secure
|
|
4338
|
+
*/
|
|
4339
|
+
listSpaceRelationsInOrganization: (organizationId: string, query?: {
|
|
4340
|
+
page?: string;
|
|
4341
|
+
limit?: number;
|
|
4342
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4343
|
+
items: SpaceRelationPair[];
|
|
4344
|
+
}, Error>>;
|
|
4345
|
+
/**
|
|
4346
|
+
* No description
|
|
4347
|
+
*
|
|
4348
|
+
* @tags spaces
|
|
4349
|
+
* @name ListEntitiesInOrganization
|
|
4350
|
+
* @summary List all entities in an organization.
|
|
4351
|
+
* @request GET:/orgs/{organizationId}/entities
|
|
4352
|
+
* @secure
|
|
4353
|
+
*/
|
|
4354
|
+
listEntitiesInOrganization: (organizationId: string, query?: {
|
|
4355
|
+
page?: string;
|
|
4356
|
+
limit?: number;
|
|
4357
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4358
|
+
items: IntegrationEntity[];
|
|
4359
|
+
}, Error>>;
|
|
4360
|
+
/**
|
|
4361
|
+
* No description
|
|
4362
|
+
*
|
|
4363
|
+
* @tags organizations, environments
|
|
4364
|
+
* @name ListEnvironments
|
|
4365
|
+
* @summary Get the environments in an organization
|
|
4366
|
+
* @request GET:/orgs/{organizationId}/environments
|
|
4367
|
+
* @secure
|
|
4368
|
+
*/
|
|
4369
|
+
listEnvironments: (organizationId: string, query?: {
|
|
4370
|
+
page?: string;
|
|
4371
|
+
limit?: number;
|
|
4372
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4373
|
+
items?: Environment[];
|
|
4374
|
+
}, any>>;
|
|
4375
|
+
/**
|
|
4376
|
+
* No description
|
|
4377
|
+
*
|
|
4378
|
+
* @tags organizations, environments
|
|
4379
|
+
* @name CreateEnvironment
|
|
4380
|
+
* @summary Create a new environment within an organization
|
|
4381
|
+
* @request POST:/orgs/{organizationId}/environments
|
|
4382
|
+
* @secure
|
|
4383
|
+
*/
|
|
4384
|
+
createEnvironment: (organizationId: string, data: CreateEnvironment, params?: RequestParams) => Promise<HttpResponse<Environment, Error>>;
|
|
4385
|
+
/**
|
|
4386
|
+
* No description
|
|
4387
|
+
*
|
|
4388
|
+
* @tags organizations, environments
|
|
4389
|
+
* @name GetEnvironmentByName
|
|
4390
|
+
* @summary Get an environment by its name
|
|
4391
|
+
* @request GET:/orgs/{organizationId}/environments/{environmentName}
|
|
4392
|
+
* @secure
|
|
4393
|
+
*/
|
|
4394
|
+
getEnvironmentByName: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<Environment, Error | {
|
|
4395
|
+
error: {
|
|
4396
|
+
code: 404;
|
|
4397
|
+
message: string;
|
|
4398
|
+
};
|
|
4399
|
+
}>>;
|
|
4400
|
+
/**
|
|
4401
|
+
* No description
|
|
4402
|
+
*
|
|
4403
|
+
* @tags organizations, environments
|
|
4404
|
+
* @name UpdateEnvironment
|
|
4405
|
+
* @summary Update an existing environment within an organization
|
|
4406
|
+
* @request PATCH:/orgs/{organizationId}/environments/{environmentName}
|
|
4407
|
+
* @secure
|
|
4408
|
+
*/
|
|
4409
|
+
updateEnvironment: (organizationId: string, environmentName: string, data: UpdateEnvironment, params?: RequestParams) => Promise<HttpResponse<Environment, Error>>;
|
|
4410
|
+
/**
|
|
4411
|
+
* No description
|
|
4412
|
+
*
|
|
4413
|
+
* @tags organizations, environments
|
|
4414
|
+
* @name DeleteEnvironment
|
|
4415
|
+
* @summary Delete an environment in an organization
|
|
4416
|
+
* @request DELETE:/orgs/{organizationId}/environments/{environmentName}
|
|
4417
|
+
* @secure
|
|
4418
|
+
*/
|
|
4419
|
+
deleteEnvironment: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4420
|
+
/**
|
|
4421
|
+
* No description
|
|
4422
|
+
*
|
|
4423
|
+
* @tags organizations
|
|
4424
|
+
* @name StartRecording
|
|
4425
|
+
* @summary Start a recording
|
|
4426
|
+
* @request POST:/orgs/{organizationId}/recordings
|
|
4427
|
+
* @secure
|
|
4428
|
+
*/
|
|
4429
|
+
startRecording: (organizationId: string, data: {
|
|
4430
|
+
space: string;
|
|
4431
|
+
context: RecordingContext;
|
|
4432
|
+
}, params?: RequestParams) => Promise<HttpResponse<Recording, Error>>;
|
|
4433
|
+
/**
|
|
4434
|
+
* No description
|
|
4435
|
+
*
|
|
4436
|
+
* @tags organizations
|
|
4437
|
+
* @name AddEventsToRecording
|
|
4438
|
+
* @summary Add events to a running recording
|
|
4439
|
+
* @request POST:/orgs/{organizationId}/recordings/{recordingId}/events
|
|
4440
|
+
* @secure
|
|
4441
|
+
*/
|
|
4442
|
+
addEventsToRecording: (organizationId: string, recordingId: string, data: {
|
|
4443
|
+
events: RecordingEvent[];
|
|
4444
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4445
|
+
/**
|
|
4446
|
+
* No description
|
|
4447
|
+
*
|
|
4448
|
+
* @tags organizations
|
|
4449
|
+
* @name StopRecording
|
|
4450
|
+
* @summary Stop a recording
|
|
4451
|
+
* @request POST:/orgs/{organizationId}/recordings/{recordingId}/stop
|
|
4452
|
+
* @secure
|
|
4453
|
+
*/
|
|
4454
|
+
stopRecording: (organizationId: string, recordingId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
4455
|
+
url: string;
|
|
4456
|
+
}, Error>>;
|
|
4457
|
+
};
|
|
4458
|
+
internal: {
|
|
4459
|
+
/**
|
|
4460
|
+
* No description
|
|
4461
|
+
*
|
|
4462
|
+
* @tags hive
|
|
4463
|
+
* @name GenerateHiveAccessToken
|
|
4464
|
+
* @summary Returns a token to authenticate with Hive.
|
|
4465
|
+
* @request POST:/internal/hive/token
|
|
4466
|
+
* @secure
|
|
4467
|
+
*/
|
|
4468
|
+
generateHiveAccessToken: (data?: {
|
|
4469
|
+
spaces?: string[];
|
|
4470
|
+
}, params?: RequestParams) => Promise<HttpResponse<HiveAccessToken, Error>>;
|
|
2499
4471
|
};
|
|
2500
4472
|
urls: {
|
|
2501
4473
|
/**
|
|
@@ -2514,7 +4486,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2514
4486
|
} | {
|
|
2515
4487
|
space: Space;
|
|
2516
4488
|
changeRequest?: ChangeRequest;
|
|
2517
|
-
page?:
|
|
4489
|
+
page?: RevisionPageDocument | RevisionPageGroup;
|
|
2518
4490
|
}, Error>>;
|
|
2519
4491
|
};
|
|
2520
4492
|
}
|