appwrite 19.2.1 → 19.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d18450d32531866c43ac61e2ded50d750cf7c6b81323afaecbee969475c50a0c
4
- data.tar.gz: 95dc160194148918a4ce252491a3770e068bd55679e91c4a4a6e7f4f44e52f58
3
+ metadata.gz: 2aaddcbf4e8387d0d89648eaf0b3e5604ef6d8c11ccf4ef369288b4eac6e1bb1
4
+ data.tar.gz: be874d5ab33af88bae8256508989da77a4479a14523adcfc561d98dae58878ec
5
5
  SHA512:
6
- metadata.gz: 40546a7ae581a476e905a8c772fabc44a2f8d4bc7dee1974a590f89f764920f54f4bf1b63964593cf9bef589a667441ae155f2444c16fa4c5d3a44e6577c2a8b
7
- data.tar.gz: 7159f4e73f3ac4407209f9a5d44bbe2865d0af8735d3ff060a0ce21bd7feda1f154ba405a6a11598bc8308e9bd9ed6f8d5c5acfd7783c18a4719ecb42fa94fed
6
+ metadata.gz: 4c214db3bab97e7f48ed0ab32f615c1b4bd6132e169837ac42043698d7fa696102db97e853566a3fe30cc35ba3e9f635a08176f3ef27f1b154ab4676951cbc1f
7
+ data.tar.gz: 81e453cc99b7e2fd070f22a4724079390128f9d147541470035e458ccbaea6e71a8acefe72aa193ff6cde41167e4bbee0175a22a3cf581182cc330c3ea625c61
@@ -15,7 +15,7 @@ module Appwrite
15
15
  'x-sdk-name'=> 'Ruby',
16
16
  'x-sdk-platform'=> 'server',
17
17
  'x-sdk-language'=> 'ruby',
18
- 'x-sdk-version'=> '19.2.1',
18
+ 'x-sdk-version'=> '19.3.0',
19
19
  'X-Appwrite-Response-Format' => '1.8.0'
20
20
  }
21
21
  @endpoint = 'https://cloud.appwrite.io/v1'
@@ -5,6 +5,7 @@ module Appwrite
5
5
  PROCESSING = 'processing'
6
6
  COMPLETED = 'completed'
7
7
  FAILED = 'failed'
8
+ SCHEDULED = 'scheduled'
8
9
  end
9
10
  end
10
11
  end
@@ -9,6 +9,7 @@ module Appwrite
9
9
  VUE = 'vue'
10
10
  SVELTEKIT = 'sveltekit'
11
11
  ASTRO = 'astro'
12
+ TANSTACK_START = 'tanstack-start'
12
13
  REMIX = 'remix'
13
14
  LYNX = 'lynx'
14
15
  FLUTTER = 'flutter'
@@ -130,6 +130,7 @@ module Appwrite
130
130
  Appwrite::Enums::ExecutionStatus::PROCESSING,
131
131
  Appwrite::Enums::ExecutionStatus::COMPLETED,
132
132
  Appwrite::Enums::ExecutionStatus::FAILED,
133
+ Appwrite::Enums::ExecutionStatus::SCHEDULED,
133
134
  ]
134
135
 
135
136
  unless valid_status.include?(status)
