appwrite 25.0.0 → 25.1.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.
@@ -25,6 +25,7 @@ module Appwrite
25
25
  }
26
26
 
27
27
  api_headers = {
28
+ "X-Appwrite-Project": @client.get_config('project'),
28
29
  }
29
30
 
30
31
  @client.call(
@@ -107,6 +108,7 @@ module Appwrite
107
108
  }
108
109
 
109
110
  api_headers = {
111
+ "X-Appwrite-Project": @client.get_config('project'),
110
112
  "content-type": 'application/json',
111
113
  }
112
114
 
@@ -131,6 +133,7 @@ module Appwrite
131
133
  }
132
134
 
133
135
  api_headers = {
136
+ "X-Appwrite-Project": @client.get_config('project'),
134
137
  }
135
138
 
136
139
  @client.call(
@@ -154,6 +157,7 @@ module Appwrite
154
157
  }
155
158
 
156
159
  api_headers = {
160
+ "X-Appwrite-Project": @client.get_config('project'),
157
161
  }
158
162
 
159
163
  @client.call(
@@ -183,6 +187,7 @@ module Appwrite
183
187
  }
184
188
 
185
189
  api_headers = {
190
+ "X-Appwrite-Project": @client.get_config('project'),
186
191
  }
187
192
 
188
193
  @client.call(
@@ -258,6 +263,7 @@ module Appwrite
258
263
  }
259
264
 
260
265
  api_headers = {
266
+ "X-Appwrite-Project": @client.get_config('project'),
261
267
  "content-type": 'application/json',
262
268
  }
263
269
 
@@ -288,6 +294,7 @@ module Appwrite
288
294
  }
289
295
 
290
296
  api_headers = {
297
+ "X-Appwrite-Project": @client.get_config('project'),
291
298
  "content-type": 'application/json',
292
299
  }
293
300
 
@@ -324,6 +331,7 @@ module Appwrite
324
331
  }
325
332
 
326
333
  api_headers = {
334
+ "X-Appwrite-Project": @client.get_config('project'),
327
335
  "content-type": 'application/json',
328
336
  }
329
337
 
@@ -361,6 +369,7 @@ module Appwrite
361
369
  }
362
370
 
363
371
  api_headers = {
372
+ "X-Appwrite-Project": @client.get_config('project'),
364
373
  }
365
374
 
366
375
  @client.call(
@@ -415,6 +424,7 @@ module Appwrite
415
424
  }
416
425
 
417
426
  api_headers = {
427
+ "X-Appwrite-Project": @client.get_config('project'),
418
428
  "content-type": 'multipart/form-data',
419
429
  }
420
430
 
@@ -462,6 +472,7 @@ module Appwrite
462
472
  }
463
473
 
464
474
  api_headers = {
475
+ "X-Appwrite-Project": @client.get_config('project'),
465
476
  "content-type": 'application/json',
466
477
  }
467
478
 
@@ -528,6 +539,7 @@ module Appwrite
528
539
  }
529
540
 
530
541
  api_headers = {
542
+ "X-Appwrite-Project": @client.get_config('project'),
531
543
  "content-type": 'application/json',
532
544
  }
533
545
 
@@ -574,6 +586,7 @@ module Appwrite
574
586
  }
575
587
 
576
588
  api_headers = {
589
+ "X-Appwrite-Project": @client.get_config('project'),
577
590
  "content-type": 'application/json',
578
591
  }
579
592
 
@@ -610,6 +623,7 @@ module Appwrite
610
623
  }
611
624
 
612
625
  api_headers = {
626
+ "X-Appwrite-Project": @client.get_config('project'),
613
627
  }
614
628
 
615
629
  @client.call(
@@ -645,6 +659,7 @@ module Appwrite
645
659
  }
646
660
 
647
661
  api_headers = {
662
+ "X-Appwrite-Project": @client.get_config('project'),
648
663
  "content-type": 'application/json',
649
664
  }
650
665
 
@@ -684,6 +699,7 @@ module Appwrite
684
699
  }
685
700
 
686
701
  api_headers = {
702
+ "X-Appwrite-Project": @client.get_config('project'),
687
703
  }
