@appwrite.io/console 16.0.0 → 16.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.
Files changed (46) hide show
  1. package/README.md +5 -6
  2. package/dist/cjs/package.json +1 -1
  3. package/dist/cjs/sdk.js +8031 -4529
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/package.json +1 -1
  6. package/dist/esm/sdk.js +8032 -4530
  7. package/dist/esm/sdk.js.map +1 -1
  8. package/dist/iife/sdk.js +8031 -4529
  9. package/package.json +59 -50
  10. package/types/client.d.ts +2 -2
  11. package/types/enums/{addon.d.ts → addon-key.d.ts} +1 -1
  12. package/types/enums/authentication-factor.d.ts +2 -1
  13. package/types/enums/build-runtime.d.ts +4 -1
  14. package/types/enums/embedding-model.d.ts +1 -3
  15. package/types/enums/execution-resource-type.d.ts +4 -0
  16. package/types/enums/image-gravity.d.ts +1 -0
  17. package/types/enums/o-auth-provider.d.ts +5 -0
  18. package/types/enums/project-key-scopes.d.ts +19 -3
  19. package/types/enums/project-o-auth-provider-id.d.ts +5 -0
  20. package/types/enums/project-policy-id.d.ts +1 -0
  21. package/types/enums/query-suggestion-resource.d.ts +2 -1
  22. package/types/enums/runtime.d.ts +4 -1
  23. package/types/enums/usage-event-dimension.d.ts +7 -1
  24. package/types/enums/usage-event-metric.d.ts +55 -0
  25. package/types/enums/usage-gauge-metric.d.ts +50 -0
  26. package/types/index.d.ts +10 -5
  27. package/types/models.d.ts +548 -276
  28. package/types/services/account.d.ts +14 -14
  29. package/types/services/apps.d.ts +6 -6
  30. package/types/services/avatars.d.ts +44 -0
  31. package/types/services/databases.d.ts +8 -8
  32. package/types/services/documents-db.d.ts +13 -7
  33. package/types/services/domains.d.ts +82 -54
  34. package/types/services/functions.d.ts +6 -6
  35. package/types/services/mongo.d.ts +17 -23
  36. package/types/services/mysql.d.ts +17 -23
  37. package/types/services/organizations.d.ts +5 -5
  38. package/types/services/postgresql.d.ts +17 -23
  39. package/types/services/project.d.ts +171 -15
  40. package/types/services/sites.d.ts +15 -8
  41. package/types/services/storage.d.ts +6 -6
  42. package/types/services/tables-db.d.ts +37 -12
  43. package/types/services/usage.d.ts +23 -14
  44. package/types/services/users.d.ts +24 -2
  45. package/types/services/vectors-db.d.ts +15 -9
  46. package/types/services/waf.d.ts +11 -2
package/types/models.d.ts CHANGED
@@ -1,25 +1,26 @@
1
- import { DatabaseType } from "./enums/database-type";
2
- import { AttributeStatus } from "./enums/attribute-status";
3
- import { ColumnStatus } from "./enums/column-status";
4
- import { IndexStatus } from "./enums/index-status";
5
- import { DetectionFrameworkType } from "./enums/detection-framework-type";
6
- import { DetectionRuntimeType } from "./enums/detection-runtime-type";
7
- import { DeploymentStatus } from "./enums/deployment-status";
8
- import { ExecutionTrigger } from "./enums/execution-trigger";
9
- import { ExecutionStatus } from "./enums/execution-status";
10
- import { ProjectAuthMethodId } from "./enums/project-auth-method-id";
11
- import { ProjectServiceId } from "./enums/project-service-id";
12
- import { ProjectProtocolId } from "./enums/project-protocol-id";
13
- import { OAuth2GooglePrompt } from "./enums/o-auth-2-google-prompt";
14
- import { OAuth2OidcPrompt } from "./enums/o-auth-2-oidc-prompt";
15
- import { PlatformType } from "./enums/platform-type";
16
- import { ProxyRuleDeploymentResourceType } from "./enums/proxy-rule-deployment-resource-type";
17
- import { ProxyRuleStatus } from "./enums/proxy-rule-status";
18
- import { MessageStatus } from "./enums/message-status";
19
- import { BillingPlanGroup } from "./enums/billing-plan-group";
20
- import { DomainTransferStatusEnum } from "./enums/domain-transfer-status-enum";
21
- import { DomainPurchaseStatus } from "./enums/domain-purchase-status";
22
- import { WafRuleAction } from "./enums/waf-rule-action";
1
+ import { DatabaseType } from './enums/database-type';
2
+ import { AttributeStatus } from './enums/attribute-status';
3
+ import { ColumnStatus } from './enums/column-status';
4
+ import { IndexStatus } from './enums/index-status';
5
+ import { DetectionFrameworkType } from './enums/detection-framework-type';
6
+ import { DetectionRuntimeType } from './enums/detection-runtime-type';
7
+ import { DeploymentStatus } from './enums/deployment-status';
8
+ import { ExecutionResourceType } from './enums/execution-resource-type';
9
+ import { ExecutionTrigger } from './enums/execution-trigger';
10
+ import { ExecutionStatus } from './enums/execution-status';
11
+ import { ProjectAuthMethodId } from './enums/project-auth-method-id';
12
+ import { ProjectServiceId } from './enums/project-service-id';
13
+ import { ProjectProtocolId } from './enums/project-protocol-id';
14
+ import { OAuth2GooglePrompt } from './enums/o-auth-2-google-prompt';
15
+ import { OAuth2OidcPrompt } from './enums/o-auth-2-oidc-prompt';
16
+ import { PlatformType } from './enums/platform-type';
17
+ import { ProxyRuleDeploymentResourceType } from './enums/proxy-rule-deployment-resource-type';
18
+ import { ProxyRuleStatus } from './enums/proxy-rule-status';
19
+ import { MessageStatus } from './enums/message-status';
20
+ import { BillingPlanGroup } from './enums/billing-plan-group';
21
+ import { DomainTransferStatusEnum } from './enums/domain-transfer-status-enum';
22
+ import { DomainPurchaseStatus } from './enums/domain-purchase-status';
23
+ import { WafRuleAction } from './enums/waf-rule-action';
23
24
  /**
24
25
  * Appwrite Models
25
26
  */
@@ -615,7 +616,7 @@ export declare namespace Models {
615
616
  /**
616
617
  * List of policies.
617
618
  */
618
- policies: (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)[];
619
+ policies: (Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail)[];
619
620
  };
620
621
  /**
621
622
  * Email Templates List
@@ -891,6 +892,18 @@ export declare namespace Models {
891
892
  * Number of secondary high availability replicas, excluding the primary. Null when backing configuration is unavailable.
892
893
  */
893
894
  replicas?: number;
