import { Client } from '../client.js'; import { Models } from '../models.js'; import 'undici'; import '../query.js'; import '../enums/database-type.js'; import '../enums/attribute-status.js'; import '../enums/column-status.js'; import '../enums/index-status.js'; import '../enums/deployment-status.js'; import '../enums/execution-resource-type.js'; import '../enums/execution-trigger.js'; import '../enums/execution-status.js'; import '../enums/project-auth-method-id.js'; import '../enums/project-service-id.js'; import '../enums/project-protocol-id.js'; import '../enums/o-auth-2-google-prompt.js'; import '../enums/o-auth-2-oidc-prompt.js'; import '../enums/platform-type.js'; import '../enums/proxy-rule-deployment-resource-type.js'; import '../enums/proxy-rule-status.js'; import '../enums/message-status.js'; import '../enums/billing-plan-group.js'; declare class Advisor { client: Client; constructor(client: Client); /** * Get a list of all the project's analyzer reports. You can use the query params to filter your results. * * * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: appId, type, targetType, target, analyzedAt * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} */ listReports(params?: { queries?: string[]; total?: boolean; }): Promise; /** * Get a list of all the project's analyzer reports. You can use the query params to filter your results. * * * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: appId, type, targetType, target, analyzedAt * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ listReports(queries?: string[], total?: boolean): Promise; /** * Get an analyzer report by its unique ID. The response includes the report's metadata and the nested insights it produced. * * * @param {string} params.reportId - Report ID. * @throws {AppwriteException} * @returns {Promise} */ getReport(params: { reportId: string; }): Promise; /** * Get an analyzer report by its unique ID. The response includes the report's metadata and the nested insights it produced. * * * @param {string} reportId - Report ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ getReport(reportId: string): Promise; /** * Delete an analyzer report by its unique ID. Nested insights and CTA metadata are removed asynchronously by the deletes worker. * * * @param {string} params.reportId - Report ID. * @throws {AppwriteException} * @returns {Promise<{}>} */ deleteReport(params: { reportId: string; }): Promise<{}>; /** * Delete an analyzer report by its unique ID. Nested insights and CTA metadata are removed asynchronously by the deletes worker. * * * @param {string} reportId - Report ID. * @throws {AppwriteException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ deleteReport(reportId: string): Promise<{}>; /** * List the insights produced under a single analyzer report. You can use the query params to filter your results further. * * * @param {string} params.reportId - Parent report ID. * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: type, severity, status, resourceType, resourceId, parentResourceType, parentResourceId, analyzedAt, dismissedAt, dismissedBy * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} */ listInsights(params: { reportId: string; queries?: string[]; total?: boolean; }): Promise; /** * List the insights produced under a single analyzer report. You can use the query params to filter your results further. * * * @param {string} reportId - Parent report ID. * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: type, severity, status, resourceType, resourceId, parentResourceType, parentResourceId, analyzedAt, dismissedAt, dismissedBy * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ listInsights(reportId: string, queries?: string[], total?: boolean): Promise; /** * Get an insight by its unique ID, scoped to its parent report. * * * @param {string} params.reportId - Parent report ID. * @param {string} params.insightId - Insight ID. * @throws {AppwriteException} * @returns {Promise} */ getInsight(params: { reportId: string; insightId: string; }): Promise; /** * Get an insight by its unique ID, scoped to its parent report. * * * @param {string} reportId - Parent report ID. * @param {string} insightId - Insight ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ getInsight(reportId: string, insightId: string): Promise; } export { Advisor };