688
704
 
689
705
  @client.call(
@@ -722,6 +738,7 @@ module Appwrite
722
738
  }
723
739
 
724
740
  api_headers = {
741
+ "X-Appwrite-Project": @client.get_config('project'),
725
742
  "content-type": 'application/json',
726
743
  }
727
744
 
@@ -757,6 +774,7 @@ module Appwrite
757
774
  }
758
775
 
759
776
  api_headers = {
777
+ "X-Appwrite-Project": @client.get_config('project'),
760
778
  }
761
779
 
762
780
  @client.call(
@@ -801,6 +819,7 @@ module Appwrite
801
819
  }
802
820
 
803
821
  api_headers = {
822
+ "X-Appwrite-Project": @client.get_config('project'),
804
823
  "content-type": 'application/json',
805
824
  }
806
825
 
@@ -837,6 +856,7 @@ module Appwrite
837
856
  }
838
857
 
839
858
  api_headers = {
859
+ "X-Appwrite-Project": @client.get_config('project'),
840
860
  }
841
861
 
842
862
  @client.call(
@@ -872,6 +892,7 @@ module Appwrite
872
892
  }
873
893
 
874
894
  api_headers = {
895
+ "X-Appwrite-Project": @client.get_config('project'),
875
896
  "content-type": 'application/json',
876
897
  }
877
898
 
@@ -905,6 +926,7 @@ module Appwrite
905
926
  }
906
927
 
907
928
  api_headers = {
929
+ "X-Appwrite-Project": @client.get_config('project'),
908
930
  }
909
931
 
910
932
  @client.call(
@@ -955,6 +977,7 @@ module Appwrite
955
977
  }
956
978
 
957
979
  api_headers = {
980
+ "X-Appwrite-Project": @client.get_config('project'),
958
981
  "content-type": 'application/json',
959
982
  }
960
983
 
@@ -991,6 +1014,7 @@ module Appwrite
991
1014
  }
992
1015
 
993
1016
  api_headers = {
1017
+ "X-Appwrite-Project": @client.get_config('project'),
994
1018
  }
995
1019
 
996
1020
  @client.call(
@@ -1032,6 +1056,7 @@ module Appwrite
1032
1056
  }
1033
1057
 
1034
1058
  api_headers = {
1059
+ "X-Appwrite-Project": @client.get_config('project'),
1035
1060
  "content-type": 'application/json',
1036
1061
  }
1037
1062
 
@@ -1068,6 +1093,7 @@ module Appwrite
1068
1093
  }
1069
1094
 
1070
1095
  api_headers = {
1096
+ "X-Appwrite-Project": @client.get_config('project'),
1071
1097
  "content-type": 'application/json',
1072
1098
  }
1073
1099
 
@@ -24,6 +24,7 @@ module Appwrite
24
24
  }
25
25
 
26
26
  api_headers = {
27
+ "X-Appwrite-Project": @client.get_config('project'),
27
28
  "x-sdk-graphql": 'true',
28
29
  "content-type": 'application/json',
29
30
  }
@@ -54,6 +55,7 @@ module Appwrite
54
55
  }
55
56
 
56
57
  api_headers = {
58
+ "X-Appwrite-Project": @client.get_config('project'),
57
59
  "x-sdk-graphql": 'true',
58
60
  "content-type": 'application/json',
59
61
  }
@@ -18,6 +18,7 @@ module Appwrite
18
18
  }
19
19
 
20
20
  api_headers = {
21
+ "X-Appwrite-Project": @client.get_config('project'),
21
22
  }
22
23
 
23
24
  @client.call(
@@ -41,6 +42,7 @@ module Appwrite
41
42
  }
42
43
 
43
44
  api_headers = {
45
+ "X-Appwrite-Project": @client.get_config('project'),
44
46
  }
45
47
 
