@appwrite.io/console 18.4.0-rc.1 → 18.4.0-rc.2

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/dist/iife/sdk.js CHANGED
@@ -4467,7 +4467,7 @@
4467
4467
  'x-sdk-name': 'Console',
4468
4468
  'x-sdk-platform': 'console',
4469
4469
  'x-sdk-language': 'web',
4470
- 'x-sdk-version': '18.4.0-rc.1',
4470
+ 'x-sdk-version': '18.4.0-rc.2',
4471
4471
  'X-Appwrite-Response-Format': '2.3.0',
4472
4472
  };
4473
4473
  this.realtime = {
@@ -35579,11 +35579,13 @@
35579
35579
  platformId: paramsOrFirst,
35580
35580
  name: rest[0],
35581
35581
  applicationId: rest[1],
35582
+ fingerprints: rest[2],
35582
35583
  };
35583
35584
  }
35584
35585
  const platformId = params.platformId;
35585
35586
  const name = params.name;
35586
35587
  const applicationId = params.applicationId;
35588
+ const fingerprints = params.fingerprints;
35587
35589
  if (typeof platformId === 'undefined') {
35588
35590
  throw new AppwriteException('Missing required parameter: "platformId"');
35589
35591
  }
@@ -35604,6 +35606,9 @@
35604
35606
  if (typeof applicationId !== 'undefined') {
35605
35607
  apiPayload['applicationId'] = applicationId;
35606
35608
  }
35609
+ if (typeof fingerprints !== 'undefined') {
35610
+ apiPayload['fingerprints'] = fingerprints;
35611
+ }
35607
35612
  const uri = new URL(this.client.config.endpoint + apiPath);
35608
35613
  const apiHeaders = {
35609
35614
  'X-Appwrite-Project': this.client.config.project,
@@ -35624,11 +35629,13 @@
35624
35629
  platformId: paramsOrFirst,
35625
35630
  name: rest[0],
35626
35631
  applicationId: rest[1],
35632
+ fingerprints: rest[2],
35627
35633
  };
35628
35634
  }
35629
35635
  const platformId = params.platformId;
35630
35636
  const name = params.name;
35631
35637
  const applicationId = params.applicationId;
35638
+ const fingerprints = params.fingerprints;
35632
35639
  if (typeof platformId === 'undefined' || platformId === '') {
35633
35640
  throw new AppwriteException('Missing required parameter: "platformId"');
35634
35641
  }
@@ -35646,6 +35653,9 @@
35646
35653
  if (typeof applicationId !== 'undefined') {
35647
35654
  apiPayload['applicationId'] = applicationId;
35648
35655
  }
35656
+ if (typeof fingerprints !== 'undefined') {
35657
+ apiPayload['fingerprints'] = fingerprints;
35658
+ }
35649
35659
  const uri = new URL(this.client.config.endpoint + apiPath);
35650
35660
  const apiHeaders = {
35651
35661
  'X-Appwrite-Project': this.client.config.project,
@@ -44449,15 +44459,17 @@
44449
44459
  params = {
44450
44460
  teamId: paramsOrFirst,
44451
44461
  roles: rest[0],
44452
- email: rest[1],
44453
- userId: rest[2],
44454
- phone: rest[3],
44455
- url: rest[4],
44456
- name: rest[5],
44462
+ membershipId: rest[1],
44463
+ email: rest[2],
44464
+ userId: rest[3],
44465
+ phone: rest[4],
44466
+ url: rest[5],
44467
+ name: rest[6],
44457
44468
  };
44458
44469
  }
44459
44470
  const teamId = params.teamId;
44460
44471
  const roles = params.roles;
44472
+ const membershipId = params.membershipId;
44461
44473
  const email = params.email;
44462
44474
  const userId = params.userId;
44463
44475
  const phone = params.phone;
@@ -44471,6 +44483,9 @@
44471
44483
  }
44472
44484
  const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', encodeURIComponent(String(teamId)));
44473
44485
  const apiPayload = {};
44486
+ if (typeof membershipId !== 'undefined') {
44487
+ apiPayload['membershipId'] = membershipId;
44488
+ }
44474
44489
  if (typeof email !== 'undefined') {
44475
44490
  apiPayload['email'] = email;
44476
44491
  }
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": "18.4.0-rc.1",
5
+ "version": "18.4.0-rc.2",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
package/types/models.d.ts CHANGED
@@ -6997,6 +6997,10 @@ export declare namespace Models {
6997
6997
  * Android application ID.
6998
6998
  */
6999
6999
  applicationId: string;
7000
+ /**
7001
+ * SHA-256 fingerprints of the certificates the app is signed with. Passkeys created in the app are accepted when its signature matches one.
7002
+ */
7003
+ fingerprints: string[];
7000
7004
  };
7001
7005
  /**
7002
7006
  * Platform Windows
@@ -1775,6 +1775,7 @@ export declare class Project {
1775
1775
  * @param {string} params.platformId - Platform ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1776
1776
  * @param {string} params.name - Platform name. Max length: 128 chars.
1777
1777
  * @param {string} params.applicationId - Android application ID. Max length: 256 chars.
1778
+ * @param {string[]} params.fingerprints - SHA-256 fingerprints of the certificates your app is signed with, such as "14:6D:E9:...:2B:6A". Passkeys created in the app are accepted when its signature matches one. Find them under App signing in Play Console, or with `./gradlew signingReport`.
1778
1779
  * @throws {AppwriteException}
1779
1780
  * @returns {Promise<Models.PlatformAndroid>}
1780
1781
  */