895
+ /**
896
+ * Error message when the dedicated backing failed. Null when the database has no dedicated backing or has not failed.
897
+ */
898
+ error?: string;
899
+ /**
900
+ * Container status of the dedicated backing: active, inactive, or failed (a wake was declined because the backing namespace is gone). Null when the database has no dedicated backing or the runtime has not reported one.
901
+ */
902
+ containerStatus?: string;
903
+ /**
904
+ * Idle-lifecycle state of the dedicated backing: active, warm, cold, or hibernated. Null when the database has no dedicated backing or the runtime has not reported one.
905
+ */
906
+ lifecycleState?: string;
894
907
  /**
895
908
  * Database backup policies.
896
909
  */
@@ -4062,6 +4075,10 @@ export declare namespace Models {
4062
4075
  * Status of latest deployment. Possible values are "waiting", "processing", "building", "ready", and "failed".
4063
4076
  */
4064
4077
  latestDeploymentStatus: string;
4078
+ /**
4079
+ * Allowed permission scopes.
4080
+ */
4081
+ scopes: string[];
4065
4082
  /**
4066
4083
  * Site variables.
4067
4084
  */
@@ -4154,7 +4171,7 @@ export declare namespace Models {
4154
4171
  /**
4155
4172
  * URL hosting a template demo.
4156
4173
  */
4157
- demoUrl: string;
4174
+ demoUrl?: string;
4158
4175
  /**
4159
4176
  * File URL with preview screenshot in dark theme preference.
4160
4177
  */
@@ -4231,7 +4248,7 @@ export declare namespace Models {
4231
4248
  /**
4232
4249
  * Fallback file for SPA. Only relevant for static serve runtime.
4233
4250
  */
4234
- fallbackFile: string;
4251
+ fallbackFile?: string;
4235
4252
  };
4236
4253
  /**
4237
4254
  * Function
@@ -4843,7 +4860,7 @@ export declare namespace Models {
4843
4860
  /**
4844
4861
  * Name of fallback file to use instead of 404 page. If null, Appwrite 404 page will be displayed.
4845
4862
  */
4846
- fallbackFile: string;
4863
+ fallbackFile?: string;
4847
4864
  };
4848
4865
  /**
4849
4866
  * Deployment
@@ -4979,19 +4996,23 @@ export declare namespace Models {
4979
4996
  */
4980
4997
  $permissions: string[];
4981
4998
  /**
4982
- * Function ID.
4999
+ * Function or site ID.
5000
+ */
5001
+ resourceId: string;
5002
+ /**
5003
+ * Execution resource type.
4983
5004
  */
4984
- functionId: string;
5005
+ resourceType: ExecutionResourceType;
4985
5006
  /**
4986
- * Function's deployment ID used to create the execution.
5007
+ * Deployment ID used to create the execution.
4987
5008
  */
4988
5009
  deploymentId: string;
4989
5010
  /**
4990
- * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
5011
+ * The trigger that caused the resource to execute. Possible values can be: `http`, `schedule`, or `event`.
4991
5012
  */
4992
5013
  trigger: ExecutionTrigger;
4993
5014
  /**
4994
- * The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, `failed`, or `scheduled`.
5015
+ * The status of the resource execution. Possible values can be: `waiting`, `processing`, `completed`, `failed`, or `scheduled`.
4995
5016
  */
4996
5017
  status: ExecutionStatus;
4997
5018
  /**
@@ -5019,11 +5040,11 @@ export declare namespace Models {
5019
5040
  */
5020
5041
  responseHeaders: Headers[];
5021
5042
  /**
5022
- * Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
5043
+ * Resource logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
5023
5044
  */
5024
5045
  logs: string;
5025
5046
  /**
5026
- * Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
5047
+ * Resource errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
5027
5048
  */
5028
5049
  errors: string;
5029
5050
  /**
@@ -5150,7 +5171,7 @@ export declare namespace Models {
5150
5171
  /**
5151
5172
  * Whether WAF enforcement is enabled for the project.
5152
5173
  */
5153
- wafEnabled: boolean;
5174
+ wafEnabled?: boolean;
5154
5175
  /**
5155
5176
  * Billing limits reached
5156
5177
  */
@@ -5171,6 +5192,10 @@ export declare namespace Models {
5171
5192
  * OAuth2 server scopes used when an authorization request omits the scope parameter
5172
5193
  */
5173
5194
  oAuth2ServerDefaultScopes?: string[];
5195
+ /**
5196
+ * Scopes an application may request when installed on a team
5197
+ */
5198
+ oAuth2ServerInstallationScopes?: string[];
5174
5199
  /**
5175
5200
  * OAuth2 server accepted RFC 9396 authorization_details types
5176
5201
  */
@@ -5943,6 +5968,48 @@ export declare namespace Models {
5943
5968
  */
5944
5969
  clientSecret: string;
5945
5970
  };
5971
+ /**
5972
+ * OAuth2Cloudflare
5973
+ */
5974
+ export type OAuth2Cloudflare = {
5975
+ /**
5976
+ * OAuth2 provider ID.
5977
+ */
5978
+ $id: string;
5979
+ /**
5980
+ * OAuth2 provider is active and can be used to create sessions.
5981
+ */
5982
+ enabled: boolean;
5983
+ /**
5984
+ * Cloudflare OAuth2 client ID.
5985
+ */
5986
+ clientId: string;
5987
+ /**
5988
+ * Cloudflare OAuth2 client secret.
5989
+ */
5990
+ clientSecret: string;
5991
+ };
5992
+ /**
5993
+ * OAuth2HuggingFace
5994
+ */
5995
+ export type OAuth2HuggingFace = {
5996
+ /**
5997
+ * OAuth2 provider ID.
5998
+ */
5999
+ $id: string;
6000
+ /**
6001
+ * OAuth2 provider is active and can be used to create sessions.
6002
+ */
6003
+ enabled: boolean;
6004
+ /**
6005
+ * Hugging Face OAuth2 client ID.
6006
+ */
6007
+ clientId: string;
6008
+ /**
6009
+ * Hugging Face OAuth2 client secret.
6010
+ */
6011
+ clientSecret: string;
6012
+ };
5946
6013
  /**
5947
6014
  * OAuth2Linkedin
5948
6015
  */
@@ -6389,6 +6456,69 @@ export declare namespace Models {
6389
6456
  */
6390
6457
  tenant: string;
6391
6458
  };
6459
+ /**
6460
+ * OAuth2Resend
6461
+ */
6462
+ export type OAuth2Resend = {
6463
+ /**
6464
+ * OAuth2 provider ID.
6465
+ */
6466
+ $id: string;
6467
+ /**
6468
+ * OAuth2 provider is active and can be used to create sessions.
6469
+ */
6470
+ enabled: boolean;
6471
+ /**
6472
+ * Resend OAuth2 client ID.
6473
+ */
6474
+ clientId: string;
6475
+ /**
6476
+ * Resend OAuth2 client secret.
6477
+ */
6478
+ clientSecret: string;
6479
+ };
6480
+ /**
6481
+ * OAuth2TikTok
6482
+ */
6483
+ export type OAuth2TikTok = {
6484
+ /**
6485
+ * OAuth2 provider ID.
6486
+ */
6487
+ $id: string;
6488
+ /**
6489
+ * OAuth2 provider is active and can be used to create sessions.
6490
+ */
6491
+ enabled: boolean;
6492
+ /**
6493
+ * TikTok OAuth2 client key.
6494
+ */
6495
+ clientId: string;
6496
+ /**
6497
+ * TikTok OAuth2 client secret.
6498
+ */
6499
+ clientSecret: string;
6500
+ };
6501
+ /**
6502
+ * OAuth2Kakao
6503
+ */
6504
+ export type OAuth2Kakao = {
6505
+ /**
6506
+ * OAuth2 provider ID.
6507
+ */
6508
+ $id: string;
6509
+ /**
6510
+ * OAuth2 provider is active and can be used to create sessions.
6511
+ */
6512
+ enabled: boolean;
6513
+ /**
6514
+ * Kakao OAuth2 REST API key.
6515
+ */
6516
+ clientId: string;
6517
+ /**
6518
+ * Kakao OAuth2 client secret.
6519
+ */
6520
+ clientSecret: string;
6521
+ };
6392
6522
  /**
6393
6523
  * OAuth2 Providers List
6394
6524
  */
@@ -6400,7 +6530,7 @@ export declare namespace Models {
6400
6530
  /**
6401
6531
  * List of OAuth2 providers.
6402
6532
  */
6403
- 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)[];
6533
+ 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)[];
6404
6534
  };
