node-appwrite 21.1.0 → 22.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.
Files changed (119) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -2
  3. package/dist/client.js +37 -5
  4. package/dist/client.js.map +1 -1
  5. package/dist/client.mjs +1505 -5
  6. package/dist/client.mjs.map +1 -1
  7. package/dist/enums/browser-permission.d.mts +24 -0
  8. package/dist/enums/browser-permission.d.ts +24 -0
  9. package/dist/enums/browser-permission.js +29 -0
  10. package/dist/enums/browser-permission.js.map +1 -0
  11. package/dist/enums/browser-permission.mjs +28 -0
  12. package/dist/enums/browser-permission.mjs.map +1 -0
  13. package/dist/enums/deployment-status.d.mts +1 -0
  14. package/dist/enums/deployment-status.d.ts +1 -0
  15. package/dist/enums/deployment-status.js +1 -0
  16. package/dist/enums/deployment-status.js.map +1 -1
  17. package/dist/enums/deployment-status.mjs +1 -0
  18. package/dist/enums/deployment-status.mjs.map +1 -1
  19. package/dist/enums/name.d.mts +1 -0
  20. package/dist/enums/name.d.ts +1 -0
  21. package/dist/enums/name.js +1 -0
  22. package/dist/enums/name.js.map +1 -1
  23. package/dist/enums/name.mjs +1 -0
  24. package/dist/enums/name.mjs.map +1 -1
  25. package/dist/enums/o-auth-provider.d.mts +1 -2
  26. package/dist/enums/o-auth-provider.d.ts +1 -2
  27. package/dist/enums/o-auth-provider.js +0 -1
  28. package/dist/enums/o-auth-provider.js.map +1 -1
  29. package/dist/enums/o-auth-provider.mjs +0 -1
  30. package/dist/enums/o-auth-provider.mjs.map +1 -1
  31. package/dist/enums/order-by.d.mts +6 -0
  32. package/dist/enums/order-by.d.ts +6 -0
  33. package/dist/enums/order-by.js +11 -0
  34. package/dist/enums/order-by.js.map +1 -0
  35. package/dist/enums/order-by.mjs +10 -0
  36. package/dist/enums/order-by.mjs.map +1 -0
  37. package/dist/enums/roles.d.mts +7 -0
  38. package/dist/enums/roles.d.ts +7 -0
  39. package/dist/enums/roles.js +12 -0
  40. package/dist/enums/roles.js.map +1 -0
  41. package/dist/enums/roles.mjs +11 -0
  42. package/dist/enums/roles.mjs.map +1 -0
  43. package/dist/enums/scopes.d.mts +59 -0
  44. package/dist/enums/scopes.d.ts +59 -0
  45. package/dist/enums/scopes.js +64 -0
  46. package/dist/enums/scopes.js.map +1 -0
  47. package/dist/enums/scopes.mjs +63 -0
  48. package/dist/enums/scopes.mjs.map +1 -0
  49. package/dist/index.d.mts +5 -2
  50. package/dist/index.d.ts +5 -2
  51. package/dist/index.js +21 -6
  52. package/dist/index.js.map +1 -1
  53. package/dist/index.mjs +5 -2
  54. package/dist/index.mjs.map +1 -1
  55. package/dist/models.d.mts +367 -6
  56. package/dist/models.d.ts +367 -6
  57. package/dist/query.d.mts +38 -8
  58. package/dist/query.d.ts +38 -8
  59. package/dist/query.js +48 -7
  60. package/dist/query.js.map +1 -1
  61. package/dist/query.mjs +44 -7
  62. package/dist/query.mjs.map +1 -1
  63. package/dist/services/account.d.mts +13 -1
  64. package/dist/services/account.d.ts +13 -1
  65. package/dist/services/account.js +13 -7
  66. package/dist/services/account.js.map +1 -1
  67. package/dist/services/account.mjs +13 -7
  68. package/dist/services/account.mjs.map +1 -1
  69. package/dist/services/avatars.d.mts +9 -8
  70. package/dist/services/avatars.d.ts +9 -8
  71. package/dist/services/avatars.js.map +1 -1
  72. package/dist/services/avatars.mjs.map +1 -1
  73. package/dist/services/databases.d.mts +329 -34
  74. package/dist/services/databases.d.ts +329 -34
  75. package/dist/services/databases.js +469 -9
  76. package/dist/services/databases.js.map +1 -1
  77. package/dist/services/databases.mjs +469 -9
  78. package/dist/services/databases.mjs.map +1 -1
  79. package/dist/services/functions.d.mts +9 -8
  80. package/dist/services/functions.d.ts +9 -8
  81. package/dist/services/functions.js.map +1 -1
  82. package/dist/services/functions.mjs.map +1 -1
  83. package/dist/services/graphql.js.map +1 -1
  84. package/dist/services/graphql.mjs.map +1 -1
  85. package/dist/services/health.d.mts +25 -6
  86. package/dist/services/health.d.ts +25 -6
  87. package/dist/services/health.js +27 -3
  88. package/dist/services/health.js.map +1 -1
  89. package/dist/services/health.mjs +27 -3
  90. package/dist/services/health.mjs.map +1 -1
  91. package/dist/services/messaging.js.map +1 -1
  92. package/dist/services/messaging.mjs.map +1 -1
  93. package/dist/services/sites.js.map +1 -1
  94. package/dist/services/sites.mjs.map +1 -1
  95. package/dist/services/storage.d.mts +12 -12
  96. package/dist/services/storage.d.ts +12 -12
  97. package/dist/services/storage.js.map +1 -1
  98. package/dist/services/storage.mjs.map +1 -1
  99. package/dist/services/tables-db.d.mts +329 -32
  100. package/dist/services/tables-db.d.ts +329 -32
  101. package/dist/services/tables-db.js +469 -6
  102. package/dist/services/tables-db.js.map +1 -1
  103. package/dist/services/tables-db.mjs +469 -6
  104. package/dist/services/tables-db.mjs.map +1 -1
  105. package/dist/services/teams.d.mts +9 -8
  106. package/dist/services/teams.d.ts +9 -8
  107. package/dist/services/teams.js.map +1 -1
  108. package/dist/services/teams.mjs.map +1 -1
  109. package/dist/services/tokens.js.map +1 -1
  110. package/dist/services/tokens.mjs.map +1 -1
  111. package/dist/services/users.js.map +1 -1
  112. package/dist/services/users.mjs.map +1 -1
  113. package/package.json +4 -2
  114. package/dist/enums/output.d.mts +0 -11
  115. package/dist/enums/output.d.ts +0 -11
  116. package/dist/enums/output.js +0 -16
  117. package/dist/enums/output.js.map +0 -1
  118. package/dist/enums/output.mjs +0 -15
  119. package/dist/enums/output.mjs.map +0 -1
