@gitbook/api 0.113.0 → 0.115.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 +112 -60
- package/dist/index.cjs +12 -1
- package/dist/index.js +12 -1
- package/package.json +1 -1
- package/spec/openapi.json +351 -264
- package/spec/openapi.yaml +241 -166
package/dist/client.d.ts
CHANGED
|
@@ -1708,8 +1708,11 @@ export interface Organization {
|
|
|
1708
1708
|
blocked?: {
|
|
1709
1709
|
reason: OrganizationBlockReason;
|
|
1710
1710
|
};
|
|
1711
|
-
/**
|
|
1712
|
-
|
|
1711
|
+
/**
|
|
1712
|
+
* Deprecated. Always true. All organizations are on new trials.
|
|
1713
|
+
* @deprecated
|
|
1714
|
+
*/
|
|
1715
|
+
internal_isOnNewTrial?: true;
|
|
1713
1716
|
internal_billingMigration?: {
|
|
1714
1717
|
/** When we will upgrade the organization onto new pricing, if they haven't already. */
|
|
1715
1718
|
deadline?: Timestamp;
|
|
@@ -1726,16 +1729,18 @@ export interface Organization {
|
|
|
1726
1729
|
admin: boolean;
|
|
1727
1730
|
/** Is the user a team owner. */
|
|
1728
1731
|
ownTeam: boolean;
|
|
1732
|
+
/** Can the user create new spaces/collections in the organization. */
|
|
1733
|
+
createContent: boolean;
|
|
1734
|
+
/** Can the user create new OpenAPI specifications. */
|
|
1735
|
+
createOpenAPISpec: boolean;
|
|
1729
1736
|
/** Can the user view the billing details of the organization. */
|
|
1730
|
-
viewBilling
|
|
1737
|
+
viewBilling: boolean;
|
|
1731
1738
|
/** Can the user list the members of the organization. */
|
|
1732
|
-
listMembers
|
|
1739
|
+
listMembers: boolean;
|
|
1733
1740
|
/** Can the user list the teams in the organization. */
|
|
1734
|
-
listTeams
|
|
1735
|
-
/** Can the user create new spaces/collections in the organization. */
|
|
1736
|
-
createContent: boolean;
|
|
1741
|
+
listTeams: boolean;
|
|
1737
1742
|
/** Can the user list the integrations in the organization. */
|
|
1738
|
-
listIntegrations
|
|
1743
|
+
listIntegrations: boolean;
|
|
1739
1744
|
};
|
|
1740
1745
|
}
|
|
1741
1746
|
export interface ContentLocationRevisionContext {
|
|
@@ -2027,6 +2032,17 @@ export type Comment = {
|
|
|
2027
2032
|
*/
|
|
2028
2033
|
location: string;
|
|
2029
2034
|
};
|
|
2035
|
+
/** The set of permissions for the comment */
|
|
2036
|
+
permissions: {
|
|
2037
|
+
/** Can the user view the comment. */
|
|
2038
|
+
view: boolean;
|
|
2039
|
+
/** Can the user edit the comment. */
|
|
2040
|
+
edit: boolean;
|
|
2041
|
+
/** Can the user react or send a reply to the comment. */
|
|
2042
|
+
reply?: boolean;
|
|
2043
|
+
/** Can the user delete the comment. */
|
|
2044
|
+
delete: boolean;
|
|
2045
|
+
};
|
|
2030
2046
|
} & ({
|
|
2031
2047
|
/** Status of the comment. */
|
|
2032
2048
|
status: 'resolved';
|
|
@@ -2115,6 +2131,17 @@ export interface CommentReply {
|
|
|
2115
2131
|
*/
|
|
2116
2132
|
location: string;
|
|
2117
2133
|
};
|
|
2134
|
+
/** The set of permissions for the comment reply */
|
|
2135
|
+
permissions: {
|
|
2136
|
+
/** Can the user view the comment reply. */
|
|
2137
|
+
view: boolean;
|
|
2138
|
+
/** Can the user edit the comment reply. */
|
|
2139
|
+
edit: boolean;
|
|
2140
|
+
/** Can the user react or reply to the comment reply. */
|
|
2141
|
+
reply?: boolean;
|
|
2142
|
+
/** Can the user delete the comment reply. */
|
|
2143
|
+
delete: boolean;
|
|
2144
|
+
};
|
|
2118
2145
|
}
|
|
2119
2146
|
export interface PostCommentReplySchema {
|
|
2120
2147
|
/** The content of the comment. */
|
|
@@ -2460,6 +2487,8 @@ export declare enum IntegrationScope {
|
|
|
2460
2487
|
SiteScriptInject = "site:script:inject",
|
|
2461
2488
|
SiteScriptCookies = "site:script:cookies",
|
|
2462
2489
|
SiteVisitorAuth = "site:visitor:auth",
|
|
2490
|
+
SiteAdaptiveRead = "site:adaptive:read",
|
|
2491
|
+
SiteAdaptiveWrite = "site:adaptive:write",
|
|
2463
2492
|
OpenapiRead = "openapi:read",
|
|
2464
2493
|
OpenapiWrite = "openapi:write"
|
|
2465
2494
|
}
|
|
@@ -3182,6 +3211,16 @@ export declare enum SiteType {
|
|
|
3182
3211
|
* @maxLength 128
|
|
3183
3212
|
*/
|
|
3184
3213
|
export type SiteTitle = string;
|
|
3214
|
+
export interface CustomizationThemedURL {
|
|
3215
|
+
light: URL;
|
|
3216
|
+
dark: URL;
|
|
3217
|
+
}
|
|
3218
|
+
export type CustomizationFavicon = {
|
|
3219
|
+
icon: CustomizationThemedURL;
|
|
3220
|
+
} | {
|
|
3221
|
+
/** Unicode codepoint or character of the emoji */
|
|
3222
|
+
emoji: Emoji;
|
|
3223
|
+
} | object;
|
|
3185
3224
|
/**
|
|
3186
3225
|
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
3187
3226
|
* @maxLength 512
|
|
@@ -3284,6 +3323,7 @@ export interface Site {
|
|
|
3284
3323
|
type: SiteType;
|
|
3285
3324
|
/** Title of the site */
|
|
3286
3325
|
title: SiteTitle;
|
|
3326
|
+
icon?: CustomizationFavicon | null;
|
|
3287
3327
|
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
3288
3328
|
hostname?: SiteHostname;
|
|
3289
3329
|
/** Basename for the site. For e.g. api */
|
|
@@ -3927,6 +3967,8 @@ export interface InviteLinkToCollection {
|
|
|
3927
3967
|
id: string;
|
|
3928
3968
|
/** The level of the member in the target collection */
|
|
3929
3969
|
level: MemberRoleOrGuest;
|
|
3970
|
+
/** An invite is redundant if the requesting user already has all necessary permissions. */
|
|
3971
|
+
redundant: boolean;
|
|
3930
3972
|
/** The collection the member has been invited to */
|
|
3931
3973
|
collection: Collection;
|
|
3932
3974
|
}
|
|
@@ -3938,6 +3980,8 @@ export interface InviteLinkToSpace {
|
|
|
3938
3980
|
id: string;
|
|
3939
3981
|
/** The level of the member in the target space */
|
|
3940
3982
|
level: MemberRoleOrGuest;
|
|
3983
|
+
/** An invite is redundant if the requesting user already has all necessary permissions. */
|
|
3984
|
+
redundant: boolean;
|
|
3941
3985
|
/** The space the member has been invited to */
|
|
3942
3986
|
space: Space;
|
|
3943
3987
|
}
|
|
@@ -3947,8 +3991,10 @@ export interface InviteLinkToOrganization {
|
|
|
3947
3991
|
object: 'invite';
|
|
3948
3992
|
/** Unique identifier for the invite link to the organization */
|
|
3949
3993
|
id: string;
|
|
3950
|
-
/** The role
|
|
3994
|
+
/** The role in the organization the invite link is for */
|
|
3951
3995
|
role: MemberRoleOrGuest;
|
|
3996
|
+
/** An invite is redundant if the requesting user already has all necessary permissions. */
|
|
3997
|
+
redundant: boolean;
|
|
3952
3998
|
}
|
|
3953
3999
|
export interface CreateInviteToOrganization {
|
|
3954
4000
|
/** The role of the member in the organization */
|
|
@@ -4094,11 +4140,6 @@ export interface CreateSpace {
|
|
|
4094
4140
|
title?: string;
|
|
4095
4141
|
/** Unicode codepoint or character of the emoji */
|
|
4096
4142
|
emoji?: Emoji;
|
|
4097
|
-
/**
|
|
4098
|
-
* Private spaces are no longer supported by GitBook.
|
|
4099
|
-
* @deprecated
|
|
4100
|
-
*/
|
|
4101
|
-
private?: boolean;
|
|
4102
4143
|
/** ID of a parent collection */
|
|
4103
4144
|
parent?: string;
|
|
4104
4145
|
}
|
|
@@ -4459,7 +4500,7 @@ export type BillingOperationPreviewResponse = {
|
|
|
4459
4500
|
plan: BillingProduct;
|
|
4460
4501
|
invoice?: BillingInvoicePreview;
|
|
4461
4502
|
};
|
|
4462
|
-
export type
|
|
4503
|
+
export type SiteAdaptiveJSONSchemaClaimsProperties = {
|
|
4463
4504
|
type: 'boolean';
|
|
4464
4505
|
description: string;
|
|
4465
4506
|
} | {
|
|
@@ -4469,27 +4510,24 @@ export type Properties = Record<string, {
|
|
|
4469
4510
|
} | {
|
|
4470
4511
|
type: 'object';
|
|
4471
4512
|
description: string;
|
|
4472
|
-
properties:
|
|
4513
|
+
properties: Record<string, SiteAdaptiveJSONSchemaClaimsProperties>;
|
|
4473
4514
|
additionalProperties: false;
|
|
4474
|
-
}
|
|
4515
|
+
};
|
|
4475
4516
|
/** JSON schema describing the expected attributes of an Adaptive site schema. */
|
|
4476
4517
|
export interface SiteAdaptiveJSONSchema {
|
|
4477
4518
|
$schema?: 'http://json-schema.org/draft-07/schema#';
|
|
4478
4519
|
$id?: string;
|
|
4479
4520
|
type: 'object';
|
|
4480
|
-
properties:
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
properties: Properties;
|
|
4491
|
-
additionalProperties: false;
|
|
4492
|
-
}>;
|
|
4521
|
+
properties: {
|
|
4522
|
+
/** Unsigned claims of the site visitor. */
|
|
4523
|
+
unsigned?: {
|
|
4524
|
+
type: 'object';
|
|
4525
|
+
description: 'Unsigned claims of the site visitor.';
|
|
4526
|
+
properties: Record<string, SiteAdaptiveJSONSchemaClaimsProperties>;
|
|
4527
|
+
additionalProperties: false;
|
|
4528
|
+
};
|
|
4529
|
+
[key: string]: any;
|
|
4530
|
+
};
|
|
4493
4531
|
additionalProperties: false;
|
|
4494
4532
|
}
|
|
4495
4533
|
export interface SiteAdaptiveSchema {
|
|
@@ -4606,10 +4644,6 @@ export declare enum CustomizationLocale {
|
|
|
4606
4644
|
No = "no",
|
|
4607
4645
|
PtBr = "pt-br"
|
|
4608
4646
|
}
|
|
4609
|
-
export interface CustomizationThemedURL {
|
|
4610
|
-
light: URL;
|
|
4611
|
-
dark: URL;
|
|
4612
|
-
}
|
|
4613
4647
|
/**
|
|
4614
4648
|
* The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
|
|
4615
4649
|
* @deprecated
|
|
@@ -4714,12 +4748,7 @@ export interface SiteCustomizationSettings {
|
|
|
4714
4748
|
/** Language for the UI element */
|
|
4715
4749
|
locale: CustomizationLocale;
|
|
4716
4750
|
};
|
|
4717
|
-
favicon:
|
|
4718
|
-
icon: CustomizationThemedURL;
|
|
4719
|
-
} | {
|
|
4720
|
-
/** Unicode codepoint or character of the emoji */
|
|
4721
|
-
emoji: Emoji;
|
|
4722
|
-
} | object;
|
|
4751
|
+
favicon: CustomizationFavicon;
|
|
4723
4752
|
header: {
|
|
4724
4753
|
/** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
|
|
4725
4754
|
preset: CustomizationHeaderPreset;
|
|
@@ -5522,7 +5551,7 @@ export interface SiteAdsStats {
|
|
|
5522
5551
|
/**
|
|
5523
5552
|
* The source path to redirect from.
|
|
5524
5553
|
* @maxLength 512
|
|
5525
|
-
* @pattern
|
|
5554
|
+
* @pattern ^\/(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+)*$
|
|
5526
5555
|
*/
|
|
5527
5556
|
export type SiteRedirectSourcePath = string;
|
|
5528
5557
|
export interface SiteRedirectDestinationSiteSection {
|
|
@@ -5792,6 +5821,12 @@ export type PublishedSiteContentLookup = {
|
|
|
5792
5821
|
target: 'application' | 'content' | 'external';
|
|
5793
5822
|
redirect: URL;
|
|
5794
5823
|
} | PublishedSiteContent;
|
|
5824
|
+
/** An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims. */
|
|
5825
|
+
export interface SiteVisitorPayload {
|
|
5826
|
+
/** JWT token generated for a visitor auth session. */
|
|
5827
|
+
jwtToken?: string;
|
|
5828
|
+
unsignedClaims?: PlainObject;
|
|
5829
|
+
}
|
|
5795
5830
|
/**
|
|
5796
5831
|
* @minLength 64
|
|
5797
5832
|
* @maxLength 64
|
|
@@ -6477,12 +6512,7 @@ export interface CustomizationSettings {
|
|
|
6477
6512
|
/** Inherit locale from the parent collection. */
|
|
6478
6513
|
inherit: boolean;
|
|
6479
6514
|
};
|
|
6480
|
-
favicon:
|
|
6481
|
-
icon: CustomizationThemedURL;
|
|
6482
|
-
} | {
|
|
6483
|
-
/** Unicode codepoint or character of the emoji */
|
|
6484
|
-
emoji: Emoji;
|
|
6485
|
-
} | object;
|
|
6515
|
+
favicon: CustomizationFavicon;
|
|
6486
6516
|
header: {
|
|
6487
6517
|
/** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
|
|
6488
6518
|
preset: CustomizationHeaderPreset;
|
|
@@ -7212,7 +7242,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7212
7242
|
/**
|
|
7213
7243
|
* No description
|
|
7214
7244
|
*
|
|
7215
|
-
* @tags space-content, links
|
|
7245
|
+
* @tags space-content, links, critical
|
|
7216
7246
|
* @name ListPageLinksInSpace
|
|
7217
7247
|
* @summary List all space page links
|
|
7218
7248
|
* @request GET:/spaces/{spaceId}/content/page/{pageId}/links
|
|
@@ -7542,7 +7572,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7542
7572
|
/**
|
|
7543
7573
|
* No description
|
|
7544
7574
|
*
|
|
7545
|
-
* @tags change-requests-links, links
|
|
7575
|
+
* @tags change-requests-links, links, critical
|
|
7546
7576
|
* @name ListChangeRequestLinks
|
|
7547
7577
|
* @summary List all change request links
|
|
7548
7578
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/links
|
|
@@ -7893,7 +7923,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7893
7923
|
/**
|
|
7894
7924
|
* No description
|
|
7895
7925
|
*
|
|
7896
|
-
* @tags change-request-content
|
|
7926
|
+
* @tags change-request-content, critical
|
|
7897
7927
|
* @name ListPageLinksInChangeRequest
|
|
7898
7928
|
* @summary List all change request links
|
|
7899
7929
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
|
|
@@ -8197,7 +8227,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8197
8227
|
/**
|
|
8198
8228
|
* No description
|
|
8199
8229
|
*
|
|
8200
|
-
* @tags space-comments
|
|
8230
|
+
* @tags space-comments, critical
|
|
8201
8231
|
* @name ListCommentsInSpace
|
|
8202
8232
|
* @summary List all space comments
|
|
8203
8233
|
* @request GET:/spaces/{spaceId}/comments
|
|
@@ -8449,7 +8479,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8449
8479
|
/**
|
|
8450
8480
|
* No description
|
|
8451
8481
|
*
|
|
8452
|
-
* @tags spaces, links
|
|
8482
|
+
* @tags spaces, links, critical
|
|
8453
8483
|
* @name ListSpaceLinks
|
|
8454
8484
|
* @summary Get all links in a space including their status and location where they appear.
|
|
8455
8485
|
* @request GET:/spaces/{spaceId}/links
|
|
@@ -9336,7 +9366,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9336
9366
|
/**
|
|
9337
9367
|
* No description
|
|
9338
9368
|
*
|
|
9339
|
-
* @tags organizations
|
|
9369
|
+
* @tags organizations, critical
|
|
9340
9370
|
* @name ListOrganizationsForAuthenticatedUser
|
|
9341
9371
|
* @summary Get the list of organizations for the currently authenticated user
|
|
9342
9372
|
* @request GET:/orgs
|
|
@@ -9437,7 +9467,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9437
9467
|
/**
|
|
9438
9468
|
* No description
|
|
9439
9469
|
*
|
|
9440
|
-
* @tags organization-members
|
|
9470
|
+
* @tags organization-members, critical
|
|
9441
9471
|
* @name GetMemberInOrganizationById
|
|
9442
9472
|
* @summary Get an organization member by its ID
|
|
9443
9473
|
* @request GET:/orgs/{organizationId}/members/{userId}
|
|
@@ -11466,12 +11496,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11466
11496
|
locale: CustomizationLocale | null;
|
|
11467
11497
|
};
|
|
11468
11498
|
/** The favicon to use. Set to null to reset the override. */
|
|
11469
|
-
favicon?:
|
|
11470
|
-
icon: CustomizationThemedURL;
|
|
11471
|
-
} | {
|
|
11472
|
-
/** Unicode codepoint or character of the emoji */
|
|
11473
|
-
emoji: Emoji;
|
|
11474
|
-
} | object | null;
|
|
11499
|
+
favicon?: CustomizationFavicon | null;
|
|
11475
11500
|
announcement?: CustomizationAnnouncement;
|
|
11476
11501
|
header?: {
|
|
11477
11502
|
/** The theme preset to use. Set to null to reset the override. */
|
|
@@ -11977,6 +12002,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11977
12002
|
* @name GetPublishedContentByUrl
|
|
11978
12003
|
* @summary Resolve a URL of a published content.
|
|
11979
12004
|
* @request GET:/urls/published
|
|
12005
|
+
* @deprecated
|
|
11980
12006
|
* @secure
|
|
11981
12007
|
*/
|
|
11982
12008
|
getPublishedContentByUrl: (query: {
|
|
@@ -11996,6 +12022,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11996
12022
|
message: string;
|
|
11997
12023
|
};
|
|
11998
12024
|
}>>;
|
|
12025
|
+
/**
|
|
12026
|
+
* No description
|
|
12027
|
+
*
|
|
12028
|
+
* @tags urls
|
|
12029
|
+
* @name ResolvePublishedContentByUrl
|
|
12030
|
+
* @summary Resolve a URL of a published content.
|
|
12031
|
+
* @request POST:/urls/published
|
|
12032
|
+
* @secure
|
|
12033
|
+
*/
|
|
12034
|
+
resolvePublishedContentByUrl: (data: {
|
|
12035
|
+
/** URL to resolve */
|
|
12036
|
+
url: URL;
|
|
12037
|
+
/**
|
|
12038
|
+
* When true redirects the user to the authentication/fallback URL if the visitor auth token is invalid
|
|
12039
|
+
* @default false
|
|
12040
|
+
*/
|
|
12041
|
+
redirectOnError?: boolean;
|
|
12042
|
+
/** An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims. */
|
|
12043
|
+
visitor?: SiteVisitorPayload;
|
|
12044
|
+
}, params?: RequestParams) => Promise<HttpResponse<PublishedSiteContentLookup, {
|
|
12045
|
+
error: {
|
|
12046
|
+
/** @format int32 */
|
|
12047
|
+
code: 404;
|
|
12048
|
+
message: string;
|
|
12049
|
+
};
|
|
12050
|
+
}>>;
|
|
11999
12051
|
};
|
|
12000
12052
|
}
|
|
12001
12053
|
export {};
|
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.115.0";
|
|
273
273
|
|
|
274
274
|
// src/client.ts
|
|
275
275
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -617,6 +617,8 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
617
617
|
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
618
618
|
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
619
619
|
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
620
|
+
IntegrationScope2["SiteAdaptiveRead"] = "site:adaptive:read";
|
|
621
|
+
IntegrationScope2["SiteAdaptiveWrite"] = "site:adaptive:write";
|
|
620
622
|
IntegrationScope2["OpenapiRead"] = "openapi:read";
|
|
621
623
|
IntegrationScope2["OpenapiWrite"] = "openapi:write";
|
|
622
624
|
return IntegrationScope2;
|
|
@@ -3477,6 +3479,15 @@ var Api = class extends HttpClient {
|
|
|
3477
3479
|
secure: true,
|
|
3478
3480
|
format: "json",
|
|
3479
3481
|
...params
|
|
3482
|
+
}),
|
|
3483
|
+
resolvePublishedContentByUrl: (data, params = {}) => this.request({
|
|
3484
|
+
path: `/urls/published`,
|
|
3485
|
+
method: "POST",
|
|
3486
|
+
body: data,
|
|
3487
|
+
secure: true,
|
|
3488
|
+
type: "application/json" /* Json */,
|
|
3489
|
+
format: "json",
|
|
3490
|
+
...params
|
|
3480
3491
|
})
|
|
3481
3492
|
};
|
|
3482
3493
|
};
|
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.115.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -520,6 +520,8 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
520
520
|
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
521
521
|
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
522
522
|
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
523
|
+
IntegrationScope2["SiteAdaptiveRead"] = "site:adaptive:read";
|
|
524
|
+
IntegrationScope2["SiteAdaptiveWrite"] = "site:adaptive:write";
|
|
523
525
|
IntegrationScope2["OpenapiRead"] = "openapi:read";
|
|
524
526
|
IntegrationScope2["OpenapiWrite"] = "openapi:write";
|
|
525
527
|
return IntegrationScope2;
|
|
@@ -3380,6 +3382,15 @@ var Api = class extends HttpClient {
|
|
|
3380
3382
|
secure: true,
|
|
3381
3383
|
format: "json",
|
|
3382
3384
|
...params
|
|
3385
|
+
}),
|
|
3386
|
+
resolvePublishedContentByUrl: (data, params = {}) => this.request({
|
|
3387
|
+
path: `/urls/published`,
|
|
3388
|
+
method: "POST",
|
|
3389
|
+
body: data,
|
|
3390
|
+
secure: true,
|
|
3391
|
+
type: "application/json" /* Json */,
|
|
3392
|
+
format: "json",
|
|
3393
|
+
...params
|
|
3383
3394
|
})
|
|
3384
3395
|
};
|
|
3385
3396
|
};
|