appwrite 24.2.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.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +19 -3
- data/lib/appwrite/enums/backup_services.rb +1 -0
- data/lib/appwrite/enums/{theme.rb → browser_theme.rb} +1 -1
- data/lib/appwrite/enums/build_runtime.rb +2 -3
- data/lib/appwrite/enums/{name.rb → health_queue_name.rb} +1 -1
- data/lib/appwrite/enums/organization_key_scopes.rb +16 -0
- data/lib/appwrite/enums/project_key_scopes.rb +2 -0
- data/lib/appwrite/enums/project_o_auth_provider_id.rb +0 -2
- data/lib/appwrite/enums/project_policy_id.rb +4 -0
- data/lib/appwrite/enums/region.rb +12 -0
- data/lib/appwrite/enums/runtime.rb +2 -3
- data/lib/appwrite/enums/status_code.rb +4 -4
- data/lib/appwrite/models/activity_event.rb +20 -20
- data/lib/appwrite/models/function.rb +10 -0
- data/lib/appwrite/models/policy_deny_aliased_email.rb +32 -0
- data/lib/appwrite/models/policy_deny_disposable_email.rb +32 -0
- data/lib/appwrite/models/policy_deny_free_email.rb +32 -0
- data/lib/appwrite/models/policy_password_strength.rb +52 -0
- data/lib/appwrite/models/presence.rb +2 -6
- data/lib/appwrite/models/presence_list.rb +0 -4
- data/lib/appwrite/models/project.rb +58 -13
- data/lib/appwrite/models/project_list.rb +32 -0
- data/lib/appwrite/models/site.rb +10 -0
- data/lib/appwrite/models/usage_gauge.rb +13 -3
- data/lib/appwrite/services/account.rb +46 -1
- data/lib/appwrite/services/activities.rb +2 -0
- data/lib/appwrite/services/advisor.rb +5 -0
- data/lib/appwrite/services/avatars.rb +9 -1
- data/lib/appwrite/services/backups.rb +12 -0
- data/lib/appwrite/services/databases.rb +71 -0
- data/lib/appwrite/services/functions.rb +36 -2
- data/lib/appwrite/services/graphql.rb +2 -0
- data/lib/appwrite/services/health.rb +52 -1
- data/lib/appwrite/services/locale.rb +8 -0
- data/lib/appwrite/services/messaging.rb +150 -0
- data/lib/appwrite/services/organization.rb +359 -0
- data/lib/appwrite/services/presences.rb +6 -1
- data/lib/appwrite/services/project.rb +214 -12
- data/lib/appwrite/services/proxy.rb +8 -0
- data/lib/appwrite/services/sites.rb +35 -2
- data/lib/appwrite/services/storage.rb +13 -0
- data/lib/appwrite/services/tables_db.rb +71 -0
- data/lib/appwrite/services/teams.rb +13 -0
- data/lib/appwrite/services/tokens.rb +5 -0
- data/lib/appwrite/services/usage.rb +12 -10
- data/lib/appwrite/services/users.rb +43 -0
- data/lib/appwrite/services/webhooks.rb +6 -0
- data/lib/appwrite.rb +13 -6
- metadata +12 -5
- data/lib/appwrite/enums/scopes.rb +0 -100
|
@@ -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(
|
|
@@ -55,6 +56,7 @@ module Appwrite
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
api_headers = {
|
|
59
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
58
60
|
"content-type": 'application/json',
|
|
59
61
|
}
|
|
60
62
|
|
|
@@ -96,6 +98,7 @@ module Appwrite
|
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
api_headers = {
|
|
101
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
99
102
|
"content-type": 'application/json',
|
|
100
103
|
}
|
|
101
104
|
|
|
@@ -154,6 +157,7 @@ module Appwrite
|
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
api_headers = {
|
|
160
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
157
161
|
"content-type": 'application/json',
|
|
158
162
|
}
|
|
159
163
|
|
|
@@ -195,6 +199,7 @@ module Appwrite
|
|
|
195
199
|
}
|
|
196
200
|
|
|
197
201
|
api_headers = {
|
|
202
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
198
203
|
"content-type": 'application/json',
|
|
199
204
|
}
|
|
200
205
|
|
|
@@ -225,6 +230,7 @@ module Appwrite
|
|
|
225
230
|
}
|
|
226
231
|
|
|
227
232
|
api_headers = {
|
|
233
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
228
234
|
}
|
|
229
235
|
|
|
230
236
|
@client.call(
|
|
@@ -254,6 +260,7 @@ module Appwrite
|
|
|
254
260
|
}
|
|
255
261
|
|
|
256
262
|
api_headers = {
|
|
263
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
257
264
|
"content-type": 'application/json',
|
|
258
265
|
}
|
|
259
266
|
|
|
@@ -286,6 +293,7 @@ module Appwrite
|
|
|
286
293
|
}
|
|
287
294
|
|
|
288
295
|
api_headers = {
|
|
296
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
289
297
|
"content-type": 'application/json',
|
|
290
298
|
}
|
|
291
299
|
|
|
@@ -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(
|
|
@@ -57,12 +58,14 @@ module Appwrite
|
|
|
57
58
|
# @param [String] provider_branch Production branch for the repo linked to the site.
|
|
58
59
|
# @param [] provider_silent_mode Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
59
60
|
# @param [String] provider_root_directory Path to site code in the linked repo.
|
|
61
|
+
# @param [Array] provider_branches List of branch name patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all branches.
|
|
62
|
+
# @param [Array] provider_paths List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
|
|
60
63
|
# @param [String] build_specification Build specification for the site deployments.
|
|
61
64
|
# @param [String] runtime_specification Runtime specification for the SSR executions.
|
|
62
65
|
# @param [Integer] deployment_retention Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
63
66
|
#
|
|
64
67
|
# @return [Site]
|
|
65
|
-
def create(site_id:, name:, framework:, build_runtime:, enabled: nil, logging: nil, timeout: nil, install_command: nil, build_command: nil, start_command: nil, output_directory: nil, adapter: nil, installation_id: nil, fallback_file: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil, build_specification: nil, runtime_specification: nil, deployment_retention: nil)
|
|
68
|
+
def create(site_id:, name:, framework:, build_runtime:, enabled: nil, logging: nil, timeout: nil, install_command: nil, build_command: nil, start_command: nil, output_directory: nil, adapter: nil, installation_id: nil, fallback_file: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil, provider_branches: nil, provider_paths: nil, build_specification: nil, runtime_specification: nil, deployment_retention: nil)
|
|
66
69
|
api_path = '/sites'
|
|
67
70
|
|
|
68
71
|
if site_id.nil?
|
|
@@ -100,12 +103,15 @@ module Appwrite
|
|
|
100
103
|
providerBranch: provider_branch,
|
|
101
104
|
providerSilentMode: provider_silent_mode,
|
|
102
105
|
providerRootDirectory: provider_root_directory,
|
|
106
|
+
providerBranches: provider_branches,
|
|
107
|
+
providerPaths: provider_paths,
|
|
103
108
|
buildSpecification: build_specification,
|
|
104
109
|
runtimeSpecification: runtime_specification,
|
|
105
110
|
deploymentRetention: deployment_retention,
|
|
106
111
|
}
|
|
107
112
|
|
|
108
113
|
api_headers = {
|
|
114
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
109
115
|
"content-type": 'application/json',
|
|
110
116
|
}
|
|
111
117
|
|
|
@@ -131,6 +137,7 @@ module Appwrite
|
|
|
131
137
|
}
|
|
132
138
|
|
|
133
139
|
api_headers = {
|
|
140
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
134
141
|
}
|
|
135
142
|
|
|
136
143
|
@client.call(
|
|
@@ -154,6 +161,7 @@ module Appwrite
|
|
|
154
161
|
}
|
|
155
162
|
|
|
156
163
|
api_headers = {
|
|
164
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
157
165
|
}
|
|
158
166
|
|
|
159
167
|
@client.call(
|
|
@@ -183,6 +191,7 @@ module Appwrite
|
|
|
183
191
|
}
|
|
184
192
|
|
|
185
193
|
api_headers = {
|
|
194
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
186
195
|
}
|
|
187
196
|
|
|
188
197
|
@client.call(
|
|
@@ -215,12 +224,14 @@ module Appwrite
|
|
|
215
224
|
# @param [String] provider_branch Production branch for the repo linked to the site.
|
|
216
225
|
# @param [] provider_silent_mode Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
217
226
|
# @param [String] provider_root_directory Path to site code in the linked repo.
|
|
227
|
+
# @param [Array] provider_branches List of branch name patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all branches.
|
|
228
|
+
# @param [Array] provider_paths List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
|
|
218
229
|
# @param [String] build_specification Build specification for the site deployments.
|
|
219
230
|
# @param [String] runtime_specification Runtime specification for the SSR executions.
|
|
220
231
|
# @param [Integer] deployment_retention Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
221
232
|
#
|
|
222
233
|
# @return [Site]
|
|
223
|
-
def update(site_id:, name:, framework:, enabled: nil, logging: nil, timeout: nil, install_command: nil, build_command: nil, start_command: nil, output_directory: nil, build_runtime: nil, adapter: nil, fallback_file: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil, build_specification: nil, runtime_specification: nil, deployment_retention: nil)
|
|
234
|
+
def update(site_id:, name:, framework:, enabled: nil, logging: nil, timeout: nil, install_command: nil, build_command: nil, start_command: nil, output_directory: nil, build_runtime: nil, adapter: nil, fallback_file: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil, provider_branches: nil, provider_paths: nil, build_specification: nil, runtime_specification: nil, deployment_retention: nil)
|
|
224
235
|
api_path = '/sites/{siteId}'
|
|
225
236
|
.gsub('{siteId}', site_id)
|
|
226
237
|
|
|
@@ -254,12 +265,15 @@ module Appwrite
|
|
|
254
265
|
providerBranch: provider_branch,
|
|
255
266
|
providerSilentMode: provider_silent_mode,
|
|
256
267
|
providerRootDirectory: provider_root_directory,
|
|
268
|
+
providerBranches: provider_branches,
|
|
269
|
+
providerPaths: provider_paths,
|
|
257
270
|
buildSpecification: build_specification,
|
|
258
271
|
runtimeSpecification: runtime_specification,
|
|
259
272
|
deploymentRetention: deployment_retention,
|
|
260
273
|
}
|
|
261
274
|
|
|
262
275
|
api_headers = {
|
|
276
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
263
277
|
"content-type": 'application/json',
|
|
264
278
|
}
|
|
265
279
|
|
|
@@ -290,6 +304,7 @@ module Appwrite
|
|
|
290
304
|
}
|
|
291
305
|
|
|
292
306
|
api_headers = {
|
|
307
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
293
308
|
"content-type": 'application/json',
|
|
294
309
|
}
|
|
295
310
|
|
|
@@ -326,6 +341,7 @@ module Appwrite
|
|
|
326
341
|
}
|
|
327
342
|
|
|
328
343
|
api_headers = {
|
|
344
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
329
345
|
"content-type": 'application/json',
|
|
330
346
|
}
|
|
331
347
|
|
|
@@ -363,6 +379,7 @@ module Appwrite
|
|
|
363
379
|
}
|
|
364
380
|
|
|
365
381
|
api_headers = {
|
|
382
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
366
383
|
}
|
|
367
384
|
|
|
368
385
|
@client.call(
|
|
@@ -408,6 +425,7 @@ module Appwrite
|
|
|
408
425
|
}
|
|
409
426
|
|
|
410
427
|
api_headers = {
|
|
428
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
411
429
|
"content-type": 'multipart/form-data',
|
|
412
430
|
}
|
|
413
431
|
|
|
@@ -453,6 +471,7 @@ module Appwrite
|
|
|
453
471
|
}
|
|
454
472
|
|
|
455
473
|
api_headers = {
|
|
474
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
456
475
|
"content-type": 'application/json',
|
|
457
476
|
}
|
|
458
477
|
|
|
@@ -519,6 +538,7 @@ module Appwrite
|
|
|
519
538
|
}
|
|
520
539
|
|
|
521
540
|
api_headers = {
|
|
541
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
522
542
|
"content-type": 'application/json',
|
|
523
543
|
}
|
|
524
544
|
|
|
@@ -565,6 +585,7 @@ module Appwrite
|
|
|
565
585
|
}
|
|
566
586
|
|
|
567
587
|
api_headers = {
|
|
588
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
568
589
|
"content-type": 'application/json',
|
|
569
590
|
}
|
|
570
591
|
|
|
@@ -601,6 +622,7 @@ module Appwrite
|
|
|
601
622
|
}
|
|
602
623
|
|
|
603
624
|
api_headers = {
|
|
625
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
604
626
|
}
|
|
605
627
|
|
|
606
628
|
@client.call(
|
|
@@ -636,6 +658,7 @@ module Appwrite
|
|
|
636
658
|
}
|
|
637
659
|
|
|
638
660
|
api_headers = {
|
|
661
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
639
662
|
"content-type": 'application/json',
|
|
640
663
|
}
|
|
641
664
|
|
|
@@ -675,6 +698,7 @@ module Appwrite
|
|
|
675
698
|
}
|
|
676
699
|
|
|
677
700
|
api_headers = {
|
|
701
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
678
702
|
}
|
|
679
703
|
|
|
680
704
|
@client.call(
|
|
@@ -713,6 +737,7 @@ module Appwrite
|
|
|
713
737
|
}
|
|
714
738
|
|
|
715
739
|
api_headers = {
|
|
740
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
716
741
|
"content-type": 'application/json',
|
|
717
742
|
}
|
|
718
743
|
|
|
@@ -748,6 +773,7 @@ module Appwrite
|
|
|
748
773
|
}
|
|
749
774
|
|
|
750
775
|
api_headers = {
|
|
776
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
751
777
|
}
|
|
752
778
|
|
|
753
779
|
@client.call(
|
|
@@ -783,6 +809,7 @@ module Appwrite
|
|
|
783
809
|
}
|
|
784
810
|
|
|
785
811
|
api_headers = {
|
|
812
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
786
813
|
}
|
|
787
814
|
|
|
788
815
|
@client.call(
|
|
@@ -818,6 +845,7 @@ module Appwrite
|
|
|
818
845
|
}
|
|
819
846
|
|
|
820
847
|
api_headers = {
|
|
848
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
821
849
|
"content-type": 'application/json',
|
|
822
850
|
}
|
|
823
851
|
|
|
@@ -851,6 +879,7 @@ module Appwrite
|
|
|
851
879
|
}
|
|
852
880
|
|
|
853
881
|
api_headers = {
|
|
882
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
854
883
|
}
|
|
855
884
|
|
|
856
885
|
@client.call(
|
|
@@ -901,6 +930,7 @@ module Appwrite
|
|
|
901
930
|
}
|
|
902
931
|
|
|
903
932
|
api_headers = {
|
|
933
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
904
934
|
"content-type": 'application/json',
|
|
905
935
|
}
|
|
906
936
|
|
|
@@ -937,6 +967,7 @@ module Appwrite
|
|
|
937
967
|
}
|
|
938
968
|
|
|
939
969
|
api_headers = {
|
|
970
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
940
971
|
}
|
|
941
972
|
|
|
942
973
|
@client.call(
|
|
@@ -978,6 +1009,7 @@ module Appwrite
|
|
|
978
1009
|
}
|
|
979
1010
|
|
|
980
1011
|
api_headers = {
|
|
1012
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
981
1013
|
"content-type": 'application/json',
|
|
982
1014
|
}
|
|
983
1015
|
|
|
@@ -1014,6 +1046,7 @@ module Appwrite
|
|
|
1014
1046
|
}
|
|
1015
1047
|
|
|
1016
1048
|
api_headers = {
|
|
1049
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1017
1050
|
"content-type": 'application/json',
|
|
1018
1051
|
}
|
|
1019
1052
|
|
|
@@ -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(
|
|
@@ -78,6 +79,7 @@ module Appwrite
|
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
api_headers = {
|
|
82
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
81
83
|
"content-type": 'application/json',
|
|
82
84
|
}
|
|
83
85
|
|
|
@@ -109,6 +111,7 @@ module Appwrite
|
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
api_headers = {
|
|
114
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
112
115
|
}
|
|
113
116
|
|
|
114
117
|
@client.call(
|
|
@@ -162,6 +165,7 @@ module Appwrite
|
|
|
162
165
|
}
|
|
163
166
|
|
|
164
167
|
api_headers = {
|
|
168
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
165
169
|
"content-type": 'application/json',
|
|
166
170
|
}
|
|
167
171
|
|
|
@@ -192,6 +196,7 @@ module Appwrite
|
|
|
192
196
|
}
|
|
193
197
|
|
|
194
198
|
api_headers = {
|
|
199
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
195
200
|
"content-type": 'application/json',
|
|
196
201
|
}
|
|
197
202
|
|
|
@@ -228,6 +233,7 @@ module Appwrite
|
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
api_headers = {
|
|
236
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
231
237
|
}
|
|
232
238
|
|
|
233
239
|
@client.call(
|
|
@@ -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": 'multipart/form-data',
|
|
292
299
|
}
|
|
293
300
|
|
|
@@ -330,6 +337,7 @@ module Appwrite
|
|
|
330
337
|
}
|
|
331
338
|
|
|
332
339
|
api_headers = {
|
|
340
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
333
341
|
}
|
|
334
342
|
|
|
335
343
|
@client.call(
|
|
@@ -370,6 +378,7 @@ module Appwrite
|
|
|
370
378
|
}
|
|
371
379
|
|
|
372
380
|
api_headers = {
|
|
381
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
373
382
|
"content-type": 'application/json',
|
|
374
383
|
}
|
|
375
384
|
|
|
@@ -407,6 +416,7 @@ module Appwrite
|
|
|
407
416
|
}
|
|
408
417
|
|
|
409
418
|
api_headers = {
|
|
419
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
410
420
|
"content-type": 'application/json',
|
|
411
421
|
}
|
|
412
422
|
|
|
@@ -446,6 +456,7 @@ module Appwrite
|
|
|
446
456
|
}
|
|
447
457
|
|
|
448
458
|
api_headers = {
|
|
459
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
449
460
|
}
|
|
450
461
|
|
|
451
462
|
@client.call(
|
|
@@ -508,6 +519,7 @@ module Appwrite
|
|
|
508
519
|
}
|
|
509
520
|
|
|
510
521
|
api_headers = {
|
|
522
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
511
523
|
}
|
|
512
524
|
|
|
513
525
|
@client.call(
|
|
@@ -546,6 +558,7 @@ module Appwrite
|
|
|
546
558
|
}
|
|
547
559
|
|
|
548
560
|
api_headers = {
|
|
561
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
549
562
|
}
|
|
550
563
|
|
|
551
564
|
@client.call(
|