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

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

export {
  createInstancesResource,
  init_instances
};
