@gitbook/api 0.77.0 → 0.78.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 +55 -142
- package/dist/index.cjs +1 -65
- package/dist/index.js +1 -65
- package/package.json +1 -1
- package/spec/openapi.json +179 -511
- package/spec/openapi.yaml +92 -264
package/dist/client.d.ts
CHANGED
|
@@ -741,6 +741,7 @@ export type UserAPITokenExtended = UserAPIToken & {
|
|
|
741
741
|
export type SpaceTitle = string;
|
|
742
742
|
/**
|
|
743
743
|
* Unicode codepoint or character of the emoji
|
|
744
|
+
* @format emoji
|
|
744
745
|
* @maxLength 50
|
|
745
746
|
* @example "🎉"
|
|
746
747
|
*/
|
|
@@ -903,6 +904,13 @@ export interface Space {
|
|
|
903
904
|
revision: string;
|
|
904
905
|
/** Default level for a piece of content */
|
|
905
906
|
defaultLevel: DefaultLevel;
|
|
907
|
+
/** The set of permissions for the space */
|
|
908
|
+
permissions: {
|
|
909
|
+
/** Can the user edit the title, install integrations, and manage the space. */
|
|
910
|
+
admin: boolean;
|
|
911
|
+
/** Can the user edit the content of the space by creating a change request. */
|
|
912
|
+
edit: boolean;
|
|
913
|
+
};
|
|
906
914
|
}
|
|
907
915
|
export interface SpacePointer {
|
|
908
916
|
type: 'space';
|
|
@@ -1022,6 +1030,7 @@ export interface ExportToGitRepository {
|
|
|
1022
1030
|
}
|
|
1023
1031
|
/**
|
|
1024
1032
|
* Name of the icon
|
|
1033
|
+
* @format icon
|
|
1025
1034
|
* @maxLength 50
|
|
1026
1035
|
* @example "gear"
|
|
1027
1036
|
*/
|
|
@@ -1474,7 +1483,7 @@ export interface SitePointer {
|
|
|
1474
1483
|
site: string;
|
|
1475
1484
|
}
|
|
1476
1485
|
/** The default content for the organization */
|
|
1477
|
-
export type OrganizationDefaultContent =
|
|
1486
|
+
export type OrganizationDefaultContent = SitePointer;
|
|
1478
1487
|
/** Name of the product */
|
|
1479
1488
|
export declare enum BillingProduct {
|
|
1480
1489
|
Free2024 = "free_2024",
|
|
@@ -2557,36 +2566,6 @@ export interface PageFeedback {
|
|
|
2557
2566
|
location: string;
|
|
2558
2567
|
};
|
|
2559
2568
|
}
|
|
2560
|
-
/**
|
|
2561
|
-
* Name of the share link
|
|
2562
|
-
* @minLength 0
|
|
2563
|
-
* @maxLength 50
|
|
2564
|
-
*/
|
|
2565
|
-
export type ShareLinkName = string;
|
|
2566
|
-
export interface ShareLink {
|
|
2567
|
-
/** Type of Object, always equals to "share-link" */
|
|
2568
|
-
object: 'share-link';
|
|
2569
|
-
/** Unique identifier for the share-link */
|
|
2570
|
-
id: string;
|
|
2571
|
-
createdAt: Timestamp;
|
|
2572
|
-
/** Name of the share link */
|
|
2573
|
-
name?: ShareLinkName;
|
|
2574
|
-
active?: boolean;
|
|
2575
|
-
/** URLs associated with the object */
|
|
2576
|
-
urls: {
|
|
2577
|
-
/**
|
|
2578
|
-
* URL of the published version of the share-link.
|
|
2579
|
-
* @format uri
|
|
2580
|
-
*/
|
|
2581
|
-
published?: string;
|
|
2582
|
-
};
|
|
2583
|
-
}
|
|
2584
|
-
export type CustomizationCollectionSettings = CustomizationSettings & {
|
|
2585
|
-
collection: {
|
|
2586
|
-
/** ID of the space used by default in the collection */
|
|
2587
|
-
defaultSpace?: string;
|
|
2588
|
-
};
|
|
2589
|
-
};
|
|
2590
2569
|
/** Secrets stored on the integration and passed at runtime. */
|
|
2591
2570
|
export type IntegrationSecrets = Record<string, string>;
|
|
2592
2571
|
export interface PublishIntegration {
|
|
@@ -3573,6 +3552,8 @@ export interface SiteSection {
|
|
|
3573
3552
|
*/
|
|
3574
3553
|
published?: string;
|
|
3575
3554
|
};
|
|
3555
|
+
/** Name of the icon */
|
|
3556
|
+
icon?: Icon;
|
|
3576
3557
|
}
|
|
3577
3558
|
export type SiteStructure = {
|
|
3578
3559
|
type: 'sections';
|
|
@@ -4174,6 +4155,30 @@ export interface PublishedContentSite {
|
|
|
4174
4155
|
};
|
|
4175
4156
|
scripts: SiteIntegrationScript[];
|
|
4176
4157
|
}
|
|
4158
|
+
/**
|
|
4159
|
+
* Name of the share link
|
|
4160
|
+
* @minLength 0
|
|
4161
|
+
* @maxLength 50
|
|
4162
|
+
*/
|
|
4163
|
+
export type ShareLinkName = string;
|
|
4164
|
+
export interface ShareLink {
|
|
4165
|
+
/** Type of Object, always equals to "share-link" */
|
|
4166
|
+
object: 'share-link';
|
|
4167
|
+
/** Unique identifier for the share-link */
|
|
4168
|
+
id: string;
|
|
4169
|
+
createdAt: Timestamp;
|
|
4170
|
+
/** Name of the share link */
|
|
4171
|
+
name?: ShareLinkName;
|
|
4172
|
+
active?: boolean;
|
|
4173
|
+
/** URLs associated with the object */
|
|
4174
|
+
urls: {
|
|
4175
|
+
/**
|
|
4176
|
+
* URL of the published version of the share-link.
|
|
4177
|
+
* @format uri
|
|
4178
|
+
*/
|
|
4179
|
+
published?: string;
|
|
4180
|
+
};
|
|
4181
|
+
}
|
|
4177
4182
|
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
4178
4183
|
/** Type of Object, always equals to "publishing-auth" */
|
|
4179
4184
|
object: 'publishing-auth';
|
|
@@ -4294,6 +4299,13 @@ export interface InsightsContentPage {
|
|
|
4294
4299
|
/** Icon of the page, if one has been set. */
|
|
4295
4300
|
icon?: Icon;
|
|
4296
4301
|
}
|
|
4302
|
+
/** Analytics entry for an ask. */
|
|
4303
|
+
export interface AnalyticsAsk {
|
|
4304
|
+
/** The question that was asked. */
|
|
4305
|
+
ask: string;
|
|
4306
|
+
/** Number of times this question was asked. */
|
|
4307
|
+
count: number;
|
|
4308
|
+
}
|
|
4297
4309
|
/**
|
|
4298
4310
|
* The source path to redirect from.
|
|
4299
4311
|
* @maxLength 512
|
|
@@ -4349,7 +4361,7 @@ export interface CustomHostname {
|
|
|
4349
4361
|
object: 'custom-hostname';
|
|
4350
4362
|
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
4351
4363
|
hostname: SiteHostname;
|
|
4352
|
-
target: OrganizationPointer |
|
|
4364
|
+
target: OrganizationPointer | SitePointer;
|
|
4353
4365
|
isActive: boolean;
|
|
4354
4366
|
status?: CustomHostnameStatus;
|
|
4355
4367
|
/** URLs associated with the object */
|
|
@@ -4558,6 +4570,8 @@ export interface PublishedSiteContent {
|
|
|
4558
4570
|
shareKey?: string;
|
|
4559
4571
|
/** Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments. */
|
|
4560
4572
|
complete: boolean;
|
|
4573
|
+
/** Context returned only for a visitor authentication session to track changes in the visitor session context that affect content rendering (used for cache invalidation). */
|
|
4574
|
+
contextId?: string;
|
|
4561
4575
|
}
|
|
4562
4576
|
export type PublishedSiteContentLookup = {
|
|
4563
4577
|
/** Type of target for the redirect */
|
|
@@ -4757,6 +4771,8 @@ export interface ContentAPIBaseToken {
|
|
|
4757
4771
|
organization: string;
|
|
4758
4772
|
/** List of spaces that the token is allowed to access. */
|
|
4759
4773
|
spaces: string[];
|
|
4774
|
+
/** Attributes or assertions that provide specific details about the visitor for which the token was generated. */
|
|
4775
|
+
claims: Record<string, any>;
|
|
4760
4776
|
/** Multiplier for the rate limit applied to the token. */
|
|
4761
4777
|
rateLimitMultiplier?: number;
|
|
4762
4778
|
}
|
|
@@ -6965,6 +6981,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6965
6981
|
* @name GetSpacePublishingCustomizationById
|
|
6966
6982
|
* @summary Get the publishing customization configuration for a space.
|
|
6967
6983
|
* @request GET:/spaces/{spaceId}/publishing/customization
|
|
6984
|
+
* @deprecated
|
|
6968
6985
|
* @secure
|
|
6969
6986
|
*/
|
|
6970
6987
|
getSpacePublishingCustomizationById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
|
|
@@ -6981,6 +6998,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6981
6998
|
* @name UpdateSpacePublishingCustomizationById
|
|
6982
6999
|
* @summary Update the publishing customization configuration for a space.
|
|
6983
7000
|
* @request PUT:/spaces/{spaceId}/publishing/customization
|
|
7001
|
+
* @deprecated
|
|
6984
7002
|
* @secure
|
|
6985
7003
|
*/
|
|
6986
7004
|
updateSpacePublishingCustomizationById: (spaceId: string, data: CustomizationSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
|
|
@@ -7097,43 +7115,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7097
7115
|
/** Temporary URL to print the content. The URL will work for 1h. */
|
|
7098
7116
|
url: URL;
|
|
7099
7117
|
}, Error>>;
|
|
7100
|
-
/**
|
|
7101
|
-
* No description
|
|
7102
|
-
*
|
|
7103
|
-
* @tags spaces
|
|
7104
|
-
* @name CreateSpaceShareLink
|
|
7105
|
-
* @summary Creates a new space share link
|
|
7106
|
-
* @request POST:/spaces/{spaceId}/share-links
|
|
7107
|
-
* @secure
|
|
7108
|
-
*/
|
|
7109
|
-
createSpaceShareLink: (spaceId: string, data: {
|
|
7110
|
-
/** Name of the share link */
|
|
7111
|
-
name: ShareLinkName;
|
|
7112
|
-
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
7113
|
-
/**
|
|
7114
|
-
* No description
|
|
7115
|
-
*
|
|
7116
|
-
* @tags spaces
|
|
7117
|
-
* @name UpdateSpaceShareLinkById
|
|
7118
|
-
* @summary Update the details of a space share link
|
|
7119
|
-
* @request PATCH:/spaces/{spaceId}/share-links/{shareLinkId}
|
|
7120
|
-
* @secure
|
|
7121
|
-
*/
|
|
7122
|
-
updateSpaceShareLinkById: (spaceId: string, shareLinkId: string, data: {
|
|
7123
|
-
active?: boolean;
|
|
7124
|
-
/** Name of the share link */
|
|
7125
|
-
name?: ShareLinkName;
|
|
7126
|
-
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
7127
|
-
/**
|
|
7128
|
-
* No description
|
|
7129
|
-
*
|
|
7130
|
-
* @tags spaces
|
|
7131
|
-
* @name DeleteSpaceShareLinkById
|
|
7132
|
-
* @summary Deletes a space share link
|
|
7133
|
-
* @request DELETE:/spaces/{spaceId}/share-links/{shareLinkId}
|
|
7134
|
-
* @secure
|
|
7135
|
-
*/
|
|
7136
|
-
deleteSpaceShareLinkById: (spaceId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
7137
7118
|
/**
|
|
7138
7119
|
* No description
|
|
7139
7120
|
*
|
|
@@ -7316,75 +7297,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7316
7297
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7317
7298
|
items: UserContentPermission[];
|
|
7318
7299
|
}, Error>>;
|
|
7319
|
-
/**
|
|
7320
|
-
* No description
|
|
7321
|
-
*
|
|
7322
|
-
* @tags collections
|
|
7323
|
-
* @name GetCollectionPublishingCustomizationById
|
|
7324
|
-
* @summary Get the publishing customization configuration for a collection.
|
|
7325
|
-
* @request GET:/collections/{collectionId}/publishing/customization
|
|
7326
|
-
* @secure
|
|
7327
|
-
*/
|
|
7328
|
-
getCollectionPublishingCustomizationById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
|
|
7329
|
-
error: {
|
|
7330
|
-
/** @format int32 */
|
|
7331
|
-
code: 400;
|
|
7332
|
-
message: string;
|
|
7333
|
-
};
|
|
7334
|
-
}>>;
|
|
7335
|
-
/**
|
|
7336
|
-
* No description
|
|
7337
|
-
*
|
|
7338
|
-
* @tags collections
|
|
7339
|
-
* @name UpdateCollectionPublishingCustomizationById
|
|
7340
|
-
* @summary Update the publishing customization configuration for a collection.
|
|
7341
|
-
* @request PUT:/collections/{collectionId}/publishing/customization
|
|
7342
|
-
* @secure
|
|
7343
|
-
*/
|
|
7344
|
-
updateCollectionPublishingCustomizationById: (collectionId: string, data: CustomizationCollectionSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
|
|
7345
|
-
error: {
|
|
7346
|
-
/** @format int32 */
|
|
7347
|
-
code: 400;
|
|
7348
|
-
message: string;
|
|
7349
|
-
};
|
|
7350
|
-
}>>;
|
|
7351
|
-
/**
|
|
7352
|
-
* No description
|
|
7353
|
-
*
|
|
7354
|
-
* @tags collections
|
|
7355
|
-
* @name CreateCollectionShareLink
|
|
7356
|
-
* @summary Creates a new collection share link
|
|
7357
|
-
* @request POST:/collections/{collectionId}/share-links
|
|
7358
|
-
* @secure
|
|
7359
|
-
*/
|
|
7360
|
-
createCollectionShareLink: (collectionId: string, data: {
|
|
7361
|
-
/** Name of the share link */
|
|
7362
|
-
name: ShareLinkName;
|
|
7363
|
-
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
7364
|
-
/**
|
|
7365
|
-
* No description
|
|
7366
|
-
*
|
|
7367
|
-
* @tags collections
|
|
7368
|
-
* @name UpdateCollectionShareLinkById
|
|
7369
|
-
* @summary Update the details of a collection share link
|
|
7370
|
-
* @request PATCH:/collections/{collectionId}/share-links/{shareLinkId}
|
|
7371
|
-
* @secure
|
|
7372
|
-
*/
|
|
7373
|
-
updateCollectionShareLinkById: (collectionId: string, shareLinkId: string, data: {
|
|
7374
|
-
active?: boolean;
|
|
7375
|
-
/** Name of the share link */
|
|
7376
|
-
name?: ShareLinkName;
|
|
7377
|
-
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
7378
|
-
/**
|
|
7379
|
-
* No description
|
|
7380
|
-
*
|
|
7381
|
-
* @tags collections
|
|
7382
|
-
* @name DeleteCollectionShareLinkById
|
|
7383
|
-
* @summary Deletes a collection share link
|
|
7384
|
-
* @request DELETE:/collections/{collectionId}/share-links/{shareLinkId}
|
|
7385
|
-
* @secure
|
|
7386
|
-
*/
|
|
7387
|
-
deleteCollectionShareLinkById: (collectionId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
7388
7300
|
};
|
|
7389
7301
|
integrations: {
|
|
7390
7302
|
/**
|
|
@@ -9738,6 +9650,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9738
9650
|
path?: SiteSectionPath;
|
|
9739
9651
|
/** ID of the site-space to be used as the default in this section. */
|
|
9740
9652
|
defaultSiteSpace?: string;
|
|
9653
|
+
icon?: Icon | null;
|
|
9741
9654
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
|
|
9742
9655
|
/**
|
|
9743
9656
|
* No description
|
|
@@ -10228,12 +10141,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10228
10141
|
*
|
|
10229
10142
|
* @tags custom-hostnames
|
|
10230
10143
|
* @name SetupCustomHostname
|
|
10231
|
-
* @summary Setup a custom hostname on a
|
|
10144
|
+
* @summary Setup a custom hostname on a site or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
|
|
10232
10145
|
* @request POST:/custom-hostnames/{hostname}
|
|
10233
10146
|
* @secure
|
|
10234
10147
|
*/
|
|
10235
10148
|
setupCustomHostname: (hostname: string, data: {
|
|
10236
|
-
target: OrganizationPointer |
|
|
10149
|
+
target: OrganizationPointer | SitePointer;
|
|
10237
10150
|
}, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error | {
|
|
10238
10151
|
error: {
|
|
10239
10152
|
/** @format int32 */
|
|
@@ -10272,12 +10185,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10272
10185
|
*
|
|
10273
10186
|
* @tags custom-hostnames
|
|
10274
10187
|
* @name TestCustomHostname
|
|
10275
|
-
* @summary Test if a custom hostname can be used for a
|
|
10188
|
+
* @summary Test if a custom hostname can be used for a site or organization.
|
|
10276
10189
|
* @request POST:/custom-hostnames/{hostname}/test
|
|
10277
10190
|
* @secure
|
|
10278
10191
|
*/
|
|
10279
10192
|
testCustomHostname: (hostname: string, data: {
|
|
10280
|
-
target: OrganizationPointer |
|
|
10193
|
+
target: OrganizationPointer | SitePointer;
|
|
10281
10194
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
10282
10195
|
error: {
|
|
10283
10196
|
/** @format int32 */
|
package/dist/index.cjs
CHANGED
|
@@ -244,7 +244,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
244
244
|
|
|
245
245
|
// package.json
|
|
246
246
|
var name = "@gitbook/api";
|
|
247
|
-
var version = "0.
|
|
247
|
+
var version = "0.78.0";
|
|
248
248
|
|
|
249
249
|
// src/client.ts
|
|
250
250
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1871,30 +1871,6 @@ var Api = class extends HttpClient {
|
|
|
1871
1871
|
format: "json",
|
|
1872
1872
|
...params
|
|
1873
1873
|
}),
|
|
1874
|
-
createSpaceShareLink: (spaceId, data, params = {}) => this.request({
|
|
1875
|
-
path: `/spaces/${spaceId}/share-links`,
|
|
1876
|
-
method: "POST",
|
|
1877
|
-
body: data,
|
|
1878
|
-
secure: true,
|
|
1879
|
-
type: "application/json" /* Json */,
|
|
1880
|
-
format: "json",
|
|
1881
|
-
...params
|
|
1882
|
-
}),
|
|
1883
|
-
updateSpaceShareLinkById: (spaceId, shareLinkId, data, params = {}) => this.request({
|
|
1884
|
-
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1885
|
-
method: "PATCH",
|
|
1886
|
-
body: data,
|
|
1887
|
-
secure: true,
|
|
1888
|
-
type: "application/json" /* Json */,
|
|
1889
|
-
format: "json",
|
|
1890
|
-
...params
|
|
1891
|
-
}),
|
|
1892
|
-
deleteSpaceShareLinkById: (spaceId, shareLinkId, params = {}) => this.request({
|
|
1893
|
-
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1894
|
-
method: "DELETE",
|
|
1895
|
-
secure: true,
|
|
1896
|
-
...params
|
|
1897
|
-
}),
|
|
1898
1874
|
listSpaceLinks: (spaceId, query, params = {}) => this.request({
|
|
1899
1875
|
path: `/spaces/${spaceId}/links`,
|
|
1900
1876
|
method: "GET",
|
|
@@ -1960,46 +1936,6 @@ var Api = class extends HttpClient {
|
|
|
1960
1936
|
secure: true,
|
|
1961
1937
|
format: "json",
|
|
1962
1938
|
...params
|
|
1963
|
-
}),
|
|
1964
|
-
getCollectionPublishingCustomizationById: (collectionId, params = {}) => this.request({
|
|
1965
|
-
path: `/collections/${collectionId}/publishing/customization`,
|
|
1966
|
-
method: "GET",
|
|
1967
|
-
secure: true,
|
|
1968
|
-
format: "json",
|
|
1969
|
-
...params
|
|
1970
|
-
}),
|
|
1971
|
-
updateCollectionPublishingCustomizationById: (collectionId, data, params = {}) => this.request({
|
|
1972
|
-
path: `/collections/${collectionId}/publishing/customization`,
|
|
1973
|
-
method: "PUT",
|
|
1974
|
-
body: data,
|
|
1975
|
-
secure: true,
|
|
1976
|
-
type: "application/json" /* Json */,
|
|
1977
|
-
format: "json",
|
|
1978
|
-
...params
|
|
1979
|
-
}),
|
|
1980
|
-
createCollectionShareLink: (collectionId, data, params = {}) => this.request({
|
|
1981
|
-
path: `/collections/${collectionId}/share-links`,
|
|
1982
|
-
method: "POST",
|
|
1983
|
-
body: data,
|
|
1984
|
-
secure: true,
|
|
1985
|
-
type: "application/json" /* Json */,
|
|
1986
|
-
format: "json",
|
|
1987
|
-
...params
|
|
1988
|
-
}),
|
|
1989
|
-
updateCollectionShareLinkById: (collectionId, shareLinkId, data, params = {}) => this.request({
|
|
1990
|
-
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1991
|
-
method: "PATCH",
|
|
1992
|
-
body: data,
|
|
1993
|
-
secure: true,
|
|
1994
|
-
type: "application/json" /* Json */,
|
|
1995
|
-
format: "json",
|
|
1996
|
-
...params
|
|
1997
|
-
}),
|
|
1998
|
-
deleteCollectionShareLinkById: (collectionId, shareLinkId, params = {}) => this.request({
|
|
1999
|
-
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
2000
|
-
method: "DELETE",
|
|
2001
|
-
secure: true,
|
|
2002
|
-
...params
|
|
2003
1939
|
})
|
|
2004
1940
|
};
|
|
2005
1941
|
integrations = {
|
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.78.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1799,30 +1799,6 @@ var Api = class extends HttpClient {
|
|
|
1799
1799
|
format: "json",
|
|
1800
1800
|
...params
|
|
1801
1801
|
}),
|
|
1802
|
-
createSpaceShareLink: (spaceId, data, params = {}) => this.request({
|
|
1803
|
-
path: `/spaces/${spaceId}/share-links`,
|
|
1804
|
-
method: "POST",
|
|
1805
|
-
body: data,
|
|
1806
|
-
secure: true,
|
|
1807
|
-
type: "application/json" /* Json */,
|
|
1808
|
-
format: "json",
|
|
1809
|
-
...params
|
|
1810
|
-
}),
|
|
1811
|
-
updateSpaceShareLinkById: (spaceId, shareLinkId, data, params = {}) => this.request({
|
|
1812
|
-
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1813
|
-
method: "PATCH",
|
|
1814
|
-
body: data,
|
|
1815
|
-
secure: true,
|
|
1816
|
-
type: "application/json" /* Json */,
|
|
1817
|
-
format: "json",
|
|
1818
|
-
...params
|
|
1819
|
-
}),
|
|
1820
|
-
deleteSpaceShareLinkById: (spaceId, shareLinkId, params = {}) => this.request({
|
|
1821
|
-
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1822
|
-
method: "DELETE",
|
|
1823
|
-
secure: true,
|
|
1824
|
-
...params
|
|
1825
|
-
}),
|
|
1826
1802
|
listSpaceLinks: (spaceId, query, params = {}) => this.request({
|
|
1827
1803
|
path: `/spaces/${spaceId}/links`,
|
|
1828
1804
|
method: "GET",
|
|
@@ -1888,46 +1864,6 @@ var Api = class extends HttpClient {
|
|
|
1888
1864
|
secure: true,
|
|
1889
1865
|
format: "json",
|
|
1890
1866
|
...params
|
|
1891
|
-
}),
|
|
1892
|
-
getCollectionPublishingCustomizationById: (collectionId, params = {}) => this.request({
|
|
1893
|
-
path: `/collections/${collectionId}/publishing/customization`,
|
|
1894
|
-
method: "GET",
|
|
1895
|
-
secure: true,
|
|
1896
|
-
format: "json",
|
|
1897
|
-
...params
|
|
1898
|
-
}),
|
|
1899
|
-
updateCollectionPublishingCustomizationById: (collectionId, data, params = {}) => this.request({
|
|
1900
|
-
path: `/collections/${collectionId}/publishing/customization`,
|
|
1901
|
-
method: "PUT",
|
|
1902
|
-
body: data,
|
|
1903
|
-
secure: true,
|
|
1904
|
-
type: "application/json" /* Json */,
|
|
1905
|
-
format: "json",
|
|
1906
|
-
...params
|
|
1907
|
-
}),
|
|
1908
|
-
createCollectionShareLink: (collectionId, data, params = {}) => this.request({
|
|
1909
|
-
path: `/collections/${collectionId}/share-links`,
|
|
1910
|
-
method: "POST",
|
|
1911
|
-
body: data,
|
|
1912
|
-
secure: true,
|
|
1913
|
-
type: "application/json" /* Json */,
|
|
1914
|
-
format: "json",
|
|
1915
|
-
...params
|
|
1916
|
-
}),
|
|
1917
|
-
updateCollectionShareLinkById: (collectionId, shareLinkId, data, params = {}) => this.request({
|
|
1918
|
-
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1919
|
-
method: "PATCH",
|
|
1920
|
-
body: data,
|
|
1921
|
-
secure: true,
|
|
1922
|
-
type: "application/json" /* Json */,
|
|
1923
|
-
format: "json",
|
|
1924
|
-
...params
|
|
1925
|
-
}),
|
|
1926
|
-
deleteCollectionShareLinkById: (collectionId, shareLinkId, params = {}) => this.request({
|
|
1927
|
-
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1928
|
-
method: "DELETE",
|
|
1929
|
-
secure: true,
|
|
1930
|
-
...params
|
|
1931
1867
|
})
|
|
1932
1868
|
};
|
|
1933
1869
|
integrations = {
|