@appwrite.io/console 2.1.1 → 2.1.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/sdk.js +99 -7
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +100 -8
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +99 -7
  8. package/docs/examples/domains/list-suggestions.md +18 -0
  9. package/docs/examples/health/get-queue-audits.md +13 -0
  10. package/docs/examples/organizations/create.md +2 -2
  11. package/docs/examples/organizations/estimation-create-organization.md +2 -2
  12. package/docs/examples/organizations/estimation-update-plan.md +2 -2
  13. package/docs/examples/organizations/update-plan.md +2 -2
  14. package/package.json +1 -1
  15. package/src/client.ts +1 -1
  16. package/src/enums/billing-plan.ts +17 -0
  17. package/src/enums/filter-type.ts +4 -0
  18. package/src/enums/name.ts +1 -0
  19. package/src/enums/o-auth-provider.ts +0 -2
  20. package/src/index.ts +2 -0
  21. package/src/models.ts +437 -375
  22. package/src/services/account.ts +20 -20
  23. package/src/services/avatars.ts +117 -117
  24. package/src/services/backups.ts +18 -18
  25. package/src/services/console.ts +24 -24
  26. package/src/services/databases.ts +89 -89
  27. package/src/services/domains.ts +295 -204
  28. package/src/services/functions.ts +30 -30
  29. package/src/services/health.ts +201 -152
  30. package/src/services/messaging.ts +54 -54
  31. package/src/services/migrations.ts +36 -36
  32. package/src/services/organizations.ts +67 -66
  33. package/src/services/projects.ts +81 -81
  34. package/src/services/sites.ts +30 -30
  35. package/src/services/storage.ts +45 -45
  36. package/src/services/tables-db.ts +89 -89
  37. package/src/services/users.ts +39 -39
  38. package/types/enums/billing-plan.d.ts +17 -0
  39. package/types/enums/filter-type.d.ts +4 -0
  40. package/types/enums/name.d.ts +1 -0
  41. package/types/enums/o-auth-provider.d.ts +0 -2
  42. package/types/index.d.ts +2 -0
  43. package/types/models.d.ts +434 -375
  44. package/types/services/account.d.ts +11 -11
  45. package/types/services/avatars.d.ts +82 -82
  46. package/types/services/backups.d.ts +8 -8
  47. package/types/services/console.d.ts +14 -14
  48. package/types/services/databases.d.ts +50 -50
  49. package/types/services/domains.d.ts +139 -104
  50. package/types/services/functions.d.ts +15 -15
  51. package/types/services/health.d.ts +95 -78
  52. package/types/services/messaging.d.ts +24 -24
  53. package/types/services/migrations.d.ts +16 -16
  54. package/types/services/organizations.d.ts +37 -36
  55. package/types/services/projects.d.ts +36 -36
  56. package/types/services/sites.d.ts +15 -15
  57. package/types/services/storage.d.ts +30 -30
  58. package/types/services/tables-db.d.ts +50 -50
  59. package/types/services/users.d.ts +24 -24
@@ -209,30 +209,30 @@ export class TablesDB {
209
209
  /**
210
210
  * Create a new transaction.
211
211
  *
212
- * @param {number | bigint} params.ttl - Seconds before the transaction expires.
212
+ * @param {number} params.ttl - Seconds before the transaction expires.
213
213
  * @throws {AppwriteException}
214
214
  * @returns {Promise<Models.Transaction>}
215
215
  */
216
- createTransaction(params?: { ttl?: number | bigint }): Promise<Models.Transaction>;
216
+ createTransaction(params?: { ttl?: number }): Promise<Models.Transaction>;
217
217
  /**
218
218
  * Create a new transaction.
219
219
  *
220
- * @param {number | bigint} ttl - Seconds before the transaction expires.
220
+ * @param {number} ttl - Seconds before the transaction expires.
221
221
  * @throws {AppwriteException}
222
222
  * @returns {Promise<Models.Transaction>}
223
223
  * @deprecated Use the object parameter style method for a better developer experience.
224
224
  */
225
- createTransaction(ttl?: number | bigint): Promise<Models.Transaction>;
225
+ createTransaction(ttl?: number): Promise<Models.Transaction>;
226
226
  createTransaction(
227
- paramsOrFirst?: { ttl?: number | bigint } | number | bigint
227
+ paramsOrFirst?: { ttl?: number } | number
228
228
  ): Promise<Models.Transaction> {
229
- let params: { ttl?: number | bigint };
229
+ let params: { ttl?: number };
230
230
 
231
231
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
232
- params = (paramsOrFirst || {}) as { ttl?: number | bigint };
232
+ params = (paramsOrFirst || {}) as { ttl?: number };
233
233
  } else {
234
234
  params = {
235
- ttl: paramsOrFirst as number | bigint
235
+ ttl: paramsOrFirst as number
236
236
  };
237
237
  }
238
238
 
@@ -1964,14 +1964,14 @@ export class TablesDB {
1964
1964
  * @param {string} params.tableId - Table ID.
1965
1965
  * @param {string} params.key - Column Key.
1966
1966
  * @param {boolean} params.required - Is column required?
1967
- * @param {number | bigint} params.min - Minimum value
1968
- * @param {number | bigint} params.max - Maximum value
1969
- * @param {number | bigint} params.xdefault - Default value. Cannot be set when required.
1967
+ * @param {number} params.min - Minimum value
1968
+ * @param {number} params.max - Maximum value
1969
+ * @param {number} params.xdefault - Default value. Cannot be set when required.
1970
1970
  * @param {boolean} params.array - Is column an array?
1971
1971
  * @throws {AppwriteException}
1972
1972
  * @returns {Promise<Models.ColumnFloat>}
1973
1973
  */
1974
- createFloatColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean }): Promise<Models.ColumnFloat>;
1974
+ createFloatColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean }): Promise<Models.ColumnFloat>;
1975
1975
  /**
1976
1976
  * Create a float column. Optionally, minimum and maximum values can be provided.
1977
1977
  *
@@ -1980,32 +1980,32 @@ export class TablesDB {
1980
1980
  * @param {string} tableId - Table ID.
1981
1981
  * @param {string} key - Column Key.
1982
1982
  * @param {boolean} required - Is column required?
1983
- * @param {number | bigint} min - Minimum value
1984
- * @param {number | bigint} max - Maximum value
1985
- * @param {number | bigint} xdefault - Default value. Cannot be set when required.
1983
+ * @param {number} min - Minimum value
1984
+ * @param {number} max - Maximum value
1985
+ * @param {number} xdefault - Default value. Cannot be set when required.
1986
1986
  * @param {boolean} array - Is column an array?
1987
1987
  * @throws {AppwriteException}
1988
1988
  * @returns {Promise<Models.ColumnFloat>}
1989
1989
  * @deprecated Use the object parameter style method for a better developer experience.
1990
1990
  */
