@appwrite.io/console 18.1.0 → 18.3.0-rc.1

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.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/sdk.js +1876 -259
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +1872 -257
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +6294 -4654
  7. package/package.json +2 -2
  8. package/types/client.d.ts +4 -1
  9. package/types/enums/analytics-dimension.d.ts +24 -0
  10. package/types/enums/analytics-interval.d.ts +6 -0
  11. package/types/enums/build-runtime.d.ts +3 -0
  12. package/types/enums/o-auth-provider.d.ts +1 -0
  13. package/types/enums/project-key-scopes.d.ts +4 -1
  14. package/types/enums/project-o-auth-provider-id.d.ts +1 -0
  15. package/types/enums/proxy-rule-deployment-resource-type.d.ts +2 -1
  16. package/types/enums/query-suggestion-resource.d.ts +1 -0
  17. package/types/enums/runtime.d.ts +3 -0
  18. package/types/enums/usage-event-dimension.d.ts +9 -0
  19. package/types/enums/usage-event-metric.d.ts +4 -0
  20. package/types/enums/usage-gauge-metric.d.ts +1 -0
  21. package/types/index.d.ts +5 -0
  22. package/types/models.d.ts +285 -15
  23. package/types/services/account.d.ts +37 -10
  24. package/types/services/analytics-tracking.d.ts +211 -0
  25. package/types/services/analytics.d.ts +254 -0
  26. package/types/services/avatars.d.ts +33 -5
  27. package/types/services/console.d.ts +39 -3
  28. package/types/services/databases.d.ts +4 -1
  29. package/types/services/documents-db.d.ts +4 -1
  30. package/types/services/functions.d.ts +17 -2
  31. package/types/services/locale.d.ts +91 -7
  32. package/types/services/messaging.d.ts +40 -34
  33. package/types/services/notifications.d.ts +4 -1
  34. package/types/services/project.d.ts +29 -4
  35. package/types/services/proxy.d.ts +4 -0
  36. package/types/services/push.d.ts +26 -4
  37. package/types/services/sites.d.ts +21 -3
  38. package/types/services/tables-db.d.ts +4 -1
  39. package/types/services/teams.d.ts +2 -2
  40. package/types/services/usage.d.ts +4 -4
  41. package/types/services/vcs.d.ts +12 -3
  42. package/types/services/vectors-db.d.ts +4 -1
  43. package/types/services/webhooks.d.ts +2 -2
  44. package/types/service.d.ts +0 -11
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "18.1.0",
5
+ "version": "18.3.0-rc.1",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -58,7 +58,7 @@
58
58
  "typescript-eslint": "8.70.0"
59
59
  },
60
60
  "overrides": {
61
- "brace-expansion": "5.0.9"
61
+ "brace-expansion": "5.0.12"
62
62
  },
63
63
  "jsdelivr": "dist/iife/sdk.js",
64
64
  "unpkg": "dist/iife/sdk.js"
