@gitbook/api 0.160.1 → 0.161.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/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.160.1";
175
+ var version = "0.161.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -3548,6 +3548,12 @@ var Api = class extends HttpClient {
3548
3548
  format: "json",
3549
3549
  ...params
3550
3550
  }),
3551
+ deleteSiteContextConnectionById: (organizationId, siteId, siteContextConnectionId, params = {}) => this.request({
3552
+ path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}`,
3553
+ method: "DELETE",
3554
+ secure: true,
3555
+ ...params
3556
+ }),
3551
3557
  syncSiteContextConnection: (organizationId, siteId, siteContextConnectionId, params = {}) => this.request({
3552
3558
  path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}/sync`,
3553
3559
  method: "POST",
@@ -3643,6 +3649,14 @@ var Api = class extends HttpClient {
3643
3649
  format: "json",
3644
3650
  ...params
3645
3651
  }),
3652
+ inviteToSite: (organizationId, siteId, data, params = {}) => this.request({
3653
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions`,
3654
+ method: "POST",
3655
+ body: data,
3656
+ secure: true,
3657
+ type: "application/json" /* Json */,
3658
+ ...params
3659
+ }),
3646
3660
  listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
3647
3661
  path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
3648
3662
  method: "GET",
@@ -3651,6 +3665,50 @@ var Api = class extends HttpClient {
3651
3665
  format: "json",
3652
3666
  ...params
3653
3667
  }),
3668
+ listUserPermissionsInSite: (organizationId, siteId, query, params = {}) => this.request({
3669
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions/users`,
3670
+ method: "GET",
3671
+ query,
3672
+ secure: true,
3673
+ format: "json",
3674
+ ...params
3675
+ }),
3676
+ updateUserPermissionInSite: (organizationId, siteId, userId, data, params = {}) => this.request({
3677
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions/users/${userId}`,
3678
+ method: "PATCH",
3679
+ body: data,
3680
+ secure: true,
3681
+ type: "application/json" /* Json */,
3682
+ ...params
3683
+ }),
3684
+ removeUserFromSite: (organizationId, siteId, userId, params = {}) => this.request({
3685
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions/users/${userId}`,
3686
+ method: "DELETE",
3687
+ secure: true,
3688
+ ...params
3689
+ }),
3690
+ listTeamPermissionsInSite: (organizationId, siteId, query, params = {}) => this.request({
3691
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions/teams`,
3692
+ method: "GET",
3693
+ query,
3694
+ secure: true,
3695
+ format: "json",
3696
+ ...params
3697
+ }),
3698
+ updateTeamPermissionInSite: (organizationId, siteId, teamId, data, params = {}) => this.request({
3699
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions/teams/${teamId}`,
3700
+ method: "PATCH",
3701
+ body: data,
3702
+ secure: true,
3703
+ type: "application/json" /* Json */,
3704
+ ...params
3705
+ }),
3706
+ removeTeamFromSite: (organizationId, siteId, teamId, params = {}) => this.request({
3707
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions/teams/${teamId}`,
3708
+ method: "DELETE",
3709
+ secure: true,
3710
+ ...params
3711
+ }),
3654
3712
  streamAiResponseInSite: (organizationId, siteId, data, params = {}) => this.streamRequest({
3655
3713
  path: `/orgs/${organizationId}/sites/${siteId}/ai/response`,
3656
3714
  method: "POST",
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.160.1",
7
+ "version": "0.161.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",