1991
- createFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean): Promise<Models.ColumnFloat>;
1991
+ createFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.ColumnFloat>;
1992
1992
  createFloatColumn(
1993
- paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean } | string,
1994
- ...rest: [(string)?, (string)?, (boolean)?, (number | bigint)?, (number | bigint)?, (number | bigint)?, (boolean)?]
1993
+ paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean } | string,
1994
+ ...rest: [(string)?, (string)?, (boolean)?, (number)?, (number)?, (number)?, (boolean)?]
1995
1995
  ): Promise<Models.ColumnFloat> {
1996
- let params: { databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean };
1996
+ let params: { databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean };
1997
1997
 
1998
1998
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1999
- params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean };
1999
+ params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean };
2000
2000
  } else {
2001
2001
  params = {
2002
2002
  databaseId: paramsOrFirst as string,
2003
2003
  tableId: rest[0] as string,
2004
2004
  key: rest[1] as string,
2005
2005
  required: rest[2] as boolean,
2006
- min: rest[3] as number | bigint,
2007
- max: rest[4] as number | bigint,
2008
- xdefault: rest[5] as number | bigint,
2006
+ min: rest[3] as number,
2007
+ max: rest[4] as number,
2008
+ xdefault: rest[5] as number,
2009
2009
  array: rest[6] as boolean
2010
2010
  };
2011
2011
  }
@@ -2074,14 +2074,14 @@ export class TablesDB {
2074
2074
  * @param {string} params.tableId - Table ID.
2075
2075
  * @param {string} params.key - Column Key.
2076
2076
  * @param {boolean} params.required - Is column required?
2077
- * @param {number | bigint} params.xdefault - Default value. Cannot be set when required.
2078
- * @param {number | bigint} params.min - Minimum value
2079
- * @param {number | bigint} params.max - Maximum value
2077
+ * @param {number} params.xdefault - Default value. Cannot be set when required.
2078
+ * @param {number} params.min - Minimum value
2079
+ * @param {number} params.max - Maximum value
2080
2080
  * @param {string} params.newKey - New Column Key.
2081
2081
  * @throws {AppwriteException}
2082
2082
  * @returns {Promise<Models.ColumnFloat>}
2083
2083
  */
2084
- updateFloatColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string }): Promise<Models.ColumnFloat>;
2084
+ updateFloatColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string }): Promise<Models.ColumnFloat>;
2085
2085
  /**
2086
2086
  * Update a float column. Changing the `default` value will not update already existing rows.
2087
2087
  *
@@ -2090,32 +2090,32 @@ export class TablesDB {
2090
2090
  * @param {string} tableId - Table ID.
2091
2091
  * @param {string} key - Column Key.
2092
2092
  * @param {boolean} required - Is column required?
2093
- * @param {number | bigint} xdefault - Default value. Cannot be set when required.
2094
- * @param {number | bigint} min - Minimum value
2095
- * @param {number | bigint} max - Maximum value
2093
+ * @param {number} xdefault - Default value. Cannot be set when required.
2094
+ * @param {number} min - Minimum value
2095
+ * @param {number} max - Maximum value
2096
2096
  * @param {string} newKey - New Column Key.
2097
2097
  * @throws {AppwriteException}
2098
2098
  * @returns {Promise<Models.ColumnFloat>}
2099
2099
  * @deprecated Use the object parameter style method for a better developer experience.
2100
2100
  */