46
48
  @client.call(
@@ -53,6 +55,33 @@ module Appwrite
53
55
 
54
56
  end
55
57
 
58
+ # Check the database that backs the audit and activity store. When the
59
+ # connection is reachable the endpoint returns a passing status with its
60
+ # response time.
61
+ #
62
+ #
63
+ #
64
+ # @return [HealthStatusList]
65
+ def get_audits_db()
66
+ api_path = '/health/audits-db'
67
+
68
+ api_params = {
69
+ }
70
+
71
+ api_headers = {
72
+ "X-Appwrite-Project": @client.get_config('project'),
73
+ }
74
+
75
+ @client.call(
76
+ method: 'GET',
77
+ path: api_path,
78
+ headers: api_headers,
79
+ params: api_params,
80
+ response_type: Models::HealthStatusList
81
+ )
82
+
83
+ end
84
+
56
85
  # Check the Appwrite in-memory cache servers are up and connection is
57
86
  # successful.
58
87
  #
@@ -65,6 +94,7 @@ module Appwrite
65
94
  }
66
95
 
67
96
  api_headers = {
97
+ "X-Appwrite-Project": @client.get_config('project'),
68
98
  }
69
99
 
70
100
  @client.call(
@@ -90,6 +120,7 @@ module Appwrite
90
120
  }
91
121
 
92
122
  api_headers = {
123
+ "X-Appwrite-Project": @client.get_config('project'),
93
124
  }
94
125
 
95
126
  @client.call(
@@ -119,6 +150,7 @@ module Appwrite
119
150
  }
120
151
 
121
152
  api_headers = {
153
+ "X-Appwrite-Project": @client.get_config('project'),
122
154
  }
123
155
 
124
156
  @client.call(
@@ -142,6 +174,7 @@ module Appwrite
142
174
  }
143
175
 
144
176
  api_headers = {
177
+ "X-Appwrite-Project": @client.get_config('project'),
145
178
  }
146
179
 
147
180
  @client.call(
@@ -165,6 +198,7 @@ module Appwrite
165
198
  }
166
199
 
167
200
  api_headers = {
201
+ "X-Appwrite-Project": @client.get_config('project'),
168
202
  }
169
203
 
170
204
  @client.call(
@@ -192,6 +226,7 @@ module Appwrite
192
226
  }
193
227
 
194
228
  api_headers = {
229
+ "X-Appwrite-Project": @client.get_config('project'),
195
230
  }
196
231
 
197
232
  @client.call(
@@ -218,6 +253,7 @@ module Appwrite
218
253
  }
219
254
 
220
255
  api_headers = {
256
+ "X-Appwrite-Project": @client.get_config('project'),
221
257
  }
222
258
 
223
259
  @client.call(
@@ -245,6 +281,7 @@ module Appwrite
245
281
  }
246
282
 
247
283
  api_headers = {
284
+ "X-Appwrite-Project": @client.get_config('project'),
248
285
  }
249
286
 
250
287
  @client.call(
@@ -273,6 +310,7 @@ module Appwrite
273
310
  }
274
311
 
275
312
  api_headers = {
313
+ "X-Appwrite-Project": @client.get_config('project'),
276
314
  }
277
315
 
278
316
  @client.call(
@@ -299,6 +337,7 @@ module Appwrite
299
337
  }
300
338
 
301
339
  api_headers = {
340
+ "X-Appwrite-Project": @client.get_config('project'),
302
341
  }
303
342
 
304
343
  @client.call(
@@ -331,6 +370,7 @@ module Appwrite
331
370
  }
332
371
 
333
372
  api_headers = {
373
+ "X-Appwrite-Project": @client.get_config('project'),
334
374
  }
335
375
 
336
376
  @client.call(
@@ -357,6 +397,7 @@ module Appwrite
357
397
  }
358
398
 
359
399
  api_headers = {
400
+ "X-Appwrite-Project": @client.get_config('project'),
360
401
  }
361
402
 
362
403
  @client.call(
@@ -383,6 +424,7 @@ module Appwrite
383
424
  }
384
425
 
385
426
  api_headers = {
427
+ "X-Appwrite-Project": @client.get_config('project'),
386
428
  }
387
429
 
388
430
  @client.call(
@@ -409,6 +451,7 @@ module Appwrite
409
451
  }
410
452
 
