@gitbook/api 0.93.0 → 0.95.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 +143 -66
- package/dist/index.cjs +17 -17
- package/dist/index.js +16 -16
- package/package.json +1 -1
- package/spec/openapi.json +374 -123
- package/spec/openapi.yaml +253 -92
package/dist/client.d.ts
CHANGED
|
@@ -148,8 +148,13 @@ export interface ContentRefReusableContent {
|
|
|
148
148
|
kind: 'reusable-content';
|
|
149
149
|
reusableContent: string;
|
|
150
150
|
}
|
|
151
|
+
export interface ContentRefOpenAPI {
|
|
152
|
+
kind: 'openapi';
|
|
153
|
+
/** Slug of the OpenAPI specification */
|
|
154
|
+
spec: string;
|
|
155
|
+
}
|
|
151
156
|
/** A relative reference to content in GitBook. */
|
|
152
|
-
export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefReusableContent;
|
|
157
|
+
export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefReusableContent | ContentRefOpenAPI;
|
|
153
158
|
export interface DocumentInlineLink {
|
|
154
159
|
object: 'inline';
|
|
155
160
|
type: 'link';
|
|
@@ -529,9 +534,6 @@ export type ContentKitDefaultAction = {
|
|
|
529
534
|
} | {
|
|
530
535
|
action: '@ui.modal.close';
|
|
531
536
|
returnValue: PlainObject;
|
|
532
|
-
} | {
|
|
533
|
-
action: '@ui.complete';
|
|
534
|
-
returnValue: PlainObject;
|
|
535
537
|
} | {
|
|
536
538
|
action: '@ui.url.open';
|
|
537
539
|
url: string;
|
|
@@ -604,7 +606,7 @@ export interface DocumentBlockOpenAPI {
|
|
|
604
606
|
type: 'swagger';
|
|
605
607
|
key?: string;
|
|
606
608
|
data: OpenAPIOperationPointer & {
|
|
607
|
-
ref: ContentRefFile | ContentRefURL;
|
|
609
|
+
ref: ContentRefFile | ContentRefURL | ContentRefOpenAPI;
|
|
608
610
|
/** If true, the block is opened by default. */
|
|
609
611
|
expanded?: boolean;
|
|
610
612
|
fullWidth?: boolean;
|
|
@@ -1098,7 +1100,7 @@ export type RevisionPageLink = RevisionPageBase & {
|
|
|
1098
1100
|
*/
|
|
1099
1101
|
hidden?: boolean;
|
|
1100
1102
|
};
|
|
1101
|
-
export type ComputedContentDependencyRef = ContentRefSpace;
|
|
1103
|
+
export type ComputedContentDependencyRef = ContentRefSpace | ContentRefOpenAPI;
|
|
1102
1104
|
/** Dependency for a computation, with its resolved value. */
|
|
1103
1105
|
export type ComputedContentDependencyValue = {
|
|
1104
1106
|
ref: ContentRefSpace;
|
|
@@ -1108,6 +1110,15 @@ export type ComputedContentDependencyValue = {
|
|
|
1108
1110
|
id: string;
|
|
1109
1111
|
revision: string;
|
|
1110
1112
|
} | null;
|
|
1113
|
+
} | {
|
|
1114
|
+
ref: ContentRefOpenAPI;
|
|
1115
|
+
/** See `OpenAPI` schema component. */
|
|
1116
|
+
value: {
|
|
1117
|
+
object: 'openapi-spec';
|
|
1118
|
+
id: string;
|
|
1119
|
+
slug: string;
|
|
1120
|
+
lastVersion?: string;
|
|
1121
|
+
} | null;
|
|
1111
1122
|
};
|
|
1112
1123
|
/** Parameters for a computed content */
|
|
1113
1124
|
export interface ComputedContentSource {
|
|
@@ -1612,6 +1623,14 @@ export interface Organization {
|
|
|
1612
1623
|
};
|
|
1613
1624
|
/** If true, the organization is on the new trial which includes sites and the Pro plan. */
|
|
1614
1625
|
internal_isOnNewTrial?: boolean;
|
|
1626
|
+
internal_billingMigration?: {
|
|
1627
|
+
/** When we will upgrade the organization onto new pricing, if they haven't already. */
|
|
1628
|
+
deadline?: Timestamp;
|
|
1629
|
+
/** A discount the organization may have received thanks to migrating early. */
|
|
1630
|
+
discountPercent?: number;
|
|
1631
|
+
/** The expiration date of the discount, after wich regular pricing resumes. */
|
|
1632
|
+
discountEndDate?: Timestamp;
|
|
1633
|
+
};
|
|
1615
1634
|
/** The set of permissions for the organization */
|
|
1616
1635
|
permissions: {
|
|
1617
1636
|
/** Can the user manage the title, members, etc. */
|
|
@@ -1725,8 +1744,64 @@ export interface ContentLocationReusableContent {
|
|
|
1725
1744
|
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
1726
1745
|
reusableContent: RevisionReusableContent;
|
|
1727
1746
|
}
|
|
1747
|
+
/**
|
|
1748
|
+
* Slug used as reference
|
|
1749
|
+
* @minLength 1
|
|
1750
|
+
* @maxLength 100
|
|
1751
|
+
*/
|
|
1752
|
+
export type OpenAPISpecSlug = string;
|
|
1753
|
+
/** Processing state */
|
|
1754
|
+
export declare enum OpenAPISpecProcessingState {
|
|
1755
|
+
Pending = "pending",
|
|
1756
|
+
Progress = "progress",
|
|
1757
|
+
Complete = "complete"
|
|
1758
|
+
}
|
|
1759
|
+
/** OpenAPI processing error code */
|
|
1760
|
+
export declare enum OpenAPISpecProcessingErrorCode {
|
|
1761
|
+
FETCH_TIMEOUT = "FETCH_TIMEOUT",
|
|
1762
|
+
FETCH_ERROR = "FETCH_ERROR",
|
|
1763
|
+
PARSE_ERROR = "PARSE_ERROR"
|
|
1764
|
+
}
|
|
1765
|
+
export interface OpenAPISpec {
|
|
1766
|
+
/** The object type, which is always "openapi-spec" */
|
|
1767
|
+
object: 'openapi-spec';
|
|
1768
|
+
/** Unique identifier */
|
|
1769
|
+
id: string;
|
|
1770
|
+
/** Date of creation */
|
|
1771
|
+
createdAt: Timestamp;
|
|
1772
|
+
/** Date of the last update */
|
|
1773
|
+
updatedAt: Timestamp;
|
|
1774
|
+
/** Slug used as reference */
|
|
1775
|
+
slug: OpenAPISpecSlug;
|
|
1776
|
+
sourceURL?: URL;
|
|
1777
|
+
/** Processing state */
|
|
1778
|
+
processingState: OpenAPISpecProcessingState;
|
|
1779
|
+
/** ID of the latest version of the OpenAPI specification */
|
|
1780
|
+
lastVersion?: string;
|
|
1781
|
+
/** Date of the last processing */
|
|
1782
|
+
lastProcessedAt?: Timestamp;
|
|
1783
|
+
/** OpenAPI processing error code */
|
|
1784
|
+
lastProcessErrorCode?: OpenAPISpecProcessingErrorCode;
|
|
1785
|
+
/** The set of permissions for the OpenAPI specification. */
|
|
1786
|
+
permissions: {
|
|
1787
|
+
/** Can the user edit the specification. */
|
|
1788
|
+
edit?: boolean;
|
|
1789
|
+
};
|
|
1790
|
+
/** URLs associated with the object */
|
|
1791
|
+
urls: {
|
|
1792
|
+
/** URL of the OpenAPI specification in the API */
|
|
1793
|
+
location: URL;
|
|
1794
|
+
/** URL of the OpenAPI specification in the application */
|
|
1795
|
+
app: URL;
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
export interface ContentLocationOpenAPI {
|
|
1799
|
+
kind: 'openapi';
|
|
1800
|
+
organization: Organization;
|
|
1801
|
+
openAPISpec: OpenAPISpec;
|
|
1802
|
+
}
|
|
1728
1803
|
/** An absolute reference to content in GitBook. */
|
|
1729
|
-
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent;
|
|
1804
|
+
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
|
|
1730
1805
|
/**
|
|
1731
1806
|
* Text to display to represent the reference. Possible values include:
|
|
1732
1807
|
* - `ok` - No problems detected for this content reference.
|
|
@@ -2287,6 +2362,10 @@ export interface CustomizationThemedURL {
|
|
|
2287
2362
|
light: URL;
|
|
2288
2363
|
dark: URL;
|
|
2289
2364
|
}
|
|
2365
|
+
/**
|
|
2366
|
+
* The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
|
|
2367
|
+
* @deprecated
|
|
2368
|
+
*/
|
|
2290
2369
|
export declare enum CustomizationHeaderPreset {
|
|
2291
2370
|
Default = "default",
|
|
2292
2371
|
Bold = "bold",
|
|
@@ -2338,6 +2417,7 @@ export interface CustomizationSettings {
|
|
|
2338
2417
|
emoji: Emoji;
|
|
2339
2418
|
} | object;
|
|
2340
2419
|
header: {
|
|
2420
|
+
/** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
|
|
2341
2421
|
preset: CustomizationHeaderPreset;
|
|
2342
2422
|
logo?: CustomizationThemedURL;
|
|
2343
2423
|
backgroundColor?: CustomizationThemedColor;
|
|
@@ -2428,7 +2508,9 @@ export declare enum IntegrationScope {
|
|
|
2428
2508
|
SiteViewsRead = "site:views:read",
|
|
2429
2509
|
SiteScriptInject = "site:script:inject",
|
|
2430
2510
|
SiteScriptCookies = "site:script:cookies",
|
|
2431
|
-
SiteVisitorAuth = "site:visitor:auth"
|
|
2511
|
+
SiteVisitorAuth = "site:visitor:auth",
|
|
2512
|
+
OpenapiRead = "openapi:read",
|
|
2513
|
+
OpenapiWrite = "openapi:write"
|
|
2432
2514
|
}
|
|
2433
2515
|
/** Permissions that should be granted to the integration */
|
|
2434
2516
|
export type IntegrationScopes = IntegrationScope[];
|
|
@@ -2469,7 +2551,7 @@ export interface IntegrationContentSource {
|
|
|
2469
2551
|
/** URL of the icon to represent this source. */
|
|
2470
2552
|
icon?: string;
|
|
2471
2553
|
/** ContentKit component for configuration */
|
|
2472
|
-
configuration
|
|
2554
|
+
configuration: IntegrationConfigurationComponent;
|
|
2473
2555
|
}
|
|
2474
2556
|
/** Schema for a configuration */
|
|
2475
2557
|
export interface IntegrationConfigurationSchema {
|
|
@@ -3935,6 +4017,13 @@ export interface BillingInvoicePreview {
|
|
|
3935
4017
|
periodStart: Timestamp;
|
|
3936
4018
|
periodEnd: Timestamp;
|
|
3937
4019
|
}[];
|
|
4020
|
+
/** Discount applied to the subscription. */
|
|
4021
|
+
discount?: {
|
|
4022
|
+
/** The combined description of all discounts applied to the subscription. */
|
|
4023
|
+
description: string;
|
|
4024
|
+
/** The total amount of all discounts applied to the subscription. */
|
|
4025
|
+
amount: number;
|
|
4026
|
+
};
|
|
3938
4027
|
}
|
|
3939
4028
|
export type BillingUpgrade = {
|
|
3940
4029
|
result: 'checkout';
|
|
@@ -3973,6 +4062,12 @@ export interface MigrateOrganizationParameters {
|
|
|
3973
4062
|
})[];
|
|
3974
4063
|
};
|
|
3975
4064
|
}
|
|
4065
|
+
export interface BillingDiscount {
|
|
4066
|
+
/** How many months the discount will last */
|
|
4067
|
+
duration: number;
|
|
4068
|
+
/** Percent that will be deducted from the subtotal of the invoice */
|
|
4069
|
+
percentOff: number;
|
|
4070
|
+
}
|
|
3976
4071
|
/** These are all the features we check to determine the new pricing site type. */
|
|
3977
4072
|
export declare enum SiteToMigrateFeature {
|
|
3978
4073
|
Sections = "sections",
|
|
@@ -4225,9 +4320,13 @@ export interface SiteCustomizationSettings {
|
|
|
4225
4320
|
* - `bold`: High-impact theme with prominent colors and strong contrasts.
|
|
4226
4321
|
* - `gradient`: Trendy theme featuring colorful gradients and splashes of color.
|
|
4227
4322
|
*/
|
|
4228
|
-
theme
|
|
4323
|
+
theme: CustomizationTheme;
|
|
4229
4324
|
primaryColor: CustomizationThemedColor;
|
|
4230
4325
|
tint?: CustomizationTint;
|
|
4326
|
+
infoColor: CustomizationThemedColor;
|
|
4327
|
+
successColor: CustomizationThemedColor;
|
|
4328
|
+
warningColor: CustomizationThemedColor;
|
|
4329
|
+
dangerColor: CustomizationThemedColor;
|
|
4231
4330
|
corners: CustomizationCorners;
|
|
4232
4331
|
font: CustomizationFont;
|
|
4233
4332
|
/**
|
|
@@ -4261,9 +4360,18 @@ export interface SiteCustomizationSettings {
|
|
|
4261
4360
|
emoji: Emoji;
|
|
4262
4361
|
} | object;
|
|
4263
4362
|
header: {
|
|
4363
|
+
/** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
|
|
4264
4364
|
preset: CustomizationHeaderPreset;
|
|
4265
4365
|
logo?: CustomizationThemedURL;
|
|
4366
|
+
/**
|
|
4367
|
+
* Color of the background in the header. This value is now deprecated in favour of the new theming colors.
|
|
4368
|
+
* @deprecated
|
|
4369
|
+
*/
|
|
4266
4370
|
backgroundColor?: CustomizationThemedColor;
|
|
4371
|
+
/**
|
|
4372
|
+
* Color of the links in the header. This value is now deprecated and will be phased out in favour of the new theming colors.
|
|
4373
|
+
* @deprecated
|
|
4374
|
+
*/
|
|
4267
4375
|
linkColor?: CustomizationThemedColor;
|
|
4268
4376
|
links: CustomizationHeaderItem[];
|
|
4269
4377
|
};
|
|
@@ -5209,14 +5317,6 @@ export interface Index {
|
|
|
5209
5317
|
collections: Record<string, UserCollectionsPermissions>;
|
|
5210
5318
|
spaces: Record<string, UserSpacesPermissions>;
|
|
5211
5319
|
}
|
|
5212
|
-
/** Reason for a space to be blocked */
|
|
5213
|
-
export declare enum SpaceBlockReason {
|
|
5214
|
-
DMCA = "DMCA",
|
|
5215
|
-
THREAT_TYPE_UNSPECIFIED = "THREAT_TYPE_UNSPECIFIED",
|
|
5216
|
-
MALWARE = "MALWARE",
|
|
5217
|
-
SOCIAL_ENGINEERING = "SOCIAL_ENGINEERING",
|
|
5218
|
-
UNWANTED_SOFTWARE = "UNWANTED_SOFTWARE"
|
|
5219
|
-
}
|
|
5220
5320
|
export type BackOfficeSite = Site & {
|
|
5221
5321
|
/** ID of the organization owning this site */
|
|
5222
5322
|
organization: string;
|
|
@@ -5255,42 +5355,6 @@ export type PublishedSiteContentLookup = {
|
|
|
5255
5355
|
target: 'application' | 'content' | 'external';
|
|
5256
5356
|
redirect: URL;
|
|
5257
5357
|
} | PublishedSiteContent;
|
|
5258
|
-
/**
|
|
5259
|
-
* Slug used as reference
|
|
5260
|
-
* @minLength 1
|
|
5261
|
-
* @maxLength 100
|
|
5262
|
-
*/
|
|
5263
|
-
export type OpenAPISpecSlug = string;
|
|
5264
|
-
/** Processing state */
|
|
5265
|
-
export declare enum OpenAPISpecProcessingState {
|
|
5266
|
-
Pending = "pending",
|
|
5267
|
-
Progress = "progress",
|
|
5268
|
-
Complete = "complete"
|
|
5269
|
-
}
|
|
5270
|
-
export interface OpenAPISpec {
|
|
5271
|
-
/** The object type, which is always "openapi-spec" */
|
|
5272
|
-
object: 'openapi-spec';
|
|
5273
|
-
/** Unique identifier */
|
|
5274
|
-
id: string;
|
|
5275
|
-
/** Date of creation */
|
|
5276
|
-
createdAt: Timestamp;
|
|
5277
|
-
/** Date of the last update */
|
|
5278
|
-
updatedAt: Timestamp;
|
|
5279
|
-
/** Slug used as reference */
|
|
5280
|
-
slug: OpenAPISpecSlug;
|
|
5281
|
-
sourceURL?: URL;
|
|
5282
|
-
/** Processing state */
|
|
5283
|
-
processingState: OpenAPISpecProcessingState;
|
|
5284
|
-
/** Date of the last processing */
|
|
5285
|
-
lastProcessedAt?: Timestamp;
|
|
5286
|
-
/** URLs associated with the object */
|
|
5287
|
-
urls: {
|
|
5288
|
-
/** URL of the OpenAPI specification in the API */
|
|
5289
|
-
location: URL;
|
|
5290
|
-
/** URL of the OpenAPI specification in the application */
|
|
5291
|
-
app: URL;
|
|
5292
|
-
};
|
|
5293
|
-
}
|
|
5294
5358
|
export interface OpenAPISpecVersion {
|
|
5295
5359
|
/** The object type, which is always "openapi-spec-version" */
|
|
5296
5360
|
object: 'openapi-spec-version';
|
|
@@ -5298,10 +5362,8 @@ export interface OpenAPISpecVersion {
|
|
|
5298
5362
|
id: string;
|
|
5299
5363
|
/** Date of creation */
|
|
5300
5364
|
createdAt?: Timestamp;
|
|
5301
|
-
/** URL
|
|
5302
|
-
|
|
5303
|
-
/** URL pointing to the processed specification */
|
|
5304
|
-
contentURL: URL;
|
|
5365
|
+
/** URL where the specification is accessible. */
|
|
5366
|
+
url: URL;
|
|
5305
5367
|
/** URLs associated with the object */
|
|
5306
5368
|
urls: {
|
|
5307
5369
|
/** URL of the OpenAPI specification version in the API */
|
|
@@ -5310,8 +5372,12 @@ export interface OpenAPISpecVersion {
|
|
|
5310
5372
|
app: URL;
|
|
5311
5373
|
};
|
|
5312
5374
|
}
|
|
5313
|
-
/** Content of
|
|
5314
|
-
export
|
|
5375
|
+
/** Content of the specification available through filesystem or public URL. */
|
|
5376
|
+
export interface OpenAPISpecContent {
|
|
5377
|
+
/** Filesystem containing all specifications. */
|
|
5378
|
+
filesystem: object;
|
|
5379
|
+
url: URL;
|
|
5380
|
+
}
|
|
5315
5381
|
/**
|
|
5316
5382
|
* @minLength 64
|
|
5317
5383
|
* @maxLength 64
|
|
@@ -5857,13 +5923,13 @@ export interface GitSyncOperationChannel {
|
|
|
5857
5923
|
channel: 'space-gitsync-operation';
|
|
5858
5924
|
space: string;
|
|
5859
5925
|
}
|
|
5860
|
-
/** Subscription channel for changes in OpenAPI specification
|
|
5861
|
-
export interface
|
|
5862
|
-
channel: 'openapi-spec
|
|
5926
|
+
/** Subscription channel for changes in OpenAPI specification. */
|
|
5927
|
+
export interface OpenAPISpecChannel {
|
|
5928
|
+
channel: 'openapi-spec';
|
|
5863
5929
|
openAPISpec: string;
|
|
5864
5930
|
}
|
|
5865
5931
|
/** Channel to subscribe to for realtime updates. */
|
|
5866
|
-
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 | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel |
|
|
5932
|
+
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 | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel;
|
|
5867
5933
|
export interface GitSyncOperationChannelData {
|
|
5868
5934
|
channel: 'space-gitsync-operation';
|
|
5869
5935
|
data: GitSyncOperation;
|
|
@@ -9434,6 +9500,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9434
9500
|
ultimateSites: number;
|
|
9435
9501
|
};
|
|
9436
9502
|
invoice?: BillingInvoicePreview;
|
|
9503
|
+
discount?: BillingDiscount;
|
|
9437
9504
|
}, Error>>;
|
|
9438
9505
|
/**
|
|
9439
9506
|
* No description
|
|
@@ -10794,8 +10861,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10794
10861
|
/** Title to use for the published site variant. If not defined, the title will not be changed. If set to null, the title will be unset and will fallback to the content title. */
|
|
10795
10862
|
title?: SiteTitle | null;
|
|
10796
10863
|
styling?: {
|
|
10864
|
+
/** The site theme. Set to null to reset the override. */
|
|
10865
|
+
theme?: CustomizationTheme | null;
|
|
10797
10866
|
/** The primary color used for links and UI text. Set to null to reset the override. */
|
|
10798
10867
|
primaryColor?: CustomizationThemedColor | null;
|
|
10868
|
+
/** Used for informational messages and neutral alerts. Set to null to reset the override. */
|
|
10869
|
+
infoColor?: CustomizationThemedColor | null;
|
|
10870
|
+
/** Used for showing positive actions or achievements. Set to null to reset the override. */
|
|
10871
|
+
successColor?: CustomizationThemedColor | null;
|
|
10872
|
+
/** Used for showing important information or non-critical warnings. Set to null to reset the override. */
|
|
10873
|
+
warningColor?: CustomizationThemedColor | null;
|
|
10874
|
+
/** Used for destructive actions or raising attention to critical information. Set to null to reset the override. */
|
|
10875
|
+
dangerColor?: CustomizationThemedColor | null;
|
|
10799
10876
|
/** The tint will color the site’s UI beyond links and buttons, such as header, sidebar and background. By default, the tint colour is the same as your Primary colour, but you can set a custom one too. */
|
|
10800
10877
|
tint?: CustomizationTint | null;
|
|
10801
10878
|
/** The style of the corners to use. Set to null to reset the override. */
|
|
@@ -11365,7 +11442,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11365
11442
|
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content
|
|
11366
11443
|
* @secure
|
|
11367
11444
|
*/
|
|
11368
|
-
getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<
|
|
11445
|
+
getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
11369
11446
|
error: {
|
|
11370
11447
|
/** @format int32 */
|
|
11371
11448
|
code: 404;
|
|
@@ -11397,7 +11474,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11397
11474
|
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}/content
|
|
11398
11475
|
* @secure
|
|
11399
11476
|
*/
|
|
11400
|
-
getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<
|
|
11477
|
+
getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
11401
11478
|
error: {
|
|
11402
11479
|
/** @format int32 */
|
|
11403
11480
|
code: 404;
|
package/dist/index.cjs
CHANGED
|
@@ -232,6 +232,7 @@ __export(src_exports, {
|
|
|
232
232
|
IntegrationTarget: () => IntegrationTarget,
|
|
233
233
|
IntegrationVisibility: () => IntegrationVisibility,
|
|
234
234
|
MemberRole: () => MemberRole,
|
|
235
|
+
OpenAPISpecProcessingErrorCode: () => OpenAPISpecProcessingErrorCode,
|
|
235
236
|
OpenAPISpecProcessingState: () => OpenAPISpecProcessingState,
|
|
236
237
|
OrganizationBlockReason: () => OrganizationBlockReason,
|
|
237
238
|
OrganizationCommunityType: () => OrganizationCommunityType,
|
|
@@ -258,7 +259,6 @@ __export(src_exports, {
|
|
|
258
259
|
SiteToMigrateFeature: () => SiteToMigrateFeature,
|
|
259
260
|
SiteType: () => SiteType,
|
|
260
261
|
SiteVisibility: () => SiteVisibility,
|
|
261
|
-
SpaceBlockReason: () => SpaceBlockReason,
|
|
262
262
|
SpaceEditMode: () => SpaceEditMode,
|
|
263
263
|
TeamMemberRole: () => TeamMemberRole
|
|
264
264
|
});
|
|
@@ -266,7 +266,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
266
266
|
|
|
267
267
|
// package.json
|
|
268
268
|
var name = "@gitbook/api";
|
|
269
|
-
var version = "0.
|
|
269
|
+
var version = "0.95.0";
|
|
270
270
|
|
|
271
271
|
// src/client.ts
|
|
272
272
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -481,6 +481,18 @@ var OrganizationBlockReason = /* @__PURE__ */ ((OrganizationBlockReason2) => {
|
|
|
481
481
|
OrganizationBlockReason2["Security"] = "security";
|
|
482
482
|
return OrganizationBlockReason2;
|
|
483
483
|
})(OrganizationBlockReason || {});
|
|
484
|
+
var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
|
|
485
|
+
OpenAPISpecProcessingState2["Pending"] = "pending";
|
|
486
|
+
OpenAPISpecProcessingState2["Progress"] = "progress";
|
|
487
|
+
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
488
|
+
return OpenAPISpecProcessingState2;
|
|
489
|
+
})(OpenAPISpecProcessingState || {});
|
|
490
|
+
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
491
|
+
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
492
|
+
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
493
|
+
OpenAPISpecProcessingErrorCode2["PARSE_ERROR"] = "PARSE_ERROR";
|
|
494
|
+
return OpenAPISpecProcessingErrorCode2;
|
|
495
|
+
})(OpenAPISpecProcessingErrorCode || {});
|
|
484
496
|
var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
485
497
|
ContentReferenceStatus2["Ok"] = "ok";
|
|
486
498
|
ContentReferenceStatus2["Broken"] = "broken";
|
|
@@ -616,6 +628,8 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
616
628
|
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
617
629
|
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
618
630
|
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
631
|
+
IntegrationScope2["OpenapiRead"] = "openapi:read";
|
|
632
|
+
IntegrationScope2["OpenapiWrite"] = "openapi:write";
|
|
619
633
|
return IntegrationScope2;
|
|
620
634
|
})(IntegrationScope || {});
|
|
621
635
|
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
@@ -899,20 +913,6 @@ var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostname
|
|
|
899
913
|
CloudflareHostnameTLSValidationMethod2["Email"] = "email";
|
|
900
914
|
return CloudflareHostnameTLSValidationMethod2;
|
|
901
915
|
})(CloudflareHostnameTLSValidationMethod || {});
|
|
902
|
-
var SpaceBlockReason = /* @__PURE__ */ ((SpaceBlockReason2) => {
|
|
903
|
-
SpaceBlockReason2["DMCA"] = "DMCA";
|
|
904
|
-
SpaceBlockReason2["THREAT_TYPE_UNSPECIFIED"] = "THREAT_TYPE_UNSPECIFIED";
|
|
905
|
-
SpaceBlockReason2["MALWARE"] = "MALWARE";
|
|
906
|
-
SpaceBlockReason2["SOCIAL_ENGINEERING"] = "SOCIAL_ENGINEERING";
|
|
907
|
-
SpaceBlockReason2["UNWANTED_SOFTWARE"] = "UNWANTED_SOFTWARE";
|
|
908
|
-
return SpaceBlockReason2;
|
|
909
|
-
})(SpaceBlockReason || {});
|
|
910
|
-
var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
|
|
911
|
-
OpenAPISpecProcessingState2["Pending"] = "pending";
|
|
912
|
-
OpenAPISpecProcessingState2["Progress"] = "progress";
|
|
913
|
-
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
914
|
-
return OpenAPISpecProcessingState2;
|
|
915
|
-
})(OpenAPISpecProcessingState || {});
|
|
916
916
|
var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
|
|
917
917
|
RevisionSemanticChangeType2["PageCreated"] = "page_created";
|
|
918
918
|
RevisionSemanticChangeType2["PageEdited"] = "page_edited";
|
|
@@ -3783,6 +3783,7 @@ var GitBookAPI = class extends Api {
|
|
|
3783
3783
|
IntegrationTarget,
|
|
3784
3784
|
IntegrationVisibility,
|
|
3785
3785
|
MemberRole,
|
|
3786
|
+
OpenAPISpecProcessingErrorCode,
|
|
3786
3787
|
OpenAPISpecProcessingState,
|
|
3787
3788
|
OrganizationBlockReason,
|
|
3788
3789
|
OrganizationCommunityType,
|
|
@@ -3809,7 +3810,6 @@ var GitBookAPI = class extends Api {
|
|
|
3809
3810
|
SiteToMigrateFeature,
|
|
3810
3811
|
SiteType,
|
|
3811
3812
|
SiteVisibility,
|
|
3812
|
-
SpaceBlockReason,
|
|
3813
3813
|
SpaceEditMode,
|
|
3814
3814
|
TeamMemberRole
|
|
3815
3815
|
});
|
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.95.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -387,6 +387,18 @@ var OrganizationBlockReason = /* @__PURE__ */ ((OrganizationBlockReason2) => {
|
|
|
387
387
|
OrganizationBlockReason2["Security"] = "security";
|
|
388
388
|
return OrganizationBlockReason2;
|
|
389
389
|
})(OrganizationBlockReason || {});
|
|
390
|
+
var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
|
|
391
|
+
OpenAPISpecProcessingState2["Pending"] = "pending";
|
|
392
|
+
OpenAPISpecProcessingState2["Progress"] = "progress";
|
|
393
|
+
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
394
|
+
return OpenAPISpecProcessingState2;
|
|
395
|
+
})(OpenAPISpecProcessingState || {});
|
|
396
|
+
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
397
|
+
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
398
|
+
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
399
|
+
OpenAPISpecProcessingErrorCode2["PARSE_ERROR"] = "PARSE_ERROR";
|
|
400
|
+
return OpenAPISpecProcessingErrorCode2;
|
|
401
|
+
})(OpenAPISpecProcessingErrorCode || {});
|
|
390
402
|
var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
391
403
|
ContentReferenceStatus2["Ok"] = "ok";
|
|
392
404
|
ContentReferenceStatus2["Broken"] = "broken";
|
|
@@ -522,6 +534,8 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
522
534
|
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
523
535
|
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
524
536
|
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
537
|
+
IntegrationScope2["OpenapiRead"] = "openapi:read";
|
|
538
|
+
IntegrationScope2["OpenapiWrite"] = "openapi:write";
|
|
525
539
|
return IntegrationScope2;
|
|
526
540
|
})(IntegrationScope || {});
|
|
527
541
|
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
@@ -805,20 +819,6 @@ var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostname
|
|
|
805
819
|
CloudflareHostnameTLSValidationMethod2["Email"] = "email";
|
|
806
820
|
return CloudflareHostnameTLSValidationMethod2;
|
|
807
821
|
})(CloudflareHostnameTLSValidationMethod || {});
|
|
808
|
-
var SpaceBlockReason = /* @__PURE__ */ ((SpaceBlockReason2) => {
|
|
809
|
-
SpaceBlockReason2["DMCA"] = "DMCA";
|
|
810
|
-
SpaceBlockReason2["THREAT_TYPE_UNSPECIFIED"] = "THREAT_TYPE_UNSPECIFIED";
|
|
811
|
-
SpaceBlockReason2["MALWARE"] = "MALWARE";
|
|
812
|
-
SpaceBlockReason2["SOCIAL_ENGINEERING"] = "SOCIAL_ENGINEERING";
|
|
813
|
-
SpaceBlockReason2["UNWANTED_SOFTWARE"] = "UNWANTED_SOFTWARE";
|
|
814
|
-
return SpaceBlockReason2;
|
|
815
|
-
})(SpaceBlockReason || {});
|
|
816
|
-
var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
|
|
817
|
-
OpenAPISpecProcessingState2["Pending"] = "pending";
|
|
818
|
-
OpenAPISpecProcessingState2["Progress"] = "progress";
|
|
819
|
-
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
820
|
-
return OpenAPISpecProcessingState2;
|
|
821
|
-
})(OpenAPISpecProcessingState || {});
|
|
822
822
|
var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
|
|
823
823
|
RevisionSemanticChangeType2["PageCreated"] = "page_created";
|
|
824
824
|
RevisionSemanticChangeType2["PageEdited"] = "page_edited";
|
|
@@ -3688,6 +3688,7 @@ export {
|
|
|
3688
3688
|
IntegrationTarget,
|
|
3689
3689
|
IntegrationVisibility,
|
|
3690
3690
|
MemberRole,
|
|
3691
|
+
OpenAPISpecProcessingErrorCode,
|
|
3691
3692
|
OpenAPISpecProcessingState,
|
|
3692
3693
|
OrganizationBlockReason,
|
|
3693
3694
|
OrganizationCommunityType,
|
|
@@ -3714,7 +3715,6 @@ export {
|
|
|
3714
3715
|
SiteToMigrateFeature,
|
|
3715
3716
|
SiteType,
|
|
3716
3717
|
SiteVisibility,
|
|
3717
|
-
SpaceBlockReason,
|
|
3718
3718
|
SpaceEditMode,
|
|
3719
3719
|
TeamMemberRole
|
|
3720
3720
|
};
|