@@ -0,0 +1,145 @@
1
+ require 'json'
2
+
3
+ module Appwrite
4
+ module Condition
5
+ EQUAL = "equal"
6
+ NOT_EQUAL = "notEqual"
7
+ GREATER_THAN = "greaterThan"
8
+ GREATER_THAN_EQUAL = "greaterThanEqual"
9
+ LESS_THAN = "lessThan"
10
+ LESS_THAN_EQUAL = "lessThanEqual"
11
+ CONTAINS = "contains"
12
+ IS_NULL = "isNull"
13
+ IS_NOT_NULL = "isNotNull"
14
+ end
15
+
16
+ class Operator
17
+ def initialize(method, values = nil)
18
+ @method = method
19
+
20
+ if values != nil
21
+ if values.is_a?(Array)
22
+ @values = values
23
+ else
24
+ @values = [values]
25
+ end
26
+ end
27
+ end
28
+
29
+ def to_json(*args)
30
+ result = { method: @method }
31
+ result[:values] = @values unless @values.nil?
32
+ result.to_json(*args)
33
+ end
34
+
35
+ def to_s
36
+ return self.to_json
37
+ end
38
+
39
+ class << Operator
40
+ def increment(value = 1, max = nil)
41
+ raise ArgumentError, "Value cannot be NaN or Infinity" if value.respond_to?(:nan?) && (value.nan? || value.infinite?)
42
+ raise ArgumentError, "Max cannot be NaN or Infinity" if max != nil && max.respond_to?(:nan?) && (max.nan? || max.infinite?)
43
+ values = [value]
44
+ values << max if max != nil
45
+ return Operator.new("increment", values).to_s
46
+ end
47
+
48
+ def decrement(value = 1, min = nil)
49
+ raise ArgumentError, "Value cannot be NaN or Infinity" if value.respond_to?(:nan?) && (value.nan? || value.infinite?)
50
+ raise ArgumentError, "Min cannot be NaN or Infinity" if min != nil && min.respond_to?(:nan?) && (min.nan? || min.infinite?)
51
+ values = [value]
52
+ values << min if min != nil
53
+ return Operator.new("decrement", values).to_s
54
+ end
55
+
56
+ def multiply(factor, max = nil)
57
+ raise ArgumentError, "Factor cannot be NaN or Infinity" if factor.respond_to?(:nan?) && (factor.nan? || factor.infinite?)
58
+ raise ArgumentError, "Max cannot be NaN or Infinity" if max != nil && max.respond_to?(:nan?) && (max.nan? || max.infinite?)
59
+ values = [factor]
60
+ values << max if max != nil
61
+ return Operator.new("multiply", values).to_s
62
+ end
63
+
64
+ def divide(divisor, min = nil)
65
+ raise ArgumentError, "Divisor cannot be NaN or Infinity" if divisor.respond_to?(:nan?) && (divisor.nan? || divisor.infinite?)
66
+ raise ArgumentError, "Min cannot be NaN or Infinity" if min != nil && min.respond_to?(:nan?) && (min.nan? || min.infinite?)
67
+ raise ArgumentError, "Divisor cannot be zero" if divisor == 0 || divisor == 0.0
68
+ values = [divisor]
69
+ values << min if min != nil
70
+ return Operator.new("divide", values).to_s
71
+ end
72
+
73
+ def modulo(divisor)
74
+ raise ArgumentError, "Divisor cannot be NaN or Infinity" if divisor.respond_to?(:nan?) && (divisor.nan? || divisor.infinite?)
75
+ raise ArgumentError, "Divisor cannot be zero" if divisor == 0 || divisor == 0.0
76
+ return Operator.new("modulo", [divisor]).to_s
77
+ end
78
+
79
+ def power(exponent, max = nil)
80
+ raise ArgumentError, "Exponent cannot be NaN or Infinity" if exponent.respond_to?(:nan?) && (exponent.nan? || exponent.infinite?)
81
+ raise ArgumentError, "Max cannot be NaN or Infinity" if max != nil && max.respond_to?(:nan?) && (max.nan? || max.infinite?)
82
+ values = [exponent]
83
+ values << max if max != nil
84
+ return Operator.new("power", values).to_s
85
+ end
86
+
87
+ def array_append(values)
88
+ return Operator.new("arrayAppend", values).to_s
89
+ end
90
+
91
+ def array_prepend(values)
92
+ return Operator.new("arrayPrepend", values).to_s
93
+ end
94
+
95
+ def array_insert(index, value)
96
+ return Operator.new("arrayInsert", [index, value]).to_s
97
+ end
98
+
99
+ def array_remove(value)
100
+ return Operator.new("arrayRemove", [value]).to_s
101
+ end
102
+
103
+ def array_unique()
104
+ return Operator.new("arrayUnique", []).to_s
105
+ end
106
+
107
+ def array_intersect(values)
108
+ return Operator.new("arrayIntersect", values).to_s
109
+ end
110
+
111
+ def array_diff(values)
112
+ return Operator.new("arrayDiff", values).to_s
113
+ end
114
+
115
+ def array_filter(condition, value = nil)
116
+ values = [condition, value]
117
+ return Operator.new("arrayFilter", values).to_s
118
+ end
119
+
120
+ def string_concat(value)
121
+ return Operator.new("stringConcat", [value]).to_s
122
+ end
123
+
124
+ def string_replace(search, replace)
125
+ return Operator.new("stringReplace", [search, replace]).to_s
126
+ end
127
+
128
+ def toggle()
129
+ return Operator.new("toggle", []).to_s
130
+ end
131
+
132
+ def date_add_days(days)
133
+ return Operator.new("dateAddDays", [days]).to_s
134
+ end
135
+
136
+ def date_sub_days(days)
137
+ return Operator.new("dateSubDays", [days]).to_s
138
+ end
139
+
140
+ def date_set_now()
141
+ return Operator.new("dateSetNow", []).to_s
142
+ end
143
+ end
144
+ end
145
+ end
@@ -133,27 +133,27 @@ module Appwrite
133
133
  end
134
134
 
135
135
  def created_before(value)
136
- return Query.new("createdBefore", nil, value).to_s
136
+ return less_than("$createdAt", value)
137
137
  end
138
138
 
139
139
  def created_after(value)
140
- return Query.new("createdAfter", nil, value).to_s
140
+ return greater_than("$createdAt", value)
141
141
  end
142
142
 
143
143
  def created_between(start, ending)
144
- return Query.new("createdBetween", nil, [start, ending]).to_s
144
+ return between("$createdAt", start, ending)
145
145
  end
146
146
 
147
147
  def updated_before(value)
148
- return Query.new("updatedBefore", nil, value).to_s
148
+ return less_than("$updatedAt", value)
149
149
  end
150
150
 
151
151
  def updated_after(value)
152
- return Query.new("updatedAfter", nil, value).to_s
152
+ return greater_than("$updatedAt", value)
153
153
  end
154
154
 
155
155
  def updated_between(start, ending)
156
- return Query.new("updatedBetween", nil, [start, ending]).to_s
156
+ return between("$updatedAt", start, ending)
157
157
  end
158
158
 
159
159
  def or(queries)
@@ -123,13 +123,15 @@ module Appwrite
123
123
  # Get the list of identities for the currently logged in user.
124
124
  #
125
125
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry
126
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
126
127
  #
127
128
  # @return [IdentityList]
