@gitbook/api 0.2.2 → 0.4.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 +1854 -84
- package/dist/index.cjs +1770 -0
- package/dist/index.js +711 -4
- package/package.json +13 -3
- package/spec/openapi.json +10571 -4553
- package/spec/openapi.yaml +4883 -1247
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 */
|
|
@@ -128,6 +159,26 @@ export interface RequestImportContent {
|
|
|
128
159
|
url: string;
|
|
129
160
|
source: ImportContentSource;
|
|
130
161
|
}
|
|
162
|
+
export interface RequestCreateSpace {
|
|
163
|
+
title?: string;
|
|
164
|
+
/** Unicode codepoint or character of the emoji */
|
|
165
|
+
emoji?: Emoji;
|
|
166
|
+
/** Private spaces are no longer supported by GitBook. */
|
|
167
|
+
private?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
|
|
170
|
+
* - `website`: A single web page or a collection of related web pages under a single domain.
|
|
171
|
+
* - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
|
|
172
|
+
* - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
|
|
173
|
+
* - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
|
|
174
|
+
* - `database`: A databse entity, persisting data. A database is typically used by services or applications.
|
|
175
|
+
* - `other`: A space that doesn’t match the service, library, or application type.
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
178
|
+
type?: SpaceType;
|
|
179
|
+
/** ID of a parent collection */
|
|
180
|
+
parent?: string;
|
|
181
|
+
}
|
|
131
182
|
export interface RequestCreateChangeRequest {
|
|
132
183
|
/** Subject of the change-request */
|
|
133
184
|
subject?: string;
|
|
@@ -145,6 +196,20 @@ export interface RequestRenderIntegrationUI {
|
|
|
145
196
|
/** Custom action to re-render the block. */
|
|
146
197
|
action?: ContentKitAction;
|
|
147
198
|
}
|
|
199
|
+
export interface RequestUpdateContentPublishingAuth {
|
|
200
|
+
/**
|
|
201
|
+
* A fallback URL that will be used if authentication fails.
|
|
202
|
+
* @format uri
|
|
203
|
+
*/
|
|
204
|
+
fallbackURL?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface RequestCreateOrganization {
|
|
207
|
+
/** Name of the organization */
|
|
208
|
+
title: OrganizationTitle;
|
|
209
|
+
emailDomains?: OrganizationEmailDomains;
|
|
210
|
+
type?: OrganizationType;
|
|
211
|
+
useCase?: OrganizationUseCase;
|
|
212
|
+
}
|
|
148
213
|
export interface ApiInformation {
|
|
149
214
|
/** Current release of GitBook */
|
|
150
215
|
version: string;
|
|
@@ -187,8 +252,31 @@ export interface User {
|
|
|
187
252
|
/** URL of the user's profile picture */
|
|
188
253
|
photoURL?: string;
|
|
189
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* The API token details, excluding the token itself.
|
|
257
|
+
*/
|
|
258
|
+
export interface UserAPIToken {
|
|
259
|
+
/** The API token ID. */
|
|
260
|
+
id: string;
|
|
261
|
+
/** The API token name. */
|
|
262
|
+
label: string;
|
|
263
|
+
/** The API token creation date. */
|
|
264
|
+
createdAt: Date;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* The API token details, including the token itself.
|
|
268
|
+
*/
|
|
269
|
+
export declare type UserAPITokenExtended = UserAPIToken & {
|
|
270
|
+
token: string;
|
|
271
|
+
};
|
|
190
272
|
export interface UserTarget {
|
|
191
|
-
user
|
|
273
|
+
user: string;
|
|
274
|
+
}
|
|
275
|
+
export interface Team {
|
|
276
|
+
/** Type of Object, always equals to "team" */
|
|
277
|
+
object: 'team';
|
|
278
|
+
/** Unique identifier for the team */
|
|
279
|
+
id: string;
|
|
192
280
|
}
|
|
193
281
|
/**
|
|
194
282
|
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
@@ -207,6 +295,27 @@ export declare enum ContentVisibility {
|
|
|
207
295
|
InCollection = "in-collection",
|
|
208
296
|
Private = "private"
|
|
209
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Contributor towards content.
|
|
300
|
+
*/
|
|
301
|
+
export interface UserContributor {
|
|
302
|
+
updatedAt: Date;
|
|
303
|
+
count: number;
|
|
304
|
+
user: User;
|
|
305
|
+
}
|
|
306
|
+
export interface ContentPublishingAuth {
|
|
307
|
+
/** Type of Object, always equals to "publishing-auth" */
|
|
308
|
+
object: 'publishing-auth';
|
|
309
|
+
/** Unique identifier for the content. */
|
|
310
|
+
id: string;
|
|
311
|
+
/** Private key used to sign JWT tokens. */
|
|
312
|
+
privateKey: string;
|
|
313
|
+
/**
|
|
314
|
+
* URL to redirect to when the visitor auth secret is invalid.
|
|
315
|
+
* @format uri
|
|
316
|
+
*/
|
|
317
|
+
fallbackURL?: string;
|
|
318
|
+
}
|
|
210
319
|
export interface ImportContentResult {
|
|
211
320
|
/** ID of the newly created revision. */
|
|
212
321
|
revision: string;
|
|
@@ -215,11 +324,81 @@ export interface ImportContentResult {
|
|
|
215
324
|
/** How many resources were processed */
|
|
216
325
|
totalResources: number;
|
|
217
326
|
}
|
|
327
|
+
export declare type Comment = {
|
|
328
|
+
object: 'comment';
|
|
329
|
+
id: string;
|
|
330
|
+
postedBy: User;
|
|
331
|
+
postedAt: Date;
|
|
332
|
+
editedAt?: Date;
|
|
333
|
+
reactions: EmojiReactions;
|
|
334
|
+
replies: number;
|
|
335
|
+
body: Document;
|
|
336
|
+
target: {
|
|
337
|
+
node?: {
|
|
338
|
+
id?: string;
|
|
339
|
+
preview?: string;
|
|
340
|
+
};
|
|
341
|
+
changeRequest?: string;
|
|
342
|
+
review?: string;
|
|
343
|
+
page?: RevisionPageBase & {
|
|
344
|
+
path: string;
|
|
345
|
+
outdated: boolean;
|
|
346
|
+
};
|
|
347
|
+
space: string;
|
|
348
|
+
revision: string;
|
|
349
|
+
};
|
|
350
|
+
urls: {
|
|
351
|
+
location: string;
|
|
352
|
+
};
|
|
353
|
+
} & ({
|
|
354
|
+
status: 'resolved';
|
|
355
|
+
resolvedAt: Date;
|
|
356
|
+
resolvedBy: User;
|
|
357
|
+
} | {
|
|
358
|
+
status: 'open';
|
|
359
|
+
});
|
|
360
|
+
export interface CommentReply {
|
|
361
|
+
/** Type of Object, always equals to "comment-reply" */
|
|
362
|
+
object: 'comment-reply';
|
|
363
|
+
/** Unique identifier for the reply. */
|
|
364
|
+
id: string;
|
|
365
|
+
postedBy: User;
|
|
366
|
+
postedAt: Date;
|
|
367
|
+
/** Date when the reply was edited, if it has been edited. */
|
|
368
|
+
editedAt?: Date;
|
|
369
|
+
reactions: EmojiReactions;
|
|
370
|
+
body: Document;
|
|
371
|
+
/** URLs associated with the object */
|
|
372
|
+
urls: {
|
|
373
|
+
location: string;
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
export declare type Document = MarkdownDocument | JSONDocument | object;
|
|
377
|
+
export interface MarkdownDocument {
|
|
378
|
+
/** Content of the document formatted as markdown */
|
|
379
|
+
markdown: string;
|
|
380
|
+
}
|
|
381
|
+
export interface JSONDocument {
|
|
382
|
+
document: {
|
|
383
|
+
nodes: object[];
|
|
384
|
+
};
|
|
385
|
+
}
|
|
218
386
|
export interface Space {
|
|
219
387
|
/** Type of Object, always equals to "space" */
|
|
220
388
|
object: 'space';
|
|
221
389
|
/** Unique identifier for the space */
|
|
222
390
|
id: string;
|
|
391
|
+
/**
|
|
392
|
+
* - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
|
|
393
|
+
* - `website`: A single web page or a collection of related web pages under a single domain.
|
|
394
|
+
* - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
|
|
395
|
+
* - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
|
|
396
|
+
* - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
|
|
397
|
+
* - `database`: A databse entity, persisting data. A database is typically used by services or applications.
|
|
398
|
+
* - `other`: A space that doesn’t match the service, library, or application type.
|
|
399
|
+
*
|
|
400
|
+
*/
|
|
401
|
+
type: SpaceType;
|
|
223
402
|
/** Title of the space */
|
|
224
403
|
title: string;
|
|
225
404
|
/**
|
|
@@ -237,10 +416,88 @@ export interface Space {
|
|
|
237
416
|
updatedAt: Date;
|
|
238
417
|
/** URLs associated with the object */
|
|
239
418
|
urls: {
|
|
419
|
+
location: string;
|
|
240
420
|
app: string;
|
|
241
421
|
published?: string;
|
|
242
422
|
public?: string;
|
|
243
423
|
};
|
|
424
|
+
/** ID of the organization owning this space */
|
|
425
|
+
organization?: string;
|
|
426
|
+
/** ID of the user owning this space */
|
|
427
|
+
user?: string;
|
|
428
|
+
/** If the space is part of the private content of a user, the property is equal to the ID of the user owning it */
|
|
429
|
+
private?: string;
|
|
430
|
+
/** ID of the parent collection. */
|
|
431
|
+
parent?: string;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
|
|
435
|
+
- `website`: A single web page or a collection of related web pages under a single domain.
|
|
436
|
+
- `service`: An independently-deployable software unit that is usually is operated by a person or a team.
|
|
437
|
+
- `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
|
|
438
|
+
- `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
|
|
439
|
+
- `database`: A databse entity, persisting data. A database is typically used by services or applications.
|
|
440
|
+
- `other`: A space that doesn’t match the service, library, or application type.
|
|
441
|
+
*/
|
|
442
|
+
export declare enum SpaceType {
|
|
443
|
+
Application = "application",
|
|
444
|
+
Website = "website",
|
|
445
|
+
Service = "service",
|
|
446
|
+
Library = "library",
|
|
447
|
+
CloudResource = "cloud-resource",
|
|
448
|
+
Database = "database",
|
|
449
|
+
Other = "other"
|
|
450
|
+
}
|
|
451
|
+
export declare enum SpaceRelationType {
|
|
452
|
+
DependsOn = "dependsOn",
|
|
453
|
+
DependencyOf = "dependencyOf",
|
|
454
|
+
PartOf = "partOf",
|
|
455
|
+
HasPart = "hasPart"
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Edge of a space relation (target or source)
|
|
459
|
+
*/
|
|
460
|
+
export interface SpaceRelationEdge {
|
|
461
|
+
/** ID of the space */
|
|
462
|
+
id: string;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Relation between an origin space and another space
|
|
466
|
+
*/
|
|
467
|
+
export interface SpaceRelation {
|
|
468
|
+
id: string;
|
|
469
|
+
type: SpaceRelationType;
|
|
470
|
+
/** Other space in the relation. If undefined, the current user doesn't have access to it. */
|
|
471
|
+
target: Space | SpaceRelationEdge;
|
|
472
|
+
createdAt: Date;
|
|
473
|
+
/** URLs associated with the object */
|
|
474
|
+
urls: {
|
|
475
|
+
location: string;
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Relation between an origin space and another space
|
|
480
|
+
*/
|
|
481
|
+
export declare type SpaceRelationPair = SpaceRelation & {
|
|
482
|
+
target: SpaceRelationEdge;
|
|
483
|
+
source: SpaceRelationEdge;
|
|
484
|
+
};
|
|
485
|
+
/**
|
|
486
|
+
* Environments the entity is linked to
|
|
487
|
+
*/
|
|
488
|
+
export declare type SpaceEntityEnvironments = string[];
|
|
489
|
+
/**
|
|
490
|
+
* Link between an integration entity and a space.
|
|
491
|
+
*/
|
|
492
|
+
export interface SpaceEntity {
|
|
493
|
+
/** Entity created and managed by an integration, representing a resource on an external service. */
|
|
494
|
+
entity: IntegrationEntity;
|
|
495
|
+
/** Environments the entity is linked to */
|
|
496
|
+
environments: SpaceEntityEnvironments;
|
|
497
|
+
/** URLs associated with the object */
|
|
498
|
+
urls: {
|
|
499
|
+
location: string;
|
|
500
|
+
};
|
|
244
501
|
}
|
|
245
502
|
export interface Revision {
|
|
246
503
|
/** Type of Object, always equals to "revision" */
|
|
@@ -264,32 +521,31 @@ export interface Revision {
|
|
|
264
521
|
public?: string;
|
|
265
522
|
};
|
|
266
523
|
}
|
|
267
|
-
export declare type RevisionPage =
|
|
524
|
+
export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
|
|
268
525
|
export interface RevisionPageBase {
|
|
269
526
|
/** Unique identifier for the page in the revision */
|
|
270
527
|
id: string;
|
|
271
528
|
/** Title of the page */
|
|
272
529
|
title: string;
|
|
273
530
|
}
|
|
274
|
-
export declare type
|
|
531
|
+
export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
275
532
|
kind: 'sheet';
|
|
533
|
+
type: 'document';
|
|
276
534
|
slug: string;
|
|
277
535
|
path: string;
|
|
278
536
|
description?: string;
|
|
279
|
-
pages: (
|
|
280
|
-
}
|
|
281
|
-
markdown: string;
|
|
282
|
-
} | {
|
|
283
|
-
document: PageDocument;
|
|
284
|
-
} | object);
|
|
537
|
+
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
538
|
+
};
|
|
285
539
|
export declare type RevisionPageGroup = RevisionPageBase & {
|
|
286
540
|
kind: 'group';
|
|
541
|
+
type: 'group';
|
|
287
542
|
slug: string;
|
|
288
543
|
path: string;
|
|
289
|
-
pages: (
|
|
544
|
+
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
290
545
|
};
|
|
291
546
|
export declare type RevisionPageLink = RevisionPageBase & {
|
|
292
547
|
kind: 'link';
|
|
548
|
+
type: 'link';
|
|
293
549
|
href?: string;
|
|
294
550
|
};
|
|
295
551
|
export interface RevisionFile {
|
|
@@ -298,9 +554,6 @@ export interface RevisionFile {
|
|
|
298
554
|
contentType: string;
|
|
299
555
|
downloadURL: string;
|
|
300
556
|
}
|
|
301
|
-
export interface PageDocument {
|
|
302
|
-
nodes: object[];
|
|
303
|
-
}
|
|
304
557
|
export declare enum ImportContentSource {
|
|
305
558
|
Website = "website",
|
|
306
559
|
Docx = "docx",
|
|
@@ -315,13 +568,75 @@ export declare enum ImportContentSource {
|
|
|
315
568
|
GoogleDocs = "google-docs",
|
|
316
569
|
OpenApi = "open-api"
|
|
317
570
|
}
|
|
571
|
+
export interface GitSyncState {
|
|
572
|
+
/** The provider of the Git Sync installation. */
|
|
573
|
+
installationProvider?: string;
|
|
574
|
+
operation?: GitSyncOperation;
|
|
575
|
+
/** The URL to the repository, used when rendering public content. */
|
|
576
|
+
url?: string;
|
|
577
|
+
}
|
|
578
|
+
export interface GitSyncOperation {
|
|
579
|
+
/**
|
|
580
|
+
* * `running`: The operation is still running
|
|
581
|
+
* * `failure`: The operation failed
|
|
582
|
+
* * `success`: The operation was successful
|
|
583
|
+
*
|
|
584
|
+
*/
|
|
585
|
+
state: GitSyncOperationState;
|
|
586
|
+
startedAt: Date;
|
|
587
|
+
/** Date when the operation was successful (when state is `success`) */
|
|
588
|
+
completedAt?: Date;
|
|
589
|
+
/** Error details, defined if state is `failure`. */
|
|
590
|
+
error?: string;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* * `running`: The operation is still running
|
|
594
|
+
* `failure`: The operation failed
|
|
595
|
+
* `success`: The operation was successful
|
|
596
|
+
*/
|
|
597
|
+
export declare enum GitSyncOperationState {
|
|
598
|
+
Running = "running",
|
|
599
|
+
Failure = "failure",
|
|
600
|
+
Success = "success"
|
|
601
|
+
}
|
|
318
602
|
export interface Organization {
|
|
319
603
|
/** Type of Object, always equals to "organization" */
|
|
320
604
|
object: 'organization';
|
|
321
605
|
/** Unique identifier for the organization */
|
|
322
606
|
id: string;
|
|
323
607
|
/** Name of the organization */
|
|
324
|
-
title:
|
|
608
|
+
title: OrganizationTitle;
|
|
609
|
+
emailDomains: OrganizationEmailDomains;
|
|
610
|
+
type: OrganizationType;
|
|
611
|
+
useCase?: OrganizationUseCase;
|
|
612
|
+
communityType?: OrganizationCommunityType;
|
|
613
|
+
/** URLs associated with the object */
|
|
614
|
+
urls: {
|
|
615
|
+
location: string;
|
|
616
|
+
app: string;
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
export declare enum OrganizationType {
|
|
620
|
+
Business = "business",
|
|
621
|
+
Community = "community"
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Name of the organization
|
|
625
|
+
*/
|
|
626
|
+
export declare type OrganizationTitle = string;
|
|
627
|
+
export declare type OrganizationEmailDomains = string[];
|
|
628
|
+
export declare enum OrganizationUseCase {
|
|
629
|
+
ProductDocs = "productDocs",
|
|
630
|
+
TeamKnowledgeBase = "teamKnowledgeBase",
|
|
631
|
+
DesignSystem = "designSystem",
|
|
632
|
+
OpenSourceDocs = "openSourceDocs",
|
|
633
|
+
Notes = "notes",
|
|
634
|
+
Other = "other"
|
|
635
|
+
}
|
|
636
|
+
export declare enum OrganizationCommunityType {
|
|
637
|
+
NonProfit = "nonProfit",
|
|
638
|
+
OpenSource = "openSource",
|
|
639
|
+
Education = "education"
|
|
325
640
|
}
|
|
326
641
|
/**
|
|
327
642
|
* "The role of a member in an organization.
|
|
@@ -378,7 +693,7 @@ export declare type OrganizationDirectorySyncGroupTeamStatus = {
|
|
|
378
693
|
error: string;
|
|
379
694
|
});
|
|
380
695
|
export interface OrganizationTarget {
|
|
381
|
-
organization
|
|
696
|
+
organization: string;
|
|
382
697
|
}
|
|
383
698
|
export interface OrganizationMember {
|
|
384
699
|
/** Type of Object, always equals to "member" */
|
|
@@ -392,6 +707,12 @@ export interface OrganizationMember {
|
|
|
392
707
|
disabled: boolean;
|
|
393
708
|
/** Date at which the user joined the organization. */
|
|
394
709
|
joinedAt: Date;
|
|
710
|
+
/** Date at which the user was last seen active in the organization. */
|
|
711
|
+
lastSeenAt?: Date;
|
|
712
|
+
/** Whether the user can login with SSO. */
|
|
713
|
+
sso: boolean;
|
|
714
|
+
spaces: number;
|
|
715
|
+
teams: number;
|
|
395
716
|
}
|
|
396
717
|
export interface OrganizationTeam {
|
|
397
718
|
/** Type of Object, always equals to "team" */
|
|
@@ -405,6 +726,24 @@ export interface OrganizationTeam {
|
|
|
405
726
|
/** Date at which the team was created. */
|
|
406
727
|
createdAt: Date;
|
|
407
728
|
}
|
|
729
|
+
export interface TeamMember {
|
|
730
|
+
/**
|
|
731
|
+
* "The role of a team member.
|
|
732
|
+
* "admin": Can administrate team members.
|
|
733
|
+
* "participant": Can participate in a team.
|
|
734
|
+
*
|
|
735
|
+
*/
|
|
736
|
+
role: TeamMemberRole;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* "The role of a team member.
|
|
740
|
+
"admin": Can administrate team members.
|
|
741
|
+
"participant": Can participate in a team.
|
|
742
|
+
*/
|
|
743
|
+
export declare enum TeamMemberRole {
|
|
744
|
+
Admin = "admin",
|
|
745
|
+
Participant = "participant"
|
|
746
|
+
}
|
|
408
747
|
export interface ChangeRequest {
|
|
409
748
|
/** Type of Object, always equals to "change-request" */
|
|
410
749
|
object: 'change-request';
|
|
@@ -429,6 +768,72 @@ export declare enum ChangeRequestStatus {
|
|
|
429
768
|
Archived = "archived",
|
|
430
769
|
Merged = "merged"
|
|
431
770
|
}
|
|
771
|
+
export interface ChangeRequestReview {
|
|
772
|
+
/** Type of Object, always equals to "change-request-review" */
|
|
773
|
+
object: 'change-request-review';
|
|
774
|
+
/** Unique identifier for the review. */
|
|
775
|
+
id: string;
|
|
776
|
+
/** The revision this review was made against. */
|
|
777
|
+
revision: string;
|
|
778
|
+
/** The user who performed the review. */
|
|
779
|
+
reviewer: User;
|
|
780
|
+
/** The user who requested the review. If undefined, the review was left without a request. */
|
|
781
|
+
requestedBy?: User;
|
|
782
|
+
/** The status of the review. */
|
|
783
|
+
status: ChangeRequestReviewStatus;
|
|
784
|
+
comment?: Comment;
|
|
785
|
+
createdAt: Date;
|
|
786
|
+
updatedAt: Date;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Status of a change request review.
|
|
790
|
+
*/
|
|
791
|
+
export declare enum ChangeRequestReviewStatus {
|
|
792
|
+
ChangesRequested = "changes-requested",
|
|
793
|
+
Approved = "approved"
|
|
794
|
+
}
|
|
795
|
+
export declare type ChangeRequestRequestedReviewer = {
|
|
796
|
+
object: 'change-request-requested-reviewer';
|
|
797
|
+
revision: string;
|
|
798
|
+
requestedBy: User;
|
|
799
|
+
createdAt: Date;
|
|
800
|
+
} & ({
|
|
801
|
+
kind: 'user';
|
|
802
|
+
user: User;
|
|
803
|
+
} | {
|
|
804
|
+
kind: 'team';
|
|
805
|
+
team: Team;
|
|
806
|
+
});
|
|
807
|
+
export interface UpdateCommentSchema {
|
|
808
|
+
/** Whether the comment is resolved or not. */
|
|
809
|
+
resolved?: boolean;
|
|
810
|
+
/** Content of the comment. */
|
|
811
|
+
body?: Document;
|
|
812
|
+
/** Reactions to add to the comment. */
|
|
813
|
+
addedReactions?: string[];
|
|
814
|
+
/** Reactions to remove from the comment. */
|
|
815
|
+
removedReactions?: string[];
|
|
816
|
+
}
|
|
817
|
+
export interface UpdateCommentReplySchema {
|
|
818
|
+
/** Content of the comment. */
|
|
819
|
+
body?: Document;
|
|
820
|
+
/** Reactions to add to the comment. */
|
|
821
|
+
addedReactions?: string[];
|
|
822
|
+
/** Reactions to remove from the comment. */
|
|
823
|
+
removedReactions?: string[];
|
|
824
|
+
}
|
|
825
|
+
export interface PostCommentSchema {
|
|
826
|
+
/** The node to which the comment is posted, if any. */
|
|
827
|
+
node?: string;
|
|
828
|
+
/** The page to which the comment is posted, if any. */
|
|
829
|
+
page?: string;
|
|
830
|
+
/** The content of the comment. */
|
|
831
|
+
body: Document;
|
|
832
|
+
}
|
|
833
|
+
export interface PostCommentReplySchema {
|
|
834
|
+
/** The content of the comment. */
|
|
835
|
+
body: Document;
|
|
836
|
+
}
|
|
432
837
|
/**
|
|
433
838
|
* Permission of a user in a content.
|
|
434
839
|
*/
|
|
@@ -497,11 +902,16 @@ export interface SearchSectionResult {
|
|
|
497
902
|
app: string;
|
|
498
903
|
};
|
|
499
904
|
}
|
|
905
|
+
export interface SearchAIQuery {
|
|
906
|
+
query: string;
|
|
907
|
+
previousQueries?: string[];
|
|
908
|
+
}
|
|
500
909
|
/**
|
|
501
910
|
* Answer from AI for a question asked on a content.
|
|
502
911
|
*/
|
|
503
912
|
export interface SearchAIAnswer {
|
|
504
913
|
text: string;
|
|
914
|
+
followupQuestions: string[];
|
|
505
915
|
pages: {
|
|
506
916
|
page: string;
|
|
507
917
|
revision: string;
|
|
@@ -509,6 +919,12 @@ export interface SearchAIAnswer {
|
|
|
509
919
|
sections: string[];
|
|
510
920
|
}[];
|
|
511
921
|
}
|
|
922
|
+
/**
|
|
923
|
+
* Questions recommended by the AI for the given content.
|
|
924
|
+
*/
|
|
925
|
+
export interface SearchAIRecommendedQuestions {
|
|
926
|
+
questions: string[];
|
|
927
|
+
}
|
|
512
928
|
export declare enum AnalyticsSearchPeriod {
|
|
513
929
|
LastMonth = "last_month",
|
|
514
930
|
LastWeek = "last_week",
|
|
@@ -601,26 +1017,23 @@ export interface Integration {
|
|
|
601
1017
|
/** Unique named identifier for the integration */
|
|
602
1018
|
name: string;
|
|
603
1019
|
/** Title of the integration */
|
|
604
|
-
title:
|
|
1020
|
+
title: IntegrationTitle;
|
|
605
1021
|
/** Description of the integration */
|
|
606
|
-
description?:
|
|
1022
|
+
description?: IntegrationDescription;
|
|
607
1023
|
/** Long form markdown summary of the integration */
|
|
608
|
-
summary?:
|
|
1024
|
+
summary?: IntegrationSummary;
|
|
609
1025
|
/** URLs of images to showcase the integration */
|
|
610
1026
|
previewImages: string[];
|
|
611
1027
|
visibility: IntegrationVisibility;
|
|
612
1028
|
/** Permissions that should be granted to the integration */
|
|
613
|
-
scopes:
|
|
1029
|
+
scopes: IntegrationScopes;
|
|
614
1030
|
/** Categories for which the integration is listed in the marketplace */
|
|
615
|
-
categories:
|
|
1031
|
+
categories: IntegrationCategories;
|
|
616
1032
|
/** Custom blocks defined by this integration. */
|
|
617
|
-
blocks?:
|
|
1033
|
+
blocks?: IntegrationBlocks;
|
|
618
1034
|
configurations?: IntegrationConfigurations;
|
|
619
1035
|
/** External urls configured by the developer of the integration */
|
|
620
|
-
externalLinks:
|
|
621
|
-
url: URL;
|
|
622
|
-
label: string;
|
|
623
|
-
}[];
|
|
1036
|
+
externalLinks: IntegrationExternalLinks;
|
|
624
1037
|
/** URLs associated with the object */
|
|
625
1038
|
urls: {
|
|
626
1039
|
icon?: string;
|
|
@@ -635,7 +1048,24 @@ export interface Integration {
|
|
|
635
1048
|
*/
|
|
636
1049
|
contentSecurityPolicy?: IntegrationContentSecurityPolicy;
|
|
637
1050
|
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Title of the integration
|
|
1053
|
+
*/
|
|
1054
|
+
export declare type IntegrationTitle = string;
|
|
1055
|
+
/**
|
|
1056
|
+
* Description of the integration
|
|
1057
|
+
*/
|
|
1058
|
+
export declare type IntegrationDescription = string;
|
|
1059
|
+
/**
|
|
1060
|
+
* Long form markdown summary of the integration
|
|
1061
|
+
*/
|
|
1062
|
+
export declare type IntegrationSummary = string;
|
|
1063
|
+
/**
|
|
1064
|
+
* Permissions that should be granted to the integration
|
|
1065
|
+
*/
|
|
1066
|
+
export declare type IntegrationScopes = IntegrationScope[];
|
|
638
1067
|
export declare enum IntegrationScope {
|
|
1068
|
+
OrganizationEntitiesWrite = "organization:entities:write",
|
|
639
1069
|
SpaceViewsRead = "space:views:read",
|
|
640
1070
|
SpaceContentRead = "space:content:read",
|
|
641
1071
|
SpaceContentWrite = "space:content:write",
|
|
@@ -644,6 +1074,10 @@ export declare enum IntegrationScope {
|
|
|
644
1074
|
SpaceScriptInject = "space:script:inject",
|
|
645
1075
|
SpaceScriptCookies = "space:script:cookies"
|
|
646
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Categories for which the integration is listed in the marketplace
|
|
1079
|
+
*/
|
|
1080
|
+
export declare type IntegrationCategories = IntegrationCategory[];
|
|
647
1081
|
/**
|
|
648
1082
|
* Format the custom block as a codeblock
|
|
649
1083
|
*/
|
|
@@ -651,6 +1085,10 @@ export declare type IntegrationBlockMarkdown = {
|
|
|
651
1085
|
codeblock: string;
|
|
652
1086
|
body: string;
|
|
653
1087
|
};
|
|
1088
|
+
/**
|
|
1089
|
+
* Custom blocks defined by this integration.
|
|
1090
|
+
*/
|
|
1091
|
+
export declare type IntegrationBlocks = IntegrationBlock[];
|
|
654
1092
|
export interface IntegrationBlock {
|
|
655
1093
|
/** Unique ID in the integration for the block. It also represents the UI component used. */
|
|
656
1094
|
id: string;
|
|
@@ -665,6 +1103,36 @@ export interface IntegrationBlock {
|
|
|
665
1103
|
/** Format the custom block as a codeblock */
|
|
666
1104
|
markdown?: IntegrationBlockMarkdown;
|
|
667
1105
|
}
|
|
1106
|
+
/**
|
|
1107
|
+
* External urls configured by the developer of the integration
|
|
1108
|
+
*/
|
|
1109
|
+
export declare type IntegrationExternalLinks = {
|
|
1110
|
+
url: URL;
|
|
1111
|
+
label: string;
|
|
1112
|
+
}[];
|
|
1113
|
+
export interface IntegrationEvent {
|
|
1114
|
+
/** Unique ID of the event. */
|
|
1115
|
+
id: string;
|
|
1116
|
+
/** Unique ID of the integration. */
|
|
1117
|
+
integrationId: string;
|
|
1118
|
+
/** Unique ID of the integration installation. */
|
|
1119
|
+
installationId?: string;
|
|
1120
|
+
createdAt: Date;
|
|
1121
|
+
/** Any event that can be received from GitBook. */
|
|
1122
|
+
payload: Event;
|
|
1123
|
+
/** Status of the event. */
|
|
1124
|
+
status: 'success' | 'failed';
|
|
1125
|
+
}
|
|
1126
|
+
export interface IntegrationEventLog {
|
|
1127
|
+
/** The message of the log entry. */
|
|
1128
|
+
message?: string;
|
|
1129
|
+
timestamp?: Date;
|
|
1130
|
+
/** The level of the log entry. */
|
|
1131
|
+
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
1132
|
+
}
|
|
1133
|
+
export interface IntegrationEventTrace {
|
|
1134
|
+
logs: IntegrationEventLog[];
|
|
1135
|
+
}
|
|
668
1136
|
/**
|
|
669
1137
|
* Describe whether all spaces have been selected or there's a selection involved
|
|
670
1138
|
*/
|
|
@@ -681,14 +1149,14 @@ export declare enum IntegrationCategory {
|
|
|
681
1149
|
}
|
|
682
1150
|
export interface IntegrationConfigurations {
|
|
683
1151
|
/** Schema for a configuration */
|
|
684
|
-
account?:
|
|
685
|
-
/** Schema for a configuration */
|
|
1152
|
+
account?: IntegrationConfigurationSchema;
|
|
686
1153
|
space?: IntegrationConfiguration;
|
|
687
1154
|
}
|
|
1155
|
+
export declare type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
|
|
688
1156
|
/**
|
|
689
1157
|
* Schema for a configuration
|
|
690
1158
|
*/
|
|
691
|
-
export interface
|
|
1159
|
+
export interface IntegrationConfigurationSchema {
|
|
692
1160
|
properties: Record<string, {
|
|
693
1161
|
title?: string;
|
|
694
1162
|
description?: string;
|
|
@@ -708,9 +1176,17 @@ export interface IntegrationConfiguration {
|
|
|
708
1176
|
})>;
|
|
709
1177
|
required?: string[];
|
|
710
1178
|
}
|
|
1179
|
+
/**
|
|
1180
|
+
* ContentKit component for configuration
|
|
1181
|
+
*/
|
|
1182
|
+
export interface IntegrationConfigurationComponent {
|
|
1183
|
+
/** ID of the ContentKit component defined in the integration */
|
|
1184
|
+
componentId: string;
|
|
1185
|
+
}
|
|
711
1186
|
export declare enum IntegrationVisibility {
|
|
712
1187
|
Public = "public",
|
|
713
|
-
Private = "private"
|
|
1188
|
+
Private = "private",
|
|
1189
|
+
Unlisted = "unlisted"
|
|
714
1190
|
}
|
|
715
1191
|
/**
|
|
716
1192
|
* Installation of an integration on an account
|
|
@@ -721,14 +1197,14 @@ export interface IntegrationInstallation {
|
|
|
721
1197
|
/** Describe whether all spaces have been selected or there's a selection involved */
|
|
722
1198
|
space_selection: IntegrationInstallationSpaceSelection;
|
|
723
1199
|
/** Configuration of the integration at the account level */
|
|
724
|
-
configuration:
|
|
1200
|
+
configuration: IntegrationInstallationConfiguration;
|
|
725
1201
|
/** URLs associated with the object */
|
|
726
1202
|
urls: {
|
|
727
1203
|
app: string;
|
|
728
1204
|
publicEndpoint: string;
|
|
729
1205
|
};
|
|
730
1206
|
/** External IDs assigned by the integration. */
|
|
731
|
-
externalIds:
|
|
1207
|
+
externalIds: IntegrationInstallationExternalIds;
|
|
732
1208
|
/** Target of the integration installation */
|
|
733
1209
|
target: IntegrationInstallationTarget;
|
|
734
1210
|
}
|
|
@@ -741,7 +1217,8 @@ export interface IntegrationSpaceInstallation {
|
|
|
741
1217
|
status: IntegrationInstallationStatus;
|
|
742
1218
|
/** Configuration of the integration for this space */
|
|
743
1219
|
configuration: object;
|
|
744
|
-
|
|
1220
|
+
/** External IDs assigned by the integration. */
|
|
1221
|
+
externalIds: IntegrationInstallationExternalIds;
|
|
745
1222
|
/** URLs associated with the object */
|
|
746
1223
|
urls: {
|
|
747
1224
|
publicEndpoint: string;
|
|
@@ -773,6 +1250,14 @@ export interface IntegrationEnvironment {
|
|
|
773
1250
|
secrets: IntegrationSecrets;
|
|
774
1251
|
}
|
|
775
1252
|
export declare type IntegrationInstallationTarget = UserTarget | OrganizationTarget;
|
|
1253
|
+
/**
|
|
1254
|
+
* Configuration of the integration at the account level
|
|
1255
|
+
*/
|
|
1256
|
+
export declare type IntegrationInstallationConfiguration = Record<string, any>;
|
|
1257
|
+
/**
|
|
1258
|
+
* External IDs assigned by the integration.
|
|
1259
|
+
*/
|
|
1260
|
+
export declare type IntegrationInstallationExternalIds = string[];
|
|
776
1261
|
/**
|
|
777
1262
|
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
778
1263
|
headers when processing the script fetch event and the blocks fetch events.
|
|
@@ -810,6 +1295,35 @@ export declare type IntegrationContentSecurityPolicy = string | {
|
|
|
810
1295
|
'upgrade-insecure-requests'?: string;
|
|
811
1296
|
'worker-src'?: string;
|
|
812
1297
|
};
|
|
1298
|
+
export declare type SpaceIntegrationBlocks = {
|
|
1299
|
+
name: string;
|
|
1300
|
+
blocks: IntegrationBlock[];
|
|
1301
|
+
}[];
|
|
1302
|
+
/**
|
|
1303
|
+
* Entity to create or update in an integration's installation.
|
|
1304
|
+
*/
|
|
1305
|
+
export interface UpsertIntegrationEntity {
|
|
1306
|
+
/** Unique ID of the entity in the context of the integration's installation */
|
|
1307
|
+
entityId: string;
|
|
1308
|
+
/** Title of the entity */
|
|
1309
|
+
title: string;
|
|
1310
|
+
/** Longer text description of the entity */
|
|
1311
|
+
description: string;
|
|
1312
|
+
/**
|
|
1313
|
+
* URL to open the entity
|
|
1314
|
+
* @format uri
|
|
1315
|
+
*/
|
|
1316
|
+
target: string;
|
|
1317
|
+
/** Metadata stored by the integration on the entity */
|
|
1318
|
+
metadata: Record<string, string | number | boolean>;
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* Entity created and managed by an integration, representing a resource on an external service.
|
|
1322
|
+
*/
|
|
1323
|
+
export declare type IntegrationEntity = UpsertIntegrationEntity & {
|
|
1324
|
+
id: string;
|
|
1325
|
+
integration: string;
|
|
1326
|
+
};
|
|
813
1327
|
/**
|
|
814
1328
|
* Any event that can be received from GitBook.
|
|
815
1329
|
*/
|
|
@@ -1143,6 +1657,12 @@ export interface UserRiskEvaluation {
|
|
|
1143
1657
|
emailVerified: boolean;
|
|
1144
1658
|
activeDaysRemaining: number;
|
|
1145
1659
|
}
|
|
1660
|
+
/**
|
|
1661
|
+
* JWT tokens to authenticate in Hive for all content.
|
|
1662
|
+
*/
|
|
1663
|
+
export interface HiveAccessToken {
|
|
1664
|
+
contents: Record<string, string>;
|
|
1665
|
+
}
|
|
1146
1666
|
export interface UnsplashImage {
|
|
1147
1667
|
kind: 'unsplash_image';
|
|
1148
1668
|
id: string;
|
|
@@ -1162,7 +1682,7 @@ export interface APITemporaryToken {
|
|
|
1162
1682
|
token: string;
|
|
1163
1683
|
}
|
|
1164
1684
|
export declare type ContentKitContext = {
|
|
1165
|
-
type: 'document';
|
|
1685
|
+
type: 'document' | 'configuration_space';
|
|
1166
1686
|
editable: boolean;
|
|
1167
1687
|
theme: 'dark' | 'light';
|
|
1168
1688
|
};
|
|
@@ -1229,10 +1749,10 @@ export interface ContentKitText {
|
|
|
1229
1749
|
children: (string | ContentKitText)[];
|
|
1230
1750
|
}
|
|
1231
1751
|
export interface ContentKitBox {
|
|
1232
|
-
type
|
|
1752
|
+
type: 'box';
|
|
1233
1753
|
/** specifies how much of the remaining space in the container should be assigned to the element */
|
|
1234
1754
|
grow?: number;
|
|
1235
|
-
children
|
|
1755
|
+
children: ContentKitDescendantElement[];
|
|
1236
1756
|
}
|
|
1237
1757
|
/**
|
|
1238
1758
|
* Horizontal stack of boxes.
|
|
@@ -1477,35 +1997,225 @@ export declare type ContentKitDescendantElement = ContentKitButton | ContentKitT
|
|
|
1477
1997
|
* Any element that is inline.
|
|
1478
1998
|
*/
|
|
1479
1999
|
export declare type ContentKitInlineElement = ContentKitText | ContentKitImage;
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
2000
|
+
/**
|
|
2001
|
+
* Channel to subscribe to for API updates.
|
|
2002
|
+
*/
|
|
2003
|
+
export declare type SubscriptionChannel = SpaceInfoChannel | SpacePublishingAuthChannel | SpaceRelationsChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | OrganizationEnvironmentsChannel | UserAPITokensChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpaceRelationsChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | {
|
|
2004
|
+
channel: 'space-comments';
|
|
2005
|
+
space: string;
|
|
2006
|
+
changeRequest?: string;
|
|
2007
|
+
} | {
|
|
2008
|
+
channel: 'space-comment';
|
|
2009
|
+
space: string;
|
|
2010
|
+
changeRequest?: string;
|
|
2011
|
+
comment: string;
|
|
2012
|
+
} | {
|
|
2013
|
+
channel: 'space-comment-reply';
|
|
2014
|
+
space: string;
|
|
2015
|
+
changeRequest?: string;
|
|
2016
|
+
comment: string;
|
|
2017
|
+
commentReply: string;
|
|
2018
|
+
} | {
|
|
2019
|
+
channel: 'space-comment-replies';
|
|
2020
|
+
space: string;
|
|
2021
|
+
changeRequest?: string;
|
|
2022
|
+
comment: string;
|
|
2023
|
+
};
|
|
2024
|
+
export interface SpaceInfoChannel {
|
|
2025
|
+
channel: 'space';
|
|
2026
|
+
space: string;
|
|
1499
2027
|
}
|
|
1500
|
-
export
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
|
|
1504
|
-
securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
|
|
1505
|
-
customFetch?: typeof fetch;
|
|
2028
|
+
export interface SpacePublishingAuthChannel {
|
|
2029
|
+
channel: 'space-publishing-auth';
|
|
2030
|
+
space: string;
|
|
1506
2031
|
}
|
|
1507
|
-
export interface
|
|
1508
|
-
|
|
2032
|
+
export interface SpaceRelationsChannel {
|
|
2033
|
+
channel: 'space-relations';
|
|
2034
|
+
space: string;
|
|
2035
|
+
}
|
|
2036
|
+
export interface SpaceEntitiesChannel {
|
|
2037
|
+
channel: 'space-entities';
|
|
2038
|
+
space: string;
|
|
2039
|
+
}
|
|
2040
|
+
export interface SpaceCustomFieldsChannel {
|
|
2041
|
+
channel: 'space-customfields';
|
|
2042
|
+
space: string;
|
|
2043
|
+
}
|
|
2044
|
+
export interface BackofficeUserInfoChannel {
|
|
2045
|
+
channel: 'backoffice-user-info';
|
|
2046
|
+
user: string;
|
|
2047
|
+
}
|
|
2048
|
+
export interface SpaceIntegrationsChannel {
|
|
2049
|
+
channel: 'space-integrations';
|
|
2050
|
+
space: string;
|
|
2051
|
+
}
|
|
2052
|
+
export interface UserAPITokensChannel {
|
|
2053
|
+
channel: 'user-api-tokens';
|
|
2054
|
+
user: string;
|
|
2055
|
+
}
|
|
2056
|
+
export interface ChangeRequestReviewsChannel {
|
|
2057
|
+
channel: 'space-change-request-reviews';
|
|
2058
|
+
space: string;
|
|
2059
|
+
changeRequest: string;
|
|
2060
|
+
}
|
|
2061
|
+
export interface OrganizationCustomFieldsChannel {
|
|
2062
|
+
channel: 'organization-customfields';
|
|
2063
|
+
organization: string;
|
|
2064
|
+
}
|
|
2065
|
+
export interface OrganizationMembersChannel {
|
|
2066
|
+
channel: 'organization-members';
|
|
2067
|
+
organization: string;
|
|
2068
|
+
}
|
|
2069
|
+
export interface OrganizationMemberChannel {
|
|
2070
|
+
channel: 'organization-member';
|
|
2071
|
+
organization: string;
|
|
2072
|
+
user: string;
|
|
2073
|
+
}
|
|
2074
|
+
export interface OrganizationTeamsChannel {
|
|
2075
|
+
channel: 'organization-teams';
|
|
2076
|
+
organization: string;
|
|
2077
|
+
}
|
|
2078
|
+
export interface OrganizationTeamChannel {
|
|
2079
|
+
channel: 'organization-team';
|
|
2080
|
+
organization: string;
|
|
2081
|
+
team: string;
|
|
2082
|
+
}
|
|
2083
|
+
export interface OrganizationTeamMembersChannel {
|
|
2084
|
+
channel: 'organization-team-members';
|
|
2085
|
+
organization: string;
|
|
2086
|
+
team: string;
|
|
2087
|
+
}
|
|
2088
|
+
export interface OrganizationTeamMemberChannel {
|
|
2089
|
+
channel: 'organization-team-member';
|
|
2090
|
+
organization: string;
|
|
2091
|
+
team?: string;
|
|
2092
|
+
member: string;
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* Subscription channel for changes in relations between spaces in an organization.
|
|
2096
|
+
*/
|
|
2097
|
+
export interface OrganizationSpaceRelationsChannel {
|
|
2098
|
+
channel: 'organization-space-relations';
|
|
2099
|
+
organization: string;
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* Subscription channel for changes in spaces in an organization.
|
|
2103
|
+
*/
|
|
2104
|
+
export interface OrganizationSpacesChannel {
|
|
2105
|
+
channel: 'organization-spaces';
|
|
2106
|
+
organization: string;
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Subscription channel for all integration entities in an organization.
|
|
2110
|
+
*/
|
|
2111
|
+
export interface OrganizationEntitiesChannel {
|
|
2112
|
+
channel: 'organization-entities';
|
|
2113
|
+
organization: string;
|
|
2114
|
+
}
|
|
2115
|
+
export interface OrganizationEnvironmentsChannel {
|
|
2116
|
+
channel: 'organization-environments';
|
|
2117
|
+
organization: string;
|
|
2118
|
+
}
|
|
2119
|
+
/**
|
|
2120
|
+
* Custom field
|
|
2121
|
+
*/
|
|
2122
|
+
export interface CustomField {
|
|
2123
|
+
id: string;
|
|
2124
|
+
name: CustomFieldName;
|
|
2125
|
+
title: CustomFieldTitle;
|
|
2126
|
+
description: CustomFieldDescription;
|
|
2127
|
+
type: CustomFieldType;
|
|
2128
|
+
createdAt: Date;
|
|
2129
|
+
updatedAt: Date;
|
|
2130
|
+
/** URLs associated with the object */
|
|
2131
|
+
urls: {
|
|
2132
|
+
location: string;
|
|
2133
|
+
};
|
|
2134
|
+
}
|
|
2135
|
+
/**
|
|
2136
|
+
* @pattern ^[a-zA-Z_\-0-9]+$
|
|
2137
|
+
*/
|
|
2138
|
+
export declare type CustomFieldName = string;
|
|
2139
|
+
export declare type CustomFieldTitle = string;
|
|
2140
|
+
export declare type CustomFieldDescription = string;
|
|
2141
|
+
export declare enum CustomFieldType {
|
|
2142
|
+
Text = "text",
|
|
2143
|
+
Number = "number",
|
|
2144
|
+
Boolean = "boolean"
|
|
2145
|
+
}
|
|
2146
|
+
export declare type CustomFieldValue = string | number | boolean;
|
|
2147
|
+
export declare type CustomFieldValues = {
|
|
2148
|
+
customField: CustomField;
|
|
2149
|
+
value?: CustomFieldValue;
|
|
2150
|
+
}[];
|
|
2151
|
+
export interface UpdateCustomFieldValues {
|
|
2152
|
+
values: Record<string, {
|
|
2153
|
+
value: CustomFieldValue;
|
|
2154
|
+
}>;
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* An environment
|
|
2158
|
+
*/
|
|
2159
|
+
export interface Environment {
|
|
2160
|
+
id: string;
|
|
2161
|
+
name: EnvironmentName;
|
|
2162
|
+
title: EnvironmentTitle;
|
|
2163
|
+
/**
|
|
2164
|
+
* 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.
|
|
2165
|
+
*
|
|
2166
|
+
*/
|
|
2167
|
+
primary: boolean;
|
|
2168
|
+
/** URLs associated with the object */
|
|
2169
|
+
urls: {
|
|
2170
|
+
location: string;
|
|
2171
|
+
};
|
|
2172
|
+
}
|
|
2173
|
+
export declare type EnvironmentTitle = string;
|
|
2174
|
+
/**
|
|
2175
|
+
* @pattern ^[a-zA-Z_\-0-9]+$
|
|
2176
|
+
*/
|
|
2177
|
+
export declare type EnvironmentName = string;
|
|
2178
|
+
export interface CreateEnvironment {
|
|
2179
|
+
name: EnvironmentName;
|
|
2180
|
+
title: EnvironmentTitle;
|
|
2181
|
+
primary?: any;
|
|
2182
|
+
}
|
|
2183
|
+
/**
|
|
2184
|
+
* An object containing the new title for an Environment
|
|
2185
|
+
*/
|
|
2186
|
+
export interface UpdateEnvironment {
|
|
2187
|
+
title?: EnvironmentTitle;
|
|
2188
|
+
primary?: any;
|
|
2189
|
+
}
|
|
2190
|
+
export declare type QueryParamsType = Record<string | number, any>;
|
|
2191
|
+
export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
2192
|
+
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
2193
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
2194
|
+
secure?: boolean;
|
|
2195
|
+
/** request path */
|
|
2196
|
+
path: string;
|
|
2197
|
+
/** content type of request body */
|
|
2198
|
+
type?: ContentType;
|
|
2199
|
+
/** query params */
|
|
2200
|
+
query?: QueryParamsType;
|
|
2201
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
2202
|
+
format?: ResponseFormat;
|
|
2203
|
+
/** request body */
|
|
2204
|
+
body?: unknown;
|
|
2205
|
+
/** base url */
|
|
2206
|
+
baseUrl?: string;
|
|
2207
|
+
/** request cancellation token */
|
|
2208
|
+
cancelToken?: CancelToken;
|
|
2209
|
+
}
|
|
2210
|
+
export declare type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
2211
|
+
export interface ApiConfig<SecurityDataType = unknown> {
|
|
2212
|
+
baseUrl?: string;
|
|
2213
|
+
baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
|
|
2214
|
+
securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
|
|
2215
|
+
customFetch?: typeof fetch;
|
|
2216
|
+
}
|
|
2217
|
+
export interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
|
|
2218
|
+
data: D;
|
|
1509
2219
|
error: E;
|
|
1510
2220
|
}
|
|
1511
2221
|
declare type CancelToken = Symbol | string | number;
|
|
@@ -1574,16 +2284,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1574
2284
|
/**
|
|
1575
2285
|
* No description
|
|
1576
2286
|
*
|
|
1577
|
-
* @name
|
|
2287
|
+
* @name AskQueryWithGet
|
|
1578
2288
|
* @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
|
|
1579
2289
|
* @request GET:/search/ask
|
|
2290
|
+
* @deprecated
|
|
1580
2291
|
* @secure
|
|
1581
2292
|
*/
|
|
1582
|
-
|
|
2293
|
+
askQueryWithGet: (query: {
|
|
1583
2294
|
query: string;
|
|
1584
2295
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
1585
2296
|
answer?: SearchAIAnswer;
|
|
1586
2297
|
}, Error>>;
|
|
2298
|
+
/**
|
|
2299
|
+
* No description
|
|
2300
|
+
*
|
|
2301
|
+
* @name AskQuery
|
|
2302
|
+
* @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
|
|
2303
|
+
* @request POST:/search/ask
|
|
2304
|
+
* @secure
|
|
2305
|
+
*/
|
|
2306
|
+
askQuery: (data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
|
|
2307
|
+
answer?: SearchAIAnswer;
|
|
2308
|
+
}, Error>>;
|
|
2309
|
+
/**
|
|
2310
|
+
* No description
|
|
2311
|
+
*
|
|
2312
|
+
* @name GetRecommendedQuestions
|
|
2313
|
+
* @summary Get a list of questions recommended by AI for a list of content.
|
|
2314
|
+
* @request POST:/search/questions
|
|
2315
|
+
* @secure
|
|
2316
|
+
*/
|
|
2317
|
+
getRecommendedQuestions: (data: {
|
|
2318
|
+
documents: string[];
|
|
2319
|
+
}, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
1587
2320
|
};
|
|
1588
2321
|
user: {
|
|
1589
2322
|
/**
|
|
@@ -1635,6 +2368,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1635
2368
|
* @secure
|
|
1636
2369
|
*/
|
|
1637
2370
|
getSpaceById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
2371
|
+
/**
|
|
2372
|
+
* No description
|
|
2373
|
+
*
|
|
2374
|
+
* @tags spaces
|
|
2375
|
+
* @name UpdateSpaceById
|
|
2376
|
+
* @summary Update the details of a space
|
|
2377
|
+
* @request PATCH:/spaces/{spaceId}
|
|
2378
|
+
* @secure
|
|
2379
|
+
*/
|
|
2380
|
+
updateSpaceById: (spaceId: string, data: {
|
|
2381
|
+
visibility?: ContentVisibility;
|
|
2382
|
+
type?: SpaceType;
|
|
2383
|
+
}, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
2384
|
+
/**
|
|
2385
|
+
* No description
|
|
2386
|
+
*
|
|
2387
|
+
* @tags hive
|
|
2388
|
+
* @name GenerateSpaceHiveReadAccessToken
|
|
2389
|
+
* @summary Returns a token to authenticate with Hive to read content from a given space.
|
|
2390
|
+
* @request POST:/spaces/{spaceId}/hive/token
|
|
2391
|
+
* @secure
|
|
2392
|
+
*/
|
|
2393
|
+
generateSpaceHiveReadAccessToken: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<HiveAccessToken, Error>>;
|
|
2394
|
+
/**
|
|
2395
|
+
* No description
|
|
2396
|
+
*
|
|
2397
|
+
* @tags spaces
|
|
2398
|
+
* @name DuplicateSpace
|
|
2399
|
+
* @summary Create a duplicate of the space.
|
|
2400
|
+
* @request POST:/spaces/{spaceId}/duplicate
|
|
2401
|
+
* @secure
|
|
2402
|
+
*/
|
|
2403
|
+
duplicateSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
1638
2404
|
/**
|
|
1639
2405
|
* No description
|
|
1640
2406
|
*
|
|
@@ -1653,16 +2419,37 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1653
2419
|
/**
|
|
1654
2420
|
* No description
|
|
1655
2421
|
*
|
|
1656
|
-
* @name
|
|
2422
|
+
* @name AskQueryInSpaceWithGet
|
|
1657
2423
|
* @summary Ask a question to an AI within the context of the space.
|
|
1658
2424
|
* @request GET:/spaces/{spaceId}/search/ask
|
|
2425
|
+
* @deprecated
|
|
1659
2426
|
* @secure
|
|
1660
2427
|
*/
|
|
1661
|
-
|
|
2428
|
+
askQueryInSpaceWithGet: (spaceId: string, query: {
|
|
1662
2429
|
query: string;
|
|
1663
2430
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
1664
2431
|
answer?: SearchAIAnswer;
|
|
1665
2432
|
}, Error>>;
|
|
2433
|
+
/**
|
|
2434
|
+
* No description
|
|
2435
|
+
*
|
|
2436
|
+
* @name AskQueryInSpace
|
|
2437
|
+
* @summary Ask a question to an AI within the context of the space.
|
|
2438
|
+
* @request POST:/spaces/{spaceId}/search/ask
|
|
2439
|
+
* @secure
|
|
2440
|
+
*/
|
|
2441
|
+
askQueryInSpace: (spaceId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
|
|
2442
|
+
answer?: SearchAIAnswer;
|
|
2443
|
+
}, Error>>;
|
|
2444
|
+
/**
|
|
2445
|
+
* No description
|
|
2446
|
+
*
|
|
2447
|
+
* @name GetRecommendedQuestionsInSpace
|
|
2448
|
+
* @summary Get a list of questions that can be asked in a space.
|
|
2449
|
+
* @request GET:/spaces/{spaceId}/search/questions
|
|
2450
|
+
* @secure
|
|
2451
|
+
*/
|
|
2452
|
+
getRecommendedQuestionsInSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
1666
2453
|
/**
|
|
1667
2454
|
* No description
|
|
1668
2455
|
*
|
|
@@ -1788,7 +2575,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1788
2575
|
*/
|
|
1789
2576
|
getPageByPath: (spaceId: string, pagePath: string, query?: {
|
|
1790
2577
|
format?: 'document' | 'markdown';
|
|
1791
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
2578
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
1792
2579
|
/**
|
|
1793
2580
|
* No description
|
|
1794
2581
|
*
|
|
@@ -1801,6 +2588,37 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1801
2588
|
createChangeRequest: (spaceId: string, data: RequestCreateChangeRequest, params?: RequestParams) => Promise<HttpResponse<ChangeRequest & {
|
|
1802
2589
|
changeRequest: string;
|
|
1803
2590
|
}, Error>>;
|
|
2591
|
+
/**
|
|
2592
|
+
* No description
|
|
2593
|
+
*
|
|
2594
|
+
* @tags spaces
|
|
2595
|
+
* @name ListChangeRequestsForSpace
|
|
2596
|
+
* @summary List change requests for a space.
|
|
2597
|
+
* @request GET:/spaces/{spaceId}/change-requests
|
|
2598
|
+
* @secure
|
|
2599
|
+
*/
|
|
2600
|
+
listChangeRequestsForSpace: (spaceId: string, query?: {
|
|
2601
|
+
page?: string;
|
|
2602
|
+
limit?: number;
|
|
2603
|
+
status?: ChangeRequestStatus;
|
|
2604
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2605
|
+
items: ChangeRequest[];
|
|
2606
|
+
}, Error>>;
|
|
2607
|
+
/**
|
|
2608
|
+
* No description
|
|
2609
|
+
*
|
|
2610
|
+
* @tags spaces
|
|
2611
|
+
* @name GetChangeRequestById
|
|
2612
|
+
* @summary Get the change request with the given id.
|
|
2613
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}
|
|
2614
|
+
* @secure
|
|
2615
|
+
*/
|
|
2616
|
+
getChangeRequestById: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error | {
|
|
2617
|
+
error: {
|
|
2618
|
+
code: 404;
|
|
2619
|
+
message: string;
|
|
2620
|
+
};
|
|
2621
|
+
}>>;
|
|
1804
2622
|
/**
|
|
1805
2623
|
* No description
|
|
1806
2624
|
*
|
|
@@ -1827,6 +2645,206 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1827
2645
|
revision: string;
|
|
1828
2646
|
result: 'update' | 'conflicts';
|
|
1829
2647
|
}, Error>>;
|
|
2648
|
+
/**
|
|
2649
|
+
* No description
|
|
2650
|
+
*
|
|
2651
|
+
* @tags spaces
|
|
2652
|
+
* @name GetReviewsByChangeRequestId
|
|
2653
|
+
* @summary Get all reviews for a change request.
|
|
2654
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
2655
|
+
* @secure
|
|
2656
|
+
*/
|
|
2657
|
+
getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
|
|
2658
|
+
format?: 'document' | 'markdown';
|
|
2659
|
+
page?: string;
|
|
2660
|
+
limit?: number;
|
|
2661
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2662
|
+
items: ChangeRequestReview[];
|
|
2663
|
+
}, Error | {
|
|
2664
|
+
error: {
|
|
2665
|
+
code: 404;
|
|
2666
|
+
message: string;
|
|
2667
|
+
};
|
|
2668
|
+
}>>;
|
|
2669
|
+
/**
|
|
2670
|
+
* No description
|
|
2671
|
+
*
|
|
2672
|
+
* @tags spaces
|
|
2673
|
+
* @name SubmitChangeRequestReview
|
|
2674
|
+
* @summary Submit a review for a change request.
|
|
2675
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
2676
|
+
* @secure
|
|
2677
|
+
*/
|
|
2678
|
+
submitChangeRequestReview: (spaceId: string, changeRequestId: string | number, data: {
|
|
2679
|
+
status: ChangeRequestReviewStatus;
|
|
2680
|
+
comment?: Document;
|
|
2681
|
+
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequestReview, Error>>;
|
|
2682
|
+
/**
|
|
2683
|
+
* No description
|
|
2684
|
+
*
|
|
2685
|
+
* @tags spaces
|
|
2686
|
+
* @name GetRequestedReviewersByChangeRequestId
|
|
2687
|
+
* @summary Get all requested reviewers for a change request.
|
|
2688
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
2689
|
+
* @secure
|
|
2690
|
+
*/
|
|
2691
|
+
getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
|
|
2692
|
+
page?: string;
|
|
2693
|
+
limit?: number;
|
|
2694
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2695
|
+
items: ChangeRequestRequestedReviewer[];
|
|
2696
|
+
}, Error>>;
|
|
2697
|
+
/**
|
|
2698
|
+
* No description
|
|
2699
|
+
*
|
|
2700
|
+
* @tags spaces
|
|
2701
|
+
* @name RequestReviewersForChangeRequest
|
|
2702
|
+
* @summary Request reviewers on a change request. Note that requesting a review from teams is not yet supported.
|
|
2703
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
2704
|
+
* @secure
|
|
2705
|
+
*/
|
|
2706
|
+
requestReviewersForChangeRequest: (spaceId: string, changeRequestId: string | number, data: {
|
|
2707
|
+
users: string[];
|
|
2708
|
+
subject?: string;
|
|
2709
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
2710
|
+
users?: ChangeRequestRequestedReviewer[];
|
|
2711
|
+
}, Error>>;
|
|
2712
|
+
/**
|
|
2713
|
+
* No description
|
|
2714
|
+
*
|
|
2715
|
+
* @tags spaces
|
|
2716
|
+
* @name ListCommentsInChangeRequest
|
|
2717
|
+
* @summary List all the comments in a change request.
|
|
2718
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
2719
|
+
* @secure
|
|
2720
|
+
*/
|
|
2721
|
+
listCommentsInChangeRequest: (spaceId: string, changeRequestId: string | number, query?: {
|
|
2722
|
+
page?: string;
|
|
2723
|
+
limit?: number;
|
|
2724
|
+
format?: 'document' | 'markdown';
|
|
2725
|
+
status?: 'all';
|
|
2726
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2727
|
+
items: Comment[];
|
|
2728
|
+
}, Error>>;
|
|
2729
|
+
/**
|
|
2730
|
+
* No description
|
|
2731
|
+
*
|
|
2732
|
+
* @tags spaces
|
|
2733
|
+
* @name PostCommentInChangeRequest
|
|
2734
|
+
* @summary Post a new comment in a change request.
|
|
2735
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
2736
|
+
* @secure
|
|
2737
|
+
*/
|
|
2738
|
+
postCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
2739
|
+
/**
|
|
2740
|
+
* No description
|
|
2741
|
+
*
|
|
2742
|
+
* @tags spaces
|
|
2743
|
+
* @name GetCommentInChangeRequest
|
|
2744
|
+
* @summary Get a comment in a change request.
|
|
2745
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
2746
|
+
* @secure
|
|
2747
|
+
*/
|
|
2748
|
+
getCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
|
|
2749
|
+
format?: 'document' | 'markdown';
|
|
2750
|
+
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
2751
|
+
/**
|
|
2752
|
+
* No description
|
|
2753
|
+
*
|
|
2754
|
+
* @tags spaces
|
|
2755
|
+
* @name DeleteCommentInChangeRequest
|
|
2756
|
+
* @summary Delete a comment in a change request.
|
|
2757
|
+
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
2758
|
+
* @secure
|
|
2759
|
+
*/
|
|
2760
|
+
deleteCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2761
|
+
/**
|
|
2762
|
+
* No description
|
|
2763
|
+
*
|
|
2764
|
+
* @tags spaces
|
|
2765
|
+
* @name UpdateCommentInChangeRequest
|
|
2766
|
+
* @summary Update a comment in a change request.
|
|
2767
|
+
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
2768
|
+
* @secure
|
|
2769
|
+
*/
|
|
2770
|
+
updateCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
2771
|
+
/**
|
|
2772
|
+
* No description
|
|
2773
|
+
*
|
|
2774
|
+
* @tags spaces
|
|
2775
|
+
* @name ListCommentRepliesInChangeRequest
|
|
2776
|
+
* @summary List all the replies to a comment in a change request.
|
|
2777
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
2778
|
+
* @secure
|
|
2779
|
+
*/
|
|
2780
|
+
listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
|
|
2781
|
+
page?: string;
|
|
2782
|
+
limit?: number;
|
|
2783
|
+
format?: 'document' | 'markdown';
|
|
2784
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2785
|
+
items: CommentReply[];
|
|
2786
|
+
}, Error>>;
|
|
2787
|
+
/**
|
|
2788
|
+
* No description
|
|
2789
|
+
*
|
|
2790
|
+
* @tags spaces
|
|
2791
|
+
* @name PostCommentReplyInChangeRequest
|
|
2792
|
+
* @summary Post a new reply to a comment in a change request.
|
|
2793
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
2794
|
+
* @secure
|
|
2795
|
+
*/
|
|
2796
|
+
postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, data: PostCommentReplySchema, query?: {
|
|
2797
|
+
format?: 'document' | 'markdown';
|
|
2798
|
+
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
2799
|
+
/**
|
|
2800
|
+
* No description
|
|
2801
|
+
*
|
|
2802
|
+
* @tags spaces
|
|
2803
|
+
* @name GetCommentReplyInChangeRequest
|
|
2804
|
+
* @summary Get a comment reply in a change request.
|
|
2805
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
2806
|
+
* @secure
|
|
2807
|
+
*/
|
|
2808
|
+
getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, query?: {
|
|
2809
|
+
format?: 'document' | 'markdown';
|
|
2810
|
+
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
2811
|
+
/**
|
|
2812
|
+
* No description
|
|
2813
|
+
*
|
|
2814
|
+
* @tags spaces
|
|
2815
|
+
* @name UpdateCommentReplyInChangeRequest
|
|
2816
|
+
* @summary Update a comment reply in a change request.
|
|
2817
|
+
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
2818
|
+
* @secure
|
|
2819
|
+
*/
|
|
2820
|
+
updateCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
2821
|
+
/**
|
|
2822
|
+
* No description
|
|
2823
|
+
*
|
|
2824
|
+
* @tags spaces
|
|
2825
|
+
* @name DeleteCommentReplyInChangeRequest
|
|
2826
|
+
* @summary Delete a comment reply in a change request.
|
|
2827
|
+
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
2828
|
+
* @secure
|
|
2829
|
+
*/
|
|
2830
|
+
deleteCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2831
|
+
/**
|
|
2832
|
+
* No description
|
|
2833
|
+
*
|
|
2834
|
+
* @tags spaces
|
|
2835
|
+
* @name GetContributorsByChangeRequestId
|
|
2836
|
+
* @summary Get all contributors for the change request with the given id.
|
|
2837
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/contributors
|
|
2838
|
+
* @secure
|
|
2839
|
+
*/
|
|
2840
|
+
getContributorsByChangeRequestId: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2841
|
+
items: UserContributor[];
|
|
2842
|
+
}, Error | {
|
|
2843
|
+
error: {
|
|
2844
|
+
code: 404;
|
|
2845
|
+
message: string;
|
|
2846
|
+
};
|
|
2847
|
+
}>>;
|
|
1830
2848
|
/**
|
|
1831
2849
|
* No description
|
|
1832
2850
|
*
|
|
@@ -1889,7 +2907,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1889
2907
|
*/
|
|
1890
2908
|
getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string | number, pagePath: string, query?: {
|
|
1891
2909
|
format?: 'document' | 'markdown';
|
|
1892
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
2910
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
1893
2911
|
/**
|
|
1894
2912
|
* No description
|
|
1895
2913
|
*
|
|
@@ -1934,7 +2952,124 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1934
2952
|
*/
|
|
1935
2953
|
getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
|
|
1936
2954
|
format?: 'document' | 'markdown';
|
|
1937
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
2955
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
2956
|
+
/**
|
|
2957
|
+
* No description
|
|
2958
|
+
*
|
|
2959
|
+
* @tags spaces
|
|
2960
|
+
* @name ListCommentsInSpace
|
|
2961
|
+
* @summary List all the comments in a space.
|
|
2962
|
+
* @request GET:/spaces/{spaceId}/comments
|
|
2963
|
+
* @secure
|
|
2964
|
+
*/
|
|
2965
|
+
listCommentsInSpace: (spaceId: string, query?: {
|
|
2966
|
+
page?: string;
|
|
2967
|
+
limit?: number;
|
|
2968
|
+
status?: 'all';
|
|
2969
|
+
format?: 'document' | 'markdown';
|
|
2970
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2971
|
+
items: Comment[];
|
|
2972
|
+
}, Error>>;
|
|
2973
|
+
/**
|
|
2974
|
+
* No description
|
|
2975
|
+
*
|
|
2976
|
+
* @tags spaces
|
|
2977
|
+
* @name PostCommentInSpace
|
|
2978
|
+
* @summary Post a new comment in a space.
|
|
2979
|
+
* @request POST:/spaces/{spaceId}/comments
|
|
2980
|
+
* @secure
|
|
2981
|
+
*/
|
|
2982
|
+
postCommentInSpace: (spaceId: string, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
2983
|
+
/**
|
|
2984
|
+
* No description
|
|
2985
|
+
*
|
|
2986
|
+
* @tags spaces
|
|
2987
|
+
* @name GetCommentInSpace
|
|
2988
|
+
* @summary Get a comment in a space.
|
|
2989
|
+
* @request GET:/spaces/{spaceId}/comments/{commentId}
|
|
2990
|
+
* @secure
|
|
2991
|
+
*/
|
|
2992
|
+
getCommentInSpace: (spaceId: string, commentId: string, query?: {
|
|
2993
|
+
format?: 'document' | 'markdown';
|
|
2994
|
+
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
2995
|
+
/**
|
|
2996
|
+
* No description
|
|
2997
|
+
*
|
|
2998
|
+
* @tags spaces
|
|
2999
|
+
* @name DeleteCommentInSpace
|
|
3000
|
+
* @summary Delete a comment in a space.
|
|
3001
|
+
* @request DELETE:/spaces/{spaceId}/comments/{commentId}
|
|
3002
|
+
* @secure
|
|
3003
|
+
*/
|
|
3004
|
+
deleteCommentInSpace: (spaceId: string, commentId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3005
|
+
/**
|
|
3006
|
+
* No description
|
|
3007
|
+
*
|
|
3008
|
+
* @tags spaces
|
|
3009
|
+
* @name UpdateCommentInSpace
|
|
3010
|
+
* @summary Update a comment in a space.
|
|
3011
|
+
* @request PUT:/spaces/{spaceId}/comments/{commentId}
|
|
3012
|
+
* @secure
|
|
3013
|
+
*/
|
|
3014
|
+
updateCommentInSpace: (spaceId: string, commentId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
3015
|
+
/**
|
|
3016
|
+
* No description
|
|
3017
|
+
*
|
|
3018
|
+
* @tags spaces
|
|
3019
|
+
* @name ListCommentRepliesInSpace
|
|
3020
|
+
* @summary List all the replies to a comment in a space.
|
|
3021
|
+
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies
|
|
3022
|
+
* @secure
|
|
3023
|
+
*/
|
|
3024
|
+
listCommentRepliesInSpace: (spaceId: string, commentId: string, query?: {
|
|
3025
|
+
page?: string;
|
|
3026
|
+
limit?: number;
|
|
3027
|
+
format?: 'document' | 'markdown';
|
|
3028
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3029
|
+
items: CommentReply[];
|
|
3030
|
+
}, Error>>;
|
|
3031
|
+
/**
|
|
3032
|
+
* No description
|
|
3033
|
+
*
|
|
3034
|
+
* @tags spaces
|
|
3035
|
+
* @name PostCommentReplyInSpace
|
|
3036
|
+
* @summary Post a new reply to a comment in a space.
|
|
3037
|
+
* @request POST:/spaces/{spaceId}/comments/{commentId}/replies
|
|
3038
|
+
* @secure
|
|
3039
|
+
*/
|
|
3040
|
+
postCommentReplyInSpace: (spaceId: string, commentId: string, data: PostCommentReplySchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
3041
|
+
/**
|
|
3042
|
+
* No description
|
|
3043
|
+
*
|
|
3044
|
+
* @tags spaces
|
|
3045
|
+
* @name GetCommentReplyInSpace
|
|
3046
|
+
* @summary Get a comment reply in a space.
|
|
3047
|
+
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
3048
|
+
* @secure
|
|
3049
|
+
*/
|
|
3050
|
+
getCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, query?: {
|
|
3051
|
+
format?: 'document' | 'markdown';
|
|
3052
|
+
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
3053
|
+
/**
|
|
3054
|
+
* No description
|
|
3055
|
+
*
|
|
3056
|
+
* @tags spaces
|
|
3057
|
+
* @name UpdateCommentReplyInSpace
|
|
3058
|
+
* @summary Update a comment reply in a space.
|
|
3059
|
+
* @request PUT:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
3060
|
+
* @secure
|
|
3061
|
+
*/
|
|
3062
|
+
updateCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, data: UpdateCommentReplySchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
3063
|
+
/**
|
|
3064
|
+
* No description
|
|
3065
|
+
*
|
|
3066
|
+
* @tags spaces
|
|
3067
|
+
* @name DeleteCommentReplyInSpace
|
|
3068
|
+
* @summary Delete a comment reply in a space.
|
|
3069
|
+
* @request DELETE:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
3070
|
+
* @secure
|
|
3071
|
+
*/
|
|
3072
|
+
deleteCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
1938
3073
|
/**
|
|
1939
3074
|
* No description
|
|
1940
3075
|
*
|
|
@@ -1947,9 +3082,191 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1947
3082
|
listPermissionsAggregateInSpace: (spaceId: string, query?: {
|
|
1948
3083
|
page?: string;
|
|
1949
3084
|
limit?: number;
|
|
3085
|
+
role?: MemberRole;
|
|
1950
3086
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
1951
3087
|
items: UserContentPermission[];
|
|
1952
3088
|
}, Error>>;
|
|
3089
|
+
/**
|
|
3090
|
+
* No description
|
|
3091
|
+
*
|
|
3092
|
+
* @tags spaces
|
|
3093
|
+
* @name GetSpacePublishingAuthById
|
|
3094
|
+
* @summary Get the publishing authentication configuration for a space.
|
|
3095
|
+
* @request GET:/spaces/{spaceId}/publishing/auth
|
|
3096
|
+
* @secure
|
|
3097
|
+
*/
|
|
3098
|
+
getSpacePublishingAuthById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
3099
|
+
error: {
|
|
3100
|
+
code: 400;
|
|
3101
|
+
message: string;
|
|
3102
|
+
};
|
|
3103
|
+
}>>;
|
|
3104
|
+
/**
|
|
3105
|
+
* No description
|
|
3106
|
+
*
|
|
3107
|
+
* @tags spaces
|
|
3108
|
+
* @name UpdateSpacePublishingAuthById
|
|
3109
|
+
* @summary Update the publishing authentication configuration for a space.
|
|
3110
|
+
* @request POST:/spaces/{spaceId}/publishing/auth
|
|
3111
|
+
* @secure
|
|
3112
|
+
*/
|
|
3113
|
+
updateSpacePublishingAuthById: (spaceId: string, data: RequestUpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
3114
|
+
error: {
|
|
3115
|
+
code: 400;
|
|
3116
|
+
message: string;
|
|
3117
|
+
};
|
|
3118
|
+
}>>;
|
|
3119
|
+
/**
|
|
3120
|
+
* No description
|
|
3121
|
+
*
|
|
3122
|
+
* @tags integrations
|
|
3123
|
+
* @name ListSpaceIntegrationsBlocks
|
|
3124
|
+
* @summary List integrations blocks for a space
|
|
3125
|
+
* @request GET:/spaces/{spaceId}/integration-blocks
|
|
3126
|
+
* @secure
|
|
3127
|
+
*/
|
|
3128
|
+
listSpaceIntegrationsBlocks: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceIntegrationBlocks, Error | {
|
|
3129
|
+
error: {
|
|
3130
|
+
code: 404;
|
|
3131
|
+
message: string;
|
|
3132
|
+
};
|
|
3133
|
+
}>>;
|
|
3134
|
+
/**
|
|
3135
|
+
* No description
|
|
3136
|
+
*
|
|
3137
|
+
* @tags spaces
|
|
3138
|
+
* @name ListSpaceRelations
|
|
3139
|
+
* @summary List all relations for a space
|
|
3140
|
+
* @request GET:/spaces/{spaceId}/relations
|
|
3141
|
+
* @secure
|
|
3142
|
+
*/
|
|
3143
|
+
listSpaceRelations: (spaceId: string, query?: {
|
|
3144
|
+
page?: string;
|
|
3145
|
+
limit?: number;
|
|
3146
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3147
|
+
items: SpaceRelation[];
|
|
3148
|
+
}, Error>>;
|
|
3149
|
+
/**
|
|
3150
|
+
* No description
|
|
3151
|
+
*
|
|
3152
|
+
* @tags spaces
|
|
3153
|
+
* @name CreateSpaceRelation
|
|
3154
|
+
* @summary Create a new relation between a source space and a target space
|
|
3155
|
+
* @request POST:/spaces/{spaceId}/relations
|
|
3156
|
+
* @secure
|
|
3157
|
+
*/
|
|
3158
|
+
createSpaceRelation: (spaceId: string, data: {
|
|
3159
|
+
target: string;
|
|
3160
|
+
type: SpaceRelationType;
|
|
3161
|
+
}, params?: RequestParams) => Promise<HttpResponse<SpaceRelation, Error>>;
|
|
3162
|
+
/**
|
|
3163
|
+
* No description
|
|
3164
|
+
*
|
|
3165
|
+
* @tags spaces
|
|
3166
|
+
* @name GetSpaceRelation
|
|
3167
|
+
* @summary Get the relation between 2 spaces.
|
|
3168
|
+
* @request GET:/spaces/{spaceId}/relations/{targetSpaceId}
|
|
3169
|
+
* @secure
|
|
3170
|
+
*/
|
|
3171
|
+
getSpaceRelation: (spaceId: string, targetSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceRelation, Error | {
|
|
3172
|
+
error: {
|
|
3173
|
+
code: 404;
|
|
3174
|
+
message: string;
|
|
3175
|
+
};
|
|
3176
|
+
}>>;
|
|
3177
|
+
/**
|
|
3178
|
+
* No description
|
|
3179
|
+
*
|
|
3180
|
+
* @tags spaces
|
|
3181
|
+
* @name DeleteSpaceRelation
|
|
3182
|
+
* @summary Delete a relation between spaces
|
|
3183
|
+
* @request DELETE:/spaces/{spaceId}/relations/{targetSpaceId}
|
|
3184
|
+
* @secure
|
|
3185
|
+
*/
|
|
3186
|
+
deleteSpaceRelation: (spaceId: string, targetSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3187
|
+
/**
|
|
3188
|
+
* No description
|
|
3189
|
+
*
|
|
3190
|
+
* @tags spaces
|
|
3191
|
+
* @name GetSpaceCustomFields
|
|
3192
|
+
* @summary Get the values of the custom fields set on a space
|
|
3193
|
+
* @request GET:/spaces/{spaceId}/custom-fields
|
|
3194
|
+
* @secure
|
|
3195
|
+
*/
|
|
3196
|
+
getSpaceCustomFields: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomFieldValues, Error>>;
|
|
3197
|
+
/**
|
|
3198
|
+
* No description
|
|
3199
|
+
*
|
|
3200
|
+
* @tags spaces
|
|
3201
|
+
* @name UpdateSpaceCustomFields
|
|
3202
|
+
* @summary Update the custom fields in a space
|
|
3203
|
+
* @request PATCH:/spaces/{spaceId}/custom-fields
|
|
3204
|
+
* @secure
|
|
3205
|
+
*/
|
|
3206
|
+
updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3207
|
+
/**
|
|
3208
|
+
* No description
|
|
3209
|
+
*
|
|
3210
|
+
* @tags spaces
|
|
3211
|
+
* @name ListSpaceEntities
|
|
3212
|
+
* @summary List all entities linked to a space
|
|
3213
|
+
* @request GET:/spaces/{spaceId}/entities
|
|
3214
|
+
* @secure
|
|
3215
|
+
*/
|
|
3216
|
+
listSpaceEntities: (spaceId: string, query?: {
|
|
3217
|
+
page?: string;
|
|
3218
|
+
limit?: number;
|
|
3219
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3220
|
+
items: SpaceEntity[];
|
|
3221
|
+
}, Error>>;
|
|
3222
|
+
/**
|
|
3223
|
+
* No description
|
|
3224
|
+
*
|
|
3225
|
+
* @tags spaces
|
|
3226
|
+
* @name AddSpaceEntities
|
|
3227
|
+
* @summary Link the space to entities
|
|
3228
|
+
* @request POST:/spaces/{spaceId}/entities
|
|
3229
|
+
* @secure
|
|
3230
|
+
*/
|
|
3231
|
+
addSpaceEntities: (spaceId: string, data: {
|
|
3232
|
+
entities: {
|
|
3233
|
+
integration: string;
|
|
3234
|
+
entityId: string;
|
|
3235
|
+
environments: string[];
|
|
3236
|
+
}[];
|
|
3237
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3238
|
+
/**
|
|
3239
|
+
* No description
|
|
3240
|
+
*
|
|
3241
|
+
* @tags spaces
|
|
3242
|
+
* @name GetSpaceEntity
|
|
3243
|
+
* @summary Get a space entity
|
|
3244
|
+
* @request GET:/spaces/{spaceId}/entities/{integrationName}/{entityId}
|
|
3245
|
+
* @secure
|
|
3246
|
+
*/
|
|
3247
|
+
getSpaceEntity: (spaceId: string, integrationName: string, entityId: string, params?: RequestParams) => Promise<HttpResponse<SpaceEntity, Error>>;
|
|
3248
|
+
/**
|
|
3249
|
+
* No description
|
|
3250
|
+
*
|
|
3251
|
+
* @tags spaces
|
|
3252
|
+
* @name UpdateSpaceEntity
|
|
3253
|
+
* @summary Update a space entity
|
|
3254
|
+
* @request PATCH:/spaces/{spaceId}/entities/{integrationName}/{entityId}
|
|
3255
|
+
* @secure
|
|
3256
|
+
*/
|
|
3257
|
+
updateSpaceEntity: (spaceId: string, integrationName: string, entityId: string, data: {
|
|
3258
|
+
environments: SpaceEntityEnvironments;
|
|
3259
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3260
|
+
/**
|
|
3261
|
+
* No description
|
|
3262
|
+
*
|
|
3263
|
+
* @tags spaces
|
|
3264
|
+
* @name DeleteSpaceEntity
|
|
3265
|
+
* @summary Delete a space entity
|
|
3266
|
+
* @request DELETE:/spaces/{spaceId}/entities/{integrationName}/{entityId}
|
|
3267
|
+
* @secure
|
|
3268
|
+
*/
|
|
3269
|
+
deleteSpaceEntity: (spaceId: string, integrationName: string, entityId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
1953
3270
|
};
|
|
1954
3271
|
collections: {
|
|
1955
3272
|
/**
|
|
@@ -1962,6 +3279,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1962
3279
|
* @secure
|
|
1963
3280
|
*/
|
|
1964
3281
|
getCollectionById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
|
|
3282
|
+
/**
|
|
3283
|
+
* No description
|
|
3284
|
+
*
|
|
3285
|
+
* @tags collections
|
|
3286
|
+
* @name UpdateCollectionById
|
|
3287
|
+
* @summary Update the details of a collection
|
|
3288
|
+
* @request PATCH:/collections/{collectionId}
|
|
3289
|
+
* @secure
|
|
3290
|
+
*/
|
|
3291
|
+
updateCollectionById: (collectionId: string, data: {
|
|
3292
|
+
visibility?: ContentVisibility;
|
|
3293
|
+
}, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
|
|
1965
3294
|
/**
|
|
1966
3295
|
* No description
|
|
1967
3296
|
*
|
|
@@ -1989,9 +3318,40 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1989
3318
|
listPermissionsAggregateInCollection: (collectionId: string, query?: {
|
|
1990
3319
|
page?: string;
|
|
1991
3320
|
limit?: number;
|
|
3321
|
+
role?: MemberRole;
|
|
1992
3322
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
1993
3323
|
items: UserContentPermission[];
|
|
1994
3324
|
}, Error>>;
|
|
3325
|
+
/**
|
|
3326
|
+
* No description
|
|
3327
|
+
*
|
|
3328
|
+
* @tags collections
|
|
3329
|
+
* @name GetCollectionPublishingAuthById
|
|
3330
|
+
* @summary Get the publishing authentication configuration for a collection.
|
|
3331
|
+
* @request GET:/collections/{collectionId}/publishing/auth
|
|
3332
|
+
* @secure
|
|
3333
|
+
*/
|
|
3334
|
+
getCollectionPublishingAuthById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
3335
|
+
error: {
|
|
3336
|
+
code: 400;
|
|
3337
|
+
message: string;
|
|
3338
|
+
};
|
|
3339
|
+
}>>;
|
|
3340
|
+
/**
|
|
3341
|
+
* No description
|
|
3342
|
+
*
|
|
3343
|
+
* @tags collections
|
|
3344
|
+
* @name UpdateCollectionPublishingAuthById
|
|
3345
|
+
* @summary Update the publishing authentication configuration for a collection.
|
|
3346
|
+
* @request POST:/collections/{collectionId}/publishing/auth
|
|
3347
|
+
* @secure
|
|
3348
|
+
*/
|
|
3349
|
+
updateCollectionPublishingAuthById: (collectionId: string, data: RequestUpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
3350
|
+
error: {
|
|
3351
|
+
code: 400;
|
|
3352
|
+
message: string;
|
|
3353
|
+
};
|
|
3354
|
+
}>>;
|
|
1995
3355
|
};
|
|
1996
3356
|
integrations: {
|
|
1997
3357
|
/**
|
|
@@ -2065,6 +3425,54 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2065
3425
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2066
3426
|
items: IntegrationInstallation[];
|
|
2067
3427
|
}, Error>>;
|
|
3428
|
+
/**
|
|
3429
|
+
* No description
|
|
3430
|
+
*
|
|
3431
|
+
* @tags integrations
|
|
3432
|
+
* @name InstallIntegration
|
|
3433
|
+
* @summary Install integration on a target organization
|
|
3434
|
+
* @request POST:/integrations/{integrationName}/installations
|
|
3435
|
+
* @secure
|
|
3436
|
+
*/
|
|
3437
|
+
installIntegration: (integrationName: string, data: OrganizationTarget, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error | {
|
|
3438
|
+
error: {
|
|
3439
|
+
code: 404;
|
|
3440
|
+
message: string;
|
|
3441
|
+
};
|
|
3442
|
+
}>>;
|
|
3443
|
+
/**
|
|
3444
|
+
* No description
|
|
3445
|
+
*
|
|
3446
|
+
* @tags integrations
|
|
3447
|
+
* @name ListIntegrationEvents
|
|
3448
|
+
* @summary List all integration events
|
|
3449
|
+
* @request GET:/integrations/{integrationName}/events
|
|
3450
|
+
* @secure
|
|
3451
|
+
*/
|
|
3452
|
+
listIntegrationEvents: (integrationName: string, query?: {
|
|
3453
|
+
page?: string;
|
|
3454
|
+
limit?: number;
|
|
3455
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3456
|
+
items: IntegrationEvent[];
|
|
3457
|
+
}, Error>>;
|
|
3458
|
+
/**
|
|
3459
|
+
* No description
|
|
3460
|
+
*
|
|
3461
|
+
* @tags integrations
|
|
3462
|
+
* @name GetIntegrationEvent
|
|
3463
|
+
* @summary Get a specific integration event by its id
|
|
3464
|
+
* @request GET:/integrations/{integrationName}/events/{eventId}
|
|
3465
|
+
* @secure
|
|
3466
|
+
*/
|
|
3467
|
+
getIntegrationEvent: (integrationName: string, eventId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
3468
|
+
event: IntegrationEvent;
|
|
3469
|
+
trace?: IntegrationEventTrace;
|
|
3470
|
+
}, Error | {
|
|
3471
|
+
error: {
|
|
3472
|
+
code: 404;
|
|
3473
|
+
message: string;
|
|
3474
|
+
};
|
|
3475
|
+
}>>;
|
|
2068
3476
|
/**
|
|
2069
3477
|
* No description
|
|
2070
3478
|
*
|
|
@@ -2081,6 +3489,38 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2081
3489
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2082
3490
|
items: IntegrationSpaceInstallation[];
|
|
2083
3491
|
}, Error>>;
|
|
3492
|
+
/**
|
|
3493
|
+
* No description
|
|
3494
|
+
*
|
|
3495
|
+
* @tags integrations
|
|
3496
|
+
* @name UpdateIntegrationDevSpace
|
|
3497
|
+
* @summary Update the development space for an integration
|
|
3498
|
+
* @request PUT:/integrations/{integrationName}/spaces/{spaceId}/dev
|
|
3499
|
+
* @secure
|
|
3500
|
+
*/
|
|
3501
|
+
updateIntegrationDevSpace: (integrationName: string, spaceId: string, data: {
|
|
3502
|
+
tunnelUrl: string;
|
|
3503
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
3504
|
+
error: {
|
|
3505
|
+
code: 404;
|
|
3506
|
+
message: string;
|
|
3507
|
+
};
|
|
3508
|
+
}>>;
|
|
3509
|
+
/**
|
|
3510
|
+
* No description
|
|
3511
|
+
*
|
|
3512
|
+
* @tags integrations
|
|
3513
|
+
* @name RemoveIntegrationDevSpace
|
|
3514
|
+
* @summary Remove the development space for an integration
|
|
3515
|
+
* @request DELETE:/integrations/{integrationName}/spaces/{spaceId}/dev
|
|
3516
|
+
* @secure
|
|
3517
|
+
*/
|
|
3518
|
+
removeIntegrationDevSpace: (integrationName: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
3519
|
+
error: {
|
|
3520
|
+
code: 404;
|
|
3521
|
+
message: string;
|
|
3522
|
+
};
|
|
3523
|
+
}>>;
|
|
2084
3524
|
/**
|
|
2085
3525
|
* No description
|
|
2086
3526
|
*
|
|
@@ -2111,6 +3551,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2111
3551
|
* @secure
|
|
2112
3552
|
*/
|
|
2113
3553
|
updateIntegrationInstallation: (integrationName: string, installationId: string, data: RequestUpdateIntegrationInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error>>;
|
|
3554
|
+
/**
|
|
3555
|
+
* No description
|
|
3556
|
+
*
|
|
3557
|
+
* @tags integrations
|
|
3558
|
+
* @name UninstallIntegration
|
|
3559
|
+
* @summary Uninstall the integration from a target organization
|
|
3560
|
+
* @request DELETE:/integrations/{integrationName}/installations/{installationId}
|
|
3561
|
+
* @secure
|
|
3562
|
+
*/
|
|
3563
|
+
uninstallIntegration: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
3564
|
+
error: {
|
|
3565
|
+
code: 404;
|
|
3566
|
+
message: string;
|
|
3567
|
+
};
|
|
3568
|
+
}>>;
|
|
2114
3569
|
/**
|
|
2115
3570
|
* @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
3571
|
*
|
|
@@ -2126,6 +3581,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2126
3581
|
message: string;
|
|
2127
3582
|
};
|
|
2128
3583
|
}>>;
|
|
3584
|
+
/**
|
|
3585
|
+
* No description
|
|
3586
|
+
*
|
|
3587
|
+
* @name InstallIntegrationOnSpace
|
|
3588
|
+
* @summary Install integration on a space using an existing installation
|
|
3589
|
+
* @request POST:/integrations/{integrationName}/installations/{installationId}/spaces
|
|
3590
|
+
* @secure
|
|
3591
|
+
*/
|
|
3592
|
+
installIntegrationOnSpace: (integrationName: string, installationId: string, data: {
|
|
3593
|
+
space: string;
|
|
3594
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
|
|
3595
|
+
error: {
|
|
3596
|
+
code: 404;
|
|
3597
|
+
message: string;
|
|
3598
|
+
};
|
|
3599
|
+
}>>;
|
|
2129
3600
|
/**
|
|
2130
3601
|
* No description
|
|
2131
3602
|
*
|
|
@@ -2135,6 +3606,49 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2135
3606
|
* @secure
|
|
2136
3607
|
*/
|
|
2137
3608
|
updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data: RequestUpdateIntegrationInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error>>;
|
|
3609
|
+
/**
|
|
3610
|
+
* No description
|
|
3611
|
+
*
|
|
3612
|
+
* @name UninstallIntegrationFromSpace
|
|
3613
|
+
* @summary Uninstall the integration from a space
|
|
3614
|
+
* @request DELETE:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
3615
|
+
* @secure
|
|
3616
|
+
*/
|
|
3617
|
+
uninstallIntegrationFromSpace: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3618
|
+
/**
|
|
3619
|
+
* No description
|
|
3620
|
+
*
|
|
3621
|
+
* @tags integrations
|
|
3622
|
+
* @name GetIntegrationEntities
|
|
3623
|
+
* @summary List entities managed by an integration in an installation.
|
|
3624
|
+
* @request GET:/integrations/{integrationName}/installations/{installationId}/entities
|
|
3625
|
+
* @secure
|
|
3626
|
+
*/
|
|
3627
|
+
getIntegrationEntities: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3628
|
+
items: IntegrationEntity[];
|
|
3629
|
+
}, Error | {
|
|
3630
|
+
error: {
|
|
3631
|
+
code: 404;
|
|
3632
|
+
message: string;
|
|
3633
|
+
};
|
|
3634
|
+
}>>;
|
|
3635
|
+
/**
|
|
3636
|
+
* No description
|
|
3637
|
+
*
|
|
3638
|
+
* @tags integrations
|
|
3639
|
+
* @name SyncIntegrationEntities
|
|
3640
|
+
* @summary Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.
|
|
3641
|
+
* @request POST:/integrations/{integrationName}/installations/{installationId}/entities
|
|
3642
|
+
* @secure
|
|
3643
|
+
*/
|
|
3644
|
+
syncIntegrationEntities: (integrationName: string, installationId: string, data: {
|
|
3645
|
+
entities: UpsertIntegrationEntity[];
|
|
3646
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
3647
|
+
error: {
|
|
3648
|
+
code: 404;
|
|
3649
|
+
message: string;
|
|
3650
|
+
};
|
|
3651
|
+
}>>;
|
|
2138
3652
|
};
|
|
2139
3653
|
orgs: {
|
|
2140
3654
|
/**
|
|
@@ -2152,6 +3666,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2152
3666
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2153
3667
|
items: Organization[];
|
|
2154
3668
|
}, Error>>;
|
|
3669
|
+
/**
|
|
3670
|
+
* No description
|
|
3671
|
+
*
|
|
3672
|
+
* @tags organizations
|
|
3673
|
+
* @name CreateOrganization
|
|
3674
|
+
* @summary Create an organization
|
|
3675
|
+
* @request POST:/orgs
|
|
3676
|
+
* @secure
|
|
3677
|
+
*/
|
|
3678
|
+
createOrganization: (data: RequestCreateOrganization, params?: RequestParams) => Promise<HttpResponse<Organization, Error>>;
|
|
3679
|
+
/**
|
|
3680
|
+
* No description
|
|
3681
|
+
*
|
|
3682
|
+
* @tags organizations
|
|
3683
|
+
* @name GetOrganizationById
|
|
3684
|
+
* @summary Get an organization by its ID
|
|
3685
|
+
* @request GET:/orgs/{organizationId}
|
|
3686
|
+
* @secure
|
|
3687
|
+
*/
|
|
3688
|
+
getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error>>;
|
|
2155
3689
|
/**
|
|
2156
3690
|
* @description Lists members for the specified organization.
|
|
2157
3691
|
*
|
|
@@ -2164,6 +3698,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2164
3698
|
listMembersInOrganizationById: (organizationId: string, query?: {
|
|
2165
3699
|
page?: string;
|
|
2166
3700
|
limit?: number;
|
|
3701
|
+
role?: MemberRole | 'guest';
|
|
3702
|
+
search?: string;
|
|
2167
3703
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2168
3704
|
items: OrganizationMember[];
|
|
2169
3705
|
}, Error>>;
|
|
@@ -2199,6 +3735,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2199
3735
|
* @secure
|
|
2200
3736
|
*/
|
|
2201
3737
|
removeMemberFromOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3738
|
+
/**
|
|
3739
|
+
* @description Update organization member's "last seen at" timestamp.
|
|
3740
|
+
*
|
|
3741
|
+
* @tags organizations
|
|
3742
|
+
* @name UpdateOrganizationMemberLastSeenAt
|
|
3743
|
+
* @summary Update organization member's "last seen at" timestamp.
|
|
3744
|
+
* @request POST:/orgs/{organizationId}/ping
|
|
3745
|
+
* @secure
|
|
3746
|
+
*/
|
|
3747
|
+
updateOrganizationMemberLastSeenAt: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2202
3748
|
/**
|
|
2203
3749
|
* No description
|
|
2204
3750
|
*
|
|
@@ -2208,7 +3754,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2208
3754
|
* @request POST:/orgs/{organizationId}/members/{userId}/sso
|
|
2209
3755
|
* @secure
|
|
2210
3756
|
*/
|
|
2211
|
-
setUserAsSsoMemberForOrganization: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<
|
|
3757
|
+
setUserAsSsoMemberForOrganization: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationMember, Error>>;
|
|
2212
3758
|
/**
|
|
2213
3759
|
* No description
|
|
2214
3760
|
*
|
|
@@ -2224,6 +3770,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2224
3770
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2225
3771
|
items: MemberContentPermission[];
|
|
2226
3772
|
}, Error>>;
|
|
3773
|
+
/**
|
|
3774
|
+
* No description
|
|
3775
|
+
*
|
|
3776
|
+
* @tags teams
|
|
3777
|
+
* @name ListTeamsForOrganizationMember
|
|
3778
|
+
* @summary List all teams an organization member is part of
|
|
3779
|
+
* @request GET:/orgs/{organizationId}/members/{userId}/teams
|
|
3780
|
+
* @secure
|
|
3781
|
+
*/
|
|
3782
|
+
listTeamsForOrganizationMember: (organizationId: string, userId: string, query?: {
|
|
3783
|
+
page?: string;
|
|
3784
|
+
limit?: number;
|
|
3785
|
+
title?: string;
|
|
3786
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3787
|
+
items: {
|
|
3788
|
+
team: OrganizationTeam;
|
|
3789
|
+
member: TeamMember;
|
|
3790
|
+
}[];
|
|
3791
|
+
}, Error>>;
|
|
2227
3792
|
/**
|
|
2228
3793
|
* @description Lists teams for the specified organization.
|
|
2229
3794
|
*
|
|
@@ -2296,6 +3861,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2296
3861
|
*/
|
|
2297
3862
|
updateMembersInOrganizationTeam: (organizationId: string, teamId: string, data: {
|
|
2298
3863
|
add?: string[];
|
|
3864
|
+
memberships?: Record<string, TeamMember>;
|
|
2299
3865
|
remove?: string[];
|
|
2300
3866
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2301
3867
|
/**
|
|
@@ -2314,15 +3880,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2314
3880
|
items: OrganizationMember[];
|
|
2315
3881
|
}, Error>>;
|
|
2316
3882
|
/**
|
|
2317
|
-
* @description
|
|
3883
|
+
* @description Add or updates member in the specified organization team.
|
|
2318
3884
|
*
|
|
2319
3885
|
* @tags organizations
|
|
2320
3886
|
* @name AddMemberToOrganizationTeamById
|
|
2321
|
-
* @summary Add
|
|
3887
|
+
* @summary Add or update a team membership
|
|
2322
3888
|
* @request PUT:/orgs/{organizationId}/teams/{teamId}/members/{userId}
|
|
2323
3889
|
* @secure
|
|
2324
3890
|
*/
|
|
2325
|
-
addMemberToOrganizationTeamById: (organizationId: string, teamId: string, userId: string,
|
|
3891
|
+
addMemberToOrganizationTeamById: (organizationId: string, teamId: string, userId: string, data: {
|
|
3892
|
+
role?: TeamMemberRole;
|
|
3893
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2326
3894
|
/**
|
|
2327
3895
|
* @description Deletes member from the specified organization team.
|
|
2328
3896
|
*
|
|
@@ -2436,9 +4004,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2436
4004
|
listSpacesInOrganizationById: (organizationId: string, query?: {
|
|
2437
4005
|
page?: string;
|
|
2438
4006
|
limit?: number;
|
|
4007
|
+
visibility?: ContentVisibility;
|
|
2439
4008
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2440
4009
|
items: Space[];
|
|
2441
4010
|
}, Error>>;
|
|
4011
|
+
/**
|
|
4012
|
+
* No description
|
|
4013
|
+
*
|
|
4014
|
+
* @tags spaces
|
|
4015
|
+
* @name CreateSpace
|
|
4016
|
+
* @summary Create an organization space
|
|
4017
|
+
* @request POST:/orgs/{organizationId}/spaces
|
|
4018
|
+
* @secure
|
|
4019
|
+
*/
|
|
4020
|
+
createSpace: (organizationId: string, data: RequestCreateSpace, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
4021
|
+
/**
|
|
4022
|
+
* @description Lists spaces including Git sync metadata for the specified organization.
|
|
4023
|
+
*
|
|
4024
|
+
* @tags organizations
|
|
4025
|
+
* @name ListSpacesWithGitSyncInOrganizationById
|
|
4026
|
+
* @summary List organization spaces including Git sync metadata
|
|
4027
|
+
* @request GET:/orgs/{organizationId}/spaces/gitsync
|
|
4028
|
+
* @secure
|
|
4029
|
+
*/
|
|
4030
|
+
listSpacesWithGitSyncInOrganizationById: (organizationId: string, query?: {
|
|
4031
|
+
page?: string;
|
|
4032
|
+
limit?: number;
|
|
4033
|
+
status?: GitSyncOperationState;
|
|
4034
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4035
|
+
items: {
|
|
4036
|
+
space: Space;
|
|
4037
|
+
gitSync?: GitSyncState;
|
|
4038
|
+
}[];
|
|
4039
|
+
}, Error>>;
|
|
2442
4040
|
/**
|
|
2443
4041
|
* @description Lists collections for the specified organization.
|
|
2444
4042
|
*
|
|
@@ -2496,6 +4094,178 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2496
4094
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
2497
4095
|
synced: OrganizationDirectorySyncGroupTeamStatus[];
|
|
2498
4096
|
}, Error>>;
|
|
4097
|
+
/**
|
|
4098
|
+
* No description
|
|
4099
|
+
*
|
|
4100
|
+
* @tags organizations
|
|
4101
|
+
* @name ListOrganizationCustomFields
|
|
4102
|
+
* @summary Get the custom fields for spaces in an organization
|
|
4103
|
+
* @request GET:/orgs/{organizationId}/custom-fields
|
|
4104
|
+
* @secure
|
|
4105
|
+
*/
|
|
4106
|
+
listOrganizationCustomFields: (organizationId: string, query?: {
|
|
4107
|
+
page?: string;
|
|
4108
|
+
limit?: number;
|
|
4109
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4110
|
+
items: CustomField[];
|
|
4111
|
+
}, Error>>;
|
|
4112
|
+
/**
|
|
4113
|
+
* No description
|
|
4114
|
+
*
|
|
4115
|
+
* @tags organizations
|
|
4116
|
+
* @name CreateOrganizationCustomField
|
|
4117
|
+
* @summary Create a new custom field in an orgamization
|
|
4118
|
+
* @request POST:/orgs/{organizationId}/custom-fields
|
|
4119
|
+
* @secure
|
|
4120
|
+
*/
|
|
4121
|
+
createOrganizationCustomField: (organizationId: string, data: {
|
|
4122
|
+
name: CustomFieldName;
|
|
4123
|
+
type: CustomFieldType;
|
|
4124
|
+
title?: CustomFieldTitle;
|
|
4125
|
+
description?: CustomFieldDescription;
|
|
4126
|
+
}, params?: RequestParams) => Promise<HttpResponse<CustomField, Error>>;
|
|
4127
|
+
/**
|
|
4128
|
+
* No description
|
|
4129
|
+
*
|
|
4130
|
+
* @tags organizations
|
|
4131
|
+
* @name GetOrganizationCustomFieldByName
|
|
4132
|
+
* @summary Get a custom field by its name
|
|
4133
|
+
* @request GET:/orgs/{organizationId}/custom-fields/{fieldName}
|
|
4134
|
+
* @secure
|
|
4135
|
+
*/
|
|
4136
|
+
getOrganizationCustomFieldByName: (organizationId: string, fieldName: string, params?: RequestParams) => Promise<HttpResponse<CustomField, Error | {
|
|
4137
|
+
error: {
|
|
4138
|
+
code: 404;
|
|
4139
|
+
message: string;
|
|
4140
|
+
};
|
|
4141
|
+
}>>;
|
|
4142
|
+
/**
|
|
4143
|
+
* No description
|
|
4144
|
+
*
|
|
4145
|
+
* @tags organizations
|
|
4146
|
+
* @name UpdateOrganizationCustomField
|
|
4147
|
+
* @summary Update a custom field in an organization
|
|
4148
|
+
* @request PATCH:/orgs/{organizationId}/custom-fields/{fieldName}
|
|
4149
|
+
* @secure
|
|
4150
|
+
*/
|
|
4151
|
+
updateOrganizationCustomField: (organizationId: string, fieldName: string, data: {
|
|
4152
|
+
title?: CustomFieldTitle;
|
|
4153
|
+
description?: CustomFieldDescription;
|
|
4154
|
+
}, params?: RequestParams) => Promise<HttpResponse<CustomField, Error>>;
|
|
4155
|
+
/**
|
|
4156
|
+
* No description
|
|
4157
|
+
*
|
|
4158
|
+
* @tags organizations
|
|
4159
|
+
* @name DeleteOrganizationCustomField
|
|
4160
|
+
* @summary Delete a custom field in an organization
|
|
4161
|
+
* @request DELETE:/orgs/{organizationId}/custom-fields/{fieldName}
|
|
4162
|
+
* @secure
|
|
4163
|
+
*/
|
|
4164
|
+
deleteOrganizationCustomField: (organizationId: string, fieldName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4165
|
+
/**
|
|
4166
|
+
* No description
|
|
4167
|
+
*
|
|
4168
|
+
* @tags spaces
|
|
4169
|
+
* @name ListSpaceRelationsInOrganization
|
|
4170
|
+
* @summary List all relations between spaces in an organization
|
|
4171
|
+
* @request GET:/orgs/{organizationId}/space-relations
|
|
4172
|
+
* @secure
|
|
4173
|
+
*/
|
|
4174
|
+
listSpaceRelationsInOrganization: (organizationId: string, query?: {
|
|
4175
|
+
page?: string;
|
|
4176
|
+
limit?: number;
|
|
4177
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4178
|
+
items: SpaceRelationPair[];
|
|
4179
|
+
}, Error>>;
|
|
4180
|
+
/**
|
|
4181
|
+
* No description
|
|
4182
|
+
*
|
|
4183
|
+
* @tags spaces
|
|
4184
|
+
* @name ListEntitiesInOrganization
|
|
4185
|
+
* @summary List all entities in an organization.
|
|
4186
|
+
* @request GET:/orgs/{organizationId}/entities
|
|
4187
|
+
* @secure
|
|
4188
|
+
*/
|
|
4189
|
+
listEntitiesInOrganization: (organizationId: string, query?: {
|
|
4190
|
+
page?: string;
|
|
4191
|
+
limit?: number;
|
|
4192
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4193
|
+
items: IntegrationEntity[];
|
|
4194
|
+
}, Error>>;
|
|
4195
|
+
/**
|
|
4196
|
+
* No description
|
|
4197
|
+
*
|
|
4198
|
+
* @tags organizations, environments
|
|
4199
|
+
* @name ListEnvironments
|
|
4200
|
+
* @summary Get the environments in an organization
|
|
4201
|
+
* @request GET:/orgs/{organizationId}/environments
|
|
4202
|
+
* @secure
|
|
4203
|
+
*/
|
|
4204
|
+
listEnvironments: (organizationId: string, query?: {
|
|
4205
|
+
page?: string;
|
|
4206
|
+
limit?: number;
|
|
4207
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4208
|
+
items?: Environment[];
|
|
4209
|
+
}, any>>;
|
|
4210
|
+
/**
|
|
4211
|
+
* No description
|
|
4212
|
+
*
|
|
4213
|
+
* @tags organizations, environments
|
|
4214
|
+
* @name CreateEnvironment
|
|
4215
|
+
* @summary Create a new environment within an organization
|
|
4216
|
+
* @request POST:/orgs/{organizationId}/environments
|
|
4217
|
+
* @secure
|
|
4218
|
+
*/
|
|
4219
|
+
createEnvironment: (organizationId: string, data: CreateEnvironment, params?: RequestParams) => Promise<HttpResponse<Environment, Error>>;
|
|
4220
|
+
/**
|
|
4221
|
+
* No description
|
|
4222
|
+
*
|
|
4223
|
+
* @tags organizations, environments
|
|
4224
|
+
* @name GetEnvironmentByName
|
|
4225
|
+
* @summary Get an environment by its name
|
|
4226
|
+
* @request GET:/orgs/{organizationId}/environments/{environmentName}
|
|
4227
|
+
* @secure
|
|
4228
|
+
*/
|
|
4229
|
+
getEnvironmentByName: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<Environment, Error | {
|
|
4230
|
+
error: {
|
|
4231
|
+
code: 404;
|
|
4232
|
+
message: string;
|
|
4233
|
+
};
|
|
4234
|
+
}>>;
|
|
4235
|
+
/**
|
|
4236
|
+
* No description
|
|
4237
|
+
*
|
|
4238
|
+
* @tags organizations, environments
|
|
4239
|
+
* @name UpdateEnvironment
|
|
4240
|
+
* @summary Update an existing environment within an organization
|
|
4241
|
+
* @request PATCH:/orgs/{organizationId}/environments/{environmentName}
|
|
4242
|
+
* @secure
|
|
4243
|
+
*/
|
|
4244
|
+
updateEnvironment: (organizationId: string, environmentName: string, data: UpdateEnvironment, params?: RequestParams) => Promise<HttpResponse<Environment, Error>>;
|
|
4245
|
+
/**
|
|
4246
|
+
* No description
|
|
4247
|
+
*
|
|
4248
|
+
* @tags organizations, environments
|
|
4249
|
+
* @name DeleteEnvironment
|
|
4250
|
+
* @summary Delete an environment in an organization
|
|
4251
|
+
* @request DELETE:/orgs/{organizationId}/environments/{environmentName}
|
|
4252
|
+
* @secure
|
|
4253
|
+
*/
|
|
4254
|
+
deleteEnvironment: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4255
|
+
};
|
|
4256
|
+
internal: {
|
|
4257
|
+
/**
|
|
4258
|
+
* No description
|
|
4259
|
+
*
|
|
4260
|
+
* @tags hive
|
|
4261
|
+
* @name GenerateHiveAccessToken
|
|
4262
|
+
* @summary Returns a token to authenticate with Hive.
|
|
4263
|
+
* @request POST:/internal/hive/token
|
|
4264
|
+
* @secure
|
|
4265
|
+
*/
|
|
4266
|
+
generateHiveAccessToken: (data?: {
|
|
4267
|
+
spaces?: string[];
|
|
4268
|
+
}, params?: RequestParams) => Promise<HttpResponse<HiveAccessToken, Error>>;
|
|
2499
4269
|
};
|
|
2500
4270
|
urls: {
|
|
2501
4271
|
/**
|
|
@@ -2514,7 +4284,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2514
4284
|
} | {
|
|
2515
4285
|
space: Space;
|
|
2516
4286
|
changeRequest?: ChangeRequest;
|
|
2517
|
-
page?:
|
|
4287
|
+
page?: RevisionPageDocument | RevisionPageGroup;
|
|
2518
4288
|
}, Error>>;
|
|
2519
4289
|
};
|
|
2520
4290
|
}
|