appwrite 16.1.0 → 17.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.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +2 -2
- data/lib/appwrite/models/column_boolean.rb +67 -0
- data/lib/appwrite/models/column_datetime.rb +72 -0
- data/lib/appwrite/models/column_email.rb +72 -0
- data/lib/appwrite/models/column_enum.rb +77 -0
- data/lib/appwrite/models/column_float.rb +77 -0
- data/lib/appwrite/models/column_index.rb +72 -0
- data/lib/appwrite/models/column_index_list.rb +32 -0
- data/lib/appwrite/models/column_integer.rb +77 -0
- data/lib/appwrite/models/column_ip.rb +72 -0
- data/lib/appwrite/models/column_list.rb +32 -0
- data/lib/appwrite/models/column_relationship.rb +92 -0
- data/lib/appwrite/models/column_string.rb +77 -0
- data/lib/appwrite/models/column_url.rb +72 -0
- data/lib/appwrite/models/database.rb +8 -3
- data/lib/appwrite/models/execution.rb +5 -0
- data/lib/appwrite/models/index.rb +18 -13
- data/lib/appwrite/models/row.rb +66 -0
- data/lib/appwrite/models/row_list.rb +36 -0
- data/lib/appwrite/models/table.rb +72 -0
- data/lib/appwrite/models/table_list.rb +32 -0
- data/lib/appwrite/query.rb +36 -0
- data/lib/appwrite/services/account.rb +15 -48
- data/lib/appwrite/services/avatars.rb +0 -7
- data/lib/appwrite/services/databases.rb +198 -120
- data/lib/appwrite/services/functions.rb +0 -26
- data/lib/appwrite/services/graphql.rb +0 -2
- data/lib/appwrite/services/health.rb +0 -22
- data/lib/appwrite/services/locale.rb +0 -8
- data/lib/appwrite/services/messaging.rb +0 -46
- data/lib/appwrite/services/sites.rb +0 -25
- data/lib/appwrite/services/storage.rb +0 -13
- data/lib/appwrite/services/tables_db.rb +2318 -0
- data/lib/appwrite/services/teams.rb +0 -13
- data/lib/appwrite/services/tokens.rb +0 -5
- data/lib/appwrite/services/users.rb +0 -42
- data/lib/appwrite.rb +18 -0
- metadata +20 -2
@@ -34,7 +34,6 @@ module Appwrite
|
|
34
34
|
)
|
35
35
|
end
|
36
36
|
|
37
|
-
|
38
37
|
# Create a new function. You can pass a list of
|
39
38
|
# [permissions](https://appwrite.io/docs/permissions) to allow different
|
40
39
|
# project users or team with access to execute the function using the client
|
@@ -109,7 +108,6 @@ module Appwrite
|
|
109
108
|
)
|
110
109
|
end
|
111
110
|
|
112
|
-
|
113
111
|
# Get a list of all runtimes that are currently active on your instance.
|
114
112
|
#
|
115
113
|
#
|
@@ -132,7 +130,6 @@ module Appwrite
|
|
132
130
|
)
|
133
131
|
end
|
134
132
|
|
135
|
-
|
136
133
|
# List allowed function specifications for this instance.
|
137
134
|
#
|
138
135
|
#
|
@@ -155,7 +152,6 @@ module Appwrite
|
|
155
152
|
)
|
156
153
|
end
|
157
154
|
|
158
|
-
|
159
155
|
# Get a function by its unique ID.
|
160
156
|
#
|
161
157
|
# @param [String] function_id Function ID.
|
@@ -184,7 +180,6 @@ module Appwrite
|
|
184
180
|
)
|
185
181
|
end
|
186
182
|
|
187
|
-
|
188
183
|
# Update function by its unique ID.
|
189
184
|
#
|
190
185
|
# @param [String] function_id Function ID.
|
@@ -252,7 +247,6 @@ module Appwrite
|
|
252
247
|
)
|
253
248
|
end
|
254
249
|
|
255
|
-
|
256
250
|
# Delete a function by its unique ID.
|
257
251
|
#
|
258
252
|
# @param [String] function_id Function ID.
|
@@ -281,7 +275,6 @@ module Appwrite
|
|
281
275
|
)
|
282
276
|
end
|
283
277
|
|
284
|
-
|
285
278
|
# Update the function active deployment. Use this endpoint to switch the code
|
286
279
|
# deployment that should be used when visitor opens your function.
|
287
280
|
#
|
@@ -318,7 +311,6 @@ module Appwrite
|
|
318
311
|
)
|
319
312
|
end
|
320
313
|
|
321
|
-
|
322
314
|
# Get a list of all the function's code deployments. You can use the query
|
323
315
|
# params to filter your results.
|
324
316
|
#
|
@@ -352,7 +344,6 @@ module Appwrite
|
|
352
344
|
)
|
353
345
|
end
|
354
346
|
|
355
|
-
|
356
347
|
# Create a new function code deployment. Use this endpoint to upload a new
|
357
348
|
# version of your code function. To execute your newly uploaded code, you'll
|
358
349
|
# need to update the function's deployment to use your new deployment UID.
|
@@ -412,7 +403,6 @@ module Appwrite
|
|
412
403
|
)
|
413
404
|
end
|
414
405
|
|
415
|
-
|
416
406
|
# Create a new build for an existing function deployment. This endpoint
|
417
407
|
# allows you to rebuild a deployment with the updated function configuration,
|
418
408
|
# including its entrypoint and build commands if they have been modified. The
|
@@ -454,7 +444,6 @@ module Appwrite
|
|
454
444
|
)
|
455
445
|
end
|
456
446
|
|
457
|
-
|
458
447
|
# Create a deployment based on a template.
|
459
448
|
#
|
460
449
|
# Use this endpoint with combination of
|
@@ -514,7 +503,6 @@ module Appwrite
|
|
514
503
|
)
|
515
504
|
end
|
516
505
|
|
517
|
-
|
518
506
|
# Create a deployment when a function is connected to VCS.
|
519
507
|
#
|
520
508
|
# This endpoint lets you create deployment from a branch, commit, or a tag.
|
@@ -560,7 +548,6 @@ module Appwrite
|
|
560
548
|
)
|
561
549
|
end
|
562
550
|
|
563
|
-
|
564
551
|
# Get a function deployment by its unique ID.
|
565
552
|
#
|
566
553
|
# @param [String] function_id Function ID.
|
@@ -595,7 +582,6 @@ module Appwrite
|
|
595
582
|
)
|
596
583
|
end
|
597
584
|
|
598
|
-
|
599
585
|
# Delete a code deployment by its unique ID.
|
600
586
|
#
|
601
587
|
# @param [String] function_id Function ID.
|
@@ -630,7 +616,6 @@ module Appwrite
|
|
630
616
|
)
|
631
617
|
end
|
632
618
|
|
633
|
-
|
634
619
|
# Get a function deployment content by its unique ID. The endpoint response
|
635
620
|
# return with a 'Content-Disposition: attachment' header that tells the
|
636
621
|
# browser to start downloading the file to user downloads directory.
|
@@ -668,7 +653,6 @@ module Appwrite
|
|
668
653
|
)
|
669
654
|
end
|
670
655
|
|
671
|
-
|
672
656
|
# Cancel an ongoing function deployment build. If the build is already in
|
673
657
|
# progress, it will be stopped and marked as canceled. If the build hasn't
|
674
658
|
# started yet, it will be marked as canceled without executing. You cannot
|
@@ -708,7 +692,6 @@ module Appwrite
|
|
708
692
|
)
|
709
693
|
end
|
710
694
|
|
711
|
-
|
712
695
|
# Get a list of all the current user function execution logs. You can use the
|
713
696
|
# query params to filter your results.
|
714
697
|
#
|
@@ -740,7 +723,6 @@ module Appwrite
|
|
740
723
|
)
|
741
724
|
end
|
742
725
|
|
743
|
-
|
744
726
|
# Trigger a function execution. The returned object will return you the
|
745
727
|
# current execution status. You can ping the `Get Execution` endpoint to get
|
746
728
|
# updates on the current execution status. Once this endpoint is called, your
|
@@ -785,7 +767,6 @@ module Appwrite
|
|
785
767
|
)
|
786
768
|
end
|
787
769
|
|
788
|
-
|
789
770
|
# Get a function execution log by its unique ID.
|
790
771
|
#
|
791
772
|
# @param [String] function_id Function ID.
|
@@ -820,7 +801,6 @@ module Appwrite
|
|
820
801
|
)
|
821
802
|
end
|
822
803
|
|
823
|
-
|
824
804
|
# Delete a function execution by its unique ID.
|
825
805
|
#
|
826
806
|
# @param [String] function_id Function ID.
|
@@ -855,7 +835,6 @@ module Appwrite
|
|
855
835
|
)
|
856
836
|
end
|
857
837
|
|
858
|
-
|
859
838
|
# Get a list of all variables of a specific function.
|
860
839
|
#
|
861
840
|
# @param [String] function_id Function unique ID.
|
@@ -884,7 +863,6 @@ module Appwrite
|
|
884
863
|
)
|
885
864
|
end
|
886
865
|
|
887
|
-
|
888
866
|
# Create a new function environment variable. These variables can be accessed
|
889
867
|
# in the function at runtime as environment variables.
|
890
868
|
#
|
@@ -929,7 +907,6 @@ module Appwrite
|
|
929
907
|
)
|
930
908
|
end
|
931
909
|
|
932
|
-
|
933
910
|
# Get a variable by its unique ID.
|
934
911
|
#
|
935
912
|
# @param [String] function_id Function unique ID.
|
@@ -964,7 +941,6 @@ module Appwrite
|
|
964
941
|
)
|
965
942
|
end
|
966
943
|
|
967
|
-
|
968
944
|
# Update variable by its unique ID.
|
969
945
|
#
|
970
946
|
# @param [String] function_id Function unique ID.
|
@@ -1010,7 +986,6 @@ module Appwrite
|
|
1010
986
|
)
|
1011
987
|
end
|
1012
988
|
|
1013
|
-
|
1014
989
|
# Delete a variable by its unique ID.
|
1015
990
|
#
|
1016
991
|
# @param [String] function_id Function unique ID.
|
@@ -1045,6 +1020,5 @@ module Appwrite
|
|
1045
1020
|
)
|
1046
1021
|
end
|
1047
1022
|
|
1048
|
-
|
1049
1023
|
end
|
1050
1024
|
end
|
@@ -29,7 +29,6 @@ module Appwrite
|
|
29
29
|
)
|
30
30
|
end
|
31
31
|
|
32
|
-
|
33
32
|
# Check the Appwrite Antivirus server is up and connection is successful.
|
34
33
|
#
|
35
34
|
#
|
@@ -52,7 +51,6 @@ module Appwrite
|
|
52
51
|
)
|
53
52
|
end
|
54
53
|
|
55
|
-
|
56
54
|
# Check the Appwrite in-memory cache servers are up and connection is
|
57
55
|
# successful.
|
58
56
|
#
|
@@ -76,7 +74,6 @@ module Appwrite
|
|
76
74
|
)
|
77
75
|
end
|
78
76
|
|
79
|
-
|
80
77
|
# Get the SSL certificate for a domain
|
81
78
|
#
|
82
79
|
# @param [String] domain string
|
@@ -101,7 +98,6 @@ module Appwrite
|
|
101
98
|
)
|
102
99
|
end
|
103
100
|
|
104
|
-
|
105
101
|
# Check the Appwrite database servers are up and connection is successful.
|
106
102
|
#
|
107
103
|
#
|
@@ -124,7 +120,6 @@ module Appwrite
|
|
124
120
|
)
|
125
121
|
end
|
126
122
|
|
127
|
-
|
128
123
|
# Check the Appwrite pub-sub servers are up and connection is successful.
|
129
124
|
#
|
130
125
|
#
|
@@ -147,7 +142,6 @@ module Appwrite
|
|
147
142
|
)
|
148
143
|
end
|
149
144
|
|
150
|
-
|
151
145
|
# Get the number of builds that are waiting to be processed in the Appwrite
|
152
146
|
# internal queue server.
|
153
147
|
#
|
@@ -173,7 +167,6 @@ module Appwrite
|
|
173
167
|
)
|
174
168
|
end
|
175
169
|
|
176
|
-
|
177
170
|
# Get the number of certificates that are waiting to be issued against
|
178
171
|
# [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue
|
179
172
|
# server.
|
@@ -200,7 +193,6 @@ module Appwrite
|
|
200
193
|
)
|
201
194
|
end
|
202
195
|
|
203
|
-
|
204
196
|
# Get the number of database changes that are waiting to be processed in the
|
205
197
|
# Appwrite internal queue server.
|
206
198
|
#
|
@@ -228,7 +220,6 @@ module Appwrite
|
|
228
220
|
)
|
229
221
|
end
|
230
222
|
|
231
|
-
|
232
223
|
# Get the number of background destructive changes that are waiting to be
|
233
224
|
# processed in the Appwrite internal queue server.
|
234
225
|
#
|
@@ -254,7 +245,6 @@ module Appwrite
|
|
254
245
|
)
|
255
246
|
end
|
256
247
|
|
257
|
-
|
258
248
|
# Returns the amount of failed jobs in a given queue.
|
259
249
|
#
|
260
250
|
#
|
@@ -286,7 +276,6 @@ module Appwrite
|
|
286
276
|
)
|
287
277
|
end
|
288
278
|
|
289
|
-
|
290
279
|
# Get the number of function executions that are waiting to be processed in
|
291
280
|
# the Appwrite internal queue server.
|
292
281
|
#
|
@@ -312,7 +301,6 @@ module Appwrite
|
|
312
301
|
)
|
313
302
|
end
|
314
303
|
|
315
|
-
|
316
304
|
# Get the number of logs that are waiting to be processed in the Appwrite
|
317
305
|
# internal queue server.
|
318
306
|
#
|
@@ -338,7 +326,6 @@ module Appwrite
|
|
338
326
|
)
|
339
327
|
end
|
340
328
|
|
341
|
-
|
342
329
|
# Get the number of mails that are waiting to be processed in the Appwrite
|
343
330
|
# internal queue server.
|
344
331
|
#
|
@@ -364,7 +351,6 @@ module Appwrite
|
|
364
351
|
)
|
365
352
|
end
|
366
353
|
|
367
|
-
|
368
354
|
# Get the number of messages that are waiting to be processed in the Appwrite
|
369
355
|
# internal queue server.
|
370
356
|
#
|
@@ -390,7 +376,6 @@ module Appwrite
|
|
390
376
|
)
|
391
377
|
end
|
392
378
|
|
393
|
-
|
394
379
|
# Get the number of migrations that are waiting to be processed in the
|
395
380
|
# Appwrite internal queue server.
|
396
381
|
#
|
@@ -416,7 +401,6 @@ module Appwrite
|
|
416
401
|
)
|
417
402
|
end
|
418
403
|
|
419
|
-
|
420
404
|
# Get the number of metrics that are waiting to be processed in the Appwrite
|
421
405
|
# stats resources queue.
|
422
406
|
#
|
@@ -442,7 +426,6 @@ module Appwrite
|
|
442
426
|
)
|
443
427
|
end
|
444
428
|
|
445
|
-
|
446
429
|
# Get the number of metrics that are waiting to be processed in the Appwrite
|
447
430
|
# internal queue server.
|
448
431
|
#
|
@@ -468,7 +451,6 @@ module Appwrite
|
|
468
451
|
)
|
469
452
|
end
|
470
453
|
|
471
|
-
|
472
454
|
# Get the number of webhooks that are waiting to be processed in the Appwrite
|
473
455
|
# internal queue server.
|
474
456
|
#
|
@@ -494,7 +476,6 @@ module Appwrite
|
|
494
476
|
)
|
495
477
|
end
|
496
478
|
|
497
|
-
|
498
479
|
# Check the Appwrite storage device is up and connection is successful.
|
499
480
|
#
|
500
481
|
#
|
@@ -517,7 +498,6 @@ module Appwrite
|
|
517
498
|
)
|
518
499
|
end
|
519
500
|
|
520
|
-
|
521
501
|
# Check the Appwrite local storage device is up and connection is successful.
|
522
502
|
#
|
523
503
|
#
|
@@ -540,7 +520,6 @@ module Appwrite
|
|
540
520
|
)
|
541
521
|
end
|
542
522
|
|
543
|
-
|
544
523
|
# Check the Appwrite server time is synced with Google remote NTP server. We
|
545
524
|
# use this technology to smoothly handle leap seconds with no disruptive
|
546
525
|
# events. The [Network Time
|
@@ -569,6 +548,5 @@ module Appwrite
|
|
569
548
|
)
|
570
549
|
end
|
571
550
|
|
572
|
-
|
573
551
|
end
|
574
552
|
end
|
@@ -34,7 +34,6 @@ module Appwrite
|
|
34
34
|
)
|
35
35
|
end
|
36
36
|
|
37
|
-
|
38
37
|
# List of all locale codes in [ISO
|
39
38
|
# 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
|
40
39
|
#
|
@@ -58,7 +57,6 @@ module Appwrite
|
|
58
57
|
)
|
59
58
|
end
|
60
59
|
|
61
|
-
|
62
60
|
# List of all continents. You can use the locale header to get the data in a
|
63
61
|
# supported language.
|
64
62
|
#
|
@@ -82,7 +80,6 @@ module Appwrite
|
|
82
80
|
)
|
83
81
|
end
|
84
82
|
|
85
|
-
|
86
83
|
# List of all countries. You can use the locale header to get the data in a
|
87
84
|
# supported language.
|
88
85
|
#
|
@@ -106,7 +103,6 @@ module Appwrite
|
|
106
103
|
)
|
107
104
|
end
|
108
105
|
|
109
|
-
|
110
106
|
# List of all countries that are currently members of the EU. You can use the
|
111
107
|
# locale header to get the data in a supported language.
|
112
108
|
#
|
@@ -130,7 +126,6 @@ module Appwrite
|
|
130
126
|
)
|
131
127
|
end
|
132
128
|
|
133
|
-
|
134
129
|
# List of all countries phone codes. You can use the locale header to get the
|
135
130
|
# data in a supported language.
|
136
131
|
#
|
@@ -154,7 +149,6 @@ module Appwrite
|
|
154
149
|
)
|
155
150
|
end
|
156
151
|
|
157
|
-
|
158
152
|
# List of all currencies, including currency symbol, name, plural, and
|
159
153
|
# decimal digits for all major and minor currencies. You can use the locale
|
160
154
|
# header to get the data in a supported language.
|
@@ -179,7 +173,6 @@ module Appwrite
|
|
179
173
|
)
|
180
174
|
end
|
181
175
|
|
182
|
-
|
183
176
|
# List of all languages classified by ISO 639-1 including 2-letter code, name
|
184
177
|
# in English, and name in the respective language.
|
185
178
|
#
|
@@ -203,6 +196,5 @@ module Appwrite
|
|
203
196
|
)
|
204
197
|
end
|
205
198
|
|
206
|
-
|
207
199
|
end
|
208
200
|
end
|