2101
- updateFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string): Promise<Models.ColumnFloat>;
2101
+ updateFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.ColumnFloat>;
2102
2102
  updateFloatColumn(
2103
- paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string } | string,
2104
- ...rest: [(string)?, (string)?, (boolean)?, (number | bigint)?, (number | bigint)?, (number | bigint)?, (string)?]
2103
+ paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string } | string,
2104
+ ...rest: [(string)?, (string)?, (boolean)?, (number)?, (number)?, (number)?, (string)?]
2105
2105
  ): Promise<Models.ColumnFloat> {
2106
- let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string };
2106
+ let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string };
2107
2107
 
2108
2108
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2109
- params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string };
2109
+ params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string };
2110
2110
  } else {
2111
2111
  params = {
2112
2112
  databaseId: paramsOrFirst as string,
2113
2113
  tableId: rest[0] as string,
2114
2114
  key: rest[1] as string,
2115
2115
  required: rest[2] as boolean,
2116
- xdefault: rest[3] as number | bigint,
2117
- min: rest[4] as number | bigint,
2118
- max: rest[5] as number | bigint,
2116
+ xdefault: rest[3] as number,
2117
+ min: rest[4] as number,
2118
+ max: rest[5] as number,
2119
2119
  newKey: rest[6] as string
2120
2120
  };
2121
2121
  }
@@ -3239,7 +3239,7 @@ export class TablesDB {
3239
3239
  * @param {string} params.databaseId - Database ID.
3240
3240
  * @param {string} params.tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
3241
3241
  * @param {string} params.key - Column Key.
3242
- * @param {number | bigint} params.size - Column size for text columns, in number of characters.
3242
+ * @param {number} params.size - Column size for text columns, in number of characters.
3243
3243
  * @param {boolean} params.required - Is column required?
3244
3244
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
3245
3245
  * @param {boolean} params.array - Is column an array?
@@ -3247,7 +3247,7 @@ export class TablesDB {
3247
3247
  * @throws {AppwriteException}
3248
3248
  * @returns {Promise<Models.ColumnString>}
3249
3249
  */
3250
- createStringColumn(params: { databaseId: string, tableId: string, key: string, size: number | bigint, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean }): Promise<Models.ColumnString>;
3250
+ createStringColumn(params: { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean }): Promise<Models.ColumnString>;
3251
3251
  /**
3252
3252
  * Create a string column.
3253
3253
  *
@@ -3255,7 +3255,7 @@ export class TablesDB {
3255
3255
  * @param {string} databaseId - Database ID.
3256
3256
  * @param {string} tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
3257
3257
  * @param {string} key - Column Key.
3258
- * @param {number | bigint} size - Column size for text columns, in number of characters.
3258
+ * @param {number} size - Column size for text columns, in number of characters.
3259
3259
  * @param {boolean} required - Is column required?
3260
3260
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
3261
3261
  * @param {boolean} array - Is column an array?
@@ -3264,21 +3264,21 @@ export class TablesDB {
3264
3264
  * @returns {Promise<Models.ColumnString>}
3265
3265
  * @deprecated Use the object parameter style method for a better developer experience.
3266
3266
  */
3267
- createStringColumn(databaseId: string, tableId: string, key: string, size: number | bigint, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnString>;
3267
+ createStringColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnString>;
3268
3268
  createStringColumn(
3269
- paramsOrFirst: { databaseId: string, tableId: string, key: string, size: number | bigint, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean } | string,
3270
- ...rest: [(string)?, (string)?, (number | bigint)?, (boolean)?, (string)?, (boolean)?, (boolean)?]
3269
+ paramsOrFirst: { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean } | string,
3270
+ ...rest: [(string)?, (string)?, (number)?, (boolean)?, (string)?, (boolean)?, (boolean)?]
3271
3271
  ): Promise<Models.ColumnString> {
3272
- let params: { databaseId: string, tableId: string, key: string, size: number | bigint, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
3272
+ let params: { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
3273
3273
 
3274
3274
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3275
- params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, size: number | bigint, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
3275
+ params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
3276
3276
  } else {
3277
3277
  params = {
3278
3278
  databaseId: paramsOrFirst as string,
3279
3279
  tableId: rest[0] as string,
3280
3280
  key: rest[1] as string,
3281
- size: rest[2] as number | bigint,
3281
+ size: rest[2] as number,
3282
3282
  required: rest[3] as boolean,
3283
3283
  xdefault: rest[4] as string,
3284
3284
  array: rest[5] as boolean,
@@ -3354,12 +3354,12 @@ export class TablesDB {
3354
3354
  * @param {string} params.key - Column Key.
3355
3355
  * @param {boolean} params.required - Is column required?
3356
3356
  * @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
3357
- * @param {number | bigint} params.size - Maximum size of the string column.
3357
+ * @param {number} params.size - Maximum size of the string column.
3358
3358
  * @param {string} params.newKey - New Column Key.
3359
3359
  * @throws {AppwriteException}
3360
3360
  * @returns {Promise<Models.ColumnString>}
3361
3361
  */
3362
- updateStringColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number | bigint, newKey?: string }): Promise<Models.ColumnString>;
3362
+ updateStringColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string }): Promise<Models.ColumnString>;
3363
3363
  /**
3364
3364
  * Update a string column. Changing the `default` value will not update already existing rows.
3365
3365
  *
@@ -3369,21 +3369,21 @@ export class TablesDB {
3369
3369
  * @param {string} key - Column Key.
3370
3370
  * @param {boolean} required - Is column required?
3371
3371
  * @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
3372
- * @param {number | bigint} size - Maximum size of the string column.
3372
+ * @param {number} size - Maximum size of the string column.
3373
3373
  * @param {string} newKey - New Column Key.
3374
3374
  * @throws {AppwriteException}
3375
3375
  * @returns {Promise<Models.ColumnString>}
3376
3376
  * @deprecated Use the object parameter style method for a better developer experience.
3377
3377
  */
3378
- updateStringColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number | bigint, newKey?: string): Promise<Models.ColumnString>;
3378
+ updateStringColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string): Promise<Models.ColumnString>;
3379
3379
  updateStringColumn(
3380
- paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number | bigint, newKey?: string } | string,
3381
- ...rest: [(string)?, (string)?, (boolean)?, (string)?, (number | bigint)?, (string)?]
3380
+ paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string } | string,
3381
+ ...rest: [(string)?, (string)?, (boolean)?, (string)?, (number)?, (string)?]
3382
3382
  ): Promise<Models.ColumnString> {
3383
- let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number | bigint, newKey?: string };
3383
+ let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string };
3384
3384
 
