"use strict";
// @ts-nocheck
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Issues = void 0;
const resource_js_1 = require("../core/resource.cjs");
const pagination_js_1 = require("../core/pagination.cjs");
const path_js_1 = require("../internal/utils/path.cjs");
class Issues extends resource_js_1.APIResource {
    /**
     * **Beta:** This endpoint is in active development and may change without notice.
     *
     * Returns one issue for the authenticated tenant.
     */
    retrieve(id, options) {
        return this._client.get((0, path_js_1.path) `/v1/platform/issues/${id}`, options);
    }
    /**
     * **Beta:** This endpoint is in active development and may change without notice.
     *
     * Returns issues for the authenticated tenant, optionally filtered by session,
     * status, severity, tag, or last modified time.
     */
    list(query = {}, options) {
        return this._client.getAPIList('/v1/platform/issues', (pagination_js_1.OffsetPaginationIssues), {
            query,
            ...options,
        });
    }
}
exports.Issues = Issues;