6405
6535
  /**
6406
6536
  * Policy Password Dictionary
@@ -6568,6 +6698,31 @@ export declare namespace Models {
6568
6698
  */
6569
6699
  userAccessedAt: boolean;
6570
6700
  };
6701
+ /**
6702
+ * Policy MFA Factors
6703
+ */
6704
+ export type PolicyMfaFactors = {
6705
+ /**
6706
+ * Policy ID.
6707
+ */
6708
+ $id: string;
6709
+ /**
6710
+ * Whether TOTP can be used to complete an MFA challenge.
6711
+ */
6712
+ totp: boolean;
6713
+ /**
6714
+ * Whether email can be used to complete an MFA challenge.
6715
+ */
6716
+ email: boolean;
6717
+ /**
6718
+ * Whether phone (SMS) can be used to complete an MFA challenge.
6719
+ */
6720
+ phone: boolean;
6721
+ /**
6722
+ * Whether the custom factor can be used to complete an MFA challenge.
6723
+ */
6724
+ custom: boolean;
6725
+ };
6571
6726
  /**
6572
6727
  * Platform Web
6573
6728
  */
@@ -7209,6 +7364,166 @@ export declare namespace Models {
7209
7364
  */
7210
7365
  realtimeBandwidth: Metric[];
7211
7366
  };
7367
+ /**
7368
+ * usageDataPoint
7369
+ */
7370
+ export type UsageDataPoint = {
7371
+ /**
7372
+ * Bucket start timestamp in ISO 8601. Omitted for flat dimension aggregates.
7373
+ */
7374
+ time?: string;
7375
+ /**
7376
+ * Aggregated value for the point.
7377
+ */
7378
+ value: number;
7379
+ /**
7380
+ * Value when broken down by `path`.
7381
+ */
7382
+ path?: string;
7383
+ /**
7384
+ * Value when broken down by `method`.
7385
+ */
7386
+ method?: string;
7387
+ /**
7388
+ * Value when broken down by `status`.
7389
+ */
7390
+ status?: string;
7391
+ /**
7392
+ * Value when broken down by `service`.
7393
+ */
7394
+ service?: string;
7395
+ /**
7396
+ * Value when broken down by `country`.
7397
+ */
7398
+ country?: string;
7399
+ /**
7400
+ * Value when broken down by `region`.
7401
+ */
7402
+ region?: string;
7403
+ /**
7404
+ * Value when broken down by `hostname`.
7405
+ */
7406
+ hostname?: string;
7407
+ /**
7408
+ * Value when broken down by `ip`.
7409
+ */
7410
+ ip?: string;
7411
+ /**
7412
+ * Value when broken down by `osName`.
7413
+ */
7414
+ osName?: string;
7415
+ /**
7416
+ * Value when broken down by `clientType`.
7417
+ */
7418
+ clientType?: string;
7419
+ /**
7420
+ * Value when broken down by `clientName`.
7421
+ */
7422
+ clientName?: string;
7423
+ /**
7424
+ * Value when broken down by `sdk`.
7425
+ */
7426
+ sdk?: string;
7427
+ /**
7428
+ * Value when broken down by `sdkVersion`.
7429
+ */
7430
+ sdkVersion?: string;
7431
+ /**
7432
+ * Value when broken down by `deviceName`.
7433
+ */
7434
+ deviceName?: string;
7435
+ /**
7436
+ * Value when broken down by `resourceId`.
7437
+ */
7438
+ resourceId?: string;
7439
+ /**
7440
+ * Value when broken down by `resourceType`.
7441
+ */
7442
+ resourceType?: string;
7443
+ /**
7444
+ * Value when broken down by `ordinal`.
7445
+ */
7446
+ ordinal?: string;
7447
+ /**
7448
+ * Continent code when broken down by `continentCode`.
7449
+ */
7450
+ continentCode?: string;
7451
+ /**
7452
+ * City name when broken down by `city`.
7453
+ */
7454
+ city?: string;
7455
+ /**
7456
+ * Region/state chain when broken down by `subdivisions`.
7457
+ */
7458
+ subdivisions?: string;
7459
+ /**
7460
+ * Internet service provider when broken down by `isp`.
7461
+ */
7462
+ isp?: string;
7463
+ /**
7464
+ * Autonomous System Number (ASN) when broken down by `autonomousSystemNumber`.
7465
+ */
7466
+ autonomousSystemNumber?: string;
7467
+ /**
7468
+ * Organization owning the ASN when broken down by `autonomousSystemOrganization`.
7469
+ */
7470
+ autonomousSystemOrganization?: string;
7471
+ /**
7472
+ * Connection type when broken down by `connectionType`.
7473
+ */
7474
+ connectionType?: string;
7475
+ /**
7476
+ * Connection usage type when broken down by `connectionUsageType`.
7477
+ */
7478
+ connectionUsageType?: string;
7479
+ /**
7480
+ * Registered organization of the IP when broken down by `connectionOrganization`.
7481
+ */
7482
+ connectionOrganization?: string;
7483
+ /**
7484
+ * Owning team ID when broken down by `teamId`.
7485
+ */
7486
+ teamId?: string;
7487
+ };
7488
+ /**
7489
+ * usageMetric
7490
+ */
7491
+ export type UsageMetric = {
7492
+ /**
7493
+ * Metric key this series describes.
7494
+ */
7495
+ metric: string;
7496
+ /**
7497
+ * Data points in the requested order.
7498
+ */
7499
+ points: UsageDataPoint[];
7500
+ };
7501
+ /**
7502
+ * usageEventList
7503
+ */
7504
+ export type UsageEventList = {
7505
+ /**
7506
+ * Requested interval, or an empty string for a flat aggregate.
7507
+ */
7508
+ interval: string;
7509
+ /**
7510
+ * One series per requested event metric.
7511
+ */
7512
+ metrics: UsageMetric[];
7513
+ };
7514
+ /**
7515
+ * usageGaugeList
7516
+ */
7517
+ export type UsageGaugeList = {
7518
+ /**
7519
+ * Requested interval, or an empty string for a flat aggregate.
7520
+ */
7521
+ interval: string;
7522
+ /**
7523
+ * One series per requested gauge metric.
7524
+ */
7525
+ metrics: UsageMetric[];
7526
+ };
7212
7527
  /**
7213
7528
  * Headers
7214
7529
  */