3385
3385
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3386
- params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number | bigint, newKey?: string };
3386
+ params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string };
3387
3387
  } else {
3388
3388
  params = {
3389
3389
  databaseId: paramsOrFirst as string,
@@ -3391,7 +3391,7 @@ export class TablesDB {
3391
3391
  key: rest[1] as string,
3392
3392
  required: rest[2] as boolean,
3393
3393
  xdefault: rest[3] as string,
3394
- size: rest[4] as number | bigint,
3394
+ size: rest[4] as number,
3395
3395
  newKey: rest[5] as string
3396
3396
  };
3397
3397
  }
@@ -3939,11 +3939,11 @@ export class TablesDB {
3939
3939
  * @param {IndexType} params.type - Index type.
3940
3940
  * @param {string[]} params.columns - Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.
3941
3941
  * @param {string[]} params.orders - Array of index orders. Maximum of 100 orders are allowed.
3942
- * @param {number | bigint[]} params.lengths - Length of index. Maximum of 100
3942
+ * @param {number[]} params.lengths - Length of index. Maximum of 100
3943
3943
  * @throws {AppwriteException}
3944
3944
  * @returns {Promise<Models.ColumnIndex>}
3945
3945
  */
3946
- createIndex(params: { databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number | bigint[] }): Promise<Models.ColumnIndex>;
3946
+ createIndex(params: { databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number[] }): Promise<Models.ColumnIndex>;
3947
3947
  /**
3948
3948
  * Creates an index on the columns listed. Your index should include all the columns you will query in a single request.
3949
3949
  * Type can be `key`, `fulltext`, or `unique`.
@@ -3954,20 +3954,20 @@ export class TablesDB {
3954
3954
  * @param {IndexType} type - Index type.
3955
3955
  * @param {string[]} columns - Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.
3956
3956
  * @param {string[]} orders - Array of index orders. Maximum of 100 orders are allowed.
3957
- * @param {number | bigint[]} lengths - Length of index. Maximum of 100
3957
+ * @param {number[]} lengths - Length of index. Maximum of 100
3958
3958
  * @throws {AppwriteException}
3959
3959
  * @returns {Promise<Models.ColumnIndex>}
3960
3960
  * @deprecated Use the object parameter style method for a better developer experience.
3961
3961
  */
3962
- createIndex(databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number | bigint[]): Promise<Models.ColumnIndex>;
3962
+ createIndex(databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number[]): Promise<Models.ColumnIndex>;
3963
3963
  createIndex(
3964
- paramsOrFirst: { databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number | bigint[] } | string,
3965
- ...rest: [(string)?, (string)?, (IndexType)?, (string[])?, (string[])?, (number | bigint[])?]
3964
+ paramsOrFirst: { databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number[] } | string,
3965
+ ...rest: [(string)?, (string)?, (IndexType)?, (string[])?, (string[])?, (number[])?]
3966
3966
  ): Promise<Models.ColumnIndex> {
3967
- let params: { databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number | bigint[] };
3967
+ let params: { databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number[] };
3968
3968
 
3969
3969
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3970
- params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number | bigint[] };
3970
+ params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number[] };
3971
3971
  } else {
3972
3972
  params = {
3973
3973
  databaseId: paramsOrFirst as string,
@@ -3976,7 +3976,7 @@ export class TablesDB {
3976
3976
  type: rest[2] as IndexType,
3977
3977
  columns: rest[3] as string[],
3978
3978
  orders: rest[4] as string[],
3979
- lengths: rest[5] as number | bigint[]
3979
+ lengths: rest[5] as number[]
3980
3980
  };
3981
3981
  }
3982
3982
 
@@ -5129,13 +5129,13 @@ export class TablesDB {
5129
5129
  * @param {string} params.tableId - Table ID.
5130
5130
  * @param {string} params.rowId - Row ID.
5131
5131
  * @param {string} params.column - Column key.
5132
- * @param {number | bigint} params.value - Value to increment the column by. The value must be a number.
5133
- * @param {number | bigint} params.min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
5132
+ * @param {number} params.value - Value to increment the column by. The value must be a number.
5133
+ * @param {number} params.min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
5134
5134
  * @param {string} params.transactionId - Transaction ID for staging the operation.
5135
5135
  * @throws {AppwriteException}
5136
5136
  * @returns {Promise<Row>}
5137
5137
  */
5138
- decrementRowColumn<Row extends Models.Row = Models.DefaultRow>(params: { databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, min?: number | bigint, transactionId?: string }): Promise<Row>;
5138
+ decrementRowColumn<Row extends Models.Row = Models.DefaultRow>(params: { databaseId: string, tableId: string, rowId: string, column: string, value?: number, min?: number, transactionId?: string }): Promise<Row>;
5139
5139
  /**
5140
5140
  * Decrement a specific column of a row by a given value.
5141
5141
  *
@@ -5143,30 +5143,30 @@ export class TablesDB {
5143
5143
  * @param {string} tableId - Table ID.
5144
5144
  * @param {string} rowId - Row ID.
5145
5145
  * @param {string} column - Column key.
5146
- * @param {number | bigint} value - Value to increment the column by. The value must be a number.
5147
- * @param {number | bigint} min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
5146
+ * @param {number} value - Value to increment the column by. The value must be a number.
5147
+ * @param {number} min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
5148
5148
  * @param {string} transactionId - Transaction ID for staging the operation.
5149
5149
  * @throws {AppwriteException}
5150
5150
  * @returns {Promise<Row>}
5151
5151
  * @deprecated Use the object parameter style method for a better developer experience.
5152
5152
  */
5153
- decrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, min?: number | bigint, transactionId?: string): Promise<Row>;
5153
+ decrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number, min?: number, transactionId?: string): Promise<Row>;
5154
5154
  decrementRowColumn<Row extends Models.Row = Models.DefaultRow>(
5155
- paramsOrFirst: { databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, min?: number | bigint, transactionId?: string } | string,
5156
- ...rest: [(string)?, (string)?, (string)?, (number | bigint)?, (number | bigint)?, (string)?]
5155
+ paramsOrFirst: { databaseId: string, tableId: string, rowId: string, column: string, value?: number, min?: number, transactionId?: string } | string,
5156
+ ...rest: [(string)?, (string)?, (string)?, (number)?, (number)?, (string)?]
5157
5157
  ): Promise<Row> {
5158
- let params: { databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, min?: number | bigint, transactionId?: string };
5158
+ let params: { databaseId: string, tableId: string, rowId: string, column: string, value?: number, min?: number, transactionId?: string };
5159
5159
 
5160
5160
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5161
- params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, min?: number | bigint, transactionId?: string };
5161
+ params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, rowId: string, column: string, value?: number, min?: number, transactionId?: string };
5162
5162
  } else {
5163
5163
  params = {
5164
5164
  databaseId: paramsOrFirst as string,
5165
5165
  tableId: rest[0] as string,
5166
5166
  rowId: rest[1] as string,
5167
5167
  column: rest[2] as string,
5168
- value: rest[3] as number | bigint,
5169
- min: rest[4] as number | bigint,
5168
+ value: rest[3] as number,
5169
+ min: rest[4] as number,
5170
5170
  transactionId: rest[5] as string
5171
5171
  };
5172
5172
  }
