@gitbook/api 0.41.0 → 0.43.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 +113 -183
- package/dist/index.cjs +31 -72
- package/dist/index.js +31 -72
- package/package.json +1 -1
- package/spec/openapi.json +306 -569
- package/spec/openapi.yaml +174 -337
package/dist/client.d.ts
CHANGED
|
@@ -1599,7 +1599,9 @@ export interface Organization {
|
|
|
1599
1599
|
id: string;
|
|
1600
1600
|
/** Name of the organization */
|
|
1601
1601
|
title: OrganizationTitle;
|
|
1602
|
+
createdAt: Timestamp;
|
|
1602
1603
|
emailDomains: OrganizationEmailDomains;
|
|
1604
|
+
hostname?: any;
|
|
1603
1605
|
type: OrganizationType;
|
|
1604
1606
|
useCase?: OrganizationUseCase;
|
|
1605
1607
|
communityType?: OrganizationCommunityType;
|
|
@@ -1783,8 +1785,6 @@ export interface OrganizationUsage {
|
|
|
1783
1785
|
collections: OrganizationUsageCollections;
|
|
1784
1786
|
/** Sites usage metrics of an organization */
|
|
1785
1787
|
sites: OrganizationUsageSites;
|
|
1786
|
-
/** Seats usage metrics of an organization */
|
|
1787
|
-
seats: OrganizationUsageSeats;
|
|
1788
1788
|
/** Team members usage metrics of an organization */
|
|
1789
1789
|
teams: OrganizationUsageTeams;
|
|
1790
1790
|
/** Members usage metrics of an organization */
|
|
@@ -1821,6 +1821,8 @@ export interface OrganizationUsageSites {
|
|
|
1821
1821
|
export interface OrganizationUsageMembers {
|
|
1822
1822
|
/** Count of all members */
|
|
1823
1823
|
total: number;
|
|
1824
|
+
/** Count of all paid seats */
|
|
1825
|
+
seats: number;
|
|
1824
1826
|
/** Count of all admins */
|
|
1825
1827
|
admin: number;
|
|
1826
1828
|
/** Count of all creators */
|
|
@@ -1850,13 +1852,6 @@ export interface OrganizationUsageTeamMembers {
|
|
|
1850
1852
|
/** Count of all team members */
|
|
1851
1853
|
member: number;
|
|
1852
1854
|
}
|
|
1853
|
-
/** Seats usage metrics of an organization */
|
|
1854
|
-
export interface OrganizationUsageSeats {
|
|
1855
|
-
/** The total amount of seats in the organization. */
|
|
1856
|
-
total: number;
|
|
1857
|
-
/** How many seats are still available. */
|
|
1858
|
-
available: number;
|
|
1859
|
-
}
|
|
1860
1855
|
export interface Capture {
|
|
1861
1856
|
/** Unique identifier for the capture */
|
|
1862
1857
|
id: string;
|
|
@@ -2575,6 +2570,7 @@ export declare enum IntegrationScope {
|
|
|
2575
2570
|
SpaceGitSync = "space:git:sync",
|
|
2576
2571
|
SpaceVisitorAuth = "space:visitor:auth",
|
|
2577
2572
|
SiteScriptInject = "site:script:inject",
|
|
2573
|
+
SiteScriptCookies = "site:script:cookies",
|
|
2578
2574
|
SiteVisitorAuth = "site:visitor:auth"
|
|
2579
2575
|
}
|
|
2580
2576
|
/** A search string to filter integrations by name */
|
|
@@ -2900,6 +2896,14 @@ export interface SpaceIntegrationScript {
|
|
|
2900
2896
|
/** If true, the script will potentially load use cookies and visitors should be aware. */
|
|
2901
2897
|
cookies: boolean;
|
|
2902
2898
|
}
|
|
2899
|
+
export interface SiteIntegrationScript {
|
|
2900
|
+
/** Script URL to load. */
|
|
2901
|
+
script: URL;
|
|
2902
|
+
/** Content Security Policy to secure the loading of this script. */
|
|
2903
|
+
contentSecurityPolicy?: string;
|
|
2904
|
+
/** If true, the script will potentially load use cookies and visitors should be aware. */
|
|
2905
|
+
cookies: boolean;
|
|
2906
|
+
}
|
|
2903
2907
|
/** Entity to create or update in an integration's installation. */
|
|
2904
2908
|
export interface UpsertEntity {
|
|
2905
2909
|
/** Unique ID of the entity in the context of the integration's entity type */
|
|
@@ -3783,7 +3787,7 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
|
|
|
3783
3787
|
} | CollectionChannel | CollectionPublishingCustomizationChannel | {
|
|
3784
3788
|
channel: 'organization';
|
|
3785
3789
|
organization: string;
|
|
3786
|
-
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel |
|
|
3790
|
+
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | {
|
|
3787
3791
|
channel: 'organization-experimental-features';
|
|
3788
3792
|
organization: string;
|
|
3789
3793
|
} | OrganizationSyncedBlockChannel | {
|
|
@@ -3953,22 +3957,6 @@ export interface OrganizationSitesChannel {
|
|
|
3953
3957
|
channel: 'organization-sites';
|
|
3954
3958
|
organization: string;
|
|
3955
3959
|
}
|
|
3956
|
-
/** Subscription channel for changes in a member seat in an organization. */
|
|
3957
|
-
export interface OrganizationSeatChannel {
|
|
3958
|
-
channel: 'organization-seat';
|
|
3959
|
-
organization: string;
|
|
3960
|
-
member: string;
|
|
3961
|
-
}
|
|
3962
|
-
/** Subscription channel for changes in seats in an organization. */
|
|
3963
|
-
export interface OrganizationSeatsChannel {
|
|
3964
|
-
channel: 'organization-seats';
|
|
3965
|
-
organization: string;
|
|
3966
|
-
}
|
|
3967
|
-
/** Subscription channel for changes in seats usage in an organization. */
|
|
3968
|
-
export interface OrganizationUsageSeatsChannel {
|
|
3969
|
-
channel: 'organization-usage-seats';
|
|
3970
|
-
organization: string;
|
|
3971
|
-
}
|
|
3972
3960
|
export interface IntegrationChannel {
|
|
3973
3961
|
channel: 'integration';
|
|
3974
3962
|
integration: string;
|
|
@@ -4551,6 +4539,16 @@ export interface SiteSpace {
|
|
|
4551
4539
|
* @maxLength 100
|
|
4552
4540
|
*/
|
|
4553
4541
|
export declare type SiteSpacePath = string;
|
|
4542
|
+
/** Position at which to move the site space to. */
|
|
4543
|
+
export interface SiteSpaceMovePosition {
|
|
4544
|
+
before?: SiteSpacePointer;
|
|
4545
|
+
after?: SiteSpacePointer;
|
|
4546
|
+
}
|
|
4547
|
+
export interface SiteSpacePointer {
|
|
4548
|
+
type: 'site-space';
|
|
4549
|
+
/** Unique identifier for the site space */
|
|
4550
|
+
siteSpace: string;
|
|
4551
|
+
}
|
|
4554
4552
|
export declare enum SiteSubscriptionStatus {
|
|
4555
4553
|
Active = "active",
|
|
4556
4554
|
Inactive = "inactive"
|
|
@@ -5185,6 +5183,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5185
5183
|
*/
|
|
5186
5184
|
metadata?: boolean;
|
|
5187
5185
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
5186
|
+
/**
|
|
5187
|
+
* No description
|
|
5188
|
+
*
|
|
5189
|
+
* @tags spaces
|
|
5190
|
+
* @name ListSpaceFileBacklinks
|
|
5191
|
+
* @summary Get backlink locations for a file existing in a space.
|
|
5192
|
+
* @request GET:/spaces/{spaceId}/content/files/{fileId}/backlinks
|
|
5193
|
+
* @secure
|
|
5194
|
+
*/
|
|
5195
|
+
listSpaceFileBacklinks: (spaceId: string, fileId: string, query?: {
|
|
5196
|
+
/** Identifier of the page results to fetch. */
|
|
5197
|
+
page?: string;
|
|
5198
|
+
/**
|
|
5199
|
+
* The number of results per page
|
|
5200
|
+
* @min 0
|
|
5201
|
+
* @max 1000
|
|
5202
|
+
*/
|
|
5203
|
+
limit?: number;
|
|
5204
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5205
|
+
items: ContentLocation[];
|
|
5206
|
+
}, Error>>;
|
|
5188
5207
|
/**
|
|
5189
5208
|
* No description
|
|
5190
5209
|
*
|
|
@@ -5699,6 +5718,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5699
5718
|
*/
|
|
5700
5719
|
metadata?: boolean;
|
|
5701
5720
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
5721
|
+
/**
|
|
5722
|
+
* No description
|
|
5723
|
+
*
|
|
5724
|
+
* @tags spaces
|
|
5725
|
+
* @name ListChangeRequestFileBacklinks
|
|
5726
|
+
* @summary Get backlink locations for a file existing in a change request.
|
|
5727
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks
|
|
5728
|
+
* @secure
|
|
5729
|
+
*/
|
|
5730
|
+
listChangeRequestFileBacklinks: (spaceId: string, changeRequestId: string, fileId: string, query?: {
|
|
5731
|
+
/** Identifier of the page results to fetch. */
|
|
5732
|
+
page?: string;
|
|
5733
|
+
/**
|
|
5734
|
+
* The number of results per page
|
|
5735
|
+
* @min 0
|
|
5736
|
+
* @max 1000
|
|
5737
|
+
*/
|
|
5738
|
+
limit?: number;
|
|
5739
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5740
|
+
items: ContentLocation[];
|
|
5741
|
+
}, Error>>;
|
|
5702
5742
|
/**
|
|
5703
5743
|
* No description
|
|
5704
5744
|
*
|
|
@@ -7138,6 +7178,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7138
7178
|
/** Name of the organization */
|
|
7139
7179
|
title?: OrganizationTitle;
|
|
7140
7180
|
emailDomains?: OrganizationEmailDomains;
|
|
7181
|
+
/**
|
|
7182
|
+
* Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io
|
|
7183
|
+
* @minLength 3
|
|
7184
|
+
* @maxLength 32
|
|
7185
|
+
*/
|
|
7186
|
+
hostname?: string;
|
|
7141
7187
|
/** The role of a member in an organization, null for guests */
|
|
7142
7188
|
defaultRole?: MemberRoleOrGuest;
|
|
7143
7189
|
defaultContent?: OrganizationDefaultContent | null;
|
|
@@ -7508,26 +7554,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7508
7554
|
* @secure
|
|
7509
7555
|
*/
|
|
7510
7556
|
requestOrganizationUpgrade: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
|
|
7511
|
-
/**
|
|
7512
|
-
* No description
|
|
7513
|
-
*
|
|
7514
|
-
* @tags organizations
|
|
7515
|
-
* @name TransferOrganization
|
|
7516
|
-
* @summary Transfer one organization (source) into another organization (target).
|
|
7517
|
-
* @request POST:/orgs/{organizationId}/transfer
|
|
7518
|
-
* @secure
|
|
7519
|
-
*/
|
|
7520
|
-
transferOrganization: (organizationId: string, data: {
|
|
7521
|
-
/** The unique id of the organization to transfer into the current one. */
|
|
7522
|
-
source: string;
|
|
7523
|
-
/** Determine the default role members of the source org will have when they are transferred into the target org. Defaults to null, which means no access. */
|
|
7524
|
-
defaultOrgRole?: MemberRoleOrGuest | 'saml';
|
|
7525
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
7526
|
-
/** The unique id of the collection created in the target organization containing the content of the source organization. */
|
|
7527
|
-
collection: string;
|
|
7528
|
-
/** The new hostname if the source organization needed to change hostname. */
|
|
7529
|
-
newSourceHostname?: string;
|
|
7530
|
-
}, Error>>;
|
|
7531
7557
|
/**
|
|
7532
7558
|
* No description
|
|
7533
7559
|
*
|
|
@@ -7906,19 +7932,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7906
7932
|
/** Team members usage metrics of an organization */
|
|
7907
7933
|
teamMembers: OrganizationUsageTeamMembers;
|
|
7908
7934
|
}, Error>>;
|
|
7909
|
-
/**
|
|
7910
|
-
* No description
|
|
7911
|
-
*
|
|
7912
|
-
* @tags organizations, usage
|
|
7913
|
-
* @name GetSeatsUsageForOrganizationById
|
|
7914
|
-
* @summary Get seats usage metrics for an organization
|
|
7915
|
-
* @request GET:/orgs/{organizationId}/usage/seats
|
|
7916
|
-
* @secure
|
|
7917
|
-
*/
|
|
7918
|
-
getSeatsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
7919
|
-
/** Seats usage metrics of an organization */
|
|
7920
|
-
seats: OrganizationUsageSeats;
|
|
7921
|
-
}, Error>>;
|
|
7922
7935
|
/**
|
|
7923
7936
|
* No description
|
|
7924
7937
|
*
|
|
@@ -8649,6 +8662,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8649
8662
|
message: string;
|
|
8650
8663
|
};
|
|
8651
8664
|
}>>;
|
|
8665
|
+
/**
|
|
8666
|
+
* No description
|
|
8667
|
+
*
|
|
8668
|
+
* @tags sites
|
|
8669
|
+
* @name ListSiteIntegrationScripts
|
|
8670
|
+
* @summary List the scripts to embed in published content for a site.
|
|
8671
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/integration-scripts
|
|
8672
|
+
* @secure
|
|
8673
|
+
*/
|
|
8674
|
+
listSiteIntegrationScripts: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteIntegrationScript[], Error | {
|
|
8675
|
+
error: {
|
|
8676
|
+
/** @format int32 */
|
|
8677
|
+
code: 400;
|
|
8678
|
+
message: string;
|
|
8679
|
+
};
|
|
8680
|
+
}>>;
|
|
8652
8681
|
/**
|
|
8653
8682
|
* No description
|
|
8654
8683
|
*
|
|
@@ -8738,6 +8767,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8738
8767
|
message: string;
|
|
8739
8768
|
};
|
|
8740
8769
|
}>>;
|
|
8770
|
+
/**
|
|
8771
|
+
* No description
|
|
8772
|
+
*
|
|
8773
|
+
* @tags sites
|
|
8774
|
+
* @name MoveSiteSpace
|
|
8775
|
+
* @summary Move a site space to a new position in the site.
|
|
8776
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move
|
|
8777
|
+
* @secure
|
|
8778
|
+
*/
|
|
8779
|
+
moveSiteSpace: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|
|
8780
|
+
/** The position where to move the site space. When not provided the site space is moved at the end of the site. */
|
|
8781
|
+
position?: SiteSpaceMovePosition;
|
|
8782
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error | {
|
|
8783
|
+
error: {
|
|
8784
|
+
/** @format int32 */
|
|
8785
|
+
code: 400;
|
|
8786
|
+
message: string;
|
|
8787
|
+
};
|
|
8788
|
+
} | {
|
|
8789
|
+
error: {
|
|
8790
|
+
/** @format int32 */
|
|
8791
|
+
code: 404;
|
|
8792
|
+
message: string;
|
|
8793
|
+
};
|
|
8794
|
+
}>>;
|
|
8741
8795
|
/**
|
|
8742
8796
|
* No description
|
|
8743
8797
|
*
|
|
@@ -8775,130 +8829,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8775
8829
|
origin: SpacePointer;
|
|
8776
8830
|
}[];
|
|
8777
8831
|
}, Error>>;
|
|
8778
|
-
/**
|
|
8779
|
-
* No description
|
|
8780
|
-
*
|
|
8781
|
-
* @tags seats
|
|
8782
|
-
* @name ListSeatsInOrganizationById
|
|
8783
|
-
* @summary List all seats in an organization
|
|
8784
|
-
* @request GET:/orgs/{organizationId}/seats
|
|
8785
|
-
* @secure
|
|
8786
|
-
*/
|
|
8787
|
-
listSeatsInOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8788
|
-
items: Seat[];
|
|
8789
|
-
}, Error>>;
|
|
8790
|
-
/**
|
|
8791
|
-
* No description
|
|
8792
|
-
*
|
|
8793
|
-
* @tags seats
|
|
8794
|
-
* @name AddSeatsToOrganizationById
|
|
8795
|
-
* @summary Add more seats to an organization
|
|
8796
|
-
* @request POST:/orgs/{organizationId}/seats
|
|
8797
|
-
* @secure
|
|
8798
|
-
*/
|
|
8799
|
-
addSeatsToOrganizationById: (organizationId: string, data: {
|
|
8800
|
-
/** How many seats to add */
|
|
8801
|
-
amount: number;
|
|
8802
|
-
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8803
|
-
/**
|
|
8804
|
-
* No description
|
|
8805
|
-
*
|
|
8806
|
-
* @tags seats
|
|
8807
|
-
* @name RemoveSeatsFromOrganizationById
|
|
8808
|
-
* @summary Remove unassigned seats from an organization
|
|
8809
|
-
* @request DELETE:/orgs/{organizationId}/seats
|
|
8810
|
-
* @secure
|
|
8811
|
-
*/
|
|
8812
|
-
removeSeatsFromOrganizationById: (organizationId: string, data: {
|
|
8813
|
-
/** How many seats to remove. Omit to remove all unassigned seats. */
|
|
8814
|
-
amount?: number;
|
|
8815
|
-
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8816
|
-
/**
|
|
8817
|
-
* No description
|
|
8818
|
-
*
|
|
8819
|
-
* @tags seats
|
|
8820
|
-
* @name AssignSeatsToMembersInOrganizationById
|
|
8821
|
-
* @summary Assign seats for one or more members within an organization
|
|
8822
|
-
* @request PUT:/orgs/{organizationId}/seats/members
|
|
8823
|
-
* @secure
|
|
8824
|
-
*/
|
|
8825
|
-
assignSeatsToMembersInOrganizationById: (organizationId: string, data: {
|
|
8826
|
-
/** The unique ID of the organization member */
|
|
8827
|
-
member: string;
|
|
8828
|
-
}[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8829
|
-
error: {
|
|
8830
|
-
/** @format int32 */
|
|
8831
|
-
code: 409;
|
|
8832
|
-
message: string;
|
|
8833
|
-
};
|
|
8834
|
-
}>>;
|
|
8835
|
-
/**
|
|
8836
|
-
* No description
|
|
8837
|
-
*
|
|
8838
|
-
* @tags seats
|
|
8839
|
-
* @name RevokeSeatsFromMembersInOrganizationById
|
|
8840
|
-
* @summary Revoke seats for one or more members within an organization
|
|
8841
|
-
* @request DELETE:/orgs/{organizationId}/seats/members
|
|
8842
|
-
* @secure
|
|
8843
|
-
*/
|
|
8844
|
-
revokeSeatsFromMembersInOrganizationById: (organizationId: string, data: {
|
|
8845
|
-
/** The unique ID of the organization member */
|
|
8846
|
-
member: string;
|
|
8847
|
-
}[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8848
|
-
error: {
|
|
8849
|
-
/** @format int32 */
|
|
8850
|
-
code: 409;
|
|
8851
|
-
message: string;
|
|
8852
|
-
};
|
|
8853
|
-
}>>;
|
|
8854
|
-
/**
|
|
8855
|
-
* No description
|
|
8856
|
-
*
|
|
8857
|
-
* @tags seats
|
|
8858
|
-
* @name GetSeatForMemberInOrganizationById
|
|
8859
|
-
* @summary Get the seat of a member of the organization
|
|
8860
|
-
* @request GET:/orgs/{organizationId}/seats/members/{userId}
|
|
8861
|
-
* @secure
|
|
8862
|
-
*/
|
|
8863
|
-
getSeatForMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<Seat, Error | {
|
|
8864
|
-
error: {
|
|
8865
|
-
/** @format int32 */
|
|
8866
|
-
code: 409;
|
|
8867
|
-
message: string;
|
|
8868
|
-
};
|
|
8869
|
-
}>>;
|
|
8870
|
-
/**
|
|
8871
|
-
* No description
|
|
8872
|
-
*
|
|
8873
|
-
* @tags seats
|
|
8874
|
-
* @name AssignSeatToMemberInOrganizationById
|
|
8875
|
-
* @summary Assign an available seat to a member of the organization
|
|
8876
|
-
* @request PUT:/orgs/{organizationId}/seats/members/{userId}
|
|
8877
|
-
* @secure
|
|
8878
|
-
*/
|
|
8879
|
-
assignSeatToMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8880
|
-
error: {
|
|
8881
|
-
/** @format int32 */
|
|
8882
|
-
code: 409;
|
|
8883
|
-
message: string;
|
|
8884
|
-
};
|
|
8885
|
-
}>>;
|
|
8886
|
-
/**
|
|
8887
|
-
* No description
|
|
8888
|
-
*
|
|
8889
|
-
* @tags seats
|
|
8890
|
-
* @name RevokeSeatFromMemberInOrganizationById
|
|
8891
|
-
* @summary Revoke a seat from a member of the organization
|
|
8892
|
-
* @request DELETE:/orgs/{organizationId}/seats/members/{userId}
|
|
8893
|
-
* @secure
|
|
8894
|
-
*/
|
|
8895
|
-
revokeSeatFromMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8896
|
-
error: {
|
|
8897
|
-
/** @format int32 */
|
|
8898
|
-
code: 409;
|
|
8899
|
-
message: string;
|
|
8900
|
-
};
|
|
8901
|
-
}>>;
|
|
8902
8832
|
};
|
|
8903
8833
|
customHostnames: {
|
|
8904
8834
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -239,7 +239,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
239
239
|
|
|
240
240
|
// package.json
|
|
241
241
|
var name = "@gitbook/api";
|
|
242
|
-
var version = "0.
|
|
242
|
+
var version = "0.43.0";
|
|
243
243
|
|
|
244
244
|
// src/client.ts
|
|
245
245
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -516,6 +516,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
516
516
|
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
517
517
|
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
518
518
|
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
519
|
+
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
519
520
|
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
520
521
|
return IntegrationScope2;
|
|
521
522
|
})(IntegrationScope || {});
|
|
@@ -1208,6 +1209,14 @@ var Api = class extends HttpClient {
|
|
|
1208
1209
|
format: "json",
|
|
1209
1210
|
...params
|
|
1210
1211
|
}),
|
|
1212
|
+
listSpaceFileBacklinks: (spaceId, fileId, query, params = {}) => this.request({
|
|
1213
|
+
path: `/spaces/${spaceId}/content/files/${fileId}/backlinks`,
|
|
1214
|
+
method: "GET",
|
|
1215
|
+
query,
|
|
1216
|
+
secure: true,
|
|
1217
|
+
format: "json",
|
|
1218
|
+
...params
|
|
1219
|
+
}),
|
|
1211
1220
|
getPageById: (spaceId, pageId, query, params = {}) => this.request({
|
|
1212
1221
|
path: `/spaces/${spaceId}/content/page/${pageId}`,
|
|
1213
1222
|
method: "GET",
|
|
@@ -1459,6 +1468,14 @@ var Api = class extends HttpClient {
|
|
|
1459
1468
|
format: "json",
|
|
1460
1469
|
...params
|
|
1461
1470
|
}),
|
|
1471
|
+
listChangeRequestFileBacklinks: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
|
|
1472
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}/backlinks`,
|
|
1473
|
+
method: "GET",
|
|
1474
|
+
query,
|
|
1475
|
+
secure: true,
|
|
1476
|
+
format: "json",
|
|
1477
|
+
...params
|
|
1478
|
+
}),
|
|
1462
1479
|
getPageInChangeRequestById: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
|
|
1463
1480
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}`,
|
|
1464
1481
|
method: "GET",
|
|
@@ -2341,15 +2358,6 @@ var Api = class extends HttpClient {
|
|
|
2341
2358
|
format: "json",
|
|
2342
2359
|
...params
|
|
2343
2360
|
}),
|
|
2344
|
-
transferOrganization: (organizationId, data, params = {}) => this.request({
|
|
2345
|
-
path: `/orgs/${organizationId}/transfer`,
|
|
2346
|
-
method: "POST",
|
|
2347
|
-
body: data,
|
|
2348
|
-
secure: true,
|
|
2349
|
-
type: "application/json" /* Json */,
|
|
2350
|
-
format: "json",
|
|
2351
|
-
...params
|
|
2352
|
-
}),
|
|
2353
2361
|
searchOrganizationContent: (organizationId, query, params = {}) => this.request({
|
|
2354
2362
|
path: `/orgs/${organizationId}/search`,
|
|
2355
2363
|
method: "GET",
|
|
@@ -2526,13 +2534,6 @@ var Api = class extends HttpClient {
|
|
|
2526
2534
|
format: "json",
|
|
2527
2535
|
...params
|
|
2528
2536
|
}),
|
|
2529
|
-
getSeatsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2530
|
-
path: `/orgs/${organizationId}/usage/seats`,
|
|
2531
|
-
method: "GET",
|
|
2532
|
-
secure: true,
|
|
2533
|
-
format: "json",
|
|
2534
|
-
...params
|
|
2535
|
-
}),
|
|
2536
2537
|
listEntitySchemas: (organizationId, query, params = {}) => this.request({
|
|
2537
2538
|
path: `/orgs/${organizationId}/schemas`,
|
|
2538
2539
|
method: "GET",
|
|
@@ -2888,6 +2889,13 @@ var Api = class extends HttpClient {
|
|
|
2888
2889
|
format: "json",
|
|
2889
2890
|
...params
|
|
2890
2891
|
}),
|
|
2892
|
+
listSiteIntegrationScripts: (organizationId, siteId, params = {}) => this.request({
|
|
2893
|
+
path: `/orgs/${organizationId}/sites/${siteId}/integration-scripts`,
|
|
2894
|
+
method: "GET",
|
|
2895
|
+
secure: true,
|
|
2896
|
+
format: "json",
|
|
2897
|
+
...params
|
|
2898
|
+
}),
|
|
2891
2899
|
addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2892
2900
|
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2893
2901
|
method: "POST",
|
|
@@ -2936,71 +2944,22 @@ var Api = class extends HttpClient {
|
|
|
2936
2944
|
format: "json",
|
|
2937
2945
|
...params
|
|
2938
2946
|
}),
|
|
2939
|
-
|
|
2940
|
-
path: `/orgs/${organizationId}/sites/${siteId}/
|
|
2941
|
-
method: "GET",
|
|
2942
|
-
query,
|
|
2943
|
-
secure: true,
|
|
2944
|
-
format: "json",
|
|
2945
|
-
...params
|
|
2946
|
-
}),
|
|
2947
|
-
listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
|
|
2948
|
-
path: `/orgs/${organizationId}/seats`,
|
|
2949
|
-
method: "GET",
|
|
2950
|
-
secure: true,
|
|
2951
|
-
format: "json",
|
|
2952
|
-
...params
|
|
2953
|
-
}),
|
|
2954
|
-
addSeatsToOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2955
|
-
path: `/orgs/${organizationId}/seats`,
|
|
2947
|
+
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2948
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/move`,
|
|
2956
2949
|
method: "POST",
|
|
2957
2950
|
body: data,
|
|
2958
2951
|
secure: true,
|
|
2959
2952
|
type: "application/json" /* Json */,
|
|
2953
|
+
format: "json",
|
|
2960
2954
|
...params
|
|
2961
2955
|
}),
|
|
2962
|
-
|
|
2963
|
-
path: `/orgs/${organizationId}/
|
|
2964
|
-
method: "DELETE",
|
|
2965
|
-
body: data,
|
|
2966
|
-
secure: true,
|
|
2967
|
-
type: "application/json" /* Json */,
|
|
2968
|
-
...params
|
|
2969
|
-
}),
|
|
2970
|
-
assignSeatsToMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2971
|
-
path: `/orgs/${organizationId}/seats/members`,
|
|
2972
|
-
method: "PUT",
|
|
2973
|
-
body: data,
|
|
2974
|
-
secure: true,
|
|
2975
|
-
type: "application/json" /* Json */,
|
|
2976
|
-
...params
|
|
2977
|
-
}),
|
|
2978
|
-
revokeSeatsFromMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2979
|
-
path: `/orgs/${organizationId}/seats/members`,
|
|
2980
|
-
method: "DELETE",
|
|
2981
|
-
body: data,
|
|
2982
|
-
secure: true,
|
|
2983
|
-
type: "application/json" /* Json */,
|
|
2984
|
-
...params
|
|
2985
|
-
}),
|
|
2986
|
-
getSeatForMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2987
|
-
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2956
|
+
listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
2957
|
+
path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
|
|
2988
2958
|
method: "GET",
|
|
2959
|
+
query,
|
|
2989
2960
|
secure: true,
|
|
2990
2961
|
format: "json",
|
|
2991
2962
|
...params
|
|
2992
|
-
}),
|
|
2993
|
-
assignSeatToMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2994
|
-
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2995
|
-
method: "PUT",
|
|
2996
|
-
secure: true,
|
|
2997
|
-
...params
|
|
2998
|
-
}),
|
|
2999
|
-
revokeSeatFromMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
3000
|
-
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
3001
|
-
method: "DELETE",
|
|
3002
|
-
secure: true,
|
|
3003
|
-
...params
|
|
3004
2963
|
})
|
|
3005
2964
|
};
|
|
3006
2965
|
this.customHostnames = {
|