@gitbook/api 0.110.0 → 0.112.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 +221 -170
- package/dist/index.cjs +29 -20
- package/dist/index.js +29 -20
- package/package.json +1 -1
- package/spec/openapi.json +1438 -1276
- package/spec/openapi.yaml +711 -616
package/dist/client.d.ts
CHANGED
|
@@ -537,6 +537,8 @@ export interface ContentRefSpace {
|
|
|
537
537
|
export interface ContentRefReusableContent {
|
|
538
538
|
kind: 'reusable-content';
|
|
539
539
|
reusableContent: string;
|
|
540
|
+
/** The space in which the reusable content is defined. If undefined, the reusable content is assumed to be in the same space as the content reference. */
|
|
541
|
+
space?: string;
|
|
540
542
|
}
|
|
541
543
|
export interface ContentRefOpenAPI {
|
|
542
544
|
kind: 'openapi';
|
|
@@ -981,7 +983,9 @@ export interface DocumentBlockTabs {
|
|
|
981
983
|
key?: string;
|
|
982
984
|
nodes: DocumentBlockTabsItem[];
|
|
983
985
|
isVoid?: false;
|
|
984
|
-
data?:
|
|
986
|
+
data?: {
|
|
987
|
+
fullWidth?: boolean;
|
|
988
|
+
};
|
|
985
989
|
}
|
|
986
990
|
/** Pointer to an operation in the OpenAPI spec. */
|
|
987
991
|
export interface OpenAPIOperationPointer {
|
|
@@ -1042,6 +1046,26 @@ export interface DocumentBlockOpenAPISchemas {
|
|
|
1042
1046
|
id: string;
|
|
1043
1047
|
};
|
|
1044
1048
|
}
|
|
1049
|
+
/** Pointer to a webhook in the OpenAPI spec. */
|
|
1050
|
+
export interface OpenAPIWebhookPointer {
|
|
1051
|
+
/** Name of the webhook in the OpenAPI spec. */
|
|
1052
|
+
name: string;
|
|
1053
|
+
/** HTTP method of the webhook in the OpenAPI spec. */
|
|
1054
|
+
method: string;
|
|
1055
|
+
}
|
|
1056
|
+
export interface DocumentBlockOpenAPIWebhook {
|
|
1057
|
+
object: 'block';
|
|
1058
|
+
type: 'openapi-webhook';
|
|
1059
|
+
key?: string;
|
|
1060
|
+
data: OpenAPIWebhookPointer & {
|
|
1061
|
+
ref: ContentRefOpenAPI;
|
|
1062
|
+
};
|
|
1063
|
+
isVoid: true;
|
|
1064
|
+
meta?: {
|
|
1065
|
+
/** Unique ID to be used in an URL for the block. */
|
|
1066
|
+
id: string;
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1045
1069
|
export interface DocumentBlockStepperStep {
|
|
1046
1070
|
object: 'block';
|
|
1047
1071
|
type: 'stepper-step';
|
|
@@ -1060,7 +1084,7 @@ export interface DocumentBlockStepper {
|
|
|
1060
1084
|
isVoid?: false;
|
|
1061
1085
|
data?: object;
|
|
1062
1086
|
}
|
|
1063
|
-
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
|
|
1087
|
+
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
|
|
1064
1088
|
export interface DocumentInlineMention {
|
|
1065
1089
|
object: 'inline';
|
|
1066
1090
|
type: 'mention';
|
|
@@ -1084,7 +1108,7 @@ export interface DocumentInlineButton {
|
|
|
1084
1108
|
};
|
|
1085
1109
|
isVoid: true;
|
|
1086
1110
|
}
|
|
1087
|
-
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
|
|
1111
|
+
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
|
|
1088
1112
|
export interface JSONDocument {
|
|
1089
1113
|
object: 'document';
|
|
1090
1114
|
data: {
|
|
@@ -1507,8 +1531,7 @@ export declare enum ImportContentSource {
|
|
|
1507
1531
|
DropboxPaper = "dropbox-paper",
|
|
1508
1532
|
Notion = "notion",
|
|
1509
1533
|
Quip = "quip",
|
|
1510
|
-
GoogleDocs = "google-docs"
|
|
1511
|
-
OpenApi = "open-api"
|
|
1534
|
+
GoogleDocs = "google-docs"
|
|
1512
1535
|
}
|
|
1513
1536
|
export interface ImportContent {
|
|
1514
1537
|
/**
|
|
@@ -3103,6 +3126,168 @@ export type IntegrationSpaceInstallation = IntegrationContentInstallationBase &
|
|
|
3103
3126
|
/** The space the integration is installed on. Using the string value is deprecated in favor of space.id */
|
|
3104
3127
|
space: string | Space;
|
|
3105
3128
|
};
|
|
3129
|
+
/** The type of the site */
|
|
3130
|
+
export declare enum SiteType {
|
|
3131
|
+
Basic = "basic",
|
|
3132
|
+
Premium = "premium",
|
|
3133
|
+
Ultimate = "ultimate",
|
|
3134
|
+
Sponsored = "sponsored",
|
|
3135
|
+
LegacyBasic = "legacy-basic",
|
|
3136
|
+
LegacyPremium = "legacy-premium"
|
|
3137
|
+
}
|
|
3138
|
+
/**
|
|
3139
|
+
* Title of the site
|
|
3140
|
+
* @minLength 2
|
|
3141
|
+
* @maxLength 128
|
|
3142
|
+
*/
|
|
3143
|
+
export type SiteTitle = string;
|
|
3144
|
+
/**
|
|
3145
|
+
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
3146
|
+
* @maxLength 512
|
|
3147
|
+
* @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
|
|
3148
|
+
*/
|
|
3149
|
+
export type SiteHostname = string;
|
|
3150
|
+
/**
|
|
3151
|
+
* Basename for the site. For e.g. api
|
|
3152
|
+
* @minLength 1
|
|
3153
|
+
* @maxLength 100
|
|
3154
|
+
*/
|
|
3155
|
+
export type SiteBasename = string;
|
|
3156
|
+
/**
|
|
3157
|
+
* Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.
|
|
3158
|
+
* @maxLength 512
|
|
3159
|
+
* @pattern ^([\w-]+\.)*[\w-]+\.[a-zA-Z]{2,}(\/[\w-]+)+$
|
|
3160
|
+
*/
|
|
3161
|
+
export type SiteProxyOrigin = string;
|
|
3162
|
+
export interface SiteProxy {
|
|
3163
|
+
/** Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc. */
|
|
3164
|
+
origin: SiteProxyOrigin;
|
|
3165
|
+
/** The target URL to which the requests at the origin URL should be proxied to. */
|
|
3166
|
+
target: string;
|
|
3167
|
+
}
|
|
3168
|
+
/**
|
|
3169
|
+
* The visibility setting of the site determines the audience of the site.
|
|
3170
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3171
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3172
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3173
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3174
|
+
*/
|
|
3175
|
+
export declare enum SiteVisibility {
|
|
3176
|
+
Public = "public",
|
|
3177
|
+
Unlisted = "unlisted",
|
|
3178
|
+
ShareLink = "share-link",
|
|
3179
|
+
VisitorAuth = "visitor-auth"
|
|
3180
|
+
}
|
|
3181
|
+
export interface SiteAdaptiveContent {
|
|
3182
|
+
/** Whether adaptive content should be enabled on the site. */
|
|
3183
|
+
enabled: boolean;
|
|
3184
|
+
}
|
|
3185
|
+
/** Topic of the content */
|
|
3186
|
+
export declare enum SiteAdsTopic {
|
|
3187
|
+
Webdev = "webdev",
|
|
3188
|
+
Crypto = "crypto"
|
|
3189
|
+
}
|
|
3190
|
+
export type SiteAds = {
|
|
3191
|
+
status: 'pending';
|
|
3192
|
+
/** True if the user can submit the site for review. */
|
|
3193
|
+
submittable: boolean;
|
|
3194
|
+
} | {
|
|
3195
|
+
status: 'in-review';
|
|
3196
|
+
/** Topic of the content */
|
|
3197
|
+
topic: SiteAdsTopic;
|
|
3198
|
+
} | {
|
|
3199
|
+
status: 'rejected';
|
|
3200
|
+
/** Reason for the rejection */
|
|
3201
|
+
reason?: string;
|
|
3202
|
+
} | {
|
|
3203
|
+
status: 'live' | 'disabled';
|
|
3204
|
+
/** Topic of the content */
|
|
3205
|
+
topic: SiteAdsTopic;
|
|
3206
|
+
/** The ad network zone ID */
|
|
3207
|
+
zoneId: string;
|
|
3208
|
+
};
|
|
3209
|
+
/** A list of all premium customizations. */
|
|
3210
|
+
export declare enum SiteCustomizationFeature {
|
|
3211
|
+
HeaderLogo = "header-logo",
|
|
3212
|
+
ThemePreset = "theme-preset",
|
|
3213
|
+
PremiumFonts = "premium-fonts",
|
|
3214
|
+
CustomIcons = "custom-icons",
|
|
3215
|
+
FooterLogo = "footer-logo",
|
|
3216
|
+
FooterLinks = "footer-links",
|
|
3217
|
+
FooterCopyright = "footer-copyright",
|
|
3218
|
+
SemanticColors = "semantic-colors"
|
|
3219
|
+
}
|
|
3220
|
+
/** A site feature and the plan it is available on. */
|
|
3221
|
+
export type SiteFeature = {
|
|
3222
|
+
/** The feature identifier, matching the feature table keys in the pricing definition */
|
|
3223
|
+
id: 'sites-sections' | 'sites-visitor-authentication' | 'sites-adaptive-content' | 'sites-redirects' | 'sites-custom-domain' | 'sites-ai-search' | 'sites-pdf-export' | 'sites-page-feedback' | 'sites-unlisted-visibility' | 'sites-share-links' | 'sites-custom-fonts';
|
|
3224
|
+
/** The type of the site */
|
|
3225
|
+
plan: SiteType;
|
|
3226
|
+
/** A frozen feature is still enabled but cannot be changed or modified. */
|
|
3227
|
+
frozen: boolean;
|
|
3228
|
+
} | {
|
|
3229
|
+
/** The feature identifier, always set to `sites-advanced-customization` */
|
|
3230
|
+
id: 'sites-advanced-customization';
|
|
3231
|
+
/** The type of the site */
|
|
3232
|
+
plan: SiteType;
|
|
3233
|
+
/** A frozen feature is still enabled but cannot be changed or modified. */
|
|
3234
|
+
frozen: boolean;
|
|
3235
|
+
/** A list of the actual advanced customizations used */
|
|
3236
|
+
customizations: SiteCustomizationFeature[];
|
|
3237
|
+
};
|
|
3238
|
+
export interface Site {
|
|
3239
|
+
object: 'site';
|
|
3240
|
+
/** Unique identifier of the site */
|
|
3241
|
+
id: string;
|
|
3242
|
+
/** The type of the site */
|
|
3243
|
+
type: SiteType;
|
|
3244
|
+
/** Title of the site */
|
|
3245
|
+
title: SiteTitle;
|
|
3246
|
+
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
3247
|
+
hostname?: SiteHostname;
|
|
3248
|
+
/** Basename for the site. For e.g. api */
|
|
3249
|
+
basename?: SiteBasename;
|
|
3250
|
+
proxy?: SiteProxy;
|
|
3251
|
+
/**
|
|
3252
|
+
* The visibility setting of the site determines the audience of the site.
|
|
3253
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3254
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3255
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3256
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3257
|
+
*/
|
|
3258
|
+
visibility: SiteVisibility;
|
|
3259
|
+
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
3260
|
+
published: boolean;
|
|
3261
|
+
siteSpaces: number;
|
|
3262
|
+
/** @format date-time */
|
|
3263
|
+
createdAt: string;
|
|
3264
|
+
adaptiveContent?: SiteAdaptiveContent;
|
|
3265
|
+
ads?: SiteAds;
|
|
3266
|
+
/** A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified. */
|
|
3267
|
+
features: SiteFeature[];
|
|
3268
|
+
/** URLs associated with the object */
|
|
3269
|
+
urls: {
|
|
3270
|
+
/**
|
|
3271
|
+
* URL of the site in the API
|
|
3272
|
+
* @format uri
|
|
3273
|
+
*/
|
|
3274
|
+
location: string;
|
|
3275
|
+
/**
|
|
3276
|
+
* URL of the site in the application
|
|
3277
|
+
* @format uri
|
|
3278
|
+
*/
|
|
3279
|
+
app: string;
|
|
3280
|
+
/**
|
|
3281
|
+
* URL of the published version of the site. Only defined when site is published.
|
|
3282
|
+
* @format uri
|
|
3283
|
+
*/
|
|
3284
|
+
published?: string;
|
|
3285
|
+
};
|
|
3286
|
+
}
|
|
3287
|
+
export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
|
|
3288
|
+
/** The site the integration is installed on. Using the string value is deprecated in favor of site.id */
|
|
3289
|
+
site: string | Site;
|
|
3290
|
+
};
|
|
3106
3291
|
export declare enum ContentKitIcon {
|
|
3107
3292
|
Close = "close",
|
|
3108
3293
|
Edit = "edit",
|
|
@@ -3118,7 +3303,9 @@ export declare enum ContentKitIcon {
|
|
|
3118
3303
|
Link = "link",
|
|
3119
3304
|
LinkExternal = "link-external",
|
|
3120
3305
|
Eye = "eye",
|
|
3121
|
-
Lock = "lock"
|
|
3306
|
+
Lock = "lock",
|
|
3307
|
+
Check = "check",
|
|
3308
|
+
CheckCircle = "check-circle"
|
|
3122
3309
|
}
|
|
3123
3310
|
/** A confirm object that defines an optional confirmation dialog after the input is clicked. */
|
|
3124
3311
|
export interface ContentKitConfirm {
|
|
@@ -3473,168 +3660,6 @@ export interface UpdateIntegrationSpaceInstallation {
|
|
|
3473
3660
|
/** Configuration of the integration at the account level */
|
|
3474
3661
|
configuration?: IntegrationInstallationConfiguration;
|
|
3475
3662
|
}
|
|
3476
|
-
/** The type of the site */
|
|
3477
|
-
export declare enum SiteType {
|
|
3478
|
-
Basic = "basic",
|
|
3479
|
-
Premium = "premium",
|
|
3480
|
-
Ultimate = "ultimate",
|
|
3481
|
-
Sponsored = "sponsored",
|
|
3482
|
-
LegacyBasic = "legacy-basic",
|
|
3483
|
-
LegacyPremium = "legacy-premium"
|
|
3484
|
-
}
|
|
3485
|
-
/**
|
|
3486
|
-
* Title of the site
|
|
3487
|
-
* @minLength 2
|
|
3488
|
-
* @maxLength 128
|
|
3489
|
-
*/
|
|
3490
|
-
export type SiteTitle = string;
|
|
3491
|
-
/**
|
|
3492
|
-
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
3493
|
-
* @maxLength 512
|
|
3494
|
-
* @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
|
|
3495
|
-
*/
|
|
3496
|
-
export type SiteHostname = string;
|
|
3497
|
-
/**
|
|
3498
|
-
* Basename for the site. For e.g. api
|
|
3499
|
-
* @minLength 1
|
|
3500
|
-
* @maxLength 100
|
|
3501
|
-
*/
|
|
3502
|
-
export type SiteBasename = string;
|
|
3503
|
-
/**
|
|
3504
|
-
* Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.
|
|
3505
|
-
* @maxLength 512
|
|
3506
|
-
* @pattern ^([\w-]+\.)*[\w-]+\.[a-zA-Z]{2,}(\/[\w-]+)+$
|
|
3507
|
-
*/
|
|
3508
|
-
export type SiteProxyOrigin = string;
|
|
3509
|
-
export interface SiteProxy {
|
|
3510
|
-
/** Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc. */
|
|
3511
|
-
origin: SiteProxyOrigin;
|
|
3512
|
-
/** The target URL to which the requests at the origin URL should be proxied to. */
|
|
3513
|
-
target: string;
|
|
3514
|
-
}
|
|
3515
|
-
/**
|
|
3516
|
-
* The visibility setting of the site determines the audience of the site.
|
|
3517
|
-
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3518
|
-
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3519
|
-
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3520
|
-
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3521
|
-
*/
|
|
3522
|
-
export declare enum SiteVisibility {
|
|
3523
|
-
Public = "public",
|
|
3524
|
-
Unlisted = "unlisted",
|
|
3525
|
-
ShareLink = "share-link",
|
|
3526
|
-
VisitorAuth = "visitor-auth"
|
|
3527
|
-
}
|
|
3528
|
-
export interface SiteAdaptiveContent {
|
|
3529
|
-
/** Whether adaptive content should be enabled on the site. */
|
|
3530
|
-
enabled: boolean;
|
|
3531
|
-
}
|
|
3532
|
-
/** Topic of the content */
|
|
3533
|
-
export declare enum SiteAdsTopic {
|
|
3534
|
-
Webdev = "webdev",
|
|
3535
|
-
Crypto = "crypto"
|
|
3536
|
-
}
|
|
3537
|
-
export type SiteAds = {
|
|
3538
|
-
status: 'pending';
|
|
3539
|
-
/** True if the user can submit the site for review. */
|
|
3540
|
-
submittable: boolean;
|
|
3541
|
-
} | {
|
|
3542
|
-
status: 'in-review';
|
|
3543
|
-
/** Topic of the content */
|
|
3544
|
-
topic: SiteAdsTopic;
|
|
3545
|
-
} | {
|
|
3546
|
-
status: 'rejected';
|
|
3547
|
-
/** Reason for the rejection */
|
|
3548
|
-
reason?: string;
|
|
3549
|
-
} | {
|
|
3550
|
-
status: 'live' | 'disabled';
|
|
3551
|
-
/** Topic of the content */
|
|
3552
|
-
topic: SiteAdsTopic;
|
|
3553
|
-
/** The ad network zone ID */
|
|
3554
|
-
zoneId: string;
|
|
3555
|
-
};
|
|
3556
|
-
/** A list of all premium customizations. */
|
|
3557
|
-
export declare enum SiteCustomizationFeature {
|
|
3558
|
-
HeaderLogo = "header-logo",
|
|
3559
|
-
ThemePreset = "theme-preset",
|
|
3560
|
-
PremiumFonts = "premium-fonts",
|
|
3561
|
-
CustomIcons = "custom-icons",
|
|
3562
|
-
FooterLogo = "footer-logo",
|
|
3563
|
-
FooterLinks = "footer-links",
|
|
3564
|
-
FooterCopyright = "footer-copyright",
|
|
3565
|
-
SemanticColors = "semantic-colors"
|
|
3566
|
-
}
|
|
3567
|
-
/** A site feature and the plan it is available on. */
|
|
3568
|
-
export type SiteFeature = {
|
|
3569
|
-
/** The feature identifier, matching the feature table keys in the pricing definition */
|
|
3570
|
-
id: 'sites-sections' | 'sites-visitor-authentication' | 'sites-adaptive-content' | 'sites-redirects' | 'sites-custom-domain' | 'sites-ai-search' | 'sites-pdf-export' | 'sites-page-feedback' | 'sites-unlisted-visibility' | 'sites-share-links' | 'sites-custom-fonts';
|
|
3571
|
-
/** The type of the site */
|
|
3572
|
-
plan: SiteType;
|
|
3573
|
-
/** A frozen feature is still enabled but cannot be changed or modified. */
|
|
3574
|
-
frozen: boolean;
|
|
3575
|
-
} | {
|
|
3576
|
-
/** The feature identifier, always set to `sites-advanced-customization` */
|
|
3577
|
-
id: 'sites-advanced-customization';
|
|
3578
|
-
/** The type of the site */
|
|
3579
|
-
plan: SiteType;
|
|
3580
|
-
/** A frozen feature is still enabled but cannot be changed or modified. */
|
|
3581
|
-
frozen: boolean;
|
|
3582
|
-
/** A list of the actual advanced customizations used */
|
|
3583
|
-
customizations: SiteCustomizationFeature[];
|
|
3584
|
-
};
|
|
3585
|
-
export interface Site {
|
|
3586
|
-
object: 'site';
|
|
3587
|
-
/** Unique identifier of the site */
|
|
3588
|
-
id: string;
|
|
3589
|
-
/** The type of the site */
|
|
3590
|
-
type: SiteType;
|
|
3591
|
-
/** Title of the site */
|
|
3592
|
-
title: SiteTitle;
|
|
3593
|
-
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
3594
|
-
hostname?: SiteHostname;
|
|
3595
|
-
/** Basename for the site. For e.g. api */
|
|
3596
|
-
basename?: SiteBasename;
|
|
3597
|
-
proxy?: SiteProxy;
|
|
3598
|
-
/**
|
|
3599
|
-
* The visibility setting of the site determines the audience of the site.
|
|
3600
|
-
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
3601
|
-
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
3602
|
-
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
3603
|
-
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
3604
|
-
*/
|
|
3605
|
-
visibility: SiteVisibility;
|
|
3606
|
-
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
3607
|
-
published: boolean;
|
|
3608
|
-
siteSpaces: number;
|
|
3609
|
-
/** @format date-time */
|
|
3610
|
-
createdAt: string;
|
|
3611
|
-
adaptiveContent?: SiteAdaptiveContent;
|
|
3612
|
-
ads?: SiteAds;
|
|
3613
|
-
/** A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified. */
|
|
3614
|
-
features: SiteFeature[];
|
|
3615
|
-
/** URLs associated with the object */
|
|
3616
|
-
urls: {
|
|
3617
|
-
/**
|
|
3618
|
-
* URL of the site in the API
|
|
3619
|
-
* @format uri
|
|
3620
|
-
*/
|
|
3621
|
-
location: string;
|
|
3622
|
-
/**
|
|
3623
|
-
* URL of the site in the application
|
|
3624
|
-
* @format uri
|
|
3625
|
-
*/
|
|
3626
|
-
app: string;
|
|
3627
|
-
/**
|
|
3628
|
-
* URL of the published version of the site. Only defined when site is published.
|
|
3629
|
-
* @format uri
|
|
3630
|
-
*/
|
|
3631
|
-
published?: string;
|
|
3632
|
-
};
|
|
3633
|
-
}
|
|
3634
|
-
export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
|
|
3635
|
-
/** The site the integration is installed on. Using the string value is deprecated in favor of site.id */
|
|
3636
|
-
site: string | Site;
|
|
3637
|
-
};
|
|
3638
3663
|
export interface UpdateIntegrationSiteInstallation {
|
|
3639
3664
|
/** External IDs assigned by the integration. */
|
|
3640
3665
|
externalIds?: IntegrationInstallationExternalIds;
|
|
@@ -4234,8 +4259,6 @@ export interface OpenAPISpecVersion {
|
|
|
4234
4259
|
urls: {
|
|
4235
4260
|
/** URL of the OpenAPI specification version in the API */
|
|
4236
4261
|
location: URL;
|
|
4237
|
-
/** URL of the OpenAPI specification version in the application */
|
|
4238
|
-
app: URL;
|
|
4239
4262
|
};
|
|
4240
4263
|
}
|
|
4241
4264
|
/** Content of the specification available through filesystem or public URL. */
|
|
@@ -8879,6 +8902,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8879
8902
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8880
8903
|
items: IntegrationSpaceInstallation[];
|
|
8881
8904
|
}, any>>;
|
|
8905
|
+
/**
|
|
8906
|
+
* No description
|
|
8907
|
+
*
|
|
8908
|
+
* @tags integrations
|
|
8909
|
+
* @name ListIntegrationSiteInstallations
|
|
8910
|
+
* @summary List all integration site installations
|
|
8911
|
+
* @request GET:/integrations/{integrationName}/sites
|
|
8912
|
+
* @secure
|
|
8913
|
+
*/
|
|
8914
|
+
listIntegrationSiteInstallations: (integrationName: string, query?: {
|
|
8915
|
+
/** Identifier of the page results to fetch. */
|
|
8916
|
+
page?: string;
|
|
8917
|
+
/**
|
|
8918
|
+
* The number of results per page
|
|
8919
|
+
* @min 0
|
|
8920
|
+
* @max 1000
|
|
8921
|
+
*/
|
|
8922
|
+
limit?: number;
|
|
8923
|
+
/** External ID to filter by */
|
|
8924
|
+
externalId?: string;
|
|
8925
|
+
/**
|
|
8926
|
+
* If true, returns the site object in each items. If false, returns the site ID in each items.
|
|
8927
|
+
* @default false
|
|
8928
|
+
*/
|
|
8929
|
+
extended?: boolean;
|
|
8930
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8931
|
+
items: IntegrationSiteInstallation[];
|
|
8932
|
+
}, any>>;
|
|
8882
8933
|
/**
|
|
8883
8934
|
* No description
|
|
8884
8935
|
*
|
package/dist/index.cjs
CHANGED
|
@@ -269,7 +269,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
269
269
|
|
|
270
270
|
// package.json
|
|
271
271
|
var name = "@gitbook/api";
|
|
272
|
-
var version = "0.
|
|
272
|
+
var version = "0.112.0";
|
|
273
273
|
|
|
274
274
|
// src/client.ts
|
|
275
275
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -461,7 +461,6 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
|
461
461
|
ImportContentSource2["Notion"] = "notion";
|
|
462
462
|
ImportContentSource2["Quip"] = "quip";
|
|
463
463
|
ImportContentSource2["GoogleDocs"] = "google-docs";
|
|
464
|
-
ImportContentSource2["OpenApi"] = "open-api";
|
|
465
464
|
return ImportContentSource2;
|
|
466
465
|
})(ImportContentSource || {});
|
|
467
466
|
var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
|
|
@@ -657,24 +656,6 @@ var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstalla
|
|
|
657
656
|
IntegrationInstallationSiteSelection2["Selected"] = "selected";
|
|
658
657
|
return IntegrationInstallationSiteSelection2;
|
|
659
658
|
})(IntegrationInstallationSiteSelection || {});
|
|
660
|
-
var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
661
|
-
ContentKitIcon2["Close"] = "close";
|
|
662
|
-
ContentKitIcon2["Edit"] = "edit";
|
|
663
|
-
ContentKitIcon2["Github"] = "github";
|
|
664
|
-
ContentKitIcon2["Gitlab"] = "gitlab";
|
|
665
|
-
ContentKitIcon2["Maximize"] = "maximize";
|
|
666
|
-
ContentKitIcon2["Email"] = "email";
|
|
667
|
-
ContentKitIcon2["Settings"] = "settings";
|
|
668
|
-
ContentKitIcon2["Search"] = "search";
|
|
669
|
-
ContentKitIcon2["Delete"] = "delete";
|
|
670
|
-
ContentKitIcon2["Star"] = "star";
|
|
671
|
-
ContentKitIcon2["Warning"] = "warning";
|
|
672
|
-
ContentKitIcon2["Link"] = "link";
|
|
673
|
-
ContentKitIcon2["LinkExternal"] = "link-external";
|
|
674
|
-
ContentKitIcon2["Eye"] = "eye";
|
|
675
|
-
ContentKitIcon2["Lock"] = "lock";
|
|
676
|
-
return ContentKitIcon2;
|
|
677
|
-
})(ContentKitIcon || {});
|
|
678
659
|
var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
679
660
|
SiteType2["Basic"] = "basic";
|
|
680
661
|
SiteType2["Premium"] = "premium";
|
|
@@ -707,6 +688,26 @@ var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
|
|
|
707
688
|
SiteCustomizationFeature2["SemanticColors"] = "semantic-colors";
|
|
708
689
|
return SiteCustomizationFeature2;
|
|
709
690
|
})(SiteCustomizationFeature || {});
|
|
691
|
+
var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
692
|
+
ContentKitIcon2["Close"] = "close";
|
|
693
|
+
ContentKitIcon2["Edit"] = "edit";
|
|
694
|
+
ContentKitIcon2["Github"] = "github";
|
|
695
|
+
ContentKitIcon2["Gitlab"] = "gitlab";
|
|
696
|
+
ContentKitIcon2["Maximize"] = "maximize";
|
|
697
|
+
ContentKitIcon2["Email"] = "email";
|
|
698
|
+
ContentKitIcon2["Settings"] = "settings";
|
|
699
|
+
ContentKitIcon2["Search"] = "search";
|
|
700
|
+
ContentKitIcon2["Delete"] = "delete";
|
|
701
|
+
ContentKitIcon2["Star"] = "star";
|
|
702
|
+
ContentKitIcon2["Warning"] = "warning";
|
|
703
|
+
ContentKitIcon2["Link"] = "link";
|
|
704
|
+
ContentKitIcon2["LinkExternal"] = "link-external";
|
|
705
|
+
ContentKitIcon2["Eye"] = "eye";
|
|
706
|
+
ContentKitIcon2["Lock"] = "lock";
|
|
707
|
+
ContentKitIcon2["Check"] = "check";
|
|
708
|
+
ContentKitIcon2["CheckCircle"] = "check-circle";
|
|
709
|
+
return ContentKitIcon2;
|
|
710
|
+
})(ContentKitIcon || {});
|
|
710
711
|
var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
711
712
|
TeamMemberRole2["Owner"] = "owner";
|
|
712
713
|
TeamMemberRole2["Member"] = "member";
|
|
@@ -2191,6 +2192,14 @@ var Api = class extends HttpClient {
|
|
|
2191
2192
|
format: "json",
|
|
2192
2193
|
...params
|
|
2193
2194
|
}),
|
|
2195
|
+
listIntegrationSiteInstallations: (integrationName, query, params = {}) => this.request({
|
|
2196
|
+
path: `/integrations/${integrationName}/sites`,
|
|
2197
|
+
method: "GET",
|
|
2198
|
+
query,
|
|
2199
|
+
secure: true,
|
|
2200
|
+
format: "json",
|
|
2201
|
+
...params
|
|
2202
|
+
}),
|
|
2194
2203
|
setIntegrationDevelopmentMode: (integrationName, data, params = {}) => this.request({
|
|
2195
2204
|
path: `/integrations/${integrationName}/dev`,
|
|
2196
2205
|
method: "PUT",
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.112.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -364,7 +364,6 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
|
364
364
|
ImportContentSource2["Notion"] = "notion";
|
|
365
365
|
ImportContentSource2["Quip"] = "quip";
|
|
366
366
|
ImportContentSource2["GoogleDocs"] = "google-docs";
|
|
367
|
-
ImportContentSource2["OpenApi"] = "open-api";
|
|
368
367
|
return ImportContentSource2;
|
|
369
368
|
})(ImportContentSource || {});
|
|
370
369
|
var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
|
|
@@ -560,24 +559,6 @@ var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstalla
|
|
|
560
559
|
IntegrationInstallationSiteSelection2["Selected"] = "selected";
|
|
561
560
|
return IntegrationInstallationSiteSelection2;
|
|
562
561
|
})(IntegrationInstallationSiteSelection || {});
|
|
563
|
-
var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
564
|
-
ContentKitIcon2["Close"] = "close";
|
|
565
|
-
ContentKitIcon2["Edit"] = "edit";
|
|
566
|
-
ContentKitIcon2["Github"] = "github";
|
|
567
|
-
ContentKitIcon2["Gitlab"] = "gitlab";
|
|
568
|
-
ContentKitIcon2["Maximize"] = "maximize";
|
|
569
|
-
ContentKitIcon2["Email"] = "email";
|
|
570
|
-
ContentKitIcon2["Settings"] = "settings";
|
|
571
|
-
ContentKitIcon2["Search"] = "search";
|
|
572
|
-
ContentKitIcon2["Delete"] = "delete";
|
|
573
|
-
ContentKitIcon2["Star"] = "star";
|
|
574
|
-
ContentKitIcon2["Warning"] = "warning";
|
|
575
|
-
ContentKitIcon2["Link"] = "link";
|
|
576
|
-
ContentKitIcon2["LinkExternal"] = "link-external";
|
|
577
|
-
ContentKitIcon2["Eye"] = "eye";
|
|
578
|
-
ContentKitIcon2["Lock"] = "lock";
|
|
579
|
-
return ContentKitIcon2;
|
|
580
|
-
})(ContentKitIcon || {});
|
|
581
562
|
var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
582
563
|
SiteType2["Basic"] = "basic";
|
|
583
564
|
SiteType2["Premium"] = "premium";
|
|
@@ -610,6 +591,26 @@ var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
|
|
|
610
591
|
SiteCustomizationFeature2["SemanticColors"] = "semantic-colors";
|
|
611
592
|
return SiteCustomizationFeature2;
|
|
612
593
|
})(SiteCustomizationFeature || {});
|
|
594
|
+
var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
595
|
+
ContentKitIcon2["Close"] = "close";
|
|
596
|
+
ContentKitIcon2["Edit"] = "edit";
|
|
597
|
+
ContentKitIcon2["Github"] = "github";
|
|
598
|
+
ContentKitIcon2["Gitlab"] = "gitlab";
|
|
599
|
+
ContentKitIcon2["Maximize"] = "maximize";
|
|
600
|
+
ContentKitIcon2["Email"] = "email";
|
|
601
|
+
ContentKitIcon2["Settings"] = "settings";
|
|
602
|
+
ContentKitIcon2["Search"] = "search";
|
|
603
|
+
ContentKitIcon2["Delete"] = "delete";
|
|
604
|
+
ContentKitIcon2["Star"] = "star";
|
|
605
|
+
ContentKitIcon2["Warning"] = "warning";
|
|
606
|
+
ContentKitIcon2["Link"] = "link";
|
|
607
|
+
ContentKitIcon2["LinkExternal"] = "link-external";
|
|
608
|
+
ContentKitIcon2["Eye"] = "eye";
|
|
609
|
+
ContentKitIcon2["Lock"] = "lock";
|
|
610
|
+
ContentKitIcon2["Check"] = "check";
|
|
611
|
+
ContentKitIcon2["CheckCircle"] = "check-circle";
|
|
612
|
+
return ContentKitIcon2;
|
|
613
|
+
})(ContentKitIcon || {});
|
|
613
614
|
var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
614
615
|
TeamMemberRole2["Owner"] = "owner";
|
|
615
616
|
TeamMemberRole2["Member"] = "member";
|
|
@@ -2094,6 +2095,14 @@ var Api = class extends HttpClient {
|
|
|
2094
2095
|
format: "json",
|
|
2095
2096
|
...params
|
|
2096
2097
|
}),
|
|
2098
|
+
listIntegrationSiteInstallations: (integrationName, query, params = {}) => this.request({
|
|
2099
|
+
path: `/integrations/${integrationName}/sites`,
|
|
2100
|
+
method: "GET",
|
|
2101
|
+
query,
|
|
2102
|
+
secure: true,
|
|
2103
|
+
format: "json",
|
|
2104
|
+
...params
|
|
2105
|
+
}),
|
|
2097
2106
|
setIntegrationDevelopmentMode: (integrationName, data, params = {}) => this.request({
|
|
2098
2107
|
path: `/integrations/${integrationName}/dev`,
|
|
2099
2108
|
method: "PUT",
|