@@ -5224,13 +5224,13 @@ export class TablesDB {
5224
5224
  * @param {string} params.tableId - Table ID.
5225
5225
  * @param {string} params.rowId - Row ID.
5226
5226
  * @param {string} params.column - Column key.
5227
- * @param {number | bigint} params.value - Value to increment the column by. The value must be a number.
5228
- * @param {number | bigint} params.max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
5227
+ * @param {number} params.value - Value to increment the column by. The value must be a number.
5228
+ * @param {number} params.max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
5229
5229
  * @param {string} params.transactionId - Transaction ID for staging the operation.
5230
5230
  * @throws {AppwriteException}
5231
5231
  * @returns {Promise<Row>}
5232
5232
  */
5233
- incrementRowColumn<Row extends Models.Row = Models.DefaultRow>(params: { databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, max?: number | bigint, transactionId?: string }): Promise<Row>;
5233
+ incrementRowColumn<Row extends Models.Row = Models.DefaultRow>(params: { databaseId: string, tableId: string, rowId: string, column: string, value?: number, max?: number, transactionId?: string }): Promise<Row>;
5234
5234
  /**
5235
5235
  * Increment a specific column of a row by a given value.
5236
5236
  *
@@ -5238,30 +5238,30 @@ export class TablesDB {
5238
5238
  * @param {string} tableId - Table ID.
5239
5239
  * @param {string} rowId - Row ID.
5240
5240
  * @param {string} column - Column key.
5241
- * @param {number | bigint} value - Value to increment the column by. The value must be a number.
5242
- * @param {number | bigint} max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
5241
+ * @param {number} value - Value to increment the column by. The value must be a number.
5242
+ * @param {number} max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
5243
5243
  * @param {string} transactionId - Transaction ID for staging the operation.
5244
5244
  * @throws {AppwriteException}
5245
5245
  * @returns {Promise<Row>}
5246
5246
  * @deprecated Use the object parameter style method for a better developer experience.
5247
5247
  */
5248
- incrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, max?: number | bigint, transactionId?: string): Promise<Row>;
5248
+ incrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number, max?: number, transactionId?: string): Promise<Row>;
5249
5249
  incrementRowColumn<Row extends Models.Row = Models.DefaultRow>(
5250
- paramsOrFirst: { databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, max?: number | bigint, transactionId?: string } | string,
5251
- ...rest: [(string)?, (string)?, (string)?, (number | bigint)?, (number | bigint)?, (string)?]
5250
+ paramsOrFirst: { databaseId: string, tableId: string, rowId: string, column: string, value?: number, max?: number, transactionId?: string } | string,
5251
+ ...rest: [(string)?, (string)?, (string)?, (number)?, (number)?, (string)?]
5252
5252
  ): Promise<Row> {
5253
- let params: { databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, max?: number | bigint, transactionId?: string };
5253
+ let params: { databaseId: string, tableId: string, rowId: string, column: string, value?: number, max?: number, transactionId?: string };
5254
5254
 
5255
5255
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5256
- params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, max?: number | bigint, transactionId?: string };
5256
+ params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, rowId: string, column: string, value?: number, max?: number, transactionId?: string };
5257
5257
  } else {
5258
5258
  params = {
5259
5259
  databaseId: paramsOrFirst as string,
5260
5260
  tableId: rest[0] as string,
5261
5261
  rowId: rest[1] as string,
5262
5262
  column: rest[2] as string,
5263
- value: rest[3] as number | bigint,
5264
- max: rest[4] as number | bigint,
5263
+ value: rest[3] as number,
5264
+ max: rest[4] as number,
5265
5265
  transactionId: rest[5] as string
5266
5266
  };
5267
5267
  }
