@phpsandbox/sdk 0.3.1 → 0.3.2

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.
@@ -19613,6 +19613,16 @@ var ServerInstance = class {
19613
19613
  async installation() {
19614
19614
  return (await this.client.get(`/servers/${encodeURIComponent(this.data.id)}/installation`)).data;
19615
19615
  }
19616
+ async members(options = {}) {
19617
+ const query = options.page === void 0 ? "" : `?${new URLSearchParams({ page: String(options.page) }).toString()}`;
19618
+ return this.client.get(`/servers/${encodeURIComponent(this.data.id)}/members${query}`);
19619
+ }
19620
+ async share(email3) {
19621
+ return (await this.client.post(`/servers/${encodeURIComponent(this.data.id)}/members`, { email: email3 })).data;
19622
+ }
19623
+ async revokeAccess(memberId) {
19624
+ await this.client.delete(`/servers/${encodeURIComponent(this.data.id)}/members/${encodeURIComponent(String(memberId))}`);
19625
+ }
19616
19626
  refresh() {
19617
19627
  return this.client.servers.get(this.data.id);
19618
19628
  }