@gitbook/api 0.40.0 → 0.42.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 +114 -183
- package/dist/index.cjs +23 -72
- package/dist/index.js +23 -72
- package/package.json +1 -1
- package/spec/openapi.json +334 -592
- package/spec/openapi.yaml +183 -337
package/dist/client.d.ts
CHANGED
|
@@ -524,6 +524,8 @@ export declare type PublishedSiteContentLookup = {
|
|
|
524
524
|
basePath: string;
|
|
525
525
|
/** Short-lived API token to fetch content related to the space in the context of the URL. */
|
|
526
526
|
apiToken: string;
|
|
527
|
+
/** ID of the organization. */
|
|
528
|
+
organization: string;
|
|
527
529
|
};
|
|
528
530
|
export interface SpacePointer {
|
|
529
531
|
type: 'space';
|
|
@@ -1597,7 +1599,9 @@ export interface Organization {
|
|
|
1597
1599
|
id: string;
|
|
1598
1600
|
/** Name of the organization */
|
|
1599
1601
|
title: OrganizationTitle;
|
|
1602
|
+
createdAt: Timestamp;
|
|
1600
1603
|
emailDomains: OrganizationEmailDomains;
|
|
1604
|
+
hostname?: any;
|
|
1601
1605
|
type: OrganizationType;
|
|
1602
1606
|
useCase?: OrganizationUseCase;
|
|
1603
1607
|
communityType?: OrganizationCommunityType;
|
|
@@ -1781,8 +1785,6 @@ export interface OrganizationUsage {
|
|
|
1781
1785
|
collections: OrganizationUsageCollections;
|
|
1782
1786
|
/** Sites usage metrics of an organization */
|
|
1783
1787
|
sites: OrganizationUsageSites;
|
|
1784
|
-
/** Seats usage metrics of an organization */
|
|
1785
|
-
seats: OrganizationUsageSeats;
|
|
1786
1788
|
/** Team members usage metrics of an organization */
|
|
1787
1789
|
teams: OrganizationUsageTeams;
|
|
1788
1790
|
/** Members usage metrics of an organization */
|
|
@@ -1819,6 +1821,8 @@ export interface OrganizationUsageSites {
|
|
|
1819
1821
|
export interface OrganizationUsageMembers {
|
|
1820
1822
|
/** Count of all members */
|
|
1821
1823
|
total: number;
|
|
1824
|
+
/** Count of all paid seats */
|
|
1825
|
+
seats: number;
|
|
1822
1826
|
/** Count of all admins */
|
|
1823
1827
|
admin: number;
|
|
1824
1828
|
/** Count of all creators */
|
|
@@ -1848,13 +1852,6 @@ export interface OrganizationUsageTeamMembers {
|
|
|
1848
1852
|
/** Count of all team members */
|
|
1849
1853
|
member: number;
|
|
1850
1854
|
}
|
|
1851
|
-
/** Seats usage metrics of an organization */
|
|
1852
|
-
export interface OrganizationUsageSeats {
|
|
1853
|
-
/** The total amount of seats in the organization. */
|
|
1854
|
-
total: number;
|
|
1855
|
-
/** How many seats are still available. */
|
|
1856
|
-
available: number;
|
|
1857
|
-
}
|
|
1858
1855
|
export interface Capture {
|
|
1859
1856
|
/** Unique identifier for the capture */
|
|
1860
1857
|
id: string;
|
|
@@ -3781,7 +3778,7 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
|
|
|
3781
3778
|
} | CollectionChannel | CollectionPublishingCustomizationChannel | {
|
|
3782
3779
|
channel: 'organization';
|
|
3783
3780
|
organization: string;
|
|
3784
|
-
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel |
|
|
3781
|
+
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | {
|
|
3785
3782
|
channel: 'organization-experimental-features';
|
|
3786
3783
|
organization: string;
|
|
3787
3784
|
} | OrganizationSyncedBlockChannel | {
|
|
@@ -3951,22 +3948,6 @@ export interface OrganizationSitesChannel {
|
|
|
3951
3948
|
channel: 'organization-sites';
|
|
3952
3949
|
organization: string;
|
|
3953
3950
|
}
|
|
3954
|
-
/** Subscription channel for changes in a member seat in an organization. */
|
|
3955
|
-
export interface OrganizationSeatChannel {
|
|
3956
|
-
channel: 'organization-seat';
|
|
3957
|
-
organization: string;
|
|
3958
|
-
member: string;
|
|
3959
|
-
}
|
|
3960
|
-
/** Subscription channel for changes in seats in an organization. */
|
|
3961
|
-
export interface OrganizationSeatsChannel {
|
|
3962
|
-
channel: 'organization-seats';
|
|
3963
|
-
organization: string;
|
|
3964
|
-
}
|
|
3965
|
-
/** Subscription channel for changes in seats usage in an organization. */
|
|
3966
|
-
export interface OrganizationUsageSeatsChannel {
|
|
3967
|
-
channel: 'organization-usage-seats';
|
|
3968
|
-
organization: string;
|
|
3969
|
-
}
|
|
3970
3951
|
export interface IntegrationChannel {
|
|
3971
3952
|
channel: 'integration';
|
|
3972
3953
|
integration: string;
|
|
@@ -4328,6 +4309,8 @@ export interface Site {
|
|
|
4328
4309
|
*/
|
|
4329
4310
|
export declare type SiteTitle = string;
|
|
4330
4311
|
export interface SiteCustomizationSettings {
|
|
4312
|
+
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
4313
|
+
title?: SiteTitle;
|
|
4331
4314
|
styling: {
|
|
4332
4315
|
primaryColor: CustomizationThemedColor;
|
|
4333
4316
|
corners: CustomizationCorners;
|
|
@@ -4394,6 +4377,8 @@ export interface SiteCustomizationSettings {
|
|
|
4394
4377
|
};
|
|
4395
4378
|
}
|
|
4396
4379
|
export interface SiteSpaceCustomizationOverrides {
|
|
4380
|
+
/** Title to use for the published site variant. If not defined, it'll fallback to the content title. */
|
|
4381
|
+
title?: SiteTitle;
|
|
4397
4382
|
styling?: {
|
|
4398
4383
|
/** The primary color used for links and UI text. Set to null to reset the override. */
|
|
4399
4384
|
primaryColor?: CustomizationThemedColor | null;
|
|
@@ -4530,6 +4515,14 @@ export interface SiteSpace {
|
|
|
4530
4515
|
space: Space;
|
|
4531
4516
|
/** Whether this is the default space for the site */
|
|
4532
4517
|
default?: boolean;
|
|
4518
|
+
/** URLs associated with the object */
|
|
4519
|
+
urls: {
|
|
4520
|
+
/**
|
|
4521
|
+
* URL of the published version of the site-space. Only defined when site is not "unpublished"
|
|
4522
|
+
* @format uri
|
|
4523
|
+
*/
|
|
4524
|
+
published?: string;
|
|
4525
|
+
};
|
|
4533
4526
|
}
|
|
4534
4527
|
/**
|
|
4535
4528
|
* Path to the space on the site
|
|
@@ -4537,6 +4530,16 @@ export interface SiteSpace {
|
|
|
4537
4530
|
* @maxLength 100
|
|
4538
4531
|
*/
|
|
4539
4532
|
export declare type SiteSpacePath = string;
|
|
4533
|
+
/** Position at which to move the site space to. */
|
|
4534
|
+
export interface SiteSpaceMovePosition {
|
|
4535
|
+
before?: SiteSpacePointer;
|
|
4536
|
+
after?: SiteSpacePointer;
|
|
4537
|
+
}
|
|
4538
|
+
export interface SiteSpacePointer {
|
|
4539
|
+
type: 'site-space';
|
|
4540
|
+
/** Unique identifier for the site space */
|
|
4541
|
+
siteSpace: string;
|
|
4542
|
+
}
|
|
4540
4543
|
export declare enum SiteSubscriptionStatus {
|
|
4541
4544
|
Active = "active",
|
|
4542
4545
|
Inactive = "inactive"
|
|
@@ -4910,6 +4913,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4910
4913
|
code: 409;
|
|
4911
4914
|
message: string;
|
|
4912
4915
|
};
|
|
4916
|
+
} | {
|
|
4917
|
+
error: {
|
|
4918
|
+
/** @format int32 */
|
|
4919
|
+
code: 412;
|
|
4920
|
+
message: string;
|
|
4921
|
+
};
|
|
4913
4922
|
}>>;
|
|
4914
4923
|
/**
|
|
4915
4924
|
* No description
|
|
@@ -5165,6 +5174,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5165
5174
|
*/
|
|
5166
5175
|
metadata?: boolean;
|
|
5167
5176
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
5177
|
+
/**
|
|
5178
|
+
* No description
|
|
5179
|
+
*
|
|
5180
|
+
* @tags spaces
|
|
5181
|
+
* @name ListSpaceFileBacklinks
|
|
5182
|
+
* @summary Get backlink locations for a file existing in a space.
|
|
5183
|
+
* @request GET:/spaces/{spaceId}/content/files/{fileId}/backlinks
|
|
5184
|
+
* @secure
|
|
5185
|
+
*/
|
|
5186
|
+
listSpaceFileBacklinks: (spaceId: string, fileId: string, query?: {
|
|
5187
|
+
/** Identifier of the page results to fetch. */
|
|
5188
|
+
page?: string;
|
|
5189
|
+
/**
|
|
5190
|
+
* The number of results per page
|
|
5191
|
+
* @min 0
|
|
5192
|
+
* @max 1000
|
|
5193
|
+
*/
|
|
5194
|
+
limit?: number;
|
|
5195
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5196
|
+
items: ContentLocation[];
|
|
5197
|
+
}, Error>>;
|
|
5168
5198
|
/**
|
|
5169
5199
|
* No description
|
|
5170
5200
|
*
|
|
@@ -5679,6 +5709,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5679
5709
|
*/
|
|
5680
5710
|
metadata?: boolean;
|
|
5681
5711
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
5712
|
+
/**
|
|
5713
|
+
* No description
|
|
5714
|
+
*
|
|
5715
|
+
* @tags spaces
|
|
5716
|
+
* @name ListChangeRequestFileBacklinks
|
|
5717
|
+
* @summary Get backlink locations for a file existing in a change request.
|
|
5718
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks
|
|
5719
|
+
* @secure
|
|
5720
|
+
*/
|
|
5721
|
+
listChangeRequestFileBacklinks: (spaceId: string, changeRequestId: string, fileId: string, query?: {
|
|
5722
|
+
/** Identifier of the page results to fetch. */
|
|
5723
|
+
page?: string;
|
|
5724
|
+
/**
|
|
5725
|
+
* The number of results per page
|
|
5726
|
+
* @min 0
|
|
5727
|
+
* @max 1000
|
|
5728
|
+
*/
|
|
5729
|
+
limit?: number;
|
|
5730
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5731
|
+
items: ContentLocation[];
|
|
5732
|
+
}, Error>>;
|
|
5682
5733
|
/**
|
|
5683
5734
|
* No description
|
|
5684
5735
|
*
|
|
@@ -6442,6 +6493,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6442
6493
|
code: 409;
|
|
6443
6494
|
message: string;
|
|
6444
6495
|
};
|
|
6496
|
+
} | {
|
|
6497
|
+
error: {
|
|
6498
|
+
/** @format int32 */
|
|
6499
|
+
code: 412;
|
|
6500
|
+
message: string;
|
|
6501
|
+
};
|
|
6445
6502
|
}>>;
|
|
6446
6503
|
/**
|
|
6447
6504
|
* No description
|
|
@@ -7112,6 +7169,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7112
7169
|
/** Name of the organization */
|
|
7113
7170
|
title?: OrganizationTitle;
|
|
7114
7171
|
emailDomains?: OrganizationEmailDomains;
|
|
7172
|
+
/**
|
|
7173
|
+
* Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io
|
|
7174
|
+
* @minLength 3
|
|
7175
|
+
* @maxLength 32
|
|
7176
|
+
*/
|
|
7177
|
+
hostname?: string;
|
|
7115
7178
|
/** The role of a member in an organization, null for guests */
|
|
7116
7179
|
defaultRole?: MemberRoleOrGuest;
|
|
7117
7180
|
defaultContent?: OrganizationDefaultContent | null;
|
|
@@ -7482,26 +7545,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7482
7545
|
* @secure
|
|
7483
7546
|
*/
|
|
7484
7547
|
requestOrganizationUpgrade: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
|
|
7485
|
-
/**
|
|
7486
|
-
* No description
|
|
7487
|
-
*
|
|
7488
|
-
* @tags organizations
|
|
7489
|
-
* @name TransferOrganization
|
|
7490
|
-
* @summary Transfer one organization (source) into another organization (target).
|
|
7491
|
-
* @request POST:/orgs/{organizationId}/transfer
|
|
7492
|
-
* @secure
|
|
7493
|
-
*/
|
|
7494
|
-
transferOrganization: (organizationId: string, data: {
|
|
7495
|
-
/** The unique id of the organization to transfer into the current one. */
|
|
7496
|
-
source: string;
|
|
7497
|
-
/** 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. */
|
|
7498
|
-
defaultOrgRole?: MemberRoleOrGuest | 'saml';
|
|
7499
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
7500
|
-
/** The unique id of the collection created in the target organization containing the content of the source organization. */
|
|
7501
|
-
collection: string;
|
|
7502
|
-
/** The new hostname if the source organization needed to change hostname. */
|
|
7503
|
-
newSourceHostname?: string;
|
|
7504
|
-
}, Error>>;
|
|
7505
7548
|
/**
|
|
7506
7549
|
* No description
|
|
7507
7550
|
*
|
|
@@ -7880,19 +7923,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7880
7923
|
/** Team members usage metrics of an organization */
|
|
7881
7924
|
teamMembers: OrganizationUsageTeamMembers;
|
|
7882
7925
|
}, Error>>;
|
|
7883
|
-
/**
|
|
7884
|
-
* No description
|
|
7885
|
-
*
|
|
7886
|
-
* @tags organizations, usage
|
|
7887
|
-
* @name GetSeatsUsageForOrganizationById
|
|
7888
|
-
* @summary Get seats usage metrics for an organization
|
|
7889
|
-
* @request GET:/orgs/{organizationId}/usage/seats
|
|
7890
|
-
* @secure
|
|
7891
|
-
*/
|
|
7892
|
-
getSeatsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
7893
|
-
/** Seats usage metrics of an organization */
|
|
7894
|
-
seats: OrganizationUsageSeats;
|
|
7895
|
-
}, Error>>;
|
|
7896
7926
|
/**
|
|
7897
7927
|
* No description
|
|
7898
7928
|
*
|
|
@@ -8712,6 +8742,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8712
8742
|
message: string;
|
|
8713
8743
|
};
|
|
8714
8744
|
}>>;
|
|
8745
|
+
/**
|
|
8746
|
+
* No description
|
|
8747
|
+
*
|
|
8748
|
+
* @tags sites
|
|
8749
|
+
* @name MoveSiteSpace
|
|
8750
|
+
* @summary Move a site space to a new position in the site.
|
|
8751
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move
|
|
8752
|
+
* @secure
|
|
8753
|
+
*/
|
|
8754
|
+
moveSiteSpace: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|
|
8755
|
+
/** The position where to move the site space. When not provided the site space is moved at the end of the site. */
|
|
8756
|
+
position?: SiteSpaceMovePosition;
|
|
8757
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error | {
|
|
8758
|
+
error: {
|
|
8759
|
+
/** @format int32 */
|
|
8760
|
+
code: 400;
|
|
8761
|
+
message: string;
|
|
8762
|
+
};
|
|
8763
|
+
} | {
|
|
8764
|
+
error: {
|
|
8765
|
+
/** @format int32 */
|
|
8766
|
+
code: 404;
|
|
8767
|
+
message: string;
|
|
8768
|
+
};
|
|
8769
|
+
}>>;
|
|
8715
8770
|
/**
|
|
8716
8771
|
* No description
|
|
8717
8772
|
*
|
|
@@ -8749,130 +8804,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8749
8804
|
origin: SpacePointer;
|
|
8750
8805
|
}[];
|
|
8751
8806
|
}, Error>>;
|
|
8752
|
-
/**
|
|
8753
|
-
* No description
|
|
8754
|
-
*
|
|
8755
|
-
* @tags seats
|
|
8756
|
-
* @name ListSeatsInOrganizationById
|
|
8757
|
-
* @summary List all seats in an organization
|
|
8758
|
-
* @request GET:/orgs/{organizationId}/seats
|
|
8759
|
-
* @secure
|
|
8760
|
-
*/
|
|
8761
|
-
listSeatsInOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8762
|
-
items: Seat[];
|
|
8763
|
-
}, Error>>;
|
|
8764
|
-
/**
|
|
8765
|
-
* No description
|
|
8766
|
-
*
|
|
8767
|
-
* @tags seats
|
|
8768
|
-
* @name AddSeatsToOrganizationById
|
|
8769
|
-
* @summary Add more seats to an organization
|
|
8770
|
-
* @request POST:/orgs/{organizationId}/seats
|
|
8771
|
-
* @secure
|
|
8772
|
-
*/
|
|
8773
|
-
addSeatsToOrganizationById: (organizationId: string, data: {
|
|
8774
|
-
/** How many seats to add */
|
|
8775
|
-
amount: number;
|
|
8776
|
-
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8777
|
-
/**
|
|
8778
|
-
* No description
|
|
8779
|
-
*
|
|
8780
|
-
* @tags seats
|
|
8781
|
-
* @name RemoveSeatsFromOrganizationById
|
|
8782
|
-
* @summary Remove unassigned seats from an organization
|
|
8783
|
-
* @request DELETE:/orgs/{organizationId}/seats
|
|
8784
|
-
* @secure
|
|
8785
|
-
*/
|
|
8786
|
-
removeSeatsFromOrganizationById: (organizationId: string, data: {
|
|
8787
|
-
/** How many seats to remove. Omit to remove all unassigned seats. */
|
|
8788
|
-
amount?: number;
|
|
8789
|
-
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8790
|
-
/**
|
|
8791
|
-
* No description
|
|
8792
|
-
*
|
|
8793
|
-
* @tags seats
|
|
8794
|
-
* @name AssignSeatsToMembersInOrganizationById
|
|
8795
|
-
* @summary Assign seats for one or more members within an organization
|
|
8796
|
-
* @request PUT:/orgs/{organizationId}/seats/members
|
|
8797
|
-
* @secure
|
|
8798
|
-
*/
|
|
8799
|
-
assignSeatsToMembersInOrganizationById: (organizationId: string, data: {
|
|
8800
|
-
/** The unique ID of the organization member */
|
|
8801
|
-
member: string;
|
|
8802
|
-
}[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8803
|
-
error: {
|
|
8804
|
-
/** @format int32 */
|
|
8805
|
-
code: 409;
|
|
8806
|
-
message: string;
|
|
8807
|
-
};
|
|
8808
|
-
}>>;
|
|
8809
|
-
/**
|
|
8810
|
-
* No description
|
|
8811
|
-
*
|
|
8812
|
-
* @tags seats
|
|
8813
|
-
* @name RevokeSeatsFromMembersInOrganizationById
|
|
8814
|
-
* @summary Revoke seats for one or more members within an organization
|
|
8815
|
-
* @request DELETE:/orgs/{organizationId}/seats/members
|
|
8816
|
-
* @secure
|
|
8817
|
-
*/
|
|
8818
|
-
revokeSeatsFromMembersInOrganizationById: (organizationId: string, data: {
|
|
8819
|
-
/** The unique ID of the organization member */
|
|
8820
|
-
member: string;
|
|
8821
|
-
}[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8822
|
-
error: {
|
|
8823
|
-
/** @format int32 */
|
|
8824
|
-
code: 409;
|
|
8825
|
-
message: string;
|
|
8826
|
-
};
|
|
8827
|
-
}>>;
|
|
8828
|
-
/**
|
|
8829
|
-
* No description
|
|
8830
|
-
*
|
|
8831
|
-
* @tags seats
|
|
8832
|
-
* @name GetSeatForMemberInOrganizationById
|
|
8833
|
-
* @summary Get the seat of a member of the organization
|
|
8834
|
-
* @request GET:/orgs/{organizationId}/seats/members/{userId}
|
|
8835
|
-
* @secure
|
|
8836
|
-
*/
|
|
8837
|
-
getSeatForMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<Seat, Error | {
|
|
8838
|
-
error: {
|
|
8839
|
-
/** @format int32 */
|
|
8840
|
-
code: 409;
|
|
8841
|
-
message: string;
|
|
8842
|
-
};
|
|
8843
|
-
}>>;
|
|
8844
|
-
/**
|
|
8845
|
-
* No description
|
|
8846
|
-
*
|
|
8847
|
-
* @tags seats
|
|
8848
|
-
* @name AssignSeatToMemberInOrganizationById
|
|
8849
|
-
* @summary Assign an available seat to a member of the organization
|
|
8850
|
-
* @request PUT:/orgs/{organizationId}/seats/members/{userId}
|
|
8851
|
-
* @secure
|
|
8852
|
-
*/
|
|
8853
|
-
assignSeatToMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8854
|
-
error: {
|
|
8855
|
-
/** @format int32 */
|
|
8856
|
-
code: 409;
|
|
8857
|
-
message: string;
|
|
8858
|
-
};
|
|
8859
|
-
}>>;
|
|
8860
|
-
/**
|
|
8861
|
-
* No description
|
|
8862
|
-
*
|
|
8863
|
-
* @tags seats
|
|
8864
|
-
* @name RevokeSeatFromMemberInOrganizationById
|
|
8865
|
-
* @summary Revoke a seat from a member of the organization
|
|
8866
|
-
* @request DELETE:/orgs/{organizationId}/seats/members/{userId}
|
|
8867
|
-
* @secure
|
|
8868
|
-
*/
|
|
8869
|
-
revokeSeatFromMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8870
|
-
error: {
|
|
8871
|
-
/** @format int32 */
|
|
8872
|
-
code: 409;
|
|
8873
|
-
message: string;
|
|
8874
|
-
};
|
|
8875
|
-
}>>;
|
|
8876
8807
|
};
|
|
8877
8808
|
customHostnames: {
|
|
8878
8809
|
/**
|
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.42.0";
|
|
243
243
|
|
|
244
244
|
// src/client.ts
|
|
245
245
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1208,6 +1208,14 @@ var Api = class extends HttpClient {
|
|
|
1208
1208
|
format: "json",
|
|
1209
1209
|
...params
|
|
1210
1210
|
}),
|
|
1211
|
+
listSpaceFileBacklinks: (spaceId, fileId, query, params = {}) => this.request({
|
|
1212
|
+
path: `/spaces/${spaceId}/content/files/${fileId}/backlinks`,
|
|
1213
|
+
method: "GET",
|
|
1214
|
+
query,
|
|
1215
|
+
secure: true,
|
|
1216
|
+
format: "json",
|
|
1217
|
+
...params
|
|
1218
|
+
}),
|
|
1211
1219
|
getPageById: (spaceId, pageId, query, params = {}) => this.request({
|
|
1212
1220
|
path: `/spaces/${spaceId}/content/page/${pageId}`,
|
|
1213
1221
|
method: "GET",
|
|
@@ -1459,6 +1467,14 @@ var Api = class extends HttpClient {
|
|
|
1459
1467
|
format: "json",
|
|
1460
1468
|
...params
|
|
1461
1469
|
}),
|
|
1470
|
+
listChangeRequestFileBacklinks: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
|
|
1471
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}/backlinks`,
|
|
1472
|
+
method: "GET",
|
|
1473
|
+
query,
|
|
1474
|
+
secure: true,
|
|
1475
|
+
format: "json",
|
|
1476
|
+
...params
|
|
1477
|
+
}),
|
|
1462
1478
|
getPageInChangeRequestById: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
|
|
1463
1479
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}`,
|
|
1464
1480
|
method: "GET",
|
|
@@ -2341,15 +2357,6 @@ var Api = class extends HttpClient {
|
|
|
2341
2357
|
format: "json",
|
|
2342
2358
|
...params
|
|
2343
2359
|
}),
|
|
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
2360
|
searchOrganizationContent: (organizationId, query, params = {}) => this.request({
|
|
2354
2361
|
path: `/orgs/${organizationId}/search`,
|
|
2355
2362
|
method: "GET",
|
|
@@ -2526,13 +2533,6 @@ var Api = class extends HttpClient {
|
|
|
2526
2533
|
format: "json",
|
|
2527
2534
|
...params
|
|
2528
2535
|
}),
|
|
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
2536
|
listEntitySchemas: (organizationId, query, params = {}) => this.request({
|
|
2537
2537
|
path: `/orgs/${organizationId}/schemas`,
|
|
2538
2538
|
method: "GET",
|
|
@@ -2936,71 +2936,22 @@ var Api = class extends HttpClient {
|
|
|
2936
2936
|
format: "json",
|
|
2937
2937
|
...params
|
|
2938
2938
|
}),
|
|
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`,
|
|
2939
|
+
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2940
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/move`,
|
|
2956
2941
|
method: "POST",
|
|
2957
2942
|
body: data,
|
|
2958
2943
|
secure: true,
|
|
2959
2944
|
type: "application/json" /* Json */,
|
|
2945
|
+
format: "json",
|
|
2960
2946
|
...params
|
|
2961
2947
|
}),
|
|
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}`,
|
|
2948
|
+
listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
2949
|
+
path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
|
|
2988
2950
|
method: "GET",
|
|
2951
|
+
query,
|
|
2989
2952
|
secure: true,
|
|
2990
2953
|
format: "json",
|
|
2991
2954
|
...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
2955
|
})
|
|
3005
2956
|
};
|
|
3006
2957
|
this.customHostnames = {
|