@gitbook/api 0.74.0 → 0.76.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 +607 -375
- package/dist/index.cjs +84 -40
- package/dist/index.js +82 -40
- package/package.json +1 -1
- package/spec/openapi.json +1741 -1018
- package/spec/openapi.yaml +984 -524
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
|
/**
|
|
@@ -2971,33 +3004,35 @@ export interface IntegrationEventLog {
|
|
|
2971
3004
|
export interface IntegrationEventTrace {
|
|
2972
3005
|
logs: IntegrationEventLog[];
|
|
2973
3006
|
}
|
|
2974
|
-
/**
|
|
2975
|
-
export interface
|
|
3007
|
+
/** Base properties of an installation of an integration on a site or space. */
|
|
3008
|
+
export interface IntegrationContentInstallationBase {
|
|
2976
3009
|
/** Unique name identifier of the integration */
|
|
2977
3010
|
integration: string;
|
|
2978
3011
|
/** ID of the integration installation */
|
|
2979
3012
|
installation: string;
|
|
2980
|
-
/** ID of the space the integration is installed on. */
|
|
2981
|
-
space: string;
|
|
2982
3013
|
status: IntegrationInstallationStatus;
|
|
2983
|
-
/** Configuration of the integration for this
|
|
3014
|
+
/** Configuration of the integration for this site */
|
|
2984
3015
|
configuration: object;
|
|
2985
3016
|
/** External IDs assigned by the integration. */
|
|
2986
3017
|
externalIds: IntegrationInstallationExternalIds;
|
|
2987
3018
|
/** URLs associated with the object */
|
|
2988
3019
|
urls: {
|
|
2989
3020
|
/**
|
|
2990
|
-
* URL of the integration's
|
|
3021
|
+
* URL of the integration's installation in the API
|
|
2991
3022
|
* @format uri
|
|
2992
3023
|
*/
|
|
2993
3024
|
location: string;
|
|
2994
3025
|
/**
|
|
2995
|
-
* Public HTTP endpoint for the integration's
|
|
3026
|
+
* Public HTTP endpoint for the integration's installation
|
|
2996
3027
|
* @format uri
|
|
2997
3028
|
*/
|
|
2998
3029
|
publicEndpoint: string;
|
|
2999
3030
|
};
|
|
3000
3031
|
}
|
|
3032
|
+
export type IntegrationSpaceInstallation = IntegrationContentInstallationBase & {
|
|
3033
|
+
/** The space the integration is installed on. Using the string value is deprecated in favor of space.id */
|
|
3034
|
+
space: string | Space;
|
|
3035
|
+
};
|
|
3001
3036
|
export declare enum ContentKitIcon {
|
|
3002
3037
|
Close = "close",
|
|
3003
3038
|
Edit = "edit",
|
|
@@ -3364,33 +3399,116 @@ export interface UpdateIntegrationSpaceInstallation {
|
|
|
3364
3399
|
/** Configuration of the integration at the account level */
|
|
3365
3400
|
configuration?: IntegrationInstallationConfiguration;
|
|
3366
3401
|
}
|
|
3367
|
-
/**
|
|
3368
|
-
export
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3402
|
+
/** The type of the site */
|
|
3403
|
+
export declare enum SiteType {
|
|
3404
|
+
Basic = "basic",
|
|
3405
|
+
Premium = "premium",
|
|
3406
|
+
Ultimate = "ultimate",
|
|
3407
|
+
Sponsored = "sponsored",
|
|
3408
|
+
LegacyBasic = "legacy-basic",
|
|
3409
|
+
LegacyPremium = "legacy-premium"
|
|
3410
|
+
}
|
|
3411
|
+
/**
|
|
3412
|
+
* Title of the site
|
|
3413
|
+
* @minLength 2
|
|
3414
|
+
* @maxLength 128
|
|
3415
|
+
*/
|
|
3416
|
+
export type SiteTitle = string;
|
|
3417
|
+
/**
|
|
3418
|
+
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
3419
|
+
* @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
|
|
3420
|
+
*/
|
|
3421
|
+
export type SiteHostname = string;
|
|
3422
|
+
/**
|
|
3423
|
+
* Basename for the site. For e.g. api
|
|
3424
|
+
* @minLength 1
|
|
3425
|
+
* @maxLength 100
|
|
3426
|
+
*/
|
|
3427
|
+
export type SiteBasename = string;
|
|
3428
|
+
/**
|
|
3429
|
+
* The visibility setting of the site determines the audience of the site.
|
|
3430
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3431
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3432
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3433
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3434
|
+
*/
|
|
3435
|
+
export declare enum SiteVisibility {
|
|
3436
|
+
Public = "public",
|
|
3437
|
+
Unlisted = "unlisted",
|
|
3438
|
+
ShareLink = "share-link",
|
|
3439
|
+
VisitorAuth = "visitor-auth"
|
|
3440
|
+
}
|
|
3441
|
+
/** Topic of the content */
|
|
3442
|
+
export declare enum SiteAdsTopic {
|
|
3443
|
+
Webdev = "webdev",
|
|
3444
|
+
Crypto = "crypto"
|
|
3445
|
+
}
|
|
3446
|
+
export type SiteAds = {
|
|
3447
|
+
status: 'pending';
|
|
3448
|
+
/** True if the user can submit the site for review. */
|
|
3449
|
+
submittable: boolean;
|
|
3450
|
+
} | {
|
|
3451
|
+
status: 'in-review';
|
|
3452
|
+
/** Topic of the content */
|
|
3453
|
+
topic: SiteAdsTopic;
|
|
3454
|
+
} | {
|
|
3455
|
+
status: 'rejected';
|
|
3456
|
+
} | {
|
|
3457
|
+
status: 'live' | 'disabled';
|
|
3458
|
+
/** Topic of the content */
|
|
3459
|
+
topic: SiteAdsTopic;
|
|
3460
|
+
/** The ad network zone ID */
|
|
3461
|
+
zoneId: string;
|
|
3462
|
+
};
|
|
3463
|
+
export interface Site {
|
|
3464
|
+
object: 'site';
|
|
3465
|
+
/** Unique identifier of the site */
|
|
3466
|
+
id: string;
|
|
3467
|
+
/** The type of the site */
|
|
3468
|
+
type: SiteType;
|
|
3469
|
+
/** Title of the site */
|
|
3470
|
+
title: SiteTitle;
|
|
3471
|
+
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
3472
|
+
hostname?: SiteHostname;
|
|
3473
|
+
/** Basename for the site. For e.g. api */
|
|
3474
|
+
basename?: SiteBasename;
|
|
3475
|
+
/**
|
|
3476
|
+
* The visibility setting of the site determines the audience of the site.
|
|
3477
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3478
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3479
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3480
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3481
|
+
*/
|
|
3482
|
+
visibility: SiteVisibility;
|
|
3483
|
+
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
3484
|
+
published: boolean;
|
|
3485
|
+
siteSpaces: number;
|
|
3486
|
+
/** @format date-time */
|
|
3487
|
+
createdAt: string;
|
|
3488
|
+
ads?: SiteAds;
|
|
3380
3489
|
/** URLs associated with the object */
|
|
3381
3490
|
urls: {
|
|
3382
3491
|
/**
|
|
3383
|
-
* URL of the
|
|
3492
|
+
* URL of the site in the API
|
|
3384
3493
|
* @format uri
|
|
3385
3494
|
*/
|
|
3386
3495
|
location: string;
|
|
3387
3496
|
/**
|
|
3388
|
-
*
|
|
3497
|
+
* URL of the site in the application
|
|
3389
3498
|
* @format uri
|
|
3390
3499
|
*/
|
|
3391
|
-
|
|
3500
|
+
app: string;
|
|
3501
|
+
/**
|
|
3502
|
+
* URL of the published version of the site. Only defined when site is published.
|
|
3503
|
+
* @format uri
|
|
3504
|
+
*/
|
|
3505
|
+
published?: string;
|
|
3392
3506
|
};
|
|
3393
3507
|
}
|
|
3508
|
+
export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
|
|
3509
|
+
/** The site the integration is installed on. Using the string value is deprecated in favor of site.id */
|
|
3510
|
+
site: string | Site;
|
|
3511
|
+
};
|
|
3394
3512
|
export interface UpdateIntegrationSiteInstallation {
|
|
3395
3513
|
/** External IDs assigned by the integration. */
|
|
3396
3514
|
externalIds?: IntegrationInstallationExternalIds;
|
|
@@ -3404,6 +3522,91 @@ export interface CreateOrganization {
|
|
|
3404
3522
|
type?: OrganizationType;
|
|
3405
3523
|
useCase?: OrganizationUseCase;
|
|
3406
3524
|
}
|
|
3525
|
+
/**
|
|
3526
|
+
* Title of the site section
|
|
3527
|
+
* @minLength 2
|
|
3528
|
+
* @maxLength 128
|
|
3529
|
+
*/
|
|
3530
|
+
export type SiteSectionTitle = string;
|
|
3531
|
+
/**
|
|
3532
|
+
* Path to the section on the site
|
|
3533
|
+
* @minLength 1
|
|
3534
|
+
* @maxLength 100
|
|
3535
|
+
*/
|
|
3536
|
+
export type SiteSectionPath = string;
|
|
3537
|
+
/**
|
|
3538
|
+
* Path to the space on the site
|
|
3539
|
+
* @minLength 1
|
|
3540
|
+
* @maxLength 100
|
|
3541
|
+
*/
|
|
3542
|
+
export type SiteSpacePath = string;
|
|
3543
|
+
export interface SiteSpace {
|
|
3544
|
+
/** The object type, which is always "site-space" */
|
|
3545
|
+
object: 'site-space';
|
|
3546
|
+
/** Unique identifier of the site-space */
|
|
3547
|
+
id: string;
|
|
3548
|
+
/** Path to the space on the site */
|
|
3549
|
+
path: SiteSpacePath;
|
|
3550
|
+
/** ID of the section the space belongs to in the site */
|
|
3551
|
+
section?: string;
|
|
3552
|
+
space: Space;
|
|
3553
|
+
title: string;
|
|
3554
|
+
/** Whether this is the default space for the site */
|
|
3555
|
+
default?: boolean;
|
|
3556
|
+
/** Whether the space has advanced customization feature enabled */
|
|
3557
|
+
hasAdvancedCustomizationFeature?: boolean;
|
|
3558
|
+
/** URLs associated with the object */
|
|
3559
|
+
urls: {
|
|
3560
|
+
/**
|
|
3561
|
+
* URL of the published version of the site-space. Only defined when site is published.
|
|
3562
|
+
* @format uri
|
|
3563
|
+
*/
|
|
3564
|
+
published?: string;
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
export interface SiteSection {
|
|
3568
|
+
/** The object type, which is always "site-section" */
|
|
3569
|
+
object: 'site-section';
|
|
3570
|
+
/** Unique identifier of the site section */
|
|
3571
|
+
id: string;
|
|
3572
|
+
/** Title of the site section */
|
|
3573
|
+
title: SiteSectionTitle;
|
|
3574
|
+
/** Whether this is the default section for the site */
|
|
3575
|
+
default?: boolean;
|
|
3576
|
+
/** Path to the section on the site */
|
|
3577
|
+
path: SiteSectionPath;
|
|
3578
|
+
siteSpaces: SiteSpace[];
|
|
3579
|
+
/** URLs associated with the object */
|
|
3580
|
+
urls: {
|
|
3581
|
+
/**
|
|
3582
|
+
* URL of the published version of the site section. Only defined when site is published.
|
|
3583
|
+
* @format uri
|
|
3584
|
+
*/
|
|
3585
|
+
published?: string;
|
|
3586
|
+
};
|
|
3587
|
+
}
|
|
3588
|
+
export type SiteStructure = {
|
|
3589
|
+
type: 'sections';
|
|
3590
|
+
structure: SiteSection[];
|
|
3591
|
+
} | {
|
|
3592
|
+
type: 'siteSpaces';
|
|
3593
|
+
structure: SiteSpace[];
|
|
3594
|
+
};
|
|
3595
|
+
export interface OrganizationAllSite {
|
|
3596
|
+
site: Site;
|
|
3597
|
+
structure: SiteStructure;
|
|
3598
|
+
}
|
|
3599
|
+
export interface OrganizationAllCollection {
|
|
3600
|
+
collection: Collection;
|
|
3601
|
+
content: (OrganizationAllCollection | OrganizationAllSpace)[];
|
|
3602
|
+
}
|
|
3603
|
+
export interface OrganizationAllSpace {
|
|
3604
|
+
space: Space;
|
|
3605
|
+
}
|
|
3606
|
+
export interface OrganizationAllContent {
|
|
3607
|
+
sites: OrganizationAllSite[];
|
|
3608
|
+
spaces: (OrganizationAllCollection | OrganizationAllSpace)[];
|
|
3609
|
+
}
|
|
3407
3610
|
export interface OrganizationMember {
|
|
3408
3611
|
/** Type of Object, always equals to "member" */
|
|
3409
3612
|
object: 'member';
|
|
@@ -3546,25 +3749,6 @@ export interface CreateInviteToCollection {
|
|
|
3546
3749
|
export type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
|
|
3547
3750
|
/** An invite link created in an organization */
|
|
3548
3751
|
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
3752
|
/** Interval for a billing subscription */
|
|
3569
3753
|
export declare enum BillingInterval {
|
|
3570
3754
|
Monthly = "monthly",
|
|
@@ -3618,6 +3802,10 @@ export type BillingUpgrade = {
|
|
|
3618
3802
|
} | {
|
|
3619
3803
|
result: 'interval_changed';
|
|
3620
3804
|
};
|
|
3805
|
+
export interface BillingPortal {
|
|
3806
|
+
/** URL to the billing portal for an organization */
|
|
3807
|
+
url: string;
|
|
3808
|
+
}
|
|
3621
3809
|
export interface CreateSpace {
|
|
3622
3810
|
/** @maxLength 50 */
|
|
3623
3811
|
title?: string;
|
|
@@ -3816,287 +4004,88 @@ export interface Capture {
|
|
|
3816
4004
|
location: string;
|
|
3817
4005
|
/**
|
|
3818
4006
|
* 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
|
|
3972
|
-
* @format uri
|
|
3973
|
-
*/
|
|
3974
|
-
location: string;
|
|
3975
|
-
/**
|
|
3976
|
-
* URL of the site in the application
|
|
3977
|
-
* @format uri
|
|
3978
|
-
*/
|
|
3979
|
-
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
|
-
};
|
|
3986
|
-
}
|
|
3987
|
-
/** 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
|
-
export type BillingOperationPreviewResponse = {
|
|
3989
|
-
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
3990
|
-
type: 'go-ahead';
|
|
3991
|
-
} | {
|
|
3992
|
-
/** By going ahead with this operation, the user will be starting a trial in GitBook. */
|
|
3993
|
-
type: 'trial-available';
|
|
3994
|
-
} | {
|
|
3995
|
-
/** User must checkout to complete the operation. */
|
|
3996
|
-
type: 'checkout';
|
|
3997
|
-
invoice?: BillingInvoicePreview;
|
|
3998
|
-
} | {
|
|
3999
|
-
/** User cannot proceed with the operation due to lack of permissions. */
|
|
4000
|
-
type: 'no-permissions';
|
|
4001
|
-
} | {
|
|
4002
|
-
/** User needs to go through the legacy upgrade flow. */
|
|
4003
|
-
type: 'legacy-upgrade';
|
|
4004
|
-
/** The plan the user must upgrade to. */
|
|
4005
|
-
plan: BillingProduct;
|
|
4006
|
-
invoice?: BillingInvoicePreview;
|
|
4007
|
-
};
|
|
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
|
-
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
4079
|
-
/** Type of Object, always equals to "publishing-auth" */
|
|
4080
|
-
object: 'publishing-auth';
|
|
4081
|
-
/** Private key used to sign JWT tokens. */
|
|
4082
|
-
privateKey: string;
|
|
4007
|
+
* @format uri
|
|
4008
|
+
*/
|
|
4009
|
+
app: string;
|
|
4010
|
+
};
|
|
4011
|
+
}
|
|
4012
|
+
export interface BaseCaptureEvent {
|
|
4013
|
+
/** The type of event */
|
|
4014
|
+
type: string;
|
|
4083
4015
|
/**
|
|
4084
|
-
*
|
|
4085
|
-
* @format
|
|
4016
|
+
* When the event happened
|
|
4017
|
+
* @format date-time
|
|
4086
4018
|
*/
|
|
4087
|
-
|
|
4019
|
+
timestamp: string;
|
|
4088
4020
|
/**
|
|
4089
|
-
*
|
|
4090
|
-
*
|
|
4021
|
+
* Optionally, provide the source of the event. GitBook may use this to improve the generated content.
|
|
4022
|
+
* @maxLength 50
|
|
4091
4023
|
*/
|
|
4092
|
-
|
|
4024
|
+
source?: string;
|
|
4025
|
+
/** Optionally, provide the actor of the event, in the context of multiple people contributing to the capture. */
|
|
4026
|
+
actor?: {
|
|
4027
|
+
name: string;
|
|
4028
|
+
};
|
|
4029
|
+
}
|
|
4030
|
+
export type CaptureTerminalCommandEvent = BaseCaptureEvent & {
|
|
4031
|
+
type: 'terminal.command';
|
|
4032
|
+
command: string;
|
|
4033
|
+
stdout: string;
|
|
4093
4034
|
};
|
|
4094
|
-
export type
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4035
|
+
export type CaptureSpeechEvent = BaseCaptureEvent & {
|
|
4036
|
+
type: 'speech';
|
|
4037
|
+
} & ({
|
|
4038
|
+
/** WAV audio file, encoded as base64 */
|
|
4039
|
+
audio: string;
|
|
4040
|
+
} | {
|
|
4041
|
+
/** Transcript of the speech */
|
|
4042
|
+
transcript: string;
|
|
4043
|
+
});
|
|
4044
|
+
export type CaptureThreadMessageEvent = BaseCaptureEvent & {
|
|
4045
|
+
type: 'thread.message';
|
|
4046
|
+
isFirst?: boolean;
|
|
4047
|
+
text: string;
|
|
4048
|
+
};
|
|
4049
|
+
export type CaptureFileAddedEvent = BaseCaptureEvent & {
|
|
4050
|
+
type: 'file.added';
|
|
4051
|
+
filename: string;
|
|
4052
|
+
fileSnapshot: string;
|
|
4053
|
+
};
|
|
4054
|
+
export type CaptureFileChangedEvent = BaseCaptureEvent & {
|
|
4055
|
+
type: 'file.changed';
|
|
4056
|
+
filename: string;
|
|
4057
|
+
fileDiff: string;
|
|
4058
|
+
};
|
|
4059
|
+
export type CaptureFileRemovedEvent = BaseCaptureEvent & {
|
|
4060
|
+
type: 'file.removed';
|
|
4061
|
+
filename: string;
|
|
4062
|
+
fileSnapshot: string;
|
|
4063
|
+
};
|
|
4064
|
+
export type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
|
|
4065
|
+
export interface UpdateSnippetSchema {
|
|
4066
|
+
/** A new title for the snippet. */
|
|
4067
|
+
title?: string;
|
|
4068
|
+
}
|
|
4069
|
+
/** 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. */
|
|
4070
|
+
export type BillingOperationPreviewResponse = {
|
|
4071
|
+
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
4072
|
+
type: 'go-ahead';
|
|
4073
|
+
} | {
|
|
4074
|
+
/** By going ahead with this operation, the user will be starting a trial in GitBook. */
|
|
4075
|
+
type: 'trial-available';
|
|
4076
|
+
} | {
|
|
4077
|
+
/** User must checkout to complete the operation. */
|
|
4078
|
+
type: 'checkout';
|
|
4079
|
+
invoice?: BillingInvoicePreview;
|
|
4080
|
+
} | {
|
|
4081
|
+
/** User cannot proceed with the operation due to lack of permissions. */
|
|
4082
|
+
type: 'no-permissions';
|
|
4083
|
+
} | {
|
|
4084
|
+
/** User needs to go through the legacy upgrade flow. */
|
|
4085
|
+
type: 'legacy-upgrade';
|
|
4086
|
+
/** The plan the user must upgrade to. */
|
|
4087
|
+
plan: BillingProduct;
|
|
4088
|
+
invoice?: BillingInvoicePreview;
|
|
4100
4089
|
};
|
|
4101
4090
|
export declare enum CustomizationIconsStyle {
|
|
4102
4091
|
Regular = "regular",
|
|
@@ -4186,6 +4175,39 @@ export interface SiteIntegrationScript {
|
|
|
4186
4175
|
/** If true, the script will potentially load use cookies and visitors should be aware. */
|
|
4187
4176
|
cookies: boolean;
|
|
4188
4177
|
}
|
|
4178
|
+
export interface PublishedContentSite {
|
|
4179
|
+
object: 'published-content-site';
|
|
4180
|
+
site: Site;
|
|
4181
|
+
structure: SiteStructure;
|
|
4182
|
+
customizations: {
|
|
4183
|
+
site: SiteCustomizationSettings;
|
|
4184
|
+
siteSpaces: Record<string, SiteCustomizationSettings>;
|
|
4185
|
+
};
|
|
4186
|
+
scripts: SiteIntegrationScript[];
|
|
4187
|
+
}
|
|
4188
|
+
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
4189
|
+
/** Type of Object, always equals to "publishing-auth" */
|
|
4190
|
+
object: 'publishing-auth';
|
|
4191
|
+
/** Private key used to sign JWT tokens. */
|
|
4192
|
+
privateKey: string;
|
|
4193
|
+
/**
|
|
4194
|
+
* URL to redirect to when the visitor auth secret is invalid.
|
|
4195
|
+
* @format uri
|
|
4196
|
+
*/
|
|
4197
|
+
fallbackURL?: string;
|
|
4198
|
+
/**
|
|
4199
|
+
* Name of the Visitor Authentication integration installed on the site (if any).
|
|
4200
|
+
* It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
|
|
4201
|
+
*/
|
|
4202
|
+
integration?: string;
|
|
4203
|
+
};
|
|
4204
|
+
export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
4205
|
+
/**
|
|
4206
|
+
* A fallback URL that will be used if authentication fails.
|
|
4207
|
+
* @format uri
|
|
4208
|
+
*/
|
|
4209
|
+
fallbackURL?: string;
|
|
4210
|
+
};
|
|
4189
4211
|
export interface SiteSectionPointer {
|
|
4190
4212
|
type: 'site-section';
|
|
4191
4213
|
/** Unique identifier for the site section */
|
|
@@ -4219,13 +4241,9 @@ export interface UserSitePermission {
|
|
|
4219
4241
|
/** The content or organization that enforced this permission level. */
|
|
4220
4242
|
origin: SpacePointer | OrganizationPointer;
|
|
4221
4243
|
}
|
|
4222
|
-
export
|
|
4244
|
+
export type SiteTrackPageView = {
|
|
4223
4245
|
/** Unique identifier of the page. */
|
|
4224
4246
|
pageId?: string;
|
|
4225
|
-
/** Unique identifier of the space. */
|
|
4226
|
-
spaceId: string;
|
|
4227
|
-
/** The site-space that was viewed */
|
|
4228
|
-
siteSpaceId?: string;
|
|
4229
4247
|
/** Analytics info on the GitBook's content visitor. */
|
|
4230
4248
|
visitor: {
|
|
4231
4249
|
/** GitBook's unique identifier of the visitor. */
|
|
@@ -4252,6 +4270,27 @@ export interface SiteTrackPageView {
|
|
|
4252
4270
|
url: string;
|
|
4253
4271
|
/** The URL of referrer that linked to the page. */
|
|
4254
4272
|
referrer: string;
|
|
4273
|
+
} & ({
|
|
4274
|
+
/** Unique identifier of the space. */
|
|
4275
|
+
spaceId: string;
|
|
4276
|
+
} | {
|
|
4277
|
+
/** The site-space that was viewed */
|
|
4278
|
+
siteSpaceId: string;
|
|
4279
|
+
});
|
|
4280
|
+
/**
|
|
4281
|
+
* The interval for grouping the results
|
|
4282
|
+
* @default "week"
|
|
4283
|
+
*/
|
|
4284
|
+
export declare enum InsightsInterval {
|
|
4285
|
+
Day = "day",
|
|
4286
|
+
Week = "week",
|
|
4287
|
+
Month = "month",
|
|
4288
|
+
Year = "year"
|
|
4289
|
+
}
|
|
4290
|
+
export interface SiteAdsStats {
|
|
4291
|
+
impressions: number;
|
|
4292
|
+
clicks: number;
|
|
4293
|
+
revenue: string;
|
|
4255
4294
|
}
|
|
4256
4295
|
/** Page entry in the content insights. */
|
|
4257
4296
|
export interface InsightsContentPage {
|
|
@@ -4266,17 +4305,6 @@ export interface InsightsContentPage {
|
|
|
4266
4305
|
/** Icon of the page, if one has been set. */
|
|
4267
4306
|
icon?: Icon;
|
|
4268
4307
|
}
|
|
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
4308
|
export declare enum CustomHostnameDnsStatus {
|
|
4281
4309
|
DnsPassed = "dns_passed",
|
|
4282
4310
|
DnsWrongCname = "dns_wrong_cname",
|
|
@@ -4612,12 +4640,35 @@ export declare enum RevisionSemanticChangeType {
|
|
|
4612
4640
|
FileDeleted = "file_deleted",
|
|
4613
4641
|
CustomFieldsEdited = "custom_fields_edited"
|
|
4614
4642
|
}
|
|
4643
|
+
/**
|
|
4644
|
+
* Core stages of a Git Sync process. This is not exhaustive, but should cover
|
|
4645
|
+
* the important ones.
|
|
4646
|
+
* - repo_fetch: Includes fetching the latest repository contents from remote provider.
|
|
4647
|
+
* - config_check: Includes checking if the YAML config is valid, etc.
|
|
4648
|
+
* - content_process: Includes processing of pages & files to be imported/exported.
|
|
4649
|
+
* - finalize: Includes finalizing the sync process like creating the commit on git, or
|
|
4650
|
+
* creating a new revision.
|
|
4651
|
+
*/
|
|
4652
|
+
export declare enum GitSyncOperationStage {
|
|
4653
|
+
RepoFetch = "repo_fetch",
|
|
4654
|
+
ConfigCheck = "config_check",
|
|
4655
|
+
ContentProcess = "content_process",
|
|
4656
|
+
Finalize = "finalize"
|
|
4657
|
+
}
|
|
4615
4658
|
export interface OrganizationTransferResponse {
|
|
4616
4659
|
/** The unique id of the collection created in the target organization containing the content of the source organization. */
|
|
4617
4660
|
collection: string;
|
|
4618
4661
|
/** The new hostname if the source organization needed to change hostname. */
|
|
4619
4662
|
newSourceHostname?: string;
|
|
4620
4663
|
}
|
|
4664
|
+
export type IntegrationEnvironmentSpaceInstallation = IntegrationContentInstallationBase & {
|
|
4665
|
+
/** The space the integration is installed on. */
|
|
4666
|
+
space: string;
|
|
4667
|
+
};
|
|
4668
|
+
export type IntegrationEnvironmentSiteInstallation = IntegrationContentInstallationBase & {
|
|
4669
|
+
/** The site the integration is installed on. */
|
|
4670
|
+
site: string;
|
|
4671
|
+
};
|
|
4621
4672
|
/** Runtime environment provided during the execution of integration's code. */
|
|
4622
4673
|
export interface IntegrationEnvironment {
|
|
4623
4674
|
/**
|
|
@@ -4628,10 +4679,8 @@ export interface IntegrationEnvironment {
|
|
|
4628
4679
|
integration: Integration;
|
|
4629
4680
|
/** Installation of an integration on an account */
|
|
4630
4681
|
installation?: IntegrationInstallation;
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
/** Installation of an integration at a site level */
|
|
4634
|
-
siteInstallation?: IntegrationSiteInstallation;
|
|
4682
|
+
spaceInstallation?: IntegrationEnvironmentSpaceInstallation;
|
|
4683
|
+
siteInstallation?: IntegrationEnvironmentSiteInstallation;
|
|
4635
4684
|
/** Secrets stored on the integration and passed at runtime. */
|
|
4636
4685
|
secrets: IntegrationSecrets;
|
|
4637
4686
|
/**
|
|
@@ -4717,6 +4766,11 @@ export interface SpaceInfoChannel {
|
|
|
4717
4766
|
channel: 'space';
|
|
4718
4767
|
space: string;
|
|
4719
4768
|
}
|
|
4769
|
+
/** Channel notified when the main content of a space is changed. */
|
|
4770
|
+
export interface SpaceContentChannel {
|
|
4771
|
+
channel: 'space-content';
|
|
4772
|
+
space: string;
|
|
4773
|
+
}
|
|
4720
4774
|
export interface SpaceGitInfoChannel {
|
|
4721
4775
|
channel: 'space-git-info';
|
|
4722
4776
|
space: string;
|
|
@@ -4733,14 +4787,10 @@ export interface SpaceCustomFieldsChannel {
|
|
|
4733
4787
|
channel: 'space-customfields';
|
|
4734
4788
|
space: string;
|
|
4735
4789
|
}
|
|
4736
|
-
export interface
|
|
4737
|
-
channel: 'space-
|
|
4790
|
+
export interface SpaceContentRefsChannel {
|
|
4791
|
+
channel: 'space-content-refs';
|
|
4738
4792
|
space: string;
|
|
4739
4793
|
}
|
|
4740
|
-
export interface BackofficeUserInfoChannel {
|
|
4741
|
-
channel: 'backoffice-user-info';
|
|
4742
|
-
user: string;
|
|
4743
|
-
}
|
|
4744
4794
|
export interface SpaceIntegrationsChannel {
|
|
4745
4795
|
channel: 'space-integrations';
|
|
4746
4796
|
space: string;
|
|
@@ -4775,8 +4825,8 @@ export interface ChangeRequestReviewsChannel {
|
|
|
4775
4825
|
space: string;
|
|
4776
4826
|
changeRequest: string;
|
|
4777
4827
|
}
|
|
4778
|
-
export interface
|
|
4779
|
-
channel: 'space-change-request-
|
|
4828
|
+
export interface ChangeRequestContentRefsChannel {
|
|
4829
|
+
channel: 'space-change-request-content-refs';
|
|
4780
4830
|
space: string;
|
|
4781
4831
|
changeRequest: string;
|
|
4782
4832
|
}
|
|
@@ -4860,28 +4910,29 @@ export interface OrganizationExperimentalFeaturesChannel {
|
|
|
4860
4910
|
channel: 'organization-experimental-features';
|
|
4861
4911
|
organization: string;
|
|
4862
4912
|
}
|
|
4863
|
-
export interface
|
|
4913
|
+
export interface SpaceCommentsChannel {
|
|
4864
4914
|
channel: 'space-comments';
|
|
4865
4915
|
space: string;
|
|
4866
|
-
|
|
4916
|
+
}
|
|
4917
|
+
export interface ChangeRequestCommentsChannel {
|
|
4918
|
+
channel: 'space-change-request-comments';
|
|
4919
|
+
space: string;
|
|
4920
|
+
changeRequest: string;
|
|
4867
4921
|
}
|
|
4868
4922
|
export interface CommentInfoChannel {
|
|
4869
4923
|
channel: 'space-comment';
|
|
4870
4924
|
space: string;
|
|
4871
|
-
changeRequest?: string;
|
|
4872
4925
|
comment: string;
|
|
4873
4926
|
}
|
|
4874
4927
|
export interface CommentReplyInfoChannel {
|
|
4875
4928
|
channel: 'space-comment-reply';
|
|
4876
4929
|
space: string;
|
|
4877
|
-
changeRequest?: string;
|
|
4878
4930
|
comment: string;
|
|
4879
4931
|
commentReply: string;
|
|
4880
4932
|
}
|
|
4881
4933
|
export interface CommentRepliesChannel {
|
|
4882
4934
|
channel: 'space-comment-replies';
|
|
4883
4935
|
space: string;
|
|
4884
|
-
changeRequest?: string;
|
|
4885
4936
|
comment: string;
|
|
4886
4937
|
}
|
|
4887
4938
|
export interface IntegrationChannel {
|
|
@@ -4915,6 +4966,10 @@ export interface IntegrationSiteInstallationsChannel {
|
|
|
4915
4966
|
integration: string;
|
|
4916
4967
|
installation: string;
|
|
4917
4968
|
}
|
|
4969
|
+
export interface PublishedContentSiteChannel {
|
|
4970
|
+
channel: 'published-content-site';
|
|
4971
|
+
site: string;
|
|
4972
|
+
}
|
|
4918
4973
|
export interface SiteChannel {
|
|
4919
4974
|
channel: 'site';
|
|
4920
4975
|
site: string;
|
|
@@ -4965,8 +5020,65 @@ export interface CustomHostnameChannel {
|
|
|
4965
5020
|
channel: 'custom-hostname';
|
|
4966
5021
|
customHostname: string;
|
|
4967
5022
|
}
|
|
4968
|
-
|
|
4969
|
-
|
|
5023
|
+
export interface GitSyncSettingsChannel {
|
|
5024
|
+
channel: 'space-gitsync-settings';
|
|
5025
|
+
space: string;
|
|
5026
|
+
}
|
|
5027
|
+
export interface GitSyncOperationChannel {
|
|
5028
|
+
channel: 'space-gitsync-operation';
|
|
5029
|
+
space: string;
|
|
5030
|
+
}
|
|
5031
|
+
/** Channel to subscribe to for realtime updates. */
|
|
5032
|
+
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 | PublishedContentSiteChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel;
|
|
5033
|
+
export interface GitSyncOperationChannelData {
|
|
5034
|
+
channel: 'space-gitsync-operation';
|
|
5035
|
+
/** Data passed on the channel messages for GitSync running in a space. */
|
|
5036
|
+
data: {
|
|
5037
|
+
direction: 'export' | 'import';
|
|
5038
|
+
/**
|
|
5039
|
+
* Core stages of a Git Sync process. This is not exhaustive, but should cover
|
|
5040
|
+
* the important ones.
|
|
5041
|
+
* - repo_fetch: Includes fetching the latest repository contents from remote provider.
|
|
5042
|
+
* - config_check: Includes checking if the YAML config is valid, etc.
|
|
5043
|
+
* - content_process: Includes processing of pages & files to be imported/exported.
|
|
5044
|
+
* - finalize: Includes finalizing the sync process like creating the commit on git, or
|
|
5045
|
+
* creating a new revision.
|
|
5046
|
+
*/
|
|
5047
|
+
stage: GitSyncOperationStage;
|
|
5048
|
+
dispatchedTasks: number;
|
|
5049
|
+
completedTasks: number;
|
|
5050
|
+
startedAt: number;
|
|
5051
|
+
updatedAt: number;
|
|
5052
|
+
} | null;
|
|
5053
|
+
}
|
|
5054
|
+
export interface SpaceContentRefsChannelData {
|
|
5055
|
+
channel: 'space-content-refs';
|
|
5056
|
+
/** Data passed on the channel messages for content refs indexation. */
|
|
5057
|
+
data: {
|
|
5058
|
+
/** ID of the latest indexed revision */
|
|
5059
|
+
revision: string;
|
|
5060
|
+
updatedAt: number;
|
|
5061
|
+
};
|
|
5062
|
+
}
|
|
5063
|
+
export interface ChangeRequestContentRefsChannelData {
|
|
5064
|
+
channel: 'space-change-request-content-refs';
|
|
5065
|
+
/** Data passed on the channel messages for content refs indexation. */
|
|
5066
|
+
data: {
|
|
5067
|
+
/** ID of the latest indexed revision */
|
|
5068
|
+
revision: string;
|
|
5069
|
+
updatedAt: number;
|
|
5070
|
+
};
|
|
5071
|
+
}
|
|
5072
|
+
export interface APIChannelMutationData {
|
|
5073
|
+
channel: '*';
|
|
5074
|
+
/** Data passed on the channels associated to API endpoints. */
|
|
5075
|
+
data: {
|
|
5076
|
+
/** ID of the API execution that triggered the mutation. */
|
|
5077
|
+
executionId: string;
|
|
5078
|
+
};
|
|
5079
|
+
}
|
|
5080
|
+
/** Data passed through a realtime channel */
|
|
5081
|
+
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | APIChannelMutationData;
|
|
4970
5082
|
/** The status of ads on the site */
|
|
4971
5083
|
export declare enum SiteAdsStatus {
|
|
4972
5084
|
Pending = "pending",
|
|
@@ -5180,7 +5292,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5180
5292
|
/**
|
|
5181
5293
|
* @description Provides publicly available information about someone with a GitBook account.
|
|
5182
5294
|
*
|
|
5183
|
-
* @tags users
|
|
5295
|
+
* @tags users, critical
|
|
5184
5296
|
* @name GetUserById
|
|
5185
5297
|
* @summary Get a user by its ID
|
|
5186
5298
|
* @request GET:/users/{userId}
|
|
@@ -5192,7 +5304,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5192
5304
|
/**
|
|
5193
5305
|
* No description
|
|
5194
5306
|
*
|
|
5195
|
-
* @tags spaces
|
|
5307
|
+
* @tags spaces, critical
|
|
5196
5308
|
* @name GetSpaceById
|
|
5197
5309
|
* @summary Get the details about a space.
|
|
5198
5310
|
* @request GET:/spaces/{spaceId}
|
|
@@ -5863,10 +5975,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5863
5975
|
*/
|
|
5864
5976
|
limit?: number;
|
|
5865
5977
|
/**
|
|
5866
|
-
* If defined, only change requests matching this status will be returned
|
|
5978
|
+
* If defined, only change requests matching this status will be returned.
|
|
5867
5979
|
* @default "open"
|
|
5868
5980
|
*/
|
|
5869
5981
|
status?: ChangeRequestStatus;
|
|
5982
|
+
/** If defined, only change requests with contributions from this user will be returned. */
|
|
5983
|
+
contributor?: string;
|
|
5870
5984
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5871
5985
|
items: ChangeRequest[];
|
|
5872
5986
|
}, Error>>;
|
|
@@ -7429,6 +7543,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7429
7543
|
limit?: number;
|
|
7430
7544
|
/** External Id to filter by */
|
|
7431
7545
|
externalId?: string;
|
|
7546
|
+
/**
|
|
7547
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7548
|
+
* @default false
|
|
7549
|
+
*/
|
|
7550
|
+
extended?: boolean;
|
|
7432
7551
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7433
7552
|
items: IntegrationSpaceInstallation[];
|
|
7434
7553
|
}, Error>>;
|
|
@@ -7592,6 +7711,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7592
7711
|
* @max 1000
|
|
7593
7712
|
*/
|
|
7594
7713
|
limit?: number;
|
|
7714
|
+
/**
|
|
7715
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7716
|
+
* @default false
|
|
7717
|
+
*/
|
|
7718
|
+
extended?: boolean;
|
|
7595
7719
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7596
7720
|
items: IntegrationSpaceInstallation[];
|
|
7597
7721
|
}, Error>>;
|
|
@@ -7606,6 +7730,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7606
7730
|
installIntegrationOnSpace: (integrationName: string, installationId: string, data: {
|
|
7607
7731
|
/** ID of the space to install the integration on */
|
|
7608
7732
|
space: string;
|
|
7733
|
+
}, query?: {
|
|
7734
|
+
/**
|
|
7735
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7736
|
+
* @default false
|
|
7737
|
+
*/
|
|
7738
|
+
extended?: boolean;
|
|
7609
7739
|
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
|
|
7610
7740
|
error: {
|
|
7611
7741
|
/** @format int32 */
|
|
@@ -7622,7 +7752,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7622
7752
|
* @request GET:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
7623
7753
|
* @secure
|
|
7624
7754
|
*/
|
|
7625
|
-
getIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string,
|
|
7755
|
+
getIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, query?: {
|
|
7756
|
+
/**
|
|
7757
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7758
|
+
* @default false
|
|
7759
|
+
*/
|
|
7760
|
+
extended?: boolean;
|
|
7761
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
|
|
7626
7762
|
error: {
|
|
7627
7763
|
/** @format int32 */
|
|
7628
7764
|
code: 404;
|
|
@@ -7637,7 +7773,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7637
7773
|
* @request PATCH:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
7638
7774
|
* @secure
|
|
7639
7775
|
*/
|
|
7640
|
-
updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data: UpdateIntegrationSpaceInstallation,
|
|
7776
|
+
updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data: UpdateIntegrationSpaceInstallation, query?: {
|
|
7777
|
+
/**
|
|
7778
|
+
* If true, returns the space object in each items. If false, returns the space ID in each items.
|
|
7779
|
+
* @default false
|
|
7780
|
+
*/
|
|
7781
|
+
extended?: boolean;
|
|
7782
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error>>;
|
|
7641
7783
|
/**
|
|
7642
7784
|
* No description
|
|
7643
7785
|
*
|
|
@@ -7665,6 +7807,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7665
7807
|
* @max 1000
|
|
7666
7808
|
*/
|
|
7667
7809
|
limit?: number;
|
|
7810
|
+
/**
|
|
7811
|
+
* If true, returns the site object in each items. If false, returns the site ID in each items.
|
|
7812
|
+
* @default false
|
|
7813
|
+
*/
|
|
7814
|
+
extended?: boolean;
|
|
7668
7815
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7669
7816
|
items: IntegrationSiteInstallation[];
|
|
7670
7817
|
}, Error>>;
|
|
@@ -7680,6 +7827,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7680
7827
|
installIntegrationOnSite: (integrationName: string, installationId: string, data: {
|
|
7681
7828
|
/** ID of the site to install the integration on */
|
|
7682
7829
|
siteId: string;
|
|
7830
|
+
}, query?: {
|
|
7831
|
+
/**
|
|
7832
|
+
* If true, returns the site object in each items. If false, returns the site ID in each items.
|
|
7833
|
+
* @default false
|
|
7834
|
+
*/
|
|
7835
|
+
extended?: boolean;
|
|
7683
7836
|
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
|
|
7684
7837
|
error: {
|
|
7685
7838
|
/** @format int32 */
|
|
@@ -7696,7 +7849,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7696
7849
|
* @request GET:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
|
|
7697
7850
|
* @secure
|
|
7698
7851
|
*/
|
|
7699
|
-
getIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string,
|
|
7852
|
+
getIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, query?: {
|
|
7853
|
+
/**
|
|
7854
|
+
* If true, returns the site object in each items. If false, returns the site ID in each items.
|
|
7855
|
+
* @default false
|
|
7856
|
+
*/
|
|
7857
|
+
extended?: boolean;
|
|
7858
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
|
|
7700
7859
|
error: {
|
|
7701
7860
|
/** @format int32 */
|
|
7702
7861
|
code: 404;
|
|
@@ -7711,7 +7870,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7711
7870
|
* @request PATCH:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
|
|
7712
7871
|
* @secure
|
|
7713
7872
|
*/
|
|
7714
|
-
updateIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, data: UpdateIntegrationSiteInstallation,
|
|
7873
|
+
updateIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, data: UpdateIntegrationSiteInstallation, query?: {
|
|
7874
|
+
/**
|
|
7875
|
+
* If true, returns the site object in each items. If false, returns the site ID in each items.
|
|
7876
|
+
* @default false
|
|
7877
|
+
*/
|
|
7878
|
+
extended?: boolean;
|
|
7879
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error>>;
|
|
7715
7880
|
/**
|
|
7716
7881
|
* No description
|
|
7717
7882
|
*
|
|
@@ -7757,7 +7922,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7757
7922
|
/**
|
|
7758
7923
|
* No description
|
|
7759
7924
|
*
|
|
7760
|
-
* @tags organizations
|
|
7925
|
+
* @tags organizations, critical
|
|
7761
7926
|
* @name GetOrganizationById
|
|
7762
7927
|
* @summary Get an organization by its ID
|
|
7763
7928
|
* @request GET:/orgs/{organizationId}
|
|
@@ -7807,6 +7972,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7807
7972
|
logo?: URL | null;
|
|
7808
7973
|
sso?: boolean;
|
|
7809
7974
|
ai?: boolean;
|
|
7975
|
+
inviteLinks?: boolean;
|
|
7810
7976
|
}, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
|
|
7811
7977
|
error: {
|
|
7812
7978
|
/** @format int32 */
|
|
@@ -7814,6 +7980,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7814
7980
|
message: string;
|
|
7815
7981
|
};
|
|
7816
7982
|
}>>;
|
|
7983
|
+
/**
|
|
7984
|
+
* @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.
|
|
7985
|
+
*
|
|
7986
|
+
* @tags organizations
|
|
7987
|
+
* @name GetOrganizationAllContent
|
|
7988
|
+
* @summary List all content in an organization
|
|
7989
|
+
* @request GET:/orgs/{organizationId}/content
|
|
7990
|
+
* @secure
|
|
7991
|
+
*/
|
|
7992
|
+
getOrganizationAllContent: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationAllContent, Error>>;
|
|
7817
7993
|
/**
|
|
7818
7994
|
* @description Lists members for the specified organization.
|
|
7819
7995
|
*
|
|
@@ -8214,7 +8390,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8214
8390
|
* @tags organizations
|
|
8215
8391
|
* @name GetOrganizationBillingPortal
|
|
8216
8392
|
* @summary Get the billing portal for an organization
|
|
8217
|
-
* @request GET:/orgs/{organizationId}/billing
|
|
8393
|
+
* @request GET:/orgs/{organizationId}/billing/portal
|
|
8218
8394
|
* @secure
|
|
8219
8395
|
*/
|
|
8220
8396
|
getOrganizationBillingPortal: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<BillingPortal, Error>>;
|
|
@@ -8994,7 +9170,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8994
9170
|
/**
|
|
8995
9171
|
* No description
|
|
8996
9172
|
*
|
|
8997
|
-
* @tags sites
|
|
9173
|
+
* @tags sites, critical
|
|
8998
9174
|
* @name ListSites
|
|
8999
9175
|
* @summary List all the sites created in an organization
|
|
9000
9176
|
* @request GET:/orgs/{organizationId}/sites
|
|
@@ -9111,6 +9287,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9111
9287
|
* @secure
|
|
9112
9288
|
*/
|
|
9113
9289
|
deleteSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9290
|
+
/**
|
|
9291
|
+
* No description
|
|
9292
|
+
*
|
|
9293
|
+
* @tags sites
|
|
9294
|
+
* @name GetPublishedContentSite
|
|
9295
|
+
* @summary Get the complete profile of a site in an organization to provide the published experience. It includes site, customization, structure, integration scripts etc.
|
|
9296
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/published
|
|
9297
|
+
* @secure
|
|
9298
|
+
*/
|
|
9299
|
+
getPublishedContentSite: (organizationId: string, siteId: string, query?: {
|
|
9300
|
+
/** For sites published via share-links, the share key is useful to resolve published URLs. */
|
|
9301
|
+
shareKey?: string;
|
|
9302
|
+
}, params?: RequestParams) => Promise<HttpResponse<PublishedContentSite, Error | {
|
|
9303
|
+
error: {
|
|
9304
|
+
/** @format int32 */
|
|
9305
|
+
code: 404;
|
|
9306
|
+
message: string;
|
|
9307
|
+
};
|
|
9308
|
+
}>>;
|
|
9114
9309
|
/**
|
|
9115
9310
|
* No description
|
|
9116
9311
|
*
|
|
@@ -9226,6 +9421,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9226
9421
|
plan: SiteType;
|
|
9227
9422
|
/** Desired interval for new subscriptions. Defaults to the existing billing interval. */
|
|
9228
9423
|
interval?: BillingInterval;
|
|
9424
|
+
/** Reason that triggered the billing upgrade */
|
|
9425
|
+
reason?: string;
|
|
9229
9426
|
}, query?: {
|
|
9230
9427
|
/** The app screen URL to bring the user back to after a successful checkout. */
|
|
9231
9428
|
successReturnURL?: string;
|
|
@@ -9244,6 +9441,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9244
9441
|
} | {
|
|
9245
9442
|
/** The site plan was successfully updated. */
|
|
9246
9443
|
type: "success";
|
|
9444
|
+
/**
|
|
9445
|
+
* * `upgraded`: Subscription was upgraded to include the site
|
|
9446
|
+
* * `downgraded`: Subscription was downgraded by removing the site
|
|
9447
|
+
* * `no-payment-changes`: No impact on subscription (e.g. trial, unpublished)
|
|
9448
|
+
*/
|
|
9449
|
+
outcome?: "upgraded" | "downgraded" | "no-payment-changes";
|
|
9247
9450
|
}, Error>>;
|
|
9248
9451
|
/**
|
|
9249
9452
|
* No description
|
|
@@ -9437,7 +9640,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9437
9640
|
/**
|
|
9438
9641
|
* No description
|
|
9439
9642
|
*
|
|
9440
|
-
* @tags sites
|
|
9643
|
+
* @tags sites, critical
|
|
9441
9644
|
* @name ListSiteSpaces
|
|
9442
9645
|
* @summary List all the site spaces under a site in an organization
|
|
9443
9646
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
@@ -9835,6 +10038,45 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9835
10038
|
* @secure
|
|
9836
10039
|
*/
|
|
9837
10040
|
trackViewInSiteById: (organizationId: string, siteId: string, data: SiteTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
10041
|
+
/**
|
|
10042
|
+
* No description
|
|
10043
|
+
*
|
|
10044
|
+
* @tags analytics, sites
|
|
10045
|
+
* @name GetAdsInsightsForSiteById
|
|
10046
|
+
* @summary Get analytics insights of ads on a site.
|
|
10047
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/insights/ads
|
|
10048
|
+
* @secure
|
|
10049
|
+
*/
|
|
10050
|
+
getAdsInsightsForSiteById: (organizationId: string, siteId: string, query?: {
|
|
10051
|
+
/** The interval for grouping the results */
|
|
10052
|
+
interval?: InsightsInterval;
|
|
10053
|
+
/**
|
|
10054
|
+
* The earliest timestamp for any data returned
|
|
10055
|
+
* @format date-time
|
|
10056
|
+
*/
|
|
10057
|
+
start?: string;
|
|
10058
|
+
/**
|
|
10059
|
+
* The latest timestamp for any data returned
|
|
10060
|
+
* @format date-time
|
|
10061
|
+
*/
|
|
10062
|
+
end?: string;
|
|
10063
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
10064
|
+
/** A time serie of the ads stats over the provided period */
|
|
10065
|
+
values: {
|
|
10066
|
+
/**
|
|
10067
|
+
* The start date of this interval
|
|
10068
|
+
* @format date-time
|
|
10069
|
+
*/
|
|
10070
|
+
date: string;
|
|
10071
|
+
stats: SiteAdsStats;
|
|
10072
|
+
}[];
|
|
10073
|
+
account: {
|
|
10074
|
+
/** Email address on the Ads platform. */
|
|
10075
|
+
email: string;
|
|
10076
|
+
/** URL to configure payout. */
|
|
10077
|
+
url: string;
|
|
10078
|
+
};
|
|
10079
|
+
}, Error>>;
|
|
9838
10080
|
/**
|
|
9839
10081
|
* No description
|
|
9840
10082
|
*
|
|
@@ -9863,16 +10105,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9863
10105
|
/** Topic of the content */
|
|
9864
10106
|
topic?: SiteAdsTopic;
|
|
9865
10107
|
}, 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
10108
|
};
|
|
9877
10109
|
customHostnames: {
|
|
9878
10110
|
/**
|
|
@@ -10007,7 +10239,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10007
10239
|
/**
|
|
10008
10240
|
* No description
|
|
10009
10241
|
*
|
|
10010
|
-
* @tags hive
|
|
10242
|
+
* @tags hive, critical
|
|
10011
10243
|
* @name GenerateHiveAccessToken
|
|
10012
10244
|
* @summary Returns a token to authenticate with Hive.
|
|
10013
10245
|
* @request POST:/internal/hive/token
|