@@ -621,15 +621,15 @@ export class Users {
621
621
  * @param {string} params.email - User email.
622
622
  * @param {string} params.password - User password hashed using Scrypt.
623
623
  * @param {string} params.passwordSalt - Optional salt used to hash password.
624
- * @param {number | bigint} params.passwordCpu - Optional CPU cost used to hash password.
625
- * @param {number | bigint} params.passwordMemory - Optional memory cost used to hash password.
626
- * @param {number | bigint} params.passwordParallel - Optional parallelization cost used to hash password.
627
- * @param {number | bigint} params.passwordLength - Optional hash length used to hash password.
624
+ * @param {number} params.passwordCpu - Optional CPU cost used to hash password.
625
+ * @param {number} params.passwordMemory - Optional memory cost used to hash password.
626
+ * @param {number} params.passwordParallel - Optional parallelization cost used to hash password.
627
+ * @param {number} params.passwordLength - Optional hash length used to hash password.
628
628
  * @param {string} params.name - User name. Max length: 128 chars.
629
629
  * @throws {AppwriteException}
630
630
  * @returns {Promise<Models.User<Preferences>>}
631
631
  */
632
- createScryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number | bigint, passwordMemory: number | bigint, passwordParallel: number | bigint, passwordLength: number | bigint, name?: string }): Promise<Models.User<Preferences>>;
632
+ createScryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string }): Promise<Models.User<Preferences>>;
633
633
  /**
634
634
  * Create a new user. Password provided must be hashed with the [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
635
635
  *
@@ -637,34 +637,34 @@ export class Users {
637
637
  * @param {string} email - User email.
638
638
  * @param {string} password - User password hashed using Scrypt.
639
639
  * @param {string} passwordSalt - Optional salt used to hash password.
640
- * @param {number | bigint} passwordCpu - Optional CPU cost used to hash password.
641
- * @param {number | bigint} passwordMemory - Optional memory cost used to hash password.
642
- * @param {number | bigint} passwordParallel - Optional parallelization cost used to hash password.
643
- * @param {number | bigint} passwordLength - Optional hash length used to hash password.
640
+ * @param {number} passwordCpu - Optional CPU cost used to hash password.
641
+ * @param {number} passwordMemory - Optional memory cost used to hash password.
642
+ * @param {number} passwordParallel - Optional parallelization cost used to hash password.
643
+ * @param {number} passwordLength - Optional hash length used to hash password.
644
644
  * @param {string} name - User name. Max length: 128 chars.
645
645
  * @throws {AppwriteException}
646
646
  * @returns {Promise<Models.User<Preferences>>}
647
647
  * @deprecated Use the object parameter style method for a better developer experience.
648
648
  */
