@gitbook/api 0.41.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 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;
@@ -3783,7 +3778,7 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
3783
3778
  } | CollectionChannel | CollectionPublishingCustomizationChannel | {
3784
3779
  channel: 'organization';
3785
3780
  organization: string;
3786
- } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationSeatsChannel | OrganizationUsageSeatsChannel | OrganizationSeatChannel | {
3781
+ } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | {
3787
3782
  channel: 'organization-experimental-features';
3788
3783
  organization: string;
3789
3784
  } | OrganizationSyncedBlockChannel | {
@@ -3953,22 +3948,6 @@ export interface OrganizationSitesChannel {
3953
3948
  channel: 'organization-sites';
3954
3949
  organization: string;
3955
3950
  }
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
3951
  export interface IntegrationChannel {
3973
3952
  channel: 'integration';
3974
3953
  integration: string;
@@ -4551,6 +4530,16 @@ export interface SiteSpace {
4551
4530
  * @maxLength 100
4552
4531
  */
4553
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
+ }
4554
4543
  export declare enum SiteSubscriptionStatus {
4555
4544
  Active = "active",
4556
4545
  Inactive = "inactive"
@@ -5185,6 +5174,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5185
5174
  */
5186
5175
  metadata?: boolean;
5187
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>>;
5188
5198
  /**
5189
5199
  * No description
5190
5200
  *
@@ -5699,6 +5709,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5699
5709
  */
5700
5710
  metadata?: boolean;
5701
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>>;
5702
5733
  /**
5703
5734
  * No description
5704
5735
  *
@@ -7138,6 +7169,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7138
7169
  /** Name of the organization */
7139
7170
  title?: OrganizationTitle;
7140
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;
7141
7178
  /** The role of a member in an organization, null for guests */
7142
7179
  defaultRole?: MemberRoleOrGuest;
7143
7180
  defaultContent?: OrganizationDefaultContent | null;
@@ -7508,26 +7545,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7508
7545
  * @secure
7509
7546
  */
7510
7547
  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
7548
  /**
7532
7549
  * No description
7533
7550
  *
@@ -7906,19 +7923,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7906
7923
  /** Team members usage metrics of an organization */
7907
7924
  teamMembers: OrganizationUsageTeamMembers;
7908
7925
  }, 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
7926
  /**
7923
7927
  * No description
7924
7928
  *
@@ -8738,6 +8742,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8738
8742
  message: string;
8739
8743
  };
8740
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
+ }>>;
8741
8770
  /**
8742
8771
  * No description
8743
8772
  *
@@ -8775,130 +8804,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8775
8804
  origin: SpacePointer;
8776
8805
  }[];
8777
8806
  }, 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
8807
  };
8903
8808
  customHostnames: {
8904
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.41.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
- listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
2940
- path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
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
- removeSeatsFromOrganizationById: (organizationId, data, params = {}) => this.request({
2963
- path: `/orgs/${organizationId}/seats`,
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 = {
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.41.0";
175
+ var version = "0.42.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1141,6 +1141,14 @@ var Api = class extends HttpClient {
1141
1141
  format: "json",
1142
1142
  ...params
1143
1143
  }),
1144
+ listSpaceFileBacklinks: (spaceId, fileId, query, params = {}) => this.request({
1145
+ path: `/spaces/${spaceId}/content/files/${fileId}/backlinks`,
1146
+ method: "GET",
1147
+ query,
1148
+ secure: true,
1149
+ format: "json",
1150
+ ...params
1151
+ }),
1144
1152
  getPageById: (spaceId, pageId, query, params = {}) => this.request({
1145
1153
  path: `/spaces/${spaceId}/content/page/${pageId}`,
1146
1154
  method: "GET",
@@ -1392,6 +1400,14 @@ var Api = class extends HttpClient {
1392
1400
  format: "json",
1393
1401
  ...params
1394
1402
  }),
1403
+ listChangeRequestFileBacklinks: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
1404
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}/backlinks`,
1405
+ method: "GET",
1406
+ query,
1407
+ secure: true,
1408
+ format: "json",
1409
+ ...params
1410
+ }),
1395
1411
  getPageInChangeRequestById: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
1396
1412
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}`,
1397
1413
  method: "GET",
@@ -2274,15 +2290,6 @@ var Api = class extends HttpClient {
2274
2290
  format: "json",
2275
2291
  ...params
2276
2292
  }),
2277
- transferOrganization: (organizationId, data, params = {}) => this.request({
2278
- path: `/orgs/${organizationId}/transfer`,
2279
- method: "POST",
2280
- body: data,
2281
- secure: true,
2282
- type: "application/json" /* Json */,
2283
- format: "json",
2284
- ...params
2285
- }),
2286
2293
  searchOrganizationContent: (organizationId, query, params = {}) => this.request({
2287
2294
  path: `/orgs/${organizationId}/search`,
2288
2295
  method: "GET",
@@ -2459,13 +2466,6 @@ var Api = class extends HttpClient {
2459
2466
  format: "json",
2460
2467
  ...params
2461
2468
  }),
2462
- getSeatsUsageForOrganizationById: (organizationId, params = {}) => this.request({
2463
- path: `/orgs/${organizationId}/usage/seats`,
2464
- method: "GET",
2465
- secure: true,
2466
- format: "json",
2467
- ...params
2468
- }),
2469
2469
  listEntitySchemas: (organizationId, query, params = {}) => this.request({
2470
2470
  path: `/orgs/${organizationId}/schemas`,
2471
2471
  method: "GET",
@@ -2869,71 +2869,22 @@ var Api = class extends HttpClient {
2869
2869
  format: "json",
2870
2870
  ...params
2871
2871
  }),
2872
- listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
2873
- path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
2874
- method: "GET",
2875
- query,
2876
- secure: true,
2877
- format: "json",
2878
- ...params
2879
- }),
2880
- listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
2881
- path: `/orgs/${organizationId}/seats`,
2882
- method: "GET",
2883
- secure: true,
2884
- format: "json",
2885
- ...params
2886
- }),
2887
- addSeatsToOrganizationById: (organizationId, data, params = {}) => this.request({
2888
- path: `/orgs/${organizationId}/seats`,
2872
+ moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
2873
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/move`,
2889
2874
  method: "POST",
2890
2875
  body: data,
2891
2876
  secure: true,
2892
2877
  type: "application/json" /* Json */,
2878
+ format: "json",
2893
2879
  ...params
2894
2880
  }),
2895
- removeSeatsFromOrganizationById: (organizationId, data, params = {}) => this.request({
2896
- path: `/orgs/${organizationId}/seats`,
2897
- method: "DELETE",
2898
- body: data,
2899
- secure: true,
2900
- type: "application/json" /* Json */,
2901
- ...params
2902
- }),
2903
- assignSeatsToMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
2904
- path: `/orgs/${organizationId}/seats/members`,
2905
- method: "PUT",
2906
- body: data,
2907
- secure: true,
2908
- type: "application/json" /* Json */,
2909
- ...params
2910
- }),
2911
- revokeSeatsFromMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
2912
- path: `/orgs/${organizationId}/seats/members`,
2913
- method: "DELETE",
2914
- body: data,
2915
- secure: true,
2916
- type: "application/json" /* Json */,
2917
- ...params
2918
- }),
2919
- getSeatForMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2920
- path: `/orgs/${organizationId}/seats/members/${userId}`,
2881
+ listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
2882
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
2921
2883
  method: "GET",
2884
+ query,
2922
2885
  secure: true,
2923
2886
  format: "json",
2924
2887
  ...params
2925
- }),
2926
- assignSeatToMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2927
- path: `/orgs/${organizationId}/seats/members/${userId}`,
2928
- method: "PUT",
2929
- secure: true,
2930
- ...params
2931
- }),
2932
- revokeSeatFromMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2933
- path: `/orgs/${organizationId}/seats/members/${userId}`,
2934
- method: "DELETE",
2935
- secure: true,
2936
- ...params
2937
2888
  })
2938
2889
  };
2939
2890
  this.customHostnames = {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.41.0",
7
+ "version": "0.42.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",