@appwrite.io/console 14.0.0 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1864,6 +1864,25 @@ export declare class Project {
1864
1864
  * @deprecated Use the object parameter style method for a better developer experience.
1865
1865
  */
1866
1866
  updateDenyAliasedEmailPolicy(enabled: boolean): Promise<Models.Project>;
1867
+ /**
1868
+ * Configures if only corporate email addresses (non-free and non-disposable domains) are allowed during new user sign-ups and email updates.
1869
+ *
1870
+ * @param {boolean} params.enabled - Set whether or not to restrict sign-ups and email updates to corporate email addresses only.
1871
+ * @throws {AppwriteException}
1872
+ * @returns {Promise<Models.Project>}
1873
+ */
1874
+ updateDenyCorporateEmailPolicy(params: {
1875
+ enabled: boolean;
1876
+ }): Promise<Models.Project>;
1877
+ /**
1878
+ * Configures if only corporate email addresses (non-free and non-disposable domains) are allowed during new user sign-ups and email updates.
1879
+ *
1880
+ * @param {boolean} enabled - Set whether or not to restrict sign-ups and email updates to corporate email addresses only.
1881
+ * @throws {AppwriteException}
1882
+ * @returns {Promise<Models.Project>}
1883
+ * @deprecated Use the object parameter style method for a better developer experience.
1884
+ */
1885
+ updateDenyCorporateEmailPolicy(enabled: boolean): Promise<Models.Project>;
1867
1886
  /**
1868
1887
  * Configures if disposable emails from known temporary domains are denied during new users sign-ups and email updates.
1869
1888
  *
@@ -2126,22 +2145,22 @@ export declare class Project {
2126
2145
  /**
2127
2146
  * Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
2128
2147
  *
2129
- * @param {ProjectPolicyId} params.policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email.
2148
+ * @param {ProjectPolicyId} params.policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email.
2130
2149
  * @throws {AppwriteException}
2131
- * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail>}
2150
+ * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>}
2132
2151
  */
2133
2152
  getPolicy(params: {
2134
2153
  policyId: ProjectPolicyId;
2135
- }): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail>;
2154
+ }): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>;
2136
2155
  /**
2137
2156
  * Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
2138
2157
  *
2139
- * @param {ProjectPolicyId} policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email.
2158
+ * @param {ProjectPolicyId} policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email.
2140
2159
  * @throws {AppwriteException}
2141
- * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail>}
2160
+ * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>}
2142
2161
  * @deprecated Use the object parameter style method for a better developer experience.
2143
2162
  */