@@ -7464,7 +7779,15 @@ export declare namespace Models {
7464
7779
  */
7465
7780
  _APP_VCS_PROVIDERS: string[];
7466
7781
  /**
7467
- * Defines if main domain is configured. If so, custom domains can be created.
7782
+ * List of configured VCS providers that support repository creation.
7783
+ */
7784
+ _APP_VCS_PROVIDERS_WITH_REPOSITORY_CREATION: string[];
7785
+ /**
7786
+ * List of configured VCS providers that can host public repositories.
7787
+ */
7788
+ _APP_VCS_PROVIDERS_WITH_PUBLIC_REPOSITORIES: string[];
7789
+ /**
7790
+ * Defines if main domain is configured. If so, custom domains can be created.
7468
7791
  */
7469
7792
  _APP_DOMAIN_ENABLED: boolean;
7470
7793
  /**
@@ -7638,6 +7961,31 @@ export declare namespace Models {
7638
7961
  */
7639
7962
  expire: string;
7640
7963
  };
7964
+ /**
7965
+ * MFA Challenge Secret
7966
+ */
7967
+ export type MfaChallengeSecret = {
7968
+ /**
7969
+ * Token ID.
7970
+ */
7971
+ $id: string;
7972
+ /**
7973
+ * Token creation date in ISO 8601 format.
7974
+ */
7975
+ $createdAt: string;
7976
+ /**
7977
+ * User ID.
7978
+ */
7979
+ userId: string;
7980
+ /**
7981
+ * Token expiration date in ISO 8601 format.
7982
+ */
7983
+ expire: string;
7984
+ /**
7985
+ * Challenge code to be delivered to the end user through a custom channel.
7986
+ */
7987
+ code: string;
7988
+ };
7641
7989
  /**
7642
7990
  * MFA Recovery Codes
7643
7991
  */
@@ -7680,6 +8028,10 @@ export declare namespace Models {
7680
8028
  * Can recovery code be used for MFA challenge for this account.
7681
8029
  */
7682
8030
  recoveryCode: boolean;
8031
+ /**
8032
+ * Can custom factor be used for MFA challenge for this account.
8033
+ */
8034
+ custom: boolean;
7683
8035
  };
7684
8036
  /**
7685
8037
  * Provider
@@ -8006,7 +8358,7 @@ export declare namespace Models {
8006
8358
  /**
8007
8359
  * An array of objects containing the report data of the resources that were migrated.
8008
8360
  */
8009
- resourceData: object;
8361
+ resourceData: Record<string, any>[];
8010
8362
  /**
8011
8363
  * All errors that occurred during the migration process.
8012
8364
  */