128
- def list_identities(queries: nil)
129
+ def list_identities(queries: nil, total: nil)
129
130
  api_path = '/account/identities'
130
131
 
131
132
  api_params = {
132
133
  queries: queries,
134
+ total: total,
133
135
  }
134
136
 
135
137
  api_headers = {
@@ -203,13 +205,15 @@ module Appwrite
203
205
  # user. Each log returns user IP address, location and date and time of log.
204
206
  #
205
207
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
208
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
206
209
  #
207
210
  # @return [LogList]
208
- def list_logs(queries: nil)
211
+ def list_logs(queries: nil, total: nil)
209
212
  api_path = '/account/logs'
210
213
 
211
214
  api_params = {
212
215
  queries: queries,
216
+ total: total,
213
217
  }
214
218
 
215
219
  api_headers = {
@@ -15,14 +15,16 @@ module Appwrite
15
15
  #
16
16
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name
17
17
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
18
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
18
19
  #
19
20
  # @return [DatabaseList]
20
- def list(queries: nil, search: nil)
21
+ def list(queries: nil, search: nil, total: nil)
21
22
  api_path = '/databases'
22
23
 
23
24
  api_params = {
24
25
  queries: queries,
25
26
  search: search,
27
+ total: total,
26
28
  }
27
29
 
28
30
  api_headers = {
@@ -360,9 +362,10 @@ module Appwrite
360
362
  # @param [String] database_id Database ID.
361
363
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, documentSecurity
362
364
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
365
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
363
366
  #
364
367
  # @return [CollectionList]
365
- def list_collections(database_id:, queries: nil, search: nil)
368
+ def list_collections(database_id:, queries: nil, search: nil, total: nil)
366
369
  api_path = '/databases/{databaseId}/collections'
367
370
  .gsub('{databaseId}', database_id)
368
371
 
@@ -373,6 +376,7 @@ module Appwrite
373
376
  api_params = {
374
377
  queries: queries,
375
378
  search: search,
379
+ total: total,
376
380
  }
377
381
 
378
382
  api_headers = {
@@ -574,9 +578,10 @@ module Appwrite
574
578
  # @param [String] database_id Database ID.
575
579
  # @param [String] collection_id Collection ID.
576
580
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, type, size, required, array, status, error
581
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
577
582
  #
578
583
  # @return [AttributeList]
579
- def list_attributes(database_id:, collection_id:, queries: nil)
584
+ def list_attributes(database_id:, collection_id:, queries: nil, total: nil)
580
585
  api_path = '/databases/{databaseId}/collections/{collectionId}/attributes'
581
586
  .gsub('{databaseId}', database_id)
582
587
  .gsub('{collectionId}', collection_id)
@@ -591,6 +596,7 @@ module Appwrite
591
596
 
592
597
  api_params = {
593
598
  queries: queries,
599
+ total: total,
594
600
  }
595
601
 
596
602
  api_headers = {
@@ -2204,9 +2210,10 @@ module Appwrite
2204
2210
  # @param [String] collection_id Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
2205
2211
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
2206
2212
  # @param [String] transaction_id Transaction ID to read uncommitted changes within the transaction.
2213
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
2207
2214
  #
2208
2215
  # @return [DocumentList]
2209
- def list_documents(database_id:, collection_id:, queries: nil, transaction_id: nil)
2216
+ def list_documents(database_id:, collection_id:, queries: nil, transaction_id: nil, total: nil)
2210
2217
  api_path = '/databases/{databaseId}/collections/{collectionId}/documents'
2211
2218
  .gsub('{databaseId}', database_id)
2212
2219
  .gsub('{collectionId}', collection_id)
@@ -2222,6 +2229,7 @@ module Appwrite
2222
2229
  api_params = {
2223
2230
  queries: queries,
2224
2231
  transactionId: transaction_id,
2232
+ total: total,
2225
2233
  }
2226
2234
 
2227
2235
  api_headers = {
@@ -2802,9 +2810,10 @@ module Appwrite
2802
2810
  # @param [String] database_id Database ID.
2803
2811
  # @param [String] collection_id Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
2804
2812
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, type, status, attributes, error
2813
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
2805
2814
  #
2806
2815
  # @return [IndexList]
2807
- def list_indexes(database_id:, collection_id:, queries: nil)
2816
+ def list_indexes(database_id:, collection_id:, queries: nil, total: nil)
2808
2817
  api_path = '/databases/{databaseId}/collections/{collectionId}/indexes'
2809
2818
  .gsub('{databaseId}', database_id)
2810
2819
  .gsub('{collectionId}', collection_id)
@@ -2819,6 +2828,7 @@ module Appwrite
2819
2828
 
2820
2829
  api_params = {
2821
2830
  queries: queries,
2831
+ total: total,
2822
2832
  }
2823
2833
 
2824
2834
  api_headers = {
@@ -12,14 +12,16 @@ module Appwrite
12
12
  #
13
13
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId
14
14
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
15
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
15
16
  #
16
17
  # @return [FunctionList]
17
- def list(queries: nil, search: nil)
18
+ def list(queries: nil, search: nil, total: nil)
18
19
  api_path = '/functions'
19
20
 
20
21
  api_params = {
21
22
  queries: queries,
22
23
  search: search,
24
+ total: total,
23
25
  }
24
26
 
25
27
  api_headers = {
@@ -317,9 +319,10 @@ module Appwrite
317
319
  # @param [String] function_id Function ID.
318
320
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
319
321
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
322
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
320
323
  #
321
324
  # @return [DeploymentList]
322
- def list_deployments(function_id:, queries: nil, search: nil)
325
+ def list_deployments(function_id:, queries: nil, search: nil, total: nil)
323
326
  api_path = '/functions/{functionId}/deployments'
324
327
  .gsub('{functionId}', function_id)
325
328
 
@@ -330,6 +333,7 @@ module Appwrite
330
333
  api_params = {
331
334
  queries: queries,
332
335
  search: search,
336
+ total: total,
333
337
  }
334
338
 
335
339
  api_headers = {
@@ -697,9 +701,10 @@ module Appwrite
697
701
  #
698
702
  # @param [String] function_id Function ID.
699
703
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
704
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
700
705
  #
701
706
  # @return [ExecutionList]
702
- def list_executions(function_id:, queries: nil)
707
+ def list_executions(function_id:, queries: nil, total: nil)
703
708
  api_path = '/functions/{functionId}/executions'
704
709
  .gsub('{functionId}', function_id)
705
710
 
@@ -709,6 +714,7 @@ module Appwrite
709
714
 
710
715
  api_params = {
711
716
  queries: queries,
717
+ total: total,
712
718
  }
713
719
 
714
720
  api_headers = {
@@ -11,14 +11,16 @@ module Appwrite
11
11
  #
12
12
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType
13
13
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
14
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
14
15
  #
15
16
  # @return [MessageList]
16
- def list_messages(queries: nil, search: nil)
17
+ def list_messages(queries: nil, search: nil, total: nil)
17
18
  api_path = '/messaging/messages'
18
19
 
19
20
  api_params = {
20
21
  queries: queries,
21
22
  search: search,
23
+ total: total,
22
24
  }
23
25
 
24
26
  api_headers = {
@@ -430,9 +432,10 @@ module Appwrite
430
432
  #
431
433
  # @param [String] message_id Message ID.
432
434
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
435
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
433
436
  #
434
437
  # @return [LogList]
435
- def list_message_logs(message_id:, queries: nil)
438
+ def list_message_logs(message_id:, queries: nil, total: nil)
436
439
  api_path = '/messaging/messages/{messageId}/logs'
437
440
  .gsub('{messageId}', message_id)
438
441
 
@@ -442,6 +445,7 @@ module Appwrite
442
445
 
443
446
  api_params = {
444
447
  queries: queries,
448
+ total: total,
445
449
  }
446
450
 
447
451
  api_headers = {
@@ -460,9 +464,10 @@ module Appwrite
460
464
  #
461
465
  # @param [String] message_id Message ID.
462
466
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType
467
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
463
468
  #
464
469
  # @return [TargetList]
465
- def list_targets(message_id:, queries: nil)
470
+ def list_targets(message_id:, queries: nil, total: nil)
466
471
  api_path = '/messaging/messages/{messageId}/targets'
467
472
  .gsub('{messageId}', message_id)
468
473
 
@@ -472,6 +477,7 @@ module Appwrite
472
477
 
473
478
  api_params = {
474
479
  queries: queries,
480
+ total: total,
475
481
  }
476
482
 
477
483
  api_headers = {
@@ -490,14 +496,16 @@ module Appwrite
490
496
  #
491
497
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
492
498
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
499
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
493
500
  #
494
501
  # @return [ProviderList]
495
- def list_providers(queries: nil, search: nil)
502
+ def list_providers(queries: nil, search: nil, total: nil)
496
503
  api_path = '/messaging/providers'
497
504
 
498
505
  api_params = {
499
506
  queries: queries,
500
507
  search: search,
508
+ total: total,
501
509
  }
502
510
 
503
511
  api_headers = {
@@ -856,6 +864,96 @@ module Appwrite
856
864
  )
857
865
  end
858
866
 
867
+ # Create a new Resend provider.
868
+ #
869
+ # @param [String] provider_id Provider 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.
870
+ # @param [String] name Provider name.
871
+ # @param [String] api_key Resend API key.
872
+ # @param [String] from_name Sender Name.
873
+ # @param [String] from_email Sender email address.
874
+ # @param [String] reply_to_name Name set in the reply to field for the mail. Default value is sender name.
875
+ # @param [String] reply_to_email Email set in the reply to field for the mail. Default value is sender email.
876
+ # @param [] enabled Set as enabled.
877
+ #
878
+ # @return [Provider]
879
+ def create_resend_provider(provider_id:, name:, api_key: nil, from_name: nil, from_email: nil, reply_to_name: nil, reply_to_email: nil, enabled: nil)
880
+ api_path = '/messaging/providers/resend'
881
+
882
+ if provider_id.nil?
883
+ raise Appwrite::Exception.new('Missing required parameter: "providerId"')
884
+ end
885
+
886
+ if name.nil?
887
+ raise Appwrite::Exception.new('Missing required parameter: "name"')
888
+ end
889
+
890
+ api_params = {
891
+ providerId: provider_id,
892
+ name: name,
893
+ apiKey: api_key,
894
+ fromName: from_name,
895
+ fromEmail: from_email,
896
+ replyToName: reply_to_name,
897
+ replyToEmail: reply_to_email,
898
+ enabled: enabled,
899
+ }
900
+
901
+ api_headers = {
902
+ "content-type": 'application/json',
903
+ }
904
+
905
+ @client.call(
906
+ method: 'POST',
907
+ path: api_path,
908
+ headers: api_headers,
909
+ params: api_params,
910
+ response_type: Models::Provider
911
+ )
912
+ end
913
+
914
+ # Update a Resend provider by its unique ID.
915
+ #
916
+ # @param [String] provider_id Provider ID.
917
+ # @param [String] name Provider name.
918
+ # @param [] enabled Set as enabled.
919
+ # @param [String] api_key Resend API key.
920
+ # @param [String] from_name Sender Name.
921
+ # @param [String] from_email Sender email address.
922
+ # @param [String] reply_to_name Name set in the Reply To field for the mail. Default value is Sender Name.
923
+ # @param [String] reply_to_email Email set in the Reply To field for the mail. Default value is Sender Email.
924
+ #
925
+ # @return [Provider]
926
+ def update_resend_provider(provider_id:, name: nil, enabled: nil, api_key: nil, from_name: nil, from_email: nil, reply_to_name: nil, reply_to_email: nil)
927
+ api_path = '/messaging/providers/resend/{providerId}'
928
+ .gsub('{providerId}', provider_id)
929
+
930
+ if provider_id.nil?
931
+ raise Appwrite::Exception.new('Missing required parameter: "providerId"')
932
+ end
933
+
934
+ api_params = {
935
+ name: name,
936
+ enabled: enabled,
937
+ apiKey: api_key,
938
+ fromName: from_name,
939
+ fromEmail: from_email,
940
+ replyToName: reply_to_name,
941
+ replyToEmail: reply_to_email,
942
+ }
943
+
944
+ api_headers = {
945
+ "content-type": 'application/json',
946
+ }
947
+
948
+ @client.call(
949
+ method: 'PATCH',
950
+ path: api_path,
951
+ headers: api_headers,
952
+ params: api_params,
953
+ response_type: Models::Provider
954
+ )
955
+ end
956
+
859
957
  # Create a new Sendgrid provider.
860
958
  #
861
959
  # @param [String] provider_id Provider 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.
@@ -1453,9 +1551,10 @@ module Appwrite
1453
1551
  #
1454
1552
  # @param [String] provider_id Provider ID.
1455
1553
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
1554
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1456
1555
  #
1457
1556
  # @return [LogList]
1458
- def list_provider_logs(provider_id:, queries: nil)
1557
+ def list_provider_logs(provider_id:, queries: nil, total: nil)
1459
1558
  api_path = '/messaging/providers/{providerId}/logs'
1460
1559
  .gsub('{providerId}', provider_id)
1461
1560
 
@@ -1465,6 +1564,7 @@ module Appwrite
1465
1564
 
1466
1565
  api_params = {
1467
1566
  queries: queries,
1567
+ total: total,
1468
1568
  }
1469
1569
 
1470
1570
  api_headers = {
@@ -1483,9 +1583,10 @@ module Appwrite
1483
1583
  #
1484
1584
  # @param [String] subscriber_id Subscriber ID.
1485
1585
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
1586
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1486
1587
  #
1487
1588
  # @return [LogList]
1488
- def list_subscriber_logs(subscriber_id:, queries: nil)
1589
+ def list_subscriber_logs(subscriber_id:, queries: nil, total: nil)
1489
1590
  api_path = '/messaging/subscribers/{subscriberId}/logs'
1490
1591
  .gsub('{subscriberId}', subscriber_id)
1491
1592
 
@@ -1495,6 +1596,7 @@ module Appwrite
1495
1596
 
1496
1597
  api_params = {
1497
1598
  queries: queries,
1599
+ total: total,
1498
1600
  }
1499
1601
 
1500
1602
  api_headers = {
@@ -1513,14 +1615,16 @@ module Appwrite
1513
1615
  #
1514
1616
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal
1515
1617
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
1618
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1516
1619
  #
1517
1620
  # @return [TopicList]
1518
- def list_topics(queries: nil, search: nil)
1621
+ def list_topics(queries: nil, search: nil, total: nil)
1519
1622
  api_path = '/messaging/topics'
1520
1623
 
1521
1624
  api_params = {
1522
1625
  queries: queries,
1523
1626
  search: search,
1627
+ total: total,
1524
1628
  }
1525
1629
 
1526
1630
  api_headers = {
@@ -1667,9 +1771,10 @@ module Appwrite
1667
1771
  #
1668
1772
  # @param [String] topic_id Topic ID.
1669
1773
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
1774
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1670
1775
  #
1671
1776
  # @return [LogList]
1672
- def list_topic_logs(topic_id:, queries: nil)
1777
+ def list_topic_logs(topic_id:, queries: nil, total: nil)
1673
1778
  api_path = '/messaging/topics/{topicId}/logs'
1674
1779
  .gsub('{topicId}', topic_id)
1675
1780
 
@@ -1679,6 +1784,7 @@ module Appwrite
1679
1784
 
1680
1785
  api_params = {
1681
1786
  queries: queries,
1787
+ total: total,
1682
1788
  }
1683
1789
 
1684
1790
  api_headers = {
@@ -1698,9 +1804,10 @@ module Appwrite
1698
1804
  # @param [String] topic_id Topic ID. The topic ID subscribed to.
1699
1805
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
1700
1806
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
1807
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1701
1808
  #
1702
1809
  # @return [SubscriberList]
1703
- def list_subscribers(topic_id:, queries: nil, search: nil)
1810
+ def list_subscribers(topic_id:, queries: nil, search: nil, total: nil)
1704
1811
  api_path = '/messaging/topics/{topicId}/subscribers'
1705
1812
  .gsub('{topicId}', topic_id)
1706
1813
 
@@ -1711,6 +1818,7 @@ module Appwrite
1711
1818
  api_params = {
1712
1819
  queries: queries,
1713
1820
  search: search,
1821
+ total: total,
1714
1822
  }
1715
1823
 
1716
1824
  api_headers = {
@@ -12,14 +12,16 @@ module Appwrite
12
12
  #
13
13
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, framework, deploymentId, buildCommand, installCommand, outputDirectory, installationId
14
14
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
15
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
15
16
  #
16
17
  # @return [SiteList]
17
- def list(queries: nil, search: nil)
18
+ def list(queries: nil, search: nil, total: nil)
18
19
  api_path = '/sites'
19
20
 
20
21
  api_params = {
21
22
  queries: queries,
22
23
  search: search,
24
+ total: total,
23
25
  }
24
26
 
25
27
  api_headers = {
@@ -323,9 +325,10 @@ module Appwrite
323
325
  # @param [String] site_id Site ID.
324
326
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
325
327
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
328
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
326
329
  #
327
330
  # @return [DeploymentList]
328
- def list_deployments(site_id:, queries: nil, search: nil)
331
+ def list_deployments(site_id:, queries: nil, search: nil, total: nil)
329
332
  api_path = '/sites/{siteId}/deployments'
330
333
  .gsub('{siteId}', site_id)
331
334
 
@@ -336,6 +339,7 @@ module Appwrite
336
339
  api_params = {
337
340
  queries: queries,
338
341
  search: search,
342
+ total: total,
339
343
  }
340
344
 
341
345
  api_headers = {
@@ -696,9 +700,10 @@ module Appwrite
696
700
  #
697
701
  # @param [String] site_id Site ID.
698
702
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
703
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
699
704
  #
700
705
  # @return [ExecutionList]
701
- def list_logs(site_id:, queries: nil)
706
+ def list_logs(site_id:, queries: nil, total: nil)
702
707
  api_path = '/sites/{siteId}/logs'
703
708
  .gsub('{siteId}', site_id)
704
709
 
@@ -708,6 +713,7 @@ module Appwrite
708
713
 
709
714
  api_params = {
710
715
  queries: queries,
716
+ total: total,
711
717
  }
712
718
 
713
719
  api_headers = {
@@ -12,14 +12,16 @@ module Appwrite
12
12
  #
13
13
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus
14
14
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
15
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
15
16
  #
16
17
  # @return [BucketList]
17
- def list_buckets(queries: nil, search: nil)
18
+ def list_buckets(queries: nil, search: nil, total: nil)
18
19
  api_path = '/storage/buckets'
19
20
 
20
21
  api_params = {
21
22
  queries: queries,
22
23
  search: search,
24
+ total: total,
23
25
  }
24
26
 
25
27
  api_headers = {
@@ -199,9 +201,10 @@ module Appwrite
199
201
  # @param [String] bucket_id Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
200
202
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, signature, mimeType, sizeOriginal, chunksTotal, chunksUploaded
201
203
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
204
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
202
205
  #
203
206
  # @return [FileList]
204
- def list_files(bucket_id:, queries: nil, search: nil)
207
+ def list_files(bucket_id:, queries: nil, search: nil, total: nil)
205
208
  api_path = '/storage/buckets/{bucketId}/files'
206
209
  .gsub('{bucketId}', bucket_id)
207
210
 
@@ -212,6 +215,7 @@ module Appwrite
212
215
  api_params = {
213
216
  queries: queries,
214
217
  search: search,
218
+ total: total,
215
219
  }
216
220
 
217
221
  api_headers = {
@@ -12,14 +12,16 @@ module Appwrite
12
12
  #
13
13
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name
14
14
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
15
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
15
16
  #
16
17
  # @return [DatabaseList]
17
- def list(queries: nil, search: nil)
18
+ def list(queries: nil, search: nil, total: nil)
18
19
  api_path = '/tablesdb'
19
20
 
20
21
  api_params = {
21
22
  queries: queries,
22
23
  search: search,
24
+ total: total,
23
25
  }
24
26
 
25
27
  api_headers = {
@@ -342,9 +344,10 @@ module Appwrite
342
344
  # @param [String] database_id Database ID.
343
345
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name, enabled, rowSecurity
344
346
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
347
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
345
348
  #
346
349
  # @return [TableList]
347
- def list_tables(database_id:, queries: nil, search: nil)
350
+ def list_tables(database_id:, queries: nil, search: nil, total: nil)
348
351
  api_path = '/tablesdb/{databaseId}/tables'
349
352
  .gsub('{databaseId}', database_id)
350
353
 
@@ -355,6 +358,7 @@ module Appwrite
355
358
  api_params = {
356
359
  queries: queries,
357
360
  search: search,
361
+ total: total,
358
362
  }
359
363
 
360
364
  api_headers = {
@@ -541,9 +545,10 @@ module Appwrite
541
545
  # @param [String] database_id Database ID.
542
546
  # @param [String] table_id Table ID.
543
547
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, size, required, array, status, error
548
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
544
549
  #
545
550
  # @return [ColumnList]
546
- def list_columns(database_id:, table_id:, queries: nil)
551
+ def list_columns(database_id:, table_id:, queries: nil, total: nil)
547
552
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns'
548
553
  .gsub('{databaseId}', database_id)
549
554
  .gsub('{tableId}', table_id)
@@ -558,6 +563,7 @@ module Appwrite
558
563
 
559
564
  api_params = {
560
565
  queries: queries,
566
+ total: total,
561
567
  }
562
568
 
563
569
  api_headers = {
@@ -2081,9 +2087,10 @@ module Appwrite
2081
2087
  # @param [String] database_id Database ID.
2082
2088
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
2083
2089
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, status, attributes, error
2090
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
2084
2091
  #
2085
2092
  # @return [ColumnIndexList]
2086
- def list_indexes(database_id:, table_id:, queries: nil)
2093
+ def list_indexes(database_id:, table_id:, queries: nil, total: nil)
2087
2094
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
2088
2095
  .gsub('{databaseId}', database_id)
2089
2096
  .gsub('{tableId}', table_id)
@@ -2098,6 +2105,7 @@ module Appwrite
2098
2105
 
2099
2106
  api_params = {
2100
2107
  queries: queries,
2108
+ total: total,
2101
2109
  }
2102
2110
 
2103
2111
  api_headers = {
@@ -2258,9 +2266,10 @@ module Appwrite
2258
2266
  # @param [String] table_id Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).
2259
2267
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
2260
2268
  # @param [String] transaction_id Transaction ID to read uncommitted changes within the transaction.
2269
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
2261
2270
  #
2262
2271
  # @return [RowList]
2263
- def list_rows(database_id:, table_id:, queries: nil, transaction_id: nil)
2272
+ def list_rows(database_id:, table_id:, queries: nil, transaction_id: nil, total: nil)
2264
2273
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
2265
2274
  .gsub('{databaseId}', database_id)
2266
2275
  .gsub('{tableId}', table_id)
@@ -2276,6 +2285,7 @@ module Appwrite
2276
2285
  api_params = {
2277
2286
  queries: queries,
2278
2287
  transactionId: transaction_id,
2288
+ total: total,
2279
2289
  }
2280
2290
 
2281
2291
  api_headers = {
@@ -12,14 +12,16 @@ module Appwrite
12
12
  #
13
13
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, total, billingPlan
14
14
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
15
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
15
16
  #
16
17
  # @return [TeamList]
17
- def list(queries: nil, search: nil)
18
+ def list(queries: nil, search: nil, total: nil)
18
19
  api_path = '/teams'
19
20
 
20
21
  api_params = {
21
22
  queries: queries,
22
23
  search: search,
24
+ total: total,
23
25
  }
24
26
 
25
27
  api_headers = {
@@ -172,9 +174,10 @@ module Appwrite
172
174
  # @param [String] team_id Team ID.
173
175
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, teamId, invited, joined, confirm, roles
174
176
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
177
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
175
178
  #
176
179
  # @return [MembershipList]
177
- def list_memberships(team_id:, queries: nil, search: nil)
180
+ def list_memberships(team_id:, queries: nil, search: nil, total: nil)
178
181
  api_path = '/teams/{teamId}/memberships'
179
182
  .gsub('{teamId}', team_id)
180
183
 
@@ -185,6 +188,7 @@ module Appwrite
185
188
  api_params = {
186
189
  queries: queries,
187
190
  search: search,
191
+ total: total,
188
192
  }
189
193
 
190
194
  api_headers = {
@@ -13,9 +13,10 @@ module Appwrite
13
13
  # @param [String] bucket_id Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
14
14
  # @param [String] file_id File unique ID.
15
15
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire
16
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
16
17
  #
17
18
  # @return [ResourceTokenList]
18
- def list(bucket_id:, file_id:, queries: nil)
19
+ def list(bucket_id:, file_id:, queries: nil, total: nil)
19
20
  api_path = '/tokens/buckets/{bucketId}/files/{fileId}'
20
21
  .gsub('{bucketId}', bucket_id)
21
22
  .gsub('{fileId}', file_id)
@@ -30,6 +31,7 @@ module Appwrite
30
31
 
31
32
  api_params = {
32
33
  queries: queries,
34
+ total: total,
33
35
  }
34
36
 
35
37
  api_headers = {
@@ -12,14 +12,16 @@ module Appwrite
12
12
  #
13
13
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels
14
14
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
15
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
15
16
  #
16
17
  # @return [UserList]
17
- def list(queries: nil, search: nil)
18
+ def list(queries: nil, search: nil, total: nil)
18
19
  api_path = '/users'
19
20
 
20
21
  api_params = {
21
22
  queries: queries,
22
23
  search: search,
24
+ total: total,
23
25
  }
24
26
 
25
27
  api_headers = {
@@ -167,14 +169,16 @@ module Appwrite
167
169
  #
168
170
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry
169
171
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
172
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
170
173
  #
171
174
  # @return [IdentityList]
172
- def list_identities(queries: nil, search: nil)
175
+ def list_identities(queries: nil, search: nil, total: nil)
173
176
  api_path = '/users/identities'
174
177
 
175
178
  api_params = {
176
179
  queries: queries,
177
180
  search: search,
181
+ total: total,
178
182
  }
179
183
 
180
184
  api_headers = {
@@ -673,9 +677,10 @@ module Appwrite
673
677
  #
674
678
  # @param [String] user_id User ID.
675
679
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
680
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
676
681
  #
677
682
  # @return [LogList]
678
- def list_logs(user_id:, queries: nil)
683
+ def list_logs(user_id:, queries: nil, total: nil)
679
684
  api_path = '/users/{userId}/logs'
680
685
  .gsub('{userId}', user_id)
681
686
 
@@ -685,6 +690,7 @@ module Appwrite
685
690
 
686
691
  api_params = {
687
692
  queries: queries,
693
+ total: total,
688
694
  }
689
695
 
690
696
  api_headers = {
@@ -704,9 +710,10 @@ module Appwrite
704
710
  # @param [String] user_id User ID.
705
711
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, teamId, invited, joined, confirm, roles
706
712
  # @param [String] search Search term to filter your list results. Max length: 256 chars.
713
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
707
714
  #
708
715
  # @return [MembershipList]
709
- def list_memberships(user_id:, queries: nil, search: nil)
716
+ def list_memberships(user_id:, queries: nil, search: nil, total: nil)
710
717
  api_path = '/users/{userId}/memberships'
711
718
  .gsub('{userId}', user_id)
712
719
 
@@ -717,6 +724,7 @@ module Appwrite
717
724
  api_params = {
718
725
  queries: queries,
719
726
  search: search,
727
+ total: total,
720
728
  }
721
729
 
722
730
  api_headers = {
@@ -1096,9 +1104,10 @@ module Appwrite
1096
1104
  # Get the user sessions list by its unique ID.
1097
1105
  #
1098
1106
  # @param [String] user_id User ID.
1107
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1099
1108
  #
1100
1109
  # @return [SessionList]
1101
- def list_sessions(user_id:)
1110
+ def list_sessions(user_id:, total: nil)
1102
1111
  api_path = '/users/{userId}/sessions'
1103
1112
  .gsub('{userId}', user_id)
1104
1113
 
@@ -1107,6 +1116,7 @@ module Appwrite
1107
1116
  end
1108
1117
 
1109
1118
  api_params = {
1119
+ total: total,
1110
1120
  }
1111
1121
 
1112
1122
  api_headers = {
@@ -1257,9 +1267,10 @@ module Appwrite
1257
1267
  #
1258
1268
  # @param [String] user_id User ID.
1259
1269
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType
1270
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1260
1271
  #
1261
1272
  # @return [TargetList]
1262
- def list_targets(user_id:, queries: nil)
1273
+ def list_targets(user_id:, queries: nil, total: nil)
1263
1274
  api_path = '/users/{userId}/targets'
1264
1275
  .gsub('{userId}', user_id)
1265
1276
 
@@ -1269,6 +1280,7 @@ module Appwrite
1269
1280
 
1270
1281
  api_params = {
1271
1282
  queries: queries,
1283
+ total: total,
1272
1284
  }
1273
1285
 
1274
1286
  api_headers = {
data/lib/appwrite.rb CHANGED
@@ -11,6 +11,7 @@ require_relative 'appwrite/query'
11
11
  require_relative 'appwrite/permission'
12
12
  require_relative 'appwrite/role'
13
13
  require_relative 'appwrite/id'
14
+ require_relative 'appwrite/operator'
14
15
 
15
16
  require_relative 'appwrite/models/row_list'
16
17
  require_relative 'appwrite/models/document_list'
@@ -159,6 +160,16 @@ require_relative 'appwrite/enums/image_gravity'
159
160
  require_relative 'appwrite/enums/image_format'
160
161
  require_relative 'appwrite/enums/password_hash'
161
162
  require_relative 'appwrite/enums/messaging_provider_type'
163
+ require_relative 'appwrite/enums/database_type'
164
+ require_relative 'appwrite/enums/attribute_status'
165
+ require_relative 'appwrite/enums/column_status'
166
+ require_relative 'appwrite/enums/index_status'
167
+ require_relative 'appwrite/enums/deployment_status'
168
+ require_relative 'appwrite/enums/execution_trigger'
169
+ require_relative 'appwrite/enums/execution_status'
170
+ require_relative 'appwrite/enums/health_antivirus_status'
171
+ require_relative 'appwrite/enums/health_check_status'
172
+ require_relative 'appwrite/enums/message_status'
162
173
 
163
174
  require_relative 'appwrite/services/account'
164
175
  require_relative 'appwrite/services/avatars'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appwrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 19.2.1
4
+ version: 19.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Appwrite Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-09 00:00:00.000000000 Z
11
+ date: 2025-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
@@ -191,6 +191,7 @@ files:
191
191
  - lib/appwrite/models/user_list.rb
192
192
  - lib/appwrite/models/variable.rb
193
193
  - lib/appwrite/models/variable_list.rb
194
+ - lib/appwrite/operator.rb
194
195
  - lib/appwrite/permission.rb
195
196
  - lib/appwrite/query.rb
196
197
  - lib/appwrite/role.rb