@gitbook/api 0.183.1 → 0.184.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 +123 -87
- package/dist/constants.d.ts +1 -1
- package/dist/index.cjs +14 -7
- package/dist/index.js +14 -7
- package/package.json +1 -1
- package/spec/openapi.json +313 -244
- package/spec/openapi.yaml +201 -159
package/dist/client.d.ts
CHANGED
|
@@ -82,11 +82,6 @@ export declare enum RevisionSemanticChangeType {
|
|
|
82
82
|
export declare enum GitBookUsers {
|
|
83
83
|
GitbookAgent = "gitbook:agent"
|
|
84
84
|
}
|
|
85
|
-
/** Which side should be treated as the source of truth when Git Sync is configured. */
|
|
86
|
-
export declare enum GitSyncInstallationPriority {
|
|
87
|
-
Git = "git",
|
|
88
|
-
Gitbook = "gitbook"
|
|
89
|
-
}
|
|
90
85
|
/** The provider of the Git Sync installation. */
|
|
91
86
|
export declare enum GitSyncInstallationProvider {
|
|
92
87
|
Github = "github",
|
|
@@ -633,6 +628,11 @@ export declare enum CustomizationTheme {
|
|
|
633
628
|
Bold = "bold",
|
|
634
629
|
Gradient = "gradient"
|
|
635
630
|
}
|
|
631
|
+
/** Which side should be treated as the source of truth when Git Sync is configured. */
|
|
632
|
+
export declare enum GitSyncInstallationPriority {
|
|
633
|
+
Git = "git",
|
|
634
|
+
Gitbook = "gitbook"
|
|
635
|
+
}
|
|
636
636
|
export declare enum StorageUploadKind {
|
|
637
637
|
CustomizationFont = "customization_font",
|
|
638
638
|
ImportFile = "import_file"
|
|
@@ -1099,18 +1099,6 @@ export declare enum ContentVisibility {
|
|
|
1099
1099
|
export type APIChannelData = APIChannelGitSyncOperationData | APIChannelSpaceContentRefsData | APIChannelChangeRequestContentRefsData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
|
|
1100
1100
|
/** Channel to subscribe to for realtime updates. */
|
|
1101
1101
|
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceContentRefs | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelChangeRequestContentRefs | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
|
|
1102
|
-
/** Resource targeted by a Git Sync installation. */
|
|
1103
|
-
export type GitSyncInstallationTarget = {
|
|
1104
|
-
/** Type of resource targeted by the Git Sync installation. */
|
|
1105
|
-
type: "space";
|
|
1106
|
-
/** Unique identifier of the space targeted by the Git Sync installation. */
|
|
1107
|
-
spaceId: string;
|
|
1108
|
-
} | {
|
|
1109
|
-
/** Type of resource targeted by the Git Sync installation. */
|
|
1110
|
-
type: "site";
|
|
1111
|
-
/** Unique identifier of the site targeted by the Git Sync installation. */
|
|
1112
|
-
siteId: string;
|
|
1113
|
-
};
|
|
1114
1102
|
export type PublishedContentRedirect = {
|
|
1115
1103
|
/** Type of target for the redirect */
|
|
1116
1104
|
target: "application" | "content";
|
|
@@ -1125,6 +1113,18 @@ export type PublishedContentRedirect = {
|
|
|
1125
1113
|
/** Result of a search */
|
|
1126
1114
|
export type AIToolCallSearchResult = AIToolCallSearchResultPage | AIToolCallSearchResultRecord;
|
|
1127
1115
|
export type SiteQuestionAnswerSource = SiteQuestionAnswerSourcePage | SiteQuestionAnswerSourceRecord;
|
|
1116
|
+
/** Resource targeted by a Git Sync installation. */
|
|
1117
|
+
export type GitSyncInstallationTarget = {
|
|
1118
|
+
/** Type of resource targeted by the Git Sync installation. */
|
|
1119
|
+
type: "space";
|
|
1120
|
+
/** Unique identifier of the space targeted by the Git Sync installation. */
|
|
1121
|
+
spaceId: string;
|
|
1122
|
+
} | {
|
|
1123
|
+
/** Type of resource targeted by the Git Sync installation. */
|
|
1124
|
+
type: "site";
|
|
1125
|
+
/** Unique identifier of the site targeted by the Git Sync installation. */
|
|
1126
|
+
siteId: string;
|
|
1127
|
+
};
|
|
1128
1128
|
export type SearchAIAnswerSource = SearchAIAnswerSourcePage | SearchAIAnswerSourceRecord;
|
|
1129
1129
|
/** Element used as root */
|
|
1130
1130
|
export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
|
|
@@ -2300,6 +2300,8 @@ export interface DocumentBlockOpenAPIOperation {
|
|
|
2300
2300
|
key?: string;
|
|
2301
2301
|
data: OpenAPIOperationPointer & {
|
|
2302
2302
|
ref: ContentRefOpenAPI;
|
|
2303
|
+
/** When true, the block omits its own title and description; the page renders them instead. Set by the computed one-operation-per-page layout; not intended to be set manually. */
|
|
2304
|
+
headless?: boolean;
|
|
2303
2305
|
};
|
|
2304
2306
|
isVoid: true;
|
|
2305
2307
|
meta?: {
|
|
@@ -2345,6 +2347,8 @@ export interface DocumentBlockOpenAPIWebhook {
|
|
|
2345
2347
|
key?: string;
|
|
2346
2348
|
data: OpenAPIWebhookPointer & {
|
|
2347
2349
|
ref: ContentRefOpenAPI;
|
|
2350
|
+
/** When true, the block omits its own title and description; the page renders them instead. Set by the computed one-operation-per-page layout; not intended to be set manually. */
|
|
2351
|
+
headless?: boolean;
|
|
2348
2352
|
};
|
|
2349
2353
|
isVoid: true;
|
|
2350
2354
|
meta?: {
|
|
@@ -5846,6 +5850,74 @@ export type SitePublishOperationPreviewResponse = {
|
|
|
5846
5850
|
type: "checkout";
|
|
5847
5851
|
invoice?: BillingInvoicePreview;
|
|
5848
5852
|
};
|
|
5853
|
+
/** Common setup fields for a Git Sync installation. */
|
|
5854
|
+
export interface GitSyncInstallationSetupCommon {
|
|
5855
|
+
/** Optional directory used when syncing a monorepo subdirectory. */
|
|
5856
|
+
projectDirectory?: string;
|
|
5857
|
+
/** Optional template used when generating commit messages. */
|
|
5858
|
+
commitMessageTemplate?: string;
|
|
5859
|
+
/**
|
|
5860
|
+
* Whether previews should be generated from branches outside the configured branch.
|
|
5861
|
+
* @default false
|
|
5862
|
+
*/
|
|
5863
|
+
previewExternalBranches?: boolean;
|
|
5864
|
+
/** Which side should be treated as the source of truth when Git Sync is configured. */
|
|
5865
|
+
priority?: GitSyncInstallationPriority;
|
|
5866
|
+
}
|
|
5867
|
+
/** GitHub provider configuration for a Git Sync installation. */
|
|
5868
|
+
export interface GitSyncInstallationSetupGitHub {
|
|
5869
|
+
provider: "github";
|
|
5870
|
+
/** GitHub specific configuration for the Git Sync installation. */
|
|
5871
|
+
providerConfiguration: {
|
|
5872
|
+
/** GitHub repository identifier. */
|
|
5873
|
+
repositoryId?: number;
|
|
5874
|
+
/**
|
|
5875
|
+
* GitHub repository branch ref.
|
|
5876
|
+
* @pattern ^refs/heads/.+$
|
|
5877
|
+
*/
|
|
5878
|
+
branch?: string;
|
|
5879
|
+
};
|
|
5880
|
+
}
|
|
5881
|
+
/** GitLab provider configuration for a Git Sync installation. */
|
|
5882
|
+
export interface GitSyncInstallationSetupGitLab {
|
|
5883
|
+
provider: "gitlab";
|
|
5884
|
+
/** GitLab specific configuration for the Git Sync installation. */
|
|
5885
|
+
providerConfiguration: {
|
|
5886
|
+
/** GitLab project identifier. */
|
|
5887
|
+
projectId?: number;
|
|
5888
|
+
/** GitLab access token with appropriate scopes for repository access. */
|
|
5889
|
+
accessToken?: string;
|
|
5890
|
+
/** Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL. */
|
|
5891
|
+
customInstanceURL?: string | null;
|
|
5892
|
+
/**
|
|
5893
|
+
* GitLab repository branch ref.
|
|
5894
|
+
* @pattern ^refs/heads/.+$
|
|
5895
|
+
*/
|
|
5896
|
+
branch?: string;
|
|
5897
|
+
};
|
|
5898
|
+
}
|
|
5899
|
+
/** Provider-specific setup payload for a Git Sync installation. */
|
|
5900
|
+
export type GitSyncInstallationSetup = GitSyncInstallationSetupCommon & (GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab);
|
|
5901
|
+
export type GitSyncInstallation = GitSyncInstallationSetup & {
|
|
5902
|
+
object: "git-sync-installation";
|
|
5903
|
+
/** Unique identifier of the Git Sync installation. */
|
|
5904
|
+
id: string;
|
|
5905
|
+
/** Resource targeted by a Git Sync installation. */
|
|
5906
|
+
target: GitSyncInstallationTarget;
|
|
5907
|
+
status: GitSyncInstallationStatus;
|
|
5908
|
+
createdAt: Timestamp;
|
|
5909
|
+
/** Identifier of the user who created the installation. */
|
|
5910
|
+
createdBy: string;
|
|
5911
|
+
updatedAt: Timestamp;
|
|
5912
|
+
/** URLs associated with the installation */
|
|
5913
|
+
urls: {
|
|
5914
|
+
/**
|
|
5915
|
+
* URL of the installation endpoint in the API
|
|
5916
|
+
* @format uri
|
|
5917
|
+
*/
|
|
5918
|
+
location: string;
|
|
5919
|
+
};
|
|
5920
|
+
};
|
|
5849
5921
|
export type SiteAdaptiveDeterministicJSONSchemaPrimitives = {
|
|
5850
5922
|
type: "boolean";
|
|
5851
5923
|
description: string;
|
|
@@ -6151,7 +6223,7 @@ export interface SiteCustomizationSettingsBase {
|
|
|
6151
6223
|
* by default if missing, otherwise keeping its position) when the assistant is enabled, and
|
|
6152
6224
|
* always absent when it is disabled.
|
|
6153
6225
|
*/
|
|
6154
|
-
items
|
|
6226
|
+
items: CustomizationPageActionType[];
|
|
6155
6227
|
};
|
|
6156
6228
|
externalLinks: {
|
|
6157
6229
|
/**
|
|
@@ -8208,74 +8280,6 @@ export interface SiteVisitorPayload {
|
|
|
8208
8280
|
jwtToken?: string;
|
|
8209
8281
|
unsignedClaims?: PlainObject;
|
|
8210
8282
|
}
|
|
8211
|
-
/** Common setup fields for a Git Sync installation. */
|
|
8212
|
-
export interface GitSyncInstallationSetupCommon {
|
|
8213
|
-
/** Optional directory used when syncing a monorepo subdirectory. */
|
|
8214
|
-
projectDirectory?: string;
|
|
8215
|
-
/** Optional template used when generating commit messages. */
|
|
8216
|
-
commitMessageTemplate?: string;
|
|
8217
|
-
/**
|
|
8218
|
-
* Whether previews should be generated from branches outside the configured branch.
|
|
8219
|
-
* @default false
|
|
8220
|
-
*/
|
|
8221
|
-
previewExternalBranches?: boolean;
|
|
8222
|
-
/** Which side should be treated as the source of truth when Git Sync is configured. */
|
|
8223
|
-
priority?: GitSyncInstallationPriority;
|
|
8224
|
-
}
|
|
8225
|
-
/** GitHub provider configuration for a Git Sync installation. */
|
|
8226
|
-
export interface GitSyncInstallationSetupGitHub {
|
|
8227
|
-
provider: "github";
|
|
8228
|
-
/** GitHub specific configuration for the Git Sync installation. */
|
|
8229
|
-
providerConfiguration: {
|
|
8230
|
-
/** GitHub repository identifier. */
|
|
8231
|
-
repositoryId?: number;
|
|
8232
|
-
/**
|
|
8233
|
-
* GitHub repository branch ref.
|
|
8234
|
-
* @pattern ^refs/heads/.+$
|
|
8235
|
-
*/
|
|
8236
|
-
branch?: string;
|
|
8237
|
-
};
|
|
8238
|
-
}
|
|
8239
|
-
/** GitLab provider configuration for a Git Sync installation. */
|
|
8240
|
-
export interface GitSyncInstallationSetupGitLab {
|
|
8241
|
-
provider: "gitlab";
|
|
8242
|
-
/** GitLab specific configuration for the Git Sync installation. */
|
|
8243
|
-
providerConfiguration: {
|
|
8244
|
-
/** GitLab project identifier. */
|
|
8245
|
-
projectId?: number;
|
|
8246
|
-
/** GitLab access token with appropriate scopes for repository access. */
|
|
8247
|
-
accessToken?: string;
|
|
8248
|
-
/** Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL. */
|
|
8249
|
-
customInstanceURL?: string | null;
|
|
8250
|
-
/**
|
|
8251
|
-
* GitLab repository branch ref.
|
|
8252
|
-
* @pattern ^refs/heads/.+$
|
|
8253
|
-
*/
|
|
8254
|
-
branch?: string;
|
|
8255
|
-
};
|
|
8256
|
-
}
|
|
8257
|
-
/** Provider-specific setup payload for a Git Sync installation. */
|
|
8258
|
-
export type GitSyncInstallationSetup = GitSyncInstallationSetupCommon & (GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab);
|
|
8259
|
-
export type GitSyncInstallation = GitSyncInstallationSetup & {
|
|
8260
|
-
object: "git-sync-installation";
|
|
8261
|
-
/** Unique identifier of the Git Sync installation. */
|
|
8262
|
-
id: string;
|
|
8263
|
-
/** Resource targeted by a Git Sync installation. */
|
|
8264
|
-
target: GitSyncInstallationTarget;
|
|
8265
|
-
status: GitSyncInstallationStatus;
|
|
8266
|
-
createdAt: Timestamp;
|
|
8267
|
-
/** Identifier of the user who created the installation. */
|
|
8268
|
-
createdBy: string;
|
|
8269
|
-
updatedAt: Timestamp;
|
|
8270
|
-
/** URLs associated with the installation */
|
|
8271
|
-
urls: {
|
|
8272
|
-
/**
|
|
8273
|
-
* URL of the installation endpoint in the API
|
|
8274
|
-
* @format uri
|
|
8275
|
-
*/
|
|
8276
|
-
location: string;
|
|
8277
|
-
};
|
|
8278
|
-
};
|
|
8279
8283
|
/** GitHub repository that can be selected for Git Sync. */
|
|
8280
8284
|
export interface GitSyncGitHubRepository {
|
|
8281
8285
|
id: number;
|
|
@@ -11811,7 +11815,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11811
11815
|
*/
|
|
11812
11816
|
queueIntegrationTask: (integrationName: string, data: {
|
|
11813
11817
|
/** Payload for the integration task */
|
|
11814
|
-
task:
|
|
11818
|
+
task: object;
|
|
11815
11819
|
/**
|
|
11816
11820
|
* Number of seconds to wait before executing the task, defaults to 0
|
|
11817
11821
|
* @min 0
|
|
@@ -13568,6 +13572,36 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13568
13572
|
* @secure
|
|
13569
13573
|
*/
|
|
13570
13574
|
deleteSiteById: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13575
|
+
/**
|
|
13576
|
+
* No description
|
|
13577
|
+
*
|
|
13578
|
+
* @tags git
|
|
13579
|
+
* @name ListSiteGitSyncInstallations
|
|
13580
|
+
* @summary List the Git Sync installations for a site and its spaces
|
|
13581
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/git/installations
|
|
13582
|
+
* @secure
|
|
13583
|
+
*/
|
|
13584
|
+
listSiteGitSyncInstallations: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
13585
|
+
items: GitSyncInstallation[];
|
|
13586
|
+
}, {
|
|
13587
|
+
error: {
|
|
13588
|
+
/** @format int32 */
|
|
13589
|
+
code: 400;
|
|
13590
|
+
message: string;
|
|
13591
|
+
};
|
|
13592
|
+
} | {
|
|
13593
|
+
error: {
|
|
13594
|
+
/** @format int32 */
|
|
13595
|
+
code: 401;
|
|
13596
|
+
message: string;
|
|
13597
|
+
};
|
|
13598
|
+
} | {
|
|
13599
|
+
error: {
|
|
13600
|
+
/** @format int32 */
|
|
13601
|
+
code: 404;
|
|
13602
|
+
message: string;
|
|
13603
|
+
};
|
|
13604
|
+
}>>;
|
|
13571
13605
|
/**
|
|
13572
13606
|
* No description
|
|
13573
13607
|
*
|
|
@@ -14319,6 +14353,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14319
14353
|
type?: SiteFindingType;
|
|
14320
14354
|
/** Filter findings by estimated severity. */
|
|
14321
14355
|
severity?: SiteFindingSeverity;
|
|
14356
|
+
/** Filter findings that have at least one associated change request. */
|
|
14357
|
+
hasChangeRequests?: boolean;
|
|
14322
14358
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
14323
14359
|
items: SiteFinding[];
|
|
14324
14360
|
}, any>>;
|
package/dist/constants.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
|
110
110
|
export declare const FONT_FAMILY_MIN_LENGTH = 1;
|
|
111
111
|
export declare const STORAGE_FILE_KEY_MAX_LENGTH = 512;
|
|
112
112
|
export declare const STORAGE_FILE_KEY_MIN_LENGTH = 1;
|
|
113
|
+
export declare const GIT_SYNC_INSTALLATION_PRIORITY_ENUM: ["git", "gitbook"];
|
|
113
114
|
export declare const CUSTOMIZATION_THEME_ENUM: ["clean", "muted", "bold", "gradient"];
|
|
114
115
|
export declare const COLOR_PATTERN = "^#(?:[0-9a-fA-F]{3}){1,2}$";
|
|
115
116
|
export declare const CUSTOMIZATION_CORNERS_ENUM: ["straight", "rounded", "circular"];
|
|
@@ -194,7 +195,6 @@ export declare const CLOUDFLARE_HOSTNAME_STATUS_ENUM: ["pending", "active", "blo
|
|
|
194
195
|
export declare const CLOUDFLARE_HOSTNAME_TLSSTATUS_ENUM: ["initializing", "pending_validation", "pending_issuance", "pending_deployment", "active", "pending_deletion", "pending_cleanup", "deleted"];
|
|
195
196
|
export declare const CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM: ["http", "txt", "email"];
|
|
196
197
|
export declare const GIT_SYNC_INSTALLATION_PROVIDER_ENUM: ["github", "gitlab"];
|
|
197
|
-
export declare const GIT_SYNC_INSTALLATION_PRIORITY_ENUM: ["git", "gitbook"];
|
|
198
198
|
export declare const SHA256_MAX_LENGTH = 64;
|
|
199
199
|
export declare const SHA256_MIN_LENGTH = 64;
|
|
200
200
|
export declare const GIT_BOOK_USERS_ENUM: ["gitbook:agent"];
|
package/dist/index.cjs
CHANGED
|
@@ -523,7 +523,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
523
523
|
|
|
524
524
|
// package.json
|
|
525
525
|
var name = "@gitbook/api";
|
|
526
|
-
var version = "0.
|
|
526
|
+
var version = "0.184.0";
|
|
527
527
|
|
|
528
528
|
// src/client.ts
|
|
529
529
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -707,11 +707,6 @@ var GitBookUsers = /* @__PURE__ */ ((GitBookUsers2) => {
|
|
|
707
707
|
GitBookUsers2["GitbookAgent"] = "gitbook:agent";
|
|
708
708
|
return GitBookUsers2;
|
|
709
709
|
})(GitBookUsers || {});
|
|
710
|
-
var GitSyncInstallationPriority = /* @__PURE__ */ ((GitSyncInstallationPriority2) => {
|
|
711
|
-
GitSyncInstallationPriority2["Git"] = "git";
|
|
712
|
-
GitSyncInstallationPriority2["Gitbook"] = "gitbook";
|
|
713
|
-
return GitSyncInstallationPriority2;
|
|
714
|
-
})(GitSyncInstallationPriority || {});
|
|
715
710
|
var GitSyncInstallationProvider = /* @__PURE__ */ ((GitSyncInstallationProvider2) => {
|
|
716
711
|
GitSyncInstallationProvider2["Github"] = "github";
|
|
717
712
|
GitSyncInstallationProvider2["Gitlab"] = "gitlab";
|
|
@@ -1237,6 +1232,11 @@ var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
|
|
|
1237
1232
|
CustomizationTheme2["Gradient"] = "gradient";
|
|
1238
1233
|
return CustomizationTheme2;
|
|
1239
1234
|
})(CustomizationTheme || {});
|
|
1235
|
+
var GitSyncInstallationPriority = /* @__PURE__ */ ((GitSyncInstallationPriority2) => {
|
|
1236
|
+
GitSyncInstallationPriority2["Git"] = "git";
|
|
1237
|
+
GitSyncInstallationPriority2["Gitbook"] = "gitbook";
|
|
1238
|
+
return GitSyncInstallationPriority2;
|
|
1239
|
+
})(GitSyncInstallationPriority || {});
|
|
1240
1240
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
1241
1241
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
1242
1242
|
StorageUploadKind2["ImportFile"] = "import_file";
|
|
@@ -3674,6 +3674,13 @@ var Api = class extends HttpClient {
|
|
|
3674
3674
|
secure: true,
|
|
3675
3675
|
...params
|
|
3676
3676
|
}),
|
|
3677
|
+
listSiteGitSyncInstallations: (organizationId, siteId, params = {}) => this.request({
|
|
3678
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/git/installations`,
|
|
3679
|
+
method: "GET",
|
|
3680
|
+
secure: true,
|
|
3681
|
+
format: "json",
|
|
3682
|
+
...params
|
|
3683
|
+
}),
|
|
3677
3684
|
getSiteAdaptiveSchema: (organizationId, siteId, params = {}) => this.request({
|
|
3678
3685
|
path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
|
|
3679
3686
|
method: "GET",
|
|
@@ -4807,6 +4814,7 @@ var FONT_FAMILY_MAX_LENGTH = 50;
|
|
|
4807
4814
|
var FONT_FAMILY_MIN_LENGTH = 1;
|
|
4808
4815
|
var STORAGE_FILE_KEY_MAX_LENGTH = 512;
|
|
4809
4816
|
var STORAGE_FILE_KEY_MIN_LENGTH = 1;
|
|
4817
|
+
var GIT_SYNC_INSTALLATION_PRIORITY_ENUM = ["git", "gitbook"];
|
|
4810
4818
|
var CUSTOMIZATION_THEME_ENUM = ["clean", "muted", "bold", "gradient"];
|
|
4811
4819
|
var COLOR_PATTERN = "^#(?:[0-9a-fA-F]{3}){1,2}$";
|
|
4812
4820
|
var CUSTOMIZATION_CORNERS_ENUM = ["straight", "rounded", "circular"];
|
|
@@ -4891,7 +4899,6 @@ var CLOUDFLARE_HOSTNAME_STATUS_ENUM = ["pending", "active", "blocked", "moved",
|
|
|
4891
4899
|
var CLOUDFLARE_HOSTNAME_TLSSTATUS_ENUM = ["initializing", "pending_validation", "pending_issuance", "pending_deployment", "active", "pending_deletion", "pending_cleanup", "deleted"];
|
|
4892
4900
|
var CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM = ["http", "txt", "email"];
|
|
4893
4901
|
var GIT_SYNC_INSTALLATION_PROVIDER_ENUM = ["github", "gitlab"];
|
|
4894
|
-
var GIT_SYNC_INSTALLATION_PRIORITY_ENUM = ["git", "gitbook"];
|
|
4895
4902
|
var SHA256_MAX_LENGTH = 64;
|
|
4896
4903
|
var SHA256_MIN_LENGTH = 64;
|
|
4897
4904
|
var GIT_BOOK_USERS_ENUM = ["gitbook:agent"];
|
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.184.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -356,11 +356,6 @@ var GitBookUsers = /* @__PURE__ */ ((GitBookUsers2) => {
|
|
|
356
356
|
GitBookUsers2["GitbookAgent"] = "gitbook:agent";
|
|
357
357
|
return GitBookUsers2;
|
|
358
358
|
})(GitBookUsers || {});
|
|
359
|
-
var GitSyncInstallationPriority = /* @__PURE__ */ ((GitSyncInstallationPriority2) => {
|
|
360
|
-
GitSyncInstallationPriority2["Git"] = "git";
|
|
361
|
-
GitSyncInstallationPriority2["Gitbook"] = "gitbook";
|
|
362
|
-
return GitSyncInstallationPriority2;
|
|
363
|
-
})(GitSyncInstallationPriority || {});
|
|
364
359
|
var GitSyncInstallationProvider = /* @__PURE__ */ ((GitSyncInstallationProvider2) => {
|
|
365
360
|
GitSyncInstallationProvider2["Github"] = "github";
|
|
366
361
|
GitSyncInstallationProvider2["Gitlab"] = "gitlab";
|
|
@@ -886,6 +881,11 @@ var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
|
|
|
886
881
|
CustomizationTheme2["Gradient"] = "gradient";
|
|
887
882
|
return CustomizationTheme2;
|
|
888
883
|
})(CustomizationTheme || {});
|
|
884
|
+
var GitSyncInstallationPriority = /* @__PURE__ */ ((GitSyncInstallationPriority2) => {
|
|
885
|
+
GitSyncInstallationPriority2["Git"] = "git";
|
|
886
|
+
GitSyncInstallationPriority2["Gitbook"] = "gitbook";
|
|
887
|
+
return GitSyncInstallationPriority2;
|
|
888
|
+
})(GitSyncInstallationPriority || {});
|
|
889
889
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
890
890
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
891
891
|
StorageUploadKind2["ImportFile"] = "import_file";
|
|
@@ -3323,6 +3323,13 @@ var Api = class extends HttpClient {
|
|
|
3323
3323
|
secure: true,
|
|
3324
3324
|
...params
|
|
3325
3325
|
}),
|
|
3326
|
+
listSiteGitSyncInstallations: (organizationId, siteId, params = {}) => this.request({
|
|
3327
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/git/installations`,
|
|
3328
|
+
method: "GET",
|
|
3329
|
+
secure: true,
|
|
3330
|
+
format: "json",
|
|
3331
|
+
...params
|
|
3332
|
+
}),
|
|
3326
3333
|
getSiteAdaptiveSchema: (organizationId, siteId, params = {}) => this.request({
|
|
3327
3334
|
path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
|
|
3328
3335
|
method: "GET",
|
|
@@ -4456,6 +4463,7 @@ var FONT_FAMILY_MAX_LENGTH = 50;
|
|
|
4456
4463
|
var FONT_FAMILY_MIN_LENGTH = 1;
|
|
4457
4464
|
var STORAGE_FILE_KEY_MAX_LENGTH = 512;
|
|
4458
4465
|
var STORAGE_FILE_KEY_MIN_LENGTH = 1;
|
|
4466
|
+
var GIT_SYNC_INSTALLATION_PRIORITY_ENUM = ["git", "gitbook"];
|
|
4459
4467
|
var CUSTOMIZATION_THEME_ENUM = ["clean", "muted", "bold", "gradient"];
|
|
4460
4468
|
var COLOR_PATTERN = "^#(?:[0-9a-fA-F]{3}){1,2}$";
|
|
4461
4469
|
var CUSTOMIZATION_CORNERS_ENUM = ["straight", "rounded", "circular"];
|
|
@@ -4540,7 +4548,6 @@ var CLOUDFLARE_HOSTNAME_STATUS_ENUM = ["pending", "active", "blocked", "moved",
|
|
|
4540
4548
|
var CLOUDFLARE_HOSTNAME_TLSSTATUS_ENUM = ["initializing", "pending_validation", "pending_issuance", "pending_deployment", "active", "pending_deletion", "pending_cleanup", "deleted"];
|
|
4541
4549
|
var CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM = ["http", "txt", "email"];
|
|
4542
4550
|
var GIT_SYNC_INSTALLATION_PROVIDER_ENUM = ["github", "gitlab"];
|
|
4543
|
-
var GIT_SYNC_INSTALLATION_PRIORITY_ENUM = ["git", "gitbook"];
|
|
4544
4551
|
var SHA256_MAX_LENGTH = 64;
|
|
4545
4552
|
var SHA256_MIN_LENGTH = 64;
|
|
4546
4553
|
var GIT_BOOK_USERS_ENUM = ["gitbook:agent"];
|