411
453
  api_headers = {
454
+ "X-Appwrite-Project": @client.get_config('project'),
412
455
  }
413
456
 
414
457
  @client.call(
@@ -435,6 +478,7 @@ module Appwrite
435
478
  }
436
479
 
437
480
  api_headers = {
481
+ "X-Appwrite-Project": @client.get_config('project'),
438
482
  }
439
483
 
440
484
  @client.call(
@@ -461,6 +505,7 @@ module Appwrite
461
505
  }
462
506
 
463
507
  api_headers = {
508
+ "X-Appwrite-Project": @client.get_config('project'),
464
509
  }
465
510
 
466
511
  @client.call(
@@ -487,6 +532,7 @@ module Appwrite
487
532
  }
488
533
 
489
534
  api_headers = {
535
+ "X-Appwrite-Project": @client.get_config('project'),
490
536
  }
491
537
 
492
538
  @client.call(
@@ -513,6 +559,7 @@ module Appwrite
513
559
  }
514
560
 
515
561
  api_headers = {
562
+ "X-Appwrite-Project": @client.get_config('project'),
516
563
  }
517
564
 
518
565
  @client.call(
@@ -539,6 +586,7 @@ module Appwrite
539
586
  }
540
587
 
541
588
  api_headers = {
589
+ "X-Appwrite-Project": @client.get_config('project'),
542
590
  }
543
591
 
544
592
  @client.call(
@@ -562,6 +610,7 @@ module Appwrite
562
610
  }
563
611
 
564
612
  api_headers = {
613
+ "X-Appwrite-Project": @client.get_config('project'),
565
614
  }
566
615
 
567
616
  @client.call(
@@ -585,6 +634,7 @@ module Appwrite
585
634
  }
586
635
 
587
636
  api_headers = {
637
+ "X-Appwrite-Project": @client.get_config('project'),
588
638
  }
589
639
 
590
640
  @client.call(
@@ -614,6 +664,7 @@ module Appwrite
614
664
  }
615
665
 
616
666
  api_headers = {
667
+ "X-Appwrite-Project": @client.get_config('project'),
617
668
  }
618
669
 
619
670
  @client.call(
@@ -23,6 +23,7 @@ module Appwrite
23
23
  }
24
24
 
25
25
  api_headers = {
26
+ "X-Appwrite-Project": @client.get_config('project'),
26
27
  }
27
28
 
28
29
  @client.call(
@@ -47,6 +48,7 @@ module Appwrite
47
48
  }
48
49
 
49
50
  api_headers = {
51
+ "X-Appwrite-Project": @client.get_config('project'),
50
52
  }
51
53
 
52
54
  @client.call(
@@ -71,6 +73,7 @@ module Appwrite
71
73
  }
72
74
 
73
75
  api_headers = {
76
+ "X-Appwrite-Project": @client.get_config('project'),
74
77
  }
75
78
 
76
79
  @client.call(
@@ -95,6 +98,7 @@ module Appwrite
95
98
  }
96
99
 
97
100
  api_headers = {
101
+ "X-Appwrite-Project": @client.get_config('project'),
98
102
  }
99
103
 
100
104
  @client.call(
@@ -119,6 +123,7 @@ module Appwrite
119
123
  }
120
124
 
121
125
  api_headers = {
126
+ "X-Appwrite-Project": @client.get_config('project'),
122
127
  }
123
128
 
124
129
  @client.call(
@@ -143,6 +148,7 @@ module Appwrite
143
148
  }
144
149
 
145
150
  api_headers = {
151
+ "X-Appwrite-Project": @client.get_config('project'),
146
152
  }
147
153
 
148
154
  @client.call(
@@ -168,6 +174,7 @@ module Appwrite
168
174
  }
169
175
 
170
176
  api_headers = {
177
+ "X-Appwrite-Project": @client.get_config('project'),
171
178
  }
172
179
 
173
180
  @client.call(
@@ -192,6 +199,7 @@ module Appwrite
192
199
  }
193
200
 
194
201
  api_headers = {
202
+ "X-Appwrite-Project": @client.get_config('project'),
195
203
  }
196
204
 
197
205
  @client.call(