2144
- getPolicy(policyId: ProjectPolicyId): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail>;
2163
+ getPolicy(policyId: ProjectPolicyId): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>;
2145
2164
  /**
2146
2165
  * Update properties of a specific protocol. Use this endpoint to enable or disable a protocol in your project.
2147
2166
  *
@@ -2167,7 +2186,7 @@ export declare class Project {
2167
2186
  /**
2168
2187
  * Update properties of a specific service. Use this endpoint to enable or disable a service in your project.
2169
2188
  *
2170
- * @param {ProjectServiceId} params.serviceId - Service name. Can be one of: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor
2189
+ * @param {ProjectServiceId} params.serviceId - Service name. Can be one of: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor, oauth2
2171
2190
  * @param {boolean} params.enabled - Service status.
2172
2191
  * @throws {AppwriteException}
2173
2192
  * @returns {Promise<Models.Project>}
@@ -2179,7 +2198,7 @@ export declare class Project {
2179
2198
  /**
2180
2199
  * Update properties of a specific service. Use this endpoint to enable or disable a service in your project.
2181
2200
  *
2182
- * @param {ProjectServiceId} serviceId - Service name. Can be one of: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor
2201
+ * @param {ProjectServiceId} serviceId - Service name. Can be one of: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor, oauth2
2183
2202
  * @param {boolean} enabled - Service status.
2184
2203
  * @throws {AppwriteException}
2185
2204
  * @returns {Promise<Models.Project>}
@@ -4,47 +4,125 @@ export declare class Usage {
4
4
  client: Client;
5
5
  constructor(client: Client);
6
6
  /**
7
- * Query usage event metrics from the usage database. Returns individual event rows with full metadata. Pass Query objects as JSON strings to filter, paginate, and order results. Supported query methods: equal, greaterThanEqual, lessThanEqual, orderAsc, orderDesc, limit, offset. Supported filter attributes: metric, path, method, status, resource, resourceId, country, userAgent, time (these match the underlying column names — note that the response surfaces `resource` as `resourceType` and `country` as `countryCode`). When no time filter is supplied the endpoint defaults to the last 7 days. Default `limit(100)` is applied if none is given; user-supplied limits are capped at 500. The `total` field is capped at 5000 to keep counts predictable — pass `total=false` to skip the count entirely.
7
+ * Aggregate usage event metrics. `metrics[]` (1-10) is required; the response always contains one entry per requested metric, each with its own `points[]` time series.
8
8
  *
9
- * @param {string[]} params.queries - Array of query strings as JSON. Supported: equal("metric", [...]), equal("path", [...]), equal("method", [...]), equal("status", [...]), equal("resource", [...]), equal("resourceId", [...]), equal("country", [...]), equal("userAgent", [...]), greaterThanEqual("time", "..."), lessThanEqual("time", "..."), orderAsc("time"), orderDesc("time"), limit(N), offset(N).
10
- * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
9
+ * **Two response shapes**:
10
+ * - Omit `interval` for a flat top-N table — one point per dimension combination, no time axis. Useful for "top 10 paths by bandwidth in the last 7 days".
11
+ * - Pass `interval` (`1m`, `15m`, `30m`, `1h`, `1d`) for a time series — one point per (time bucket × dimension combination).
12
+ *
13
+ * `dimensions[]` breaks each point down by one or more attributes (service, path, status, country, …). Pass multiple metrics to render stacked charts in one round-trip. `resource` and `resourceId` filter the underlying events. `orderBy=value`+`orderDir=desc`+`limit=N` returns the top-N by aggregated value. When `startAt` is omitted, the default window adapts to `interval` (or 7d when interval is omitted).
14
+ *
15
+ * @param {string[]} params.metrics - One to ten metric names. Single-metric callers pass a one-element array. Example: `metrics[]=executions` or `metrics[]=executions&metrics[]=executions.compute` for stacked charts.
16
+ * @param {string} params.resource - Resource type filter (singular form). Common values: function, site, database, bucket, file, webhook, team, user, project.
17
+ * @param {string} params.resourceId - Resource id filter.
18
+ * @param {string} params.interval - Time interval size. Omit (null) for a flat aggregate over the whole window. Allowed: 1m, 15m, 30m, 1h, 1d.
19
+ * @param {string[]} params.dimensions - Break-down dimensions (max 10). Allowed: path, method, status, service, country, region, hostname, osName, clientType, clientName, deviceName, teamId, resourceId.
20
+ * @param {string} params.startAt - Range start in ISO 8601. Defaults adapt to interval (7d for the no-interval aggregate).
21
+ * @param {string} params.endAt - Range end in ISO 8601. Defaults to the current time.
22
+ * @param {string} params.orderBy - Column to order by. Allowed: time, value. Default time when an interval is set; otherwise value.
23
+ * @param {string} params.orderDir - Sort direction: asc or desc. Default desc — paired with the default limit, returns the most recent / highest-value groups first.
24
+ * @param {number} params.limit - Maximum rows to return (1-5000).
25
+ * @param {number} params.offset - Pagination offset (0-100000).
11
26
  * @throws {AppwriteException}
12
27
  * @returns {Promise<Models.UsageEventList>}
13
28
  */
