import {
  __esm,
  __objRest
} from "./chunk-OBKEW4AQ.mjs";

// src/resources/instances/index.ts
function createInstancesResource(instanceId, client) {
  return {
    getMembers() {
      return client.get(`/instances/${instanceId}/members`);
    },
    update(_a) {
      var data = __objRest(_a, []);
      return client.put(`/instances/${instanceId}`, data);
    },
    delete() {
      return client.delete(`/instances/${instanceId}`);
    },
    deleteMember(memberId) {
      return client.delete(`/instances/${instanceId}/members/${memberId}`);
    },
    updateMemberRole({
      memberId,
      role
    }) {
      return client.put(`/instances/${instanceId}/members/${memberId}`, { role });
    }
  };
}
var init_instances = __esm({
  "src/resources/instances/index.ts"() {
  }
});

export {
  createInstancesResource,
  init_instances
};