package/dist/models.d.ts CHANGED
@@ -378,6 +378,19 @@ declare namespace Models {
378
378
  */
379
379
  variables: Variable[];
380
380
  };
381
+ /**
382
+ * Status List
383
+ */
384
+ export type HealthStatusList = {
385
+ /**
386
+ * Total number of statuses that matched your query.
387
+ */
388
+ total: number;
389
+ /**
390
+ * List of statuses.
391
+ */
392
+ statuses: HealthStatus[];
393
+ };
381
394
  /**
382
395
  * Locale codes list
383
396
  */
@@ -657,11 +670,11 @@ declare namespace Models {
657
670
  /**
658
671
  * Minimum value to enforce for new documents.
659
672
  */
660
- min?: number;
673
+ min?: number | bigint;
661
674
  /**
662
675
  * Maximum value to enforce for new documents.
663
676
  */
664
- max?: number;
677
+ max?: number | bigint;
665
678
  /**
666
679
  * Default value for attribute when not provided. Cannot be set when attribute is required.
667
680
  */
@@ -1170,6 +1183,174 @@ declare namespace Models {
1170
1183
  */
1171
1184
  default?: any[];
1172
1185
  };
1186
+ /**
1187
+ * AttributeVarchar
1188
+ */
1189
+ export type AttributeVarchar = {
1190
+ /**
1191
+ * Attribute Key.
1192
+ */
1193
+ key: string;
1194
+ /**
1195
+ * Attribute type.
1196
+ */
1197
+ type: string;
1198
+ /**
1199
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1200
+ */
1201
+ status: AttributeStatus;
1202
+ /**
1203
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1204
+ */
1205
+ error: string;
1206
+ /**
1207
+ * Is attribute required?
1208
+ */
1209
+ required: boolean;
1210
+ /**
1211
+ * Is attribute an array?
1212
+ */
1213
+ array?: boolean;
1214
+ /**
1215
+ * Attribute creation date in ISO 8601 format.
1216
+ */
1217
+ $createdAt: string;
1218
+ /**
1219
+ * Attribute update date in ISO 8601 format.
1220
+ */
1221
+ $updatedAt: string;
1222
+ /**
1223
+ * Attribute size.
1224
+ */
1225
+ size: number;
1226
+ /**
1227
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1228
+ */
1229
+ default?: string;
1230
+ };
1231
+ /**
1232
+ * AttributeText
1233
+ */
1234
+ export type AttributeText = {
1235
+ /**
1236
+ * Attribute Key.
1237
+ */
1238
+ key: string;
1239
+ /**
1240
+ * Attribute type.
1241
+ */
1242
+ type: string;
1243
+ /**
1244
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1245
+ */
1246
+ status: AttributeStatus;
1247
+ /**
1248
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1249
+ */
1250
+ error: string;
1251
+ /**
1252
+ * Is attribute required?
1253
+ */
1254
+ required: boolean;
1255
+ /**
1256
+ * Is attribute an array?
1257
+ */
1258
+ array?: boolean;
1259
+ /**
1260
+ * Attribute creation date in ISO 8601 format.
1261
+ */
1262
+ $createdAt: string;
1263
+ /**
1264
+ * Attribute update date in ISO 8601 format.
1265
+ */
1266
+ $updatedAt: string;
1267
+ /**
1268
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1269
+ */
1270
+ default?: string;
1271
+ };
1272
+ /**
1273
+ * AttributeMediumtext
1274
+ */
1275
+ export type AttributeMediumtext = {
1276
+ /**
1277
+ * Attribute Key.
1278
+ */
1279
+ key: string;
1280
+ /**
1281
+ * Attribute type.
1282
+ */
1283
+ type: string;
1284
+ /**
1285
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1286
+ */
1287
+ status: AttributeStatus;
1288
+ /**
1289
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1290
+ */
1291
+ error: string;
1292
+ /**
1293
+ * Is attribute required?
1294
+ */
1295
+ required: boolean;
1296
+ /**
1297
+ * Is attribute an array?
1298
+ */
1299
+ array?: boolean;
1300
+ /**
1301
+ * Attribute creation date in ISO 8601 format.
1302
+ */
1303
+ $createdAt: string;
1304
+ /**
1305
+ * Attribute update date in ISO 8601 format.
1306
+ */
1307
+ $updatedAt: string;
1308
+ /**
1309
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1310
+ */
1311
+ default?: string;
1312
+ };
1313
+ /**
1314
+ * AttributeLongtext
1315
+ */
1316
+ export type AttributeLongtext = {
1317
+ /**
1318
+ * Attribute Key.
1319
+ */
1320
+ key: string;
1321
+ /**
1322
+ * Attribute type.
1323
+ */
1324
+ type: string;
1325
+ /**
1326
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1327
+ */
1328
+ status: AttributeStatus;
1329
+ /**
1330
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1331
+ */
1332
+ error: string;
1333
+ /**
1334
+ * Is attribute required?
1335
+ */
1336
+ required: boolean;
1337
+ /**
1338
+ * Is attribute an array?
1339
+ */
1340
+ array?: boolean;
1341
+ /**
1342
+ * Attribute creation date in ISO 8601 format.
1343
+ */
1344
+ $createdAt: string;
1345
+ /**
1346
+ * Attribute update date in ISO 8601 format.
1347
+ */
1348
+ $updatedAt: string;
1349
+ /**
1350
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1351
+ */
1352
+ default?: string;
1353
+ };
1173
1354
  /**
1174
1355
  * Table
1175
1356
  */
@@ -1316,11 +1497,11 @@ declare namespace Models {
1316
1497
  /**
1317
1498
  * Minimum value to enforce for new documents.
1318
1499
  */
1319
- min?: number;
1500
+ min?: number | bigint;
1320
1501
  /**
1321
1502
  * Maximum value to enforce for new documents.
1322
1503
  */
1323
- max?: number;
1504
+ max?: number | bigint;
1324
1505
  /**
1325
1506
  * Default value for column when not provided. Cannot be set when column is required.
1326
1507
  */
@@ -1829,6 +2010,174 @@ declare namespace Models {
1829
2010
  */
1830
2011
  default?: any[];
1831
2012
  };
2013
+ /**
2014
+ * ColumnVarchar
2015
+ */
2016
+ export type ColumnVarchar = {
2017
+ /**
2018
+ * Column Key.
2019
+ */
2020
+ key: string;
2021
+ /**
2022
+ * Column type.
2023
+ */
2024
+ type: string;
2025
+ /**
2026
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
2027
+ */
2028
+ status: ColumnStatus;
2029
+ /**
2030
+ * Error message. Displays error generated on failure of creating or deleting an column.
2031
+ */
2032
+ error: string;
2033
+ /**
2034
+ * Is column required?
2035
+ */
2036
+ required: boolean;
2037
+ /**
2038
+ * Is column an array?
2039
+ */
2040
+ array?: boolean;
2041
+ /**
2042
+ * Column creation date in ISO 8601 format.
2043
+ */
2044
+ $createdAt: string;
2045
+ /**
2046
+ * Column update date in ISO 8601 format.
2047
+ */
2048
+ $updatedAt: string;
2049
+ /**
2050
+ * Column size.
2051
+ */
2052
+ size: number;
2053
+ /**
2054
+ * Default value for column when not provided. Cannot be set when column is required.
2055
+ */
2056
+ default?: string;
2057
+ };
2058
+ /**
2059
+ * ColumnText
2060
+ */
2061
+ export type ColumnText = {
2062
+ /**
2063
+ * Column Key.
2064
+ */
2065
+ key: string;
2066
+ /**
2067
+ * Column type.
2068
+ */
2069
+ type: string;
2070
+ /**
2071
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
2072
+ */
2073
+ status: ColumnStatus;
2074
+ /**
2075
+ * Error message. Displays error generated on failure of creating or deleting an column.
2076
+ */
2077
+ error: string;
2078
+ /**
2079
+ * Is column required?
2080
+ */
2081
+ required: boolean;
2082
+ /**
2083
+ * Is column an array?
2084
+ */
2085
+ array?: boolean;
2086
+ /**
2087
+ * Column creation date in ISO 8601 format.
2088
+ */
2089
+ $createdAt: string;
2090
+ /**
2091
+ * Column update date in ISO 8601 format.
2092
+ */
2093
+ $updatedAt: string;
2094
+ /**
2095
+ * Default value for column when not provided. Cannot be set when column is required.
2096
+ */
2097
+ default?: string;
2098
+ };
2099
+ /**
2100
+ * ColumnMediumtext
2101
+ */
2102
+ export type ColumnMediumtext = {
2103
+ /**
2104
+ * Column Key.
2105
+ */
2106
+ key: string;
2107
+ /**
2108
+ * Column type.
2109
+ */
2110
+ type: string;
2111
+ /**
2112
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
2113
+ */
2114
+ status: ColumnStatus;
2115
+ /**
2116
+ * Error message. Displays error generated on failure of creating or deleting an column.
2117
+ */
2118
+ error: string;
2119
+ /**
2120
+ * Is column required?
2121
+ */
2122
+ required: boolean;
2123
+ /**
2124
+ * Is column an array?
2125
+ */
2126
+ array?: boolean;
2127
+ /**
2128
+ * Column creation date in ISO 8601 format.
2129
+ */
2130
+ $createdAt: string;
2131
+ /**
2132
+ * Column update date in ISO 8601 format.
2133
+ */
2134
+ $updatedAt: string;
2135
+ /**
2136
+ * Default value for column when not provided. Cannot be set when column is required.
2137
+ */
2138
+ default?: string;
2139
+ };
2140
+ /**
2141
+ * ColumnLongtext
2142
+ */
2143
+ export type ColumnLongtext = {
2144
+ /**
2145
+ * Column Key.
2146
+ */
2147
+ key: string;
2148
+ /**
2149
+ * Column type.
2150
+ */
2151
+ type: string;
2152
+ /**
2153
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
2154
+ */
2155
+ status: ColumnStatus;
2156
+ /**
2157
+ * Error message. Displays error generated on failure of creating or deleting an column.
2158
+ */
2159
+ error: string;
2160
+ /**
2161
+ * Is column required?
2162
+ */
2163
+ required: boolean;
2164
+ /**
2165
+ * Is column an array?
2166
+ */
2167
+ array?: boolean;
2168
+ /**
2169
+ * Column creation date in ISO 8601 format.
2170
+ */
2171
+ $createdAt: string;
2172
+ /**
2173
+ * Column update date in ISO 8601 format.
2174
+ */
2175
+ $updatedAt: string;
2176
+ /**
2177
+ * Default value for column when not provided. Cannot be set when column is required.
2178
+ */
2179
+ default?: string;
2180
+ };
1832
2181
  /**
1833
2182
  * Index
1834
2183
  */
@@ -2572,6 +2921,14 @@ declare namespace Models {
2572
2921
  * Total number of chunks uploaded
2573
2922
  */
2574
2923
  chunksUploaded: number;
2924
+ /**
2925
+ * Whether file contents are encrypted at rest.
2926
+ */
2927
+ encryption: boolean;
2928
+ /**
2929
+ * Compression algorithm used for the file. Will be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd).
2930
+ */
2931
+ compression: string;
2575
2932
  };
2576
2933
  /**
2577
2934
  * Bucket
@@ -2614,7 +2971,7 @@ declare namespace Models {
2614
2971
  */
2615
2972
  allowedFileExtensions: string[];
2616
2973
  /**
2617
- * Compression algorithm choosen for compression. Will be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd).
2974
+ * Compression algorithm chosen for compression. Will be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd).
2618
2975
  */
2619
2976
  compression: string;
2620
2977
  /**
@@ -2629,6 +2986,10 @@ declare namespace Models {
2629
2986
  * Image transformations are enabled.
2630
2987
  */
2631
2988
  transformations: boolean;
2989
+ /**
2990
+ * Total size of this bucket in bytes.
2991
+ */
2992
+ totalSize: number;
2632
2993
  };
2633
2994
  /**
2634
2995
  * ResourceToken
@@ -3135,7 +3496,7 @@ declare namespace Models {
3135
3496
  */
3136
3497
  screenshotDark: string;
3137
3498
  /**
3138
- * The deployment status. Possible values are "waiting", "processing", "building", "ready", and "failed".
3499
+ * The deployment status. Possible values are "waiting", "processing", "building", "ready", "canceled" and "failed".
3139
3500
  */
3140
3501
  status: DeploymentStatus;
3141
3502
  /**
package/dist/query.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- type QueryTypesSingle = string | number | boolean;
2
- type QueryTypesList = string[] | number[] | boolean[] | Query[] | any[];
1
+ type QueryTypesSingle = string | number | bigint | boolean;
2
+ type QueryTypesList = string[] | number[] | bigint[] | boolean[] | Query[] | any[];
3
3
  type QueryTypes = QueryTypesSingle | QueryTypesList;
4
4
  type AttributesTypes = string | string[];
5
5
  /**
@@ -39,6 +39,14 @@ declare class Query {
39
39
  * @returns {string}
40
40
  */
41
41
  static notEqual: (attribute: string, value: QueryTypes) => string;
42
+ /**
43
+ * Filter resources where attribute matches a regular expression pattern.
44
+ *
45
+ * @param {string} attribute The attribute to filter on.
46
+ * @param {string} pattern The regular expression pattern to match.
47
+ * @returns {string}
48
+ */
49
+ static regex: (attribute: string, pattern: string) => string;
42
50
  /**
43
51
  * Filter resources where attribute is less than value.
44
52
  *
@@ -85,15 +93,29 @@ declare class Query {
85
93
  * @returns {string}
86
94
  */
87
95
  static isNotNull: (attribute: string) => string;
96
+ /**
97
+ * Filter resources where the specified attributes exist.
98
+ *
99
+ * @param {string[]} attributes The list of attributes that must exist.
100
+ * @returns {string}
101
+ */
102
+ static exists: (attributes: string[]) => string;
103
+ /**
104
+ * Filter resources where the specified attributes do not exist.
105
+ *
106
+ * @param {string[]} attributes The list of attributes that must not exist.
107
+ * @returns {string}
108
+ */
109
+ static notExists: (attributes: string[]) => string;
88
110
  /**
89
111
  * Filter resources where attribute is between start and end (inclusive).
90
112
  *
91
113
  * @param {string} attribute
92
- * @param {string | number} start
93
- * @param {string | number} end
114
+ * @param {string | number | bigint} start
115
+ * @param {string | number | bigint} end
94
116
  * @returns {string}
95
117
  */
96
- static between: (attribute: string, start: string | number, end: string | number) => string;
118
+ static between: (attribute: string, start: string | number | bigint, end: string | number | bigint) => string;
97
119
  /**
98
120
  * Filter resources where attribute starts with value.
99
121
  *
@@ -203,11 +225,11 @@ declare class Query {
203
225
  * Filter resources where attribute is not between start and end (exclusive).
204
226
  *
205
227
  * @param {string} attribute
206
- * @param {string | number} start
207
- * @param {string | number} end
228
+ * @param {string | number | bigint} start
229
+ * @param {string | number | bigint} end
208
230
  * @returns {string}
209
231
  */
210
- static notBetween: (attribute: string, start: string | number, end: string | number) => string;
232
+ static notBetween: (attribute: string, start: string | number | bigint, end: string | number | bigint) => string;
211
233
  /**
212
234
  * Filter resources where attribute does not start with value.
213
235
  *
@@ -282,6 +304,14 @@ declare class Query {
282
304
  * @returns {string}
283
305
  */
284
306
  static and: (queries: string[]) => string;
307
+ /**
308
+ * Filter array elements where at least one element matches all the specified queries.
309
+ *
310
+ * @param {string} attribute The attribute containing the array to filter on.
311
+ * @param {string[]} queries The list of query strings to match against array elements.
312
+ * @returns {string}
313
+ */
314
+ static elemMatch: (attribute: string, queries: string[]) => string;
285
315
  /**
286
316
  * Filter resources where attribute is at a specific distance from the given coordinates.
287
317
  *
package/dist/query.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- type QueryTypesSingle = string | number | boolean;
2
- type QueryTypesList = string[] | number[] | boolean[] | Query[] | any[];
1
+ type QueryTypesSingle = string | number | bigint | boolean;
2
+ type QueryTypesList = string[] | number[] | bigint[] | boolean[] | Query[] | any[];
3
3
  type QueryTypes = QueryTypesSingle | QueryTypesList;
4
4
  type AttributesTypes = string | string[];
5
5
  /**
@@ -39,6 +39,14 @@ declare class Query {
39
39
  * @returns {string}
40
40
  */
41
41
  static notEqual: (attribute: string, value: QueryTypes) => string;
42
+ /**
43
+ * Filter resources where attribute matches a regular expression pattern.
44
+ *
45
+ * @param {string} attribute The attribute to filter on.
46
+ * @param {string} pattern The regular expression pattern to match.
47
+ * @returns {string}
48
+ */
49
+ static regex: (attribute: string, pattern: string) => string;
42
50
  /**
43
51
  * Filter resources where attribute is less than value.
44
52
  *
@@ -85,15 +93,29 @@ declare class Query {
85
93
  * @returns {string}
86
94
  */
87
95
  static isNotNull: (attribute: string) => string;
96
+ /**
97
+ * Filter resources where the specified attributes exist.
98
+ *
99
+ * @param {string[]} attributes The list of attributes that must exist.
100
+ * @returns {string}
101
+ */
102
+ static exists: (attributes: string[]) => string;
103
+ /**
104
+ * Filter resources where the specified attributes do not exist.
105
+ *
106
+ * @param {string[]} attributes The list of attributes that must not exist.
107
+ * @returns {string}
108
+ */
109
+ static notExists: (attributes: string[]) => string;
88
110
  /**
89
111
  * Filter resources where attribute is between start and end (inclusive).
90
112
  *
91
113
  * @param {string} attribute
92
- * @param {string | number} start
93
- * @param {string | number} end
114
+ * @param {string | number | bigint} start
115
+ * @param {string | number | bigint} end
94
116
  * @returns {string}
95
117
  */
96
- static between: (attribute: string, start: string | number, end: string | number) => string;
118
+ static between: (attribute: string, start: string | number | bigint, end: string | number | bigint) => string;
97
119
  /**
98
120
  * Filter resources where attribute starts with value.
99
121
  *
@@ -203,11 +225,11 @@ declare class Query {
203
225
  * Filter resources where attribute is not between start and end (exclusive).
204
226
  *
205
227
  * @param {string} attribute
206
- * @param {string | number} start
207
- * @param {string | number} end
228
+ * @param {string | number | bigint} start
229
+ * @param {string | number | bigint} end
208
230
  * @returns {string}
209
231
  */
210
- static notBetween: (attribute: string, start: string | number, end: string | number) => string;
232
+ static notBetween: (attribute: string, start: string | number | bigint, end: string | number | bigint) => string;
211
233
  /**
212
234
  * Filter resources where attribute does not start with value.
213
235
  *
@@ -282,6 +304,14 @@ declare class Query {
282
304
  * @returns {string}
283
305
  */
284
306
  static and: (queries: string[]) => string;
307
+ /**
308
+ * Filter array elements where at least one element matches all the specified queries.
309
+ *
310
+ * @param {string} attribute The attribute containing the array to filter on.
311
+ * @param {string[]} queries The list of query strings to match against array elements.
312
+ * @returns {string}
313
+ */
314
+ static elemMatch: (attribute: string, queries: string[]) => string;
285
315
  /**
286
316
  * Filter resources where attribute is at a specific distance from the given coordinates.
287
317
  *