appwrite 25.0.0 → 26.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 +36 -6
- data/lib/appwrite/enums/billing_plan_group.rb +9 -0
- data/lib/appwrite/enums/database_status.rb +9 -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 +4 -0
- data/lib/appwrite/enums/project_key_scopes.rb +9 -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 +2 -0
- data/lib/appwrite/enums/project_service_id.rb +1 -0
- data/lib/appwrite/models/activity_event.rb +3 -73
- data/lib/appwrite/models/additional_resource.rb +52 -0
- data/lib/appwrite/models/backup_policy.rb +5 -0
- data/lib/appwrite/models/billing_plan.rb +379 -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 +19 -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/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/policy_password_strength.rb +52 -0
- data/lib/appwrite/models/program.rb +67 -0
- data/lib/appwrite/models/project.rb +93 -13
- 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 +88 -2
- data/lib/appwrite/services/activities.rb +4 -0
- data/lib/appwrite/services/advisor.rb +9 -0
- data/lib/appwrite/services/avatars.rb +16 -0
- data/lib/appwrite/services/backups.rb +37 -1
- data/lib/appwrite/services/databases.rb +178 -0
- data/lib/appwrite/services/functions.rb +56 -4
- data/lib/appwrite/services/graphql.rb +4 -0
- data/lib/appwrite/services/locale.rb +16 -0
- data/lib/appwrite/services/messaging.rb +188 -132
- data/lib/appwrite/services/organization.rb +278 -3
- data/lib/appwrite/services/presences.rb +9 -0
- data/lib/appwrite/services/project.rb +417 -49
- data/lib/appwrite/services/proxy.rb +15 -0
- data/lib/appwrite/services/sites.rb +50 -1
- data/lib/appwrite/services/storage.rb +24 -0
- data/lib/appwrite/services/tables_db.rb +139 -1
- data/lib/appwrite/services/teams.rb +24 -0
- data/lib/appwrite/services/tokens.rb +9 -0
- data/lib/appwrite/services/users.rb +81 -1
- data/lib/appwrite/services/webhooks.rb +11 -0
- data/lib/appwrite.rb +17 -15
- metadata +19 -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_queue.rb +0 -27
- data/lib/appwrite/models/health_status.rb +0 -53
- data/lib/appwrite/models/health_status_list.rb +0 -32
- data/lib/appwrite/models/health_time.rb +0 -37
- data/lib/appwrite/models/usage_event.rb +0 -72
- data/lib/appwrite/models/usage_event_list.rb +0 -32
- data/lib/appwrite/models/usage_gauge.rb +0 -47
- data/lib/appwrite/models/usage_gauge_list.rb +0 -32
- data/lib/appwrite/services/health.rb +0 -630
- data/lib/appwrite/services/usage.rb +0 -86
|
@@ -18,6 +18,7 @@ module Appwrite
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
api_headers = {
|
|
21
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
@client.call(
|
|
@@ -41,6 +42,7 @@ module Appwrite
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
api_headers = {
|
|
45
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
44
46
|
"content-type": 'application/json',
|
|
45
47
|
}
|
|
46
48
|
|
|
@@ -77,7 +79,9 @@ module Appwrite
|
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
api_headers = {
|
|
82
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
80
83
|
"content-type": 'application/json',
|
|
84
|
+
"accept": 'application/json',
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
@client.call(
|
|
@@ -105,6 +109,8 @@ module Appwrite
|
|
|
105
109
|
}
|
|
106
110
|
|
|
107
111
|
api_headers = {
|
|
112
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
113
|
+
"accept": 'application/json',
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
@client.call(
|
|
@@ -125,7 +131,7 @@ module Appwrite
|
|
|
125
131
|
#
|
|
126
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.
|
|
127
133
|
# @param [String] name Key name. Max length: 128 chars.
|
|
128
|
-
# @param [Array] scopes Key scopes list. Maximum of
|
|
134
|
+
# @param [Array] scopes Key scopes list. Maximum of 200 scopes are allowed.
|
|
129
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.
|
|
130
136
|
#
|
|
131
137
|
# @return [Key]
|
|
@@ -152,7 +158,9 @@ module Appwrite
|
|
|
152
158
|
}
|
|
153
159
|
|
|
154
160
|
api_headers = {
|
|
161
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
155
162
|
"content-type": 'application/json',
|
|
163
|
+
"accept": 'application/json',
|
|
156
164
|
}
|
|
157
165
|
|
|
158
166
|
@client.call(
|
|
@@ -171,7 +179,7 @@ module Appwrite
|
|
|
171
179
|
# You can also create a standard API key if you need a longer-lived key
|
|
172
180
|
# instead.
|
|
173
181
|
#
|
|
174
|
-
# @param [Array] scopes Key scopes list. Maximum of
|
|
182
|
+
# @param [Array] scopes Key scopes list. Maximum of 200 scopes are allowed.
|
|
175
183
|
# @param [Integer] duration Time in seconds before ephemeral key expires. Maximum duration is 3600 seconds.
|
|
176
184
|
#
|
|
177
185
|
# @return [EphemeralKey]
|
|
@@ -192,7 +200,9 @@ module Appwrite
|
|
|
192
200
|
}
|
|
193
201
|
|
|
194
202
|
api_headers = {
|
|
203
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
195
204
|
"content-type": 'application/json',
|
|
205
|
+
"accept": 'application/json',
|
|
196
206
|
}
|
|
197
207
|
|
|
198
208
|
@client.call(
|
|
@@ -222,6 +232,8 @@ module Appwrite
|
|
|
222
232
|
}
|
|
223
233
|
|
|
224
234
|
api_headers = {
|
|
235
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
236
|
+
"accept": 'application/json',
|
|
225
237
|
}
|
|
226
238
|
|
|
227
239
|
@client.call(
|
|
@@ -239,7 +251,7 @@ module Appwrite
|
|
|
239
251
|
#
|
|
240
252
|
# @param [String] key_id Key ID.
|
|
241
253
|
# @param [String] name Key name. Max length: 128 chars.
|
|
242
|
-
# @param [Array] scopes Key scopes list. Maximum of
|
|
254
|
+
# @param [Array] scopes Key scopes list. Maximum of 200 scopes are allowed.
|
|
243
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.
|
|
244
256
|
#
|
|
245
257
|
# @return [Key]
|
|
@@ -266,7 +278,9 @@ module Appwrite
|
|
|
266
278
|
}
|
|
267
279
|
|
|
268
280
|
api_headers = {
|
|
281
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
269
282
|
"content-type": 'application/json',
|
|
283
|
+
"accept": 'application/json',
|
|
270
284
|
}
|
|
271
285
|
|
|
272
286
|
@client.call(
|
|
@@ -297,6 +311,7 @@ module Appwrite
|
|
|
297
311
|
}
|
|
298
312
|
|
|
299
313
|
api_headers = {
|
|
314
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
300
315
|
"content-type": 'application/json',
|
|
301
316
|
}
|
|
302
317
|
|
|
@@ -327,7 +342,9 @@ module Appwrite
|
|
|
327
342
|
}
|
|
328
343
|
|
|
329
344
|
api_headers = {
|
|
345
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
330
346
|
"content-type": 'application/json',
|
|
347
|
+
"accept": 'application/json',
|
|
331
348
|
}
|
|
332
349
|
|
|
333
350
|
@client.call(
|
|
@@ -356,6 +373,8 @@ module Appwrite
|
|
|
356
373
|
}
|
|
357
374
|
|
|
358
375
|
api_headers = {
|
|
376
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
377
|
+
"accept": 'application/json',
|
|
359
378
|
}
|
|
360
379
|
|
|
361
380
|
@client.call(
|
|
@@ -392,7 +411,9 @@ module Appwrite
|
|
|
392
411
|
}
|
|
393
412
|
|
|
394
413
|
api_headers = {
|
|
414
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
395
415
|
"content-type": 'application/json',
|
|
416
|
+
"accept": 'application/json',
|
|
396
417
|
}
|
|
397
418
|
|
|
398
419
|
@client.call(
|
|
@@ -423,6 +444,8 @@ module Appwrite
|
|
|
423
444
|
}
|
|
424
445
|
|
|
425
446
|
api_headers = {
|
|
447
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
448
|
+
"accept": 'application/json',
|
|
426
449
|
}
|
|
427
450
|
|
|
428
451
|
@client.call(
|
|
@@ -459,7 +482,9 @@ module Appwrite
|
|
|
459
482
|
}
|
|
460
483
|
|
|
461
484
|
api_headers = {
|
|
485
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
462
486
|
"content-type": 'application/json',
|
|
487
|
+
"accept": 'application/json',
|
|
463
488
|
}
|
|
464
489
|
|
|
465
490
|
@client.call(
|
|
@@ -490,6 +515,7 @@ module Appwrite
|
|
|
490
515
|
}
|
|
491
516
|
|
|
492
517
|
api_headers = {
|
|
518
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
493
519
|
"content-type": 'application/json',
|
|
494
520
|
}
|
|
495
521
|
|
|
@@ -519,6 +545,8 @@ module Appwrite
|
|
|
519
545
|
}
|
|
520
546
|
|
|
521
547
|
api_headers = {
|
|
548
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
549
|
+
"accept": 'application/json',
|
|
522
550
|
}
|
|
523
551
|
|
|
524
552
|
@client.call(
|
|
@@ -531,10 +559,72 @@ module Appwrite
|
|
|
531
559
|
|
|
532
560
|
end
|
|
533
561
|
|
|
562
|
+
# Update the OAuth2 server (OIDC provider) configuration.
|
|
563
|
+
#
|
|
564
|
+
# @param [] enabled Enable or disable the OAuth2 server.
|
|
565
|
+
# @param [String] authorization_url URL to your application with consent screen.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 [] 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.
|
|
573
|
+
# @param [String] verification_url URL to your application page where users enter the device flow user code. Required to enable the Device Authorization Grant.
|
|
574
|
+
# @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.
|
|
575
|
+
# @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`.
|
|
576
|
+
# @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.
|
|
577
|
+
# @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.
|
|
578
|
+
#
|
|
579
|
+
# @return [Project]
|
|
580
|
+
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, confidential_pkce: nil, verification_url: nil, user_code_length: nil, user_code_format: nil, device_code_duration: nil, default_scopes: nil)
|
|
581
|
+
api_path = '/project/oauth2-server'
|
|
582
|
+
|
|
583
|
+
if enabled.nil?
|
|
584
|
+
raise Appwrite::Exception.new('Missing required parameter: "enabled"')
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
if authorization_url.nil?
|
|
588
|
+
raise Appwrite::Exception.new('Missing required parameter: "authorizationUrl"')
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
api_params = {
|
|
592
|
+
enabled: enabled,
|
|
593
|
+
authorizationUrl: authorization_url,
|
|
594
|
+
scopes: scopes,
|
|
595
|
+
authorizationDetailsTypes: authorization_details_types,
|
|
596
|
+
accessTokenDuration: access_token_duration,
|
|
597
|
+
refreshTokenDuration: refresh_token_duration,
|
|
598
|
+
publicAccessTokenDuration: public_access_token_duration,
|
|
599
|
+
publicRefreshTokenDuration: public_refresh_token_duration,
|
|
600
|
+
confidentialPkce: confidential_pkce,
|
|
601
|
+
verificationUrl: verification_url,
|
|
602
|
+
userCodeLength: user_code_length,
|
|
603
|
+
userCodeFormat: user_code_format,
|
|
604
|
+
deviceCodeDuration: device_code_duration,
|
|
605
|
+
defaultScopes: default_scopes,
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
api_headers = {
|
|
609
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
610
|
+
"content-type": 'application/json',
|
|
611
|
+
"accept": 'application/json',
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
@client.call(
|
|
615
|
+
method: 'PUT',
|
|
616
|
+
path: api_path,
|
|
617
|
+
headers: api_headers,
|
|
618
|
+
params: api_params,
|
|
619
|
+
response_type: Models::Project
|
|
620
|
+
)
|
|
621
|
+
|
|
622
|
+
end
|
|
623
|
+
|
|
534
624
|
# Update the project OAuth2 Amazon configuration.
|
|
535
625
|
#
|
|
536
626
|
# @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:
|
|
627
|
+
# @param [String] client_secret 'Client Secret' of Amazon OAuth2 app. For example: 79ffe4000000000000000000000000000000000000000000000000000002de55
|
|
538
628
|
# @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
629
|
#
|
|
540
630
|
# @return [OAuth2Amazon]
|
|
@@ -548,7 +638,9 @@ module Appwrite
|
|
|
548
638
|
}
|
|
549
639
|
|
|
550
640
|
api_headers = {
|
|
641
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
551
642
|
"content-type": 'application/json',
|
|
643
|
+
"accept": 'application/json',
|
|
552
644
|
}
|
|
553
645
|
|
|
554
646
|
@client.call(
|
|
@@ -582,7 +674,9 @@ module Appwrite
|
|
|
582
674
|
}
|
|
583
675
|
|
|
584
676
|
api_headers = {
|
|
677
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
585
678
|
"content-type": 'application/json',
|
|
679
|
+
"accept": 'application/json',
|
|
586
680
|
}
|
|
587
681
|
|
|
588
682
|
@client.call(
|
|
@@ -595,10 +689,42 @@ module Appwrite
|
|
|
595
689
|
|
|
596
690
|
end
|
|
597
691
|
|
|
692
|
+
# Update the project OAuth2 Appwrite configuration.
|
|
693
|
+
#
|
|
694
|
+
# @param [String] client_id 'Client ID' of Appwrite OAuth2 app. For example: 6a42000000000000b5a0
|
|
695
|
+
# @param [String] client_secret 'Client Secret' of Appwrite OAuth2 app. For example: b86afd000000000000000000000000000000000000000000000000000ced5f93
|
|
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
|
+
#
|
|
698
|
+
# @return [OAuth2Appwrite]
|
|
699
|
+
def update_o_auth2_appwrite(client_id: nil, client_secret: nil, enabled: nil)
|
|
700
|
+
api_path = '/project/oauth2/appwrite'
|
|
701
|
+
|
|
702
|
+
api_params = {
|
|
703
|
+
clientId: client_id,
|
|
704
|
+
clientSecret: client_secret,
|
|
705
|
+
enabled: enabled,
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
api_headers = {
|
|
709
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
710
|
+
"content-type": 'application/json',
|
|
711
|
+
"accept": 'application/json',
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
@client.call(
|
|
715
|
+
method: 'PATCH',
|
|
716
|
+
path: api_path,
|
|
717
|
+
headers: api_headers,
|
|
718
|
+
params: api_params,
|
|
719
|
+
response_type: Models::OAuth2Appwrite
|
|
720
|
+
)
|
|
721
|
+
|
|
722
|
+
end
|
|
723
|
+
|
|
598
724
|
# Update the project OAuth2 Auth0 configuration.
|
|
599
725
|
#
|
|
600
726
|
# @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:
|
|
727
|
+
# @param [String] client_secret 'Client Secret' of Auth0 OAuth2 app. For example: zXz0000-00000000000000000000000000000-00000000000000000000PJafnF
|
|
602
728
|
# @param [String] endpoint Domain of Auth0 instance. For example: example.us.auth0.com
|
|
603
729
|
# @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
730
|
#
|
|
@@ -614,7 +740,9 @@ module Appwrite
|
|
|
614
740
|
}
|
|
615
741
|
|
|
616
742
|
api_headers = {
|
|
743
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
617
744
|
"content-type": 'application/json',
|
|
745
|
+
"accept": 'application/json',
|
|
618
746
|
}
|
|
619
747
|
|
|
620
748
|
@client.call(
|
|
@@ -630,7 +758,7 @@ module Appwrite
|
|
|
630
758
|
# Update the project OAuth2 Authentik configuration.
|
|
631
759
|
#
|
|
632
760
|
# @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:
|
|
761
|
+
# @param [String] client_secret 'Client Secret' of Authentik OAuth2 app. For example: ntQadq000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Hp5WK
|
|
634
762
|
# @param [String] endpoint Domain of Authentik instance. For example: example.authentik.com
|
|
635
763
|
# @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
764
|
#
|
|
@@ -646,7 +774,9 @@ module Appwrite
|
|
|
646
774
|
}
|
|
647
775
|
|
|
648
776
|
api_headers = {
|
|
777
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
649
778
|
"content-type": 'application/json',
|
|
779
|
+
"accept": 'application/json',
|
|
650
780
|
}
|
|
651
781
|
|
|
652
782
|
@client.call(
|
|
@@ -662,7 +792,7 @@ module Appwrite
|
|
|
662
792
|
# Update the project OAuth2 Autodesk configuration.
|
|
663
793
|
#
|
|
664
794
|
# @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:
|
|
795
|
+
# @param [String] client_secret 'Client Secret' of Autodesk OAuth2 app. For example: 7I000000000000MW
|
|
666
796
|
# @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
797
|
#
|
|
668
798
|
# @return [OAuth2Autodesk]
|
|
@@ -676,7 +806,9 @@ module Appwrite
|
|
|
676
806
|
}
|
|
677
807
|
|
|
678
808
|
api_headers = {
|
|
809
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
679
810
|
"content-type": 'application/json',
|
|
811
|
+
"accept": 'application/json',
|
|
680
812
|
}
|
|
681
813
|
|
|
682
814
|
@client.call(
|
|
@@ -692,7 +824,7 @@ module Appwrite
|
|
|
692
824
|
# Update the project OAuth2 Bitbucket configuration.
|
|
693
825
|
#
|
|
694
826
|
# @param [String] key 'Key' of Bitbucket OAuth2 app. For example: Knt70000000000ByRc
|
|
695
|
-
# @param [String] secret 'Secret' of Bitbucket OAuth2 app. For example:
|
|
827
|
+
# @param [String] secret 'Secret' of Bitbucket OAuth2 app. For example: NMfLZJ00000000000000000000TLQdDx
|
|
696
828
|
# @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
829
|
#
|
|
698
830
|
# @return [OAuth2Bitbucket]
|
|
@@ -706,7 +838,9 @@ module Appwrite
|
|
|
706
838
|
}
|
|
707
839
|
|
|
708
840
|
api_headers = {
|
|
841
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
709
842
|
"content-type": 'application/json',
|
|
843
|
+
"accept": 'application/json',
|
|
710
844
|
}
|
|
711
845
|
|
|
712
846
|
@client.call(
|
|
@@ -722,7 +856,7 @@ module Appwrite
|
|
|
722
856
|
# Update the project OAuth2 Bitly configuration.
|
|
723
857
|
#
|
|
724
858
|
# @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:
|
|
859
|
+
# @param [String] client_secret 'Client Secret' of Bitly OAuth2 app. For example: a13e250000000000000000000000000000d73095
|
|
726
860
|
# @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
861
|
#
|
|
728
862
|
# @return [OAuth2Bitly]
|
|
@@ -736,7 +870,9 @@ module Appwrite
|
|
|
736
870
|
}
|
|
737
871
|
|
|
738
872
|
api_headers = {
|
|
873
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
739
874
|
"content-type": 'application/json',
|
|
875
|
+
"accept": 'application/json',
|
|
740
876
|
}
|
|
741
877
|
|
|
742
878
|
@client.call(
|
|
@@ -752,7 +888,7 @@ module Appwrite
|
|
|
752
888
|
# Update the project OAuth2 Box configuration.
|
|
753
889
|
#
|
|
754
890
|
# @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:
|
|
891
|
+
# @param [String] client_secret 'Client Secret' of Box OAuth2 app. For example: OKM1f100000000000000000000eshEif
|
|
756
892
|
# @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
893
|
#
|
|
758
894
|
# @return [OAuth2Box]
|
|
@@ -766,7 +902,9 @@ module Appwrite
|
|
|
766
902
|
}
|
|
767
903
|
|
|
768
904
|
api_headers = {
|
|
905
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
769
906
|
"content-type": 'application/json',
|
|
907
|
+
"accept": 'application/json',
|
|
770
908
|
}
|
|
771
909
|
|
|
772
910
|
@client.call(
|
|
@@ -782,7 +920,7 @@ module Appwrite
|
|
|
782
920
|
# Update the project OAuth2 Dailymotion configuration.
|
|
783
921
|
#
|
|
784
922
|
# @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:
|
|
923
|
+
# @param [String] api_secret 'API Secret' of Dailymotion OAuth2 app. For example: a399a90000000000000000000000000000d90639
|
|
786
924
|
# @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
925
|
#
|
|
788
926
|
# @return [OAuth2Dailymotion]
|
|
@@ -796,7 +934,9 @@ module Appwrite
|
|
|
796
934
|
}
|
|
797
935
|
|
|
798
936
|
api_headers = {
|
|
937
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
799
938
|
"content-type": 'application/json',
|
|
939
|
+
"accept": 'application/json',
|
|
800
940
|
}
|
|
801
941
|
|
|
802
942
|
@client.call(
|
|
@@ -812,7 +952,7 @@ module Appwrite
|
|
|
812
952
|
# Update the project OAuth2 Discord configuration.
|
|
813
953
|
#
|
|
814
954
|
# @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:
|
|
955
|
+
# @param [String] client_secret 'Client Secret' of Discord OAuth2 app. For example: YmPXnM000000000000000000002zFg5D
|
|
816
956
|
# @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
957
|
#
|
|
818
958
|
# @return [OAuth2Discord]
|
|
@@ -826,7 +966,9 @@ module Appwrite
|
|
|
826
966
|
}
|
|
827
967
|
|
|
828
968
|
api_headers = {
|
|
969
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
829
970
|
"content-type": 'application/json',
|
|
971
|
+
"accept": 'application/json',
|
|
830
972
|
}
|
|
831
973
|
|
|
832
974
|
@client.call(
|
|
@@ -842,7 +984,7 @@ module Appwrite
|
|
|
842
984
|
# Update the project OAuth2 Disqus configuration.
|
|
843
985
|
#
|
|
844
986
|
# @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:
|
|
987
|
+
# @param [String] secret_key 'Secret Key, also known as API Secret' of Disqus OAuth2 app. For example: W7Bykj00000000000000000000000000000000000000000000000000003o43w9
|
|
846
988
|
# @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
989
|
#
|
|
848
990
|
# @return [OAuth2Disqus]
|
|
@@ -856,7 +998,9 @@ module Appwrite
|
|
|
856
998
|
}
|
|
857
999
|
|
|
858
1000
|
api_headers = {
|
|
1001
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
859
1002
|
"content-type": 'application/json',
|
|
1003
|
+
"accept": 'application/json',
|
|
860
1004
|
}
|
|
861
1005
|
|
|
862
1006
|
@client.call(
|
|
@@ -872,7 +1016,7 @@ module Appwrite
|
|
|
872
1016
|
# Update the project OAuth2 Dropbox configuration.
|
|
873
1017
|
#
|
|
874
1018
|
# @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:
|
|
1019
|
+
# @param [String] app_secret 'App Secret' of Dropbox OAuth2 app. For example: g200000000000vw
|
|
876
1020
|
# @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
1021
|
#
|
|
878
1022
|
# @return [OAuth2Dropbox]
|
|
@@ -886,7 +1030,9 @@ module Appwrite
|
|
|
886
1030
|
}
|
|
887
1031
|
|
|
888
1032
|
api_headers = {
|
|
1033
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
889
1034
|
"content-type": 'application/json',
|
|
1035
|
+
"accept": 'application/json',
|
|
890
1036
|
}
|
|
891
1037
|
|
|
892
1038
|
@client.call(
|
|
@@ -902,7 +1048,7 @@ module Appwrite
|
|
|
902
1048
|
# Update the project OAuth2 Etsy configuration.
|
|
903
1049
|
#
|
|
904
1050
|
# @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:
|
|
1051
|
+
# @param [String] shared_secret 'Shared Secret' of Etsy OAuth2 app. For example: tp000000ru
|
|
906
1052
|
# @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
1053
|
#
|
|
908
1054
|
# @return [OAuth2Etsy]
|
|
@@ -916,7 +1062,9 @@ module Appwrite
|
|
|
916
1062
|
}
|
|
917
1063
|
|
|
918
1064
|
api_headers = {
|
|
1065
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
919
1066
|
"content-type": 'application/json',
|
|
1067
|
+
"accept": 'application/json',
|
|
920
1068
|
}
|
|
921
1069
|
|
|
922
1070
|
@client.call(
|
|
@@ -932,7 +1080,7 @@ module Appwrite
|
|
|
932
1080
|
# Update the project OAuth2 Facebook configuration.
|
|
933
1081
|
#
|
|
934
1082
|
# @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:
|
|
1083
|
+
# @param [String] app_secret 'App Secret' of Facebook OAuth2 app. For example: 2d0b2800000000000000000000d38af4
|
|
936
1084
|
# @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
1085
|
#
|
|
938
1086
|
# @return [OAuth2Facebook]
|
|
@@ -946,7 +1094,9 @@ module Appwrite
|
|
|
946
1094
|
}
|
|
947
1095
|
|
|
948
1096
|
api_headers = {
|
|
1097
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
949
1098
|
"content-type": 'application/json',
|
|
1099
|
+
"accept": 'application/json',
|
|
950
1100
|
}
|
|
951
1101
|
|
|
952
1102
|
@client.call(
|
|
@@ -962,7 +1112,7 @@ module Appwrite
|
|
|
962
1112
|
# Update the project OAuth2 Figma configuration.
|
|
963
1113
|
#
|
|
964
1114
|
# @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:
|
|
1115
|
+
# @param [String] client_secret 'Client Secret' of Figma OAuth2 app. For example: yEpOYn0000000000000000004iIsU5
|
|
966
1116
|
# @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
1117
|
#
|
|
968
1118
|
# @return [OAuth2Figma]
|
|
@@ -976,7 +1126,9 @@ module Appwrite
|
|
|
976
1126
|
}
|
|
977
1127
|
|
|
978
1128
|
api_headers = {
|
|
1129
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
979
1130
|
"content-type": 'application/json',
|
|
1131
|
+
"accept": 'application/json',
|
|
980
1132
|
}
|
|
981
1133
|
|
|
982
1134
|
@client.call(
|
|
@@ -992,7 +1144,7 @@ module Appwrite
|
|
|
992
1144
|
# Update the project OAuth2 FusionAuth configuration.
|
|
993
1145
|
#
|
|
994
1146
|
# @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:
|
|
1147
|
+
# @param [String] client_secret 'Client Secret' of FusionAuth OAuth2 app. For example: Jx4s0C0000000000000000000000000000000wGqLsc
|
|
996
1148
|
# @param [String] endpoint Domain of FusionAuth instance. For example: example.fusionauth.io
|
|
997
1149
|
# @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
1150
|
#
|
|
@@ -1008,7 +1160,9 @@ module Appwrite
|
|
|
1008
1160
|
}
|
|
1009
1161
|
|
|
1010
1162
|
api_headers = {
|
|
1163
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1011
1164
|
"content-type": 'application/json',
|
|
1165
|
+
"accept": 'application/json',
|
|
1012
1166
|
}
|
|
1013
1167
|
|
|
1014
1168
|
@client.call(
|
|
@@ -1024,7 +1178,7 @@ module Appwrite
|
|
|
1024
1178
|
# Update the project OAuth2 GitHub configuration.
|
|
1025
1179
|
#
|
|
1026
1180
|
# @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:
|
|
1181
|
+
# @param [String] client_secret 'Client Secret' of GitHub OAuth2 app. For example: 5e07c00000000000000000000000000000198bcc
|
|
1028
1182
|
# @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
1183
|
#
|
|
1030
1184
|
# @return [OAuth2Github]
|
|
@@ -1038,7 +1192,9 @@ module Appwrite
|
|
|
1038
1192
|
}
|
|
1039
1193
|
|
|
1040
1194
|
api_headers = {
|
|
1195
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1041
1196
|
"content-type": 'application/json',
|
|
1197
|
+
"accept": 'application/json',
|
|
1042
1198
|
}
|
|
1043
1199
|
|
|
1044
1200
|
@client.call(
|
|
@@ -1054,7 +1210,7 @@ module Appwrite
|
|
|
1054
1210
|
# Update the project OAuth2 Gitlab configuration.
|
|
1055
1211
|
#
|
|
1056
1212
|
# @param [String] application_id 'Application ID' of Gitlab OAuth2 app. For example: d41ffe0000000000000000000000000000000000000000000000000000d5e252
|
|
1057
|
-
# @param [String] secret 'Secret' of Gitlab OAuth2 app. For example:
|
|
1213
|
+
# @param [String] secret 'Secret' of Gitlab OAuth2 app. For example: gloas-838cfa0000000000000000000000000000000000000000000000000000ecbb38
|
|
1058
1214
|
# @param [String] endpoint Endpoint URL of self-hosted GitLab instance. For example: https://gitlab.com
|
|
1059
1215
|
# @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
1216
|
#
|
|
@@ -1070,7 +1226,9 @@ module Appwrite
|
|
|
1070
1226
|
}
|
|
1071
1227
|
|
|
1072
1228
|
api_headers = {
|
|
1229
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1073
1230
|
"content-type": 'application/json',
|
|
1231
|
+
"accept": 'application/json',
|
|
1074
1232
|
}
|
|
1075
1233
|
|
|
1076
1234
|
@client.call(
|
|
@@ -1086,7 +1244,7 @@ module Appwrite
|
|
|
1086
1244
|
# Update the project OAuth2 Google configuration.
|
|
1087
1245
|
#
|
|
1088
1246
|
# @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:
|
|
1247
|
+
# @param [String] client_secret 'Client Secret' of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj
|
|
1090
1248
|
# @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
1249
|
# @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
1250
|
#
|
|
@@ -1102,7 +1260,9 @@ module Appwrite
|
|
|
1102
1260
|
}
|
|
1103
1261
|
|
|
1104
1262
|
api_headers = {
|
|
1263
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1105
1264
|
"content-type": 'application/json',
|
|
1265
|
+
"accept": 'application/json',
|
|
1106
1266
|
}
|
|
1107
1267
|
|
|
1108
1268
|
@client.call(
|
|
@@ -1118,7 +1278,7 @@ module Appwrite
|
|
|
1118
1278
|
# Update the project OAuth2 Keycloak configuration.
|
|
1119
1279
|
#
|
|
1120
1280
|
# @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:
|
|
1281
|
+
# @param [String] client_secret 'Client Secret' of Keycloak OAuth2 app. For example: jdjrJd00000000000000000000HUsaZO
|
|
1122
1282
|
# @param [String] endpoint Domain of Keycloak instance. For example: keycloak.example.com
|
|
1123
1283
|
# @param [String] realm_name Keycloak realm name. For example: appwrite-realm
|
|
1124
1284
|
# @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.
|
|
@@ -1136,7 +1296,9 @@ module Appwrite
|
|
|
1136
1296
|
}
|
|
1137
1297
|
|
|
1138
1298
|
api_headers = {
|
|
1299
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1139
1300
|
"content-type": 'application/json',
|
|
1301
|
+
"accept": 'application/json',
|
|
1140
1302
|
}
|
|
1141
1303
|
|
|
1142
1304
|
@client.call(
|
|
@@ -1152,7 +1314,7 @@ module Appwrite
|
|
|
1152
1314
|
# Update the project OAuth2 Kick configuration.
|
|
1153
1315
|
#
|
|
1154
1316
|
# @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:
|
|
1317
|
+
# @param [String] client_secret 'Client Secret' of Kick OAuth2 app. For example: 34ac5600000000000000000000000000000000000000000000000000e830c8b
|
|
1156
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.
|
|
1157
1319
|
#
|
|
1158
1320
|
# @return [OAuth2Kick]
|
|
@@ -1166,7 +1328,9 @@ module Appwrite
|
|
|
1166
1328
|
}
|
|
1167
1329
|
|
|
1168
1330
|
api_headers = {
|
|
1331
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1169
1332
|
"content-type": 'application/json',
|
|
1333
|
+
"accept": 'application/json',
|
|
1170
1334
|
}
|
|
1171
1335
|
|
|
1172
1336
|
@client.call(
|
|
@@ -1182,7 +1346,7 @@ module Appwrite
|
|
|
1182
1346
|
# Update the project OAuth2 Linkedin configuration.
|
|
1183
1347
|
#
|
|
1184
1348
|
# @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:
|
|
1349
|
+
# @param [String] primary_client_secret 'Primary Client Secret or Secondary Client Secret' of Linkedin OAuth2 app. For example: WPL_AP1.2Bf0000000000000./HtlYw==
|
|
1186
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.
|
|
1187
1351
|
#
|
|
1188
1352
|
# @return [OAuth2Linkedin]
|
|
@@ -1196,7 +1360,9 @@ module Appwrite
|
|
|
1196
1360
|
}
|
|
1197
1361
|
|
|
1198
1362
|
api_headers = {
|
|
1363
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1199
1364
|
"content-type": 'application/json',
|
|
1365
|
+
"accept": 'application/json',
|
|
1200
1366
|
}
|
|
1201
1367
|
|
|
1202
1368
|
@client.call(
|
|
@@ -1212,7 +1378,7 @@ module Appwrite
|
|
|
1212
1378
|
# Update the project OAuth2 Microsoft configuration.
|
|
1213
1379
|
#
|
|
1214
1380
|
# @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:
|
|
1381
|
+
# @param [String] application_secret 'Entra ID Application Secret, also known as Client Secret' of Microsoft OAuth2 app. For example: A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u
|
|
1216
1382
|
# @param [String] tenant Microsoft Entra ID tenant identifier. Use 'common', 'organizations', 'consumers' or a specific tenant ID. For example: common
|
|
1217
1383
|
# @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
1384
|
#
|
|
@@ -1228,7 +1394,9 @@ module Appwrite
|
|
|
1228
1394
|
}
|
|
1229
1395
|
|
|
1230
1396
|
api_headers = {
|
|
1397
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1231
1398
|
"content-type": 'application/json',
|
|
1399
|
+
"accept": 'application/json',
|
|
1232
1400
|
}
|
|
1233
1401
|
|
|
1234
1402
|
@client.call(
|
|
@@ -1244,7 +1412,7 @@ module Appwrite
|
|
|
1244
1412
|
# Update the project OAuth2 Notion configuration.
|
|
1245
1413
|
#
|
|
1246
1414
|
# @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:
|
|
1415
|
+
# @param [String] oauth_client_secret 'OAuth Client Secret' of Notion OAuth2 app. For example: secret_dLUr4b000000000000000000000000000000lFHAa9
|
|
1248
1416
|
# @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
1417
|
#
|
|
1250
1418
|
# @return [OAuth2Notion]
|
|
@@ -1258,7 +1426,9 @@ module Appwrite
|
|
|
1258
1426
|
}
|
|
1259
1427
|
|
|
1260
1428
|
api_headers = {
|
|
1429
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1261
1430
|
"content-type": 'application/json',
|
|
1431
|
+
"accept": 'application/json',
|
|
1262
1432
|
}
|
|
1263
1433
|
|
|
1264
1434
|
@client.call(
|
|
@@ -1274,15 +1444,17 @@ module Appwrite
|
|
|
1274
1444
|
# Update the project OAuth2 Oidc configuration.
|
|
1275
1445
|
#
|
|
1276
1446
|
# @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:
|
|
1447
|
+
# @param [String] client_secret 'Client Secret' of Oidc OAuth2 app. For example: Ah68ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003qpcHV
|
|
1278
1448
|
# @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
1449
|
# @param [String] authorization_url OpenID Connect authorization endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/authorize
|
|
1280
1450
|
# @param [String] token_url OpenID Connect token endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/token
|
|
1281
1451
|
# @param [String] user_info_url OpenID Connect user info endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/userinfo
|
|
1452
|
+
# @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.
|
|
1453
|
+
# @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.
|
|
1282
1454
|
# @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.
|
|
1283
1455
|
#
|
|
1284
1456
|
# @return [OAuth2Oidc]
|
|
1285
|
-
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)
|
|
1457
|
+
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)
|
|
1286
1458
|
api_path = '/project/oauth2/oidc'
|
|
1287
1459
|
|
|
1288
1460
|
api_params = {
|
|
@@ -1292,11 +1464,15 @@ module Appwrite
|
|
|
1292
1464
|
authorizationURL: authorization_url,
|
|
1293
1465
|
tokenURL: token_url,
|
|
1294
1466
|
userInfoURL: user_info_url,
|
|
1467
|
+
prompt: prompt,
|
|
1468
|
+
maxAge: max_age,
|
|
1295
1469
|
enabled: enabled,
|
|
1296
1470
|
}
|
|
1297
1471
|
|
|
1298
1472
|
api_headers = {
|
|
1473
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1299
1474
|
"content-type": 'application/json',
|
|
1475
|
+
"accept": 'application/json',
|
|
1300
1476
|
}
|
|
1301
1477
|
|
|
1302
1478
|
@client.call(
|
|
@@ -1312,7 +1488,7 @@ module Appwrite
|
|
|
1312
1488
|
# Update the project OAuth2 Okta configuration.
|
|
1313
1489
|
#
|
|
1314
1490
|
# @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:
|
|
1491
|
+
# @param [String] client_secret 'Client Secret' of Okta OAuth2 app. For example: Kiq0000000000000000000000000000000000000-00000000000H2L5-3SJ-vRV
|
|
1316
1492
|
# @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
1493
|
# @param [String] authorization_server_id Custom Authorization Servers. Optional, can be left empty or unconfigured. For example: aus000000000000000h7z
|
|
1318
1494
|
# @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.
|
|
@@ -1330,7 +1506,9 @@ module Appwrite
|
|
|
1330
1506
|
}
|
|
1331
1507
|
|
|
1332
1508
|
api_headers = {
|
|
1509
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1333
1510
|
"content-type": 'application/json',
|
|
1511
|
+
"accept": 'application/json',
|
|
1334
1512
|
}
|
|
1335
1513
|
|
|
1336
1514
|
@client.call(
|
|
@@ -1346,7 +1524,7 @@ module Appwrite
|
|
|
1346
1524
|
# Update the project OAuth2 Paypal configuration.
|
|
1347
1525
|
#
|
|
1348
1526
|
# @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:
|
|
1527
|
+
# @param [String] secret_key 'Secret Key 1 or Secret Key 2' of Paypal OAuth2 app. For example: EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp
|
|
1350
1528
|
# @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
1529
|
#
|
|
1352
1530
|
# @return [OAuth2Paypal]
|
|
@@ -1360,7 +1538,9 @@ module Appwrite
|
|
|
1360
1538
|
}
|
|
1361
1539
|
|
|
1362
1540
|
api_headers = {
|
|
1541
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1363
1542
|
"content-type": 'application/json',
|
|
1543
|
+
"accept": 'application/json',
|
|
1364
1544
|
}
|
|
1365
1545
|
|
|
1366
1546
|
@client.call(
|
|
@@ -1376,7 +1556,7 @@ module Appwrite
|
|
|
1376
1556
|
# Update the project OAuth2 PaypalSandbox configuration.
|
|
1377
1557
|
#
|
|
1378
1558
|
# @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:
|
|
1559
|
+
# @param [String] secret_key 'Secret Key 1 or Secret Key 2' of PaypalSandbox OAuth2 app. For example: EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp
|
|
1380
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.
|
|
1381
1561
|
#
|
|
1382
1562
|
# @return [OAuth2Paypal]
|
|
@@ -1390,7 +1570,9 @@ module Appwrite
|
|
|
1390
1570
|
}
|
|
1391
1571
|
|
|
1392
1572
|
api_headers = {
|
|
1573
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1393
1574
|
"content-type": 'application/json',
|
|
1575
|
+
"accept": 'application/json',
|
|
1394
1576
|
}
|
|
1395
1577
|
|
|
1396
1578
|
@client.call(
|
|
@@ -1406,7 +1588,7 @@ module Appwrite
|
|
|
1406
1588
|
# Update the project OAuth2 Podio configuration.
|
|
1407
1589
|
#
|
|
1408
1590
|
# @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:
|
|
1591
|
+
# @param [String] client_secret 'Client Secret' of Podio OAuth2 app. For example: Rn247T0000000000000000000000000000000000000000000000000000W2zWTN
|
|
1410
1592
|
# @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
1593
|
#
|
|
1412
1594
|
# @return [OAuth2Podio]
|
|
@@ -1420,7 +1602,9 @@ module Appwrite
|
|
|
1420
1602
|
}
|
|
1421
1603
|
|
|
1422
1604
|
api_headers = {
|
|
1605
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1423
1606
|
"content-type": 'application/json',
|
|
1607
|
+
"accept": 'application/json',
|
|
1424
1608
|
}
|
|
1425
1609
|
|
|
1426
1610
|
@client.call(
|
|
@@ -1436,7 +1620,7 @@ module Appwrite
|
|
|
1436
1620
|
# Update the project OAuth2 Salesforce configuration.
|
|
1437
1621
|
#
|
|
1438
1622
|
# @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:
|
|
1623
|
+
# @param [String] customer_secret 'Consumer Secret' of Salesforce OAuth2 app. For example: 3w000000000000e2
|
|
1440
1624
|
# @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
1625
|
#
|
|
1442
1626
|
# @return [OAuth2Salesforce]
|
|
@@ -1450,7 +1634,9 @@ module Appwrite
|
|
|
1450
1634
|
}
|
|
1451
1635
|
|
|
1452
1636
|
api_headers = {
|
|
1637
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1453
1638
|
"content-type": 'application/json',
|
|
1639
|
+
"accept": 'application/json',
|
|
1454
1640
|
}
|
|
1455
1641
|
|
|
1456
1642
|
@client.call(
|
|
@@ -1466,7 +1652,7 @@ module Appwrite
|
|
|
1466
1652
|
# Update the project OAuth2 Slack configuration.
|
|
1467
1653
|
#
|
|
1468
1654
|
# @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:
|
|
1655
|
+
# @param [String] client_secret 'Client Secret' of Slack OAuth2 app. For example: 81656000000000000000000000f3d2fd
|
|
1470
1656
|
# @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
1657
|
#
|
|
1472
1658
|
# @return [OAuth2Slack]
|
|
@@ -1480,7 +1666,9 @@ module Appwrite
|
|
|
1480
1666
|
}
|
|
1481
1667
|
|
|
1482
1668
|
api_headers = {
|
|
1669
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1483
1670
|
"content-type": 'application/json',
|
|
1671
|
+
"accept": 'application/json',
|
|
1484
1672
|
}
|
|
1485
1673
|
|
|
1486
1674
|
@client.call(
|
|
@@ -1496,7 +1684,7 @@ module Appwrite
|
|
|
1496
1684
|
# Update the project OAuth2 Spotify configuration.
|
|
1497
1685
|
#
|
|
1498
1686
|
# @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:
|
|
1687
|
+
# @param [String] client_secret 'Client Secret' of Spotify OAuth2 app. For example: db068a000000000000000000008b5b9f
|
|
1500
1688
|
# @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
1689
|
#
|
|
1502
1690
|
# @return [OAuth2Spotify]
|
|
@@ -1510,7 +1698,9 @@ module Appwrite
|
|
|
1510
1698
|
}
|
|
1511
1699
|
|
|
1512
1700
|
api_headers = {
|
|
1701
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1513
1702
|
"content-type": 'application/json',
|
|
1703
|
+
"accept": 'application/json',
|
|
1514
1704
|
}
|
|
1515
1705
|
|
|
1516
1706
|
@client.call(
|
|
@@ -1526,7 +1716,7 @@ module Appwrite
|
|
|
1526
1716
|
# Update the project OAuth2 Stripe configuration.
|
|
1527
1717
|
#
|
|
1528
1718
|
# @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:
|
|
1719
|
+
# @param [String] api_secret_key 'API Secret Key' of Stripe OAuth2 app. For example: sk_51SfOd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000QGWYfp
|
|
1530
1720
|
# @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
1721
|
#
|
|
1532
1722
|
# @return [OAuth2Stripe]
|
|
@@ -1540,7 +1730,9 @@ module Appwrite
|
|
|
1540
1730
|
}
|
|
1541
1731
|
|
|
1542
1732
|
api_headers = {
|
|
1733
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1543
1734
|
"content-type": 'application/json',
|
|
1735
|
+
"accept": 'application/json',
|
|
1544
1736
|
}
|
|
1545
1737
|
|
|
1546
1738
|
@client.call(
|
|
@@ -1556,7 +1748,7 @@ module Appwrite
|
|
|
1556
1748
|
# Update the project OAuth2 Tradeshift configuration.
|
|
1557
1749
|
#
|
|
1558
1750
|
# @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:
|
|
1751
|
+
# @param [String] oauth2_client_secret 'OAuth2 Client Secret' of Tradeshift OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83
|
|
1560
1752
|
# @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
1753
|
#
|
|
1562
1754
|
# @return [OAuth2Tradeshift]
|
|
@@ -1570,7 +1762,9 @@ module Appwrite
|
|
|
1570
1762
|
}
|
|
1571
1763
|
|
|
1572
1764
|
api_headers = {
|
|
1765
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1573
1766
|
"content-type": 'application/json',
|
|
1767
|
+
"accept": 'application/json',
|
|
1574
1768
|
}
|
|
1575
1769
|
|
|
1576
1770
|
@client.call(
|
|
@@ -1586,7 +1780,7 @@ module Appwrite
|
|
|
1586
1780
|
# Update the project OAuth2 Tradeshift Sandbox configuration.
|
|
1587
1781
|
#
|
|
1588
1782
|
# @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:
|
|
1783
|
+
# @param [String] oauth2_client_secret 'OAuth2 Client Secret' of Tradeshift Sandbox OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83
|
|
1590
1784
|
# @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
1785
|
#
|
|
1592
1786
|
# @return [OAuth2Tradeshift]
|
|
@@ -1600,7 +1794,9 @@ module Appwrite
|
|
|
1600
1794
|
}
|
|
1601
1795
|
|
|
1602
1796
|
api_headers = {
|
|
1797
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1603
1798
|
"content-type": 'application/json',
|
|
1799
|
+
"accept": 'application/json',
|
|
1604
1800
|
}
|
|
1605
1801
|
|
|
1606
1802
|
@client.call(
|
|
@@ -1616,7 +1812,7 @@ module Appwrite
|
|
|
1616
1812
|
# Update the project OAuth2 Twitch configuration.
|
|
1617
1813
|
#
|
|
1618
1814
|
# @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:
|
|
1815
|
+
# @param [String] client_secret 'Client Secret' of Twitch OAuth2 app. For example: pmapue000000000000000000zylw3v
|
|
1620
1816
|
# @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
1817
|
#
|
|
1622
1818
|
# @return [OAuth2Twitch]
|
|
@@ -1630,7 +1826,9 @@ module Appwrite
|
|
|
1630
1826
|
}
|
|
1631
1827
|
|
|
1632
1828
|
api_headers = {
|
|
1829
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1633
1830
|
"content-type": 'application/json',
|
|
1831
|
+
"accept": 'application/json',
|
|
1634
1832
|
}
|
|
1635
1833
|
|
|
1636
1834
|
@client.call(
|
|
@@ -1646,7 +1844,7 @@ module Appwrite
|
|
|
1646
1844
|
# Update the project OAuth2 WordPress configuration.
|
|
1647
1845
|
#
|
|
1648
1846
|
# @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:
|
|
1847
|
+
# @param [String] client_secret 'Client Secret' of WordPress OAuth2 app. For example: PlBfJS0000000000000000000000000000000000000000000000000000EdUZJk
|
|
1650
1848
|
# @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
1849
|
#
|
|
1652
1850
|
# @return [OAuth2WordPress]
|
|
@@ -1660,7 +1858,9 @@ module Appwrite
|
|
|
1660
1858
|
}
|
|
1661
1859
|
|
|
1662
1860
|
api_headers = {
|
|
1861
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1663
1862
|
"content-type": 'application/json',
|
|
1863
|
+
"accept": 'application/json',
|
|
1664
1864
|
}
|
|
1665
1865
|
|
|
1666
1866
|
@client.call(
|
|
@@ -1676,7 +1876,7 @@ module Appwrite
|
|
|
1676
1876
|
# Update the project OAuth2 X configuration.
|
|
1677
1877
|
#
|
|
1678
1878
|
# @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:
|
|
1879
|
+
# @param [String] secret_key 'Secret Key' of X OAuth2 app. For example: tkEPkp00000000000000000000000000000000000000FTxbI9
|
|
1680
1880
|
# @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
1881
|
#
|
|
1682
1882
|
# @return [OAuth2X]
|
|
@@ -1690,7 +1890,9 @@ module Appwrite
|
|
|
1690
1890
|
}
|
|
1691
1891
|
|
|
1692
1892
|
api_headers = {
|
|
1893
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1693
1894
|
"content-type": 'application/json',
|
|
1895
|
+
"accept": 'application/json',
|
|
1694
1896
|
}
|
|
1695
1897
|
|
|
1696
1898
|
@client.call(
|
|
@@ -1706,7 +1908,7 @@ module Appwrite
|
|
|
1706
1908
|
# Update the project OAuth2 Yahoo configuration.
|
|
1707
1909
|
#
|
|
1708
1910
|
# @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:
|
|
1911
|
+
# @param [String] client_secret 'Client Secret, also known as Customer Secret' of Yahoo OAuth2 app. For example: cf978f0000000000000000000000000000c5e2e9
|
|
1710
1912
|
# @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
1913
|
#
|
|
1712
1914
|
# @return [OAuth2Yahoo]
|
|
@@ -1720,7 +1922,9 @@ module Appwrite
|
|
|
1720
1922
|
}
|
|
1721
1923
|
|
|
1722
1924
|
api_headers = {
|
|
1925
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1723
1926
|
"content-type": 'application/json',
|
|
1927
|
+
"accept": 'application/json',
|
|
1724
1928
|
}
|
|
1725
1929
|
|
|
1726
1930
|
@client.call(
|
|
@@ -1736,7 +1940,7 @@ module Appwrite
|
|
|
1736
1940
|
# Update the project OAuth2 Yandex configuration.
|
|
1737
1941
|
#
|
|
1738
1942
|
# @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:
|
|
1943
|
+
# @param [String] client_secret 'Client Secret' of Yandex OAuth2 app. For example: bbf98500000000000000000000c75a63
|
|
1740
1944
|
# @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
1945
|
#
|
|
1742
1946
|
# @return [OAuth2Yandex]
|
|
@@ -1750,7 +1954,9 @@ module Appwrite
|
|
|
1750
1954
|
}
|
|
1751
1955
|
|
|
1752
1956
|
api_headers = {
|
|
1957
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1753
1958
|
"content-type": 'application/json',
|
|
1959
|
+
"accept": 'application/json',
|
|
1754
1960
|
}
|
|
1755
1961
|
|
|
1756
1962
|
@client.call(
|
|
@@ -1766,7 +1972,7 @@ module Appwrite
|
|
|
1766
1972
|
# Update the project OAuth2 Zoho configuration.
|
|
1767
1973
|
#
|
|
1768
1974
|
# @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:
|
|
1975
|
+
# @param [String] client_secret 'Client Secret' of Zoho OAuth2 app. For example: fb5cac000000000000000000000000000000a68f6e
|
|
1770
1976
|
# @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
1977
|
#
|
|
1772
1978
|
# @return [OAuth2Zoho]
|
|
@@ -1780,7 +1986,9 @@ module Appwrite
|
|
|
1780
1986
|
}
|
|
1781
1987
|
|
|
1782
1988
|
api_headers = {
|
|
1989
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1783
1990
|
"content-type": 'application/json',
|
|
1991
|
+
"accept": 'application/json',
|
|
1784
1992
|
}
|
|
1785
1993
|
|
|
1786
1994
|
@client.call(
|
|
@@ -1796,7 +2004,7 @@ module Appwrite
|
|
|
1796
2004
|
# Update the project OAuth2 Zoom configuration.
|
|
1797
2005
|
#
|
|
1798
2006
|
# @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:
|
|
2007
|
+
# @param [String] client_secret 'Client Secret' of Zoom OAuth2 app. For example: GAWsG4000000000000000000007U01ON
|
|
1800
2008
|
# @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
2009
|
#
|
|
1802
2010
|
# @return [OAuth2Zoom]
|
|
@@ -1810,7 +2018,9 @@ module Appwrite
|
|
|
1810
2018
|
}
|
|
1811
2019
|
|
|
1812
2020
|
api_headers = {
|
|
2021
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1813
2022
|
"content-type": 'application/json',
|
|
2023
|
+
"accept": 'application/json',
|
|
1814
2024
|
}
|
|
1815
2025
|
|
|
1816
2026
|
@client.call(
|
|
@@ -1841,6 +2051,8 @@ module Appwrite
|
|
|
1841
2051
|
}
|
|
1842
2052
|
|
|
1843
2053
|
api_headers = {
|
|
2054
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2055
|
+
"accept": 'application/json',
|
|
1844
2056
|
}
|
|
1845
2057
|
|
|
1846
2058
|
response = @client.call(
|
|
@@ -2074,6 +2286,8 @@ module Appwrite
|
|
|
2074
2286
|
}
|
|
2075
2287
|
|
|
2076
2288
|
api_headers = {
|
|
2289
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2290
|
+
"accept": 'application/json',
|
|
2077
2291
|
}
|
|
2078
2292
|
|
|
2079
2293
|
@client.call(
|
|
@@ -2117,7 +2331,9 @@ module Appwrite
|
|
|
2117
2331
|
}
|
|
2118
2332
|
|
|
2119
2333
|
api_headers = {
|
|
2334
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2120
2335
|
"content-type": 'application/json',
|
|
2336
|
+
"accept": 'application/json',
|
|
2121
2337
|
}
|
|
2122
2338
|
|
|
2123
2339
|
@client.call(
|
|
@@ -2160,7 +2376,9 @@ module Appwrite
|
|
|
2160
2376
|
}
|
|
2161
2377
|
|
|
2162
2378
|
api_headers = {
|
|
2379
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2163
2380
|
"content-type": 'application/json',
|
|
2381
|
+
"accept": 'application/json',
|
|
2164
2382
|
}
|
|
2165
2383
|
|
|
2166
2384
|
@client.call(
|
|
@@ -2204,7 +2422,9 @@ module Appwrite
|
|
|
2204
2422
|
}
|
|
2205
2423
|
|
|
2206
2424
|
api_headers = {
|
|
2425
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2207
2426
|
"content-type": 'application/json',
|
|
2427
|
+
"accept": 'application/json',
|
|
2208
2428
|
}
|
|
2209
2429
|
|
|
2210
2430
|
@client.call(
|
|
@@ -2247,7 +2467,9 @@ module Appwrite
|
|
|
2247
2467
|
}
|
|
2248
2468
|
|
|
2249
2469
|
api_headers = {
|
|
2470
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2250
2471
|
"content-type": 'application/json',
|
|
2472
|
+
"accept": 'application/json',
|
|
2251
2473
|
}
|
|
2252
2474
|
|
|
2253
2475
|
@client.call(
|
|
@@ -2291,7 +2513,9 @@ module Appwrite
|
|
|
2291
2513
|
}
|
|
2292
2514
|
|
|
2293
2515
|
api_headers = {
|
|
2516
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2294
2517
|
"content-type": 'application/json',
|
|
2518
|
+
"accept": 'application/json',
|
|
2295
2519
|
}
|
|
2296
2520
|
|
|
2297
2521
|
@client.call(
|
|
@@ -2334,7 +2558,9 @@ module Appwrite
|
|
|
2334
2558
|
}
|
|
2335
2559
|
|
|
2336
2560
|
api_headers = {
|
|
2561
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2337
2562
|
"content-type": 'application/json',
|
|
2563
|
+
"accept": 'application/json',
|
|
2338
2564
|
}
|
|
2339
2565
|
|
|
2340
2566
|
@client.call(
|
|
@@ -2378,7 +2604,9 @@ module Appwrite
|
|
|
2378
2604
|
}
|
|
2379
2605
|
|
|
2380
2606
|
api_headers = {
|
|
2607
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2381
2608
|
"content-type": 'application/json',
|
|
2609
|
+
"accept": 'application/json',
|
|
2382
2610
|
}
|
|
2383
2611
|
|
|
2384
2612
|
@client.call(
|
|
@@ -2421,7 +2649,9 @@ module Appwrite
|
|
|
2421
2649
|
}
|
|
2422
2650
|
|
|
2423
2651
|
api_headers = {
|
|
2652
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2424
2653
|
"content-type": 'application/json',
|
|
2654
|
+
"accept": 'application/json',
|
|
2425
2655
|
}
|
|
2426
2656
|
|
|
2427
2657
|
@client.call(
|
|
@@ -2465,7 +2695,9 @@ module Appwrite
|
|
|
2465
2695
|
}
|
|
2466
2696
|
|
|
2467
2697
|
api_headers = {
|
|
2698
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2468
2699
|
"content-type": 'application/json',
|
|
2700
|
+
"accept": 'application/json',
|
|
2469
2701
|
}
|
|
2470
2702
|
|
|
2471
2703
|
@client.call(
|
|
@@ -2508,7 +2740,9 @@ module Appwrite
|
|
|
2508
2740
|
}
|
|
2509
2741
|
|
|
2510
2742
|
api_headers = {
|
|
2743
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2511
2744
|
"content-type": 'application/json',
|
|
2745
|
+
"accept": 'application/json',
|
|
2512
2746
|
}
|
|
2513
2747
|
|
|
2514
2748
|
@client.call(
|
|
@@ -2539,6 +2773,8 @@ module Appwrite
|
|
|
2539
2773
|
}
|
|
2540
2774
|
|
|
2541
2775
|
api_headers = {
|
|
2776
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2777
|
+
"accept": 'application/json',
|
|
2542
2778
|
}
|
|
2543
2779
|
|
|
2544
2780
|
response = @client.call(
|
|
@@ -2599,6 +2835,7 @@ module Appwrite
|
|
|
2599
2835
|
}
|
|
2600
2836
|
|
|
2601
2837
|
api_headers = {
|
|
2838
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2602
2839
|
"content-type": 'application/json',
|
|
2603
2840
|
}
|
|
2604
2841
|
|
|
@@ -2626,6 +2863,8 @@ module Appwrite
|
|
|
2626
2863
|
}
|
|
2627
2864
|
|
|
2628
2865
|
api_headers = {
|
|
2866
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2867
|
+
"accept": 'application/json',
|
|
2629
2868
|
}
|
|
2630
2869
|
|
|
2631
2870
|
@client.call(
|
|
@@ -2656,7 +2895,42 @@ module Appwrite
|
|
|
2656
2895
|
}
|
|
2657
2896
|
|
|
2658
2897
|
api_headers = {
|
|
2898
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2659
2899
|
"content-type": 'application/json',
|
|
2900
|
+
"accept": 'application/json',
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
@client.call(
|
|
2904
|
+
method: 'PATCH',
|
|
2905
|
+
path: api_path,
|
|
2906
|
+
headers: api_headers,
|
|
2907
|
+
params: api_params,
|
|
2908
|
+
response_type: Models::Project
|
|
2909
|
+
)
|
|
2910
|
+
|
|
2911
|
+
end
|
|
2912
|
+
|
|
2913
|
+
# Configures if only corporate email addresses (non-free and non-disposable
|
|
2914
|
+
# domains) are allowed during new user sign-ups and email updates.
|
|
2915
|
+
#
|
|
2916
|
+
# @param [] enabled Set whether or not to restrict sign-ups and email updates to corporate email addresses only.
|
|
2917
|
+
#
|
|
2918
|
+
# @return [Project]
|
|
2919
|
+
def update_deny_corporate_email_policy(enabled:)
|
|
2920
|
+
api_path = '/project/policies/deny-corporate-email'
|
|
2921
|
+
|
|
2922
|
+
if enabled.nil?
|
|
2923
|
+
raise Appwrite::Exception.new('Missing required parameter: "enabled"')
|
|
2924
|
+
end
|
|
2925
|
+
|
|
2926
|
+
api_params = {
|
|
2927
|
+
enabled: enabled,
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
api_headers = {
|
|
2931
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2932
|
+
"content-type": 'application/json',
|
|
2933
|
+
"accept": 'application/json',
|
|
2660
2934
|
}
|
|
2661
2935
|
|
|
2662
2936
|
@client.call(
|
|
@@ -2687,7 +2961,9 @@ module Appwrite
|
|
|
2687
2961
|
}
|
|
2688
2962
|
|
|
2689
2963
|
api_headers = {
|
|
2964
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2690
2965
|
"content-type": 'application/json',
|
|
2966
|
+
"accept": 'application/json',
|
|
2691
2967
|
}
|
|
2692
2968
|
|
|
2693
2969
|
@client.call(
|
|
@@ -2718,7 +2994,9 @@ module Appwrite
|
|
|
2718
2994
|
}
|
|
2719
2995
|
|
|
2720
2996
|
api_headers = {
|
|
2997
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2721
2998
|
"content-type": 'application/json',
|
|
2999
|
+
"accept": 'application/json',
|
|
2722
3000
|
}
|
|
2723
3001
|
|
|
2724
3002
|
@client.call(
|
|
@@ -2740,9 +3018,10 @@ module Appwrite
|
|
|
2740
3018
|
# @param [] user_phone Set to true if you want make user phone number visible to all team members, or false to hide it.
|
|
2741
3019
|
# @param [] user_name Set to true if you want make user name visible to all team members, or false to hide it.
|
|
2742
3020
|
# @param [] user_mfa Set to true if you want make user MFA status visible to all team members, or false to hide it.
|
|
3021
|
+
# @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.
|
|
2743
3022
|
#
|
|
2744
3023
|
# @return [Project]
|
|
2745
|
-
def update_membership_privacy_policy(user_id: nil, user_email: nil, user_phone: nil, user_name: nil, user_mfa: nil)
|
|
3024
|
+
def update_membership_privacy_policy(user_id: nil, user_email: nil, user_phone: nil, user_name: nil, user_mfa: nil, user_accessed_at: nil)
|
|
2746
3025
|
api_path = '/project/policies/membership-privacy'
|
|
2747
3026
|
|
|
2748
3027
|
api_params = {
|
|
@@ -2751,10 +3030,13 @@ module Appwrite
|
|
|
2751
3030
|
userPhone: user_phone,
|
|
2752
3031
|
userName: user_name,
|
|
2753
3032
|
userMFA: user_mfa,
|
|
3033
|
+
userAccessedAt: user_accessed_at,
|
|
2754
3034
|
}
|
|
2755
3035
|
|
|
2756
3036
|
api_headers = {
|
|
3037
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2757
3038
|
"content-type": 'application/json',
|
|
3039
|
+
"accept": 'application/json',
|
|
2758
3040
|
}
|
|
2759
3041
|
|
|
2760
3042
|
@client.call(
|
|
@@ -2786,7 +3068,9 @@ module Appwrite
|
|
|
2786
3068
|
}
|
|
2787
3069
|
|
|
2788
3070
|
api_headers = {
|
|
3071
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2789
3072
|
"content-type": 'application/json',
|
|
3073
|
+
"accept": 'application/json',
|
|
2790
3074
|
}
|
|
2791
3075
|
|
|
2792
3076
|
@client.call(
|
|
@@ -2824,7 +3108,9 @@ module Appwrite
|
|
|
2824
3108
|
}
|
|
2825
3109
|
|
|
2826
3110
|
api_headers = {
|
|
3111
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2827
3112
|
"content-type": 'application/json',
|
|
3113
|
+
"accept": 'application/json',
|
|
2828
3114
|
}
|
|
2829
3115
|
|
|
2830
3116
|
@client.call(
|
|
@@ -2857,7 +3143,9 @@ module Appwrite
|
|
|
2857
3143
|
}
|
|
2858
3144
|
|
|
2859
3145
|
api_headers = {
|
|
3146
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2860
3147
|
"content-type": 'application/json',
|
|
3148
|
+
"accept": 'application/json',
|
|
2861
3149
|
}
|
|
2862
3150
|
|
|
2863
3151
|
@client.call(
|
|
@@ -2870,6 +3158,42 @@ module Appwrite
|
|
|
2870
3158
|
|
|
2871
3159
|
end
|
|
2872
3160
|
|
|
3161
|
+
# Update the password strength requirements for users in the project.
|
|
3162
|
+
#
|
|
3163
|
+
# @param [Integer] min Minimum password length. Value must be between 8 and 256. Default is 8.
|
|
3164
|
+
# @param [] uppercase Whether passwords must include at least one uppercase letter.
|
|
3165
|
+
# @param [] lowercase Whether passwords must include at least one lowercase letter.
|
|
3166
|
+
# @param [] number Whether passwords must include at least one number.
|
|
3167
|
+
# @param [] symbols Whether passwords must include at least one symbol.
|
|
3168
|
+
#
|
|
3169
|
+
# @return [PolicyPasswordStrength]
|
|
3170
|
+
def update_password_strength_policy(min: nil, uppercase: nil, lowercase: nil, number: nil, symbols: nil)
|
|
3171
|
+
api_path = '/project/policies/password-strength'
|
|
3172
|
+
|
|
3173
|
+
api_params = {
|
|
3174
|
+
min: min,
|
|
3175
|
+
uppercase: uppercase,
|
|
3176
|
+
lowercase: lowercase,
|
|
3177
|
+
number: number,
|
|
3178
|
+
symbols: symbols,
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
api_headers = {
|
|
3182
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3183
|
+
"content-type": 'application/json',
|
|
3184
|
+
"accept": 'application/json',
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
@client.call(
|
|
3188
|
+
method: 'PATCH',
|
|
3189
|
+
path: api_path,
|
|
3190
|
+
headers: api_headers,
|
|
3191
|
+
params: api_params,
|
|
3192
|
+
response_type: Models::PolicyPasswordStrength
|
|
3193
|
+
)
|
|
3194
|
+
|
|
3195
|
+
end
|
|
3196
|
+
|
|
2873
3197
|
# Updating this policy allows you to control if email alert is sent upon
|
|
2874
3198
|
# session creation. When enabled, and user signs into their account, they
|
|
2875
3199
|
# will be sent an email notification. There is an exception, the first
|
|
@@ -2891,7 +3215,9 @@ module Appwrite
|
|
|
2891
3215
|
}
|
|
2892
3216
|
|
|
2893
3217
|
api_headers = {
|
|
3218
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2894
3219
|
"content-type": 'application/json',
|
|
3220
|
+
"accept": 'application/json',
|
|
2895
3221
|
}
|
|
2896
3222
|
|
|
2897
3223
|
@client.call(
|
|
@@ -2922,7 +3248,9 @@ module Appwrite
|
|
|
2922
3248
|
}
|
|
2923
3249
|
|
|
2924
3250
|
api_headers = {
|
|
3251
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2925
3252
|
"content-type": 'application/json',
|
|
3253
|
+
"accept": 'application/json',
|
|
2926
3254
|
}
|
|
2927
3255
|
|
|
2928
3256
|
@client.call(
|
|
@@ -2954,7 +3282,9 @@ module Appwrite
|
|
|
2954
3282
|
}
|
|
2955
3283
|
|
|
2956
3284
|
api_headers = {
|
|
3285
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2957
3286
|
"content-type": 'application/json',
|
|
3287
|
+
"accept": 'application/json',
|
|
2958
3288
|
}
|
|
2959
3289
|
|
|
2960
3290
|
@client.call(
|
|
@@ -2985,7 +3315,9 @@ module Appwrite
|
|
|
2985
3315
|
}
|
|
2986
3316
|
|
|
2987
3317
|
api_headers = {
|
|
3318
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
2988
3319
|
"content-type": 'application/json',
|
|
3320
|
+
"accept": 'application/json',
|
|
2989
3321
|
}
|
|
2990
3322
|
|
|
2991
3323
|
@client.call(
|
|
@@ -3017,7 +3349,9 @@ module Appwrite
|
|
|
3017
3349
|
}
|
|
3018
3350
|
|
|
3019
3351
|
api_headers = {
|
|
3352
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3020
3353
|
"content-type": 'application/json',
|
|
3354
|
+
"accept": 'application/json',
|
|
3021
3355
|
}
|
|
3022
3356
|
|
|
3023
3357
|
@client.call(
|
|
@@ -3033,9 +3367,9 @@ module Appwrite
|
|
|
3033
3367
|
# Get a policy by its unique ID. This endpoint returns the current
|
|
3034
3368
|
# configuration for the requested project policy.
|
|
3035
3369
|
#
|
|
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.
|
|
3370
|
+
# @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.
|
|
3037
3371
|
#
|
|
3038
|
-
# @return [PolicyPasswordDictionary, PolicyPasswordHistory, PolicyPasswordPersonalData, PolicySessionAlert, PolicySessionDuration, PolicySessionInvalidation, PolicySessionLimit, PolicyUserLimit, PolicyMembershipPrivacy, PolicyDenyAliasedEmail, PolicyDenyDisposableEmail, PolicyDenyFreeEmail]
|
|
3372
|
+
# @return [PolicyPasswordDictionary, PolicyPasswordHistory, PolicyPasswordStrength, PolicyPasswordPersonalData, PolicySessionAlert, PolicySessionDuration, PolicySessionInvalidation, PolicySessionLimit, PolicyUserLimit, PolicyMembershipPrivacy, PolicyDenyAliasedEmail, PolicyDenyDisposableEmail, PolicyDenyFreeEmail, PolicyDenyCorporateEmail]
|
|
3039
3373
|
def get_policy(policy_id:)
|
|
3040
3374
|
api_path = '/project/policies/{policyId}'
|
|
3041
3375
|
.gsub('{policyId}', policy_id)
|
|
@@ -3048,6 +3382,8 @@ module Appwrite
|
|
|
3048
3382
|
}
|
|
3049
3383
|
|
|
3050
3384
|
api_headers = {
|
|
3385
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3386
|
+
"accept": 'application/json',
|
|
3051
3387
|
}
|
|
3052
3388
|
|
|
3053
3389
|
response = @client.call(
|
|
@@ -3071,6 +3407,11 @@ module Appwrite
|
|
|
3071
3407
|
return Models::PolicyPasswordHistory.from(map: response)
|
|
3072
3408
|
end
|
|
3073
3409
|
|
|
3410
|
+
if response['$id'] == 'password-strength'
|
|
3411
|
+
|
|
3412
|
+
return Models::PolicyPasswordStrength.from(map: response)
|
|
3413
|
+
end
|
|
3414
|
+
|
|
3074
3415
|
if response['$id'] == 'password-personal-data'
|
|
3075
3416
|
|
|
3076
3417
|
return Models::PolicyPasswordPersonalData.from(map: response)
|
|
@@ -3121,6 +3462,11 @@ module Appwrite
|
|
|
3121
3462
|
return Models::PolicyDenyFreeEmail.from(map: response)
|
|
3122
3463
|
end
|
|
3123
3464
|
|
|
3465
|
+
if response['$id'] == 'deny-corporate-email'
|
|
3466
|
+
|
|
3467
|
+
return Models::PolicyDenyCorporateEmail.from(map: response)
|
|
3468
|
+
end
|
|
3469
|
+
|
|
3124
3470
|
raise Exception, "Unable to match response to any expected response model"
|
|
3125
3471
|
|
|
3126
3472
|
end
|
|
@@ -3149,7 +3495,9 @@ module Appwrite
|
|
|
3149
3495
|
}
|
|
3150
3496
|
|
|
3151
3497
|
api_headers = {
|
|
3498
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3152
3499
|
"content-type": 'application/json',
|
|
3500
|
+
"accept": 'application/json',
|
|
3153
3501
|
}
|
|
3154
3502
|
|
|
3155
3503
|
@client.call(
|
|
@@ -3165,7 +3513,7 @@ module Appwrite
|
|
|
3165
3513
|
# Update properties of a specific service. Use this endpoint to enable or
|
|
3166
3514
|
# disable a service in your project.
|
|
3167
3515
|
#
|
|
3168
|
-
# @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
|
|
3516
|
+
# @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
|
|
3169
3517
|
# @param [] enabled Service status.
|
|
3170
3518
|
#
|
|
3171
3519
|
# @return [Project]
|
|
@@ -3186,7 +3534,9 @@ module Appwrite
|
|
|
3186
3534
|
}
|
|
3187
3535
|
|
|
3188
3536
|
api_headers = {
|
|
3537
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3189
3538
|
"content-type": 'application/json',
|
|
3539
|
+
"accept": 'application/json',
|
|
3190
3540
|
}
|
|
3191
3541
|
|
|
3192
3542
|
@client.call(
|
|
@@ -3232,7 +3582,9 @@ module Appwrite
|
|
|
3232
3582
|
}
|
|
3233
3583
|
|
|
3234
3584
|
api_headers = {
|
|
3585
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3235
3586
|
"content-type": 'application/json',
|
|
3587
|
+
"accept": 'application/json',
|
|
3236
3588
|
}
|
|
3237
3589
|
|
|
3238
3590
|
@client.call(
|
|
@@ -3262,6 +3614,7 @@ module Appwrite
|
|
|
3262
3614
|
}
|
|
3263
3615
|
|
|
3264
3616
|
api_headers = {
|
|
3617
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3265
3618
|
"content-type": 'application/json',
|
|
3266
3619
|
}
|
|
3267
3620
|
|
|
@@ -3291,6 +3644,8 @@ module Appwrite
|
|
|
3291
3644
|
}
|
|
3292
3645
|
|
|
3293
3646
|
api_headers = {
|
|
3647
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3648
|
+
"accept": 'application/json',
|
|
3294
3649
|
}
|
|
3295
3650
|
|
|
3296
3651
|
@client.call(
|
|
@@ -3335,7 +3690,9 @@ module Appwrite
|
|
|
3335
3690
|
}
|
|
3336
3691
|
|
|
3337
3692
|
api_headers = {
|
|
3693
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3338
3694
|
"content-type": 'application/json',
|
|
3695
|
+
"accept": 'application/json',
|
|
3339
3696
|
}
|
|
3340
3697
|
|
|
3341
3698
|
@client.call(
|
|
@@ -3369,6 +3726,8 @@ module Appwrite
|
|
|
3369
3726
|
}
|
|
3370
3727
|
|
|
3371
3728
|
api_headers = {
|
|
3729
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3730
|
+
"accept": 'application/json',
|
|
3372
3731
|
}
|
|
3373
3732
|
|
|
3374
3733
|
@client.call(
|
|
@@ -3396,6 +3755,8 @@ module Appwrite
|
|
|
3396
3755
|
}
|
|
3397
3756
|
|
|
3398
3757
|
api_headers = {
|
|
3758
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3759
|
+
"accept": 'application/json',
|
|
3399
3760
|
}
|
|
3400
3761
|
|
|
3401
3762
|
@client.call(
|
|
@@ -3440,7 +3801,9 @@ module Appwrite
|
|
|
3440
3801
|
}
|
|
3441
3802
|
|
|
3442
3803
|
api_headers = {
|
|
3804
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3443
3805
|
"content-type": 'application/json',
|
|
3806
|
+
"accept": 'application/json',
|
|
3444
3807
|
}
|
|
3445
3808
|
|
|
3446
3809
|
@client.call(
|
|
@@ -3470,6 +3833,8 @@ module Appwrite
|
|
|
3470
3833
|
}
|
|
3471
3834
|
|
|
3472
3835
|
api_headers = {
|
|
3836
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3837
|
+
"accept": 'application/json',
|
|
3473
3838
|
}
|
|
3474
3839
|
|
|
3475
3840
|
@client.call(
|
|
@@ -3505,7 +3870,9 @@ module Appwrite
|
|
|
3505
3870
|
}
|
|
3506
3871
|
|
|
3507
3872
|
api_headers = {
|
|
3873
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3508
3874
|
"content-type": 'application/json',
|
|
3875
|
+
"accept": 'application/json',
|
|
3509
3876
|
}
|
|
3510
3877
|
|
|
3511
3878
|
@client.call(
|
|
@@ -3535,6 +3902,7 @@ module Appwrite
|
|
|
3535
3902
|
}
|
|
3536
3903
|
|
|
3537
3904
|
api_headers = {
|
|
3905
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
3538
3906
|
"content-type": 'application/json',
|
|
3539
3907
|
}
|
|
3540
3908
|
|