649
- createScryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number | bigint, passwordMemory: number | bigint, passwordParallel: number | bigint, passwordLength: number | bigint, name?: string): Promise<Models.User<Preferences>>;
649
+ createScryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string): Promise<Models.User<Preferences>>;
650
650
  createScryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(
651
- paramsOrFirst: { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number | bigint, passwordMemory: number | bigint, passwordParallel: number | bigint, passwordLength: number | bigint, name?: string } | string,
652
- ...rest: [(string)?, (string)?, (string)?, (number | bigint)?, (number | bigint)?, (number | bigint)?, (number | bigint)?, (string)?]
651
+ paramsOrFirst: { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string } | string,
652
+ ...rest: [(string)?, (string)?, (string)?, (number)?, (number)?, (number)?, (number)?, (string)?]
653
653
  ): Promise<Models.User<Preferences>> {
654
- let params: { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number | bigint, passwordMemory: number | bigint, passwordParallel: number | bigint, passwordLength: number | bigint, name?: string };
654
+ let params: { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string };
655
655
 
656
656
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
657
- params = (paramsOrFirst || {}) as { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number | bigint, passwordMemory: number | bigint, passwordParallel: number | bigint, passwordLength: number | bigint, name?: string };
657
+ params = (paramsOrFirst || {}) as { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string };
658
658
  } else {
659
659
  params = {
660
660
  userId: paramsOrFirst as string,
661
661
  email: rest[0] as string,
662
662
  password: rest[1] as string,
663
663
  passwordSalt: rest[2] as string,
664
- passwordCpu: rest[3] as number | bigint,
665
- passwordMemory: rest[4] as number | bigint,
666
- passwordParallel: rest[5] as number | bigint,
667
- passwordLength: rest[6] as number | bigint,
664
+ passwordCpu: rest[3] as number,
665
+ passwordMemory: rest[4] as number,
666
+ passwordParallel: rest[5] as number,
667
+ passwordLength: rest[6] as number,
668
668
  name: rest[7] as string
669
669
  };
670
670
  }
