@appwrite.io/console 15.7.0 → 16.0.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.
package/types/models.d.ts CHANGED
@@ -880,7 +880,7 @@ export declare namespace Models {
880
880
  */
881
881
  status?: DatabaseStatus;
882
882
  /**
883
- * Underlying engine of the dedicated backing: postgresql, mysql, mariadb, or mongodb. A managed product (tablesdb, documentsdb, vectorsdb) reports the engine it runs on, so its type and engine can differ. Null when the database has no dedicated backing.
883
+ * Underlying engine of the dedicated backing: postgresql, mysql, or mongodb. A managed product (tablesdb, documentsdb, vectorsdb) reports the engine it runs on, so its type and engine can differ. Null when the database has no dedicated backing.
884
884
  */
885
885
  engine?: string;
886
886
  /**
@@ -7123,35 +7123,35 @@ export declare namespace Models {
7123
7123
  /**
7124
7124
  * Aggregated number of text embedding calls per period.
7125
7125
  */
7126
- embeddingsText: Metric;
7126
+ embeddingsText: Metric[];
7127
7127
  /**
7128
7128
  * Aggregated number of tokens processed by text embeddings per period.
7129
7129
  */
7130
- embeddingsTextTokens: Metric;
7130
+ embeddingsTextTokens: Metric[];
7131
7131
  /**
7132
7132
  * Aggregated duration spent generating text embeddings per period.
7133
7133
  */
7134
- embeddingsTextDuration: Metric;
7134
+ embeddingsTextDuration: Metric[];
7135
7135
  /**
7136
7136
  * Aggregated number of errors while generating text embeddings per period.
7137
7137
  */
7138
- embeddingsTextErrors: Metric;
7138
+ embeddingsTextErrors: Metric[];
7139
7139
  /**
7140
7140
  * Total aggregated number of text embedding calls.
7141
7141
  */
7142
- embeddingsTextTotal: Metric;
7142
+ embeddingsTextTotal: number;
7143
7143
  /**
7144
7144
  * Total aggregated number of tokens processed by text.
7145
7145
  */
7146
- embeddingsTextTokensTotal: Metric;
7146
+ embeddingsTextTokensTotal: number;
7147
7147
  /**
7148
7148
  * Total aggregated duration spent generating text embeddings.
7149
7149
  */
7150
- embeddingsTextDurationTotal: Metric;
7150
+ embeddingsTextDurationTotal: number;
7151
7151
  /**
7152
7152
  * Total aggregated number of errors while generating text embeddings.
7153
7153
  */
7154
- embeddingsTextErrorsTotal: Metric;
7154
+ embeddingsTextErrorsTotal: number;
7155
7155
  /**
7156
7156
  * Aggregated number of function executions per period.
7157
7157
  */
@@ -8512,6 +8512,164 @@ export declare namespace Models {
8512
8512
  */
8513
8513
  billingCycleEnd: string;
8514
8514
  };
8515
+ /**
8516
+ * AffiliateLink
8517
+ */
8518
+ export type AffiliateLink = {
8519
+ /**
8520
+ * Link ID. This is the shareable referral code.
8521
+ */
8522
+ $id: string;
8523
+ /**
8524
+ * Link creation date in ISO 8601 format.
8525
+ */
8526
+ $createdAt: string;
8527
+ /**
8528
+ * Link update date in ISO 8601 format.
8529
+ */
8530
+ $updatedAt: string;
8531
+ /**
8532
+ * User ID of the link owner.
8533
+ */
8534
+ userId: string;
8535
+ /**
8536
+ * Optional link name.
8537
+ */
8538
+ name: string;
8539
+ /**
8540
+ * Link status. Can be one of `active` or `disabled`.
8541
+ */
8542
+ status: string;
8543
+ };
8544
+ /**
8545
+ * Affiliate links list
8546
+ */
8547
+ export type AffiliateLinkList = {
8548
+ /**
8549
+ * Total number of links that matched your query.
8550
+ */
8551
+ total: number;
8552
+ /**
8553
+ * List of links.
8554
+ */
8555
+ links: AffiliateLink[];
8556
+ };
8557
+ /**
8558
+ * AffiliateReferral
8559
+ */
8560
+ export type AffiliateReferral = {
8561
+ /**
8562
+ * Referral ID.
8563
+ */
8564
+ $id: string;
8565
+ /**
8566
+ * Referral creation date in ISO 8601 format.
8567
+ */
8568
+ $createdAt: string;
8569
+ /**
8570
+ * Referral update date in ISO 8601 format.
8571
+ */
8572
+ $updatedAt: string;
8573
+ /**
8574
+ * Affiliate link ID used for attribution.
8575
+ */
8576
+ linkId: string;
8577
+ /**
8578
+ * Privacy-safe truncated referred user ID.
8579
+ */
8580
+ referredUserMaskedId: string;
8581
+ /**
8582
+ * ISO 3166-1 alpha-2 country code of the referred user at signup, when available.
8583
+ */
8584
+ referredUserCountry: string;
8585
+ /**
8586
+ * Referral status. Can be one of `pending`, `converted`, or `expired`. `expired` is derived from `expiresAt` when still pending.
8587
+ */
8588
+ status: string;
8589
+ /**
8590
+ * Attribution time in ISO 8601 format.
8591
+ */
8592
+ attributedAt: string;
8593
+ /**
8594
+ * Attribution expiry time in ISO 8601 format.
8595
+ */
8596
+ expiresAt: string;
8597
+ /**
8598
+ * Conversion time in ISO 8601 format.
8599
+ */
8600
+ convertedAt?: string;
8601
+ };
8602
+ /**
8603
+ * Affiliate referrals list
8604
+ */
8605
+ export type AffiliateReferralList = {
8606
+ /**
8607
+ * Total number of referrals that matched your query.
8608
+ */
8609
+ total: number;
8610
+ /**
8611
+ * List of referrals.
8612
+ */
8613
+ referrals: AffiliateReferral[];
8614
+ };
8615
+ /**
8616
+ * AffiliateReward
8617
+ */
8618
+ export type AffiliateReward = {
8619
+ /**
8620
+ * Reward ID.
8621
+ */
8622
+ $id: string;
8623
+ /**
8624
+ * Reward creation date in ISO 8601 format.
8625
+ */
8626
+ $createdAt: string;
8627
+ /**
8628
+ * Reward update date in ISO 8601 format.
8629
+ */
8630
+ $updatedAt: string;
8631
+ /**
8632
+ * User ID of the reward owner.
8633
+ */
8634
+ userId: string;
8635
+ /**
8636
+ * Affiliate link ID that earned this reward.
8637
+ */
8638
+ linkId: string;
8639
+ /**
8640
+ * Referral ID that earned this reward.
8641
+ */
8642
+ referralId: string;
8643
+ /**
8644
+ * Reward amount in USD.
8645
+ */
8646
+ amount: number;
8647
+ /**
8648
+ * Reward status. Can be one of `pending` or `claimed`.
8649
+ */
8650
+ status: string;
8651
+ /**
8652
+ * Organization ID the reward was claimed on.
8653
+ */
8654
+ teamId?: string;
8655
+ /**
8656
+ * Credit document ID created when the reward was claimed.
8657
+ */
8658
+ creditId?: string;
8659
+ };
8660
+ /**
8661
+ * Affiliate rewards list
8662
+ */
8663
+ export type AffiliateRewardList = {
8664
+ /**
8665
+ * Total number of rewards that matched your query.
8666
+ */
8667
+ total: number;
8668
+ /**
8669
+ * List of rewards.
8670
+ */
8671
+ rewards: AffiliateReward[];
8672
+ };
8515
8673
  /**
8516
8674
  * Breakdown
8517
8675
  */
@@ -8743,6 +8901,14 @@ export declare namespace Models {
8743
8901
  * Backup type. Possible values: full (complete database snapshot), incremental (changes since last backup), wal (write-ahead log continuous archival).
8744
8902
  */
8745
8903
  type: string;
8904
+ /**
8905
+ * Backup type that was requested. Differs from `type` when the backend could not run the requested type and took a different one instead, in which case `fallbackReason` explains why. Empty for backups taken before the requested type was recorded.
8906
+ */
8907
+ requestedType: string;
8908
+ /**
8909
+ * Why the backend ran a different backup type than the one requested. Empty when the backup ran as requested.
8910
+ */
8911
+ fallbackReason: string;
8746
8912
  /**
8747
8913
  * Backup status. Possible values: pending (queued for processing), running (currently in progress), completed (successfully finished), failed (encountered an error), verified (integrity check passed).
8748
8914
  */
@@ -8935,7 +9101,7 @@ export declare namespace Models {
8935
9101
  /**
8936
9102
  * Members
8937
9103
  */
8938
- members: number;
9104
+ members?: number;
8939
9105
  /**
8940
9106
  * Webhooks
8941
9107
  */
@@ -9031,7 +9197,7 @@ export declare namespace Models {
9031
9197
  /**
9032
9198
  * Activity log days
9033
9199
  */
9034
- activityLogs: number;
9200
+ activityLogs?: number;
9035
9201
  /**
9036
9202
  * Usage history days
9037
9203
  */
@@ -9127,7 +9293,7 @@ export declare namespace Models {
9127
9293
  /**
9128
9294
  * Does plan support backup policies.
9129
9295
  */
9130
- backupsEnabled: boolean;
9296
+ backupsEnabled?: boolean;
9131
9297
  /**
9132
9298
  * Whether usage addons are calculated per project.
9133
9299
  */
@@ -9139,7 +9305,7 @@ export declare namespace Models {
9139
9305
  /**
9140
9306
  * How many policies does plan support
9141
9307
  */
9142
- backupPolicies: number;
9308
+ backupPolicies?: number;
9143
9309
  /**
9144
9310
  * Maximum function and site deployment size in MB
9145
9311
  */
@@ -9176,11 +9342,11 @@ export declare namespace Models {
9176
9342
  /**
9177
9343
  * Addon seats
9178
9344
  */
9179
- seats: BillingPlanAddonDetails;
9345
+ seats?: BillingPlanAddonDetails;
9180
9346
  /**
9181
9347
  * Addon projects
9182
9348
  */
9183
- projects: BillingPlanAddonDetails;
9349
+ projects?: BillingPlanAddonDetails;
9184
9350
  };
9185
9351
  /**
9186
9352
  * Details
@@ -9205,7 +9371,7 @@ export declare namespace Models {
9205
9371
  /**
9206
9372
  * Price currency
9207
9373
  */
9208
- currency: string;
9374
+ currency?: string;
9209
9375
  /**
9210
9376
  * Price
9211
9377
  */
@@ -9417,7 +9583,7 @@ export declare namespace Models {
9417
9583
  */
9418
9584
  host: string;
9419
9585
  /**
9420
- * Branch port.
9586
+ * Branch port. Null until the backing reports one.
9421
9587
  */
9422
9588
  port: number;
9423
9589
  /**
@@ -9437,7 +9603,7 @@ export declare namespace Models {
9437
9603
  */
9438
9604
  ssl: boolean;
9439
9605
  /**
9440
- * Database engine. Possible values: postgresql, mysql, mariadb, mongodb.
9606
+ * Database engine. Possible values: postgresql, mysql, mongodb.
9441
9607
  */
9442
9608
  engine: string;
9443
9609
  /**
@@ -9651,6 +9817,14 @@ export declare namespace Models {
9651
9817
  * Migration phase. Possible values: pending, provisioned, capturing, backfilling, catching_up, verifying, ready_to_cutover, cutover, soaking, done, failed, rolled_back.
9652
9818
  */
9653
9819
  phase: string;
9820
+ /**
9821
+ * Number of times a migration step has failed and been recorded.
9822
+ */
9823
+ attempt: number;
9824
+ /**
9825
+ * Reason the most recent migration step failed, empty while none has.
9826
+ */
9827
+ lastError: string;
9654
9828
  /**
9655
9829
  * Number of documents still pending replication to the target.
9656
9830
  */
@@ -9705,7 +9879,7 @@ export declare namespace Models {
9705
9879
  */
9706
9880
  api: string;
9707
9881
  /**
9708
- * Database engine: postgresql, mysql, mariadb, or mongodb.
9882
+ * Database engine: postgresql, mysql, or mongodb. Null until the backing reports one.
9709
9883
  */
9710
9884
  engine: string;
9711
9885
  /**
@@ -9725,7 +9899,7 @@ export declare namespace Models {
9725
9899
  */
9726
9900
  hostname: string;
9727
9901
  /**
9728
- * Database port for connections.
9902
+ * Database port for connections. Derived from the engine when the backing has not reported one yet.
9729
9903
  */
9730
9904
  connectionPort: number;
9731
9905
  /**
@@ -9805,7 +9979,7 @@ export declare namespace Models {
9805
9979
  */
9806
9980
  crossRegionReplicas: number;
9807
9981
  /**
9808
- * Maximum concurrent connections.
9982
+ * 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.
9809
9983
  */
9810
9984
  networkMaxConnections: number;
9811
9985
  /**
@@ -9981,7 +10155,7 @@ export declare namespace Models {
9981
10155
  */
9982
10156
  ready: boolean;
9983
10157
  /**
9984
- * Database engine: postgresql, mysql, mariadb, or mongodb.
10158
+ * Database engine: postgresql, mysql, or mongodb.
9985
10159
  */
9986
10160
  engine: string;
9987
10161
  /**
@@ -9997,7 +10171,31 @@ export declare namespace Models {
9997
10171
  */
9998
10172
  connections: DatabaseStatusConnections;
9999
10173
  /**
10000
- * List of database replicas and their status.
10174
+ * Requested replication sync mode. Possible values: async, sync, quorum. Compare with effectiveSyncMode for what the primary is enforcing.
10175
+ */
10176
+ syncMode: string;
10177
+ /**
10178
+ * Replication sync mode the primary is actually enforcing. Null when high availability is disabled or the state could not be read.
10179
+ */
10180
+ effectiveSyncMode?: string;
10181
+ /**
10182
+ * Whether the enforced replication is weaker than the requested syncMode.
10183
+ */
10184
+ syncDegraded: boolean;
10185
+ /**
10186
+ * Number of standby acknowledgements the primary waits for before a write is committed.
10187
+ */
10188
+ syncAcknowledgements: number;
10189
+ /**
10190
+ * Number of standbys registered with the primary for synchronous replication.
10191
+ */
10192
+ syncStandbyCount: number;
10193
+ /**
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.
10195
+ */
10196
+ syncStateConfirmed: boolean;
10197
+ /**
10198
+ * 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.
10001
10199
  */
10002
10200
  replicas: DatabaseStatusReplica[];
10003
10201
  /**
@@ -10103,9 +10301,9 @@ export declare namespace Models {
10103
10301
  */
10104
10302
  renewalPrice: number;
10105
10303
  /**
10106
- * Transfer status for domains being transferred in.
10304
+ * Transfer status for domains being transferred in. Null when the domain is not being transferred.
10107
10305
  */
10108
- transferStatus: DomainTransferStatusEnum;
10306
+ transferStatus?: DomainTransferStatusEnum;
10109
10307
  /**
10110
10308
  * Team ID.
10111
10309
  */
@@ -10432,17 +10630,17 @@ export declare namespace Models {
10432
10630
  */
10433
10631
  $id: string;
10434
10632
  /**
10435
- * Member role. Possible values: primary (accepts reads and writes), replica (read-only follower).
10633
+ * Member role. Possible values: primary (accepts reads and writes), replica (read-only follower), unknown (placement not established; reported while a transition is moving or restarting the topology and this member has not been probed, so no member can be named the write target).
10436
10634
  */
10437
10635
  role: string;
10438
10636
  /**
10439
- * Member pod status. Possible values: provisioning (pod missing or Pending), starting (Running but not Ready), active (Running and Ready), failed (Failed phase or CrashLoopBackOff container), or the lowercased pod phase reported by the cluster.
10637
+ * Member pod status. Possible values: pending (configured but absent from the backend topology, so nothing is bringing it up), provisioning (pod missing or Pending), starting (Running but not Ready), active (Running and Ready), failed (Failed phase or CrashLoopBackOff container), or the lowercased pod phase reported by the cluster.
10440
10638
  */
10441
10639
  status: string;
10442
10640
  /**
10443
- * Replication lag in seconds.
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.
10444
10642
  */
10445
- lagSeconds: number;
10643
+ lagSeconds?: number;
10446
10644
  };
10447
10645
  /**
10448
10646
  * Operation
@@ -10515,14 +10713,55 @@ export declare namespace Models {
10515
10713
  */
10516
10714
  replicas: number;
10517
10715
  /**
10518
- * Replication sync mode. Possible values: async (asynchronous, fastest), sync (synchronous, strong consistency), quorum (quorum-based, majority of replicas must confirm).
10716
+ * Requested replication sync mode. Possible values: async (asynchronous, fastest), sync (synchronous, strong consistency), quorum (quorum-based, majority of replicas must confirm). This is what was asked for; compare it with effectiveSyncMode for what the primary is enforcing.
10519
10717
  */
10520
10718
  syncMode: string;
10719
+ /**
10720
+ * Replication sync mode the primary is actually enforcing. Null when high availability is disabled or the state could not be read. A value below the requested syncMode means writes are being acknowledged with weaker durability than configured.
10721
+ */
10722
+ effectiveSyncMode?: string;
10723
+ /**
10724
+ * Whether the enforced replication is weaker than the requested syncMode.
10725
+ */
10726
+ syncDegraded: boolean;
10727
+ /**
10728
+ * Number of standby acknowledgements the primary waits for before a write is committed. Zero means writes are acknowledged locally.
10729
+ */
10730
+ syncAcknowledgements: number;
10731
+ /**
10732
+ * Number of standbys registered with the primary for synchronous replication.
10733
+ */
10734
+ syncStandbyCount: number;
10735
+ /**
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.
10737
+ */
10738
+ syncStateConfirmed: boolean;
10521
10739
  /**
10522
10740
  * Per-pod statuses for the primary and every replica.
10523
10741
  */
10524
10742
  members: DedicatedDatabaseMember[];
10525
10743
  };
10744
+ /**
10745
+ * Invalidation
10746
+ */
10747
+ export type ProxyInvalidation = {
10748
+ /**
10749
+ * Domain name.
10750
+ */
10751
+ domain: string;
10752
+ /**
10753
+ * Invalidation type. Possible values are "tag", "path", or "all".
10754
+ */
10755
+ type: string;
10756
+ /**
10757
+ * Invalidated reference. Depending on type this is a cache tag name, a URL path, or empty when type is all.
10758
+ */
10759
+ reference: string;
10760
+ /**
10761
+ * Invalidation status.
10762
+ */
10763
+ status: string;
10764
+ };
10526
10765
  /**
10527
10766
  * Invoice
10528
10767
  */
@@ -10649,9 +10888,9 @@ export declare namespace Models {
10649
10888
  */
10650
10889
  prefs: Preferences;
10651
10890
  /**
10652
- * Project budget limit
10891
+ * Project budget limit. Null when no budget is set.
10653
10892
  */
10654
- billingBudget: number;
10893
+ billingBudget?: number;
10655
10894
  /**
10656
10895
  * Project budget limit
10657
10896
  */
@@ -10687,7 +10926,7 @@ export declare namespace Models {
10687
10926
  /**
10688
10927
  * Start date of trial.
10689
10928
  */
10690
- billingTrialStartDate: string;
10929
+ billingTrialStartDate?: string;
10691
10930
  /**
10692
10931
  * Number of trial days.
10693
10932
  */
@@ -10707,11 +10946,11 @@ export declare namespace Models {
10707
10946
  /**
10708
10947
  * Default payment method.
10709
10948
  */
10710
- billingAddressId: string;
10949
+ billingAddressId?: string;
10711
10950
  /**
10712
10951
  * Backup payment method.
10713
10952
  */
10714
- backupPaymentMethodId: string;
10953
+ backupPaymentMethodId?: string;
10715
10954
  /**
10716
10955
  * Team status.
10717
10956
  */
@@ -10719,27 +10958,27 @@ export declare namespace Models {
10719
10958
  /**
10720
10959
  * Remarks on team status.
10721
10960
  */
10722
- remarks: string;
10961
+ remarks?: string;
10723
10962
  /**
10724
10963
  * Organization agreements
10725
10964
  */
10726
- agreementBAA: string;
10965
+ agreementBAA?: string;
10727
10966
  /**
10728
10967
  * Program manager's name.
10729
10968
  */
10730
- programManagerName: string;
10969
+ programManagerName?: string;
10731
10970
  /**
10732
10971
  * Program manager's calendar link.
10733
10972
  */
10734
- programManagerCalendar: string;
10973
+ programManagerCalendar?: string;
10735
10974
  /**
10736
10975
  * Program's discord channel name.
10737
10976
  */
10738
- programDiscordChannelName: string;
10977
+ programDiscordChannelName?: string;
10739
10978
  /**
10740
10979
  * Program's discord channel URL.
10741
10980
  */
10742
- programDiscordChannelUrl: string;
10981
+ programDiscordChannelUrl?: string;
10743
10982
  /**
10744
10983
  * Billing limits reached
10745
10984
  */
@@ -10747,11 +10986,11 @@ export declare namespace Models {
10747
10986
  /**
10748
10987
  * Billing plan selected for downgrade.
10749
10988
  */
10750
- billingPlanDowngrade: string;
10989
+ billingPlanDowngrade?: string;
10751
10990
  /**
10752
10991
  * Tax Id
10753
10992
  */
10754
- billingTaxId: string;
10993
+ billingTaxId?: string;
10755
10994
  /**
10756
10995
  * Marked for deletion
10757
10996
  */
@@ -11130,7 +11369,7 @@ export declare namespace Models {
11130
11369
  */
11131
11370
  mode: string;
11132
11371
  /**
11133
- * Maximum number of pooled connections.
11372
+ * Client-connection ceiling the pooler accepts. Enforced on MySQL and MariaDB; on PostgreSQL the pooler has no client cap, so this reports the database's advertised networkMaxConnections and cannot be set here.
11134
11373
  */
11135
11374
  maxConnections: number;
11136
11375
  /**
@@ -11237,9 +11476,9 @@ export declare namespace Models {
11237
11476
  */
11238
11477
  name: string;
11239
11478
  /**
11240
- * Does the organization have access to this region.
11479
+ * Does the organization have access to this region. Null when access has not been resolved.
11241
11480
  */
11242
- available: boolean;
11481
+ available?: boolean;
11243
11482
  /**
11244
11483
  * Does the backend support this region.
11245
11484
  */
@@ -11441,7 +11680,7 @@ export declare namespace Models {
11441
11680
  */
11442
11681
  current: number;
11443
11682
  /**
11444
- * Maximum allowed connections.
11683
+ * The engine's own max_connections. On a pooled database this is the backend limit the pooler multiplexes onto, not the ceiling a client pool may reach — that is networkMaxConnections on the database resource.
11445
11684
  */
11446
11685
  max: number;
11447
11686
  };
@@ -11450,11 +11689,11 @@ export declare namespace Models {
11450
11689
  */
11451
11690
  export type DatabaseStatusReplica = {
11452
11691
  /**
11453
- * StatefulSet pod index (0 = primary, 1+ = replicas).
11692
+ * Member index within the database. Read `role` for which member accepts writes: a failover moves the primary without renumbering the indexes.
11454
11693
  */
11455
11694
  index: number;
11456
11695
  /**
11457
- * Replica role: primary or replica.
11696
+ * Member role. Possible values: primary (accepts reads and writes), replica (read-only follower), unknown (placement not established; reported while a transition is moving or restarting the topology, so no member can be named the write target).
11458
11697
  */
11459
11698
  role: string;
11460
11699
  /**
@@ -11502,7 +11741,7 @@ export declare namespace Models {
11502
11741
  /**
11503
11742
  * Member additional resources
11504
11743
  */
11505
- member: AdditionalResource;
11744
+ member?: AdditionalResource;
11506
11745
  /**
11507
11746
  * Realtime additional resources
11508
11747
  */
@@ -11514,7 +11753,7 @@ export declare namespace Models {
11514
11753
  /**
11515
11754
  * Realtime bandwidth additional resources
11516
11755
  */
11517
- realtimeBandwidth: AdditionalResource;
11756
+ realtimeBandwidth?: AdditionalResource;
11518
11757
  /**
11519
11758
  * Storage additional resources
11520
11759
  */
@@ -11534,7 +11773,7 @@ export declare namespace Models {
11534
11773
  /**
11535
11774
  * Credits additional resources
11536
11775
  */
11537
- credits: AdditionalResource;
11776
+ credits?: AdditionalResource;
11538
11777
  };
11539
11778
  /**
11540
11779
  * usageDataPoint
@@ -11653,7 +11892,7 @@ export declare namespace Models {
11653
11892
  */
11654
11893
  resourceType?: string;
11655
11894
  /**
11656
- * Replica ordinal when broken down by `ordinal`. 0 is the primary; 1+ are replicas.
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.
11657
11896
  */
11658
11897
  ordinal?: string;
11659
11898
  };
@@ -12745,6 +12984,14 @@ export declare namespace Models {
12745
12984
  * Challenge type enforced when the rule matches.
12746
12985
  */
12747
12986
  challengeType: string;
12987
+ /**
12988
+ * Challenge difficulty from 1 (easiest) to 5 (hardest) enforced when the rule matches.
12989
+ */
12990
+ difficulty: number;
12991
+ /**
12992
+ * Seconds a visitor stays cleared after passing the challenge before being challenged again.
12993
+ */
12994
+ ttl: number;
12748
12995
  };
12749
12996
  /**
12750
12997
  * WafRuleRateLimit
@@ -12814,6 +13061,10 @@ export declare namespace Models {
12814
13061
  * Interval in seconds for the rate limit window.
12815
13062
  */
12816
13063
  interval: number;
13064
+ /**
13065
+ * Rate limit key: `ip` limits per client IP, `userId` limits per authenticated user.
13066
+ */
13067
+ key: string;
12817
13068
  };
12818
13069
  /**
12819
13070
  * WafRuleRedirect