appwrite 24.1.0 → 25.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 +109 -32
- 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_o_auth_provider_id.rb +0 -2
- data/lib/appwrite/enums/project_policy_id.rb +3 -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/presence.rb +2 -6
- data/lib/appwrite/models/presence_list.rb +0 -4
- 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/avatars.rb +1 -1
- data/lib/appwrite/services/functions.rb +10 -2
- data/lib/appwrite/services/health.rb +1 -1
- data/lib/appwrite/services/organization.rb +349 -0
- data/lib/appwrite/services/presences.rb +1 -1
- data/lib/appwrite/services/project.rb +66 -51
- data/lib/appwrite/services/sites.rb +10 -2
- data/lib/appwrite/services/usage.rb +10 -10
- data/lib/appwrite.rb +12 -6
- metadata +11 -5
- data/lib/appwrite/enums/scopes.rb +0 -100
|
@@ -534,7 +534,7 @@ module Appwrite
|
|
|
534
534
|
# Update the project OAuth2 Amazon configuration.
|
|
535
535
|
#
|
|
536
536
|
# @param [String] client_id 'Client ID' of Amazon OAuth2 app. For example: amzn1.application-oa2-client.87400c00000000000000000000063d5b2
|
|
537
|
-
# @param [String] client_secret 'Client Secret' of Amazon OAuth2 app. For example:
|
|
537
|
+
# @param [String] client_secret 'Client Secret' of Amazon OAuth2 app. For example: your-oauth2-client-secret
|
|
538
538
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
539
539
|
#
|
|
540
540
|
# @return [OAuth2Amazon]
|
|
@@ -598,7 +598,7 @@ module Appwrite
|
|
|
598
598
|
# Update the project OAuth2 Auth0 configuration.
|
|
599
599
|
#
|
|
600
600
|
# @param [String] client_id 'Client ID' of Auth0 OAuth2 app. For example: OaOkIA000000000000000000005KLSYq
|
|
601
|
-
# @param [String] client_secret 'Client Secret' of Auth0 OAuth2 app. For example:
|
|
601
|
+
# @param [String] client_secret 'Client Secret' of Auth0 OAuth2 app. For example: your-oauth2-client-secret
|
|
602
602
|
# @param [String] endpoint Domain of Auth0 instance. For example: example.us.auth0.com
|
|
603
603
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
604
604
|
#
|
|
@@ -630,7 +630,7 @@ module Appwrite
|
|
|
630
630
|
# Update the project OAuth2 Authentik configuration.
|
|
631
631
|
#
|
|
632
632
|
# @param [String] client_id 'Client ID' of Authentik OAuth2 app. For example: dTKOPa0000000000000000000000000000e7G8hv
|
|
633
|
-
# @param [String] client_secret 'Client Secret' of Authentik OAuth2 app. For example:
|
|
633
|
+
# @param [String] client_secret 'Client Secret' of Authentik OAuth2 app. For example: your-oauth2-client-secret
|
|
634
634
|
# @param [String] endpoint Domain of Authentik instance. For example: example.authentik.com
|
|
635
635
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
636
636
|
#
|
|
@@ -662,7 +662,7 @@ module Appwrite
|
|
|
662
662
|
# Update the project OAuth2 Autodesk configuration.
|
|
663
663
|
#
|
|
664
664
|
# @param [String] client_id 'Client ID' of Autodesk OAuth2 app. For example: 5zw90v00000000000000000000kVYXN7
|
|
665
|
-
# @param [String] client_secret 'Client Secret' of Autodesk OAuth2 app. For example:
|
|
665
|
+
# @param [String] client_secret 'Client Secret' of Autodesk OAuth2 app. For example: your-oauth2-client-secret
|
|
666
666
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
667
667
|
#
|
|
668
668
|
# @return [OAuth2Autodesk]
|
|
@@ -692,7 +692,7 @@ module Appwrite
|
|
|
692
692
|
# Update the project OAuth2 Bitbucket configuration.
|
|
693
693
|
#
|
|
694
694
|
# @param [String] key 'Key' of Bitbucket OAuth2 app. For example: Knt70000000000ByRc
|
|
695
|
-
# @param [String] secret 'Secret' of Bitbucket OAuth2 app. For example:
|
|
695
|
+
# @param [String] secret 'Secret' of Bitbucket OAuth2 app. For example: your-oauth2-client-secret
|
|
696
696
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
697
697
|
#
|
|
698
698
|
# @return [OAuth2Bitbucket]
|
|
@@ -722,7 +722,7 @@ module Appwrite
|
|
|
722
722
|
# Update the project OAuth2 Bitly configuration.
|
|
723
723
|
#
|
|
724
724
|
# @param [String] client_id 'Client ID' of Bitly OAuth2 app. For example: d95151000000000000000000000000000067af9b
|
|
725
|
-
# @param [String] client_secret 'Client Secret' of Bitly OAuth2 app. For example:
|
|
725
|
+
# @param [String] client_secret 'Client Secret' of Bitly OAuth2 app. For example: your-oauth2-client-secret
|
|
726
726
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
727
727
|
#
|
|
728
728
|
# @return [OAuth2Bitly]
|
|
@@ -752,7 +752,7 @@ module Appwrite
|
|
|
752
752
|
# Update the project OAuth2 Box configuration.
|
|
753
753
|
#
|
|
754
754
|
# @param [String] client_id 'Client ID' of Box OAuth2 app. For example: deglcs00000000000000000000x2og6y
|
|
755
|
-
# @param [String] client_secret 'Client Secret' of Box OAuth2 app. For example:
|
|
755
|
+
# @param [String] client_secret 'Client Secret' of Box OAuth2 app. For example: your-oauth2-client-secret
|
|
756
756
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
757
757
|
#
|
|
758
758
|
# @return [OAuth2Box]
|
|
@@ -782,7 +782,7 @@ module Appwrite
|
|
|
782
782
|
# Update the project OAuth2 Dailymotion configuration.
|
|
783
783
|
#
|
|
784
784
|
# @param [String] api_key 'API Key' of Dailymotion OAuth2 app. For example: 07a9000000000000067f
|
|
785
|
-
# @param [String] api_secret 'API Secret' of Dailymotion OAuth2 app. For example:
|
|
785
|
+
# @param [String] api_secret 'API Secret' of Dailymotion OAuth2 app. For example: your-oauth2-client-secret
|
|
786
786
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
787
787
|
#
|
|
788
788
|
# @return [OAuth2Dailymotion]
|
|
@@ -812,7 +812,7 @@ module Appwrite
|
|
|
812
812
|
# Update the project OAuth2 Discord configuration.
|
|
813
813
|
#
|
|
814
814
|
# @param [String] client_id 'Client ID' of Discord OAuth2 app. For example: 950722000000343754
|
|
815
|
-
# @param [String] client_secret 'Client Secret' of Discord OAuth2 app. For example:
|
|
815
|
+
# @param [String] client_secret 'Client Secret' of Discord OAuth2 app. For example: your-oauth2-client-secret
|
|
816
816
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
817
817
|
#
|
|
818
818
|
# @return [OAuth2Discord]
|
|
@@ -842,7 +842,7 @@ module Appwrite
|
|
|
842
842
|
# Update the project OAuth2 Disqus configuration.
|
|
843
843
|
#
|
|
844
844
|
# @param [String] public_key 'Public Key, also known as API Key' of Disqus OAuth2 app. For example: cgegH70000000000000000000000000000000000000000000000000000Hr1nYX
|
|
845
|
-
# @param [String] secret_key 'Secret Key, also known as API Secret' of Disqus OAuth2 app. For example:
|
|
845
|
+
# @param [String] secret_key 'Secret Key, also known as API Secret' of Disqus OAuth2 app. For example: your-oauth2-client-secret
|
|
846
846
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
847
847
|
#
|
|
848
848
|
# @return [OAuth2Disqus]
|
|
@@ -872,7 +872,7 @@ module Appwrite
|
|
|
872
872
|
# Update the project OAuth2 Dropbox configuration.
|
|
873
873
|
#
|
|
874
874
|
# @param [String] app_key 'App Key' of Dropbox OAuth2 app. For example: jl000000000009t
|
|
875
|
-
# @param [String] app_secret 'App Secret' of Dropbox OAuth2 app. For example:
|
|
875
|
+
# @param [String] app_secret 'App Secret' of Dropbox OAuth2 app. For example: your-oauth2-client-secret
|
|
876
876
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
877
877
|
#
|
|
878
878
|
# @return [OAuth2Dropbox]
|
|
@@ -902,7 +902,7 @@ module Appwrite
|
|
|
902
902
|
# Update the project OAuth2 Etsy configuration.
|
|
903
903
|
#
|
|
904
904
|
# @param [String] key_string 'Keystring' of Etsy OAuth2 app. For example: nsgzxh0000000000008j85a2
|
|
905
|
-
# @param [String] shared_secret 'Shared Secret' of Etsy OAuth2 app. For example:
|
|
905
|
+
# @param [String] shared_secret 'Shared Secret' of Etsy OAuth2 app. For example: your-oauth2-client-secret
|
|
906
906
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
907
907
|
#
|
|
908
908
|
# @return [OAuth2Etsy]
|
|
@@ -932,7 +932,7 @@ module Appwrite
|
|
|
932
932
|
# Update the project OAuth2 Facebook configuration.
|
|
933
933
|
#
|
|
934
934
|
# @param [String] app_id 'App ID' of Facebook OAuth2 app. For example: 260600000007694
|
|
935
|
-
# @param [String] app_secret 'App Secret' of Facebook OAuth2 app. For example:
|
|
935
|
+
# @param [String] app_secret 'App Secret' of Facebook OAuth2 app. For example: your-oauth2-client-secret
|
|
936
936
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
937
937
|
#
|
|
938
938
|
# @return [OAuth2Facebook]
|
|
@@ -962,7 +962,7 @@ module Appwrite
|
|
|
962
962
|
# Update the project OAuth2 Figma configuration.
|
|
963
963
|
#
|
|
964
964
|
# @param [String] client_id 'Client ID' of Figma OAuth2 app. For example: byay5H0000000000VtiI40
|
|
965
|
-
# @param [String] client_secret 'Client Secret' of Figma OAuth2 app. For example:
|
|
965
|
+
# @param [String] client_secret 'Client Secret' of Figma OAuth2 app. For example: your-oauth2-client-secret
|
|
966
966
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
967
967
|
#
|
|
968
968
|
# @return [OAuth2Figma]
|
|
@@ -992,7 +992,7 @@ module Appwrite
|
|
|
992
992
|
# Update the project OAuth2 FusionAuth configuration.
|
|
993
993
|
#
|
|
994
994
|
# @param [String] client_id 'Client ID' of FusionAuth OAuth2 app. For example: b2222c00-0000-0000-0000-000000862097
|
|
995
|
-
# @param [String] client_secret 'Client Secret' of FusionAuth OAuth2 app. For example:
|
|
995
|
+
# @param [String] client_secret 'Client Secret' of FusionAuth OAuth2 app. For example: your-oauth2-client-secret
|
|
996
996
|
# @param [String] endpoint Domain of FusionAuth instance. For example: example.fusionauth.io
|
|
997
997
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
998
998
|
#
|
|
@@ -1024,7 +1024,7 @@ module Appwrite
|
|
|
1024
1024
|
# Update the project OAuth2 GitHub configuration.
|
|
1025
1025
|
#
|
|
1026
1026
|
# @param [String] client_id 'OAuth2 app Client ID, or App ID' of GitHub OAuth2 app. For example: e4d87900000000540733. Example of wrong value: 370006
|
|
1027
|
-
# @param [String] client_secret 'Client Secret' of GitHub OAuth2 app. For example:
|
|
1027
|
+
# @param [String] client_secret 'Client Secret' of GitHub OAuth2 app. For example: your-oauth2-client-secret
|
|
1028
1028
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1029
1029
|
#
|
|
1030
1030
|
# @return [OAuth2Github]
|
|
@@ -1054,7 +1054,7 @@ module Appwrite
|
|
|
1054
1054
|
# Update the project OAuth2 Gitlab configuration.
|
|
1055
1055
|
#
|
|
1056
1056
|
# @param [String] application_id 'Application ID' of Gitlab OAuth2 app. For example: d41ffe0000000000000000000000000000000000000000000000000000d5e252
|
|
1057
|
-
# @param [String] secret 'Secret' of Gitlab OAuth2 app. For example:
|
|
1057
|
+
# @param [String] secret 'Secret' of Gitlab OAuth2 app. For example: your-oauth2-client-secret
|
|
1058
1058
|
# @param [String] endpoint Endpoint URL of self-hosted GitLab instance. For example: https://gitlab.com
|
|
1059
1059
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1060
1060
|
#
|
|
@@ -1086,7 +1086,7 @@ module Appwrite
|
|
|
1086
1086
|
# Update the project OAuth2 Google configuration.
|
|
1087
1087
|
#
|
|
1088
1088
|
# @param [String] client_id 'Client ID' of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com
|
|
1089
|
-
# @param [String] client_secret 'Client Secret' of Google OAuth2 app. For example:
|
|
1089
|
+
# @param [String] client_secret 'Client Secret' of Google OAuth2 app. For example: your-oauth2-client-secret
|
|
1090
1090
|
# @param [Array] prompt Array of Google OAuth2 prompt values. If "none" is included, it must be the only element. "none" means: don't display any authentication or consent screens. Must not be specified with other values. "consent" means: prompt the user for consent. "select_account" means: prompt the user to select an account.
|
|
1091
1091
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1092
1092
|
#
|
|
@@ -1118,7 +1118,7 @@ module Appwrite
|
|
|
1118
1118
|
# Update the project OAuth2 Keycloak configuration.
|
|
1119
1119
|
#
|
|
1120
1120
|
# @param [String] client_id 'Client ID' of Keycloak OAuth2 app. For example: appwrite-o0000000st-app
|
|
1121
|
-
# @param [String] client_secret 'Client Secret' of Keycloak OAuth2 app. For example:
|
|
1121
|
+
# @param [String] client_secret 'Client Secret' of Keycloak OAuth2 app. For example: your-oauth2-client-secret
|
|
1122
1122
|
# @param [String] endpoint Domain of Keycloak instance. For example: keycloak.example.com
|
|
1123
1123
|
# @param [String] realm_name Keycloak realm name. For example: appwrite-realm
|
|
1124
1124
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
@@ -1152,7 +1152,7 @@ module Appwrite
|
|
|
1152
1152
|
# Update the project OAuth2 Kick configuration.
|
|
1153
1153
|
#
|
|
1154
1154
|
# @param [String] client_id 'Client ID' of Kick OAuth2 app. For example: 01KQ7C00000000000001MFHS32
|
|
1155
|
-
# @param [String] client_secret 'Client Secret' of Kick OAuth2 app. For example:
|
|
1155
|
+
# @param [String] client_secret 'Client Secret' of Kick OAuth2 app. For example: your-oauth2-client-secret
|
|
1156
1156
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1157
1157
|
#
|
|
1158
1158
|
# @return [OAuth2Kick]
|
|
@@ -1182,7 +1182,7 @@ module Appwrite
|
|
|
1182
1182
|
# Update the project OAuth2 Linkedin configuration.
|
|
1183
1183
|
#
|
|
1184
1184
|
# @param [String] client_id 'Client ID' of Linkedin OAuth2 app. For example: 770000000000dv
|
|
1185
|
-
# @param [String] primary_client_secret 'Primary Client Secret or Secondary Client Secret' of Linkedin OAuth2 app. For example:
|
|
1185
|
+
# @param [String] primary_client_secret 'Primary Client Secret or Secondary Client Secret' of Linkedin OAuth2 app. For example: your-oauth2-client-secret
|
|
1186
1186
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1187
1187
|
#
|
|
1188
1188
|
# @return [OAuth2Linkedin]
|
|
@@ -1212,7 +1212,7 @@ module Appwrite
|
|
|
1212
1212
|
# Update the project OAuth2 Microsoft configuration.
|
|
1213
1213
|
#
|
|
1214
1214
|
# @param [String] application_id 'Entra ID Application ID, also known as Client ID' of Microsoft OAuth2 app. For example: 00001111-aaaa-2222-bbbb-3333cccc4444
|
|
1215
|
-
# @param [String] application_secret 'Entra ID Application Secret, also known as Client Secret' of Microsoft OAuth2 app. For example:
|
|
1215
|
+
# @param [String] application_secret 'Entra ID Application Secret, also known as Client Secret' of Microsoft OAuth2 app. For example: your-oauth2-client-secret
|
|
1216
1216
|
# @param [String] tenant Microsoft Entra ID tenant identifier. Use 'common', 'organizations', 'consumers' or a specific tenant ID. For example: common
|
|
1217
1217
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1218
1218
|
#
|
|
@@ -1244,7 +1244,7 @@ module Appwrite
|
|
|
1244
1244
|
# Update the project OAuth2 Notion configuration.
|
|
1245
1245
|
#
|
|
1246
1246
|
# @param [String] oauth_client_id 'OAuth Client ID' of Notion OAuth2 app. For example: 341d8700-0000-0000-0000-000000446ee3
|
|
1247
|
-
# @param [String] oauth_client_secret 'OAuth Client Secret' of Notion OAuth2 app. For example:
|
|
1247
|
+
# @param [String] oauth_client_secret 'OAuth Client Secret' of Notion OAuth2 app. For example: your-oauth2-client-secret
|
|
1248
1248
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1249
1249
|
#
|
|
1250
1250
|
# @return [OAuth2Notion]
|
|
@@ -1274,7 +1274,7 @@ module Appwrite
|
|
|
1274
1274
|
# Update the project OAuth2 Oidc configuration.
|
|
1275
1275
|
#
|
|
1276
1276
|
# @param [String] client_id 'Client ID' of Oidc OAuth2 app. For example: qibI2x0000000000000000000000000006L2YFoG
|
|
1277
|
-
# @param [String] client_secret 'Client Secret' of Oidc OAuth2 app. For example:
|
|
1277
|
+
# @param [String] client_secret 'Client Secret' of Oidc OAuth2 app. For example: your-oauth2-client-secret
|
|
1278
1278
|
# @param [String] well_known_url OpenID Connect well-known configuration URL. When provided, authorization, token, and user info endpoints can be discovered automatically. For example: https://myoauth.com/.well-known/openid-configuration
|
|
1279
1279
|
# @param [String] authorization_url OpenID Connect authorization endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/authorize
|
|
1280
1280
|
# @param [String] token_url OpenID Connect token endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/token
|
|
@@ -1312,7 +1312,7 @@ module Appwrite
|
|
|
1312
1312
|
# Update the project OAuth2 Okta configuration.
|
|
1313
1313
|
#
|
|
1314
1314
|
# @param [String] client_id 'Client ID' of Okta OAuth2 app. For example: 0oa00000000000000698
|
|
1315
|
-
# @param [String] client_secret 'Client Secret' of Okta OAuth2 app. For example:
|
|
1315
|
+
# @param [String] client_secret 'Client Secret' of Okta OAuth2 app. For example: your-oauth2-client-secret
|
|
1316
1316
|
# @param [String] domain Okta company domain. Required when enabling the provider. For example: trial-6400025.okta.com. Example of wrong value: trial-6400025-admin.okta.com, or https://trial-6400025.okta.com/
|
|
1317
1317
|
# @param [String] authorization_server_id Custom Authorization Servers. Optional, can be left empty or unconfigured. For example: aus000000000000000h7z
|
|
1318
1318
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
@@ -1346,7 +1346,7 @@ module Appwrite
|
|
|
1346
1346
|
# Update the project OAuth2 Paypal configuration.
|
|
1347
1347
|
#
|
|
1348
1348
|
# @param [String] client_id 'Client ID' of Paypal OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
|
|
1349
|
-
# @param [String] secret_key 'Secret Key 1 or Secret Key 2' of Paypal OAuth2 app. For example:
|
|
1349
|
+
# @param [String] secret_key 'Secret Key 1 or Secret Key 2' of Paypal OAuth2 app. For example: your-oauth2-client-secret
|
|
1350
1350
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1351
1351
|
#
|
|
1352
1352
|
# @return [OAuth2Paypal]
|
|
@@ -1376,7 +1376,7 @@ module Appwrite
|
|
|
1376
1376
|
# Update the project OAuth2 PaypalSandbox configuration.
|
|
1377
1377
|
#
|
|
1378
1378
|
# @param [String] client_id 'Client ID' of PaypalSandbox OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
|
|
1379
|
-
# @param [String] secret_key 'Secret Key 1 or Secret Key 2' of PaypalSandbox OAuth2 app. For example:
|
|
1379
|
+
# @param [String] secret_key 'Secret Key 1 or Secret Key 2' of PaypalSandbox OAuth2 app. For example: your-oauth2-client-secret
|
|
1380
1380
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1381
1381
|
#
|
|
1382
1382
|
# @return [OAuth2Paypal]
|
|
@@ -1406,7 +1406,7 @@ module Appwrite
|
|
|
1406
1406
|
# Update the project OAuth2 Podio configuration.
|
|
1407
1407
|
#
|
|
1408
1408
|
# @param [String] client_id 'Client ID' of Podio OAuth2 app. For example: appwrite-o0000000st-app
|
|
1409
|
-
# @param [String] client_secret 'Client Secret' of Podio OAuth2 app. For example:
|
|
1409
|
+
# @param [String] client_secret 'Client Secret' of Podio OAuth2 app. For example: your-oauth2-client-secret
|
|
1410
1410
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1411
1411
|
#
|
|
1412
1412
|
# @return [OAuth2Podio]
|
|
@@ -1436,7 +1436,7 @@ module Appwrite
|
|
|
1436
1436
|
# Update the project OAuth2 Salesforce configuration.
|
|
1437
1437
|
#
|
|
1438
1438
|
# @param [String] customer_key 'Consumer Key' of Salesforce OAuth2 app. For example: 3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq
|
|
1439
|
-
# @param [String] customer_secret 'Consumer Secret' of Salesforce OAuth2 app. For example:
|
|
1439
|
+
# @param [String] customer_secret 'Consumer Secret' of Salesforce OAuth2 app. For example: your-oauth2-client-secret
|
|
1440
1440
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1441
1441
|
#
|
|
1442
1442
|
# @return [OAuth2Salesforce]
|
|
@@ -1466,7 +1466,7 @@ module Appwrite
|
|
|
1466
1466
|
# Update the project OAuth2 Slack configuration.
|
|
1467
1467
|
#
|
|
1468
1468
|
# @param [String] client_id 'Client ID' of Slack OAuth2 app. For example: 23000000089.15000000000023
|
|
1469
|
-
# @param [String] client_secret 'Client Secret' of Slack OAuth2 app. For example:
|
|
1469
|
+
# @param [String] client_secret 'Client Secret' of Slack OAuth2 app. For example: your-oauth2-client-secret
|
|
1470
1470
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1471
1471
|
#
|
|
1472
1472
|
# @return [OAuth2Slack]
|
|
@@ -1496,7 +1496,7 @@ module Appwrite
|
|
|
1496
1496
|
# Update the project OAuth2 Spotify configuration.
|
|
1497
1497
|
#
|
|
1498
1498
|
# @param [String] client_id 'Client ID' of Spotify OAuth2 app. For example: 6ec271000000000000000000009beace
|
|
1499
|
-
# @param [String] client_secret 'Client Secret' of Spotify OAuth2 app. For example:
|
|
1499
|
+
# @param [String] client_secret 'Client Secret' of Spotify OAuth2 app. For example: your-oauth2-client-secret
|
|
1500
1500
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1501
1501
|
#
|
|
1502
1502
|
# @return [OAuth2Spotify]
|
|
@@ -1526,7 +1526,7 @@ module Appwrite
|
|
|
1526
1526
|
# Update the project OAuth2 Stripe configuration.
|
|
1527
1527
|
#
|
|
1528
1528
|
# @param [String] client_id 'Client ID' of Stripe OAuth2 app. For example: ca_UKibXX0000000000000000000006byvR
|
|
1529
|
-
# @param [String] api_secret_key 'API Secret Key' of Stripe OAuth2 app. For example:
|
|
1529
|
+
# @param [String] api_secret_key 'API Secret Key' of Stripe OAuth2 app. For example: your-oauth2-client-secret
|
|
1530
1530
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1531
1531
|
#
|
|
1532
1532
|
# @return [OAuth2Stripe]
|
|
@@ -1556,7 +1556,7 @@ module Appwrite
|
|
|
1556
1556
|
# Update the project OAuth2 Tradeshift configuration.
|
|
1557
1557
|
#
|
|
1558
1558
|
# @param [String] oauth2_client_id 'OAuth2 Client ID' of Tradeshift OAuth2 app. For example: appwrite-tes00000.0000000000est-app
|
|
1559
|
-
# @param [String] oauth2_client_secret 'OAuth2 Client Secret' of Tradeshift OAuth2 app. For example:
|
|
1559
|
+
# @param [String] oauth2_client_secret 'OAuth2 Client Secret' of Tradeshift OAuth2 app. For example: your-oauth2-client-secret
|
|
1560
1560
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1561
1561
|
#
|
|
1562
1562
|
# @return [OAuth2Tradeshift]
|
|
@@ -1586,7 +1586,7 @@ module Appwrite
|
|
|
1586
1586
|
# Update the project OAuth2 Tradeshift Sandbox configuration.
|
|
1587
1587
|
#
|
|
1588
1588
|
# @param [String] oauth2_client_id 'OAuth2 Client ID' of Tradeshift Sandbox OAuth2 app. For example: appwrite-tes00000.0000000000est-app
|
|
1589
|
-
# @param [String] oauth2_client_secret 'OAuth2 Client Secret' of Tradeshift Sandbox OAuth2 app. For example:
|
|
1589
|
+
# @param [String] oauth2_client_secret 'OAuth2 Client Secret' of Tradeshift Sandbox OAuth2 app. For example: your-oauth2-client-secret
|
|
1590
1590
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1591
1591
|
#
|
|
1592
1592
|
# @return [OAuth2Tradeshift]
|
|
@@ -1616,7 +1616,7 @@ module Appwrite
|
|
|
1616
1616
|
# Update the project OAuth2 Twitch configuration.
|
|
1617
1617
|
#
|
|
1618
1618
|
# @param [String] client_id 'Client ID' of Twitch OAuth2 app. For example: vvi0in000000000000000000ikmt9p
|
|
1619
|
-
# @param [String] client_secret 'Client Secret' of Twitch OAuth2 app. For example:
|
|
1619
|
+
# @param [String] client_secret 'Client Secret' of Twitch OAuth2 app. For example: your-oauth2-client-secret
|
|
1620
1620
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1621
1621
|
#
|
|
1622
1622
|
# @return [OAuth2Twitch]
|
|
@@ -1646,7 +1646,7 @@ module Appwrite
|
|
|
1646
1646
|
# Update the project OAuth2 WordPress configuration.
|
|
1647
1647
|
#
|
|
1648
1648
|
# @param [String] client_id 'Client ID' of WordPress OAuth2 app. For example: 130005
|
|
1649
|
-
# @param [String] client_secret 'Client Secret' of WordPress OAuth2 app. For example:
|
|
1649
|
+
# @param [String] client_secret 'Client Secret' of WordPress OAuth2 app. For example: your-oauth2-client-secret
|
|
1650
1650
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1651
1651
|
#
|
|
1652
1652
|
# @return [OAuth2WordPress]
|
|
@@ -1676,7 +1676,7 @@ module Appwrite
|
|
|
1676
1676
|
# Update the project OAuth2 X configuration.
|
|
1677
1677
|
#
|
|
1678
1678
|
# @param [String] customer_key 'Customer Key' of X OAuth2 app. For example: slzZV0000000000000NFLaWT
|
|
1679
|
-
# @param [String] secret_key 'Secret Key' of X OAuth2 app. For example:
|
|
1679
|
+
# @param [String] secret_key 'Secret Key' of X OAuth2 app. For example: your-oauth2-client-secret
|
|
1680
1680
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1681
1681
|
#
|
|
1682
1682
|
# @return [OAuth2X]
|
|
@@ -1706,7 +1706,7 @@ module Appwrite
|
|
|
1706
1706
|
# Update the project OAuth2 Yahoo configuration.
|
|
1707
1707
|
#
|
|
1708
1708
|
# @param [String] client_id 'Client ID, also known as Customer Key' of Yahoo OAuth2 app. For example: dj0yJm000000000000000000000000000000000000000000000000000000000000000000000000000000000000Z4PWRm
|
|
1709
|
-
# @param [String] client_secret 'Client Secret, also known as Customer Secret' of Yahoo OAuth2 app. For example:
|
|
1709
|
+
# @param [String] client_secret 'Client Secret, also known as Customer Secret' of Yahoo OAuth2 app. For example: your-oauth2-client-secret
|
|
1710
1710
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1711
1711
|
#
|
|
1712
1712
|
# @return [OAuth2Yahoo]
|
|
@@ -1736,7 +1736,7 @@ module Appwrite
|
|
|
1736
1736
|
# Update the project OAuth2 Yandex configuration.
|
|
1737
1737
|
#
|
|
1738
1738
|
# @param [String] client_id 'Client ID' of Yandex OAuth2 app. For example: 6a8a6a0000000000000000000091483c
|
|
1739
|
-
# @param [String] client_secret 'Client Secret' of Yandex OAuth2 app. For example:
|
|
1739
|
+
# @param [String] client_secret 'Client Secret' of Yandex OAuth2 app. For example: your-oauth2-client-secret
|
|
1740
1740
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1741
1741
|
#
|
|
1742
1742
|
# @return [OAuth2Yandex]
|
|
@@ -1766,7 +1766,7 @@ module Appwrite
|
|
|
1766
1766
|
# Update the project OAuth2 Zoho configuration.
|
|
1767
1767
|
#
|
|
1768
1768
|
# @param [String] client_id 'Client ID' of Zoho OAuth2 app. For example: 1000.83C178000000000000000000RPNX0B
|
|
1769
|
-
# @param [String] client_secret 'Client Secret' of Zoho OAuth2 app. For example:
|
|
1769
|
+
# @param [String] client_secret 'Client Secret' of Zoho OAuth2 app. For example: your-oauth2-client-secret
|
|
1770
1770
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1771
1771
|
#
|
|
1772
1772
|
# @return [OAuth2Zoho]
|
|
@@ -1796,7 +1796,7 @@ module Appwrite
|
|
|
1796
1796
|
# Update the project OAuth2 Zoom configuration.
|
|
1797
1797
|
#
|
|
1798
1798
|
# @param [String] client_id 'Client ID' of Zoom OAuth2 app. For example: QMAC00000000000000w0AQ
|
|
1799
|
-
# @param [String] client_secret 'Client Secret' of Zoom OAuth2 app. For example:
|
|
1799
|
+
# @param [String] client_secret 'Client Secret' of Zoom OAuth2 app. For example: your-oauth2-client-secret
|
|
1800
1800
|
# @param [] enabled OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
|
|
1801
1801
|
#
|
|
1802
1802
|
# @return [OAuth2Zoom]
|
|
@@ -3033,9 +3033,9 @@ module Appwrite
|
|
|
3033
3033
|
# Get a policy by its unique ID. This endpoint returns the current
|
|
3034
3034
|
# configuration for the requested project policy.
|
|
3035
3035
|
#
|
|
3036
|
-
# @param [ProjectPolicyId] policy_id Policy ID. Can be one of: password-dictionary, password-history, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy.
|
|
3036
|
+
# @param [ProjectPolicyId] policy_id Policy ID. Can be one of: password-dictionary, password-history, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email.
|
|
3037
3037
|
#
|
|
3038
|
-
# @return [PolicyPasswordDictionary, PolicyPasswordHistory, PolicyPasswordPersonalData, PolicySessionAlert, PolicySessionDuration, PolicySessionInvalidation, PolicySessionLimit, PolicyUserLimit, PolicyMembershipPrivacy]
|
|
3038
|
+
# @return [PolicyPasswordDictionary, PolicyPasswordHistory, PolicyPasswordPersonalData, PolicySessionAlert, PolicySessionDuration, PolicySessionInvalidation, PolicySessionLimit, PolicyUserLimit, PolicyMembershipPrivacy, PolicyDenyAliasedEmail, PolicyDenyDisposableEmail, PolicyDenyFreeEmail]
|
|
3039
3039
|
def get_policy(policy_id:)
|
|
3040
3040
|
api_path = '/project/policies/{policyId}'
|
|
3041
3041
|
.gsub('{policyId}', policy_id)
|
|
@@ -3106,6 +3106,21 @@ module Appwrite
|
|
|
3106
3106
|
return Models::PolicyMembershipPrivacy.from(map: response)
|
|
3107
3107
|
end
|
|
3108
3108
|
|
|
3109
|
+
if response['$id'] == 'deny-aliased-email'
|
|
3110
|
+
|
|
3111
|
+
return Models::PolicyDenyAliasedEmail.from(map: response)
|
|
3112
|
+
end
|
|
3113
|
+
|
|
3114
|
+
if response['$id'] == 'deny-disposable-email'
|
|
3115
|
+
|
|
3116
|
+
return Models::PolicyDenyDisposableEmail.from(map: response)
|
|
3117
|
+
end
|
|
3118
|
+
|
|
3119
|
+
if response['$id'] == 'deny-free-email'
|
|
3120
|
+
|
|
3121
|
+
return Models::PolicyDenyFreeEmail.from(map: response)
|
|
3122
|
+
end
|
|
3123
|
+
|
|
3109
3124
|
raise Exception, "Unable to match response to any expected response model"
|
|
3110
3125
|
|
|
3111
3126
|
end
|
|
@@ -3190,12 +3205,12 @@ module Appwrite
|
|
|
3190
3205
|
#
|
|
3191
3206
|
# @param [String] host SMTP server hostname (domain)
|
|
3192
3207
|
# @param [Integer] port SMTP server port
|
|
3193
|
-
# @param [String] username SMTP server username.
|
|
3194
|
-
# @param [String] password SMTP server password.
|
|
3195
|
-
# @param [String] sender_email Email address shown in inbox as the sender of the email.
|
|
3196
|
-
# @param [String] sender_name Name shown in inbox as the sender of the email.
|
|
3197
|
-
# @param [String] reply_to_email Email used when user replies to the email.
|
|
3198
|
-
# @param [String] reply_to_name Name used when user replies to the email.
|
|
3208
|
+
# @param [String] username SMTP server username. Pass an empty string to clear a previously set value.
|
|
3209
|
+
# @param [String] password SMTP server password. Pass an empty string to clear a previously set value. This property is stored securely and cannot be read in future (write-only).
|
|
3210
|
+
# @param [String] sender_email Email address shown in inbox as the sender of the email. Pass an empty string to clear a previously set value.
|
|
3211
|
+
# @param [String] sender_name Name shown in inbox as the sender of the email. Pass an empty string to clear a previously set value.
|
|
3212
|
+
# @param [String] reply_to_email Email used when user replies to the email. Pass an empty string to clear a previously set value.
|
|
3213
|
+
# @param [String] reply_to_name Name used when user replies to the email. Pass an empty string to clear a previously set value.
|
|
3199
3214
|
# @param [ProjectSMTPSecure] secure Configures if communication with SMTP server is encrypted. Allowed values are: tls, ssl. Leave empty for no encryption.
|
|
3200
3215
|
# @param [] enabled Enable or disable custom SMTP. Custom SMTP is useful for branding purposes, but also allows use of custom email templates.
|
|
3201
3216
|
#
|
|
@@ -3296,8 +3311,8 @@ module Appwrite
|
|
|
3296
3311
|
# @param [String] subject Subject of the email template. Can be up to 255 characters.
|
|
3297
3312
|
# @param [String] message Plain or HTML body of the email template message. Can be up to 10MB of content.
|
|
3298
3313
|
# @param [String] sender_name Name of the email sender.
|
|
3299
|
-
# @param [String] sender_email Email of the sender.
|
|
3300
|
-
# @param [String] reply_to_email Reply to email.
|
|
3314
|
+
# @param [String] sender_email Email of the sender. Pass an empty string to clear a previously set value.
|
|
3315
|
+
# @param [String] reply_to_email Reply to email. Pass an empty string to clear a previously set value.
|
|
3301
3316
|
# @param [String] reply_to_name Reply to name.
|
|
3302
3317
|
#
|
|
3303
3318
|
# @return [EmailTemplate]
|
|
@@ -57,12 +57,14 @@ module Appwrite
|
|
|
57
57
|
# @param [String] provider_branch Production branch for the repo linked to the site.
|
|
58
58
|
# @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
59
|
# @param [String] provider_root_directory Path to site code in the linked repo.
|
|
60
|
+
# @param [Array] provider_branches List of branch name patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all branches.
|
|
61
|
+
# @param [Array] provider_paths List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
|
|
60
62
|
# @param [String] build_specification Build specification for the site deployments.
|
|
61
63
|
# @param [String] runtime_specification Runtime specification for the SSR executions.
|
|
62
64
|
# @param [Integer] deployment_retention Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
63
65
|
#
|
|
64
66
|
# @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)
|
|
67
|
+
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
68
|
api_path = '/sites'
|
|
67
69
|
|
|
68
70
|
if site_id.nil?
|
|
@@ -100,6 +102,8 @@ module Appwrite
|
|
|
100
102
|
providerBranch: provider_branch,
|
|
101
103
|
providerSilentMode: provider_silent_mode,
|
|
102
104
|
providerRootDirectory: provider_root_directory,
|
|
105
|
+
providerBranches: provider_branches,
|
|
106
|
+
providerPaths: provider_paths,
|
|
103
107
|
buildSpecification: build_specification,
|
|
104
108
|
runtimeSpecification: runtime_specification,
|
|
105
109
|
deploymentRetention: deployment_retention,
|
|
@@ -215,12 +219,14 @@ module Appwrite
|
|
|
215
219
|
# @param [String] provider_branch Production branch for the repo linked to the site.
|
|
216
220
|
# @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
221
|
# @param [String] provider_root_directory Path to site code in the linked repo.
|
|
222
|
+
# @param [Array] provider_branches List of branch name patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all branches.
|
|
223
|
+
# @param [Array] provider_paths List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
|
|
218
224
|
# @param [String] build_specification Build specification for the site deployments.
|
|
219
225
|
# @param [String] runtime_specification Runtime specification for the SSR executions.
|
|
220
226
|
# @param [Integer] deployment_retention Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
221
227
|
#
|
|
222
228
|
# @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)
|
|
229
|
+
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
230
|
api_path = '/sites/{siteId}'
|
|
225
231
|
.gsub('{siteId}', site_id)
|
|
226
232
|
|
|
@@ -254,6 +260,8 @@ module Appwrite
|
|
|
254
260
|
providerBranch: provider_branch,
|
|
255
261
|
providerSilentMode: provider_silent_mode,
|
|
256
262
|
providerRootDirectory: provider_root_directory,
|
|
263
|
+
providerBranches: provider_branches,
|
|
264
|
+
providerPaths: provider_paths,
|
|
257
265
|
buildSpecification: build_specification,
|
|
258
266
|
runtimeSpecification: runtime_specification,
|
|
259
267
|
deploymentRetention: deployment_retention,
|
|
@@ -46,16 +46,16 @@ module Appwrite
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
# Query usage gauge metrics (point-in-time resource snapshots) from the usage
|
|
49
|
-
# database. Returns individual gauge snapshots with metric, value,
|
|
50
|
-
#
|
|
51
|
-
# order results. Supported query methods: equal,
|
|
52
|
-
# lessThanEqual, orderAsc, orderDesc, limit, offset.
|
|
53
|
-
# attributes: metric, time. Use `orderDesc("time"),
|
|
54
|
-
# most recent snapshot. When no time filter is
|
|
55
|
-
# to the last 7 days. Default `limit(100)` is
|
|
56
|
-
# user-supplied limits are capped at 500. The
|
|
57
|
-
# to keep counts predictable — pass
|
|
58
|
-
# entirely.
|
|
49
|
+
# database. Returns individual gauge snapshots with metric, value, timestamp,
|
|
50
|
+
# resourceType, and resourceId. Pass Query objects as JSON strings to filter,
|
|
51
|
+
# paginate, and order results. Supported query methods: equal,
|
|
52
|
+
# greaterThanEqual, lessThanEqual, orderAsc, orderDesc, limit, offset.
|
|
53
|
+
# Supported filter attributes: metric, time. Use `orderDesc("time"),
|
|
54
|
+
# limit(1)` to fetch the most recent snapshot. When no time filter is
|
|
55
|
+
# supplied the endpoint defaults to the last 7 days. Default `limit(100)` is
|
|
56
|
+
# applied if none is given; user-supplied limits are capped at 500. The
|
|
57
|
+
# `total` field is capped at 5000 to keep counts predictable — pass
|
|
58
|
+
# `total=false` to skip the count entirely.
|
|
59
59
|
#
|
|
60
60
|
# @param [Array] queries Array of query strings as JSON. Supported: equal("metric", [...]), greaterThanEqual("time", "..."), lessThanEqual("time", "..."), orderAsc("time"), orderDesc("time"), limit(N), offset(N).
|
|
61
61
|
# @param [] total When set to false, the total count returned will be 0 and will not be calculated.
|
data/lib/appwrite.rb
CHANGED
|
@@ -36,6 +36,7 @@ require_relative 'appwrite/models/framework_list'
|
|
|
36
36
|
require_relative 'appwrite/models/runtime_list'
|
|
37
37
|
require_relative 'appwrite/models/deployment_list'
|
|
38
38
|
require_relative 'appwrite/models/execution_list'
|
|
39
|
+
require_relative 'appwrite/models/project_list'
|
|
39
40
|
require_relative 'appwrite/models/webhook_list'
|
|
40
41
|
require_relative 'appwrite/models/key_list'
|
|
41
42
|
require_relative 'appwrite/models/country_list'
|
|
@@ -231,15 +232,18 @@ require_relative 'appwrite/models/backup_archive'
|
|
|
231
232
|
require_relative 'appwrite/models/billing_limits'
|
|
232
233
|
require_relative 'appwrite/models/block'
|
|
233
234
|
require_relative 'appwrite/models/backup_policy'
|
|
235
|
+
require_relative 'appwrite/models/policy_deny_aliased_email'
|
|
236
|
+
require_relative 'appwrite/models/policy_deny_disposable_email'
|
|
237
|
+
require_relative 'appwrite/models/policy_deny_free_email'
|
|
234
238
|
require_relative 'appwrite/models/backup_restoration'
|
|
235
239
|
require_relative 'appwrite/models/usage_event'
|
|
236
|
-
require_relative 'appwrite/models/usage_event_list'
|
|
237
240
|
require_relative 'appwrite/models/usage_gauge'
|
|
238
|
-
require_relative 'appwrite/models/usage_gauge_list'
|
|
239
241
|
require_relative 'appwrite/models/activity_event_list'
|
|
240
242
|
require_relative 'appwrite/models/backup_archive_list'
|
|
241
243
|
require_relative 'appwrite/models/backup_policy_list'
|
|
242
244
|
require_relative 'appwrite/models/backup_restoration_list'
|
|
245
|
+
require_relative 'appwrite/models/usage_event_list'
|
|
246
|
+
require_relative 'appwrite/models/usage_gauge_list'
|
|
243
247
|
|
|
244
248
|
require_relative 'appwrite/enums/authenticator_type'
|
|
245
249
|
require_relative 'appwrite/enums/authentication_factor'
|
|
@@ -247,7 +251,7 @@ require_relative 'appwrite/enums/o_auth_provider'
|
|
|
247
251
|
require_relative 'appwrite/enums/browser'
|
|
248
252
|
require_relative 'appwrite/enums/credit_card'
|
|
249
253
|
require_relative 'appwrite/enums/flag'
|
|
250
|
-
require_relative 'appwrite/enums/
|
|
254
|
+
require_relative 'appwrite/enums/browser_theme'
|
|
251
255
|
require_relative 'appwrite/enums/timezone'
|
|
252
256
|
require_relative 'appwrite/enums/browser_permission'
|
|
253
257
|
require_relative 'appwrite/enums/image_format'
|
|
@@ -257,16 +261,17 @@ require_relative 'appwrite/enums/relation_mutate'
|
|
|
257
261
|
require_relative 'appwrite/enums/databases_index_type'
|
|
258
262
|
require_relative 'appwrite/enums/order_by'
|
|
259
263
|
require_relative 'appwrite/enums/runtime'
|
|
260
|
-
require_relative 'appwrite/enums/
|
|
264
|
+
require_relative 'appwrite/enums/project_key_scopes'
|
|
261
265
|
require_relative 'appwrite/enums/template_reference_type'
|
|
262
266
|
require_relative 'appwrite/enums/vcs_reference_type'
|
|
263
267
|
require_relative 'appwrite/enums/deployment_download_type'
|
|
264
268
|
require_relative 'appwrite/enums/execution_method'
|
|
265
|
-
require_relative 'appwrite/enums/
|
|
269
|
+
require_relative 'appwrite/enums/health_queue_name'
|
|
266
270
|
require_relative 'appwrite/enums/message_priority'
|
|
267
271
|
require_relative 'appwrite/enums/smtp_encryption'
|
|
272
|
+
require_relative 'appwrite/enums/organization_key_scopes'
|
|
273
|
+
require_relative 'appwrite/enums/region'
|
|
268
274
|
require_relative 'appwrite/enums/project_auth_method_id'
|
|
269
|
-
require_relative 'appwrite/enums/project_key_scopes'
|
|
270
275
|
require_relative 'appwrite/enums/project_o_auth2_google_prompt'
|
|
271
276
|
require_relative 'appwrite/enums/project_o_auth_provider_id'
|
|
272
277
|
require_relative 'appwrite/enums/project_policy_id'
|
|
@@ -310,6 +315,7 @@ require_relative 'appwrite/services/graphql'
|
|
|
310
315
|
require_relative 'appwrite/services/health'
|
|
311
316
|
require_relative 'appwrite/services/locale'
|
|
312
317
|
require_relative 'appwrite/services/messaging'
|
|
318
|
+
require_relative 'appwrite/services/organization'
|
|
313
319
|
require_relative 'appwrite/services/presences'
|
|
314
320
|
require_relative 'appwrite/services/project'
|
|
315
321
|
require_relative 'appwrite/services/proxy'
|