@appwrite.io/console 13.2.0 → 15.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "13.2.0",
5
+ "version": "15.0.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
package/types/client.d.ts CHANGED
@@ -121,6 +121,7 @@ declare class Client {
121
121
  impersonateuserphone: string;
122
122
  platform: string;
123
123
  selfSigned: boolean;
124
+ credentials: RequestCredentials;
124
125
  };
125
126
  /**
126
127
  * Custom headers for API requests.
@@ -161,6 +162,17 @@ declare class Client {
161
162
  * @returns {this}
162
163
  */
163
164
  setSelfSigned(selfSigned: boolean): this;
165
+ /**
166
+ * Set credentials
167
+ *
168
+ * Controls whether fetch sends credentials like cookies with requests.
169
+ *
170
+ * @param {RequestCredentials} credentials
171
+ *
172
+ * @returns {this}
173
+ */
174
+ setCredentials(credentials: RequestCredentials): this;
175
+ private shouldUseFallbackCredentials;
164
176
  /**
165
177
  * Set Project
166
178
  *
@@ -240,7 +252,7 @@ declare class Client {
240
252
  /**
241
253
  * Set ImpersonateUserId
242
254
  *
243
- * Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
255
+ * Impersonate a user by ID
244
256
  *
245
257
  * @param value string
246
258
  *
@@ -250,7 +262,7 @@ declare class Client {
250
262
  /**
251
263
  * Set ImpersonateUserEmail
252
264
  *
253
- * Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
265
+ * Impersonate a user by email
254
266
  *
255
267
  * @param value string
256
268
  *
@@ -260,7 +272,7 @@ declare class Client {
260
272
  /**
261
273
  * Set ImpersonateUserPhone
262
274
  *
263
- * Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
275
+ * Impersonate a user by phone
264
276
  *
265
277
  * @param value string
266
278
  *
@@ -89,6 +89,7 @@ export declare enum ProjectKeyScopes {
89
89
  ArchivesWrite = "archives.write",
90
90
  RestorationsRead = "restorations.read",
91
91
  RestorationsWrite = "restorations.write",
92
+ DedicatedDatabasesExecute = "dedicatedDatabases.execute",
92
93
  DomainsRead = "domains.read",
93
94
  DomainsWrite = "domains.write",
94
95
  EventsRead = "events.read",
@@ -11,5 +11,6 @@ export declare enum ProjectPolicyId {
11
11
  Membershipprivacy = "membership-privacy",
12
12
  Denyaliasedemail = "deny-aliased-email",
13
13
  Denydisposableemail = "deny-disposable-email",
14
- Denyfreeemail = "deny-free-email"
14
+ Denyfreeemail = "deny-free-email",
15
+ Denycorporateemail = "deny-corporate-email"
15
16
  }
@@ -16,5 +16,6 @@ export declare enum ProjectServiceId {
16
16
  Graphql = "graphql",
17
17
  Migrations = "migrations",
18
18
  Messaging = "messaging",
19
- Advisor = "advisor"
19
+ Advisor = "advisor",
20
+ Oauth2 = "oauth2"
20
21
  }
@@ -61,6 +61,7 @@ export declare enum QuerySuggestionResource {
61
61
  Blocks = "blocks",
62
62
  Threats = "threats",
63
63
  Feedbacks = "feedbacks",
64
+ Disputes = "disputes",
64
65
  ShInstallations = "sh_installations",
65
66
  Apps = "apps",
66
67
  AppSecrets = "appsecrets",
package/types/index.d.ts CHANGED
@@ -24,6 +24,7 @@ export { Locale } from './services/locale';
24
24
  export { Manager } from './services/manager';
25
25
  export { Messaging } from './services/messaging';
26
26
  export { Migrations } from './services/migrations';
27
+ export { Oauth2 } from './services/oauth-2';
27
28
  export { Organization } from './services/organization';
28
29
  export { Organizations } from './services/organizations';
29
30
  export { Presences } from './services/presences';