@@ -1782,6 +1783,7 @@ export declare class Project {
1782
1783
  platformId: string;
1783
1784
  name: string;
1784
1785
  applicationId: string;
1786
+ fingerprints?: string[];
1785
1787
  }): Promise<Models.PlatformAndroid>;
1786
1788
  /**
1787
1789
  * Create a new Android platform for your project. Use this endpoint to register a new Android platform where your users will run your application which will interact with the Appwrite API.
@@ -1789,17 +1791,19 @@ export declare class Project {
1789
1791
  * @param {string} platformId - Platform ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1790
1792
  * @param {string} name - Platform name. Max length: 128 chars.
1791
1793
  * @param {string} applicationId - Android application ID. Max length: 256 chars.
1794
+ * @param {string[]} fingerprints - SHA-256 fingerprints of the certificates your app is signed with, such as "14:6D:E9:...:2B:6A". Passkeys created in the app are accepted when its signature matches one. Find them under App signing in Play Console, or with `./gradlew signingReport`.
1792
1795
  * @throws {AppwriteException}
1793
1796
  * @returns {Promise<Models.PlatformAndroid>}
1794
1797
  * @deprecated Use the object parameter style method for a better developer experience.
1795
1798
  */
1796
- createAndroidPlatform(platformId: string, name: string, applicationId: string): Promise<Models.PlatformAndroid>;
1799
+ createAndroidPlatform(platformId: string, name: string, applicationId: string, fingerprints?: string[]): Promise<Models.PlatformAndroid>;
1797
1800
  /**
1798
- * Update an Android platform by its unique ID. Use this endpoint to update the platform's name or application ID.
1801
+ * Update an Android platform by its unique ID. Use this endpoint to update the platform's name, application ID or signing certificate fingerprints.
1799
1802
  *
1800
1803
  * @param {string} params.platformId - Platform ID.
1801
1804
  * @param {string} params.name - Platform name. Max length: 128 chars.
1802
1805
  * @param {string} params.applicationId - Android application ID. Max length: 256 chars.
1806
+ * @param {string[]} params.fingerprints - SHA-256 fingerprints of the certificates your app is signed with, such as "14:6D:E9:...:2B:6A". Passkeys created in the app are accepted when its signature matches one. Find them under App signing in Play Console, or with `./gradlew signingReport`. Omit to keep the current list, or pass an empty array to clear it.
1803
1807
  * @throws {AppwriteException}
1804
1808
  * @returns {Promise<Models.PlatformAndroid>}
1805
1809
  */
@@ -1807,18 +1811,20 @@ export declare class Project {
1807
1811
  platformId: string;
1808
1812
  name: string;
1809
1813
  applicationId: string;
1814
+ fingerprints?: string[];
1810
1815
  }): Promise<Models.PlatformAndroid>;
1811
1816
  /**
1812
- * Update an Android platform by its unique ID. Use this endpoint to update the platform's name or application ID.
1817
+ * Update an Android platform by its unique ID. Use this endpoint to update the platform's name, application ID or signing certificate fingerprints.
1813
1818
  *
1814
1819
  * @param {string} platformId - Platform ID.
1815
1820
  * @param {string} name - Platform name. Max length: 128 chars.
1816
1821
  * @param {string} applicationId - Android application ID. Max length: 256 chars.
1822
+ * @param {string[]} fingerprints - SHA-256 fingerprints of the certificates your app is signed with, such as "14:6D:E9:...:2B:6A". Passkeys created in the app are accepted when its signature matches one. Find them under App signing in Play Console, or with `./gradlew signingReport`. Omit to keep the current list, or pass an empty array to clear it.
1817
1823
  * @throws {AppwriteException}
1818
1824
  * @returns {Promise<Models.PlatformAndroid>}
1819
1825
  * @deprecated Use the object parameter style method for a better developer experience.
1820
1826
  */
1821
- updateAndroidPlatform(platformId: string, name: string, applicationId: string): Promise<Models.PlatformAndroid>;
1827
+ updateAndroidPlatform(platformId: string, name: string, applicationId: string, fingerprints?: string[]): Promise<Models.PlatformAndroid>;
1822
1828
  /**
1823
1829
  * Create a new Apple platform for your project. Use this endpoint to register a new Apple platform where your users will run your application which will interact with the Appwrite API.
1824
1830
  *
@@ -272,6 +272,7 @@ export declare class Teams {
272
272
  *
273
273
  * @param {string} params.teamId - Team ID.
274
274
  * @param {string[]} params.roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
275
+ * @param {string} params.membershipId - Membership ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
275
276
  * @param {string} params.email - Email of the new team member.
276
277
  * @param {string} params.userId - ID of the user to be added to a team.
277
278
  * @param {string} params.phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
@@ -283,6 +284,7 @@ export declare class Teams {
283
284
  createMembership(params: {
284
285
  teamId: string;
285
286
  roles: string[];
287
+ membershipId?: string;
286
288
  email?: string;
287
289
  userId?: string;
288
290
  phone?: string;
@@ -301,6 +303,7 @@ export declare class Teams {
301
303
  *
302
304
  * @param {string} teamId - Team ID.
303
305
  * @param {string[]} roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
306
+ * @param {string} membershipId - Membership ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
304
307
  * @param {string} email - Email of the new team member.
305
308
  * @param {string} userId - ID of the user to be added to a team.
306
309
  * @param {string} phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
@@ -310,7 +313,7 @@ export declare class Teams {
310
313
  * @returns {Promise<Models.Membership>}
311
314
  * @deprecated Use the object parameter style method for a better developer experience.
312
315
  */
313
- createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership>;
316
+ createMembership(teamId: string, roles: string[], membershipId?: string, email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership>;
314
317
  /**
315
318
  * Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.
316
319
  *