appwrite 25.1.0 → 26.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 +18 -4
- data/lib/appwrite/enums/billing_plan_group.rb +9 -0
- data/lib/appwrite/enums/database_status.rb +20 -0
- data/lib/appwrite/enums/database_type.rb +3 -0
- data/lib/appwrite/enums/o_auth2_oidc_prompt.rb +10 -0
- data/lib/appwrite/enums/o_auth_provider.rb +1 -0
- data/lib/appwrite/enums/organization_key_scopes.rb +6 -0
- data/lib/appwrite/enums/project_key_scopes.rb +10 -2
- data/lib/appwrite/enums/project_o_auth2_oidc_prompt.rb +10 -0
- data/lib/appwrite/enums/project_o_auth_provider_id.rb +1 -0
- data/lib/appwrite/enums/project_policy_id.rb +1 -0
- data/lib/appwrite/enums/project_service_id.rb +1 -0
- data/lib/appwrite/models/activity_event.rb +55 -70
- data/lib/appwrite/models/additional_resource.rb +52 -0
- data/lib/appwrite/models/app.rb +152 -0
- data/lib/appwrite/models/app_installation.rb +72 -0
- data/lib/appwrite/models/app_installation_list.rb +32 -0
- data/lib/appwrite/models/app_key.rb +67 -0
- data/lib/appwrite/models/{usage_gauge_list.rb → app_key_list.rb} +7 -7
- data/lib/appwrite/models/app_scope.rb +47 -0
- data/lib/appwrite/models/{usage_event_list.rb → app_scope_list.rb} +7 -7
- data/lib/appwrite/models/app_secret.rb +67 -0
- data/lib/appwrite/models/{health_status_list.rb → app_secret_list.rb} +7 -7
- data/lib/appwrite/models/app_secret_plaintext.rb +67 -0
- data/lib/appwrite/models/apps_list.rb +32 -0
- data/lib/appwrite/models/backup_policy.rb +5 -0
- data/lib/appwrite/models/billing_plan.rb +384 -0
- data/lib/appwrite/models/billing_plan_addon.rb +32 -0
- data/lib/appwrite/models/billing_plan_addon_details.rb +62 -0
- data/lib/appwrite/models/billing_plan_dedicated_database_limits.rb +117 -0
- data/lib/appwrite/models/billing_plan_limits.rb +32 -0
- data/lib/appwrite/models/billing_plan_supported_addons.rb +37 -0
- data/lib/appwrite/models/block.rb +5 -0
- data/lib/appwrite/models/database.rb +54 -6
- data/lib/appwrite/models/database_status.rb +62 -0
- data/lib/appwrite/models/database_status_connections.rb +32 -0
- data/lib/appwrite/models/database_status_replica.rb +42 -0
- data/lib/appwrite/models/database_status_volume.rb +42 -0
- data/lib/appwrite/models/dedicated_database.rb +267 -0
- data/lib/appwrite/models/dedicated_database_member.rb +42 -0
- data/lib/appwrite/models/dedicated_database_replicas.rb +37 -0
- data/lib/appwrite/models/dedicated_database_specification.rb +67 -0
- data/lib/appwrite/models/dedicated_database_specification_list.rb +37 -0
- data/lib/appwrite/models/dedicated_database_specification_pricing.rb +47 -0
- data/lib/appwrite/models/locale.rb +58 -3
- data/lib/appwrite/models/membership.rb +5 -0
- data/lib/appwrite/models/o_auth2_appwrite.rb +42 -0
- data/lib/appwrite/models/o_auth2_oidc.rb +13 -3
- data/lib/appwrite/models/oauth2_approve.rb +27 -0
- data/lib/appwrite/models/oauth2_authorize.rb +32 -0
- data/lib/appwrite/models/oauth2_consent.rb +72 -0
- data/lib/appwrite/models/oauth2_consent_list.rb +32 -0
- data/lib/appwrite/models/oauth2_consent_token.rb +77 -0
- data/lib/appwrite/models/oauth2_consent_token_list.rb +32 -0
- data/lib/appwrite/models/oauth2_device_authorization.rb +52 -0
- data/lib/appwrite/models/oauth2_grant.rb +82 -0
- data/lib/appwrite/models/{health_queue.rb → oauth2_organization.rb} +7 -7
- data/lib/appwrite/models/oauth2_organization_list.rb +32 -0
- data/lib/appwrite/models/oauth2_par.rb +32 -0
- data/lib/appwrite/models/oauth2_project.rb +37 -0
- data/lib/appwrite/models/oauth2_project_list.rb +32 -0
- data/lib/appwrite/models/oauth2_reject.rb +27 -0
- data/lib/appwrite/models/oauth2_token.rb +57 -0
- data/lib/appwrite/models/organization.rb +197 -0
- data/lib/appwrite/models/policy_deny_corporate_email.rb +32 -0
- data/lib/appwrite/models/policy_membership_privacy.rb +8 -3
- data/lib/appwrite/models/program.rb +67 -0
- data/lib/appwrite/models/project.rb +56 -11
- data/lib/appwrite/models/project_auth_method.rb +3 -3
- data/lib/appwrite/models/usage_billing_plan.rb +77 -0
- data/lib/appwrite/models/user.rb +25 -0
- data/lib/appwrite/query.rb +13 -1
- data/lib/appwrite/services/account.rb +251 -1
- data/lib/appwrite/services/activities.rb +2 -0
- data/lib/appwrite/services/advisor.rb +4 -0
- data/lib/appwrite/services/apps.rb +813 -0
- data/lib/appwrite/services/avatars.rb +8 -0
- data/lib/appwrite/services/backups.rb +38 -1
- data/lib/appwrite/services/databases.rb +107 -0
- data/lib/appwrite/services/functions.rb +30 -4
- data/lib/appwrite/services/graphql.rb +2 -0
- data/lib/appwrite/services/locale.rb +8 -0
- data/lib/appwrite/services/messaging.rb +42 -136
- data/lib/appwrite/services/oauth2.rb +525 -0
- data/lib/appwrite/services/organization.rb +436 -3
- data/lib/appwrite/services/presences.rb +4 -0
- data/lib/appwrite/services/project.rb +192 -9
- data/lib/appwrite/services/proxy.rb +7 -0
- data/lib/appwrite/services/sites.rb +28 -2
- data/lib/appwrite/services/storage.rb +11 -0
- data/lib/appwrite/services/tables_db.rb +201 -2
- data/lib/appwrite/services/teams.rb +209 -0
- data/lib/appwrite/services/tokens.rb +4 -0
- data/lib/appwrite/services/users.rb +38 -1
- data/lib/appwrite/services/webhooks.rb +5 -0
- data/lib/appwrite.rb +54 -15
- metadata +56 -17
- data/lib/appwrite/enums/health_antivirus_status.rb +0 -9
- data/lib/appwrite/enums/health_check_status.rb +0 -8
- data/lib/appwrite/enums/health_queue_name.rb +0 -19
- data/lib/appwrite/models/health_antivirus.rb +0 -49
- data/lib/appwrite/models/health_certificate.rb +0 -52
- data/lib/appwrite/models/health_status.rb +0 -53
- data/lib/appwrite/models/health_time.rb +0 -37
- data/lib/appwrite/models/usage_event.rb +0 -72
- data/lib/appwrite/models/usage_gauge.rb +0 -47
- data/lib/appwrite/services/health.rb +0 -681
- data/lib/appwrite/services/usage.rb +0 -88
|
@@ -81,6 +81,7 @@ module Appwrite
|
|
|
81
81
|
api_headers = {
|
|
82
82
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
83
83
|
"content-type": 'application/json',
|
|
84
|
+
"accept": 'application/json',
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
@client.call(
|
|
@@ -109,6 +110,7 @@ module Appwrite
|
|
|
109
110
|
|
|
110
111
|
api_headers = {
|
|
111
112
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
113
|
+
"accept": 'application/json',
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
@client.call(
|
|
@@ -129,7 +131,7 @@ module Appwrite
|
|
|
129
131
|
#
|
|
130
132
|
# @param [String] key_id Key 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.
|
|
131
133
|
# @param [String] name Key name. Max length: 128 chars.
|
|
132
|
-
# @param [Array] scopes Key scopes list. Maximum of
|
|
134
|
+
# @param [Array] scopes Key scopes list. Maximum of 200 scopes are allowed.
|
|
133
135
|
# @param [String] expire Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
|
|
134
136
|
#
|
|
135
137
|
# @return [Key]
|
|
@@ -158,6 +160,7 @@ module Appwrite
|
|
|
158
160
|
api_headers = {
|
|
159
161
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
160
162
|
"content-type": 'application/json',
|
|
163
|
+
"accept": 'application/json',
|
|
161
164
|
}
|
|
162
165
|
|
|
163
166
|
@client.call(
|
|
@@ -176,7 +179,7 @@ module Appwrite
|
|
|
176
179
|
# You can also create a standard API key if you need a longer-lived key
|
|
177
180
|
# instead.
|
|
178
181
|
#
|
|
179
|
-
# @param [Array] scopes Key scopes list. Maximum of
|
|
182
|
+
# @param [Array] scopes Key scopes list. Maximum of 200 scopes are allowed.
|
|
180
183
|
# @param [Integer] duration Time in seconds before ephemeral key expires. Maximum duration is 3600 seconds.
|
|
181
184
|
#
|
|
182
185
|
# @return [EphemeralKey]
|
|
@@ -199,6 +202,7 @@ module Appwrite
|
|
|
199
202
|
api_headers = {
|
|
200
203
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
201
204
|
"content-type": 'application/json',
|
|
205
|
+
"accept": 'application/json',
|
|
202
206
|
}
|
|
203
207
|
|
|
204
208
|
@client.call(
|
|
@@ -229,6 +233,7 @@ module Appwrite
|
|
|
229
233
|
|
|
230
234
|
api_headers = {
|
|
231
235
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
236
|
+
"accept": 'application/json',
|
|
232
237
|
}
|
|
233
238
|
|
|
234
239
|
@client.call(
|
|
@@ -246,7 +251,7 @@ module Appwrite
|
|
|
246
251
|
#
|
|
247
252
|
# @param [String] key_id Key ID.
|
|
248
253
|
# @param [String] name Key name. Max length: 128 chars.
|
|
249
|
-
# @param [Array] scopes Key scopes list. Maximum of
|
|
254
|
+
# @param [Array] scopes Key scopes list. Maximum of 200 scopes are allowed.
|
|
250
255
|
# @param [String] expire Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
|
|
251
256
|
#
|
|
252
257
|
# @return [Key]
|
|
@@ -275,6 +280,7 @@ module Appwrite
|
|
|
275
280
|
api_headers = {
|
|
276
281
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
277
282
|
"content-type": 'application/json',
|
|
283
|
+
"accept": 'application/json',
|
|
278
284
|
}
|
|
279
285
|
|
|
280
286
|
@client.call(
|
|
@@ -338,6 +344,7 @@ module Appwrite
|
|
|
338
344
|
api_headers = {
|
|
339
345
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
340
346
|
"content-type": 'application/json',
|
|
347
|
+
"accept": 'application/json',
|
|
341
348
|
}
|
|
342
349
|
|
|
343
350
|
@client.call(
|
|
@@ -367,6 +374,7 @@ module Appwrite
|
|
|
367
374
|
|
|
368
375
|
api_headers = {
|
|
369
376
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
377
|
+
"accept": 'application/json',
|
|
370
378
|
}
|
|
371
379
|
|
|
372
380
|
@client.call(
|
|
@@ -405,6 +413,7 @@ module Appwrite
|
|
|
405
413
|
api_headers = {
|
|
406
414
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
407
415
|
"content-type": 'application/json',
|
|
416
|
+
"accept": 'application/json',
|
|
408
417
|
}
|
|
409
418
|
|
|
410
419
|
@client.call(
|
|
@@ -436,6 +445,7 @@ module Appwrite
|
|
|
436
445
|
|
|
437
446
|
api_headers = {
|
|
438
447
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
448
|
+
"accept": 'application/json',
|
|
439
449
|
}
|
|
440
450
|
|
|
441
451
|
@client.call(
|
|
@@ -474,6 +484,7 @@ module Appwrite
|
|
|
474
484
|
api_headers = {
|
|
475
485
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
476
486
|
"content-type": 'application/json',
|
|
487
|
+
"accept": 'application/json',
|
|
477
488
|
}
|
|
478
489
|
|
|
479
490
|
@client.call(
|
|
@@ -535,6 +546,7 @@ module Appwrite
|
|
|
535
546
|
|
|
536
547
|
api_headers = {
|
|
537
548
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
549
|
+
"accept": 'application/json',
|
|
538
550
|
}
|
|
539
551
|
|
|
540
552
|
@client.call(
|
|
@@ -552,14 +564,21 @@ module Appwrite
|
|
|
552
564
|
# @param [] enabled Enable or disable the OAuth2 server.
|
|
553
565
|
# @param [String] authorization_url URL to your application with consent screen.
|
|
554
566
|
# @param [Array] scopes List of allowed OAuth2 scopes. Maximum of 100 scopes are allowed, each up to 128 characters long.
|
|
567
|
+
# @param [Array] authorization_details_types List of accepted `authorization_details` types. Maximum of 100 types are allowed, each up to 128 characters long.
|
|
555
568
|
# @param [Integer] access_token_duration Access token duration in seconds for confidential clients (server-side apps that authenticate with a client secret). Leave empty to use default 8 hours.
|
|
556
569
|
# @param [Integer] refresh_token_duration Refresh token duration in seconds for confidential clients (server-side apps that authenticate with a client secret). Leave empty to use default 1 year.
|
|
557
570
|
# @param [Integer] public_access_token_duration Access token duration in seconds for public clients (SPAs, mobile, and native apps that cannot keep a client secret). Leave empty to use default 1 hour.
|
|
558
571
|
# @param [Integer] public_refresh_token_duration Refresh token duration in seconds for public clients (SPAs, mobile, and native apps that cannot keep a client secret). Leave empty to use default 30 days.
|
|
572
|
+
# @param [Integer] installation_access_token_duration Access token duration in seconds for app installation access tokens. Leave empty to use default 1 hour.
|
|
559
573
|
# @param [] confidential_pkce When enabled, PKCE is required for confidential clients (server-side flows using client_secret). PKCE is always required for public clients regardless of this setting.
|
|
574
|
+
# @param [String] verification_url URL to your application page where users enter the device flow user code. Required to enable the Device Authorization Grant.
|
|
575
|
+
# @param [Integer] user_code_length Number of characters in the device flow user code, excluding the formatting separator. Shorter codes are easier to type but weaker; pair short codes with short expiry. Leave empty to use default 8.
|
|
576
|
+
# @param [String] user_code_format Character set for device flow user codes: `numeric` (digits only — best for numeric keypads and TV remotes), `alphabetic` (letters only), or `alphanumeric` (letters and digits — highest entropy per character). Defaults to `alphanumeric`.
|
|
577
|
+
# @param [Integer] device_code_duration Lifetime in seconds of device flow device codes and user codes. Device codes are intentionally short-lived. Leave empty to use default 600.
|
|
578
|
+
# @param [Array] default_scopes List of OAuth2 scopes used when an authorization request omits the scope parameter. Every default scope must also be allowed by the OAuth2 server. Maximum of 100 scopes are allowed, each up to 128 characters long.
|
|
560
579
|
#
|
|
561
580
|
# @return [Project]
|
|
562
|
-
def update_o_auth2_server(enabled:, authorization_url:, scopes: nil, access_token_duration: nil, refresh_token_duration: nil, public_access_token_duration: nil, public_refresh_token_duration: nil, confidential_pkce: nil)
|
|
581
|
+
def update_o_auth2_server(enabled:, authorization_url:, scopes: nil, authorization_details_types: nil, access_token_duration: nil, refresh_token_duration: nil, public_access_token_duration: nil, public_refresh_token_duration: nil, installation_access_token_duration: nil, confidential_pkce: nil, verification_url: nil, user_code_length: nil, user_code_format: nil, device_code_duration: nil, default_scopes: nil)
|
|
563
582
|
api_path = '/project/oauth2-server'
|
|
564
583
|
|
|
565
584
|
if enabled.nil?
|
|
@@ -574,16 +593,24 @@ module Appwrite
|
|
|
574
593
|
enabled: enabled,
|
|
575
594
|
authorizationUrl: authorization_url,
|
|
576
595
|
scopes: scopes,
|
|
596
|
+
authorizationDetailsTypes: authorization_details_types,
|
|
577
597
|
accessTokenDuration: access_token_duration,
|
|
578
598
|
refreshTokenDuration: refresh_token_duration,
|
|
579
599
|
publicAccessTokenDuration: public_access_token_duration,
|
|
580
600
|
publicRefreshTokenDuration: public_refresh_token_duration,
|
|
601
|
+
installationAccessTokenDuration: installation_access_token_duration,
|
|
581
602
|
confidentialPkce: confidential_pkce,
|
|
603
|
+
verificationUrl: verification_url,
|
|
604
|
+
userCodeLength: user_code_length,
|
|
605
|
+
userCodeFormat: user_code_format,
|
|
606
|
+
deviceCodeDuration: device_code_duration,
|
|
607
|
+
defaultScopes: default_scopes,
|
|
582
608
|
}
|
|
583
609
|
|
|
584
610
|
api_headers = {
|
|
585
611
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
586
612
|
"content-type": 'application/json',
|
|
613
|
+
"accept": 'application/json',
|
|
587
614
|
}
|
|
588
615
|
|
|
589
616
|
@client.call(
|
|
@@ -615,6 +642,7 @@ module Appwrite
|
|
|
615
642
|
api_headers = {
|
|
616
643
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
617
644
|
"content-type": 'application/json',
|
|
645
|
+
"accept": 'application/json',
|
|
618
646
|
}
|
|
619
647
|
|
|
620
648
|
@client.call(
|
|
@@ -650,6 +678,7 @@ module Appwrite
|
|
|
650
678
|
api_headers = {
|
|
651
679
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
652
680
|
"content-type": 'application/json',
|
|
681
|
+
"accept": 'application/json',
|
|
653
682
|
}
|
|
654
683
|
|
|
655
684
|
@client.call(
|
|
@@ -662,6 +691,38 @@ module Appwrite
|
|
|
662
691
|
|
|
663
692
|
end
|
|
664
693
|
|
|
694
|
+
# Update the project OAuth2 Appwrite configuration.
|
|
695
|
+
#
|
|
696
|
+
# @param [String] client_id 'Client ID' of Appwrite OAuth2 app. For example: 6a42000000000000b5a0
|
|
697
|
+
# @param [String] client_secret 'Client Secret' of Appwrite OAuth2 app. For example: b86afd000000000000000000000000000000000000000000000000000ced5f93
|
|
698
|
+
# @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.
|
|
699
|
+
#
|
|
700
|
+
# @return [OAuth2Appwrite]
|
|
701
|
+
def update_o_auth2_appwrite(client_id: nil, client_secret: nil, enabled: nil)
|
|
702
|
+
api_path = '/project/oauth2/appwrite'
|
|
703
|
+
|
|
704
|
+
api_params = {
|
|
705
|
+
clientId: client_id,
|
|
706
|
+
clientSecret: client_secret,
|
|
707
|
+
enabled: enabled,
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
api_headers = {
|
|
711
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
712
|
+
"content-type": 'application/json',
|
|
713
|
+
"accept": 'application/json',
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
@client.call(
|
|
717
|
+
method: 'PATCH',
|
|
718
|
+
path: api_path,
|
|
719
|
+
headers: api_headers,
|
|
720
|
+
params: api_params,
|
|
721
|
+
response_type: Models::OAuth2Appwrite
|
|
722
|
+
)
|
|
723
|
+
|
|
724
|
+
end
|
|
725
|
+
|
|
665
726
|
# Update the project OAuth2 Auth0 configuration.
|
|
666
727
|
#
|
|
667
728
|
# @param [String] client_id 'Client ID' of Auth0 OAuth2 app. For example: OaOkIA000000000000000000005KLSYq
|
|
@@ -683,6 +744,7 @@ module Appwrite
|
|
|
683
744
|
api_headers = {
|
|
684
745
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
685
746
|
"content-type": 'application/json',
|
|
747
|
+
"accept": 'application/json',
|
|
686
748
|
}
|
|
687
749
|
|
|
688
750
|
@client.call(
|
|
@@ -716,6 +778,7 @@ module Appwrite
|
|
|
716
778
|
api_headers = {
|
|
717
779
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
718
780
|
"content-type": 'application/json',
|
|
781
|
+
"accept": 'application/json',
|
|
719
782
|
}
|
|
720
783
|
|
|
721
784
|
@client.call(
|
|
@@ -747,6 +810,7 @@ module Appwrite
|
|
|
747
810
|
api_headers = {
|
|
748
811
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
749
812
|
"content-type": 'application/json',
|
|
813
|
+
"accept": 'application/json',
|
|
750
814
|
}
|
|
751
815
|
|
|
752
816
|
@client.call(
|
|
@@ -778,6 +842,7 @@ module Appwrite
|
|
|
778
842
|
api_headers = {
|
|
779
843
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
780
844
|
"content-type": 'application/json',
|
|
845
|
+
"accept": 'application/json',
|
|
781
846
|
}
|
|
782
847
|
|
|
783
848
|
@client.call(
|
|
@@ -809,6 +874,7 @@ module Appwrite
|
|
|
809
874
|
api_headers = {
|
|
810
875
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
811
876
|
"content-type": 'application/json',
|
|
877
|
+
"accept": 'application/json',
|
|
812
878
|
}
|
|
813
879
|
|
|
814
880
|
@client.call(
|
|
@@ -840,6 +906,7 @@ module Appwrite
|
|
|
840
906
|
api_headers = {
|
|
841
907
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
842
908
|
"content-type": 'application/json',
|
|
909
|
+
"accept": 'application/json',
|
|
843
910
|
}
|
|
844
911
|
|
|
845
912
|
@client.call(
|
|
@@ -871,6 +938,7 @@ module Appwrite
|
|
|
871
938
|
api_headers = {
|
|
872
939
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
873
940
|
"content-type": 'application/json',
|
|
941
|
+
"accept": 'application/json',
|
|
874
942
|
}
|
|
875
943
|
|
|
876
944
|
@client.call(
|
|
@@ -902,6 +970,7 @@ module Appwrite
|
|
|
902
970
|
api_headers = {
|
|
903
971
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
904
972
|
"content-type": 'application/json',
|
|
973
|
+
"accept": 'application/json',
|
|
905
974
|
}
|
|
906
975
|
|
|
907
976
|
@client.call(
|
|
@@ -933,6 +1002,7 @@ module Appwrite
|
|
|
933
1002
|
api_headers = {
|
|
934
1003
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
935
1004
|
"content-type": 'application/json',
|
|
1005
|
+
"accept": 'application/json',
|
|
936
1006
|
}
|
|
937
1007
|
|
|
938
1008
|
@client.call(
|
|
@@ -964,6 +1034,7 @@ module Appwrite
|
|
|
964
1034
|
api_headers = {
|
|
965
1035
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
966
1036
|
"content-type": 'application/json',
|
|
1037
|
+
"accept": 'application/json',
|
|
967
1038
|
}
|
|
968
1039
|
|
|
969
1040
|
@client.call(
|
|
@@ -995,6 +1066,7 @@ module Appwrite
|
|
|
995
1066
|
api_headers = {
|
|
996
1067
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
997
1068
|
"content-type": 'application/json',
|
|
1069
|
+
"accept": 'application/json',
|
|
998
1070
|
}
|
|
999
1071
|
|
|
1000
1072
|
@client.call(
|
|
@@ -1026,6 +1098,7 @@ module Appwrite
|
|
|
1026
1098
|
api_headers = {
|
|
1027
1099
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1028
1100
|
"content-type": 'application/json',
|
|
1101
|
+
"accept": 'application/json',
|
|
1029
1102
|
}
|
|
1030
1103
|
|
|
1031
1104
|
@client.call(
|
|
@@ -1057,6 +1130,7 @@ module Appwrite
|
|
|
1057
1130
|
api_headers = {
|
|
1058
1131
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1059
1132
|
"content-type": 'application/json',
|
|
1133
|
+
"accept": 'application/json',
|
|
1060
1134
|
}
|
|
1061
1135
|
|
|
1062
1136
|
@client.call(
|
|
@@ -1090,6 +1164,7 @@ module Appwrite
|
|
|
1090
1164
|
api_headers = {
|
|
1091
1165
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1092
1166
|
"content-type": 'application/json',
|
|
1167
|
+
"accept": 'application/json',
|
|
1093
1168
|
}
|
|
1094
1169
|
|
|
1095
1170
|
@client.call(
|
|
@@ -1121,6 +1196,7 @@ module Appwrite
|
|
|
1121
1196
|
api_headers = {
|
|
1122
1197
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1123
1198
|
"content-type": 'application/json',
|
|
1199
|
+
"accept": 'application/json',
|
|
1124
1200
|
}
|
|
1125
1201
|
|
|
1126
1202
|
@client.call(
|
|
@@ -1154,6 +1230,7 @@ module Appwrite
|
|
|
1154
1230
|
api_headers = {
|
|
1155
1231
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1156
1232
|
"content-type": 'application/json',
|
|
1233
|
+
"accept": 'application/json',
|
|
1157
1234
|
}
|
|
1158
1235
|
|
|
1159
1236
|
@client.call(
|
|
@@ -1187,6 +1264,7 @@ module Appwrite
|
|
|
1187
1264
|
api_headers = {
|
|
1188
1265
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1189
1266
|
"content-type": 'application/json',
|
|
1267
|
+
"accept": 'application/json',
|
|
1190
1268
|
}
|
|
1191
1269
|
|
|
1192
1270
|
@client.call(
|
|
@@ -1222,6 +1300,7 @@ module Appwrite
|
|
|
1222
1300
|
api_headers = {
|
|
1223
1301
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1224
1302
|
"content-type": 'application/json',
|
|
1303
|
+
"accept": 'application/json',
|
|
1225
1304
|
}
|
|
1226
1305
|
|
|
1227
1306
|
@client.call(
|
|
@@ -1253,6 +1332,7 @@ module Appwrite
|
|
|
1253
1332
|
api_headers = {
|
|
1254
1333
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1255
1334
|
"content-type": 'application/json',
|
|
1335
|
+
"accept": 'application/json',
|
|
1256
1336
|
}
|
|
1257
1337
|
|
|
1258
1338
|
@client.call(
|
|
@@ -1284,6 +1364,7 @@ module Appwrite
|
|
|
1284
1364
|
api_headers = {
|
|
1285
1365
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1286
1366
|
"content-type": 'application/json',
|
|
1367
|
+
"accept": 'application/json',
|
|
1287
1368
|
}
|
|
1288
1369
|
|
|
1289
1370
|
@client.call(
|
|
@@ -1317,6 +1398,7 @@ module Appwrite
|
|
|
1317
1398
|
api_headers = {
|
|
1318
1399
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1319
1400
|
"content-type": 'application/json',
|
|
1401
|
+
"accept": 'application/json',
|
|
1320
1402
|
}
|
|
1321
1403
|
|
|
1322
1404
|
@client.call(
|
|
@@ -1348,6 +1430,7 @@ module Appwrite
|
|
|
1348
1430
|
api_headers = {
|
|
1349
1431
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1350
1432
|
"content-type": 'application/json',
|
|
1433
|
+
"accept": 'application/json',
|
|
1351
1434
|
}
|
|
1352
1435
|
|
|
1353
1436
|
@client.call(
|
|
@@ -1368,10 +1451,12 @@ module Appwrite
|
|
|
1368
1451
|
# @param [String] authorization_url OpenID Connect authorization endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/authorize
|
|
1369
1452
|
# @param [String] token_url OpenID Connect token endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/token
|
|
1370
1453
|
# @param [String] user_info_url OpenID Connect user info endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/userinfo
|
|
1454
|
+
# @param [Array] prompt Array of OpenID Connect prompt values controlling the authentication and consent screens. If "none" is included, it must be the only element. "none" means: don't display any authentication or consent screens. "login" means: prompt the user to re-authenticate. "consent" means: prompt the user for consent. "select_account" means: prompt the user to select an account.
|
|
1455
|
+
# @param [Integer] max_age Maximum authentication age in seconds. When set, the user must have authenticated within this many seconds, otherwise they are prompted to re-authenticate.
|
|
1371
1456
|
# @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.
|
|
1372
1457
|
#
|
|
1373
1458
|
# @return [OAuth2Oidc]
|
|
1374
|
-
def update_o_auth2_oidc(client_id: nil, client_secret: nil, well_known_url: nil, authorization_url: nil, token_url: nil, user_info_url: nil, enabled: nil)
|
|
1459
|
+
def update_o_auth2_oidc(client_id: nil, client_secret: nil, well_known_url: nil, authorization_url: nil, token_url: nil, user_info_url: nil, prompt: nil, max_age: nil, enabled: nil)
|
|
1375
1460
|
api_path = '/project/oauth2/oidc'
|
|
1376
1461
|
|
|
1377
1462
|
api_params = {
|
|
@@ -1381,12 +1466,15 @@ module Appwrite
|
|
|
1381
1466
|
authorizationURL: authorization_url,
|
|
1382
1467
|
tokenURL: token_url,
|
|
1383
1468
|
userInfoURL: user_info_url,
|
|
1469
|
+
prompt: prompt,
|
|
1470
|
+
maxAge: max_age,
|
|
1384
1471
|
enabled: enabled,
|
|
1385
1472
|
}
|
|
1386
1473
|
|
|
1387
1474
|
api_headers = {
|
|
1388
1475
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1389
1476
|
"content-type": 'application/json',
|
|
1477
|
+
"accept": 'application/json',
|
|
1390
1478
|
}
|
|
1391
1479
|
|
|
1392
1480
|
@client.call(
|
|
@@ -1422,6 +1510,7 @@ module Appwrite
|
|
|
1422
1510
|
api_headers = {
|
|
1423
1511
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1424
1512
|
"content-type": 'application/json',
|
|
1513
|
+
"accept": 'application/json',
|
|
1425
1514
|
}
|
|
1426
1515
|
|
|
1427
1516
|
@client.call(
|
|
@@ -1453,6 +1542,7 @@ module Appwrite
|
|
|
1453
1542
|
api_headers = {
|
|
1454
1543
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1455
1544
|
"content-type": 'application/json',
|
|
1545
|
+
"accept": 'application/json',
|
|
1456
1546
|
}
|
|
1457
1547
|
|
|
1458
1548
|
@client.call(
|
|
@@ -1484,6 +1574,7 @@ module Appwrite
|
|
|
1484
1574
|
api_headers = {
|
|
1485
1575
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1486
1576
|
"content-type": 'application/json',
|
|
1577
|
+
"accept": 'application/json',
|
|
1487
1578
|
}
|
|
1488
1579
|
|
|
1489
1580
|
@client.call(
|
|
@@ -1515,6 +1606,7 @@ module Appwrite
|
|
|
1515
1606
|
api_headers = {
|
|
1516
1607
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1517
1608
|
"content-type": 'application/json',
|
|
1609
|
+
"accept": 'application/json',
|
|
1518
1610
|
}
|
|
1519
1611
|
|
|
1520
1612
|
@client.call(
|
|
@@ -1546,6 +1638,7 @@ module Appwrite
|
|
|
1546
1638
|
api_headers = {
|
|
1547
1639
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1548
1640
|
"content-type": 'application/json',
|
|
1641
|
+
"accept": 'application/json',
|
|
1549
1642
|
}
|
|
1550
1643
|
|
|
1551
1644
|
@client.call(
|
|
@@ -1577,6 +1670,7 @@ module Appwrite
|
|
|
1577
1670
|
api_headers = {
|
|
1578
1671
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1579
1672
|
"content-type": 'application/json',
|
|
1673
|
+
"accept": 'application/json',
|
|
1580
1674
|
}
|
|
1581
1675
|
|
|
1582
1676
|
@client.call(
|
|
@@ -1608,6 +1702,7 @@ module Appwrite
|
|
|
1608
1702
|
api_headers = {
|
|
1609
1703
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1610
1704
|
"content-type": 'application/json',
|
|
1705
|
+
"accept": 'application/json',
|
|
1611
1706
|
}
|
|
1612
1707
|
|
|
1613
1708
|
@client.call(
|
|
@@ -1639,6 +1734,7 @@ module Appwrite
|
|
|
1639
1734
|
api_headers = {
|
|
1640
1735
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1641
1736
|
"content-type": 'application/json',
|
|
1737
|
+
"accept": 'application/json',
|
|
1642
1738
|
}
|
|
1643
1739
|
|
|
1644
1740
|
@client.call(
|
|
@@ -1670,6 +1766,7 @@ module Appwrite
|
|
|
1670
1766
|
api_headers = {
|
|
1671
1767
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1672
1768
|
"content-type": 'application/json',
|
|
1769
|
+
"accept": 'application/json',
|
|
1673
1770
|
}
|
|
1674
1771
|
|
|
1675
1772
|
@client.call(
|
|
@@ -1701,6 +1798,7 @@ module Appwrite
|
|
|
1701
1798
|
api_headers = {
|
|
1702
1799
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1703
1800
|
"content-type": 'application/json',
|
|
1801
|
+
"accept": 'application/json',
|
|
1704
1802
|
}
|
|
1705
1803
|
|
|
1706
1804
|
@client.call(
|
|
@@ -1732,6 +1830,7 @@ module Appwrite
|
|
|
1732
1830
|
api_headers = {
|
|
1733
1831
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1734
1832
|
"content-type": 'application/json',
|
|
1833
|
+
"accept": 'application/json',
|
|
1735
1834
|
}
|
|
1736
1835
|
|
|
1737
1836
|
@client.call(
|
|
@@ -1763,6 +1862,7 @@ module Appwrite
|
|
|
1763
1862
|
api_headers = {
|
|
1764
1863
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1765
1864
|
"content-type": 'application/json',
|
|
1865
|
+
"accept": 'application/json',
|
|
1766
1866
|
}
|
|
1767
1867
|
|
|
1768
1868
|
@client.call(
|
|
@@ -1794,6 +1894,7 @@ module Appwrite
|
|
|
1794
1894
|
api_headers = {
|
|
1795
1895
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1796
1896
|
"content-type": 'application/json',
|
|
1897
|
+
"accept": 'application/json',
|
|
1797
1898
|
}
|
|
1798
1899
|
|
|
1799
1900
|
@client.call(
|
|
@@ -1825,6 +1926,7 @@ module Appwrite
|
|
|
1825
1926
|
api_headers = {
|
|
1826
1927
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1827
1928
|
"content-type": 'application/json',
|
|
1929
|
+
"accept": 'application/json',
|
|
1828
1930
|
}
|
|
1829
1931
|
|
|
1830
1932
|
@client.call(
|
|
@@ -1856,6 +1958,7 @@ module Appwrite
|
|
|
1856
1958
|
api_headers = {
|
|
1857
1959
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1858
1960
|
"content-type": 'application/json',
|
|
1961
|
+
"accept": 'application/json',
|
|
1859
1962
|
}
|
|
1860
1963
|
|
|
1861
1964
|
@client.call(
|
|
@@ -1887,6 +1990,7 @@ module Appwrite
|
|
|
1887
1990
|
api_headers = {
|
|
1888
1991
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1889
1992
|
"content-type": 'application/json',
|
|
1993
|
+
"accept": 'application/json',
|
|
1890
1994
|
}
|
|
1891
1995
|
|
|
1892
1996
|
@client.call(
|
|
@@ -1918,6 +2022,7 @@ module Appwrite
|
|
|
1918
2022
|
api_headers = {
|
|
1919
2023
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1920
2024
|
"content-type": 'application/json',
|
|
2025
|
+
"accept": 'application/json',
|
|
1921
2026
|
}
|
|
1922
2027
|
|
|
1923
2028
|
@client.call(
|
|
@@ -1949,6 +2054,7 @@ module Appwrite
|
|
|
1949
2054
|
|
|
1950
2055
|
api_headers = {
|
|
1951
2056
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2057
|
+
"accept": 'application/json',
|
|
1952
2058
|
}
|
|
1953
2059
|
|
|
1954
2060
|
response = @client.call(
|
|
@@ -2183,6 +2289,7 @@ module Appwrite
|
|
|
2183
2289
|
|
|
2184
2290
|
api_headers = {
|
|
2185
2291
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2292
|
+
"accept": 'application/json',
|
|
2186
2293
|
}
|
|
2187
2294
|
|
|
2188
2295
|
@client.call(
|
|
@@ -2228,6 +2335,7 @@ module Appwrite
|
|
|
2228
2335
|
api_headers = {
|
|
2229
2336
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2230
2337
|
"content-type": 'application/json',
|
|
2338
|
+
"accept": 'application/json',
|
|
2231
2339
|
}
|
|
2232
2340
|
|
|
2233
2341
|
@client.call(
|
|
@@ -2272,6 +2380,7 @@ module Appwrite
|
|
|
2272
2380
|
api_headers = {
|
|
2273
2381
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2274
2382
|
"content-type": 'application/json',
|
|
2383
|
+
"accept": 'application/json',
|
|
2275
2384
|
}
|
|
2276
2385
|
|
|
2277
2386
|
@client.call(
|
|
@@ -2317,6 +2426,7 @@ module Appwrite
|
|
|
2317
2426
|
api_headers = {
|
|
2318
2427
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2319
2428
|
"content-type": 'application/json',
|
|
2429
|
+
"accept": 'application/json',
|
|
2320
2430
|
}
|
|
2321
2431
|
|
|
2322
2432
|
@client.call(
|
|
@@ -2361,6 +2471,7 @@ module Appwrite
|
|
|
2361
2471
|
api_headers = {
|
|
2362
2472
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2363
2473
|
"content-type": 'application/json',
|
|
2474
|
+
"accept": 'application/json',
|
|
2364
2475
|
}
|
|
2365
2476
|
|
|
2366
2477
|
@client.call(
|
|
@@ -2406,6 +2517,7 @@ module Appwrite
|
|
|
2406
2517
|
api_headers = {
|
|
2407
2518
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2408
2519
|
"content-type": 'application/json',
|
|
2520
|
+
"accept": 'application/json',
|
|
2409
2521
|
}
|
|
2410
2522
|
|
|
2411
2523
|
@client.call(
|
|
@@ -2450,6 +2562,7 @@ module Appwrite
|
|
|
2450
2562
|
api_headers = {
|
|
2451
2563
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2452
2564
|
"content-type": 'application/json',
|
|
2565
|
+
"accept": 'application/json',
|
|
2453
2566
|
}
|
|
2454
2567
|
|
|
2455
2568
|
@client.call(
|
|
@@ -2495,6 +2608,7 @@ module Appwrite
|
|
|
2495
2608
|
api_headers = {
|
|
2496
2609
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2497
2610
|
"content-type": 'application/json',
|
|
2611
|
+
"accept": 'application/json',
|
|
2498
2612
|
}
|
|
2499
2613
|
|
|
2500
2614
|
@client.call(
|
|
@@ -2539,6 +2653,7 @@ module Appwrite
|
|
|
2539
2653
|
api_headers = {
|
|
2540
2654
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2541
2655
|
"content-type": 'application/json',
|
|
2656
|
+
"accept": 'application/json',
|
|
2542
2657
|
}
|
|
2543
2658
|
|
|
2544
2659
|
@client.call(
|
|
@@ -2584,6 +2699,7 @@ module Appwrite
|
|
|
2584
2699
|
api_headers = {
|
|
2585
2700
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2586
2701
|
"content-type": 'application/json',
|
|
2702
|
+
"accept": 'application/json',
|
|
2587
2703
|
}
|
|
2588
2704
|
|
|
2589
2705
|
@client.call(
|
|
@@ -2628,6 +2744,7 @@ module Appwrite
|
|
|
2628
2744
|
api_headers = {
|
|
2629
2745
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2630
2746
|
"content-type": 'application/json',
|
|
2747
|
+
"accept": 'application/json',
|
|
2631
2748
|
}
|
|
2632
2749
|
|
|
2633
2750
|
@client.call(
|
|
@@ -2659,6 +2776,7 @@ module Appwrite
|
|
|
2659
2776
|
|
|
2660
2777
|
api_headers = {
|
|
2661
2778
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2779
|
+
"accept": 'application/json',
|
|
2662
2780
|
}
|
|
2663
2781
|
|
|
2664
2782
|
response = @client.call(
|
|
@@ -2748,6 +2866,7 @@ module Appwrite
|
|
|
2748
2866
|
|
|
2749
2867
|
api_headers = {
|
|
2750
2868
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2869
|
+
"accept": 'application/json',
|
|
2751
2870
|
}
|
|
2752
2871
|
|
|
2753
2872
|
@client.call(
|
|
@@ -2780,6 +2899,40 @@ module Appwrite
|
|
|
2780
2899
|
api_headers = {
|
|
2781
2900
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2782
2901
|
"content-type": 'application/json',
|
|
2902
|
+
"accept": 'application/json',
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
@client.call(
|
|
2906
|
+
method: 'PATCH',
|
|
2907
|
+
path: api_path,
|
|
2908
|
+
headers: api_headers,
|
|
2909
|
+
params: api_params,
|
|
2910
|
+
response_type: Models::Project
|
|
2911
|
+
)
|
|
2912
|
+
|
|
2913
|
+
end
|
|
2914
|
+
|
|
2915
|
+
# Configures if only corporate email addresses (non-free and non-disposable
|
|
2916
|
+
# domains) are allowed during new user sign-ups and email updates.
|
|
2917
|
+
#
|
|
2918
|
+
# @param [] enabled Set whether or not to restrict sign-ups and email updates to corporate email addresses only.
|
|
2919
|
+
#
|
|
2920
|
+
# @return [Project]
|
|
2921
|
+
def update_deny_corporate_email_policy(enabled:)
|
|
2922
|
+
api_path = '/project/policies/deny-corporate-email'
|
|
2923
|
+
|
|
2924
|
+
if enabled.nil?
|
|
2925
|
+
raise Appwrite::Exception.new('Missing required parameter: "enabled"')
|
|
2926
|
+
end
|
|
2927
|
+
|
|
2928
|
+
api_params = {
|
|
2929
|
+
enabled: enabled,
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
api_headers = {
|
|
2933
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2934
|
+
"content-type": 'application/json',
|
|
2935
|
+
"accept": 'application/json',
|
|
2783
2936
|
}
|
|
2784
2937
|
|
|
2785
2938
|
@client.call(
|
|
@@ -2812,6 +2965,7 @@ module Appwrite
|
|
|
2812
2965
|
api_headers = {
|
|
2813
2966
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2814
2967
|
"content-type": 'application/json',
|
|
2968
|
+
"accept": 'application/json',
|
|
2815
2969
|
}
|
|
2816
2970
|
|
|
2817
2971
|
@client.call(
|
|
@@ -2844,6 +2998,7 @@ module Appwrite
|
|
|
2844
2998
|
api_headers = {
|
|
2845
2999
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2846
3000
|
"content-type": 'application/json',
|
|
3001
|
+
"accept": 'application/json',
|
|
2847
3002
|
}
|
|
2848
3003
|
|
|
2849
3004
|
@client.call(
|
|
@@ -2865,9 +3020,10 @@ module Appwrite
|
|
|
2865
3020
|
# @param [] user_phone Set to true if you want make user phone number visible to all team members, or false to hide it.
|
|
2866
3021
|
# @param [] user_name Set to true if you want make user name visible to all team members, or false to hide it.
|
|
2867
3022
|
# @param [] user_mfa Set to true if you want make user MFA status visible to all team members, or false to hide it.
|
|
3023
|
+
# @param [] user_accessed_at Set to true if you want make user last access time visible to all team members, or false to hide it.
|
|
2868
3024
|
#
|
|
2869
3025
|
# @return [Project]
|
|
2870
|
-
def update_membership_privacy_policy(user_id: nil, user_email: nil, user_phone: nil, user_name: nil, user_mfa: nil)
|
|
3026
|
+
def update_membership_privacy_policy(user_id: nil, user_email: nil, user_phone: nil, user_name: nil, user_mfa: nil, user_accessed_at: nil)
|
|
2871
3027
|
api_path = '/project/policies/membership-privacy'
|
|
2872
3028
|
|
|
2873
3029
|
api_params = {
|
|
@@ -2876,11 +3032,13 @@ module Appwrite
|
|
|
2876
3032
|
userPhone: user_phone,
|
|
2877
3033
|
userName: user_name,
|
|
2878
3034
|
userMFA: user_mfa,
|
|
3035
|
+
userAccessedAt: user_accessed_at,
|
|
2879
3036
|
}
|
|
2880
3037
|
|
|
2881
3038
|
api_headers = {
|
|
2882
3039
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2883
3040
|
"content-type": 'application/json',
|
|
3041
|
+
"accept": 'application/json',
|
|
2884
3042
|
}
|
|
2885
3043
|
|
|
2886
3044
|
@client.call(
|
|
@@ -2914,6 +3072,7 @@ module Appwrite
|
|
|
2914
3072
|
api_headers = {
|
|
2915
3073
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2916
3074
|
"content-type": 'application/json',
|
|
3075
|
+
"accept": 'application/json',
|
|
2917
3076
|
}
|
|
2918
3077
|
|
|
2919
3078
|
@client.call(
|
|
@@ -2953,6 +3112,7 @@ module Appwrite
|
|
|
2953
3112
|
api_headers = {
|
|
2954
3113
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2955
3114
|
"content-type": 'application/json',
|
|
3115
|
+
"accept": 'application/json',
|
|
2956
3116
|
}
|
|
2957
3117
|
|
|
2958
3118
|
@client.call(
|
|
@@ -2987,6 +3147,7 @@ module Appwrite
|
|
|
2987
3147
|
api_headers = {
|
|
2988
3148
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2989
3149
|
"content-type": 'application/json',
|
|
3150
|
+
"accept": 'application/json',
|
|
2990
3151
|
}
|
|
2991
3152
|
|
|
2992
3153
|
@client.call(
|
|
@@ -3022,6 +3183,7 @@ module Appwrite
|
|
|
3022
3183
|
api_headers = {
|
|
3023
3184
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3024
3185
|
"content-type": 'application/json',
|
|
3186
|
+
"accept": 'application/json',
|
|
3025
3187
|
}
|
|
3026
3188
|
|
|
3027
3189
|
@client.call(
|
|
@@ -3057,6 +3219,7 @@ module Appwrite
|
|
|
3057
3219
|
api_headers = {
|
|
3058
3220
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3059
3221
|
"content-type": 'application/json',
|
|
3222
|
+
"accept": 'application/json',
|
|
3060
3223
|
}
|
|
3061
3224
|
|
|
3062
3225
|
@client.call(
|
|
@@ -3089,6 +3252,7 @@ module Appwrite
|
|
|
3089
3252
|
api_headers = {
|
|
3090
3253
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3091
3254
|
"content-type": 'application/json',
|
|
3255
|
+
"accept": 'application/json',
|
|
3092
3256
|
}
|
|
3093
3257
|
|
|
3094
3258
|
@client.call(
|
|
@@ -3122,6 +3286,7 @@ module Appwrite
|
|
|
3122
3286
|
api_headers = {
|
|
3123
3287
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3124
3288
|
"content-type": 'application/json',
|
|
3289
|
+
"accept": 'application/json',
|
|
3125
3290
|
}
|
|
3126
3291
|
|
|
3127
3292
|
@client.call(
|
|
@@ -3154,6 +3319,7 @@ module Appwrite
|
|
|
3154
3319
|
api_headers = {
|
|
3155
3320
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3156
3321
|
"content-type": 'application/json',
|
|
3322
|
+
"accept": 'application/json',
|
|
3157
3323
|
}
|
|
3158
3324
|
|
|
3159
3325
|
@client.call(
|
|
@@ -3187,6 +3353,7 @@ module Appwrite
|
|
|
3187
3353
|
api_headers = {
|
|
3188
3354
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3189
3355
|
"content-type": 'application/json',
|
|
3356
|
+
"accept": 'application/json',
|
|
3190
3357
|
}
|
|
3191
3358
|
|
|
3192
3359
|
@client.call(
|
|
@@ -3202,9 +3369,9 @@ module Appwrite
|
|
|
3202
3369
|
# Get a policy by its unique ID. This endpoint returns the current
|
|
3203
3370
|
# configuration for the requested project policy.
|
|
3204
3371
|
#
|
|
3205
|
-
# @param [ProjectPolicyId] policy_id Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email.
|
|
3372
|
+
# @param [ProjectPolicyId] policy_id Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email.
|
|
3206
3373
|
#
|
|
3207
|
-
# @return [PolicyPasswordDictionary, PolicyPasswordHistory, PolicyPasswordStrength, PolicyPasswordPersonalData, PolicySessionAlert, PolicySessionDuration, PolicySessionInvalidation, PolicySessionLimit, PolicyUserLimit, PolicyMembershipPrivacy, PolicyDenyAliasedEmail, PolicyDenyDisposableEmail, PolicyDenyFreeEmail]
|
|
3374
|
+
# @return [PolicyPasswordDictionary, PolicyPasswordHistory, PolicyPasswordStrength, PolicyPasswordPersonalData, PolicySessionAlert, PolicySessionDuration, PolicySessionInvalidation, PolicySessionLimit, PolicyUserLimit, PolicyMembershipPrivacy, PolicyDenyAliasedEmail, PolicyDenyDisposableEmail, PolicyDenyFreeEmail, PolicyDenyCorporateEmail]
|
|
3208
3375
|
def get_policy(policy_id:)
|
|
3209
3376
|
api_path = '/project/policies/{policyId}'
|
|
3210
3377
|
.gsub('{policyId}', policy_id)
|
|
@@ -3218,6 +3385,7 @@ module Appwrite
|
|
|
3218
3385
|
|
|
3219
3386
|
api_headers = {
|
|
3220
3387
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3388
|
+
"accept": 'application/json',
|
|
3221
3389
|
}
|
|
3222
3390
|
|
|
3223
3391
|
response = @client.call(
|
|
@@ -3296,6 +3464,11 @@ module Appwrite
|
|
|
3296
3464
|
return Models::PolicyDenyFreeEmail.from(map: response)
|
|
3297
3465
|
end
|
|
3298
3466
|
|
|
3467
|
+
if response['$id'] == 'deny-corporate-email'
|
|
3468
|
+
|
|
3469
|
+
return Models::PolicyDenyCorporateEmail.from(map: response)
|
|
3470
|
+
end
|
|
3471
|
+
|
|
3299
3472
|
raise Exception, "Unable to match response to any expected response model"
|
|
3300
3473
|
|
|
3301
3474
|
end
|
|
@@ -3326,6 +3499,7 @@ module Appwrite
|
|
|
3326
3499
|
api_headers = {
|
|
3327
3500
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3328
3501
|
"content-type": 'application/json',
|
|
3502
|
+
"accept": 'application/json',
|
|
3329
3503
|
}
|
|
3330
3504
|
|
|
3331
3505
|
@client.call(
|
|
@@ -3341,7 +3515,7 @@ module Appwrite
|
|
|
3341
3515
|
# Update properties of a specific service. Use this endpoint to enable or
|
|
3342
3516
|
# disable a service in your project.
|
|
3343
3517
|
#
|
|
3344
|
-
# @param [ProjectServiceId] service_id Service name. Can be one of: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor
|
|
3518
|
+
# @param [ProjectServiceId] service_id Service name. Can be one of: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor, oauth2
|
|
3345
3519
|
# @param [] enabled Service status.
|
|
3346
3520
|
#
|
|
3347
3521
|
# @return [Project]
|
|
@@ -3364,6 +3538,7 @@ module Appwrite
|
|
|
3364
3538
|
api_headers = {
|
|
3365
3539
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3366
3540
|
"content-type": 'application/json',
|
|
3541
|
+
"accept": 'application/json',
|
|
3367
3542
|
}
|
|
3368
3543
|
|
|
3369
3544
|
@client.call(
|
|
@@ -3411,6 +3586,7 @@ module Appwrite
|
|
|
3411
3586
|
api_headers = {
|
|
3412
3587
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3413
3588
|
"content-type": 'application/json',
|
|
3589
|
+
"accept": 'application/json',
|
|
3414
3590
|
}
|
|
3415
3591
|
|
|
3416
3592
|
@client.call(
|
|
@@ -3471,6 +3647,7 @@ module Appwrite
|
|
|
3471
3647
|
|
|
3472
3648
|
api_headers = {
|
|
3473
3649
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3650
|
+
"accept": 'application/json',
|
|
3474
3651
|
}
|
|
3475
3652
|
|
|
3476
3653
|
@client.call(
|
|
@@ -3517,6 +3694,7 @@ module Appwrite
|
|
|
3517
3694
|
api_headers = {
|
|
3518
3695
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3519
3696
|
"content-type": 'application/json',
|
|
3697
|
+
"accept": 'application/json',
|
|
3520
3698
|
}
|
|
3521
3699
|
|
|
3522
3700
|
@client.call(
|
|
@@ -3551,6 +3729,7 @@ module Appwrite
|
|
|
3551
3729
|
|
|
3552
3730
|
api_headers = {
|
|
3553
3731
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3732
|
+
"accept": 'application/json',
|
|
3554
3733
|
}
|
|
3555
3734
|
|
|
3556
3735
|
@client.call(
|
|
@@ -3579,6 +3758,7 @@ module Appwrite
|
|
|
3579
3758
|
|
|
3580
3759
|
api_headers = {
|
|
3581
3760
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3761
|
+
"accept": 'application/json',
|
|
3582
3762
|
}
|
|
3583
3763
|
|
|
3584
3764
|
@client.call(
|
|
@@ -3625,6 +3805,7 @@ module Appwrite
|
|
|
3625
3805
|
api_headers = {
|
|
3626
3806
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3627
3807
|
"content-type": 'application/json',
|
|
3808
|
+
"accept": 'application/json',
|
|
3628
3809
|
}
|
|
3629
3810
|
|
|
3630
3811
|
@client.call(
|
|
@@ -3655,6 +3836,7 @@ module Appwrite
|
|
|
3655
3836
|
|
|
3656
3837
|
api_headers = {
|
|
3657
3838
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3839
|
+
"accept": 'application/json',
|
|
3658
3840
|
}
|
|
3659
3841
|
|
|
3660
3842
|
@client.call(
|
|
@@ -3692,6 +3874,7 @@ module Appwrite
|
|
|
3692
3874
|
api_headers = {
|
|
3693
3875
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
3694
3876
|
"content-type": 'application/json',
|
|
3877
|
+
"accept": 'application/json',
|
|
3695
3878
|
}
|
|
3696
3879
|
|
|
3697
3880
|
@client.call(
|