package/types/client.d.ts CHANGED
@@ -172,7 +172,10 @@ declare class Client {
172
172
  *
173
173
  * A stable client id for the AppwritePush service. The broker keys its
174
174
  * offline-replay cursor on this id, so pass a stable value to resume replay across
175
- * reloads/restarts. Defaults to a per-connection id when unset.
175
+ * reloads/restarts. Defaults, when unset, to one per user and tab: stable across reloads of
176
+ * the tab, different in every other tab, and distinct for each connection open at the same
177
+ * time, so no two connections take over each other's session. An explicit id shared by
178
+ * several tabs or connections makes them do that.
176
179
  *
177
180
  * @param {string} pushClientId
178
181
  *
@@ -0,0 +1,24 @@
1
+ export declare enum AnalyticsDimension {
2
+ Country = "country",
3
+ Region = "region",
4
+ City = "city",
5
+ Browser = "browser",
6
+ OperatingSystem = "operatingSystem",
7
+ Device = "device",
8
+ ScreenSize = "screenSize",
9
+ ReferrerSource = "referrerSource",
10
+ Channel = "channel",
11
+ UtmSource = "utmSource",
12
+ UtmMedium = "utmMedium",
13
+ UtmCampaign = "utmCampaign",
14
+ UtmContent = "utmContent",
15
+ UtmTerm = "utmTerm",
16
+ Page = "page",
17
+ Hostname = "hostname",
18
+ EntryPage = "entryPage",
19
+ ExitPage = "exitPage",
20
+ TrafficType = "trafficType",
21
+ BotName = "botName",
22
+ BotCategory = "botCategory",
23
+ EventName = "eventName"
24
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum AnalyticsInterval {
2
+ OneHour = "1h",
3
+ OneDay = "1d",
4
+ OneWeek = "1w",
5
+ OneMonth = "1m"
6
+ }
@@ -31,6 +31,9 @@ export declare enum BuildRuntime {
31
31
  Pythonml311 = "python-ml-3.11",
32
32
  Pythonml312 = "python-ml-3.12",
33
33
  Pythonml313 = "python-ml-3.13",
34
+ Deno121 = "deno-1.21",
35
+ Deno124 = "deno-1.24",
36
+ Deno135 = "deno-1.35",
34
37
  Deno140 = "deno-1.40",
35
38
  Deno146 = "deno-1.46",
36
39
  Deno20 = "deno-2.0",
@@ -41,6 +41,7 @@ export declare enum OAuthProvider {
41
41
  Tradeshift = "tradeshift",
42
42
  TradeshiftBox = "tradeshiftBox",
43
43
  Twitch = "twitch",
44
+ Webflow = "webflow",
44
45
  Wordpress = "wordpress",
45
46
  X = "x",
46
47
  Yahoo = "yahoo",
@@ -89,6 +89,7 @@ export declare enum ProjectKeyScopes {
89
89
  WebhooksWrite = "webhooks.write",
90
90
  LocaleRead = "locale.read",
91
91
  AvatarsRead = "avatars.read",
92
+ AvatarsWrite = "avatars.write",
92
93
  HealthRead = "health.read",
93
94
  AssistantRead = "assistant.read",
94
95
  MigrationsRead = "migrations.read",
@@ -120,5 +121,7 @@ export declare enum ProjectKeyScopes {
120
121
  AppsWrite = "apps.write",
121
122
  Oauth2Read = "oauth2.read",
122
123
  Oauth2Write = "oauth2.write",
123
- Oauth2Introspect = "oauth2.introspect"
124
+ Oauth2Introspect = "oauth2.introspect",
125
+ AnalyticsRead = "analytics.read",
126
+ AnalyticsWrite = "analytics.write"
124
127
  }
@@ -41,6 +41,7 @@ export declare enum ProjectOAuthProviderId {
41
41
  Tradeshift = "tradeshift",
42
42
  TradeshiftBox = "tradeshiftBox",
43
43
  Twitch = "twitch",
44
+ Webflow = "webflow",
44
45
  Wordpress = "wordpress",
45
46
  X = "x",
46
47
  Yahoo = "yahoo",
@@ -1,4 +1,5 @@
1
1
  export declare enum ProxyRuleDeploymentResourceType {
2
2
  Function = "function",
3
- Site = "site"
3
+ Site = "site",
4
+ DedicatedDatabase = "dedicatedDatabase"
4
5
  }
@@ -88,6 +88,7 @@ export declare enum QuerySuggestionResource {
88
88
  ResourceTokens = "resourcetokens",
89
89
  Transactions = "transactions",
90
90
  TransactionLogs = "transactionlogs",
91
+ AnalyticsProperties = "analyticsproperties",
91
92
  DedicatedDatabases = "dedicateddatabases",
92
93
  DedicatedDatabaseConfigs = "dedicateddatabaseconfigs",
93
94
  DedicatedDatabaseRuntimes = "dedicateddatabaseruntimes",
@@ -31,6 +31,9 @@ export declare enum Runtime {
31
31
  Pythonml311 = "python-ml-3.11",
32
32
  Pythonml312 = "python-ml-3.12",
33
33
  Pythonml313 = "python-ml-3.13",
34
+ Deno121 = "deno-1.21",
35
+ Deno124 = "deno-1.24",
36
+ Deno135 = "deno-1.35",
34
37
  Deno140 = "deno-1.40",
35
38
  Deno146 = "deno-1.46",
36
39
  Deno20 = "deno-2.0",
@@ -18,6 +18,15 @@ export declare enum UsageEventDimension {
18
18
  SdkVersion = "sdkVersion",
19
19
  TeamId = "teamId",
20
20
  ResourceId = "resourceId",
21
+ Protocol = "protocol",
22
+ QueryKeys = "queryKeys",
23
+ Accept = "accept",
24
+ AcceptLanguage = "acceptLanguage",
25
+ PostalCode = "postalCode",
26
+ Latitude = "latitude",
27
+ Longitude = "longitude",
28
+ TimeZone = "timeZone",
29
+ WeatherCode = "weatherCode",
21
30
  Isp = "isp",
22
31
  AutonomousSystemNumber = "autonomousSystemNumber",
23
32
  AutonomousSystemOrganization = "autonomousSystemOrganization",
@@ -1,4 +1,7 @@
1
1
  export declare enum UsageEventMetric {
2
+ AnalyticsEvents = "analytics.events",
3
+ AnalyticsPageviews = "analytics.pageviews",
4
+ AnalyticsBotsEvents = "analytics.bots.events",
2
5
  NetworkRequests = "network.requests",
3
6
  NetworkInbound = "network.inbound",
4
7
  NetworkOutbound = "network.outbound",
@@ -6,6 +9,7 @@ export declare enum UsageEventMetric {
6
9
  WebhooksEventsFailed = "webhooks.events.failed",
7
10
  AuthMethodPhone = "auth.method.phone",
8
11
  MessagesSent = "messages.sent",
12
+ MessagesFailed = "messages.failed",
9
13
  MessagesSmsSent = "messages.sms.sent",
10
14
  Executions = "executions",
11
15
  ExecutionsCompute = "executions.compute",
@@ -1,4 +1,5 @@
1
1
  export declare enum UsageGaugeMetric {
2
+ AnalyticsProperties = "analytics.properties",
2
3
  Teams = "teams",
3
4
  Users = "users",
4
5
  Messages = "messages",
package/types/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export { Client, Query, AppwriteException } from './client';
11
11
  export { Account } from './services/account';
12
12
  export { Activities } from './services/activities';
13
13
  export { Affiliates } from './services/affiliates';
14
+ export { Analytics } from './services/analytics';
14
15
  export { Apps } from './services/apps';
15
16
  export { Avatars } from './services/avatars';
16
17
  export { Backups } from './services/backups';
@@ -52,9 +53,11 @@ export { Waf } from './services/waf';
52
53
  export { Webhooks } from './services/webhooks';
53
54
  export { Realtime } from './services/realtime';
54
55
  export { Push } from './services/push';
56
+ export { AnalyticsTracking } from './services/analytics-tracking';
55
57
  export type { Models, Payload, RealtimeResponseEvent, UploadProgress, } from './client';
56
58
  export type { RealtimeSubscription } from './services/realtime';
57
59
  export type { PushMessage, PushSubscription, SubscribeOptions, MessageCallback, } from './services/push';
60
+ export type { AnalyticsEventEmitter, AnalyticsEventOptions, AnalyticsTrackingOptions, DownloadTrackingOptions, OutboundTrackingOptions, } from './services/analytics-tracking';
58
61
  export type { QueryTypes, QueryTypesList } from './query';
59
62
  export { Permission } from './permission';
60
63
  export { Role } from './role';
@@ -67,6 +70,8 @@ export { AuthenticatorType } from './enums/authenticator-type';
67
70
  export { AuthenticationFactor } from './enums/authentication-factor';
68
71
  export { IdTokenProvider } from './enums/id-token-provider';
69
72
  export { OAuthProvider } from './enums/o-auth-provider';
73
+ export { AnalyticsInterval } from './enums/analytics-interval';
74
+ export { AnalyticsDimension } from './enums/analytics-dimension';
70
75
  export { Browser } from './enums/browser';
71
76
  export { CreditCard } from './enums/credit-card';
72
77
  export { Flag } from './enums/flag';
package/types/models.d.ts CHANGED
@@ -3272,6 +3272,107 @@ export declare namespace Models {
3272
3272
  */
3273
3273
  threads: number;
3274
3274
  };
3275
+ /**
3276
+ * Account
3277
+ */
3278
+ export type Account<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
3279
+ /**
3280
+ * User ID.
3281
+ */
3282
+ $id: string;
3283
+ /**
3284
+ * User creation date in ISO 8601 format.
3285
+ */
3286
+ $createdAt: string;
3287
+ /**
3288
+ * User update date in ISO 8601 format.
3289
+ */
3290
+ $updatedAt: string;
3291
+ /**
3292
+ * User name.
3293
+ */
3294
+ name: string;
3295
+ /**
3296
+ * User registration date in ISO 8601 format.
3297
+ */
3298
+ registration: string;
3299
+ /**
3300
+ * User status. Pass `true` for enabled and `false` for disabled.
3301
+ */
3302
+ status: boolean;
3303
+ /**
3304
+ * Labels for the user.
3305
+ */
3306
+ labels: string[];
3307
+ /**
3308
+ * Password update time in ISO 8601 format.
3309
+ */
3310
+ passwordUpdate: string;
3311
+ /**
3312
+ * User email address.
3313
+ */
3314
+ email: string;
3315
+ /**
3316
+ * User phone number in E.164 format.
3317
+ */
3318
+ phone: string;
3319
+ /**
3320
+ * Email verification status.
3321
+ */
3322
+ emailVerification: boolean;
3323
+ /**
3324
+ * Canonical form of the user email address.
3325
+ */
3326
+ emailCanonical?: string;
3327
+ /**
3328
+ * Whether the user email is from a free email provider.
3329
+ */
3330
+ emailIsFree?: boolean;
3331
+ /**
3332
+ * Whether the user email is from a disposable email provider.
3333
+ */
3334
+ emailIsDisposable?: boolean;
3335
+ /**
3336
+ * Whether the user email is from a corporate domain.
3337
+ */
3338
+ emailIsCorporate?: boolean;
3339
+ /**
3340
+ * Whether the user email is in its canonical form.
3341
+ */
3342
+ emailIsCanonical?: boolean;
3343
+ /**
3344
+ * Whether the password was found in a known data breach the last time it was checked. Null when the password has never been checked.
3345
+ */
3346
+ passwordPwned?: boolean;
3347
+ /**
3348
+ * Phone verification status.
3349
+ */
3350
+ phoneVerification: boolean;
3351
+ /**
3352
+ * Multi factor authentication status.
3353
+ */
3354
+ mfa: boolean;
3355
+ /**
3356
+ * User preferences as a key-value object
3357
+ */
3358
+ prefs: Preferences;
3359
+ /**
3360
+ * A user-owned message receiver. A single user may have multiple e.g. emails, phones, and a browser. Each target is registered with a single provider.
3361
+ */
3362
+ targets: Target[];
3363
+ /**
3364
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
3365
+ */
3366
+ accessedAt: string;
3367
+ /**
3368
+ * Whether the user can impersonate other users.
3369
+ */
3370
+ impersonator?: boolean;
3371
+ /**
3372
+ * ID of the original actor performing the impersonation. Present only when the current request is impersonating another user. Internal audit logs attribute the action to this user, while the impersonated target is recorded only in internal audit payload data.
3373
+ */
3374
+ impersonatorUserId?: string;
3375
+ };
3275
3376
  /**
3276
3377
  * Preferences
3277
3378
  */
@@ -5226,7 +5327,7 @@ export declare namespace Models {
5226
5327
  */
5227
5328
  authUsername: string;
5228
5329
  /**
5229
- * HTTP basic authentication password.
5330
+ * HTTP basic authentication password. Write-only: always returned empty.
5230
5331
  */
5231
5332
  authPassword: string;
5232
5333
  /**
@@ -5688,6 +5789,27 @@ export declare namespace Models {
5688
5789
  */
5689
5790
  clientSecret: string;
5690
5791
  };
5792
+ /**
5793
+ * OAuth2Webflow
5794
+ */
5795
+ export type OAuth2Webflow = {
5796
+ /**
5797
+ * OAuth2 provider ID.
5798
+ */
5799
+ $id: string;
5800
+ /**
5801
+ * OAuth2 provider is active and can be used to create sessions.
5802
+ */
5803
+ enabled: boolean;
5804
+ /**
5805
+ * Webflow OAuth2 client ID.
5806
+ */
5807
+ clientId: string;
5808
+ /**
5809
+ * Webflow OAuth2 client secret.
5810
+ */
5811
+ clientSecret: string;
5812
+ };
5691
5813
  /**
5692
5814
  * OAuth2Twitch
5693
5815
  */
@@ -6446,7 +6568,7 @@ export declare namespace Models {
6446
6568
  /**
6447
6569
  * List of OAuth2 providers.
6448
6570
  */
6449
- providers: (Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Appwrite | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft | Models.OAuth2HuggingFace | Models.OAuth2Resend | Models.OAuth2Cloudflare | Models.OAuth2TikTok | Models.OAuth2Kakao)[];
6571
+ providers: (Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Webflow | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Appwrite | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft | Models.OAuth2HuggingFace | Models.OAuth2Resend | Models.OAuth2Cloudflare | Models.OAuth2TikTok | Models.OAuth2Kakao)[];
6450
6572
  };
6451
6573
  /**
6452
6574
  * Policy Password Dictionary
@@ -7163,6 +7285,26 @@ export declare namespace Models {
7163
7285
  * Region/state chain when broken down by `subdivisions`.
7164
7286
  */
7165
7287
  subdivisions?: string;
7288
+ /**
7289
+ * Postal code when broken down by `postalCode`.
7290
+ */
7291
+ postalCode?: string;
7292
+ /**
7293
+ * Latitude when broken down by `latitude`.
7294
+ */
7295
+ latitude?: string;
7296
+ /**
7297
+ * Longitude when broken down by `longitude`.
7298
+ */
7299
+ longitude?: string;
7300
+ /**
7301
+ * Time zone when broken down by `timeZone`.
7302
+ */
7303
+ timeZone?: string;
7304
+ /**
7305
+ * Weather station code when broken down by `weatherCode`.
7306
+ */
7307
+ weatherCode?: string;
7166
7308
  /**
7167
7309
  * Internet service provider when broken down by `isp`.
7168
7310
  */
@@ -7306,7 +7448,7 @@ export declare namespace Models {
7306
7448
  */
7307
7449
  deploymentId: string;
7308
7450
  /**
7309
- * Type of deployment. Possible values are "function", "site". Used if rule's type is "deployment".
7451
+ * Type of deployment resource: function, site, or dedicatedDatabase.
7310
7452
  */
7311
7453
  deploymentResourceType?: ProxyRuleDeploymentResourceType;
7312
7454
  /**
@@ -8762,6 +8904,117 @@ export declare namespace Models {
8762
8904
  */
8763
8905
  resources: UsageResources[];
8764
8906
  };
8907
+ /**
8908
+ * AnalyticsMetric
8909
+ */
8910
+ export type AnalyticsMetric = {
8911
+ /**
8912
+ * Dimension value this row covers. Null when no dimension was requested, empty when the dimension could not be derived for those events.
8913
+ */
8914
+ value?: string;
8915
+ /**
8916
+ * Start of the time bucket this row covers, in ISO 8601. Null when no interval was requested.
8917
+ */
8918
+ date?: string;
8919
+ /**
8920
+ * Unique visitors in the requested range.
8921
+ */
8922
+ visitors: number;
8923
+ /**
8924
+ * Unique sessions in the requested range.
8925
+ */
8926
+ sessions: number;
8927
+ /**
8928
+ * Total pageview events (events with name="pageview") in the requested range. Only the flat aggregate computes it; null on breakdown and time-series rows.
8929
+ */
8930
+ pageviews?: number;
8931
+ /**
8932
+ * Total events in the requested range.
8933
+ */
8934
+ events: number;
8935
+ /**
8936
+ * Total sessions with activity in the requested range. Only the flat aggregate computes it; null on breakdown and time-series rows.
8937
+ */
8938
+ visits?: number;
8939
+ /**
8940
+ * Share of single-event sessions, as a percentage. Only the flat aggregate computes it; null on breakdown and time-series rows.
8941
+ */
8942
+ bounceRate?: number;
8943
+ /**
8944
+ * Average session length in seconds, measured first event to last event. Single-event sessions count as 0. Only the flat aggregate computes it; null on breakdown and time-series rows.
8945
+ */
8946
+ visitDuration?: number;
8947
+ /**
8948
+ * Average pageviews per session (pageviews divided by visits). Only the flat aggregate computes it; null on breakdown and time-series rows.
8949
+ */
8950
+ viewsPerVisit?: number;
8951
+ /**
8952
+ * Average scroll depth across events, as a percentage. Only the flat aggregate computes it; null on breakdown and time-series rows.
8953
+ */
8954
+ scrollDepth?: number;
8955
+ /**
8956
+ * Average engaged time per session in seconds, counting only foreground time. Sessions that reported no engagement are excluded. Only the flat aggregate computes it; null on breakdown and time-series rows.
8957
+ */
8958
+ engagementTime?: number;
8959
+ };
8960
+ /**
8961
+ * AnalyticsMetricList
8962
+ */
8963
+ export type AnalyticsMetricList = {
8964
+ /**
8965
+ * Total number of metric rows returned.
8966
+ */
8967
+ total: number;
8968
+ /**
8969
+ * Metric rows: one per time bucket, one per dimension value, or a single row for the flat aggregate.
8970
+ */
8971
+ metrics: AnalyticsMetric[];
8972
+ };
8973
+ /**
8974
+ * AnalyticsProperty
8975
+ */
8976
+ export type AnalyticsProperty = {
8977
+ /**
8978
+ * Analytics property ID.
8979
+ */
8980
+ $id: string;
8981
+ /**
8982
+ * Property creation date in ISO 8601 format.
8983
+ */
8984
+ $createdAt: string;
8985
+ /**
8986
+ * Property update date in ISO 8601 format.
8987
+ */
8988
+ $updatedAt: string;
8989
+ /**
8990
+ * Human-readable name of the tracked website or application.
8991
+ */
8992
+ name: string;
8993
+ /**
8994
+ * Primary domain being tracked (e.g. example.com). May be empty for native apps.
8995
+ */
8996
+ domain: string;
8997
+ /**
8998
+ * IANA timezone used to define the daily boundary for stats.
8999
+ */
9000
+ timezone: string;
9001
+ /**
9002
+ * Whether tracking is currently active.
9003
+ */
9004
+ enabled: boolean;
9005
+ /**
9006
+ * Whether stats for this property are publicly viewable.
9007
+ */
9008
+ public: boolean;
9009
+ /**
9010
+ * List of origins allowed to send tracking events. Use ["*"] to allow all.
9011
+ */
9012
+ allowedOrigins: string[];
9013
+ /**
9014
+ * Unique identifier for the tracking script snippet.
9015
+ */
9016
+ snippetId: string;
9017
+ };
8765
9018
  /**
8766
9019
  * Team
8767
9020
  */
@@ -8912,17 +9165,17 @@ export declare namespace Models {
8912
9165
  */
8913
9166
  policyId: string;
8914
9167
  /**
8915
- * Archive size in bytes.
9168
+ * Archive size in bytes. Null until the size is known.
8916
9169
  */
8917
- size: number;
9170
+ size?: number;
8918
9171
  /**
8919
9172
  * The status of the archive creation. Possible values: pending, processing, uploading, completed, failed, skipped.
8920
9173
  */
8921
9174
  status: string;
8922
9175
  /**
8923
- * The backup start time.
9176
+ * The backup start time. Null until the backup starts.
8924
9177
  */
8925
- startedAt: string;
9178
+ startedAt?: string;
8926
9179
  /**
8927
9180
  * Migration ID.
8928
9181
  */
@@ -9294,9 +9547,9 @@ export declare namespace Models {
9294
9547
  */
9295
9548
  alertLimit: number;
9296
9549
  /**
9297
- * Additional resources
9550
+ * Additional resources. Null when the plan does not support usage billing.
9298
9551
  */
9299
- usage: UsageBillingPlan;
9552
+ usage?: UsageBillingPlan;
9300
9553
  /**
9301
9554
  * Addons
9302
9555
  */
@@ -10249,9 +10502,9 @@ export declare namespace Models {
10249
10502
  */
10250
10503
  uptime: number;
10251
10504
  /**
10252
- * Connection statistics.
10505
+ * Connection statistics. Null when the database has not been probed.
10253
10506
  */
10254
- connections: DatabaseStatusConnections;
10507
+ connections?: DatabaseStatusConnections;
10255
10508
  /**
10256
10509
  * Requested replication sync mode. Possible values: async, sync, quorum. Compare with effectiveSyncMode for what the primary is enforcing.
10257
10510
  */
@@ -11650,9 +11903,9 @@ export declare namespace Models {
11650
11903
  */
11651
11904
  status: string;
11652
11905
  /**
11653
- * The backup start time.
11906
+ * The restoration start time. Null until the restoration starts.
11654
11907
  */
11655
- startedAt: string;
11908
+ startedAt?: string;
11656
11909
  /**
11657
11910
  * Migration ID.
11658
11911
  */
@@ -11666,9 +11919,9 @@ export declare namespace Models {
11666
11919
  */
11667
11920
  resources: string[];
11668
11921
  /**
11669
- * Optional data in key-value object.
11922
+ * Restoration options as a key-value object.
11670
11923
  */
11671
- options: string;
11924
+ options: object;
11672
11925
  };
11673
11926
  /**
11674
11927
  * Dedicated database restorations list
@@ -11979,6 +12232,10 @@ export declare namespace Models {
11979
12232
  * Aggregated stats for total backups storage.
11980
12233
  */
11981
12234
  backupsStorageTotal: number;
12235
+ /**
12236
+ * Aggregated stats for total custom user photos storage.
12237
+ */
12238
+ avatarsStorageTotal: number;
11982
12239
  /**
11983
12240
  * Aggregated stats for total storage.
11984
12241
  */
@@ -13220,6 +13477,19 @@ export declare namespace Models {
13220
13477
  */
13221
13478
  addons: Addon[];
13222
13479
  };
13480
+ /**
13481
+ * Analytics properties list
13482
+ */
13483
+ export type AnalyticsPropertyList = {
13484
+ /**
13485
+ * Total number of properties that matched your query.
13486
+ */
13487
+ total: number;
13488
+ /**
13489
+ * List of properties.
13490
+ */
13491
+ properties: AnalyticsProperty[];
13492
+ };
13223
13493
  /**
13224
13494
  * Aggregation team list
13225
13495
  */