appwrite 22.0.0 → 23.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 +35 -2
- data/lib/appwrite/enums/auth_method.rb +13 -0
- data/lib/appwrite/enums/build_runtime.rb +3 -0
- data/lib/appwrite/enums/email_template_locale.rb +137 -0
- data/lib/appwrite/enums/email_template_type.rb +13 -0
- data/lib/appwrite/enums/o_auth_provider.rb +6 -0
- data/lib/appwrite/enums/platform_type.rb +11 -0
- data/lib/appwrite/enums/project_policy.rb +15 -0
- data/lib/appwrite/enums/protocol_id.rb +9 -0
- data/lib/appwrite/enums/proxy_resource_type.rb +8 -0
- data/lib/appwrite/enums/proxy_rule_deployment_resource_type.rb +8 -0
- data/lib/appwrite/enums/proxy_rule_status.rb +9 -0
- data/lib/appwrite/enums/runtime.rb +3 -0
- data/lib/appwrite/enums/scopes.rb +44 -27
- data/lib/appwrite/enums/secure.rb +8 -0
- data/lib/appwrite/enums/service_id.rb +23 -0
- data/lib/appwrite/enums/status_code.rb +10 -0
- data/lib/appwrite/models/attribute_bigint.rb +96 -0
- data/lib/appwrite/models/auth_provider.rb +47 -0
- data/lib/appwrite/models/billing_limits.rb +62 -0
- data/lib/appwrite/models/block.rb +72 -0
- data/lib/appwrite/models/column_bigint.rb +96 -0
- data/lib/appwrite/models/dev_key.rb +62 -0
- data/lib/appwrite/models/email_template.rb +62 -0
- data/lib/appwrite/models/email_template_list.rb +32 -0
- data/lib/appwrite/models/ephemeral_key.rb +67 -0
- data/lib/appwrite/models/key.rb +67 -0
- data/lib/appwrite/models/key_list.rb +32 -0
- data/lib/appwrite/models/log.rb +5 -0
- data/lib/appwrite/models/membership.rb +5 -0
- data/lib/appwrite/models/mock_number.rb +42 -0
- data/lib/appwrite/models/mock_number_list.rb +32 -0
- data/lib/appwrite/models/o_auth2_amazon.rb +42 -0
- data/lib/appwrite/models/o_auth2_apple.rb +52 -0
- data/lib/appwrite/models/o_auth2_auth0.rb +47 -0
- data/lib/appwrite/models/o_auth2_authentik.rb +47 -0
- data/lib/appwrite/models/o_auth2_autodesk.rb +42 -0
- data/lib/appwrite/models/o_auth2_bitbucket.rb +42 -0
- data/lib/appwrite/models/o_auth2_bitly.rb +42 -0
- data/lib/appwrite/models/o_auth2_box.rb +42 -0
- data/lib/appwrite/models/o_auth2_dailymotion.rb +42 -0
- data/lib/appwrite/models/o_auth2_discord.rb +42 -0
- data/lib/appwrite/models/o_auth2_disqus.rb +42 -0
- data/lib/appwrite/models/o_auth2_dropbox.rb +42 -0
- data/lib/appwrite/models/o_auth2_etsy.rb +42 -0
- data/lib/appwrite/models/o_auth2_facebook.rb +42 -0
- data/lib/appwrite/models/o_auth2_figma.rb +42 -0
- data/lib/appwrite/models/o_auth2_fusion_auth.rb +47 -0
- data/lib/appwrite/models/o_auth2_github.rb +42 -0
- data/lib/appwrite/models/o_auth2_gitlab.rb +47 -0
- data/lib/appwrite/models/o_auth2_google.rb +42 -0
- data/lib/appwrite/models/o_auth2_keycloak.rb +52 -0
- data/lib/appwrite/models/o_auth2_kick.rb +42 -0
- data/lib/appwrite/models/o_auth2_linkedin.rb +42 -0
- data/lib/appwrite/models/o_auth2_microsoft.rb +47 -0
- data/lib/appwrite/models/o_auth2_notion.rb +42 -0
- data/lib/appwrite/models/o_auth2_oidc.rb +62 -0
- data/lib/appwrite/models/o_auth2_okta.rb +52 -0
- data/lib/appwrite/models/o_auth2_paypal.rb +42 -0
- data/lib/appwrite/models/o_auth2_podio.rb +42 -0
- data/lib/appwrite/models/o_auth2_provider_list.rb +32 -0
- data/lib/appwrite/models/o_auth2_salesforce.rb +42 -0
- data/lib/appwrite/models/o_auth2_slack.rb +42 -0
- data/lib/appwrite/models/o_auth2_spotify.rb +42 -0
- data/lib/appwrite/models/o_auth2_stripe.rb +42 -0
- data/lib/appwrite/models/o_auth2_tradeshift.rb +42 -0
- data/lib/appwrite/models/o_auth2_twitch.rb +42 -0
- data/lib/appwrite/models/o_auth2_word_press.rb +42 -0
- data/lib/appwrite/models/o_auth2_x.rb +42 -0
- data/lib/appwrite/models/o_auth2_yahoo.rb +42 -0
- data/lib/appwrite/models/o_auth2_yandex.rb +42 -0
- data/lib/appwrite/models/o_auth2_zoho.rb +42 -0
- data/lib/appwrite/models/o_auth2_zoom.rb +42 -0
- data/lib/appwrite/models/platform_android.rb +71 -0
- data/lib/appwrite/models/platform_apple.rb +71 -0
- data/lib/appwrite/models/platform_linux.rb +71 -0
- data/lib/appwrite/models/platform_list.rb +32 -0
- data/lib/appwrite/models/platform_web.rb +71 -0
- data/lib/appwrite/models/platform_windows.rb +71 -0
- data/lib/appwrite/models/policy_list.rb +32 -0
- data/lib/appwrite/models/policy_membership_privacy.rb +52 -0
- data/lib/appwrite/models/policy_password_dictionary.rb +32 -0
- data/lib/appwrite/models/policy_password_history.rb +32 -0
- data/lib/appwrite/models/policy_password_personal_data.rb +32 -0
- data/lib/appwrite/models/policy_session_alert.rb +32 -0
- data/lib/appwrite/models/policy_session_duration.rb +32 -0
- data/lib/appwrite/models/policy_session_invalidation.rb +32 -0
- data/lib/appwrite/models/policy_session_limit.rb +32 -0
- data/lib/appwrite/models/policy_user_limit.rb +32 -0
- data/lib/appwrite/models/project.rb +427 -0
- data/lib/appwrite/models/proxy_rule.rb +127 -0
- data/lib/appwrite/models/proxy_rule_list.rb +32 -0
- data/lib/appwrite/models/webhook.rb +20 -20
- data/lib/appwrite/service.rb +1 -1
- data/lib/appwrite/services/account.rb +47 -2
- data/lib/appwrite/services/activities.rb +3 -1
- data/lib/appwrite/services/avatars.rb +9 -1
- data/lib/appwrite/services/backups.rb +13 -1
- data/lib/appwrite/services/databases.rb +258 -6
- data/lib/appwrite/services/functions.rb +40 -8
- data/lib/appwrite/services/graphql.rb +5 -3
- data/lib/appwrite/services/health.rb +26 -1
- data/lib/appwrite/services/locale.rb +9 -1
- data/lib/appwrite/services/messaging.rb +49 -1
- data/lib/appwrite/services/project.rb +3251 -5
- data/lib/appwrite/services/proxy.rb +303 -0
- data/lib/appwrite/services/sites.rb +39 -8
- data/lib/appwrite/services/storage.rb +14 -1
- data/lib/appwrite/services/tables_db.rb +252 -6
- data/lib/appwrite/services/teams.rb +14 -1
- data/lib/appwrite/services/tokens.rb +6 -1
- data/lib/appwrite/services/users.rb +44 -1
- data/lib/appwrite/services/webhooks.rb +31 -21
- data/lib/appwrite.rb +86 -0
- metadata +88 -2
|
@@ -34,6 +34,7 @@ module Appwrite
|
|
|
34
34
|
params: api_params,
|
|
35
35
|
response_type: Models::FunctionList
|
|
36
36
|
)
|
|
37
|
+
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
# Create a new function. You can pass a list of
|
|
@@ -112,6 +113,7 @@ module Appwrite
|
|
|
112
113
|
params: api_params,
|
|
113
114
|
response_type: Models::Function
|
|
114
115
|
)
|
|
116
|
+
|
|
115
117
|
end
|
|
116
118
|
|
|
117
119
|
# Get a list of all runtimes that are currently active on your instance.
|
|
@@ -134,6 +136,7 @@ module Appwrite
|
|
|
134
136
|
params: api_params,
|
|
135
137
|
response_type: Models::RuntimeList
|
|
136
138
|
)
|
|
139
|
+
|
|
137
140
|
end
|
|
138
141
|
|
|
139
142
|
# List allowed function specifications for this instance.
|
|
@@ -156,6 +159,7 @@ module Appwrite
|
|
|
156
159
|
params: api_params,
|
|
157
160
|
response_type: Models::SpecificationList
|
|
158
161
|
)
|
|
162
|
+
|
|
159
163
|
end
|
|
160
164
|
|
|
161
165
|
# Get a function by its unique ID.
|
|
@@ -184,6 +188,7 @@ module Appwrite
|
|
|
184
188
|
params: api_params,
|
|
185
189
|
response_type: Models::Function
|
|
186
190
|
)
|
|
191
|
+
|
|
187
192
|
end
|
|
188
193
|
|
|
189
194
|
# Update function by its unique ID.
|
|
@@ -255,6 +260,7 @@ module Appwrite
|
|
|
255
260
|
params: api_params,
|
|
256
261
|
response_type: Models::Function
|
|
257
262
|
)
|
|
263
|
+
|
|
258
264
|
end
|
|
259
265
|
|
|
260
266
|
# Delete a function by its unique ID.
|
|
@@ -283,6 +289,7 @@ module Appwrite
|
|
|
283
289
|
headers: api_headers,
|
|
284
290
|
params: api_params,
|
|
285
291
|
)
|
|
292
|
+
|
|
286
293
|
end
|
|
287
294
|
|
|
288
295
|
# Update the function active deployment. Use this endpoint to switch the code
|
|
@@ -319,6 +326,7 @@ module Appwrite
|
|
|
319
326
|
params: api_params,
|
|
320
327
|
response_type: Models::Function
|
|
321
328
|
)
|
|
329
|
+
|
|
322
330
|
end
|
|
323
331
|
|
|
324
332
|
# Get a list of all the function's code deployments. You can use the query
|
|
@@ -354,6 +362,7 @@ module Appwrite
|
|
|
354
362
|
params: api_params,
|
|
355
363
|
response_type: Models::DeploymentList
|
|
356
364
|
)
|
|
365
|
+
|
|
357
366
|
end
|
|
358
367
|
|
|
359
368
|
# Create a new function code deployment. Use this endpoint to upload a new
|
|
@@ -413,6 +422,7 @@ module Appwrite
|
|
|
413
422
|
on_progress: on_progress,
|
|
414
423
|
response_type: Models::Deployment
|
|
415
424
|
)
|
|
425
|
+
|
|
416
426
|
end
|
|
417
427
|
|
|
418
428
|
# Create a new build for an existing function deployment. This endpoint
|
|
@@ -454,6 +464,7 @@ module Appwrite
|
|
|
454
464
|
params: api_params,
|
|
455
465
|
response_type: Models::Deployment
|
|
456
466
|
)
|
|
467
|
+
|
|
457
468
|
end
|
|
458
469
|
|
|
459
470
|
# Create a deployment based on a template.
|
|
@@ -519,6 +530,7 @@ module Appwrite
|
|
|
519
530
|
params: api_params,
|
|
520
531
|
response_type: Models::Deployment
|
|
521
532
|
)
|
|
533
|
+
|
|
522
534
|
end
|
|
523
535
|
|
|
524
536
|
# Create a deployment when a function is connected to VCS.
|
|
@@ -564,6 +576,7 @@ module Appwrite
|
|
|
564
576
|
params: api_params,
|
|
565
577
|
response_type: Models::Deployment
|
|
566
578
|
)
|
|
579
|
+
|
|
567
580
|
end
|
|
568
581
|
|
|
569
582
|
# Get a function deployment by its unique ID.
|
|
@@ -598,6 +611,7 @@ module Appwrite
|
|
|
598
611
|
params: api_params,
|
|
599
612
|
response_type: Models::Deployment
|
|
600
613
|
)
|
|
614
|
+
|
|
601
615
|
end
|
|
602
616
|
|
|
603
617
|
# Delete a code deployment by its unique ID.
|
|
@@ -632,6 +646,7 @@ module Appwrite
|
|
|
632
646
|
headers: api_headers,
|
|
633
647
|
params: api_params,
|
|
634
648
|
)
|
|
649
|
+
|
|
635
650
|
end
|
|
636
651
|
|
|
637
652
|
# Get a function deployment content by its unique ID. The endpoint response
|
|
@@ -669,6 +684,7 @@ module Appwrite
|
|
|
669
684
|
headers: api_headers,
|
|
670
685
|
params: api_params,
|
|
671
686
|
)
|
|
687
|
+
|
|
672
688
|
end
|
|
673
689
|
|
|
674
690
|
# Cancel an ongoing function deployment build. If the build is already in
|
|
@@ -708,6 +724,7 @@ module Appwrite
|
|
|
708
724
|
params: api_params,
|
|
709
725
|
response_type: Models::Deployment
|
|
710
726
|
)
|
|
727
|
+
|
|
711
728
|
end
|
|
712
729
|
|
|
713
730
|
# Get a list of all the current user function execution logs. You can use the
|
|
@@ -741,6 +758,7 @@ module Appwrite
|
|
|
741
758
|
params: api_params,
|
|
742
759
|
response_type: Models::ExecutionList
|
|
743
760
|
)
|
|
761
|
+
|
|
744
762
|
end
|
|
745
763
|
|
|
746
764
|
# Trigger a function execution. The returned object will return you the
|
|
@@ -785,6 +803,7 @@ module Appwrite
|
|
|
785
803
|
params: api_params,
|
|
786
804
|
response_type: Models::Execution
|
|
787
805
|
)
|
|
806
|
+
|
|
788
807
|
end
|
|
789
808
|
|
|
790
809
|
# Get a function execution log by its unique ID.
|
|
@@ -819,6 +838,7 @@ module Appwrite
|
|
|
819
838
|
params: api_params,
|
|
820
839
|
response_type: Models::Execution
|
|
821
840
|
)
|
|
841
|
+
|
|
822
842
|
end
|
|
823
843
|
|
|
824
844
|
# Delete a function execution by its unique ID.
|
|
@@ -853,14 +873,17 @@ module Appwrite
|
|
|
853
873
|
headers: api_headers,
|
|
854
874
|
params: api_params,
|
|
855
875
|
)
|
|
876
|
+
|
|
856
877
|
end
|
|
857
878
|
|
|
858
879
|
# Get a list of all variables of a specific function.
|
|
859
880
|
#
|
|
860
881
|
# @param [String] function_id Function unique ID.
|
|
882
|
+
# @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, resourceType, resourceId, secret
|
|
883
|
+
# @param [] total When set to false, the total count returned will be 0 and will not be calculated.
|
|
861
884
|
#
|
|
862
885
|
# @return [VariableList]
|
|
863
|
-
def list_variables(function_id:)
|
|
886
|
+
def list_variables(function_id:, queries: nil, total: nil)
|
|
864
887
|
api_path = '/functions/{functionId}/variables'
|
|
865
888
|
.gsub('{functionId}', function_id)
|
|
866
889
|
|
|
@@ -869,6 +892,8 @@ module Appwrite
|
|
|
869
892
|
end
|
|
870
893
|
|
|
871
894
|
api_params = {
|
|
895
|
+
queries: queries,
|
|
896
|
+
total: total,
|
|
872
897
|
}
|
|
873
898
|
|
|
874
899
|
api_headers = {
|
|
@@ -881,18 +906,20 @@ module Appwrite
|
|
|
881
906
|
params: api_params,
|
|
882
907
|
response_type: Models::VariableList
|
|
883
908
|
)
|
|
909
|
+
|
|
884
910
|
end
|
|
885
911
|
|
|
886
912
|
# Create a new function environment variable. These variables can be accessed
|
|
887
913
|
# in the function at runtime as environment variables.
|
|
888
914
|
#
|
|
889
915
|
# @param [String] function_id Function unique ID.
|
|
916
|
+
# @param [String] variable_id Variable 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.
|
|
890
917
|
# @param [String] key Variable key. Max length: 255 chars.
|
|
891
918
|
# @param [String] value Variable value. Max length: 8192 chars.
|
|
892
919
|
# @param [] secret Secret variables can be updated or deleted, but only functions can read them during build and runtime.
|
|
893
920
|
#
|
|
894
921
|
# @return [Variable]
|
|
895
|
-
def create_variable(function_id:, key:, value:, secret: nil)
|
|
922
|
+
def create_variable(function_id:, variable_id:, key:, value:, secret: nil)
|
|
896
923
|
api_path = '/functions/{functionId}/variables'
|
|
897
924
|
.gsub('{functionId}', function_id)
|
|
898
925
|
|
|
@@ -900,6 +927,10 @@ module Appwrite
|
|
|
900
927
|
raise Appwrite::Exception.new('Missing required parameter: "functionId"')
|
|
901
928
|
end
|
|
902
929
|
|
|
930
|
+
if variable_id.nil?
|
|
931
|
+
raise Appwrite::Exception.new('Missing required parameter: "variableId"')
|
|
932
|
+
end
|
|
933
|
+
|
|
903
934
|
if key.nil?
|
|
904
935
|
raise Appwrite::Exception.new('Missing required parameter: "key"')
|
|
905
936
|
end
|
|
@@ -909,6 +940,7 @@ module Appwrite
|
|
|
909
940
|
end
|
|
910
941
|
|
|
911
942
|
api_params = {
|
|
943
|
+
variableId: variable_id,
|
|
912
944
|
key: key,
|
|
913
945
|
value: value,
|
|
914
946
|
secret: secret,
|
|
@@ -925,6 +957,7 @@ module Appwrite
|
|
|
925
957
|
params: api_params,
|
|
926
958
|
response_type: Models::Variable
|
|
927
959
|
)
|
|
960
|
+
|
|
928
961
|
end
|
|
929
962
|
|
|
930
963
|
# Get a variable by its unique ID.
|
|
@@ -959,6 +992,7 @@ module Appwrite
|
|
|
959
992
|
params: api_params,
|
|
960
993
|
response_type: Models::Variable
|
|
961
994
|
)
|
|
995
|
+
|
|
962
996
|
end
|
|
963
997
|
|
|
964
998
|
# Update variable by its unique ID.
|
|
@@ -970,7 +1004,7 @@ module Appwrite
|
|
|
970
1004
|
# @param [] secret Secret variables can be updated or deleted, but only functions can read them during build and runtime.
|
|
971
1005
|
#
|
|
972
1006
|
# @return [Variable]
|
|
973
|
-
def update_variable(function_id:, variable_id:, key
|
|
1007
|
+
def update_variable(function_id:, variable_id:, key: nil, value: nil, secret: nil)
|
|
974
1008
|
api_path = '/functions/{functionId}/variables/{variableId}'
|
|
975
1009
|
.gsub('{functionId}', function_id)
|
|
976
1010
|
.gsub('{variableId}', variable_id)
|
|
@@ -983,10 +1017,6 @@ module Appwrite
|
|
|
983
1017
|
raise Appwrite::Exception.new('Missing required parameter: "variableId"')
|
|
984
1018
|
end
|
|
985
1019
|
|
|
986
|
-
if key.nil?
|
|
987
|
-
raise Appwrite::Exception.new('Missing required parameter: "key"')
|
|
988
|
-
end
|
|
989
|
-
|
|
990
1020
|
api_params = {
|
|
991
1021
|
key: key,
|
|
992
1022
|
value: value,
|
|
@@ -1004,6 +1034,7 @@ module Appwrite
|
|
|
1004
1034
|
params: api_params,
|
|
1005
1035
|
response_type: Models::Variable
|
|
1006
1036
|
)
|
|
1037
|
+
|
|
1007
1038
|
end
|
|
1008
1039
|
|
|
1009
1040
|
# Delete a variable by its unique ID.
|
|
@@ -1038,7 +1069,8 @@ module Appwrite
|
|
|
1038
1069
|
headers: api_headers,
|
|
1039
1070
|
params: api_params,
|
|
1040
1071
|
)
|
|
1072
|
+
|
|
1041
1073
|
end
|
|
1042
1074
|
|
|
1043
1075
|
end
|
|
1044
|
-
end
|
|
1076
|
+
end
|
|
@@ -11,7 +11,7 @@ module Appwrite
|
|
|
11
11
|
#
|
|
12
12
|
# @param [Hash] query The query or queries to execute.
|
|
13
13
|
#
|
|
14
|
-
# @return [
|
|
14
|
+
# @return []
|
|
15
15
|
def query(query:)
|
|
16
16
|
api_path = '/graphql'
|
|
17
17
|
|
|
@@ -34,13 +34,14 @@ module Appwrite
|
|
|
34
34
|
headers: api_headers,
|
|
35
35
|
params: api_params,
|
|
36
36
|
)
|
|
37
|
+
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
# Execute a GraphQL mutation.
|
|
40
41
|
#
|
|
41
42
|
# @param [Hash] query The query or queries to execute.
|
|
42
43
|
#
|
|
43
|
-
# @return [
|
|
44
|
+
# @return []
|
|
44
45
|
def mutation(query:)
|
|
45
46
|
api_path = '/graphql/mutation'
|
|
46
47
|
|
|
@@ -63,7 +64,8 @@ module Appwrite
|
|
|
63
64
|
headers: api_headers,
|
|
64
65
|
params: api_params,
|
|
65
66
|
)
|
|
67
|
+
|
|
66
68
|
end
|
|
67
69
|
|
|
68
70
|
end
|
|
69
|
-
end
|
|
71
|
+
end
|
|
@@ -27,6 +27,7 @@ module Appwrite
|
|
|
27
27
|
params: api_params,
|
|
28
28
|
response_type: Models::HealthStatus
|
|
29
29
|
)
|
|
30
|
+
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
# Check the Appwrite Antivirus server is up and connection is successful.
|
|
@@ -49,6 +50,7 @@ module Appwrite
|
|
|
49
50
|
params: api_params,
|
|
50
51
|
response_type: Models::HealthAntivirus
|
|
51
52
|
)
|
|
53
|
+
|
|
52
54
|
end
|
|
53
55
|
|
|
54
56
|
# Check the Appwrite in-memory cache servers are up and connection is
|
|
@@ -72,6 +74,7 @@ module Appwrite
|
|
|
72
74
|
params: api_params,
|
|
73
75
|
response_type: Models::HealthStatusList
|
|
74
76
|
)
|
|
77
|
+
|
|
75
78
|
end
|
|
76
79
|
|
|
77
80
|
# Get the SSL certificate for a domain
|
|
@@ -96,6 +99,7 @@ module Appwrite
|
|
|
96
99
|
params: api_params,
|
|
97
100
|
response_type: Models::HealthCertificate
|
|
98
101
|
)
|
|
102
|
+
|
|
99
103
|
end
|
|
100
104
|
|
|
101
105
|
# Get console pausing health status. Monitors projects approaching the pause
|
|
@@ -124,6 +128,7 @@ module Appwrite
|
|
|
124
128
|
params: api_params,
|
|
125
129
|
response_type: Models::HealthStatus
|
|
126
130
|
)
|
|
131
|
+
|
|
127
132
|
end
|
|
128
133
|
|
|
129
134
|
# Check the Appwrite database servers are up and connection is successful.
|
|
@@ -146,6 +151,7 @@ module Appwrite
|
|
|
146
151
|
params: api_params,
|
|
147
152
|
response_type: Models::HealthStatusList
|
|
148
153
|
)
|
|
154
|
+
|
|
149
155
|
end
|
|
150
156
|
|
|
151
157
|
# Check the Appwrite pub-sub servers are up and connection is successful.
|
|
@@ -168,10 +174,12 @@ module Appwrite
|
|
|
168
174
|
params: api_params,
|
|
169
175
|
response_type: Models::HealthStatusList
|
|
170
176
|
)
|
|
177
|
+
|
|
171
178
|
end
|
|
172
179
|
|
|
173
180
|
# Get the number of audit logs that are waiting to be processed in the
|
|
174
181
|
# Appwrite internal queue server.
|
|
182
|
+
#
|
|
175
183
|
#
|
|
176
184
|
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
177
185
|
#
|
|
@@ -193,6 +201,7 @@ module Appwrite
|
|
|
193
201
|
params: api_params,
|
|
194
202
|
response_type: Models::HealthQueue
|
|
195
203
|
)
|
|
204
|
+
|
|
196
205
|
end
|
|
197
206
|
|
|
198
207
|
# Get the number of builds that are waiting to be processed in the Appwrite
|
|
@@ -218,6 +227,7 @@ module Appwrite
|
|
|
218
227
|
params: api_params,
|
|
219
228
|
response_type: Models::HealthQueue
|
|
220
229
|
)
|
|
230
|
+
|
|
221
231
|
end
|
|
222
232
|
|
|
223
233
|
# Get the number of certificates that are waiting to be issued against
|
|
@@ -244,6 +254,7 @@ module Appwrite
|
|
|
244
254
|
params: api_params,
|
|
245
255
|
response_type: Models::HealthQueue
|
|
246
256
|
)
|
|
257
|
+
|
|
247
258
|
end
|
|
248
259
|
|
|
249
260
|
# Get the number of database changes that are waiting to be processed in the
|
|
@@ -271,6 +282,7 @@ module Appwrite
|
|
|
271
282
|
params: api_params,
|
|
272
283
|
response_type: Models::HealthQueue
|
|
273
284
|
)
|
|
285
|
+
|
|
274
286
|
end
|
|
275
287
|
|
|
276
288
|
# Get the number of background destructive changes that are waiting to be
|
|
@@ -296,6 +308,7 @@ module Appwrite
|
|
|
296
308
|
params: api_params,
|
|
297
309
|
response_type: Models::HealthQueue
|
|
298
310
|
)
|
|
311
|
+
|
|
299
312
|
end
|
|
300
313
|
|
|
301
314
|
# Returns the amount of failed jobs in a given queue.
|
|
@@ -327,6 +340,7 @@ module Appwrite
|
|
|
327
340
|
params: api_params,
|
|
328
341
|
response_type: Models::HealthQueue
|
|
329
342
|
)
|
|
343
|
+
|
|
330
344
|
end
|
|
331
345
|
|
|
332
346
|
# Get the number of function executions that are waiting to be processed in
|
|
@@ -352,6 +366,7 @@ module Appwrite
|
|
|
352
366
|
params: api_params,
|
|
353
367
|
response_type: Models::HealthQueue
|
|
354
368
|
)
|
|
369
|
+
|
|
355
370
|
end
|
|
356
371
|
|
|
357
372
|
# Get the number of logs that are waiting to be processed in the Appwrite
|
|
@@ -377,6 +392,7 @@ module Appwrite
|
|
|
377
392
|
params: api_params,
|
|
378
393
|
response_type: Models::HealthQueue
|
|
379
394
|
)
|
|
395
|
+
|
|
380
396
|
end
|
|
381
397
|
|
|
382
398
|
# Get the number of mails that are waiting to be processed in the Appwrite
|
|
@@ -402,6 +418,7 @@ module Appwrite
|
|
|
402
418
|
params: api_params,
|
|
403
419
|
response_type: Models::HealthQueue
|
|
404
420
|
)
|
|
421
|
+
|
|
405
422
|
end
|
|
406
423
|
|
|
407
424
|
# Get the number of messages that are waiting to be processed in the Appwrite
|
|
@@ -427,6 +444,7 @@ module Appwrite
|
|
|
427
444
|
params: api_params,
|
|
428
445
|
response_type: Models::HealthQueue
|
|
429
446
|
)
|
|
447
|
+
|
|
430
448
|
end
|
|
431
449
|
|
|
432
450
|
# Get the number of migrations that are waiting to be processed in the
|
|
@@ -452,6 +470,7 @@ module Appwrite
|
|
|
452
470
|
params: api_params,
|
|
453
471
|
response_type: Models::HealthQueue
|
|
454
472
|
)
|
|
473
|
+
|
|
455
474
|
end
|
|
456
475
|
|
|
457
476
|
# Get the number of metrics that are waiting to be processed in the Appwrite
|
|
@@ -477,6 +496,7 @@ module Appwrite
|
|
|
477
496
|
params: api_params,
|
|
478
497
|
response_type: Models::HealthQueue
|
|
479
498
|
)
|
|
499
|
+
|
|
480
500
|
end
|
|
481
501
|
|
|
482
502
|
# Get the number of metrics that are waiting to be processed in the Appwrite
|
|
@@ -502,6 +522,7 @@ module Appwrite
|
|
|
502
522
|
params: api_params,
|
|
503
523
|
response_type: Models::HealthQueue
|
|
504
524
|
)
|
|
525
|
+
|
|
505
526
|
end
|
|
506
527
|
|
|
507
528
|
# Get the number of webhooks that are waiting to be processed in the Appwrite
|
|
@@ -527,6 +548,7 @@ module Appwrite
|
|
|
527
548
|
params: api_params,
|
|
528
549
|
response_type: Models::HealthQueue
|
|
529
550
|
)
|
|
551
|
+
|
|
530
552
|
end
|
|
531
553
|
|
|
532
554
|
# Check the Appwrite storage device is up and connection is successful.
|
|
@@ -549,6 +571,7 @@ module Appwrite
|
|
|
549
571
|
params: api_params,
|
|
550
572
|
response_type: Models::HealthStatus
|
|
551
573
|
)
|
|
574
|
+
|
|
552
575
|
end
|
|
553
576
|
|
|
554
577
|
# Check the Appwrite local storage device is up and connection is successful.
|
|
@@ -571,6 +594,7 @@ module Appwrite
|
|
|
571
594
|
params: api_params,
|
|
572
595
|
response_type: Models::HealthStatus
|
|
573
596
|
)
|
|
597
|
+
|
|
574
598
|
end
|
|
575
599
|
|
|
576
600
|
# Check the Appwrite server time is synced with Google remote NTP server. We
|
|
@@ -599,7 +623,8 @@ module Appwrite
|
|
|
599
623
|
params: api_params,
|
|
600
624
|
response_type: Models::HealthTime
|
|
601
625
|
)
|
|
626
|
+
|
|
602
627
|
end
|
|
603
628
|
|
|
604
629
|
end
|
|
605
|
-
end
|
|
630
|
+
end
|
|
@@ -32,6 +32,7 @@ module Appwrite
|
|
|
32
32
|
params: api_params,
|
|
33
33
|
response_type: Models::Locale
|
|
34
34
|
)
|
|
35
|
+
|
|
35
36
|
end
|
|
36
37
|
|
|
37
38
|
# List of all locale codes in [ISO
|
|
@@ -55,6 +56,7 @@ module Appwrite
|
|
|
55
56
|
params: api_params,
|
|
56
57
|
response_type: Models::LocaleCodeList
|
|
57
58
|
)
|
|
59
|
+
|
|
58
60
|
end
|
|
59
61
|
|
|
60
62
|
# List of all continents. You can use the locale header to get the data in a
|
|
@@ -78,6 +80,7 @@ module Appwrite
|
|
|
78
80
|
params: api_params,
|
|
79
81
|
response_type: Models::ContinentList
|
|
80
82
|
)
|
|
83
|
+
|
|
81
84
|
end
|
|
82
85
|
|
|
83
86
|
# List of all countries. You can use the locale header to get the data in a
|
|
@@ -101,6 +104,7 @@ module Appwrite
|
|
|
101
104
|
params: api_params,
|
|
102
105
|
response_type: Models::CountryList
|
|
103
106
|
)
|
|
107
|
+
|
|
104
108
|
end
|
|
105
109
|
|
|
106
110
|
# List of all countries that are currently members of the EU. You can use the
|
|
@@ -124,6 +128,7 @@ module Appwrite
|
|
|
124
128
|
params: api_params,
|
|
125
129
|
response_type: Models::CountryList
|
|
126
130
|
)
|
|
131
|
+
|
|
127
132
|
end
|
|
128
133
|
|
|
129
134
|
# List of all countries phone codes. You can use the locale header to get the
|
|
@@ -147,6 +152,7 @@ module Appwrite
|
|
|
147
152
|
params: api_params,
|
|
148
153
|
response_type: Models::PhoneList
|
|
149
154
|
)
|
|
155
|
+
|
|
150
156
|
end
|
|
151
157
|
|
|
152
158
|
# List of all currencies, including currency symbol, name, plural, and
|
|
@@ -171,6 +177,7 @@ module Appwrite
|
|
|
171
177
|
params: api_params,
|
|
172
178
|
response_type: Models::CurrencyList
|
|
173
179
|
)
|
|
180
|
+
|
|
174
181
|
end
|
|
175
182
|
|
|
176
183
|
# List of all languages classified by ISO 639-1 including 2-letter code, name
|
|
@@ -194,7 +201,8 @@ module Appwrite
|
|
|
194
201
|
params: api_params,
|
|
195
202
|
response_type: Models::LanguageList
|
|
196
203
|
)
|
|
204
|
+
|
|
197
205
|
end
|
|
198
206
|
|
|
199
207
|
end
|
|
200
|
-
end
|
|
208
|
+
end
|