@appwrite.io/console 13.1.0 → 13.2.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 (36) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/sdk.js +4257 -690
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +4255 -691
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +4259 -692
  7. package/package.json +1 -1
  8. package/types/enums/{site-adapter.d.ts → adapter.d.ts} +1 -1
  9. package/types/enums/{organization-addon.d.ts → addon.d.ts} +1 -1
  10. package/types/enums/appwrite-migration-resource.d.ts +13 -1
  11. package/types/enums/{function-runtime.d.ts → build-runtime.d.ts} +1 -1
  12. package/types/enums/embedding-model.d.ts +4 -1
  13. package/types/enums/{site-framework.d.ts → framework.d.ts} +1 -1
  14. package/types/enums/{migration-on-duplicate.d.ts → on-duplicate.d.ts} +1 -1
  15. package/types/enums/project-key-scopes.d.ts +2 -0
  16. package/types/enums/project-policy-id.d.ts +5 -1
  17. package/types/enums/query-suggestion-resource.d.ts +3 -0
  18. package/types/enums/{site-build-runtime.d.ts → runtime.d.ts} +1 -1
  19. package/types/enums/{redirect-status-code.d.ts → status-code.d.ts} +1 -1
  20. package/types/enums/status.d.ts +3 -0
  21. package/types/index.d.ts +11 -8
  22. package/types/models.d.ts +1524 -19
  23. package/types/services/account.d.ts +2 -2
  24. package/types/services/advisor.d.ts +123 -0
  25. package/types/services/apps.d.ts +266 -0
  26. package/types/services/compute.d.ts +1171 -0
  27. package/types/services/functions.d.ts +13 -13
  28. package/types/services/health.d.ts +8 -0
  29. package/types/services/messaging.d.ts +92 -0
  30. package/types/services/migrations.d.ts +13 -13
  31. package/types/services/organizations.d.ts +5 -5
  32. package/types/services/project.d.ts +77 -6
  33. package/types/services/projects.d.ts +5 -5
  34. package/types/services/proxy.d.ts +5 -5
  35. package/types/services/sites.d.ts +27 -27
  36. package/types/enums/project-status.d.ts +0 -3
package/types/models.d.ts CHANGED
@@ -564,7 +564,7 @@ export declare namespace Models {
564
564
  /**
565
565
  * List of policies.
566
566
  */
567
- policies: (Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy)[];
567
+ 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)[];
568
568
  };
569
569
  /**
570
570
  * Email Templates List
@@ -774,6 +774,32 @@ export declare namespace Models {
774
774
  */
775
775
  embeddings: Embedding[];
776
776
  };
777
+ /**
778
+ * Insights List
779
+ */
780
+ export type InsightList = {
781
+ /**
782
+ * Total number of insights that matched your query.
783
+ */
784
+ total: number;
785
+ /**
786
+ * List of insights.
787
+ */
788
+ insights: Insight[];
789
+ };
790
+ /**
791
+ * Reports List
792
+ */
793
+ export type ReportList = {
794
+ /**
795
+ * Total number of reports that matched your query.
796
+ */
797
+ total: number;
798
+ /**
799
+ * List of reports.
800
+ */
801
+ reports: Report[];
802
+ };
777
803
  /**
778
804
  * Database
779
805
  */
@@ -4980,6 +5006,10 @@ export declare namespace Models {
4980
5006
  * Project team ID.
4981
5007
  */
4982
5008
  teamId: string;
5009
+ /**
5010
+ * Project region
5011
+ */
5012
+ region: string;
4983
5013
  /**
4984
5014
  * Deprecated since 1.9.5: List of dev keys.
4985
5015
  */
@@ -5053,21 +5083,53 @@ export declare namespace Models {
5053
5083
  */
5054
5084
  protocols: ProjectProtocol[];
5055
5085
  /**
5056
- * Project region
5086
+ * Project blocks information
5057
5087
  */
5058
- region: string;
5088
+ blocks: Block[];
5089
+ /**
5090
+ * Last time the project was accessed via console. Used with plan's projectInactivityDays to determine if project is paused.
5091
+ */
5092
+ consoleAccessedAt: string;
5059
5093
  /**
5060
5094
  * Billing limits reached
5061
5095
  */
5062
5096
  billingLimits?: BillingLimits;
5063
5097
  /**
5064
- * Project blocks information
5098
+ * OAuth2 server status
5065
5099
  */
5066
- blocks: Block[];
5100
+ oAuth2ServerEnabled: boolean;
5067
5101
  /**
5068
- * Last time the project was accessed via console. Used with plan's projectInactivityDays to determine if project is paused.
5102
+ * OAuth2 server authorization URL
5069
5103
  */
5070
- consoleAccessedAt: string;
5104
+ oAuth2ServerAuthorizationUrl: string;
5105
+ /**
5106
+ * OAuth2 server allowed scopes
5107
+ */
5108
+ oAuth2ServerScopes: string[];
5109
+ /**
5110
+ * OAuth2 server access token duration in seconds for confidential clients
5111
+ */
5112
+ oAuth2ServerAccessTokenDuration: number;
5113
+ /**
5114
+ * OAuth2 server refresh token duration in seconds for confidential clients
5115
+ */
5116
+ oAuth2ServerRefreshTokenDuration: number;
5117
+ /**
5118
+ * OAuth2 server access token duration in seconds for public clients (SPAs, mobile, native)
5119
+ */
5120
+ oAuth2ServerPublicAccessTokenDuration: number;
5121
+ /**
5122
+ * OAuth2 server refresh token duration in seconds for public clients (SPAs, mobile, native)
5123
+ */
5124
+ oAuth2ServerPublicRefreshTokenDuration: number;
5125
+ /**
5126
+ * When enabled, PKCE is required for confidential clients (server-side flows using client_secret). PKCE is always required for public clients regardless of this setting.
5127
+ */
5128
+ oAuth2ServerConfidentialPkce: boolean;
5129
+ /**
5130
+ * OAuth2 server discovery URL
5131
+ */
5132
+ oAuth2ServerDiscoveryUrl: string;
5071
5133
  };
5072
5134
  /**
5073
5135
  * ProjectAuthMethod
@@ -6248,6 +6310,35 @@ export declare namespace Models {
6248
6310
  */
6249
6311
  total: number;
6250
6312
  };
6313
+ /**
6314
+ * Policy Password Strength
6315
+ */
6316
+ export type PolicyPasswordStrength = {
6317
+ /**
6318
+ * Policy ID.
6319
+ */
6320
+ $id: string;
6321
+ /**
6322
+ * Minimum password length required for user passwords.
6323
+ */
6324
+ min: number;
6325
+ /**
6326
+ * Whether passwords must include at least one uppercase letter.
6327
+ */
6328
+ uppercase: boolean;
6329
+ /**
6330
+ * Whether passwords must include at least one lowercase letter.
6331
+ */
6332
+ lowercase: boolean;
6333
+ /**
6334
+ * Whether passwords must include at least one number.
6335
+ */
6336
+ number: boolean;
6337
+ /**
6338
+ * Whether passwords must include at least one symbol.
6339
+ */
6340
+ symbols: boolean;
6341
+ };
6251
6342
  /**
6252
6343
  * Policy Password Personal Data
6253
6344
  */