14
- listEvents(params?: {
15
- queries?: string[];
16
- total?: boolean;
29
+ listEvents(params: {
30
+ metrics: string[];
31
+ resource?: string;
32
+ resourceId?: string;
33
+ interval?: string;
34
+ dimensions?: string[];
35
+ startAt?: string;
36
+ endAt?: string;
37
+ orderBy?: string;
38
+ orderDir?: string;
39
+ limit?: number;
40
+ offset?: number;
17
41
  }): Promise<Models.UsageEventList>;
18
42
  /**
19
- * Query usage event metrics from the usage database. Returns individual event rows with full metadata. Pass Query objects as JSON strings to filter, paginate, and order results. Supported query methods: equal, greaterThanEqual, lessThanEqual, orderAsc, orderDesc, limit, offset. Supported filter attributes: metric, path, method, status, resource, resourceId, country, userAgent, time (these match the underlying column names — note that the response surfaces `resource` as `resourceType` and `country` as `countryCode`). When no time filter is supplied the endpoint defaults to the last 7 days. Default `limit(100)` is applied if none is given; user-supplied limits are capped at 500. The `total` field is capped at 5000 to keep counts predictable — pass `total=false` to skip the count entirely.
43
+ * Aggregate usage event metrics. `metrics[]` (1-10) is required; the response always contains one entry per requested metric, each with its own `points[]` time series.
44
+ *
45
+ * **Two response shapes**:
46
+ * - Omit `interval` for a flat top-N table — one point per dimension combination, no time axis. Useful for "top 10 paths by bandwidth in the last 7 days".
47
+ * - Pass `interval` (`1m`, `15m`, `30m`, `1h`, `1d`) for a time series — one point per (time bucket × dimension combination).
48
+ *
49
+ * `dimensions[]` breaks each point down by one or more attributes (service, path, status, country, …). Pass multiple metrics to render stacked charts in one round-trip. `resource` and `resourceId` filter the underlying events. `orderBy=value`+`orderDir=desc`+`limit=N` returns the top-N by aggregated value. When `startAt` is omitted, the default window adapts to `interval` (or 7d when interval is omitted).
20
50
  *
21
- * @param {string[]} queries - Array of query strings as JSON. Supported: equal("metric", [...]), equal("path", [...]), equal("method", [...]), equal("status", [...]), equal("resource", [...]), equal("resourceId", [...]), equal("country", [...]), equal("userAgent", [...]), greaterThanEqual("time", "..."), lessThanEqual("time", "..."), orderAsc("time"), orderDesc("time"), limit(N), offset(N).
22
- * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
51
+ * @param {string[]} metrics - One to ten metric names. Single-metric callers pass a one-element array. Example: `metrics[]=executions` or `metrics[]=executions&metrics[]=executions.compute` for stacked charts.
52
+ * @param {string} resource - Resource type filter (singular form). Common values: function, site, database, bucket, file, webhook, team, user, project.
53
+ * @param {string} resourceId - Resource id filter.
54
+ * @param {string} interval - Time interval size. Omit (null) for a flat aggregate over the whole window. Allowed: 1m, 15m, 30m, 1h, 1d.
55
+ * @param {string[]} dimensions - Break-down dimensions (max 10). Allowed: path, method, status, service, country, region, hostname, osName, clientType, clientName, deviceName, teamId, resourceId.
56
+ * @param {string} startAt - Range start in ISO 8601. Defaults adapt to interval (7d for the no-interval aggregate).
57
+ * @param {string} endAt - Range end in ISO 8601. Defaults to the current time.
58
+ * @param {string} orderBy - Column to order by. Allowed: time, value. Default time when an interval is set; otherwise value.
59
+ * @param {string} orderDir - Sort direction: asc or desc. Default desc — paired with the default limit, returns the most recent / highest-value groups first.
60
+ * @param {number} limit - Maximum rows to return (1-5000).
61
+ * @param {number} offset - Pagination offset (0-100000).
23
62
  * @throws {AppwriteException}
24
63
  * @returns {Promise<Models.UsageEventList>}
25
64
  * @deprecated Use the object parameter style method for a better developer experience.
26
65
  */
27
- listEvents(queries?: string[], total?: boolean): Promise<Models.UsageEventList>;
66
+ listEvents(metrics: string[], resource?: string, resourceId?: string, interval?: string, dimensions?: string[], startAt?: string, endAt?: string, orderBy?: string, orderDir?: string, limit?: number, offset?: number): Promise<Models.UsageEventList>;
28
67
  /**
29
- * Query usage gauge metrics (point-in-time resource snapshots) from the usage database. Returns individual gauge snapshots with metric, value, timestamp, resourceType, and resourceId. Pass Query objects as JSON strings to filter, paginate, and order results. Supported query methods: equal, greaterThanEqual, lessThanEqual, orderAsc, orderDesc, limit, offset. Supported filter attributes: metric, time. Use `orderDesc("time"), limit(1)` to fetch the most recent snapshot. When no time filter is supplied the endpoint defaults to the last 7 days. Default `limit(100)` is applied if none is given; user-supplied limits are capped at 500. The `total` field is capped at 5000 to keep counts predictable — pass `total=false` to skip the count entirely.
68
+ * Aggregate usage gauge snapshots. Gauges are point-in-time values (storage totals, resource counts, …); each point carries the latest snapshot in its interval via `argMax(value, time)`. `metrics[]` (1-10) is required; the response always contains one entry per requested metric, each with its own `points[]` time series.
30
69
  *
31
- * @param {string[]} params.queries - Array of query strings as JSON. Supported: equal("metric", [...]), greaterThanEqual("time", "..."), lessThanEqual("time", "..."), orderAsc("time"), orderDesc("time"), limit(N), offset(N).
32
- * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
70
+ * **Two response shapes**:
71
+ * - Omit `interval` for a flat top-N table — `argMax(value, time)` per dimension combination over the whole window, no time axis. Useful for "top 10 resources by current storage".
72
+ * - Pass `interval` (`1m`, `15m`, `30m`, `1h`, `1d`) for a time series — one snapshot per (time bucket × dimension combination).
73
+ *
74
+ * `dimensions[]` breaks each point down further. Supported on gauges: `resourceId`, `teamId`, `service`, `resource`. `service` and `resource` enable per-service / per-resource-type panels (e.g. storage-by-service: group `files.storage`, `deployments.storage`, `builds.storage`, `databases.storage` by `service`). Pass multiple metrics to render stacked charts in one round-trip. `resourceId` and `teamId` parameters filter the underlying rows. `orderBy=value`+`orderDir=desc`+`limit=N` returns the top-N. When `startAt` is omitted, the default window adapts to interval (or 7d when interval is omitted).
75
+ *
76
+ * @param {string[]} params.metrics - One to ten metric names. Single-metric callers pass a one-element array. Example: `metrics[]=files.storage` or `metrics[]=files.storage&metrics[]=deployments.storage` for stacked charts.
77
+ * @param {string} params.resourceId - Resource id filter.
78
+ * @param {string} params.teamId - Team id filter.
79
+ * @param {string} params.interval - Time interval size. Omit (null) for a flat aggregate over the whole window. Allowed: 1m, 15m, 30m, 1h, 1d.
80
+ * @param {string[]} params.dimensions - Break-down dimensions. Allowed: resourceId, teamId, service, resource.
81
+ * @param {string} params.startAt - Range start in ISO 8601. Defaults to endAt - 7d.
82
+ * @param {string} params.endAt - Range end in ISO 8601. Defaults to the current time.
83
+ * @param {string} params.orderBy - Column to order by. Allowed: time, value. Default time.
84
+ * @param {string} params.orderDir - Sort direction: asc or desc. Default desc — paired with the default limit, this returns the most recent groups first. Pass asc for chronological charting.
85
+ * @param {number} params.limit - Maximum rows to return (1-5000).
86
+ * @param {number} params.offset - Pagination offset (0-100000).
33
87
  * @throws {AppwriteException}
34
88
  * @returns {Promise<Models.UsageGaugeList>}
35
89
  */
36
- listGauges(params?: {
37
- queries?: string[];
38
- total?: boolean;
90
+ listGauges(params: {
91
+ metrics: string[];
92
+ resourceId?: string;
93
+ teamId?: string;
94
+ interval?: string;
95
+ dimensions?: string[];
96
+ startAt?: string;
97
+ endAt?: string;
98
+ orderBy?: string;
99
+ orderDir?: string;
100
+ limit?: number;
101
+ offset?: number;
39
102
  }): Promise<Models.UsageGaugeList>;
40
103
  /**
41
- * Query usage gauge metrics (point-in-time resource snapshots) from the usage database. Returns individual gauge snapshots with metric, value, timestamp, resourceType, and resourceId. Pass Query objects as JSON strings to filter, paginate, and order results. Supported query methods: equal, greaterThanEqual, lessThanEqual, orderAsc, orderDesc, limit, offset. Supported filter attributes: metric, time. Use `orderDesc("time"), limit(1)` to fetch the most recent snapshot. When no time filter is supplied the endpoint defaults to the last 7 days. Default `limit(100)` is applied if none is given; user-supplied limits are capped at 500. The `total` field is capped at 5000 to keep counts predictable — pass `total=false` to skip the count entirely.
104
+ * Aggregate usage gauge snapshots. Gauges are point-in-time values (storage totals, resource counts, …); each point carries the latest snapshot in its interval via `argMax(value, time)`. `metrics[]` (1-10) is required; the response always contains one entry per requested metric, each with its own `points[]` time series.
105
+ *
106
+ * **Two response shapes**:
107
+ * - Omit `interval` for a flat top-N table — `argMax(value, time)` per dimension combination over the whole window, no time axis. Useful for "top 10 resources by current storage".
108
+ * - Pass `interval` (`1m`, `15m`, `30m`, `1h`, `1d`) for a time series — one snapshot per (time bucket × dimension combination).
109
+ *
110
+ * `dimensions[]` breaks each point down further. Supported on gauges: `resourceId`, `teamId`, `service`, `resource`. `service` and `resource` enable per-service / per-resource-type panels (e.g. storage-by-service: group `files.storage`, `deployments.storage`, `builds.storage`, `databases.storage` by `service`). Pass multiple metrics to render stacked charts in one round-trip. `resourceId` and `teamId` parameters filter the underlying rows. `orderBy=value`+`orderDir=desc`+`limit=N` returns the top-N. When `startAt` is omitted, the default window adapts to interval (or 7d when interval is omitted).
42
111
  *
43
- * @param {string[]} queries - Array of query strings as JSON. Supported: equal("metric", [...]), greaterThanEqual("time", "..."), lessThanEqual("time", "..."), orderAsc("time"), orderDesc("time"), limit(N), offset(N).
44
- * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
112
+ * @param {string[]} metrics - One to ten metric names. Single-metric callers pass a one-element array. Example: `metrics[]=files.storage` or `metrics[]=files.storage&metrics[]=deployments.storage` for stacked charts.
113
+ * @param {string} resourceId - Resource id filter.
114
+ * @param {string} teamId - Team id filter.
115
+ * @param {string} interval - Time interval size. Omit (null) for a flat aggregate over the whole window. Allowed: 1m, 15m, 30m, 1h, 1d.
116
+ * @param {string[]} dimensions - Break-down dimensions. Allowed: resourceId, teamId, service, resource.
117
+ * @param {string} startAt - Range start in ISO 8601. Defaults to endAt - 7d.
118
+ * @param {string} endAt - Range end in ISO 8601. Defaults to the current time.
119
+ * @param {string} orderBy - Column to order by. Allowed: time, value. Default time.
120
+ * @param {string} orderDir - Sort direction: asc or desc. Default desc — paired with the default limit, this returns the most recent groups first. Pass asc for chronological charting.
121
+ * @param {number} limit - Maximum rows to return (1-5000).
122
+ * @param {number} offset - Pagination offset (0-100000).
45
123
  * @throws {AppwriteException}
46
124
  * @returns {Promise<Models.UsageGaugeList>}
47
125
  * @deprecated Use the object parameter style method for a better developer experience.
48
126
  */
49
- listGauges(queries?: string[], total?: boolean): Promise<Models.UsageGaugeList>;
127
+ listGauges(metrics: string[], resourceId?: string, teamId?: string, interval?: string, dimensions?: string[], startAt?: string, endAt?: string, orderBy?: string, orderDir?: string, limit?: number, offset?: number): Promise<Models.UsageGaugeList>;
50
128
  }