@appwrite.io/console 15.8.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/README.md +2 -2
- package/dist/cjs/sdk.js +363 -42
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +362 -43
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +363 -42
- package/package.json +3 -3
- package/types/client.d.ts +11 -0
- package/types/enums/invalidation-type.d.ts +5 -0
- package/types/enums/project-key-scopes.d.ts +1 -0
- package/types/enums/query-suggestion-resource.d.ts +3 -0
- package/types/enums/usage-event-dimension.d.ts +21 -0
- package/types/enums/usage-gauge-dimension.d.ts +7 -0
- package/types/enums/usage-interval.d.ts +7 -0
- package/types/enums/usage-order-by.d.ts +4 -0
- package/types/enums/usage-order-direction.d.ts +4 -0
- package/types/index.d.ts +9 -1
- package/types/models.d.ts +218 -39
- package/types/services/account.d.ts +6 -6
- package/types/services/affiliates.d.ts +162 -0
- package/types/services/embeddings.d.ts +31 -0
- package/types/services/proxy.d.ts +30 -0
- package/types/services/usage.d.ts +35 -30
- package/types/services/vectors-db.d.ts +0 -25
package/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
export { Client, Query, AppwriteException } from './client';
|
|
9
9
|
export { Account } from './services/account';
|
|
10
10
|
export { Activities } from './services/activities';
|
|
11
|
+
export { Affiliates } from './services/affiliates';
|
|
11
12
|
export { Apps } from './services/apps';
|
|
12
13
|
export { Avatars } from './services/avatars';
|
|
13
14
|
export { Backups } from './services/backups';
|
|
@@ -16,6 +17,7 @@ export { Console } from './services/console';
|
|
|
16
17
|
export { Databases } from './services/databases';
|
|
17
18
|
export { DocumentsDB } from './services/documents-db';
|
|
18
19
|
export { Domains } from './services/domains';
|
|
20
|
+
export { Embeddings } from './services/embeddings';
|
|
19
21
|
export { Functions } from './services/functions';
|
|
20
22
|
export { Graphql } from './services/graphql';
|
|
21
23
|
export { Locale } from './services/locale';
|
|
@@ -78,6 +80,7 @@ export { OrderBy } from './enums/order-by';
|
|
|
78
80
|
export { DocumentsDBIndexType } from './enums/documents-db-index-type';
|
|
79
81
|
export { DomainRegistrationType } from './enums/domain-registration-type';
|
|
80
82
|
export { DomainSuggestionType } from './enums/domain-suggestion-type';
|
|
83
|
+
export { EmbeddingModel } from './enums/embedding-model';
|
|
81
84
|
export { Runtime } from './enums/runtime';
|
|
82
85
|
export { ProjectKeyScopes } from './enums/project-key-scopes';
|
|
83
86
|
export { FunctionTemplateUseCase } from './enums/function-template-use-case';
|
|
@@ -111,6 +114,7 @@ export { ProjectSMTPSecure } from './enums/project-smtp-secure';
|
|
|
111
114
|
export { ProjectUsageRange } from './enums/project-usage-range';
|
|
112
115
|
export { ScheduleResourceType } from './enums/schedule-resource-type';
|
|
113
116
|
export { Status } from './enums/status';
|
|
117
|
+
export { InvalidationType } from './enums/invalidation-type';
|
|
114
118
|
export { StatusCode } from './enums/status-code';
|
|
115
119
|
export { ProxyResourceType } from './enums/proxy-resource-type';
|
|
116
120
|
export { Framework } from './enums/framework';
|
|
@@ -120,10 +124,14 @@ export { SiteTemplateUseCase } from './enums/site-template-use-case';
|
|
|
120
124
|
export { Compression } from './enums/compression';
|
|
121
125
|
export { ImageGravity } from './enums/image-gravity';
|
|
122
126
|
export { TablesDBIndexType } from './enums/tables-db-index-type';
|
|
127
|
+
export { UsageInterval } from './enums/usage-interval';
|
|
128
|
+
export { UsageEventDimension } from './enums/usage-event-dimension';
|
|
129
|
+
export { UsageOrderBy } from './enums/usage-order-by';
|
|
130
|
+
export { UsageOrderDirection } from './enums/usage-order-direction';
|
|
131
|
+
export { UsageGaugeDimension } from './enums/usage-gauge-dimension';
|
|
123
132
|
export { PasswordHash } from './enums/password-hash';
|
|
124
133
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
|
125
134
|
export { VCSDetectionType } from './enums/vcs-detection-type';
|
|
126
|
-
export { EmbeddingModel } from './enums/embedding-model';
|
|
127
135
|
export { VectorsDBIndexType } from './enums/vectors-db-index-type';
|
|
128
136
|
export { DatabaseType } from './enums/database-type';
|
|
129
137
|
export { DatabaseStatus } from './enums/database-status';
|
package/types/models.d.ts
CHANGED
|
@@ -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:
|
|
7142
|
+
embeddingsTextTotal: number;
|
|
7143
7143
|
/**
|
|
7144
7144
|
* Total aggregated number of tokens processed by text.
|
|
7145
7145
|
*/
|
|
7146
|
-
embeddingsTextTokensTotal:
|
|
7146
|
+
embeddingsTextTokensTotal: number;
|
|
7147
7147
|
/**
|
|
7148
7148
|
* Total aggregated duration spent generating text embeddings.
|
|
7149
7149
|
*/
|
|
7150
|
-
embeddingsTextDurationTotal:
|
|
7150
|
+
embeddingsTextDurationTotal: number;
|
|
7151
7151
|
/**
|
|
7152
7152
|
* Total aggregated number of errors while generating text embeddings.
|
|
7153
7153
|
*/
|
|
7154
|
-
embeddingsTextErrorsTotal:
|
|
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
|
*/
|
|
@@ -8943,7 +9101,7 @@ export declare namespace Models {
|
|
|
8943
9101
|
/**
|
|
8944
9102
|
* Members
|
|
8945
9103
|
*/
|
|
8946
|
-
members
|
|
9104
|
+
members?: number;
|
|
8947
9105
|
/**
|
|
8948
9106
|
* Webhooks
|
|
8949
9107
|
*/
|
|
@@ -9039,7 +9197,7 @@ export declare namespace Models {
|
|
|
9039
9197
|
/**
|
|
9040
9198
|
* Activity log days
|
|
9041
9199
|
*/
|
|
9042
|
-
activityLogs
|
|
9200
|
+
activityLogs?: number;
|
|
9043
9201
|
/**
|
|
9044
9202
|
* Usage history days
|
|
9045
9203
|
*/
|
|
@@ -9135,7 +9293,7 @@ export declare namespace Models {
|
|
|
9135
9293
|
/**
|
|
9136
9294
|
* Does plan support backup policies.
|
|
9137
9295
|
*/
|
|
9138
|
-
backupsEnabled
|
|
9296
|
+
backupsEnabled?: boolean;
|
|
9139
9297
|
/**
|
|
9140
9298
|
* Whether usage addons are calculated per project.
|
|
9141
9299
|
*/
|
|
@@ -9147,7 +9305,7 @@ export declare namespace Models {
|
|
|
9147
9305
|
/**
|
|
9148
9306
|
* How many policies does plan support
|
|
9149
9307
|
*/
|
|
9150
|
-
backupPolicies
|
|
9308
|
+
backupPolicies?: number;
|
|
9151
9309
|
/**
|
|
9152
9310
|
* Maximum function and site deployment size in MB
|
|
9153
9311
|
*/
|
|
@@ -9184,11 +9342,11 @@ export declare namespace Models {
|
|
|
9184
9342
|
/**
|
|
9185
9343
|
* Addon seats
|
|
9186
9344
|
*/
|
|
9187
|
-
seats
|
|
9345
|
+
seats?: BillingPlanAddonDetails;
|
|
9188
9346
|
/**
|
|
9189
9347
|
* Addon projects
|
|
9190
9348
|
*/
|
|
9191
|
-
projects
|
|
9349
|
+
projects?: BillingPlanAddonDetails;
|
|
9192
9350
|
};
|
|
9193
9351
|
/**
|
|
9194
9352
|
* Details
|
|
@@ -9213,7 +9371,7 @@ export declare namespace Models {
|
|
|
9213
9371
|
/**
|
|
9214
9372
|
* Price currency
|
|
9215
9373
|
*/
|
|
9216
|
-
currency
|
|
9374
|
+
currency?: string;
|
|
9217
9375
|
/**
|
|
9218
9376
|
* Price
|
|
9219
9377
|
*/
|
|
@@ -9721,7 +9879,7 @@ export declare namespace Models {
|
|
|
9721
9879
|
*/
|
|
9722
9880
|
api: string;
|
|
9723
9881
|
/**
|
|
9724
|
-
* Database engine: postgresql, mysql, or mongodb.
|
|
9882
|
+
* Database engine: postgresql, mysql, or mongodb. Null until the backing reports one.
|
|
9725
9883
|
*/
|
|
9726
9884
|
engine: string;
|
|
9727
9885
|
/**
|
|
@@ -10143,9 +10301,9 @@ export declare namespace Models {
|
|
|
10143
10301
|
*/
|
|
10144
10302
|
renewalPrice: number;
|
|
10145
10303
|
/**
|
|
10146
|
-
* Transfer status for domains being transferred in.
|
|
10304
|
+
* Transfer status for domains being transferred in. Null when the domain is not being transferred.
|
|
10147
10305
|
*/
|
|
10148
|
-
transferStatus
|
|
10306
|
+
transferStatus?: DomainTransferStatusEnum;
|
|
10149
10307
|
/**
|
|
10150
10308
|
* Team ID.
|
|
10151
10309
|
*/
|
|
@@ -10480,9 +10638,9 @@ export declare namespace Models {
|
|
|
10480
10638
|
*/
|
|
10481
10639
|
status: string;
|
|
10482
10640
|
/**
|
|
10483
|
-
* 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.
|
|
10484
10642
|
*/
|
|
10485
|
-
lagSeconds
|
|
10643
|
+
lagSeconds?: number;
|
|
10486
10644
|
};
|
|
10487
10645
|
/**
|
|
10488
10646
|
* Operation
|
|
@@ -10583,6 +10741,27 @@ export declare namespace Models {
|
|
|
10583
10741
|
*/
|
|
10584
10742
|
members: DedicatedDatabaseMember[];
|
|
10585
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
|
+
};
|
|
10586
10765
|
/**
|
|
10587
10766
|
* Invoice
|
|
10588
10767
|
*/
|
|
@@ -10709,9 +10888,9 @@ export declare namespace Models {
|
|
|
10709
10888
|
*/
|
|
10710
10889
|
prefs: Preferences;
|
|
10711
10890
|
/**
|
|
10712
|
-
* Project budget limit
|
|
10891
|
+
* Project budget limit. Null when no budget is set.
|
|
10713
10892
|
*/
|
|
10714
|
-
billingBudget
|
|
10893
|
+
billingBudget?: number;
|
|
10715
10894
|
/**
|
|
10716
10895
|
* Project budget limit
|
|
10717
10896
|
*/
|
|
@@ -10747,7 +10926,7 @@ export declare namespace Models {
|
|
|
10747
10926
|
/**
|
|
10748
10927
|
* Start date of trial.
|
|
10749
10928
|
*/
|
|
10750
|
-
billingTrialStartDate
|
|
10929
|
+
billingTrialStartDate?: string;
|
|
10751
10930
|
/**
|
|
10752
10931
|
* Number of trial days.
|
|
10753
10932
|
*/
|
|
@@ -10767,11 +10946,11 @@ export declare namespace Models {
|
|
|
10767
10946
|
/**
|
|
10768
10947
|
* Default payment method.
|
|
10769
10948
|
*/
|
|
10770
|
-
billingAddressId
|
|
10949
|
+
billingAddressId?: string;
|
|
10771
10950
|
/**
|
|
10772
10951
|
* Backup payment method.
|
|
10773
10952
|
*/
|
|
10774
|
-
backupPaymentMethodId
|
|
10953
|
+
backupPaymentMethodId?: string;
|
|
10775
10954
|
/**
|
|
10776
10955
|
* Team status.
|
|
10777
10956
|
*/
|
|
@@ -10779,27 +10958,27 @@ export declare namespace Models {
|
|
|
10779
10958
|
/**
|
|
10780
10959
|
* Remarks on team status.
|
|
10781
10960
|
*/
|
|
10782
|
-
remarks
|
|
10961
|
+
remarks?: string;
|
|
10783
10962
|
/**
|
|
10784
10963
|
* Organization agreements
|
|
10785
10964
|
*/
|
|
10786
|
-
agreementBAA
|
|
10965
|
+
agreementBAA?: string;
|
|
10787
10966
|
/**
|
|
10788
10967
|
* Program manager's name.
|
|
10789
10968
|
*/
|
|
10790
|
-
programManagerName
|
|
10969
|
+
programManagerName?: string;
|
|
10791
10970
|
/**
|
|
10792
10971
|
* Program manager's calendar link.
|
|
10793
10972
|
*/
|
|
10794
|
-
programManagerCalendar
|
|
10973
|
+
programManagerCalendar?: string;
|
|
10795
10974
|
/**
|
|
10796
10975
|
* Program's discord channel name.
|
|
10797
10976
|
*/
|
|
10798
|
-
programDiscordChannelName
|
|
10977
|
+
programDiscordChannelName?: string;
|
|
10799
10978
|
/**
|
|
10800
10979
|
* Program's discord channel URL.
|
|
10801
10980
|
*/
|
|
10802
|
-
programDiscordChannelUrl
|
|
10981
|
+
programDiscordChannelUrl?: string;
|
|
10803
10982
|
/**
|
|
10804
10983
|
* Billing limits reached
|
|
10805
10984
|
*/
|
|
@@ -10807,11 +10986,11 @@ export declare namespace Models {
|
|
|
10807
10986
|
/**
|
|
10808
10987
|
* Billing plan selected for downgrade.
|
|
10809
10988
|
*/
|
|
10810
|
-
billingPlanDowngrade
|
|
10989
|
+
billingPlanDowngrade?: string;
|
|
10811
10990
|
/**
|
|
10812
10991
|
* Tax Id
|
|
10813
10992
|
*/
|
|
10814
|
-
billingTaxId
|
|
10993
|
+
billingTaxId?: string;
|
|
10815
10994
|
/**
|
|
10816
10995
|
* Marked for deletion
|
|
10817
10996
|
*/
|
|
@@ -11297,9 +11476,9 @@ export declare namespace Models {
|
|
|
11297
11476
|
*/
|
|
11298
11477
|
name: string;
|
|
11299
11478
|
/**
|
|
11300
|
-
* Does the organization have access to this region.
|
|
11479
|
+
* Does the organization have access to this region. Null when access has not been resolved.
|
|
11301
11480
|
*/
|
|
11302
|
-
available
|
|
11481
|
+
available?: boolean;
|
|
11303
11482
|
/**
|
|
11304
11483
|
* Does the backend support this region.
|
|
11305
11484
|
*/
|
|
@@ -11562,7 +11741,7 @@ export declare namespace Models {
|
|
|
11562
11741
|
/**
|
|
11563
11742
|
* Member additional resources
|
|
11564
11743
|
*/
|
|
11565
|
-
member
|
|
11744
|
+
member?: AdditionalResource;
|
|
11566
11745
|
/**
|
|
11567
11746
|
* Realtime additional resources
|
|
11568
11747
|
*/
|
|
@@ -11574,7 +11753,7 @@ export declare namespace Models {
|
|
|
11574
11753
|
/**
|
|
11575
11754
|
* Realtime bandwidth additional resources
|
|
11576
11755
|
*/
|
|
11577
|
-
realtimeBandwidth
|
|
11756
|
+
realtimeBandwidth?: AdditionalResource;
|
|
11578
11757
|
/**
|
|
11579
11758
|
* Storage additional resources
|
|
11580
11759
|
*/
|
|
@@ -11594,7 +11773,7 @@ export declare namespace Models {
|
|
|
11594
11773
|
/**
|
|
11595
11774
|
* Credits additional resources
|
|
11596
11775
|
*/
|
|
11597
|
-
credits
|
|
11776
|
+
credits?: AdditionalResource;
|
|
11598
11777
|
};
|
|
11599
11778
|
/**
|
|
11600
11779
|
* usageDataPoint
|
|
@@ -11713,7 +11892,7 @@ export declare namespace Models {
|
|
|
11713
11892
|
*/
|
|
11714
11893
|
resourceType?: string;
|
|
11715
11894
|
/**
|
|
11716
|
-
*
|
|
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.
|
|
11717
11896
|
*/
|
|
11718
11897
|
ordinal?: string;
|
|
11719
11898
|
};
|
|
@@ -1283,7 +1283,7 @@ export declare class Account {
|
|
|
1283
1283
|
/**
|
|
1284
1284
|
* Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.
|
|
1285
1285
|
*
|
|
1286
|
-
* @param {string} params.sessionId - Session ID. Use the string 'current' to get the current device session.
|
|
1286
|
+
* @param {string} params.sessionId - Session ID. Use the string 'current' to get the current device session. Defaults to 'current'.
|
|
1287
1287
|
* @throws {AppwriteException}
|
|
1288
1288
|
* @returns {Promise<Models.Session>}
|
|
1289
1289
|
*/
|
|
@@ -1293,7 +1293,7 @@ export declare class Account {
|
|
|
1293
1293
|
/**
|
|
1294
1294
|
* Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.
|
|
1295
1295
|
*
|
|
1296
|
-
* @param {string} sessionId - Session ID. Use the string 'current' to get the current device session.
|
|
1296
|
+
* @param {string} sessionId - Session ID. Use the string 'current' to get the current device session. Defaults to 'current'.
|
|
1297
1297
|
* @throws {AppwriteException}
|
|
1298
1298
|
* @returns {Promise<Models.Session>}
|
|
1299
1299
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
@@ -1302,7 +1302,7 @@ export declare class Account {
|
|
|
1302
1302
|
/**
|
|
1303
1303
|
* Use this endpoint to extend a session's length. Extending a session is useful when session expiry is short. If the session was created using an OAuth provider, this endpoint refreshes the access token from the provider.
|
|
1304
1304
|
*
|
|
1305
|
-
* @param {string} params.sessionId - Session ID. Use the string 'current' to update the current device session.
|
|
1305
|
+
* @param {string} params.sessionId - Session ID. Use the string 'current' to update the current device session. Defaults to 'current'.
|
|
1306
1306
|
* @throws {AppwriteException}
|
|
1307
1307
|
* @returns {Promise<Models.Session>}
|
|
1308
1308
|
*/
|
|
@@ -1312,7 +1312,7 @@ export declare class Account {
|
|
|
1312
1312
|
/**
|
|
1313
1313
|
* Use this endpoint to extend a session's length. Extending a session is useful when session expiry is short. If the session was created using an OAuth provider, this endpoint refreshes the access token from the provider.
|
|
1314
1314
|
*
|
|
1315
|
-
* @param {string} sessionId - Session ID. Use the string 'current' to update the current device session.
|
|
1315
|
+
* @param {string} sessionId - Session ID. Use the string 'current' to update the current device session. Defaults to 'current'.
|
|
1316
1316
|
* @throws {AppwriteException}
|
|
1317
1317
|
* @returns {Promise<Models.Session>}
|
|
1318
1318
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
@@ -1321,7 +1321,7 @@ export declare class Account {
|
|
|
1321
1321
|
/**
|
|
1322
1322
|
* Logout the user. Use 'current' as the session ID to logout on this device, use a session ID to logout on another device. If you're looking to logout the user on all devices, use [Delete Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) instead.
|
|
1323
1323
|
*
|
|
1324
|
-
* @param {string} params.sessionId - Session ID. Use the string 'current' to delete the current device session.
|
|
1324
|
+
* @param {string} params.sessionId - Session ID. Use the string 'current' to delete the current device session. Defaults to 'current'.
|
|
1325
1325
|
* @throws {AppwriteException}
|
|
1326
1326
|
* @returns {Promise<{}>}
|
|
1327
1327
|
*/
|
|
@@ -1331,7 +1331,7 @@ export declare class Account {
|
|
|
1331
1331
|
/**
|
|
1332
1332
|
* Logout the user. Use 'current' as the session ID to logout on this device, use a session ID to logout on another device. If you're looking to logout the user on all devices, use [Delete Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) instead.
|
|
1333
1333
|
*
|
|
1334
|
-
* @param {string} sessionId - Session ID. Use the string 'current' to delete the current device session.
|
|
1334
|
+
* @param {string} sessionId - Session ID. Use the string 'current' to delete the current device session. Defaults to 'current'.
|
|
1335
1335
|
* @throws {AppwriteException}
|
|
1336
1336
|
* @returns {Promise<{}>}
|
|
1337
1337
|
* @deprecated Use the object parameter style method for a better developer experience.
|