@appwrite.io/console 11.0.0 → 12.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.
@@ -1,9 +1,6 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
3
  import { Region } from '../enums/region';
4
- import { AuthMethod } from '../enums/auth-method';
5
- import { Scopes } from '../enums/scopes';
6
- import { OAuthProvider } from '../enums/o-auth-provider';
7
4
  import { ResourceType } from '../enums/resource-type';
8
5
  import { Status } from '../enums/status';
9
6
  export declare class Projects {
@@ -157,72 +154,6 @@ export declare class Projects {
157
154
  * @deprecated Use the object parameter style method for a better developer experience.
158
155
  */
159
156
  update(projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
160
- /**
161
- * Delete a project by its unique ID.
162
- *
163
- * @param {string} params.projectId - Project unique ID.
164
- * @throws {AppwriteException}
165
- * @returns {Promise<{}>}
166
- */
167
- delete(params: {
168
- projectId: string;
169
- }): Promise<{}>;
170
- /**
171
- * Delete a project by its unique ID.
172
- *
173
- * @param {string} projectId - Project unique ID.
174
- * @throws {AppwriteException}
175
- * @returns {Promise<{}>}
176
- * @deprecated Use the object parameter style method for a better developer experience.
177
- */
178
- delete(projectId: string): Promise<{}>;
179
- /**
180
- * Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
181
- *
182
- * @param {string} params.projectId - Project unique ID.
183
- * @param {object[]} params.numbers - An array of mock numbers and their corresponding verification codes (OTPs). Each number should be a valid E.164 formatted phone number. Maximum of 10 numbers are allowed.
184
- * @throws {AppwriteException}
185
- * @returns {Promise<Models.Project>}
186
- */
187
- updateMockNumbers(params: {
188
- projectId: string;
189
- numbers: object[];
190
- }): Promise<Models.Project>;
191
- /**
192
- * Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
193
- *
194
- * @param {string} projectId - Project unique ID.
195
- * @param {object[]} numbers - An array of mock numbers and their corresponding verification codes (OTPs). Each number should be a valid E.164 formatted phone number. Maximum of 10 numbers are allowed.
196
- * @throws {AppwriteException}
197
- * @returns {Promise<Models.Project>}
198
- * @deprecated Use the object parameter style method for a better developer experience.
199
- */
200
- updateMockNumbers(projectId: string, numbers: object[]): Promise<Models.Project>;
201
- /**
202
- * Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project.
203
- *
204
- * @param {string} params.projectId - Project unique ID.
205
- * @param {AuthMethod} params.method - Auth Method. Possible values: email-password,magic-url,email-otp,anonymous,invites,jwt,phone
206
- * @param {boolean} params.status - Set the status of this auth method.
207
- * @throws {AppwriteException}
208
- * @returns {Promise<Models.Project>}
209
- */
210
- updateAuthStatus(params: {
211
- projectId: string;
212
- method: AuthMethod;
213
- status: boolean;
214
- }): Promise<Models.Project>;
215
- /**
216
- * Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project.
217
- *
218
- * @param {string} projectId - Project unique ID.
219
- * @param {AuthMethod} method - Auth Method. Possible values: email-password,magic-url,email-otp,anonymous,invites,jwt,phone
220
- * @param {boolean} status - Set the status of this auth method.
221
- * @throws {AppwriteException}
222
- * @returns {Promise<Models.Project>}
223
- * @deprecated Use the object parameter style method for a better developer experience.
224
- */
225
- updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project>;
226
157
  /**
227
158
  * Record console access to a project. This endpoint updates the last accessed timestamp for the project to track console activity.
228
159
  *
@@ -363,62 +294,6 @@ export declare class Projects {
363
294
  * @deprecated Use the object parameter style method for a better developer experience.
364
295
  */
365
296
  deleteDevKey(projectId: string, keyId: string): Promise<{}>;
366
- /**
367
- * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
368
- *
369
- * @param {string} params.projectId - Project unique ID.
370
- * @param {Scopes[]} params.scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
371
- * @param {number} params.duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
372
- * @throws {AppwriteException}
373
- * @returns {Promise<Models.Jwt>}
374
- */
375
- createJWT(params: {
376
- projectId: string;
377
- scopes: Scopes[];
378
- duration?: number;
379
- }): Promise<Models.Jwt>;
380
- /**
381
- * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
382
- *
383
- * @param {string} projectId - Project unique ID.
384
- * @param {Scopes[]} scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
385
- * @param {number} duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
386
- * @throws {AppwriteException}
387
- * @returns {Promise<Models.Jwt>}
388
- * @deprecated Use the object parameter style method for a better developer experience.
389
- */
390
- createJWT(projectId: string, scopes: Scopes[], duration?: number): Promise<Models.Jwt>;
391
- /**
392
- * Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
393
- *
394
- * @param {string} params.projectId - Project unique ID.
395
- * @param {OAuthProvider} params.provider - Provider Name
396
- * @param {string} params.appId - Provider app ID. Max length: 256 chars.
397
- * @param {string} params.secret - Provider secret key. Max length: 512 chars.
398
- * @param {boolean} params.enabled - Provider status. Set to 'false' to disable new session creation.
399
- * @throws {AppwriteException}
400
- * @returns {Promise<Models.Project>}
401
- */
402
- updateOAuth2(params: {
403
- projectId: string;
404
- provider: OAuthProvider;
405
- appId?: string;
406
- secret?: string;
407
- enabled?: boolean;
408
- }): Promise<Models.Project>;
409
- /**
410
- * Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
411
- *
412
- * @param {string} projectId - Project unique ID.
413
- * @param {OAuthProvider} provider - Provider Name
414
- * @param {string} appId - Provider app ID. Max length: 256 chars.
415
- * @param {string} secret - Provider secret key. Max length: 512 chars.
416
- * @param {boolean} enabled - Provider status. Set to 'false' to disable new session creation.
417
- * @throws {AppwriteException}
418
- * @returns {Promise<Models.Project>}
419
- * @deprecated Use the object parameter style method for a better developer experience.
420
- */
421
- updateOAuth2(projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
422
297
  /**
423
298
  * Get a list of all the project's schedules. You can use the query params to filter your results.
424
299
  *