@@ -8747,6 +9099,14 @@ export declare namespace Models {
8747
9099
  * Total databases storage usage
8748
9100
  */
8749
9101
  usageDatabasesStorage: number;
9102
+ /**
9103
+ * Total functions storage usage, deployments and builds together. Supersedes usageDeploymentsStorage and usageBuildsStorage.
9104
+ */
9105
+ usageFunctionsStorage: number;
9106
+ /**
9107
+ * Total sites storage usage, deployments and builds together. Supersedes usageDeploymentsStorage and usageBuildsStorage.
9108
+ */
9109
+ usageSitesStorage: number;
8750
9110
  /**
8751
9111
  * Total active users for the billing period
8752
9112
  */
@@ -9206,6 +9566,10 @@ export declare namespace Models {
9206
9566
  * Usage log time intervals allowed for this plan (e.g. 15m, 1h, 1d).
9207
9567
  */
9208
9568
  usageLogsIntervals?: string[];
9569
+ /**
9570
+ * Metrics this plan only records as a total. They cannot be broken down by dimension or filtered, because the stored events cover a fraction of the real traffic.
9571
+ */
9572
+ usageAggregateOnlyMetrics?: string[];
9209
9573
  /**
9210
9574
  * Number of days of console inactivity before a project is paused. 0 means pausing is disabled.
9211
9575
  */
@@ -9270,6 +9634,10 @@ export declare namespace Models {
9270
9634
  * Does plan support credit
9271
9635
  */
9272
9636
  supportsCredits: boolean;
9637
+ /**
9638
+ * Does plan support dedicated databases.
9639
+ */
9640
+ supportsDedicatedDatabases: boolean;
9273
9641
  /**
9274
9642
  * Does plan support blocking disposable email addresses.
9275
9643
  */
@@ -9330,6 +9698,10 @@ export declare namespace Models {
9330
9698
  * Details of the program this plan is a part of.
9331
9699
  */
9332
9700
  program?: Program;
9701
+ /**
9702
+ * Included monthly dedicated-database compute credit in USD. Resets each billing cycle with no roll-over.
9703
+ */
9704
+ databaseComputeCredit: number;
9333
9705
  /**
9334
9706
  * Dedicated database limits available to this plan.
9335
9707
  */
@@ -9587,7 +9959,7 @@ export declare namespace Models {
9587
9959
  */
9588
9960
  port: number;
9589
9961
  /**
9590
- * Database name the client sends for routing to the branch.
9962
+ * Advertised catalog the client connects to. MySQL/MariaDB use default; Postgres uses the routing label.
9591
9963
  */
9592
9964
  database: string;
9593
9965
  /**
@@ -9615,6 +9987,10 @@ export declare namespace Models {
9615
9987
  * BranchList
9616
9988
  */
9617
9989
  export type DedicatedDatabaseBranchList = {
9990
+ /**
9991
+ * Total number of branches.
9992
+ */
9993
+ total: number;
9618
9994
  /**
9619
9995
  * List of branches.
9620
9996
  */
@@ -9829,6 +10205,10 @@ export declare namespace Models {
9829
10205
  * Number of documents still pending replication to the target.
9830
10206
  */
9831
10207
  lagDocuments: number;
10208
+ /**
10209
+ * Highest source changelog sequence applied to the target so far.
10210
+ */
10211
+ changelogWatermark: number;
9832
10212
  /**
9833
10213
  * Time the migrated data was verified against the source in ISO 8601 format.
9834
10214
  */
@@ -9842,9 +10222,13 @@ export declare namespace Models {
9842
10222
  */
9843
10223
  soakUntil: string;
9844
10224
  /**
9845
- * Whether the migration cuts over automatically once ready.
10225
+ * Whether the migration cuts over automatically once ready. Set when the migration is created and never changed afterwards, so it always reports what was asked for.
9846
10226
  */
9847
10227
  autoCutover: boolean;
10228
+ /**
10229
+ * Whether a cutover has been requested and not yet attempted. Set by the cutover endpoint and cleared when the attempt is made, so a cutover that fails a check parks the migration again rather than retrying on its own.
10230
+ */
10231
+ cutoverRequested: boolean;
9848
10232
  /**
9849
10233
  * Whether the migration is paused.
9850
10234
  */
@@ -9891,7 +10275,7 @@ export declare namespace Models {
9891
10275
  */
9892
10276
  specification: string;
9893
10277
  /**
9894
- * Database backend provider. Possible values: prisma, edge.
10278
+ * Database backend provider. Possible values: edge.
9895
10279
  */
9896
10280
  backend: string;
9897
10281
  /**
@@ -9910,6 +10294,10 @@ export declare namespace Models {
9910
10294
  * Database password for connections.
9911
10295
  */
9912
10296
  connectionPassword: string;
10297
+ /**
10298
+ * Committed generation of the primary connection credentials. Null until the rotation contract has been initialized.
10299
+ */
10300
+ credentialGeneration: number;
9913
10301
  /**
9914
10302
  * Full database connection string (URI format).
9915
10303
  */
@@ -9923,7 +10311,7 @@ export declare namespace Models {
9923
10311
  */
9924
10312
  status: string;
9925
10313
  /**
9926
- * Container status for lifecycle-managed database runtimes: active or inactive.
10314
+ * Container status for lifecycle-managed database runtimes: active, inactive, or failed (a wake was declined because the backing namespace is gone).
9927
10315
  */
9928
10316
  containerStatus: string;
9929
10317
  /**
@@ -9954,6 +10342,18 @@ export declare namespace Models {
9954
10342
  * Storage allocated in GB.
9955
10343
  */
9956
10344
  storage: number;
10345
+ /**
10346
+ * Storage resize status. Possible values: idle (no resize in flight), resizing (the volume is growing towards storageTargetGb).
10347
+ */
10348
+ storageStatus: string;
10349
+ /**
10350
+ * Size in GB the volume is growing towards while storageStatus is resizing. 0 when no resize is in flight.
10351
+ */
10352
+ storageTargetGb: number;
10353
+ /**
10354
+ * Time the in-flight storage resize started, in ISO 8601 format.
10355
+ */
10356
+ storageResizeStartedAt?: string;
9957
10357
  /**
9958
10358
  * Storage class. Currently always 'ssd'; DigitalOcean exposes a single block-storage class.
9959
10359
  */
@@ -9974,10 +10374,6 @@ export declare namespace Models {
9974
10374
  * Replication sync mode: async, sync, or quorum.
9975
10375
  */
9976
10376
  syncMode: string;
9977
- /**
9978
- * Number of cross-region replicas. Cross-region availability is enabled when greater than 0.
9979
- */
9980
- crossRegionReplicas: number;
9981
10377
  /**
9982
10378
  * Maximum concurrent client connections. This is the limit a client pool may reach; the engine's own max_connections reported by the status endpoint is a smaller backend limit the pooler multiplexes onto and does not constrain a client pool.
9983
10379
  */
@@ -10011,7 +10407,7 @@ export declare namespace Models {
10011
10407
  */
10012
10408
  storageAutoscalingThresholdPercent: number;
10013
10409
  /**
10014
- * Maximum storage size in GB for autoscaling. 0 means no limit.
10410
+ * Maximum storage size in GB for autoscaling. Defaults to 3 times the specification's storage. 0 means no limit.
10015
10411
  */
10016
10412
  storageAutoscalingMaxGb: number;
10017
10413
  /**
@@ -10058,7 +10454,7 @@ export declare namespace Models {
10058
10454
  /**
10059
10455
  * Result rows as a list of column-name => value maps. Empty for non-returning statements.
10060
10456
  */
10061
- rows: object;
10457
+ rows: Record<string, any>[];
10062
10458
  /**
10063
10459
  * Number of rows returned (for SELECT) or affected (for INSERT/UPDATE/DELETE).
10064
10460
  */
@@ -10106,9 +10502,13 @@ export declare namespace Models {
10106
10502
  */
10107
10503
  $createdAt: string;
10108
10504
  /**
10109
- * Database ID being restored.
10505
+ * Database ID being restored into.
10110
10506
  */
10111
10507
  databaseId: string;
10508
+ /**
10509
+ * Source database ID when restoring a backup into another database.
10510
+ */
10511
+ sourceDatabaseId: string;
10112
10512
  /**
10113
10513
  * Project ID.
10114
10514
  */
@@ -10147,7 +10547,7 @@ export declare namespace Models {
10147
10547
  */
10148
10548
  export type DatabaseStatus = {
10149
10549
  /**
10150
- * Overall health status: healthy, degraded, or unhealthy.
10550
+ * Overall health status: healthy, degraded, unhealthy, or unknown when nothing could be measured.
10151
10551
  */
10152
10552
  health: string;
10153
10553
  /**
@@ -10191,9 +10591,9 @@ export declare namespace Models {
10191
10591
  */
10192
10592
  syncStandbyCount: number;
10193
10593
  /**
10194
- * Whether the reported sync state was read from the engine. When false the state could not be confirmed and the other sync fields carry no reading.
10594
+ * Whether the other sync fields are an engine reading rather than a recorded estimate. True when the primary answered what it is enforcing, including when that answer contradicted the record, in which case the contradicted values are replaced by the ones the engine reports. False when the reading could not be taken: the probe did not answer, there was no engine to ask, or the values describe a configuration change just applied rather than anything measured. Absent when no engine was asked at all, so an unprobed database is distinguishable from an unconfirmed one. False never means a standby was found lagging, because it is the absence of a reading rather than a negative one, so draw no conclusion about replication health from it or from a response that omits it.
10195
10595
  */
10196
- syncStateConfirmed: boolean;
10596
+ syncStateConfirmed?: boolean;
10197
10597
  /**
10198
10598
  * List of database replicas and their status. Every configured member appears, including one the backend has not brought up, which is reported as not healthy.
10199
10599
  */
@@ -10330,9 +10730,9 @@ export declare namespace Models {
10330
10730
  */
10331
10731
  available: boolean;
10332
10732
  /**
10333
- * Domain registration price.
10733
+ * Domain registration price. Null when the price could not be resolved, for example for an unsupported TLD.
10334
10734
  */
10335
- price: number;
10735
+ price?: number;
10336
10736
  /**
10337
10737
  * Price period in years.
10338
10738
  */
@@ -10341,6 +10741,14 @@ export declare namespace Models {
10341
10741
  * Whether the domain is a premium domain.
10342
10742
  */
10343
10743
  premium: boolean;
10744
+ /**
10745
+ * Domain renewal price for the same period. Null when the domain was not priced or the registrar has no renewal price for it.
10746
+ */
10747
+ renewalPrice?: number;
10748
+ /**
10749
+ * Renewal price period in years.
10750
+ */
10751
+ renewalPeriodYears: number;
10344
10752
  };
10345
10753
  /**
10346
10754
  * DomainPurchase
@@ -10638,7 +11046,11 @@ export declare namespace Models {
10638
11046
  */
10639
11047
  status: string;
10640
11048
  /**
10641
- * Replication lag in seconds. Null when the lag is not known: a primary has none to report, and a member the backend has not probed has none yet.
11049
+ * Whether the engine reports this member's replication stream as up. Null when no reading was taken: a primary has no stream to report, and a member that is not active, or whose probe did not answer, has none yet. False is a reading and null is the absence of one, so the two are not interchangeable. Read it beside lagSeconds before expecting a failover that names no target to find a promotable standby: a member streaming at a known lag is one, and a member reporting null is not evidence either way.
11050
+ */
11051
+ replicating?: boolean;
11052
+ /**
11053
+ * Replication lag in seconds. Null when the lag is not known: a primary has none to report, and a member the backend has not probed has none yet. Also null against `replicating: true`, for a member that is streaming but whose engine printed no numeric lag.
10642
11054
  */
10643
11055
  lagSeconds?: number;
10644
11056
  };
@@ -10659,11 +11071,11 @@ export declare namespace Models {
10659
11071
  */
10660
11072
  databaseId: string;
10661
11073
  /**
10662
- * Operation type, such as provision, update, restore, pausing, resuming, failover, backup-create or cross-region-enable.
11074
+ * Operation type, such as provision, update, credentials-update, restore, pausing, resuming, failover, backup-create or cross-region-enable.
10663
11075
  */
10664
11076
  type: string;
10665
11077
  /**
10666
- * Operation status. Possible values: running (in progress), completed (finished successfully), failed (ended in an error).
11078
+ * Operation status. Possible values: queued (accepted and waiting to resume), running (in progress), completed (finished successfully), failed (ended in an error).
10667
11079
  */
10668
11080
  status: string;
10669
11081
  /**
@@ -10683,7 +11095,7 @@ export declare namespace Models {
10683
11095
  */
10684
11096
  completedAt?: string;
10685
11097
  /**
10686
- * Machine-readable failure code. `LockLost` marks an attempt that was fenced and abandoned because another worker took over the database.
11098
+ * Machine-readable failure code. `Interrupted` marks an attempt that ended before its outcome could be confirmed.
10687
11099
  */
10688
11100
  errorCode: string;
10689
11101
  /**
@@ -10733,9 +11145,9 @@ export declare namespace Models {
10733
11145
  */
10734
11146
  syncStandbyCount: number;
10735
11147
  /**
10736
- * Whether the reported sync state was read from the engine. When false the state could not be confirmed and the other sync fields carry no reading.
11148
+ * Whether the other sync fields are an engine reading rather than a recorded estimate. True when the primary answered what it is enforcing, including when that answer contradicted the record, in which case the contradicted values are replaced by the ones the engine reports. False when the reading could not be taken: the probe did not answer, there was no engine to ask, or the values describe a configuration change just applied rather than anything measured. Absent when no engine was asked at all, so an unprobed database is distinguishable from an unconfirmed one. False never means a standby was found lagging, because it is the absence of a reading rather than a negative one, so draw no conclusion about replication health from it or from a response that omits it.
10737
11149
  */
10738
- syncStateConfirmed: boolean;
11150
+ syncStateConfirmed?: boolean;
10739
11151
  /**
10740
11152
  * Per-pod statuses for the primary and every replica.
10741
11153
  */
@@ -11166,36 +11578,44 @@ export declare namespace Models {
11166
11578
  /**
11167
11579
  * Line items breakdown
11168
11580
  */
11169
- items: object;
11581
+ items: Record<string, any>[];
11170
11582
  /**
11171
11583
  * Applied discounts breakdown
11172
11584
  */
11173
- discounts: object;
11585
+ discounts: Record<string, any>[];
11174
11586
  };
11175
11587
  /**
11176
11588
  * PlanChangeLimits
11177
11589
  */
11178
11590
  export type PlanChangeLimits = {
11179
11591
  /**
11180
- * Total number of projects in the organization
11592
+ * Whether the plan change is allowed
11181
11593
  */
11182
- totalProjects: number;
11594
+ canChangePlan: boolean;
11183
11595
  /**
11184
- * Number of projects exceeding target plan limits
11596
+ * Active addon keys that the target plan does not support. When non-empty, `canChangePlan` is false.
11185
11597
  */
11186
- nonCompliantProjects: number;
11598
+ unsupportedAddons: string[];
11187
11599
  /**
11188
- * Whether the plan change is allowed
11600
+ * Project count against the target plan limit
11189
11601
  */
11190
- canChangePlan: boolean;
11602
+ projects: PlanChangeResourceCompliance;
11191
11603
  /**
11192
- * Project compliance details
11604
+ * Organization member count against the target plan limit
11193
11605
  */
11194
- projects: PlanChangeProjectCompliance[];
11606
+ members: PlanChangeResourceCompliance;
11195
11607
  /**
11196
- * Active addon keys that the target plan does not support. When non-empty, `canChangePlan` is false.
11608
+ * Custom domain count against the target plan limit
11197
11609
  */
11198
- unsupportedAddons: string[];
11610
+ domains: PlanChangeResourceCompliance;
11611
+ /**
11612
+ * Number of projects exceeding target plan limits
11613
+ */
11614
+ nonCompliantProjects: number;
11615
+ /**
11616
+ * Per-project compliance details. Populated for downgrades only.
11617
+ */
11618
+ projectCompliance: PlanChangeProjectCompliance[];
11199
11619
  };
11200
11620
  /**
11201
11621
  * PlanChangeProjectCompliance
@@ -11239,7 +11659,7 @@ export declare namespace Models {
11239
11659
  */
11240
11660
  limit: number;
11241
11661
  /**
11242
- * Compliance status
11662
+ * Compliance status. Either `over_limit` or `within_limit`.
11243
11663
  */
11244
11664
  status: string;
11245
11665
  /**
@@ -11247,7 +11667,7 @@ export declare namespace Models {
11247
11667
  */
11248
11668
  excess: number;
11249
11669
  /**
11250
- * Suggestion for resolving the compliance issue
11670
+ * Suggestion for resolving the compliance issue. Empty when the resource is within limits.
11251
11671
  */
11252
11672
  resolutionHint: string;
11253
11673
  };
@@ -11604,6 +12024,22 @@ export declare namespace Models {
11604
12024
  * Monthly price of the specification in USD.
11605
12025
  */
11606
12026
  price: number;
12027
+ /**
12028
+ * Price per GB of storage above the included amount, per month, in USD.
12029
+ */
12030
+ storageOverageRate: number;
12031
+ /**
12032
+ * Price per GB of bandwidth above the included amount, per month, in USD.
12033
+ */
12034
+ bandwidthOverageRate: number;
12035
+ /**
12036
+ * High availability replica price as a fraction of the specification price.
12037
+ */
12038
+ replicaRate: number;
12039
+ /**
12040
+ * Point-in-time recovery price as a fraction of the specification price.
12041
+ */
12042
+ pitrRate: number;
11607
12043
  /**
11608
12044
  * Allocated CPU in millicores.
11609
12045
  */
@@ -11641,35 +12077,6 @@ export declare namespace Models {
11641
12077
  * Total number of specifications.
11642
12078
  */
11643
12079
  total: number;
11644
- /**
11645
- * Overage and add-on pricing shared across all specifications.
11646
- */
11647
- pricing: DedicatedDatabaseSpecificationPricing;
11648
- };
11649
- /**
11650
- * SpecificationPricing
11651
- */
11652
- export type DedicatedDatabaseSpecificationPricing = {
11653
- /**
11654
- * Price per GB of storage above the included amount, per month, in USD.
11655
- */
11656
- storageOverageRate: number;
11657
- /**
11658
- * Price per GB of bandwidth above the included amount, per month, in USD.
11659
- */
11660
- bandwidthOverageRate: number;
11661
- /**
11662
- * High availability replica price as a fraction of the specification cost.
11663
- */
11664
- replicaRate: number;
11665
- /**
11666
- * Cross-region replica price as a fraction of the specification cost.
11667
- */
11668
- crossRegionReplicaRate: number;
11669
- /**
11670
- * Point-in-time recovery price as a fraction of the specification cost.
11671
- */
11672
- pitrRate: number;
11673
12080
  };
11674
12081
  /**
11675
12082
  * Connections
@@ -11701,7 +12108,11 @@ export declare namespace Models {
11701
12108
  */
11702
12109
  healthy: boolean;
11703
12110
  /**
11704
- * Replication lag in seconds (null for primary).
12111
+ * Whether the engine reports this member's replication stream as up. Null when no reading was taken: a primary has no stream to report, and a member that is not healthy, or whose probe did not answer, has none yet. `healthy` is a reachability probe of the member itself and says nothing about replication, so a healthy member may still not be replicating.
12112
+ */
12113
+ replicating?: boolean;
12114
+ /**
12115
+ * Replication lag in seconds (null for primary). Also null against `replicating: true`, for a member that is streaming but whose engine printed no numeric lag.
11705
12116
  */
11706
12117
  lagSeconds?: number;
11707
12118
  };
@@ -11775,166 +12186,6 @@ export declare namespace Models {
11775
12186
  */
11776
12187
  credits?: AdditionalResource;
11777
12188
  };
11778
- /**
11779
- * usageDataPoint
11780
- */
11781
- export type UsageDataPoint = {
11782
- /**
11783
- * Bucket start timestamp (ISO 8601). When `interval` is omitted this is the request end time, marking the aggregate as-of moment.
11784
- */
11785
- time: string;
11786
- /**
11787
- * Aggregated value for the bucket. Counters are whole numbers; gauge rates (e.g. queries per second) may be fractional.
11788
- */
11789
- value: number;
11790
- /**
11791
- * API endpoint path when broken down by `path`.
11792
- */
11793
- path?: string;
11794
- /**
11795
- * HTTP method when broken down by `method`.
11796
- */
11797
- method?: string;
11798
- /**
11799
- * HTTP status code when broken down by `status`.
11800
- */
11801
- status?: string;
11802
- /**
11803
- * API service segment when broken down by `service`.
11804
- */
11805
- service?: string;
11806
- /**
11807
- * Country code when broken down by `country`.
11808
- */
11809
- country?: string;
11810
- /**
11811
- * Continent code when broken down by `continentCode`.
11812
- */
11813
- continentCode?: string;
11814
- /**
11815
- * City name when broken down by `city`.
11816
- */
11817
- city?: string;
11818
- /**
11819
- * Region/state chain when broken down by `subdivisions`.
11820
- */
11821
- subdivisions?: string;
11822
- /**
11823
- * Internet service provider when broken down by `isp`.
11824
- */
11825
- isp?: string;
11826
- /**
11827
- * Autonomous System Number (ASN) when broken down by `autonomousSystemNumber`.
11828
- */
11829
- autonomousSystemNumber?: string;
11830
- /**
11831
- * Organization owning the ASN when broken down by `autonomousSystemOrganization`.
11832
- */
11833
- autonomousSystemOrganization?: string;
11834
- /**
11835
- * Connection type (e.g. cable, cellular, corporate) when broken down by `connectionType`.
11836
- */
11837
- connectionType?: string;
11838
- /**
11839
- * User type (e.g. residential, business, hosting) when broken down by `connectionUsageType`.
11840
- */
11841
- connectionUsageType?: string;
11842
- /**
11843
- * Registered organization of the IP when broken down by `connectionOrganization`.
11844
- */
11845
- connectionOrganization?: string;
11846
- /**
11847
- * Appwrite region when broken down by `region`.
11848
- */
11849
- region?: string;
11850
- /**
11851
- * Caller origin hostname when broken down by `hostname`.
11852
- */
11853
- hostname?: string;
11854
- /**
11855
- * Caller IP address when broken down by `ip`.
11856
- */
11857
- ip?: string;
11858
- /**
11859
- * Operating system name when broken down by `osName`.
11860
- */
11861
- osName?: string;
11862
- /**
11863
- * Client type when broken down by `clientType`.
11864
- */
11865
- clientType?: string;
11866
- /**
11867
- * Client name when broken down by `clientName`.
11868
- */
11869
- clientName?: string;
11870
- /**
11871
- * SDK name when broken down by `sdk`.
11872
- */
11873
- sdk?: string;
11874
- /**
11875
- * SDK version when broken down by `sdkVersion`.
11876
- */
11877
- sdkVersion?: string;
11878
- /**
11879
- * Device classification when broken down by `deviceName`.
11880
- */
11881
- deviceName?: string;
11882
- /**
11883
- * Owning team ID when broken down by `teamId`.
11884
- */
11885
- teamId?: string;
11886
- /**
11887
- * External resource ID when broken down by `resourceId`.
11888
- */
11889
- resourceId?: string;
11890
- /**
11891
- * Resource type when broken down by `resourceType`.
11892
- */
11893
- resourceType?: string;
11894
- /**
11895
- * Node ordinal when broken down by `ordinal`. A stable per-node identity, not a role: ordinal 0 is the first member created, and a failover can leave the primary on any ordinal. Read the role from the database's replicas endpoint.
11896
- */
11897
- ordinal?: string;
11898
- };
11899
- /**
11900
- * usageEventList
11901
- */
11902
- export type UsageEventList = {
11903
- /**
11904
- * Time interval size (1h or 1d). Empty when the request omits `interval` — points then carry the request end time as their as-of marker.
11905
- */
11906
- interval: string;
11907
- /**
11908
- * One entry per requested metric, each carrying its own points[] time series (sums per bucket / dimension over time).
11909
- */
11910
- metrics: UsageMetric[];
11911
- };
11912
- /**
11913
- * usageGaugeList
11914
- */
11915
- export type UsageGaugeList = {
11916
- /**
11917
- * Time interval size (1h or 1d). Empty when the request omits `interval` — points then carry the request end time as their as-of marker.
11918
- */
11919
- interval: string;
11920
- /**
11921
- * One entry per requested metric, each carrying its own points[] time series (latest-snapshot per bucket / dimension via argMax over time).
11922
- */
11923
- metrics: UsageMetric[];
11924
- };
11925
- /**
11926
- * usageMetric
11927
- */
11928
- export type UsageMetric = {
11929
- /**
11930
- * Metric key this series describes.
11931
- */
11932
- metric: string;
11933
- /**
11934
- * Data points for this metric, ordered by time ascending. With `interval`, each entry is one bucket; without, each entry is one row of the dimensional or aggregate breakdown.
11935
- */
11936
- points: UsageDataPoint[];
11937
- };
11938
12189
  /**
11939
12190
  * Organization
11940
12191
  */
@@ -12071,11 +12322,11 @@ export declare namespace Models {
12071
12322
  /**
12072
12323
  * Aggregated stats for number of requests.
12073
12324
  */
12074
- bandwidth: Metric[];
12325
+ bandwidth: number;
12075
12326
  /**
12076
12327
  * Aggregated stats for consumed bandwidth.
12077
12328
  */
12078
- users: Metric[];
12329
+ users: number;
12079
12330
  /**
12080
12331
  * Aggregated stats for function executions.
12081
12332
  */
@@ -12083,11 +12334,11 @@ export declare namespace Models {
12083
12334
  /**
12084
12335
  * Aggregated stats for database reads.
12085
12336
  */
12086
- databasesReads: Metric[];
12337
+ databasesReads: number;
12087
12338
  /**
12088
12339
  * Aggregated stats for database writes.
12089
12340
  */
12090
- databasesWrites: Metric[];
12341
+ databasesWrites: number;
12091
12342
  /**
12092
12343
  * Aggregated stats for function executions in mb seconds.
12093
12344
  */
@@ -12119,7 +12370,7 @@ export declare namespace Models {
12119
12370
  /**
12120
12371
  * Aggregated stats for file transformations.
12121
12372
  */
12122
- imageTransformations: Metric[];
12373
+ imageTransformations: number;
12123
12374
  /**
12124
12375
  * Aggregated stats for total file transformations.
12125
12376
  */
@@ -12127,7 +12378,7 @@ export declare namespace Models {
12127
12378
  /**
12128
12379
  * Aggregated stats for file transformations.
12129
12380
  */
12130
- screenshotsGenerated: Metric[];
12381
+ screenshotsGenerated: number;
12131
12382
  /**
12132
12383
  * Aggregated stats for total file transformations.
12133
12384
  */
@@ -12429,7 +12680,7 @@ export declare namespace Models {
12429
12680
  /**
12430
12681
  * Authorization details granted to the application. Rich authorization request (RFC 9396) style entries; the Appwrite Console stores authorized project IDs here.
12431
12682
  */
12432
- authorizationDetails: object;
12683
+ authorizationDetails: Record<string, any>[];
12433
12684
  /**
12434
12685
  * ID of the user who created the installation.
12435
12686
  */
@@ -12792,7 +13043,7 @@ export declare namespace Models {
12792
13043
  /**
12793
13044
  * List of conditions evaluated for this rule.
12794
13045
  */
12795
- conditions: object;
13046
+ conditions: Record<string, any>[];
12796
13047
  /**
12797
13048
  * Action specific configuration.
12798
13049
  */
@@ -12853,7 +13104,7 @@ export declare namespace Models {
12853
13104
  /**
12854
13105
  * List of conditions evaluated for this rule.
12855
13106
  */
12856
- conditions: object;
13107
+ conditions: Record<string, any>[];
12857
13108
  /**
12858
13109
  * Action specific configuration.
12859
13110
  */
@@ -12914,7 +13165,7 @@ export declare namespace Models {
12914
13165
  /**
12915
13166
  * List of conditions evaluated for this rule.
12916
13167
  */
12917
- conditions: object;
13168
+ conditions: Record<string, any>[];
12918
13169
  /**
12919
13170
  * Action specific configuration.
12920
13171
  */
@@ -12975,7 +13226,7 @@ export declare namespace Models {
12975
13226
  /**
12976
13227
  * List of conditions evaluated for this rule.
12977
13228
  */
12978
- conditions: object;
13229
+ conditions: Record<string, any>[];
12979
13230
  /**
12980
13231
  * Action specific configuration.
12981
13232
  */
@@ -13048,7 +13299,7 @@ export declare namespace Models {
13048
13299
  /**
13049
13300
  * List of conditions evaluated for this rule.
13050
13301
  */
13051
- conditions: object;
13302
+ conditions: Record<string, any>[];
13052
13303
  /**
13053
13304
  * Action specific configuration.
13054
13305
  */
@@ -13065,6 +13316,14 @@ export declare namespace Models {
13065
13316
  * Rate limit key: `ip` limits per client IP, `userId` limits per authenticated user.
13066
13317
  */
13067
13318
  key: string;
13319
+ /**
13320
+ * Rate limit strategy: `fixedWindow`, `slidingWindow`, or `tokenBucket`.
13321
+ */
13322
+ strategy: string;
13323
+ /**
13324
+ * Maximum burst capacity in tokens, applied by the `tokenBucket` strategy. The sustained refill rate is `limit / interval`. Defaults to `limit`.
13325
+ */
13326
+ maxBucketSize: number;
13068
13327
  };
13069
13328
  /**
13070
13329
  * WafRuleRedirect
@@ -13121,7 +13380,7 @@ export declare namespace Models {
13121
13380
  /**
13122
13381
  * List of conditions evaluated for this rule.
13123
13382
  */
13124
- conditions: object;
13383
+ conditions: Record<string, any>[];
13125
13384
  /**
13126
13385
  * Action specific configuration.
13127
13386
  */
@@ -13408,6 +13667,19 @@ export declare namespace Models {
13408
13667
  */
13409
13668
  suggestions: DomainSuggestion[];
13410
13669
  };
13670
+ /**
13671
+ * Domain prices list
13672
+ */
13673
+ export type DomainPricesList = {
13674
+ /**
13675
+ * Total number of prices that matched your query.
13676
+ */
13677
+ total: number;
13678
+ /**
13679
+ * List of prices.
13680
+ */
13681
+ prices: DomainPrice[];
13682
+ };
13411
13683
  /**
13412
13684
  * Domains list
13413
13685
  */