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

// src/resources/receivers/index.ts
function createReceiversResource(client) {
  return {
    list({
      instanceId
    }) {
      return client.get(`/instances/${instanceId}/receivers`);
    },
    create(_a) {
      var _b = _a, {
        instanceId
      } = _b, data = __objRest(_b, [
        "instanceId"
      ]);
      return client.post(`/instances/${instanceId}/receivers`, data);
    },
    get({
      instanceId,
      id
    }) {
      return client.get(`/instances/${instanceId}/receivers/${id}`);
    },
    update(_c) {
      var _d = _c, {
        instanceId,
        id
      } = _d, data = __objRest(_d, [
        "instanceId",
        "id"
      ]);
      return client.patch(`/instances/${instanceId}/receivers/${id}`, data);
    },
    delete({ instanceId, id }) {
      return client.delete(`/instances/${instanceId}/receivers/${id}`);
    },
    getLimits({
      instanceId,
      id
    }) {
      return client.get(`/instances/${instanceId}/limits/receivers/${id}`);
    }
  };
}
var init_receivers = __esm({
  "src/resources/receivers/index.ts"() {
  }
});

export {
  createReceiversResource,
  init_receivers
};
