@gitbook/api 0.74.0 → 0.75.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 +525 -311
- package/dist/index.cjs +76 -40
- package/dist/index.js +74 -40
- package/package.json +1 -1
- package/spec/openapi.json +1186 -590
- package/spec/openapi.yaml +836 -439
package/dist/client.d.ts
CHANGED
|
@@ -1366,6 +1366,16 @@ export interface ChangeRequest {
|
|
|
1366
1366
|
updatedAt: Timestamp;
|
|
1367
1367
|
/** ID of the active revision in the change request. */
|
|
1368
1368
|
revision: string;
|
|
1369
|
+
/** ID of the initial revision in the space from which the change request was created. */
|
|
1370
|
+
revisionInitial: string;
|
|
1371
|
+
/** ID of the latest revision when updating from main space content. */
|
|
1372
|
+
revisionMergedAncestor?: string;
|
|
1373
|
+
/** When merged, ID of the revision resulting from the merge. */
|
|
1374
|
+
revisionMerged?: string;
|
|
1375
|
+
/** Count of opened comments on the change request. */
|
|
1376
|
+
comments: number;
|
|
1377
|
+
/** If true, the change request is not up-to-date with latest changes in the main content. */
|
|
1378
|
+
outdated: boolean;
|
|
1369
1379
|
/** URLs associated with the object */
|
|
1370
1380
|
urls: {
|
|
1371
1381
|
/**
|
|
@@ -1465,6 +1475,25 @@ export interface SitePointer {
|
|
|
1465
1475
|
}
|
|
1466
1476
|
/** The default content for the organization */
|
|
1467
1477
|
export type OrganizationDefaultContent = SpacePointer | CollectionPointer | SitePointer;
|
|
1478
|
+
/** Name of the product */
|
|
1479
|
+
export declare enum BillingProduct {
|
|
1480
|
+
Free2024 = "free_2024",
|
|
1481
|
+
Plus2024 = "plus_2024",
|
|
1482
|
+
Pro2024 = "pro_2024",
|
|
1483
|
+
Enterprise2024 = "enterprise_2024",
|
|
1484
|
+
Free = "free",
|
|
1485
|
+
Plus = "plus",
|
|
1486
|
+
Pro = "pro",
|
|
1487
|
+
Team = "team",
|
|
1488
|
+
Business = "business",
|
|
1489
|
+
Legacy = "legacy",
|
|
1490
|
+
Startup = "startup",
|
|
1491
|
+
Enterprise = "enterprise",
|
|
1492
|
+
Community = "community",
|
|
1493
|
+
TeamOct2019Free = "team_oct_2019_free",
|
|
1494
|
+
TeamDec2021 = "team_dec_2021",
|
|
1495
|
+
BusinessDec2021 = "business_dec_2021"
|
|
1496
|
+
}
|
|
1468
1497
|
export interface Organization {
|
|
1469
1498
|
/** Type of Object, always equals to "organization" */
|
|
1470
1499
|
object: 'organization';
|
|
@@ -1487,6 +1516,10 @@ export interface Organization {
|
|
|
1487
1516
|
sso?: boolean;
|
|
1488
1517
|
/** If true, the organization is configured to use all our AI features. */
|
|
1489
1518
|
ai?: boolean;
|
|
1519
|
+
/** If true, invite links are enabled for this organization. */
|
|
1520
|
+
inviteLinks: boolean;
|
|
1521
|
+
/** Name of the product */
|
|
1522
|
+
plan: BillingProduct;
|
|
1490
1523
|
/** URLs associated with the object */
|
|
1491
1524
|
urls: {
|
|
1492
1525
|
/**
|
|
@@ -2977,8 +3010,8 @@ export interface IntegrationSpaceInstallation {
|
|
|
2977
3010
|
integration: string;
|
|
2978
3011
|
/** ID of the integration installation */
|
|
2979
3012
|
installation: string;
|
|
2980
|
-
/**
|
|
2981
|
-
space: string;
|
|
3013
|
+
/** The space the integration is installed on. Using the string value is deprecated in favor of space.id */
|
|
3014
|
+
space: string | Space;
|
|
2982
3015
|
status: IntegrationInstallationStatus;
|
|
2983
3016
|
/** Configuration of the integration for this space */
|
|
2984
3017
|
configuration: object;
|
|
@@ -3364,14 +3397,120 @@ export interface UpdateIntegrationSpaceInstallation {
|
|
|
3364
3397
|
/** Configuration of the integration at the account level */
|
|
3365
3398
|
configuration?: IntegrationInstallationConfiguration;
|
|
3366
3399
|
}
|
|
3400
|
+
/** The type of the site */
|
|
3401
|
+
export declare enum SiteType {
|
|
3402
|
+
Basic = "basic",
|
|
3403
|
+
Premium = "premium",
|
|
3404
|
+
Ultimate = "ultimate",
|
|
3405
|
+
Sponsored = "sponsored",
|
|
3406
|
+
LegacyBasic = "legacy-basic",
|
|
3407
|
+
LegacyPremium = "legacy-premium"
|
|
3408
|
+
}
|
|
3409
|
+
/**
|
|
3410
|
+
* Title of the site
|
|
3411
|
+
* @minLength 2
|
|
3412
|
+
* @maxLength 128
|
|
3413
|
+
*/
|
|
3414
|
+
export type SiteTitle = string;
|
|
3415
|
+
/**
|
|
3416
|
+
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
3417
|
+
* @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
|
|
3418
|
+
*/
|
|
3419
|
+
export type SiteHostname = string;
|
|
3420
|
+
/**
|
|
3421
|
+
* Basename for the site. For e.g. api
|
|
3422
|
+
* @minLength 1
|
|
3423
|
+
* @maxLength 100
|
|
3424
|
+
*/
|
|
3425
|
+
export type SiteBasename = string;
|
|
3426
|
+
/**
|
|
3427
|
+
* The visibility setting of the site determines the audience of the site.
|
|
3428
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3429
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3430
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3431
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3432
|
+
*/
|
|
3433
|
+
export declare enum SiteVisibility {
|
|
3434
|
+
Public = "public",
|
|
3435
|
+
Unlisted = "unlisted",
|
|
3436
|
+
ShareLink = "share-link",
|
|
3437
|
+
VisitorAuth = "visitor-auth"
|
|
3438
|
+
}
|
|
3439
|
+
/** Topic of the content */
|
|
3440
|
+
export declare enum SiteAdsTopic {
|
|
3441
|
+
Webdev = "webdev",
|
|
3442
|
+
Crypto = "crypto"
|
|
3443
|
+
}
|
|
3444
|
+
export type SiteAds = {
|
|
3445
|
+
status: 'pending';
|
|
3446
|
+
/** True if the user can submit the site for review. */
|
|
3447
|
+
submittable: boolean;
|
|
3448
|
+
} | {
|
|
3449
|
+
status: 'in-review';
|
|
3450
|
+
/** Topic of the content */
|
|
3451
|
+
topic: SiteAdsTopic;
|
|
3452
|
+
} | {
|
|
3453
|
+
status: 'rejected';
|
|
3454
|
+
} | {
|
|
3455
|
+
status: 'live' | 'disabled';
|
|
3456
|
+
/** Topic of the content */
|
|
3457
|
+
topic: SiteAdsTopic;
|
|
3458
|
+
/** The ad network zone ID */
|
|
3459
|
+
zoneId: string;
|
|
3460
|
+
};
|
|
3461
|
+
export interface Site {
|
|
3462
|
+
object: 'site';
|
|
3463
|
+
/** Unique identifier of the site */
|
|
3464
|
+
id: string;
|
|
3465
|
+
/** The type of the site */
|
|
3466
|
+
type: SiteType;
|
|
3467
|
+
/** Title of the site */
|
|
3468
|
+
title: SiteTitle;
|
|
3469
|
+
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
3470
|
+
hostname?: SiteHostname;
|
|
3471
|
+
/** Basename for the site. For e.g. api */
|
|
3472
|
+
basename?: SiteBasename;
|
|
3473
|
+
/**
|
|
3474
|
+
* The visibility setting of the site determines the audience of the site.
|
|
3475
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3476
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3477
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3478
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3479
|
+
*/
|
|
3480
|
+
visibility: SiteVisibility;
|
|
3481
|
+
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
3482
|
+
published: boolean;
|
|
3483
|
+
siteSpaces: number;
|
|
3484
|
+
/** @format date-time */
|
|
3485
|
+
createdAt: string;
|
|
3486
|
+
ads?: SiteAds;
|
|
3487
|
+
/** URLs associated with the object */
|
|
3488
|
+
urls: {
|
|
3489
|
+
/**
|
|
3490
|
+
* URL of the site in the API
|
|
3491
|
+
* @format uri
|
|
3492
|
+
*/
|
|
3493
|
+
location: string;
|
|
3494
|
+
/**
|
|
3495
|
+
* URL of the site in the application
|
|
3496
|
+
* @format uri
|
|
3497
|
+
*/
|
|
3498
|
+
app: string;
|
|
3499
|
+
/**
|
|
3500
|
+
* URL of the published version of the site. Only defined when site is published.
|
|
3501
|
+
* @format uri
|
|
3502
|
+
*/
|
|
3503
|
+
published?: string;
|
|
3504
|
+
};
|
|
3505
|
+
}
|
|
3367
3506
|
/** Installation of an integration at a site level */
|
|
3368
3507
|
export interface IntegrationSiteInstallation {
|
|
3369
3508
|
/** Unique name identifier of the integration */
|
|
3370
3509
|
integration: string;
|
|
3371
3510
|
/** ID of the integration installation */
|
|
3372
3511
|
installation: string;
|
|
3373
|
-
/**
|
|
3374
|
-
site: string;
|
|
3512
|
+
/** The site the integration is installed on. Using the string value is deprecated in favor of site.id */
|
|
3513
|
+
site: string | Site;
|
|
3375
3514
|
status: IntegrationInstallationStatus;
|
|
3376
3515
|
/** Configuration of the integration for this site */
|
|
3377
3516
|
configuration: object;
|
|
@@ -3404,6 +3543,91 @@ export interface CreateOrganization {
|
|
|
3404
3543
|
type?: OrganizationType;
|
|
3405
3544
|
useCase?: OrganizationUseCase;
|
|
3406
3545
|
}
|
|
3546
|
+
/**
|
|
3547
|
+
* Title of the site section
|
|
3548
|
+
* @minLength 2
|
|
3549
|
+
* @maxLength 128
|
|
3550
|
+
*/
|
|
3551
|
+
export type SiteSectionTitle = string;
|
|
3552
|
+
/**
|
|
3553
|
+
* Path to the section on the site
|
|
3554
|
+
* @minLength 1
|
|
3555
|
+
* @maxLength 100
|
|
3556
|
+
*/
|
|
3557
|
+
export type SiteSectionPath = string;
|
|
3558
|
+
/**
|
|
3559
|
+
* Path to the space on the site
|
|
3560
|
+
* @minLength 1
|
|
3561
|
+
* @maxLength 100
|
|
3562
|
+
*/
|
|
3563
|
+
export type SiteSpacePath = string;
|
|
3564
|
+
export interface SiteSpace {
|
|
3565
|
+
/** The object type, which is always "site-space" */
|
|
3566
|
+
object: 'site-space';
|
|
3567
|
+
/** Unique identifier of the site-space */
|
|
3568
|
+
id: string;
|
|
3569
|
+
/** Path to the space on the site */
|
|
3570
|
+
path: SiteSpacePath;
|
|
3571
|
+
/** ID of the section the space belongs to in the site */
|
|
3572
|
+
section?: string;
|
|
3573
|
+
space: Space;
|
|
3574
|
+
title: string;
|
|
3575
|
+
/** Whether this is the default space for the site */
|
|
3576
|
+
default?: boolean;
|
|
3577
|
+
/** Whether the space has advanced customization feature enabled */
|
|
3578
|
+
hasAdvancedCustomizationFeature?: boolean;
|
|
3579
|
+
/** URLs associated with the object */
|
|
3580
|
+
urls: {
|
|
3581
|
+
/**
|
|
3582
|
+
* URL of the published version of the site-space. Only defined when site is published.
|
|
3583
|
+
* @format uri
|
|
3584
|
+
*/
|
|
3585
|
+
published?: string;
|
|
3586
|
+
};
|
|
3587
|
+
}
|
|
3588
|
+
export interface SiteSection {
|
|
3589
|
+
/** The object type, which is always "site-section" */
|
|
3590
|
+
object: 'site-section';
|
|
3591
|
+
/** Unique identifier of the site section */
|
|
3592
|
+
id: string;
|
|
3593
|
+
/** Title of the site section */
|
|
3594
|
+
title: SiteSectionTitle;
|
|
3595
|
+
/** Whether this is the default section for the site */
|
|
3596
|
+
default?: boolean;
|
|
3597
|
+
/** Path to the section on the site */
|
|
3598
|
+
path: SiteSectionPath;
|
|
3599
|
+
siteSpaces: SiteSpace[];
|
|
3600
|
+
/** URLs associated with the object */
|
|
3601
|
+
urls: {
|
|
3602
|
+
/**
|
|
3603
|
+
* URL of the published version of the site section. Only defined when site is published.
|
|
3604
|
+
* @format uri
|
|
3605
|
+
*/
|
|
3606
|
+
published?: string;
|
|
3607
|
+
};
|
|
3608
|
+
}
|
|
3609
|
+
export type SiteStructure = {
|
|
3610
|
+
type: 'sections';
|
|
3611
|
+
structure: SiteSection[];
|
|
3612
|
+
} | {
|
|
3613
|
+
type: 'siteSpaces';
|
|
3614
|
+
structure: SiteSpace[];
|
|
3615
|
+
};
|
|
3616
|
+
export interface OrganizationAllSite {
|
|
3617
|
+
site: Site;
|
|
3618
|
+
structure: SiteStructure;
|
|
3619
|
+
}
|
|
3620
|
+
export interface OrganizationAllCollection {
|
|
3621
|
+
collection: Collection;
|
|
3622
|
+
content: (OrganizationAllCollection | OrganizationAllSpace)[];
|
|
3623
|
+
}
|
|
3624
|
+
export interface OrganizationAllSpace {
|
|
3625
|
+
space: Space;
|
|
3626
|
+
}
|
|
3627
|
+
export interface OrganizationAllContent {
|
|
3628
|
+
sites: OrganizationAllSite[];
|
|
3629
|
+
spaces: (OrganizationAllCollection | OrganizationAllSpace)[];
|
|
3630
|
+
}
|
|
3407
3631
|
export interface OrganizationMember {
|
|
3408
3632
|
/** Type of Object, always equals to "member" */
|
|
3409
3633
|
object: 'member';
|
|
@@ -3546,25 +3770,6 @@ export interface CreateInviteToCollection {
|
|
|
3546
3770
|
export type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
|
|
3547
3771
|
/** An invite link created in an organization */
|
|
3548
3772
|
export type OrganizationInviteLink = InviteLinkToOrganization | InviteLinkToSpace | InviteLinkToCollection;
|
|
3549
|
-
export interface BillingPortal {
|
|
3550
|
-
/** URL to the billing portal for an organization */
|
|
3551
|
-
url: string;
|
|
3552
|
-
}
|
|
3553
|
-
/** Name of the product */
|
|
3554
|
-
export declare enum BillingProduct {
|
|
3555
|
-
Free2024 = "free_2024",
|
|
3556
|
-
Plus2024 = "plus_2024",
|
|
3557
|
-
Pro2024 = "pro_2024",
|
|
3558
|
-
Enterprise2024 = "enterprise_2024",
|
|
3559
|
-
Free = "free",
|
|
3560
|
-
Plus = "plus",
|
|
3561
|
-
Pro = "pro",
|
|
3562
|
-
Team = "team",
|
|
3563
|
-
Business = "business",
|
|
3564
|
-
Legacy = "legacy",
|
|
3565
|
-
Startup = "startup",
|
|
3566
|
-
Enterprise = "enterprise"
|
|
3567
|
-
}
|
|
3568
3773
|
/** Interval for a billing subscription */
|
|
3569
3774
|
export declare enum BillingInterval {
|
|
3570
3775
|
Monthly = "monthly",
|
|
@@ -3618,6 +3823,10 @@ export type BillingUpgrade = {
|
|
|
3618
3823
|
} | {
|
|
3619
3824
|
result: 'interval_changed';
|
|
3620
3825
|
};
|
|
3826
|
+
export interface BillingPortal {
|
|
3827
|
+
/** URL to the billing portal for an organization */
|
|
3828
|
+
url: string;
|
|
3829
|
+
}
|
|
3621
3830
|
export interface CreateSpace {
|
|
3622
3831
|
/** @maxLength 50 */
|
|
3623
3832
|
title?: string;
|
|
@@ -3810,180 +4019,74 @@ export interface Capture {
|
|
|
3810
4019
|
/** URLs associated with the object */
|
|
3811
4020
|
urls: {
|
|
3812
4021
|
/**
|
|
3813
|
-
* URL of the capture in the API
|
|
3814
|
-
* @format uri
|
|
3815
|
-
*/
|
|
3816
|
-
location: string;
|
|
3817
|
-
/**
|
|
3818
|
-
* URL of the capture in the app
|
|
3819
|
-
* @format uri
|
|
3820
|
-
*/
|
|
3821
|
-
app: string;
|
|
3822
|
-
};
|
|
3823
|
-
}
|
|
3824
|
-
export interface BaseCaptureEvent {
|
|
3825
|
-
/** The type of event */
|
|
3826
|
-
type: string;
|
|
3827
|
-
/**
|
|
3828
|
-
* When the event happened
|
|
3829
|
-
* @format date-time
|
|
3830
|
-
*/
|
|
3831
|
-
timestamp: string;
|
|
3832
|
-
/**
|
|
3833
|
-
* Optionally, provide the source of the event. GitBook may use this to improve the generated content.
|
|
3834
|
-
* @maxLength 50
|
|
3835
|
-
*/
|
|
3836
|
-
source?: string;
|
|
3837
|
-
/** Optionally, provide the actor of the event, in the context of multiple people contributing to the capture. */
|
|
3838
|
-
actor?: {
|
|
3839
|
-
name: string;
|
|
3840
|
-
};
|
|
3841
|
-
}
|
|
3842
|
-
export type CaptureTerminalCommandEvent = BaseCaptureEvent & {
|
|
3843
|
-
type: 'terminal.command';
|
|
3844
|
-
command: string;
|
|
3845
|
-
stdout: string;
|
|
3846
|
-
};
|
|
3847
|
-
export type CaptureSpeechEvent = BaseCaptureEvent & {
|
|
3848
|
-
type: 'speech';
|
|
3849
|
-
} & ({
|
|
3850
|
-
/** WAV audio file, encoded as base64 */
|
|
3851
|
-
audio: string;
|
|
3852
|
-
} | {
|
|
3853
|
-
/** Transcript of the speech */
|
|
3854
|
-
transcript: string;
|
|
3855
|
-
});
|
|
3856
|
-
export type CaptureThreadMessageEvent = BaseCaptureEvent & {
|
|
3857
|
-
type: 'thread.message';
|
|
3858
|
-
isFirst?: boolean;
|
|
3859
|
-
text: string;
|
|
3860
|
-
};
|
|
3861
|
-
export type CaptureFileAddedEvent = BaseCaptureEvent & {
|
|
3862
|
-
type: 'file.added';
|
|
3863
|
-
filename: string;
|
|
3864
|
-
fileSnapshot: string;
|
|
3865
|
-
};
|
|
3866
|
-
export type CaptureFileChangedEvent = BaseCaptureEvent & {
|
|
3867
|
-
type: 'file.changed';
|
|
3868
|
-
filename: string;
|
|
3869
|
-
fileDiff: string;
|
|
3870
|
-
};
|
|
3871
|
-
export type CaptureFileRemovedEvent = BaseCaptureEvent & {
|
|
3872
|
-
type: 'file.removed';
|
|
3873
|
-
filename: string;
|
|
3874
|
-
fileSnapshot: string;
|
|
3875
|
-
};
|
|
3876
|
-
export type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
|
|
3877
|
-
export interface UpdateSnippetSchema {
|
|
3878
|
-
/** A new title for the snippet. */
|
|
3879
|
-
title?: string;
|
|
3880
|
-
}
|
|
3881
|
-
/** The type of the site */
|
|
3882
|
-
export declare enum SiteType {
|
|
3883
|
-
Basic = "basic",
|
|
3884
|
-
Premium = "premium",
|
|
3885
|
-
Ultimate = "ultimate",
|
|
3886
|
-
Sponsored = "sponsored",
|
|
3887
|
-
LegacyBasic = "legacy-basic",
|
|
3888
|
-
LegacyPremium = "legacy-premium"
|
|
3889
|
-
}
|
|
3890
|
-
/**
|
|
3891
|
-
* Title of the site
|
|
3892
|
-
* @minLength 2
|
|
3893
|
-
* @maxLength 128
|
|
3894
|
-
*/
|
|
3895
|
-
export type SiteTitle = string;
|
|
3896
|
-
/**
|
|
3897
|
-
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
3898
|
-
* @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
|
|
3899
|
-
*/
|
|
3900
|
-
export type SiteHostname = string;
|
|
3901
|
-
/**
|
|
3902
|
-
* Basename for the site. For e.g. api
|
|
3903
|
-
* @minLength 1
|
|
3904
|
-
* @maxLength 100
|
|
3905
|
-
*/
|
|
3906
|
-
export type SiteBasename = string;
|
|
3907
|
-
/**
|
|
3908
|
-
* The visibility setting of the site determines the audience of the site.
|
|
3909
|
-
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3910
|
-
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3911
|
-
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3912
|
-
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3913
|
-
*/
|
|
3914
|
-
export declare enum SiteVisibility {
|
|
3915
|
-
Public = "public",
|
|
3916
|
-
Unlisted = "unlisted",
|
|
3917
|
-
ShareLink = "share-link",
|
|
3918
|
-
VisitorAuth = "visitor-auth"
|
|
3919
|
-
}
|
|
3920
|
-
/** Topic of the content */
|
|
3921
|
-
export declare enum SiteAdsTopic {
|
|
3922
|
-
Webdev = "webdev",
|
|
3923
|
-
Crypto = "crypto"
|
|
3924
|
-
}
|
|
3925
|
-
export type SiteAds = {
|
|
3926
|
-
status: 'pending';
|
|
3927
|
-
/** True if the user can submit the site for review. */
|
|
3928
|
-
submittable: boolean;
|
|
3929
|
-
} | {
|
|
3930
|
-
status: 'in-review';
|
|
3931
|
-
/** Topic of the content */
|
|
3932
|
-
topic: SiteAdsTopic;
|
|
3933
|
-
} | {
|
|
3934
|
-
status: 'rejected';
|
|
3935
|
-
} | {
|
|
3936
|
-
status: 'live' | 'disabled';
|
|
3937
|
-
/** Topic of the content */
|
|
3938
|
-
topic: SiteAdsTopic;
|
|
3939
|
-
/** The ad network zone ID */
|
|
3940
|
-
zoneId: string;
|
|
3941
|
-
};
|
|
3942
|
-
export interface Site {
|
|
3943
|
-
object: 'site';
|
|
3944
|
-
/** Unique identifier of the site */
|
|
3945
|
-
id: string;
|
|
3946
|
-
/** The type of the site */
|
|
3947
|
-
type: SiteType;
|
|
3948
|
-
/** Title of the site */
|
|
3949
|
-
title: SiteTitle;
|
|
3950
|
-
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
3951
|
-
hostname?: SiteHostname;
|
|
3952
|
-
/** Basename for the site. For e.g. api */
|
|
3953
|
-
basename?: SiteBasename;
|
|
3954
|
-
/**
|
|
3955
|
-
* The visibility setting of the site determines the audience of the site.
|
|
3956
|
-
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3957
|
-
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3958
|
-
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3959
|
-
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3960
|
-
*/
|
|
3961
|
-
visibility: SiteVisibility;
|
|
3962
|
-
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
3963
|
-
published: boolean;
|
|
3964
|
-
siteSpaces: number;
|
|
3965
|
-
/** @format date-time */
|
|
3966
|
-
createdAt: string;
|
|
3967
|
-
ads?: SiteAds;
|
|
3968
|
-
/** URLs associated with the object */
|
|
3969
|
-
urls: {
|
|
3970
|
-
/**
|
|
3971
|
-
* URL of the site in the API
|
|
4022
|
+
* URL of the capture in the API
|
|
3972
4023
|
* @format uri
|
|
3973
4024
|
*/
|
|
3974
4025
|
location: string;
|
|
3975
4026
|
/**
|
|
3976
|
-
* URL of the
|
|
4027
|
+
* URL of the capture in the app
|
|
3977
4028
|
* @format uri
|
|
3978
4029
|
*/
|
|
3979
4030
|
app: string;
|
|
3980
|
-
/**
|
|
3981
|
-
* URL of the published version of the site. Only defined when site is published.
|
|
3982
|
-
* @format uri
|
|
3983
|
-
*/
|
|
3984
|
-
published?: string;
|
|
3985
4031
|
};
|
|
3986
4032
|
}
|
|
4033
|
+
export interface BaseCaptureEvent {
|
|
4034
|
+
/** The type of event */
|
|
4035
|
+
type: string;
|
|
4036
|
+
/**
|
|
4037
|
+
* When the event happened
|
|
4038
|
+
* @format date-time
|
|
4039
|
+
*/
|
|
4040
|
+
timestamp: string;
|
|
4041
|
+
/**
|
|
4042
|
+
* Optionally, provide the source of the event. GitBook may use this to improve the generated content.
|
|
4043
|
+
* @maxLength 50
|
|
4044
|
+
*/
|
|
4045
|
+
source?: string;
|
|
4046
|
+
/** Optionally, provide the actor of the event, in the context of multiple people contributing to the capture. */
|
|
4047
|
+
actor?: {
|
|
4048
|
+
name: string;
|
|
4049
|
+
};
|
|
4050
|
+
}
|
|
4051
|
+
export type CaptureTerminalCommandEvent = BaseCaptureEvent & {
|
|
4052
|
+
type: 'terminal.command';
|
|
4053
|
+
command: string;
|
|
4054
|
+
stdout: string;
|
|
4055
|
+
};
|
|
4056
|
+
export type CaptureSpeechEvent = BaseCaptureEvent & {
|
|
4057
|
+
type: 'speech';
|
|
4058
|
+
} & ({
|
|
4059
|
+
/** WAV audio file, encoded as base64 */
|
|
4060
|
+
audio: string;
|
|
4061
|
+
} | {
|
|
4062
|
+
/** Transcript of the speech */
|
|
4063
|
+
transcript: string;
|
|
4064
|
+
});
|
|
4065
|
+
export type CaptureThreadMessageEvent = BaseCaptureEvent & {
|
|
4066
|
+
type: 'thread.message';
|
|
4067
|
+
isFirst?: boolean;
|
|
4068
|
+
text: string;
|
|
4069
|
+
};
|
|
4070
|
+
export type CaptureFileAddedEvent = BaseCaptureEvent & {
|
|
4071
|
+
type: 'file.added';
|
|
4072
|
+
filename: string;
|
|
4073
|
+
fileSnapshot: string;
|
|
4074
|
+
};
|
|
4075
|
+
export type CaptureFileChangedEvent = BaseCaptureEvent & {
|
|
4076
|
+
type: 'file.changed';
|
|
4077
|
+
filename: string;
|
|
4078
|
+
fileDiff: string;
|
|
4079
|
+
};
|
|
4080
|
+
export type CaptureFileRemovedEvent = BaseCaptureEvent & {
|
|
4081
|
+
type: 'file.removed';
|
|
4082
|
+
filename: string;
|
|
4083
|
+
fileSnapshot: string;
|
|
4084
|
+
};
|
|
4085
|
+
export type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
|
|
4086
|
+
export interface UpdateSnippetSchema {
|
|
4087
|
+
/** A new title for the snippet. */
|
|
4088
|
+
title?: string;
|
|
4089
|
+
}
|
|
3987
4090
|
/** A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request. */
|
|
3988
4091
|
export type BillingOperationPreviewResponse = {
|
|
3989
4092
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
@@ -4005,76 +4108,6 @@ export type BillingOperationPreviewResponse = {
|
|
|
4005
4108
|
plan: BillingProduct;
|
|
4006
4109
|
invoice?: BillingInvoicePreview;
|
|
4007
4110
|
};
|
|
4008
|
-
/**
|
|
4009
|
-
* Title of the site section
|
|
4010
|
-
* @minLength 2
|
|
4011
|
-
* @maxLength 128
|
|
4012
|
-
*/
|
|
4013
|
-
export type SiteSectionTitle = string;
|
|
4014
|
-
/**
|
|
4015
|
-
* Path to the section on the site
|
|
4016
|
-
* @minLength 1
|
|
4017
|
-
* @maxLength 100
|
|
4018
|
-
*/
|
|
4019
|
-
export type SiteSectionPath = string;
|
|
4020
|
-
/**
|
|
4021
|
-
* Path to the space on the site
|
|
4022
|
-
* @minLength 1
|
|
4023
|
-
* @maxLength 100
|
|
4024
|
-
*/
|
|
4025
|
-
export type SiteSpacePath = string;
|
|
4026
|
-
export interface SiteSpace {
|
|
4027
|
-
/** The object type, which is always "site-space" */
|
|
4028
|
-
object?: 'site-space';
|
|
4029
|
-
/** Unique identifier of the site-space */
|
|
4030
|
-
id: string;
|
|
4031
|
-
/** Path to the space on the site */
|
|
4032
|
-
path: SiteSpacePath;
|
|
4033
|
-
/** ID of the section the space belongs to in the site */
|
|
4034
|
-
section?: string;
|
|
4035
|
-
space: Space;
|
|
4036
|
-
title: string;
|
|
4037
|
-
/** Whether this is the default space for the site */
|
|
4038
|
-
default?: boolean;
|
|
4039
|
-
/** Whether the space has advanced customization feature enabled */
|
|
4040
|
-
hasAdvancedCustomizationFeature?: boolean;
|
|
4041
|
-
/** URLs associated with the object */
|
|
4042
|
-
urls: {
|
|
4043
|
-
/**
|
|
4044
|
-
* URL of the published version of the site-space. Only defined when site is published.
|
|
4045
|
-
* @format uri
|
|
4046
|
-
*/
|
|
4047
|
-
published?: string;
|
|
4048
|
-
};
|
|
4049
|
-
}
|
|
4050
|
-
export interface SiteSection {
|
|
4051
|
-
/** The object type, which is always "site-section" */
|
|
4052
|
-
object?: 'site-section';
|
|
4053
|
-
/** Unique identifier of the site section */
|
|
4054
|
-
id: string;
|
|
4055
|
-
/** Title of the site section */
|
|
4056
|
-
title: SiteSectionTitle;
|
|
4057
|
-
/** Whether this is the default section for the site */
|
|
4058
|
-
default?: boolean;
|
|
4059
|
-
/** Path to the section on the site */
|
|
4060
|
-
path: SiteSectionPath;
|
|
4061
|
-
siteSpaces: SiteSpace[];
|
|
4062
|
-
/** URLs associated with the object */
|
|
4063
|
-
urls: {
|
|
4064
|
-
/**
|
|
4065
|
-
* URL of the published version of the site section. Only defined when site is published.
|
|
4066
|
-
* @format uri
|
|
4067
|
-
*/
|
|
4068
|
-
published?: string;
|
|
4069
|
-
};
|
|
4070
|
-
}
|
|
4071
|
-
export type SiteStructure = {
|
|
4072
|
-
type: 'sections';
|
|
4073
|
-
structure: SiteSection[];
|
|
4074
|
-
} | {
|
|
4075
|
-
type: 'siteSpaces';
|
|
4076
|
-
structure: SiteSpace[];
|
|
4077
|
-
};
|
|
4078
4111
|
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
4079
4112
|
/** Type of Object, always equals to "publishing-auth" */
|
|
4080
4113
|
object: 'publishing-auth';
|
|
@@ -4219,13 +4252,9 @@ export interface UserSitePermission {
|
|
|
4219
4252
|
/** The content or organization that enforced this permission level. */
|
|
4220
4253
|
origin: SpacePointer | OrganizationPointer;
|
|
4221
4254
|
}
|
|
4222
|
-
export
|
|
4255
|
+
export type SiteTrackPageView = {
|
|
4223
4256
|
/** Unique identifier of the page. */
|
|
4224
4257
|
pageId?: string;
|
|
4225
|
-
/** Unique identifier of the space. */
|
|
4226
|
-
spaceId: string;
|
|
4227
|
-
/** The site-space that was viewed */
|
|
4228
|
-
siteSpaceId?: string;
|
|
4229
4258
|
/** Analytics info on the GitBook's content visitor. */
|
|
4230
4259
|
visitor: {
|
|
4231
4260
|
/** GitBook's unique identifier of the visitor. */
|
|
@@ -4252,6 +4281,27 @@ export interface SiteTrackPageView {
|
|
|
4252
4281
|
url: string;
|
|
4253
4282
|
/** The URL of referrer that linked to the page. */
|
|
4254
4283
|
referrer: string;
|
|
4284
|
+
} & ({
|
|
4285
|
+
/** Unique identifier of the space. */
|
|
4286
|
+
spaceId: string;
|
|
4287
|
+
} | {
|
|
4288
|
+
/** The site-space that was viewed */
|
|
4289
|
+
siteSpaceId: string;
|
|
4290
|
+
});
|
|
4291
|
+
/**
|
|
4292
|
+
* The interval for grouping the results
|
|
4293
|
+
* @default "week"
|
|
4294
|
+
*/
|
|
4295
|
+
export declare enum InsightsInterval {
|
|
4296
|
+
Day = "day",
|
|
4297
|
+
Week = "week",
|
|
4298
|
+
Month = "month",
|
|
4299
|
+
Year = "year"
|
|
4300
|
+
}
|
|
4301
|
+
export interface SiteAdsStats {
|
|
4302
|
+
impressions: number;
|
|
4303
|
+
clicks: number;
|
|
4304
|
+
revenue: string;
|
|
4255
4305
|
}
|
|
4256
4306
|
/** Page entry in the content insights. */
|
|
4257
4307
|
export interface InsightsContentPage {
|
|
@@ -4266,17 +4316,6 @@ export interface InsightsContentPage {
|
|
|
4266
4316
|
/** Icon of the page, if one has been set. */
|
|
4267
4317
|
icon?: Icon;
|
|
4268
4318
|
}
|
|
4269
|
-
export interface SiteAdsStats {
|
|
4270
|
-
impressions: number;
|
|
4271
|
-
clicks: number;
|
|
4272
|
-
revenue: string;
|
|
4273
|
-
account: {
|
|
4274
|
-
/** Email address on the Ads platform. */
|
|
4275
|
-
email: string;
|
|
4276
|
-
/** URL to configure payout. */
|
|
4277
|
-
url: string;
|
|
4278
|
-
};
|
|
4279
|
-
}
|
|
4280
4319
|
export declare enum CustomHostnameDnsStatus {
|
|
4281
4320
|
DnsPassed = "dns_passed",
|
|
4282
4321
|
DnsWrongCname = "dns_wrong_cname",
|
|
@@ -4612,6 +4651,21 @@ export declare enum RevisionSemanticChangeType {
|
|
|
4612
4651
|
FileDeleted = "file_deleted",
|
|
4613
4652
|
CustomFieldsEdited = "custom_fields_edited"
|
|
4614
4653
|
}
|
|
4654
|
+
/**
|
|
4655
|
+
* Core stages of a Git Sync process. This is not exhaustive, but should cover
|
|
4656
|
+
* the important ones.
|
|
4657
|
+
* - repo_fetch: Includes fetching the latest repository contents from remote provider.
|
|
4658
|
+
* - config_check: Includes checking if the YAML config is valid, etc.
|
|
4659
|
+
* - content_process: Includes processing of pages & files to be imported/exported.
|
|
4660
|
+
* - finalize: Includes finalizing the sync process like creating the commit on git, or
|
|
4661
|
+
* creating a new revision.
|
|
4662
|
+
*/
|
|
4663
|
+
export declare enum GitSyncOperationStage {
|
|
4664
|
+
RepoFetch = "repo_fetch",
|
|
4665
|
+
ConfigCheck = "config_check",
|
|
4666
|
+
ContentProcess = "content_process",
|
|
4667
|
+
Finalize = "finalize"
|
|
4668
|
+
}
|
|
4615
4669
|
export interface OrganizationTransferResponse {
|
|
4616
4670
|
/** The unique id of the collection created in the target organization containing the content of the source organization. */
|
|
4617
4671
|
collection: string;
|
|
@@ -4717,6 +4771,11 @@ export interface SpaceInfoChannel {
|
|
|
4717
4771
|
channel: 'space';
|
|
4718
4772
|
space: string;
|
|
4719
4773
|
}
|
|
4774
|
+
/** Channel notified when the main content of a space is changed. */
|
|
4775
|
+
export interface SpaceContentChannel {
|
|
4776
|
+
channel: 'space-content';
|
|
4777
|
+
space: string;
|
|
4778
|
+
}
|
|
4720
4779
|
export interface SpaceGitInfoChannel {
|
|
4721
4780
|
channel: 'space-git-info';
|
|
4722
4781
|
space: string;
|
|
@@ -4733,14 +4792,10 @@ export interface SpaceCustomFieldsChannel {
|
|
|
4733
4792
|
channel: 'space-customfields';
|
|
4734
4793
|
space: string;
|
|
4735
4794
|
}
|
|
4736
|
-
export interface
|
|
4737
|
-
channel: 'space-
|
|
4795
|
+
export interface SpaceContentRefsChannel {
|
|
4796
|
+
channel: 'space-content-refs';
|
|
4738
4797
|
space: string;
|
|
4739
4798
|
}
|
|
4740
|
-
export interface BackofficeUserInfoChannel {
|
|
4741
|
-
channel: 'backoffice-user-info';
|
|
4742
|
-
user: string;
|
|
4743
|
-
}
|
|
4744
4799
|
export interface SpaceIntegrationsChannel {
|
|
4745
4800
|
channel: 'space-integrations';
|
|
4746
4801
|
space: string;
|
|
@@ -4775,8 +4830,8 @@ export interface ChangeRequestReviewsChannel {
|
|
|
4775
4830
|
space: string;
|
|
4776
4831
|
changeRequest: string;
|
|
4777
4832
|
}
|
|
4778
|
-
export interface
|
|
4779
|
-
channel: 'space-change-request-
|
|
4833
|
+
export interface ChangeRequestContentRefsChannel {
|
|
4834
|
+
channel: 'space-change-request-content-refs';
|
|
4780
4835
|
space: string;
|
|
4781
4836
|
changeRequest: string;
|
|
4782
4837
|
}
|
|
@@ -4860,28 +4915,29 @@ export interface OrganizationExperimentalFeaturesChannel {
|
|
|
4860
4915
|
channel: 'organization-experimental-features';
|
|
4861
4916
|
organization: string;
|
|
4862
4917
|
}
|
|
4863
|
-
export interface
|
|
4918
|
+
export interface SpaceCommentsChannel {
|
|
4864
4919
|
channel: 'space-comments';
|
|
4865
4920
|
space: string;
|
|
4866
|
-
|
|
4921
|
+
}
|
|
4922
|
+
export interface ChangeRequestCommentsChannel {
|
|
4923
|
+
channel: 'space-change-request-comments';
|
|
4924
|
+
space: string;
|
|
4925
|
+
changeRequest: string;
|
|
4867
4926
|
}
|
|
4868
4927
|
export interface CommentInfoChannel {
|
|
4869
4928
|
channel: 'space-comment';
|
|
4870
4929
|
space: string;
|
|
4871
|
-
changeRequest?: string;
|
|
4872
4930
|
comment: string;
|
|
4873
4931
|
}
|
|
4874
4932
|
export interface CommentReplyInfoChannel {
|
|
4875
4933
|
channel: 'space-comment-reply';
|
|
4876
4934
|
space: string;
|
|
4877
|
-
changeRequest?: string;
|
|
4878
4935
|
comment: string;
|
|
4879
4936
|
commentReply: string;
|
|
4880
4937
|
}
|
|
4881
4938
|
export interface CommentRepliesChannel {
|
|
4882
4939
|
channel: 'space-comment-replies';
|
|
4883
4940
|
space: string;
|
|
4884
|
-
changeRequest?: string;
|
|
4885
4941
|
comment: string;
|
|
4886
4942
|
}
|
|
4887
4943
|
export interface IntegrationChannel {
|
|
@@ -4965,8 +5021,65 @@ export interface CustomHostnameChannel {
|
|
|
4965
5021
|
channel: 'custom-hostname';
|
|
4966
5022
|
customHostname: string;
|
|
4967
5023
|
}
|
|
4968
|
-
|
|
4969
|
-
|
|
5024
|
+
export interface GitSyncSettingsChannel {
|
|
5025
|
+
channel: 'space-gitsync-settings';
|
|
5026
|
+
space: string;
|
|
5027
|
+
}
|
|
5028
|
+
export interface GitSyncOperationChannel {
|
|
5029
|
+
channel: 'space-gitsync-operation';
|
|
5030
|
+
space: string;
|
|
5031
|
+
}
|
|
5032
|
+
/** Channel to subscribe to for realtime updates. */
|
|
5033
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel;
|
|
5034
|
+
export interface GitSyncOperationChannelData {
|
|
5035
|
+
channel: 'space-gitsync-operation';
|
|
5036
|
+
/** Data passed on the channel messages for GitSync running in a space. */
|
|
5037
|
+
data: {
|
|
5038
|
+
direction: 'export' | 'import';
|
|
5039
|
+
/**
|
|
5040
|
+
* Core stages of a Git Sync process. This is not exhaustive, but should cover
|
|
5041
|
+
* the important ones.
|
|
5042
|
+
* - repo_fetch: Includes fetching the latest repository contents from remote provider.
|
|
5043
|
+
* - config_check: Includes checking if the YAML config is valid, etc.
|
|
5044
|
+
* - content_process: Includes processing of pages & files to be imported/exported.
|
|
5045
|
+
* - finalize: Includes finalizing the sync process like creating the commit on git, or
|
|
5046
|
+
* creating a new revision.
|
|
5047
|
+
*/
|
|
5048
|
+
stage: GitSyncOperationStage;
|
|
5049
|
+
dispatchedTasks: number;
|
|
5050
|
+
completedTasks: number;
|
|
5051
|
+
startedAt: number;
|
|
5052
|
+
updatedAt: number;
|
|
5053
|
+
} | null;
|
|
5054
|
+
}
|
|
5055
|
+
export interface SpaceContentRefsChannelData {
|
|
5056
|
+
channel: 'space-content-refs';
|
|
5057
|
+
/** Data passed on the channel messages for content refs indexation. */
|
|
5058
|
+
data: {
|
|
5059
|
+
/** ID of the latest indexed revision */
|
|
5060
|
+
revision: string;
|
|
5061
|
+
updatedAt: number;
|
|
5062
|
+
};
|
|
5063
|
+
}
|
|
5064
|
+
export interface ChangeRequestContentRefsChannelData {
|
|
5065
|
+
channel: 'space-change-request-content-refs';
|
|
5066
|
+
/** Data passed on the channel messages for content refs indexation. */
|
|
5067
|
+
data: {
|
|
5068
|
+
/** ID of the latest indexed revision */
|
|
5069
|
+
revision: string;
|
|
5070
|
+
updatedAt: number;
|
|
5071
|
+
};
|
|
5072
|
+
}
|
|
5073
|
+
export interface APIChannelMutationData {
|
|
5074
|
+
channel: '*';
|
|
5075
|
+
/** Data passed on the channels associated to API endpoints. */
|
|
5076
|
+
data: {
|
|
5077
|
+
/** ID of the API execution that triggered the mutation. */
|
|
5078
|
+
executionId: string;
|
|
5079
|
+
};
|
|
5080
|
+
}
|
|
5081
|
+
/** Data passed through a realtime channel */
|
|
5082
|
+
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | APIChannelMutationData;
|
|
4970
5083
|
/** The status of ads on the site */
|
|
4971
5084
|
export declare enum SiteAdsStatus {
|
|
4972
5085
|
Pending = "pending",
|
|
@@ -5180,7 +5293,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5180
5293
|
/**
|
|
5181
5294
|
* @description Provides publicly available information about someone with a GitBook account.
|
|
5182
5295
|
*
|
|
5183
|
-
* @tags users
|
|
5296
|
+
* @tags users, critical
|
|
5184
5297
|
* @name GetUserById
|
|
5185
5298
|
* @summary Get a user by its ID
|
|
5186
5299
|
* @request GET:/users/{userId}
|
|
@@ -5192,7 +5305,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5192
5305
|
/**
|
|
5193
5306
|
* No description
|
|
5194
5307
|
*
|
|
5195
|
-
* @tags spaces
|
|
5308
|
+
* @tags spaces, critical
|
|
5196
5309
|
* @name GetSpaceById
|
|
5197
5310
|
* @summary Get the details about a space.
|
|
5198
5311
|
* @request GET:/spaces/{spaceId}
|
|
@@ -5863,10 +5976,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5863
5976
|
*/
|
|
5864
5977
|
limit?: number;
|
|
5865
5978
|
/**
|
|
5866
|
-
* If defined, only change requests matching this status will be returned
|
|
5979
|
+
* If defined, only change requests matching this status will be returned.
|
|
5867
5980
|
* @default "open"
|
|
5868
5981
|
*/
|
|
5869
5982
|
status?: ChangeRequestStatus;
|
|
5983
|
+
/** If defined, only change requests with contributions from this user will be returned. */
|
|
5984
|
+
contributor?: string;
|
|
5870
5985
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5871
5986
|
items: ChangeRequest[];
|
|
5872
5987
|
}, Error>>;
|
|
@@ -7429,6 +7544,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7429
7544
|
limit?: number;
|
|
7430
7545
|
/** External Id to filter by */
|
|
7431
7546
|
externalId?: string;
|
|
7547
|
+
/**
|
|
7548
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7549
|
+
* @default false
|
|
7550
|
+
*/
|
|
7551
|
+
extended?: boolean;
|
|
7432
7552
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7433
7553
|
items: IntegrationSpaceInstallation[];
|
|
7434
7554
|
}, Error>>;
|
|
@@ -7592,6 +7712,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7592
7712
|
* @max 1000
|
|
7593
7713
|
*/
|
|
7594
7714
|
limit?: number;
|
|
7715
|
+
/**
|
|
7716
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7717
|
+
* @default false
|
|
7718
|
+
*/
|
|
7719
|
+
extended?: boolean;
|
|
7595
7720
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7596
7721
|
items: IntegrationSpaceInstallation[];
|
|
7597
7722
|
}, Error>>;
|
|
@@ -7606,6 +7731,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7606
7731
|
installIntegrationOnSpace: (integrationName: string, installationId: string, data: {
|
|
7607
7732
|
/** ID of the space to install the integration on */
|
|
7608
7733
|
space: string;
|
|
7734
|
+
}, query?: {
|
|
7735
|
+
/**
|
|
7736
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7737
|
+
* @default false
|
|
7738
|
+
*/
|
|
7739
|
+
extended?: boolean;
|
|
7609
7740
|
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
|
|
7610
7741
|
error: {
|
|
7611
7742
|
/** @format int32 */
|
|
@@ -7622,7 +7753,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7622
7753
|
* @request GET:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
7623
7754
|
* @secure
|
|
7624
7755
|
*/
|
|
7625
|
-
getIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string,
|
|
7756
|
+
getIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, query?: {
|
|
7757
|
+
/**
|
|
7758
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7759
|
+
* @default false
|
|
7760
|
+
*/
|
|
7761
|
+
extended?: boolean;
|
|
7762
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
|
|
7626
7763
|
error: {
|
|
7627
7764
|
/** @format int32 */
|
|
7628
7765
|
code: 404;
|
|
@@ -7637,7 +7774,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7637
7774
|
* @request PATCH:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
7638
7775
|
* @secure
|
|
7639
7776
|
*/
|
|
7640
|
-
updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data: UpdateIntegrationSpaceInstallation,
|
|
7777
|
+
updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data: UpdateIntegrationSpaceInstallation, query?: {
|
|
7778
|
+
/**
|
|
7779
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7780
|
+
* @default false
|
|
7781
|
+
*/
|
|
7782
|
+
extended?: boolean;
|
|
7783
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error>>;
|
|
7641
7784
|
/**
|
|
7642
7785
|
* No description
|
|
7643
7786
|
*
|
|
@@ -7665,6 +7808,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7665
7808
|
* @max 1000
|
|
7666
7809
|
*/
|
|
7667
7810
|
limit?: number;
|
|
7811
|
+
/**
|
|
7812
|
+
* If true, returns the site object in each items. If false, returns the site ID in each items.
|
|
7813
|
+
* @default false
|
|
7814
|
+
*/
|
|
7815
|
+
extended?: boolean;
|
|
7668
7816
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7669
7817
|
items: IntegrationSiteInstallation[];
|
|
7670
7818
|
}, Error>>;
|
|
@@ -7680,6 +7828,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7680
7828
|
installIntegrationOnSite: (integrationName: string, installationId: string, data: {
|
|
7681
7829
|
/** ID of the site to install the integration on */
|
|
7682
7830
|
siteId: string;
|
|
7831
|
+
}, query?: {
|
|
7832
|
+
/**
|
|
7833
|
+
* If true, returns the site object in each items. If false, returns the site ID in each items.
|
|
7834
|
+
* @default false
|
|
7835
|
+
*/
|
|
7836
|
+
extended?: boolean;
|
|
7683
7837
|
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
|
|
7684
7838
|
error: {
|
|
7685
7839
|
/** @format int32 */
|
|
@@ -7696,7 +7850,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7696
7850
|
* @request GET:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
|
|
7697
7851
|
* @secure
|
|
7698
7852
|
*/
|
|
7699
|
-
getIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string,
|
|
7853
|
+
getIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, query?: {
|
|
7854
|
+
/**
|
|
7855
|
+
* If true, returns the site object in each items. If false, returns the site ID in each items.
|
|
7856
|
+
* @default false
|
|
7857
|
+
*/
|
|
7858
|
+
extended?: boolean;
|
|
7859
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
|
|
7700
7860
|
error: {
|
|
7701
7861
|
/** @format int32 */
|
|
7702
7862
|
code: 404;
|
|
@@ -7711,7 +7871,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7711
7871
|
* @request PATCH:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
|
|
7712
7872
|
* @secure
|
|
7713
7873
|
*/
|
|
7714
|
-
updateIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, data: UpdateIntegrationSiteInstallation,
|
|
7874
|
+
updateIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, data: UpdateIntegrationSiteInstallation, query?: {
|
|
7875
|
+
/**
|
|
7876
|
+
* If true, returns the site object in each items. If false, returns the site ID in each items.
|
|
7877
|
+
* @default false
|
|
7878
|
+
*/
|
|
7879
|
+
extended?: boolean;
|
|
7880
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error>>;
|
|
7715
7881
|
/**
|
|
7716
7882
|
* No description
|
|
7717
7883
|
*
|
|
@@ -7757,7 +7923,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7757
7923
|
/**
|
|
7758
7924
|
* No description
|
|
7759
7925
|
*
|
|
7760
|
-
* @tags organizations
|
|
7926
|
+
* @tags organizations, critical
|
|
7761
7927
|
* @name GetOrganizationById
|
|
7762
7928
|
* @summary Get an organization by its ID
|
|
7763
7929
|
* @request GET:/orgs/{organizationId}
|
|
@@ -7807,6 +7973,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7807
7973
|
logo?: URL | null;
|
|
7808
7974
|
sso?: boolean;
|
|
7809
7975
|
ai?: boolean;
|
|
7976
|
+
inviteLinks?: boolean;
|
|
7810
7977
|
}, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
|
|
7811
7978
|
error: {
|
|
7812
7979
|
/** @format int32 */
|
|
@@ -7814,6 +7981,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7814
7981
|
message: string;
|
|
7815
7982
|
};
|
|
7816
7983
|
}>>;
|
|
7984
|
+
/**
|
|
7985
|
+
* @description Lists all spaces, collections, sites accessible by current user in the current organization. This endpoint is internal for now as the data structure is optimized for the sidebar.
|
|
7986
|
+
*
|
|
7987
|
+
* @tags organizations
|
|
7988
|
+
* @name GetOrganizationAllContent
|
|
7989
|
+
* @summary List all content in an organization
|
|
7990
|
+
* @request GET:/orgs/{organizationId}/content
|
|
7991
|
+
* @secure
|
|
7992
|
+
*/
|
|
7993
|
+
getOrganizationAllContent: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationAllContent, Error>>;
|
|
7817
7994
|
/**
|
|
7818
7995
|
* @description Lists members for the specified organization.
|
|
7819
7996
|
*
|
|
@@ -8214,7 +8391,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8214
8391
|
* @tags organizations
|
|
8215
8392
|
* @name GetOrganizationBillingPortal
|
|
8216
8393
|
* @summary Get the billing portal for an organization
|
|
8217
|
-
* @request GET:/orgs/{organizationId}/billing
|
|
8394
|
+
* @request GET:/orgs/{organizationId}/billing/portal
|
|
8218
8395
|
* @secure
|
|
8219
8396
|
*/
|
|
8220
8397
|
getOrganizationBillingPortal: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<BillingPortal, Error>>;
|
|
@@ -8994,7 +9171,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8994
9171
|
/**
|
|
8995
9172
|
* No description
|
|
8996
9173
|
*
|
|
8997
|
-
* @tags sites
|
|
9174
|
+
* @tags sites, critical
|
|
8998
9175
|
* @name ListSites
|
|
8999
9176
|
* @summary List all the sites created in an organization
|
|
9000
9177
|
* @request GET:/orgs/{organizationId}/sites
|
|
@@ -9226,6 +9403,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9226
9403
|
plan: SiteType;
|
|
9227
9404
|
/** Desired interval for new subscriptions. Defaults to the existing billing interval. */
|
|
9228
9405
|
interval?: BillingInterval;
|
|
9406
|
+
/** Reason that triggered the billing upgrade */
|
|
9407
|
+
reason?: string;
|
|
9229
9408
|
}, query?: {
|
|
9230
9409
|
/** The app screen URL to bring the user back to after a successful checkout. */
|
|
9231
9410
|
successReturnURL?: string;
|
|
@@ -9244,6 +9423,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9244
9423
|
} | {
|
|
9245
9424
|
/** The site plan was successfully updated. */
|
|
9246
9425
|
type: "success";
|
|
9426
|
+
/**
|
|
9427
|
+
* * `upgraded`: Subscription was upgraded to include the site
|
|
9428
|
+
* * `downgraded`: Subscription was downgraded by removing the site
|
|
9429
|
+
* * `no-payment-changes`: No impact on subscription (e.g. trial, unpublished)
|
|
9430
|
+
*/
|
|
9431
|
+
outcome?: "upgraded" | "downgraded" | "no-payment-changes";
|
|
9247
9432
|
}, Error>>;
|
|
9248
9433
|
/**
|
|
9249
9434
|
* No description
|
|
@@ -9437,7 +9622,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9437
9622
|
/**
|
|
9438
9623
|
* No description
|
|
9439
9624
|
*
|
|
9440
|
-
* @tags sites
|
|
9625
|
+
* @tags sites, critical
|
|
9441
9626
|
* @name ListSiteSpaces
|
|
9442
9627
|
* @summary List all the site spaces under a site in an organization
|
|
9443
9628
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
@@ -9835,6 +10020,45 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9835
10020
|
* @secure
|
|
9836
10021
|
*/
|
|
9837
10022
|
trackViewInSiteById: (organizationId: string, siteId: string, data: SiteTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
10023
|
+
/**
|
|
10024
|
+
* No description
|
|
10025
|
+
*
|
|
10026
|
+
* @tags analytics, sites
|
|
10027
|
+
* @name GetAdsInsightsForSiteById
|
|
10028
|
+
* @summary Get analytics insights of ads on a site.
|
|
10029
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/insights/ads
|
|
10030
|
+
* @secure
|
|
10031
|
+
*/
|
|
10032
|
+
getAdsInsightsForSiteById: (organizationId: string, siteId: string, query?: {
|
|
10033
|
+
/** The interval for grouping the results */
|
|
10034
|
+
interval?: InsightsInterval;
|
|
10035
|
+
/**
|
|
10036
|
+
* The earliest timestamp for any data returned
|
|
10037
|
+
* @format date-time
|
|
10038
|
+
*/
|
|
10039
|
+
start?: string;
|
|
10040
|
+
/**
|
|
10041
|
+
* The latest timestamp for any data returned
|
|
10042
|
+
* @format date-time
|
|
10043
|
+
*/
|
|
10044
|
+
end?: string;
|
|
10045
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
10046
|
+
/** A time serie of the ads stats over the provided period */
|
|
10047
|
+
values: {
|
|
10048
|
+
/**
|
|
10049
|
+
* The start date of this interval
|
|
10050
|
+
* @format date-time
|
|
10051
|
+
*/
|
|
10052
|
+
date: string;
|
|
10053
|
+
stats: SiteAdsStats;
|
|
10054
|
+
}[];
|
|
10055
|
+
account: {
|
|
10056
|
+
/** Email address on the Ads platform. */
|
|
10057
|
+
email: string;
|
|
10058
|
+
/** URL to configure payout. */
|
|
10059
|
+
url: string;
|
|
10060
|
+
};
|
|
10061
|
+
}, Error>>;
|
|
9838
10062
|
/**
|
|
9839
10063
|
* No description
|
|
9840
10064
|
*
|
|
@@ -9863,16 +10087,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9863
10087
|
/** Topic of the content */
|
|
9864
10088
|
topic?: SiteAdsTopic;
|
|
9865
10089
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9866
|
-
/**
|
|
9867
|
-
* No description
|
|
9868
|
-
*
|
|
9869
|
-
* @tags sites
|
|
9870
|
-
* @name GetSiteAdsStatsById
|
|
9871
|
-
* @summary Get the stats about Ads on a site.
|
|
9872
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/ads/stats
|
|
9873
|
-
* @secure
|
|
9874
|
-
*/
|
|
9875
|
-
getSiteAdsStatsById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteAdsStats, Error>>;
|
|
9876
10090
|
};
|
|
9877
10091
|
customHostnames: {
|
|
9878
10092
|
/**
|
|
@@ -10007,7 +10221,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10007
10221
|
/**
|
|
10008
10222
|
* No description
|
|
10009
10223
|
*
|
|
10010
|
-
* @tags hive
|
|
10224
|
+
* @tags hive, critical
|
|
10011
10225
|
* @name GenerateHiveAccessToken
|
|
10012
10226
|
* @summary Returns a token to authenticate with Hive.
|
|
10013
10227
|
* @request POST:/internal/hive/token
|