@@ -1174,35 +1174,35 @@ export class Users {
1174
1174
  *
1175
1175
  * @param {string} params.userId - User ID.
1176
1176
  * @param {string} params.sessionId - Session ID. Use the string 'recent' to use the most recent session. Defaults to the most recent session.
1177
- * @param {number | bigint} params.duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
1177
+ * @param {number} params.duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
1178
1178
  * @throws {AppwriteException}
1179
1179
  * @returns {Promise<Models.Jwt>}
1180
1180
  */
1181
- createJWT(params: { userId: string, sessionId?: string, duration?: number | bigint }): Promise<Models.Jwt>;
1181
+ createJWT(params: { userId: string, sessionId?: string, duration?: number }): Promise<Models.Jwt>;
1182
1182
  /**
1183
1183
  * Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.
1184
1184
  *
1185
1185
  * @param {string} userId - User ID.
1186
1186
  * @param {string} sessionId - Session ID. Use the string 'recent' to use the most recent session. Defaults to the most recent session.
1187
- * @param {number | bigint} duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
1187
+ * @param {number} duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
1188
1188
  * @throws {AppwriteException}
1189
1189
  * @returns {Promise<Models.Jwt>}
1190
1190
  * @deprecated Use the object parameter style method for a better developer experience.
1191
1191
  */
1192
- createJWT(userId: string, sessionId?: string, duration?: number | bigint): Promise<Models.Jwt>;
1192
+ createJWT(userId: string, sessionId?: string, duration?: number): Promise<Models.Jwt>;
1193
1193
  createJWT(
1194
- paramsOrFirst: { userId: string, sessionId?: string, duration?: number | bigint } | string,
1195
- ...rest: [(string)?, (number | bigint)?]
1194
+ paramsOrFirst: { userId: string, sessionId?: string, duration?: number } | string,
1195
+ ...rest: [(string)?, (number)?]
1196
1196
  ): Promise<Models.Jwt> {
1197
- let params: { userId: string, sessionId?: string, duration?: number | bigint };
1197
+ let params: { userId: string, sessionId?: string, duration?: number };
1198
1198
 
1199
1199
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1200
- params = (paramsOrFirst || {}) as { userId: string, sessionId?: string, duration?: number | bigint };
1200
+ params = (paramsOrFirst || {}) as { userId: string, sessionId?: string, duration?: number };
1201
1201
  } else {
1202
1202
  params = {
1203
1203
  userId: paramsOrFirst as string,
1204
1204
  sessionId: rest[0] as string,
1205
- duration: rest[1] as number | bigint
1205
+ duration: rest[1] as number
1206
1206
  };
1207
1207
  }
1208
1208
 
@@ -3067,37 +3067,37 @@ export class Users {
3067
3067
  *
3068
3068
  *
3069
3069
  * @param {string} params.userId - User ID.
3070
- * @param {number | bigint} params.length - Token length in characters. The default length is 6 characters
3071
- * @param {number | bigint} params.expire - Token expiration period in seconds. The default expiration is 15 minutes.
3070
+ * @param {number} params.length - Token length in characters. The default length is 6 characters
3071
+ * @param {number} params.expire - Token expiration period in seconds. The default expiration is 15 minutes.
3072
3072
  * @throws {AppwriteException}
3073
3073
  * @returns {Promise<Models.Token>}
3074
3074
  */
3075
- createToken(params: { userId: string, length?: number | bigint, expire?: number | bigint }): Promise<Models.Token>;
3075
+ createToken(params: { userId: string, length?: number, expire?: number }): Promise<Models.Token>;
3076
3076
  /**
3077
3077
  * Returns a token with a secret key for creating a session. Use the user ID and secret and submit a request to the [PUT /account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process.
3078
3078
  *
3079
3079
  *
3080
3080
  * @param {string} userId - User ID.
3081
- * @param {number | bigint} length - Token length in characters. The default length is 6 characters
3082
- * @param {number | bigint} expire - Token expiration period in seconds. The default expiration is 15 minutes.
3081
+ * @param {number} length - Token length in characters. The default length is 6 characters
3082
+ * @param {number} expire - Token expiration period in seconds. The default expiration is 15 minutes.
3083
3083
  * @throws {AppwriteException}
3084
3084
  * @returns {Promise<Models.Token>}
3085
3085
  * @deprecated Use the object parameter style method for a better developer experience.
3086
3086
  */
3087
- createToken(userId: string, length?: number | bigint, expire?: number | bigint): Promise<Models.Token>;
3087
+ createToken(userId: string, length?: number, expire?: number): Promise<Models.Token>;
3088
3088
  createToken(
3089
- paramsOrFirst: { userId: string, length?: number | bigint, expire?: number | bigint } | string,
3090
- ...rest: [(number | bigint)?, (number | bigint)?]
3089
+ paramsOrFirst: { userId: string, length?: number, expire?: number } | string,
3090
+ ...rest: [(number)?, (number)?]
3091
3091
  ): Promise<Models.Token> {
3092
- let params: { userId: string, length?: number | bigint, expire?: number | bigint };
3092
+ let params: { userId: string, length?: number, expire?: number };
3093
3093
 
3094
3094
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3095
- params = (paramsOrFirst || {}) as { userId: string, length?: number | bigint, expire?: number | bigint };
3095
+ params = (paramsOrFirst || {}) as { userId: string, length?: number, expire?: number };
3096
3096
  } else {
3097
3097
  params = {
3098
3098
  userId: paramsOrFirst as string,
3099
- length: rest[0] as number | bigint,
3100
- expire: rest[1] as number | bigint
3099
+ length: rest[0] as number,
3100
+ expire: rest[1] as number
3101
3101
  };
3102
3102
  }
3103
3103
 
@@ -0,0 +1,17 @@
1
+ export declare enum BillingPlan {
2
+ Tier0 = "tier-0",
3
+ Tier1 = "tier-1",
4
+ Tier2 = "tier-2",
5
+ Imaginetier0 = "imagine-tier-0",
6
+ Imaginetier1 = "imagine-tier-1",
7
+ Imaginetier150 = "imagine-tier-1-50",
8
+ Imaginetier1100 = "imagine-tier-1-100",
9
+ Imaginetier1200 = "imagine-tier-1-200",
10
+ Imaginetier1290 = "imagine-tier-1-290",
11
+ Imaginetier1480 = "imagine-tier-1-480",
12
+ Imaginetier1700 = "imagine-tier-1-700",
13
+ Imaginetier1900 = "imagine-tier-1-900",
14
+ Imaginetier11100 = "imagine-tier-1-1100",
15
+ Imaginetier11650 = "imagine-tier-1-1650",
16
+ Imaginetier12200 = "imagine-tier-1-2200"
17
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum FilterType {
2
+ Premium = "premium",
3
+ Suggestion = "suggestion"
4
+ }