@@ -8593,6 +8684,50 @@ export declare namespace Models {
8593
8684
  * Number of platforms to be migrated.
8594
8685
  */
8595
8686
  platform: number;
8687
+ /**
8688
+ * Number of API keys to be migrated.
8689
+ */
8690
+ apikey: number;
8691
+ /**
8692
+ * Number of project variables to be migrated.
8693
+ */
8694
+ projectvariable: number;
8695
+ /**
8696
+ * Number of webhooks to be migrated.
8697
+ */
8698
+ webhook: number;
8699
+ /**
8700
+ * Number of auth-method configs to be migrated (always 0 or 1 — the project-level flag bundle).
8701
+ */
8702
+ authmethods: number;
8703
+ /**
8704
+ * Number of protocol configs to be migrated (always 0 or 1 — the project-level REST/GraphQL/WebSocket flags).
8705
+ */
8706
+ projectprotocols: number;
8707
+ /**
8708
+ * Number of label sets to be migrated (always 0 or 1 — the project-level RBAC label array).
8709
+ */
8710
+ projectlabels: number;
8711
+ /**
8712
+ * Number of service configs to be migrated (always 0 or 1 — the project-level enable/disable flags for all 17 services).
8713
+ */
8714
+ projectservices: number;
8715
+ /**
8716
+ * Number of policy bundles to be migrated (always 0 or 1 — the project-level security policies covering password rules, session behavior, user limits, and membership privacy).
8717
+ */
8718
+ policies: number;
8719
+ /**
8720
+ * Number of SMTP configurations to be migrated (always 0 or 1 — the project-level custom SMTP settings; password is not exposed by the source API).
8721
+ */
8722
+ smtp: number;
8723
+ /**
8724
+ * Number of custom-domain proxy rules to be migrated. Auto-generated `.appwrite.network` rules are skipped — they are recreated by parent Function/Site migration.
8725
+ */
8726
+ rule: number;
8727
+ /**
8728
+ * Number of custom email templates to be migrated (one per templateId × locale pair).
8729
+ */
8730
+ projectemailtemplate: number;
8596
8731
  /**
8597
8732
  * Number of sites to be migrated.
8598
8733
  */
@@ -8621,11 +8756,162 @@ export declare namespace Models {
8621
8756
  * Version of the Appwrite instance to be migrated.
8622
8757
  */
8623
8758
  version: string;
8759
+ /**
8760
+ * Number of OAuth2 provider configurations to be migrated. Secrets (clientSecret, p8File) are never migrated — destination admin must re-enter them per provider.
8761
+ */
8762
+ oauth2provider: number;
8624
8763
  /**
8625
8764
  * Number of backup policies to be migrated.
8626
8765
  */
8627
8766
  backuppolicy: number;
8628
8767
  };
8768
+ /**
8769
+ * Insight
8770
+ */
8771
+ export type Insight = {
8772
+ /**
8773
+ * Insight ID.
8774
+ */
8775
+ $id: string;
8776
+ /**
8777
+ * Insight creation date in ISO 8601 format.
8778
+ */
8779
+ $createdAt: string;
8780
+ /**
8781
+ * Insight update date in ISO 8601 format.
8782
+ */
8783
+ $updatedAt: string;
8784
+ /**
8785
+ * Parent report ID. Insights always belong to a report.
8786
+ */
8787
+ reportId: string;
8788
+ /**
8789
+ * Insight type. One of databaseIndex (legacy), tablesDBIndex, documentsDBIndex, vectorsDBIndex, databasePerformance, sitePerformance, siteAccessibility, siteSeo, functionPerformance. The index types are engine-specific so each CTA can pair the right service+method (databases.createIndex, tablesDB.createIndex, documentsDB.createIndex, or vectorsDB.createIndex).
8790
+ */
8791
+ type: string;
8792
+ /**
8793
+ * Insight severity. One of info, warning, critical.
8794
+ */
8795
+ severity: string;
8796
+ /**
8797
+ * Insight status. One of active, dismissed.
8798
+ */
8799
+ status: string;
8800
+ /**
8801
+ * Type of the resource the insight is about. Plural noun, e.g. databases, sites, functions.
8802
+ */
8803
+ resourceType: string;
8804
+ /**
8805
+ * ID of the resource the insight is about.
8806
+ */
8807
+ resourceId: string;
8808
+ /**
8809
+ * Plural noun for the parent resource that contains the insight's resource, e.g. an insight about a column index on a table → resourceType=indexes, parentResourceType=tables. Empty when the resource has no parent.
8810
+ */
8811
+ parentResourceType: string;
8812
+ /**
8813
+ * ID of the parent resource. Empty when the resource has no parent.
8814
+ */
8815
+ parentResourceId: string;
8816
+ /**
8817
+ * Insight title.
8818
+ */
8819
+ title: string;
8820
+ /**
8821
+ * Short markdown summary describing the insight.
8822
+ */
8823
+ summary: string;
8824
+ /**
8825
+ * List of call-to-action buttons attached to this insight.
8826
+ */
8827
+ ctas: InsightCTA[];
8828
+ /**
8829
+ * Time the insight was analyzed in ISO 8601 format.
8830
+ */
8831
+ analyzedAt?: string;
8832
+ /**
8833
+ * Time the insight was dismissed in ISO 8601 format. Empty when not dismissed.
8834
+ */
8835
+ dismissedAt?: string;
8836
+ /**
8837
+ * User ID that dismissed the insight. Empty when not dismissed.
8838
+ */
8839
+ dismissedBy?: string;
8840
+ };
8841
+ /**
8842
+ * InsightCTA
8843
+ */
8844
+ export type InsightCTA = {
8845
+ /**
8846
+ * Human-readable label for the CTA, used in UI.
8847
+ */
8848
+ label: string;
8849
+ /**
8850
+ * Public API service (SDK namespace) the client should invoke. Must match the engine that owns the resource — for index suggestions: databases (legacy), tablesDB, documentsDB, or vectorsDB.
8851
+ */
8852
+ service: string;
8853
+ /**
8854
+ * Public API method on the chosen service the client should invoke when this CTA is triggered.
8855
+ */
8856
+ method: string;
8857
+ /**
8858
+ * Parameter map the client should pass to the service method when this CTA is triggered. Keys match the target API's parameter names (e.g. databaseId/tableId/columns for tablesDB, databaseId/collectionId/attributes for the legacy Databases API).
8859
+ */
8860
+ params: object;
8861
+ };
8862
+ /**
8863
+ * Report
8864
+ */
8865
+ export type Report = {
8866
+ /**
8867
+ * Report ID.
8868
+ */
8869
+ $id: string;
8870
+ /**
8871
+ * Report creation date in ISO 8601 format.
8872
+ */
8873
+ $createdAt: string;
8874
+ /**
8875
+ * Report update date in ISO 8601 format.
8876
+ */
8877
+ $updatedAt: string;
8878
+ /**
8879
+ * ID of the third-party app that submitted the report.
8880
+ */
8881
+ appId: string;
8882
+ /**
8883
+ * Analyzer that produced this report. e.g. lighthouse, audit, databaseAnalyzer.
8884
+ */
8885
+ type: string;
8886
+ /**
8887
+ * Short, human-readable title for the report.
8888
+ */
8889
+ title: string;
8890
+ /**
8891
+ * Markdown summary describing the report.
8892
+ */
8893
+ summary: string;
8894
+ /**
8895
+ * Plural noun describing what the report analyzes, e.g. databases, sites, urls.
8896
+ */
8897
+ targetType: string;
8898
+ /**
8899
+ * Free-form target identifier (URL for lighthouse, resource ID for db).
8900
+ */
8901
+ target: string;
8902
+ /**
8903
+ * Categories covered by the report, e.g. performance, accessibility.
8904
+ */
8905
+ categories: string[];
8906
+ /**
8907
+ * Insights nested under this report.
8908
+ */
8909
+ insights: Insight[];
8910
+ /**
8911
+ * Time the report was analyzed in ISO 8601 format.
8912
+ */
8913
+ analyzedAt?: string;
8914
+ };
8629
8915
  /**
8630
8916
  * ActivityEvent
8631
8917
  */
@@ -9069,6 +9355,105 @@ export declare namespace Models {
9069
9355
  */
9070
9356
  resourceType?: string;
9071
9357
  };
9358
+ /**
9359
+ * Backup
9360
+ */
9361
+ export type DedicatedDatabaseBackup = {
9362
+ /**
9363
+ * Backup ID.
9364
+ */
9365
+ $id: string;
9366
+ /**
9367
+ * Backup creation time in ISO 8601 format.
9368
+ */
9369
+ $createdAt: string;
9370
+ /**
9371
+ * Database ID this backup belongs to.
9372
+ */
9373
+ databaseId: string;
9374
+ /**
9375
+ * Project ID.
9376
+ */
9377
+ projectId: string;
9378
+ /**
9379
+ * Backup policy ID when the backup was created by a schedule.
9380
+ */
9381
+ policyId: string;
9382
+ /**
9383
+ * Backup trigger. Possible values: manual, schedule.
9384
+ */
9385
+ trigger: string;
9386
+ /**
9387
+ * Backup type. Possible values: full (complete database snapshot), incremental (changes since last backup), wal (write-ahead log continuous archival).
9388
+ */
9389
+ type: string;
9390
+ /**
9391
+ * Backup status. Possible values: pending (queued for processing), running (currently in progress), completed (successfully finished), failed (encountered an error), verified (integrity check passed).
9392
+ */
9393
+ status: string;
9394
+ /**
9395
+ * Backup size in bytes.
9396
+ */
9397
+ sizeBytes: number;
9398
+ /**
9399
+ * Backup start time in ISO 8601 format.
9400
+ */
9401
+ startedAt: string;
9402
+ /**
9403
+ * Backup completion time in ISO 8601 format.
9404
+ */
9405
+ completedAt: string;
9406
+ /**
9407
+ * Backup verification time in ISO 8601 format.
9408
+ */
9409
+ verifiedAt: string;
9410
+ /**
9411
+ * Backup expiration time in ISO 8601 format.
9412
+ */
9413
+ expiresAt: string;
9414
+ /**
9415
+ * Error message if backup failed.
9416
+ */
9417
+ error: string;
9418
+ };
9419
+ /**
9420
+ * BackupList
9421
+ */
9422
+ export type DedicatedDatabaseBackupList = {
9423
+ /**
9424
+ * Total number of backups.
9425
+ */
9426
+ total: number;
9427
+ /**
9428
+ * List of backups.
9429
+ */
9430
+ backups: DedicatedDatabaseBackup[];
9431
+ };
9432
+ /**
9433
+ * BackupStorageConfig
9434
+ */
9435
+ export type DedicatedDatabaseBackupStorage = {
9436
+ /**
9437
+ * Storage provider. Possible values: s3 (Amazon S3 or S3-compatible), gcs (Google Cloud Storage), azure (Azure Blob Storage).
9438
+ */
9439
+ provider: string;
9440
+ /**
9441
+ * Storage bucket or container name.
9442
+ */
9443
+ bucket: string;
9444
+ /**
9445
+ * Storage region.
9446
+ */
9447
+ region: string;
9448
+ /**
9449
+ * Object key prefix for backups.
9450
+ */
9451
+ prefix: string;
9452
+ /**
9453
+ * Custom endpoint for S3-compatible storage.
9454
+ */
9455
+ endpoint: string;
9456
+ };
9072
9457
  /**
9073
9458
  * Address
9074
9459
  */
@@ -9359,6 +9744,10 @@ export declare namespace Models {
9359
9744
  * Does plan support blocking free email addresses.
9360
9745
  */
9361
9746
  supportsFreeEmailValidation: boolean;
9747
+ /**
9748
+ * Does plan support project-specific member roles.
9749
+ */
9750
+ supportsProjectSpecificRoles: boolean;
9362
9751
  /**
9363
9752
  * Does plan support backup policies.
9364
9753
  */
@@ -9531,21 +9920,51 @@ export declare namespace Models {
9531
9920
  blocks: Block[];
9532
9921
  };
9533
9922
  /**
9534
- * Campaign
9923
+ * Branch
9535
9924
  */
9536
- export type Campaign = {
9925
+ export type DedicatedDatabaseBranch = {
9537
9926
  /**
9538
- * Campaign ID
9927
+ * Branch identifier.
9539
9928
  */
9540
- $id: string;
9929
+ branchId: string;
9541
9930
  /**
9542
- * Campaign template
9931
+ * Branch name.
9543
9932
  */
9544
- template: string;
9933
+ branchName: string;
9545
9934
  /**
9546
- * Campaign title
9935
+ * Kubernetes namespace where the branch is deployed.
9547
9936
  */
9548
- title: string;
9937
+ namespace: string;
9938
+ /**
9939
+ * Unix timestamp when the branch expires.
9940
+ */
9941
+ expiresAt: number;
9942
+ };
9943
+ /**
9944
+ * BranchList
9945
+ */
9946
+ export type DedicatedDatabaseBranchList = {
9947
+ /**
9948
+ * List of branches.
9949
+ */
9950
+ branches: DedicatedDatabaseBranch[];
9951
+ };
9952
+ /**
9953
+ * Campaign
9954
+ */
9955
+ export type Campaign = {
9956
+ /**
9957
+ * Campaign ID
9958
+ */
9959
+ $id: string;
9960
+ /**
9961
+ * Campaign template
9962
+ */
9963
+ template: string;
9964
+ /**
9965
+ * Campaign title
9966
+ */
9967
+ title: string;
9549
9968
  /**
9550
9969
  * Campaign description
9551
9970
  */
@@ -9583,6 +10002,31 @@ export declare namespace Models {
9583
10002
  */
9584
10003
  footer?: boolean;
9585
10004
  };
10005
+ /**
10006
+ * Connection
10007
+ */
10008
+ export type DedicatedDatabaseConnection = {
10009
+ /**
10010
+ * Connection ID.
10011
+ */
10012
+ $id: string;
10013
+ /**
10014
+ * Connection username.
10015
+ */
10016
+ username: string;
10017
+ /**
10018
+ * Database name.
10019
+ */
10020
+ database: string;
10021
+ /**
10022
+ * Connection role. Common values: readonly, readwrite.
10023
+ */
10024
+ role: string;
10025
+ /**
10026
+ * Connection creation date in ISO 8601 format.
10027
+ */
10028
+ $createdAt: string;
10029
+ };
9586
10030
  /**
9587
10031
  * Coupon
9588
10032
  */
@@ -9620,6 +10064,47 @@ export declare namespace Models {
9620
10064
  */
9621
10065
  onlyNewOrgs: boolean;
9622
10066
  };
10067
+ /**
10068
+ * Credentials
10069
+ */
10070
+ export type DedicatedDatabaseCredentials = {
10071
+ /**
10072
+ * Database ID.
10073
+ */
10074
+ $id: string;
10075
+ /**
10076
+ * Database hostname.
10077
+ */
10078
+ host: string;
10079
+ /**
10080
+ * Database port.
10081
+ */
10082
+ port: number;
10083
+ /**
10084
+ * Database username.
10085
+ */
10086
+ username: string;
10087
+ /**
10088
+ * Database password.
10089
+ */
10090
+ password: string;
10091
+ /**
10092
+ * Database name.
10093
+ */
10094
+ database: string;
10095
+ /**
10096
+ * Database engine. Possible values: postgres, mysql, mariadb, mongodb.
10097
+ */
10098
+ engine: string;
10099
+ /**
10100
+ * Whether SSL is required.
10101
+ */
10102
+ ssl: boolean;
10103
+ /**
10104
+ * Full connection string.
10105
+ */
10106
+ connectionString: string;
10107
+ };
9623
10108
  /**
9624
10109
  * Credit
9625
10110
  */
@@ -9695,6 +10180,392 @@ export declare namespace Models {
9695
10180
  */
9696
10181
  available: number;
9697
10182
  };
10183
+ /**
10184
+ * DatabaseMetrics
10185
+ */
10186
+ export type DedicatedDatabaseMetrics = {
10187
+ /**
10188
+ * Metrics aggregation period. Possible values: 1h (last hour), 24h (last 24 hours), 7d (last 7 days), 30d (last 30 days).
10189
+ */
10190
+ period: string;
10191
+ /**
10192
+ * Average CPU usage percentage.
10193
+ */
10194
+ cpuPercent: number;
10195
+ /**
10196
+ * Average memory usage percentage.
10197
+ */
10198
+ memoryPercent: number;
10199
+ /**
10200
+ * Memory used in bytes.
10201
+ */
10202
+ memoryUsedBytes: number;
10203
+ /**
10204
+ * Maximum memory available in bytes.
10205
+ */
10206
+ memoryMaxBytes: number;
10207
+ /**
10208
+ * Storage used in bytes.
10209
+ */
10210
+ storageUsedBytes: number;
10211
+ /**
10212
+ * Current active connections.
10213
+ */
10214
+ connectionsActive: number;
10215
+ /**
10216
+ * Maximum connections configured.
10217
+ */
10218
+ connectionsMax: number;
10219
+ /**
10220
+ * Average read IOPS.
10221
+ */
10222
+ iopsRead: number;
10223
+ /**
10224
+ * Average write IOPS.
10225
+ */
10226
+ iopsWrite: number;
10227
+ /**
10228
+ * Queries per second.
10229
+ */
10230
+ qps: number;
10231
+ };
10232
+ /**
10233
+ * DedicatedDatabase
10234
+ */
10235
+ export type DedicatedDatabase = {
10236
+ /**
10237
+ * Dedicated database ID.
10238
+ */
10239
+ $id: string;
10240
+ /**
10241
+ * Database creation time in ISO 8601 format.
10242
+ */
10243
+ $createdAt: string;
10244
+ /**
10245
+ * Database update date in ISO 8601 format.
10246
+ */
10247
+ $updatedAt: string;
10248
+ /**
10249
+ * Project ID that owns this database.
10250
+ */
10251
+ projectId: string;
10252
+ /**
10253
+ * Database display name.
10254
+ */
10255
+ name: string;
10256
+ /**
10257
+ * Database type: shared (serverless) or dedicated (always-on).
10258
+ */
10259
+ type: string;
10260
+ /**
10261
+ * Product API that owns this database: compute, documentsdb, or vectorsdb.
10262
+ */
10263
+ api: string;
10264
+ /**
10265
+ * Region identifier (e.g., fra, nyc, syd).
10266
+ */
10267
+ region: string;
10268
+ /**
10269
+ * Database engine: postgres, mysql, mariadb, or mongodb.
10270
+ */
10271
+ engine: string;
10272
+ /**
10273
+ * Database engine version.
10274
+ */
10275
+ version: string;
10276
+ /**
10277
+ * Specification identifier.
10278
+ */
10279
+ specification: string;
10280
+ /**
10281
+ * Database backend provider. Possible values: prisma, edge.
10282
+ */
10283
+ backend: string;
10284
+ /**
10285
+ * Database hostname for connections.
10286
+ */
10287
+ hostname: string;
10288
+ /**
10289
+ * Database port for connections.
10290
+ */
10291
+ connectionPort: number;
10292
+ /**
10293
+ * Database username for connections.
10294
+ */
10295
+ connectionUser: string;
10296
+ /**
10297
+ * Database password for connections.
10298
+ */
10299
+ connectionPassword: string;
10300
+ /**
10301
+ * Full database connection string (URI format).
10302
+ */
10303
+ connectionString: string;
10304
+ /**
10305
+ * Database status. Possible values: provisioning, ready, inactive, paused, failed, deleted, restoring, scaling.
10306
+ */
10307
+ status: string;
10308
+ /**
10309
+ * Container status for shared databases: active or inactive.
10310
+ */
10311
+ containerStatus: string;
10312
+ /**
10313
+ * Last activity timestamp in ISO 8601 format.
10314
+ */
10315
+ lastAccessedAt: string;
10316
+ /**
10317
+ * Timestamp when container will be considered idle and scale to zero (ISO 8601 format).
10318
+ */
10319
+ idleUntil: string;
10320
+ /**
10321
+ * Minutes of inactivity before container scales to zero.
10322
+ */
10323
+ idleTimeoutMinutes: number;
10324
+ /**
10325
+ * CPU allocated in millicores.
10326
+ */
10327
+ cpu: number;
10328
+ /**
10329
+ * Memory allocated in MB.
10330
+ */
10331
+ memory: number;
10332
+ /**
10333
+ * Storage allocated in GB.
10334
+ */
10335
+ storage: number;
10336
+ /**
10337
+ * Storage class: ssd, nvme, or hdd.
10338
+ */
10339
+ storageClass: string;
10340
+ /**
10341
+ * Maximum storage allowed in GB. 0 means use system default.
10342
+ */
10343
+ storageMaxGb: number;
10344
+ /**
10345
+ * Kubernetes node pool where the database is scheduled.
10346
+ */
10347
+ nodePool: string;
10348
+ /**
10349
+ * Whether high availability is enabled.
10350
+ */
10351
+ highAvailability: boolean;
10352
+ /**
10353
+ * Number of high availability replicas.
10354
+ */
10355
+ highAvailabilityReplicaCount: number;
10356
+ /**
10357
+ * Replication sync mode: async, sync, or quorum.
10358
+ */
10359
+ highAvailabilitySyncMode: string;
10360
+ /**
10361
+ * Maximum concurrent connections.
10362
+ */
10363
+ networkMaxConnections: number;
10364
+ /**
10365
+ * Connection idle timeout in seconds.
10366
+ */
10367
+ networkIdleTimeoutSeconds: number;
10368
+ /**
10369
+ * IP addresses/CIDR ranges allowed to connect.
10370
+ */
10371
+ networkIPAllowlist: string[];
10372
+ /**
10373
+ * Whether automatic backups are enabled.
10374
+ */
10375
+ backupEnabled: boolean;
10376
+ /**
10377
+ * Whether point-in-time recovery is enabled.
10378
+ */
10379
+ backupPitr: boolean;
10380
+ /**
10381
+ * Backup schedule in cron format.
10382
+ */
10383
+ backupCron: string;
10384
+ /**
10385
+ * Number of days to retain backups.
10386
+ */
10387
+ backupRetentionDays: number;
10388
+ /**
10389
+ * Number of days to retain PITR data.
10390
+ */
10391
+ pitrRetentionDays: number;
10392
+ /**
10393
+ * Whether automatic storage expansion is enabled.
10394
+ */
10395
+ storageAutoscaling: boolean;
10396
+ /**
10397
+ * Storage usage percentage that triggers automatic expansion.
10398
+ */
10399
+ storageAutoscalingThresholdPercent: number;
10400
+ /**
10401
+ * Maximum storage size in GB for autoscaling. 0 means no limit.
10402
+ */
10403
+ storageAutoscalingMaxGb: number;
10404
+ /**
10405
+ * Day of the week for the maintenance window. Possible values: sun, mon, tue, wed, thu, fri, sat.
10406
+ */
10407
+ maintenanceWindowDay: string;
10408
+ /**
10409
+ * Hour in UTC (0-23) when the maintenance window starts.
10410
+ */
10411
+ maintenanceWindowHourUtc: number;
10412
+ /**
10413
+ * Whether metrics collection is enabled.
10414
+ */
10415
+ metricsEnabled: boolean;
10416
+ /**
10417
+ * Whether the SQL API sidecar is enabled for this database.
10418
+ */
10419
+ sqlApiEnabled: boolean;
10420
+ /**
10421
+ * Statement types accepted by the SQL API. Allowed values: SELECT, INSERT, UPDATE, DELETE.
10422
+ */
10423
+ sqlApiAllowedStatements: string[];
10424
+ /**
10425
+ * Maximum rows returned per SQL API execution. Results larger than this are truncated.
10426
+ */
10427
+ sqlApiMaxRows: number;
10428
+ /**
10429
+ * Maximum serialised SQL API result payload in bytes. Results larger than this are truncated.
10430
+ */
10431
+ sqlApiMaxBytes: number;
10432
+ /**
10433
+ * Maximum server-side SQL API execution time in seconds before the query is cancelled.
10434
+ */
10435
+ sqlApiTimeoutSeconds: number;
10436
+ /**
10437
+ * Error message if status is failed.
10438
+ */
10439
+ error: string;
10440
+ };
10441
+ /**
10442
+ * Execution
10443
+ */
10444
+ export type DedicatedDatabaseExecution = {
10445
+ /**
10446
+ * Result rows as a list of column-name => value maps. Empty for non-returning statements.
10447
+ */
10448
+ rows: object;
10449
+ /**
10450
+ * Number of rows returned (for SELECT) or affected (for INSERT/UPDATE/DELETE).
10451
+ */
10452
+ rowCount: number;
10453
+ /**
10454
+ * Column metadata in result-set order.
10455
+ */
10456
+ columns: DedicatedDatabaseExecutionColumn[];
10457
+ /**
10458
+ * Server-side execution time in milliseconds.
10459
+ */
10460
+ durationMs: number;
10461
+ /**
10462
+ * True when the configured row or byte cap was hit and the result was truncated.
10463
+ */
10464
+ truncated: boolean;
10465
+ /**
10466
+ * Serialised payload size in bytes.
10467
+ */
10468
+ bytes: number;
10469
+ };
10470
+ /**
10471
+ * ExecutionColumn
10472
+ */
10473
+ export type DedicatedDatabaseExecutionColumn = {
10474
+ /**
10475
+ * Column name as returned by the database.
10476
+ */
10477
+ name: string;
10478
+ /**
10479
+ * Engine-specific column type (e.g. int4, text, timestamptz).
10480
+ */
10481
+ type: string;
10482
+ };
10483
+ /**
10484
+ * Restoration
10485
+ */
10486
+ export type DedicatedDatabaseRestoration = {
10487
+ /**
10488
+ * Restoration ID.
10489
+ */
10490
+ $id: string;
10491
+ /**
10492
+ * Restoration creation time in ISO 8601 format.
10493
+ */
10494
+ $createdAt: string;
10495
+ /**
10496
+ * Database ID being restored.
10497
+ */
10498
+ databaseId: string;
10499
+ /**
10500
+ * Project ID.
10501
+ */
10502
+ projectId: string;
10503
+ /**
10504
+ * Backup ID used for restoration (null for PITR).
10505
+ */
10506
+ backupId: string;
10507
+ /**
10508
+ * Restoration type. Possible values: backup (restore from a specific backup snapshot), pitr (point-in-time recovery to a specific timestamp).
10509
+ */
10510
+ type: string;
10511
+ /**
10512
+ * Restoration status. Possible values: pending (queued for processing), running (currently in progress), completed (successfully finished), failed (encountered an error).
10513
+ */
10514
+ status: string;
10515
+ /**
10516
+ * Target time for PITR restoration in ISO 8601 format.
10517
+ */
10518
+ targetTime: string;
10519
+ /**
10520
+ * Restoration start time in ISO 8601 format.
10521
+ */
10522
+ startedAt: string;
10523
+ /**
10524
+ * Restoration completion time in ISO 8601 format.
10525
+ */
10526
+ completedAt: string;
10527
+ /**
10528
+ * Error message if restoration failed.
10529
+ */
10530
+ error: string;
10531
+ };
10532
+ /**
10533
+ * Status
10534
+ */
10535
+ export type DatabaseStatus = {
10536
+ /**
10537
+ * Overall health status: healthy, degraded, or unhealthy.
10538
+ */
10539
+ health: string;
10540
+ /**
10541
+ * Whether the database is ready to accept connections.
10542
+ */
10543
+ ready: boolean;
10544
+ /**
10545
+ * Database engine: postgres, mysql, mariadb, or mongodb.
10546
+ */
10547
+ engine: string;
10548
+ /**
10549
+ * Database engine version.
10550
+ */
10551
+ version: string;
10552
+ /**
10553
+ * Database uptime in seconds.
10554
+ */
10555
+ uptime: number;
10556
+ /**
10557
+ * Connection statistics.
10558
+ */
10559
+ connections: DatabaseStatusConnections;
10560
+ /**
10561
+ * List of database replicas and their status.
10562
+ */
10563
+ replicas: DatabaseStatusReplica[];
10564
+ /**
10565
+ * Storage volume information.
10566
+ */
10567
+ volumes: DatabaseStatusVolume[];
10568
+ };
9698
10569
  /**
9699
10570
  * DNSRecord
9700
10571
  */
@@ -10096,6 +10967,61 @@ export declare namespace Models {
10096
10967
  */
10097
10968
  organizationCredits: number;
10098
10969
  };
10970
+ /**
10971
+ * Extensions
10972
+ */
10973
+ export type DedicatedDatabaseExtensions = {
10974
+ /**
10975
+ * List of installed extensions.
10976
+ */
10977
+ installed: string[];
10978
+ /**
10979
+ * List of available extensions that can be installed.
10980
+ */
10981
+ available: string[];
10982
+ };
10983
+ /**
10984
+ * HAReplica
10985
+ */
10986
+ export type DedicatedDatabaseHAReplica = {
10987
+ /**
10988
+ * Replica identifier.
10989
+ */
10990
+ $id: string;
10991
+ /**
10992
+ * Replica role. Possible values: primary (accepts reads and writes), replica (read-only follower).
10993
+ */
10994
+ role: string;
10995
+ /**
10996
+ * Replica health status. Possible values: healthy (fully synced), degraded (lagging behind primary), unhealthy (replication broken or unreachable).
10997
+ */
10998
+ status: string;
10999
+ /**
11000
+ * Replication lag in seconds.
11001
+ */
11002
+ lagSeconds: number;
11003
+ };
11004
+ /**
11005
+ * HAStatus
11006
+ */
11007
+ export type DedicatedDatabaseHAStatus = {
11008
+ /**
11009
+ * Whether high availability is enabled.
11010
+ */
11011
+ enabled: boolean;
11012
+ /**
11013
+ * Number of configured replicas.
11014
+ */
11015
+ replicaCount: number;
11016
+ /**
11017
+ * Replication sync mode. Possible values: async (asynchronous, fastest), sync (synchronous, strong consistency), quorum (quorum-based, majority of replicas must confirm).
11018
+ */
11019
+ syncMode: string;
11020
+ /**
11021
+ * List of replica statuses.
11022
+ */
11023
+ replicas: DedicatedDatabaseHAReplica[];
11024
+ };
10099
11025
  /**
10100
11026
  * Invoice
10101
11027
  */
@@ -10448,6 +11374,90 @@ export declare namespace Models {
10448
11374
  */
10449
11375
  failed: boolean;
10450
11376
  };
11377
+ /**
11378
+ * PerformanceInsights
11379
+ */
11380
+ export type DedicatedDatabasePerformanceInsights = {
11381
+ /**
11382
+ * Top queries by total execution time.
11383
+ */
11384
+ topQueries: DedicatedDatabasePerformanceInsightsQuery[];
11385
+ /**
11386
+ * Active wait events.
11387
+ */
11388
+ waitEvents: DedicatedDatabasePerformanceInsightsWaitEvent[];
11389
+ /**
11390
+ * Total number of query calls.
11391
+ */
11392
+ totalCalls: number;
11393
+ /**
11394
+ * Total query execution time in milliseconds.
11395
+ */
11396
+ totalTimeMs: number;
11397
+ /**
11398
+ * Average query execution time in milliseconds.
11399
+ */
11400
+ avgTimeMs: number;
11401
+ };
11402
+ /**
11403
+ * PerformanceInsightsQuery
11404
+ */
11405
+ export type DedicatedDatabasePerformanceInsightsQuery = {
11406
+ /**
11407
+ * The SQL query text.
11408
+ */
11409
+ query: string;
11410
+ /**
11411
+ * Number of times this query has been executed.
11412
+ */
11413
+ calls: number;
11414
+ /**
11415
+ * Total execution time in milliseconds.
11416
+ */
11417
+ totalTimeMs: number;
11418
+ /**
11419
+ * Mean execution time in milliseconds.
11420
+ */
11421
+ meanTimeMs: number;
11422
+ /**
11423
+ * Total rows returned or affected.
11424
+ */
11425
+ rows: number;
11426
+ };
11427
+ /**
11428
+ * PerformanceInsightsWaitEvent
11429
+ */
11430
+ export type DedicatedDatabasePerformanceInsightsWaitEvent = {
11431
+ /**
11432
+ * Wait event name.
11433
+ */
11434
+ event: string;
11435
+ /**
11436
+ * Wait event type or category.
11437
+ */
11438
+ type: string;
11439
+ /**
11440
+ * Number of occurrences.
11441
+ */
11442
+ count: number;
11443
+ /**
11444
+ * Total wait time in milliseconds.
11445
+ */
11446
+ totalWaitMs: number;
11447
+ };
11448
+ /**
11449
+ * PITRWindows
11450
+ */
11451
+ export type DedicatedDatabasePITRWindows = {
11452
+ /**
11453
+ * Earliest available recovery point.
11454
+ */
11455
+ earliest: string;
11456
+ /**
11457
+ * Latest available recovery point.
11458
+ */
11459
+ latest: string;
11460
+ };
10451
11461
  /**
10452
11462
  * PlanChangeEstimationDetails
10453
11463
  */
@@ -10609,13 +11619,97 @@ export declare namespace Models {
10609
11619
  */
10610
11620
  retention: number;
10611
11621
  /**
10612
- * Policy backup schedule in CRON format.
11622
+ * Policy backup schedule in CRON format.
11623
+ */
11624
+ schedule: string;
11625
+ /**
11626
+ * Is this policy enabled.
11627
+ */
11628
+ enabled: boolean;
11629
+ };
11630
+ /**
11631
+ * Policy Deny Aliased Email
11632
+ */
11633
+ export type PolicyDenyAliasedEmail = {
11634
+ /**
11635
+ * Policy ID.
11636
+ */
11637
+ $id: string;
11638
+ /**
11639
+ * Whether the deny aliased email policy is enabled.
11640
+ */
11641
+ enabled: boolean;
11642
+ };
11643
+ /**
11644
+ * Policy Deny Disposable Email
11645
+ */
11646
+ export type PolicyDenyDisposableEmail = {
11647
+ /**
11648
+ * Policy ID.
11649
+ */
11650
+ $id: string;
11651
+ /**
11652
+ * Whether the deny disposable email policy is enabled.
11653
+ */
11654
+ enabled: boolean;
11655
+ };
11656
+ /**
11657
+ * Policy Deny Free Email
11658
+ */
11659
+ export type PolicyDenyFreeEmail = {
11660
+ /**
11661
+ * Policy ID.
11662
+ */
11663
+ $id: string;
11664
+ /**
11665
+ * Whether the deny free email policy is enabled.
11666
+ */
11667
+ enabled: boolean;
11668
+ };
11669
+ /**
11670
+ * PoolerConfig
11671
+ */
11672
+ export type DedicatedDatabasePooler = {
11673
+ /**
11674
+ * Whether connection pooling is enabled.
11675
+ */
11676
+ enabled: boolean;
11677
+ /**
11678
+ * Connection pool mode. Possible values: transaction (releases connections back to pool after each transaction), session (holds connections for the entire client session).
11679
+ */
11680
+ mode: string;
11681
+ /**
11682
+ * Maximum number of pooled connections.
11683
+ */
11684
+ maxConnections: number;
11685
+ /**
11686
+ * Default pool size per user.
11687
+ */
11688
+ defaultPoolSize: number;
11689
+ /**
11690
+ * Pooler listening port.
11691
+ */
11692
+ port: number;
11693
+ /**
11694
+ * Whether SELECTs are routed to HA replicas while writes and locked reads stay on the primary. Active only when HA is enabled.
11695
+ */
11696
+ readWriteSplitting: boolean;
11697
+ /**
11698
+ * Effective CPU request applied to the pooler sidecar container (Kubernetes quantity). Returns the proportional default (5% of DB CPU, floor 100m) unless overridden.
11699
+ */
11700
+ poolerCpuRequest: string;
11701
+ /**
11702
+ * Effective CPU limit applied to the pooler sidecar container (Kubernetes quantity). Returns the proportional default (10% of DB CPU, floor 200m) unless overridden.
11703
+ */
11704
+ poolerCpuLimit: string;
11705
+ /**
11706
+ * Effective memory request applied to the pooler sidecar container (Kubernetes quantity). Returns the proportional default (7.5% of DB memory, floor 64Mi) unless overridden.
10613
11707
  */
10614
- schedule: string;
11708
+ poolerMemoryRequest: string;
10615
11709
  /**
10616
- * Is this policy enabled.
11710
+ * Effective memory limit applied to the pooler sidecar container (Kubernetes quantity). Returns the proportional default (15% of DB memory, floor 128Mi) unless overridden.
10617
11711
  */
10618
- enabled: boolean;
11712
+ poolerMemoryLimit: string;
10619
11713
  };
10620
11714
  /**
10621
11715
  * Program
@@ -10658,6 +11752,19 @@ export declare namespace Models {
10658
11752
  */
10659
11753
  billingPlanId: string;
10660
11754
  };
11755
+ /**
11756
+ * QueryExplanation
11757
+ */
11758
+ export type DedicatedDatabaseQueryExplanation = {
11759
+ /**
11760
+ * Structured query execution plan. Contents are engine-specific.
11761
+ */
11762
+ plan: Record<string, any>[];
11763
+ /**
11764
+ * Raw EXPLAIN output from the database engine.
11765
+ */
11766
+ raw: string;
11767
+ };
10661
11768
  /**
10662
11769
  * Region
10663
11770
  */
@@ -10736,6 +11843,19 @@ export declare namespace Models {
10736
11843
  */
10737
11844
  options: string;
10738
11845
  };
11846
+ /**
11847
+ * Dedicated database restorations list
11848
+ */
11849
+ export type DedicatedDatabaseRestorationList = {
11850
+ /**
11851
+ * Total number of restorations that matched your query.
11852
+ */
11853
+ total: number;
11854
+ /**
11855
+ * List of restorations.
11856
+ */
11857
+ restorations: DedicatedDatabaseRestoration[];
11858
+ };
10739
11859
  /**
10740
11860
  * Review
10741
11861
  */
@@ -10770,6 +11890,203 @@ export declare namespace Models {
10770
11890
  */
10771
11891
  roles: string[];
10772
11892
  };
11893
+ /**
11894
+ * Schema
11895
+ */
11896
+ export type DedicatedDatabaseSchema = {
11897
+ /**
11898
+ * List of tables with columns, types, and constraints.
11899
+ */
11900
+ tables: Record<string, any>[];
11901
+ /**
11902
+ * List of indexes across all tables.
11903
+ */
11904
+ indexes: Record<string, any>[];
11905
+ };
11906
+ /**
11907
+ * SchemaPreview
11908
+ */
11909
+ export type DedicatedDatabaseSchemaPreview = {
11910
+ /**
11911
+ * Whether the engine supports transactional DDL for safe preview.
11912
+ */
11913
+ supportsTransactionalDDL: boolean;
11914
+ /**
11915
+ * Schema change preview output.
11916
+ */
11917
+ preview: string;
11918
+ /**
11919
+ * List of tables in the database after the change.
11920
+ */
11921
+ tables: string[];
11922
+ };
11923
+ /**
11924
+ * SlowQuery
11925
+ */
11926
+ export type DedicatedDatabaseSlowQuery = {
11927
+ /**
11928
+ * The SQL query text.
11929
+ */
11930
+ query: string;
11931
+ /**
11932
+ * Query duration in milliseconds.
11933
+ */
11934
+ durationMs: number;
11935
+ /**
11936
+ * Number of times this query has been executed.
11937
+ */
11938
+ calls: number;
11939
+ /**
11940
+ * Database user that executed the query.
11941
+ */
11942
+ user: string;
11943
+ /**
11944
+ * Database name.
11945
+ */
11946
+ database: string;
11947
+ };
11948
+ /**
11949
+ * Specification
11950
+ */
11951
+ export type DedicatedDatabaseSpecification = {
11952
+ /**
11953
+ * Specification slug. Use this value when creating a dedicated database.
11954
+ */
11955
+ slug: string;
11956
+ /**
11957
+ * Human readable specification name.
11958
+ */
11959
+ name: string;
11960
+ /**
11961
+ * Monthly price of the specification in USD.
11962
+ */
11963
+ price: number;
11964
+ /**
11965
+ * Allocated CPU in millicores.
11966
+ */
11967
+ cpu: number;
11968
+ /**
11969
+ * Allocated memory in MB.
11970
+ */
11971
+ memory: number;
11972
+ /**
11973
+ * Maximum number of concurrent connections.
11974
+ */
11975
+ maxConnections: number;
11976
+ /**
11977
+ * Included storage in GB before overage charges apply.
11978
+ */
11979
+ includedStorage: number;
11980
+ /**
11981
+ * Included bandwidth in GB before overage charges apply.
11982
+ */
11983
+ includedBandwidth: number;
11984
+ /**
11985
+ * Whether the specification is available on the current plan.
11986
+ */
11987
+ enabled: boolean;
11988
+ };
11989
+ /**
11990
+ * SpecificationList
11991
+ */
11992
+ export type DedicatedDatabaseSpecificationList = {
11993
+ /**
11994
+ * List of dedicated database specifications.
11995
+ */
11996
+ specifications: DedicatedDatabaseSpecification[];
11997
+ /**
11998
+ * Total number of specifications.
11999
+ */
12000
+ total: number;
12001
+ /**
12002
+ * Overage and add-on pricing shared across all specifications.
12003
+ */
12004
+ pricing: DedicatedDatabaseSpecificationPricing;
12005
+ };
12006
+ /**
12007
+ * SpecificationPricing
12008
+ */
12009
+ export type DedicatedDatabaseSpecificationPricing = {
12010
+ /**
12011
+ * Price per GB of storage above the included amount, per month, in USD.
12012
+ */
12013
+ storageOverageRate: number;
12014
+ /**
12015
+ * Price per GB of bandwidth above the included amount, per month, in USD.
12016
+ */
12017
+ bandwidthOverageRate: number;
12018
+ /**
12019
+ * High availability replica price as a fraction of the specification cost.
12020
+ */
12021
+ haReplicaRate: number;
12022
+ /**
12023
+ * Cross-region replica price as a fraction of the specification cost.
12024
+ */
12025
+ crossRegionReplicaRate: number;
12026
+ /**
12027
+ * Cross-region transfer price as a fraction of the specification cost.
12028
+ */
12029
+ crossRegionRate: number;
12030
+ /**
12031
+ * Point-in-time recovery price as a fraction of the specification cost.
12032
+ */
12033
+ pitrRate: number;
12034
+ };
12035
+ /**
12036
+ * Connections
12037
+ */
12038
+ export type DatabaseStatusConnections = {
12039
+ /**
12040
+ * Current number of active connections.
12041
+ */
12042
+ current: number;
12043
+ /**
12044
+ * Maximum allowed connections.
12045
+ */
12046
+ max: number;
12047
+ };
12048
+ /**
12049
+ * Replica
12050
+ */
12051
+ export type DatabaseStatusReplica = {
12052
+ /**
12053
+ * StatefulSet pod index (0 = primary, 1+ = replicas).
12054
+ */
12055
+ index: number;
12056
+ /**
12057
+ * Replica role: primary or replica.
12058
+ */
12059
+ role: string;
12060
+ /**
12061
+ * Whether the replica is healthy.
12062
+ */
12063
+ healthy: boolean;
12064
+ /**
12065
+ * Replication lag in seconds (null for primary).
12066
+ */
12067
+ lagSeconds?: number;
12068
+ };
12069
+ /**
12070
+ * Volume
12071
+ */
12072
+ export type DatabaseStatusVolume = {
12073
+ /**
12074
+ * Mount path of the volume.
12075
+ */
12076
+ path: string;
12077
+ /**
12078
+ * Percentage of storage used.
12079
+ */
12080
+ usedPercent: string;
12081
+ /**
12082
+ * Available storage space.
12083
+ */
12084
+ available: string;
12085
+ /**
12086
+ * Whether the volume is mounted.
12087
+ */
12088
+ mounted: boolean;
12089
+ };
10773
12090
  /**
10774
12091
  * usageBillingPlan
10775
12092
  */
@@ -11140,6 +12457,129 @@ export declare namespace Models {
11140
12457
  */
11141
12458
  resourceId: string;
11142
12459
  };
12460
+ /**
12461
+ * App
12462
+ */
12463
+ export type App = {
12464
+ /**
12465
+ * App ID.
12466
+ */
12467
+ $id: string;
12468
+ /**
12469
+ * App creation time in ISO 8601 format.
12470
+ */
12471
+ $createdAt: string;
12472
+ /**
12473
+ * App update date in ISO 8601 format.
12474
+ */
12475
+ $updatedAt: string;
12476
+ /**
12477
+ * Application name.
12478
+ */
12479
+ name: string;
12480
+ /**
12481
+ * List of authorized redirect URIs. These URIs can be used to redirect users after they authenticate.
12482
+ */
12483
+ redirectUris: string[];
12484
+ /**
12485
+ * When true, the application is restricted to the owner user (if `userId` is set) or members of `teamId` (if set). When false, any user in the project can authorize against the app.
12486
+ */
12487
+ internal: boolean;
12488
+ /**
12489
+ * Whether the app is enabled or not.
12490
+ */
12491
+ enabled: boolean;
12492
+ /**
12493
+ * OAuth2 client type. `public` for SPAs, mobile, and native apps that cannot keep a client secret (PKCE required); `confidential` for server-side clients that authenticate with a client secret.
12494
+ */
12495
+ type: string;
12496
+ /**
12497
+ * ID of team that owns the application, if owned by team. Otherwise, user ID will be used.
12498
+ */
12499
+ teamId: string;
12500
+ /**
12501
+ * ID of user who owns the application, if owned by user. Otherwise, team ID will be used.
12502
+ */
12503
+ userId: string;
12504
+ /**
12505
+ * List of application secrets.
12506
+ */
12507
+ secrets: AppSecret[];
12508
+ };
12509
+ /**
12510
+ * AppSecret
12511
+ */
12512
+ export type AppSecret = {
12513
+ /**
12514
+ * Secret ID.
12515
+ */
12516
+ $id: string;
12517
+ /**
12518
+ * Secret creation time in ISO 8601 format.
12519
+ */
12520
+ $createdAt: string;
12521
+ /**
12522
+ * Secret update time in ISO 8601 format.
12523
+ */
12524
+ $updatedAt: string;
12525
+ /**
12526
+ * Application ID this secret belongs to.
12527
+ */
12528
+ appId: string;
12529
+ /**
12530
+ * Masked application client secret. Only the last 6 characters are returned.
12531
+ */
12532
+ secret: string;
12533
+ /**
12534
+ * ID of the user who created the secret.
12535
+ */
12536
+ createdById: string;
12537
+ /**
12538
+ * Name of the user who created the secret.
12539
+ */
12540
+ createdByName: string;
12541
+ /**
12542
+ * Time the secret was last used for authentication in ISO 8601 format. Null if never used.
12543
+ */
12544
+ lastAccessedAt?: string;
12545
+ };
12546
+ /**
12547
+ * AppSecretPlaintext
12548
+ */
12549
+ export type AppSecretPlaintext = {
12550
+ /**
12551
+ * Secret ID.
12552
+ */
12553
+ $id: string;
12554
+ /**
12555
+ * Secret creation time in ISO 8601 format.
12556
+ */
12557
+ $createdAt: string;
12558
+ /**
12559
+ * Secret update time in ISO 8601 format.
12560
+ */
12561
+ $updatedAt: string;
12562
+ /**
12563
+ * Application ID this secret belongs to.
12564
+ */
12565
+ appId: string;
12566
+ /**
12567
+ * Application client secret. Returned in full only when the secret is created; subsequent reads return a masked value.
12568
+ */
12569
+ secret: string;
12570
+ /**
12571
+ * ID of the user who created the secret.
12572
+ */
12573
+ createdById: string;
12574
+ /**
12575
+ * Name of the user who created the secret.
12576
+ */
12577
+ createdByName: string;
12578
+ /**
12579
+ * Time the secret was last used for authentication in ISO 8601 format. Null if never used.
12580
+ */
12581
+ lastAccessedAt?: string;
12582
+ };
11143
12583
  /**
11144
12584
  * Activity event list
11145
12585
  */
@@ -11270,6 +12710,45 @@ export declare namespace Models {
11270
12710
  */
11271
12711
  blocks: Block[];
11272
12712
  };
12713
+ /**
12714
+ * Dedicated database connections list
12715
+ */
12716
+ export type DedicatedDatabaseConnectionList = {
12717
+ /**
12718
+ * Total number of connections that matched your query.
12719
+ */
12720
+ total: number;
12721
+ /**
12722
+ * List of connections.
12723
+ */
12724
+ connections: DedicatedDatabaseConnection[];
12725
+ };
12726
+ /**
12727
+ * Dedicated database slow queries list
12728
+ */
12729
+ export type DedicatedDatabaseSlowQueryList = {
12730
+ /**
12731
+ * Total number of slowQueries that matched your query.
12732
+ */
12733
+ total: number;
12734
+ /**
12735
+ * List of slowQueries.
12736
+ */
12737
+ slowQueries: DedicatedDatabaseSlowQuery[];
12738
+ };
12739
+ /**
12740
+ * Dedicated databases list
12741
+ */
12742
+ export type DedicatedDatabaseList = {
12743
+ /**
12744
+ * Total number of databases that matched your query.
12745
+ */
12746
+ total: number;
12747
+ /**
12748
+ * List of databases.
12749
+ */
12750
+ databases: DedicatedDatabase[];
12751
+ };
11273
12752
  /**
11274
12753
  * DNS records list
11275
12754
  */
@@ -11374,5 +12853,31 @@ export declare namespace Models {
11374
12853
  */
11375
12854
  gauges: UsageGauge[];
11376
12855
  };
12856
+ /**
12857
+ * Apps list
12858
+ */
12859
+ export type AppsList = {
12860
+ /**
12861
+ * Total number of apps that matched your query.
12862
+ */
12863
+ total: number;
12864
+ /**
12865
+ * List of apps.
12866
+ */
12867
+ apps: App[];
12868
+ };
12869
+ /**
12870
+ * App secrets list
12871
+ */
12872
+ export type AppSecretList = {
12873
+ /**
12874
+ * Total number of secrets that matched your query.
12875
+ */
12876
+ total: number;
12877
+ /**
12878
+ * List of secrets.
12879
+ */
12880
+ secrets: AppSecret[];
12881
+ };
11377
12882
  export {};
11378
12883
  }