appwrite 30.2.0 → 30.4.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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +2 -2
  3. data/lib/appwrite/enums/image_format.rb +1 -0
  4. data/lib/appwrite/enums/o_auth_provider.rb +14 -0
  5. data/lib/appwrite/enums/project_auth_method_id.rb +1 -0
  6. data/lib/appwrite/enums/project_key_scopes.rb +6 -0
  7. data/lib/appwrite/enums/project_ldap_encryption.rb +9 -0
  8. data/lib/appwrite/enums/project_o_auth_provider_id.rb +14 -0
  9. data/lib/appwrite/models/domain_price.rb +8 -3
  10. data/lib/appwrite/models/o_auth2_atlassian.rb +43 -0
  11. data/lib/appwrite/models/o_auth2_instagram.rb +43 -0
  12. data/lib/appwrite/models/o_auth2_line.rb +43 -0
  13. data/lib/appwrite/models/o_auth2_linear.rb +43 -0
  14. data/lib/appwrite/models/o_auth2_naver.rb +43 -0
  15. data/lib/appwrite/models/o_auth2_netlify.rb +43 -0
  16. data/lib/appwrite/models/o_auth2_patreon.rb +43 -0
  17. data/lib/appwrite/models/o_auth2_railway.rb +43 -0
  18. data/lib/appwrite/models/o_auth2_reddit.rb +43 -0
  19. data/lib/appwrite/models/o_auth2_roblox.rb +43 -0
  20. data/lib/appwrite/models/o_auth2_strava.rb +43 -0
  21. data/lib/appwrite/models/o_auth2_vercel.rb +43 -0
  22. data/lib/appwrite/models/o_auth2_vk.rb +43 -0
  23. data/lib/appwrite/models/o_auth2_work_os.rb +43 -0
  24. data/lib/appwrite/models/project.rb +81 -1
  25. data/lib/appwrite/models/project_auth_method.rb +1 -0
  26. data/lib/appwrite/models/site.rb +14 -4
  27. data/lib/appwrite/services/account.rb +51 -1
  28. data/lib/appwrite/services/avatars.rb +5 -2
  29. data/lib/appwrite/services/domains.rb +5 -4
  30. data/lib/appwrite/services/messaging.rb +208 -0
  31. data/lib/appwrite/services/project.rb +706 -2
  32. data/lib/appwrite/services/sites.rb +44 -0
  33. data/lib/appwrite/services/storage.rb +5 -2
  34. data/lib/appwrite.rb +15 -0
  35. metadata +17 -2
@@ -55,7 +55,7 @@ module Appwrite
55
55
  # Update properties of a specific auth method. Use this endpoint to enable or
56
56
  # disable a method in your project.
57
57
  #
58
- # @param [ProjectAuthMethodId] method_id Auth Method ID. Possible values: email-password,magic-url,email-otp,anonymous,invites,jwt,phone,passkey
58
+ # @param [ProjectAuthMethodId] method_id Auth Method ID. Possible values: email-password,magic-url,email-otp,anonymous,invites,jwt,phone,passkey,ldap
59
59
  # @param [] enabled Auth method status.
60
60
  #
61
61
  # @return [Project]
@@ -513,6 +513,120 @@ module Appwrite
513
513
  )
514
514
  end
515
515
 
516
+ # Update the LDAP configuration for your project. Use this endpoint to
517
+ # connect your project to an LDAP directory, such as OpenLDAP or Active
518
+ # Directory, so users can sign in with their directory credentials. Omitted
519
+ # parameters keep their stored value. Enabling LDAP connects to the directory
520
+ # and binds as the service account, so a project cannot be left enabled with
521
+ # a configuration that cannot sign anyone in.
522
+ #
523
+ # @param [] enabled Enable or disable LDAP sign-in. Enabling connects to the directory to validate the configuration.
524
+ # @param [Array] hosts Directory hostnames or IP addresses, tried in order until one answers. IPv6 addresses can be written with or without square brackets. Maximum of 10 hosts are allowed. For example: ["ldap.example.com"]
525
+ # @param [Integer] port Directory port. Defaults to 636 for LDAPS and 389 otherwise.
526
+ # @param [ProjectLDAPEncryption] encryption Transport encryption. Use "ldaps" for TLS from the first byte, "starttls" to upgrade a plain connection, or "none" for a trusted network only. Allowed values are: none, ldaps, starttls. Defaults to ldaps.
527
+ # @param [] verification Certificate verification, false for disabled or true for enabled. Defaults to true. Has no effect when encryption is none.
528
+ # @param [String] certificate Certificate in PEM format of the authority that signed the directory certificate, or the directory certificate itself when it is self-signed. Several certificates can be given one after another. Leave empty to use the system trust store. Pass an empty string to clear a previously set value.
529
+ # @param [Integer] timeout Seconds to wait for the directory to connect and answer each operation. Maximum is 30 seconds. Defaults to 10.
530
+ # @param [String] base_dn Subtree the user search starts from. For example: ou=people,dc=example,dc=com
531
+ # @param [String] bind_dn Service account used to search for users. Pass an empty string if the directory allows anonymous search. For example: cn=appwrite,ou=services,dc=example,dc=com
532
+ # @param [String] bind_password Service account password. This property is stored securely and cannot be read in future (write-only). Required again when hosts, port, encryption, verification, certificate or bindDn change.
533
+ # @param [String] user_filter LDAP filter that finds the user signing in. {username} is replaced with the username they enter and must appear at least once. Pass an empty string to use the default, (uid={username}). For example: (sAMAccountName={username}) on Active Directory, or (|(uid={username})(mail={username})) to accept a username or an email address.
534
+ # @param [String] required_group_dn Group a user must belong to in order to sign in, checked on every sign-in. Pass an empty string to allow every user the directory authenticates. For example: cn=staff,ou=groups,dc=example,dc=com
535
+ # @param [String] id_attribute Attribute holding the identifier that stays the same when an entry is renamed or moved. Defaults to entryUUID; use objectGUID on Active Directory.
536
+ # @param [String] email_attribute Attribute holding the email address. Defaults to mail.
537
+ # @param [String] name_attribute Attribute holding the display name. Defaults to cn.
538
+ # @param [String] phone_attribute Attribute holding the phone number, in international format. Leave empty, the default, to leave the phone unmapped. For example: mobile
539
+ #
540
+ # @return [Project]
541
+ def update_ldap(
542
+ enabled: nil,
543
+ hosts: nil,
544
+ port: nil,
545
+ encryption: nil,
546
+ verification: nil,
547
+ certificate: nil,
548
+ timeout: nil,
549
+ base_dn: nil,
550
+ bind_dn: nil,
551
+ bind_password: nil,
552
+ user_filter: nil,
553
+ required_group_dn: nil,
554
+ id_attribute: nil,
555
+ email_attribute: nil,
556
+ name_attribute: nil,
557
+ phone_attribute: nil
558
+ )
559
+ api_path = '/project/ldap'
560
+
561
+ api_params = {
562
+ enabled: enabled,
563
+ hosts: hosts,
564
+ port: port,
565
+ encryption: encryption,
566
+ verification: verification,
567
+ certificate: certificate,
568
+ timeout: timeout,
569
+ baseDn: base_dn,
570
+ bindDn: bind_dn,
571
+ bindPassword: bind_password,
572
+ userFilter: user_filter,
573
+ requiredGroupDn: required_group_dn,
574
+ idAttribute: id_attribute,
575
+ emailAttribute: email_attribute,
576
+ nameAttribute: name_attribute,
577
+ phoneAttribute: phone_attribute,
578
+ }
579
+
580
+ api_headers = {
581
+ "X-Appwrite-Project": @client.get_config('project'),
582
+ "content-type": 'application/json',
583
+ "accept": 'application/json',
584
+ }
585
+
586
+ @client.call(
587
+ method: 'PATCH',
588
+ path: api_path,
589
+ headers: api_headers,
590
+ params: api_params,
591
+ response_type: Models::Project
592
+ )
593
+ end
594
+
595
+ # Test the stored LDAP configuration against the directory without signing
596
+ # anyone in. Connects to the directory, binds as the service account and
597
+ # reads the base DN. Pass a username to also look the user up and check the
598
+ # required group, and a password to also verify it. The error names the step
599
+ # that failed.
600
+ #
601
+ # @param [String] username Username to look up in the directory. Leave empty to test the connection and service account only.
602
+ # @param [String] password Password of the user to verify. Only used together with a username.
603
+ #
604
+ # @return []
605
+ def create_ldap_test(
606
+ username: nil,
607
+ password: nil
608
+ )
609
+ api_path = '/project/ldap/tests'
610
+
611
+ api_params = {
612
+ username: username,
613
+ password: password,
614
+ }
615
+
616
+ api_headers = {
617
+ "X-Appwrite-Project": @client.get_config('project'),
618
+ "content-type": 'application/json',
619
+ "accept": 'application/json',
620
+ }
621
+
622
+ @client.call(
623
+ method: 'POST',
624
+ path: api_path,
625
+ headers: api_headers,
626
+ params: api_params,
627
+ )
628
+ end
629
+
516
630
  # Get a list of all mock phones in the project. This endpoint returns an
517
631
  # array of all mock phones and their OTPs.
518
632
  #
@@ -923,6 +1037,41 @@ module Appwrite
923
1037
  )
924
1038
  end
925
1039
 
1040
+ # Update the project OAuth2 Atlassian configuration.
1041
+ #
1042
+ # @param [String] client_id 'Client ID' of Atlassian OAuth2 app. For example: uQ7mZ3s0000000000000000000000000
1043
+ # @param [String] client_secret 'Client Secret' of Atlassian OAuth2 app. For example: ATOA0000000000000000000000000000000000000000000000000000000000000000000000
1044
+ # @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.
1045
+ #
1046
+ # @return [OAuth2Atlassian]
1047
+ def update_o_auth2_atlassian(
1048
+ client_id: nil,
1049
+ client_secret: nil,
1050
+ enabled: nil
1051
+ )
1052
+ api_path = '/project/oauth2/atlassian'
1053
+
1054
+ api_params = {
1055
+ clientId: client_id,
1056
+ clientSecret: client_secret,
1057
+ enabled: enabled,
1058
+ }
1059
+
1060
+ api_headers = {
1061
+ "X-Appwrite-Project": @client.get_config('project'),
1062
+ "content-type": 'application/json',
1063
+ "accept": 'application/json',
1064
+ }
1065
+
1066
+ @client.call(
1067
+ method: 'PATCH',
1068
+ path: api_path,
1069
+ headers: api_headers,
1070
+ params: api_params,
1071
+ response_type: Models::OAuth2Atlassian
1072
+ )
1073
+ end
1074
+
926
1075
  # Update the project OAuth2 Auth0 configuration.
927
1076
  #
928
1077
  # @param [String] client_id 'Client ID' of Auth0 OAuth2 app. For example: OaOkIA000000000000000000005KLSYq
@@ -1618,6 +1767,41 @@ module Appwrite
1618
1767
  )
1619
1768
  end
1620
1769
 
1770
+ # Update the project OAuth2 Instagram configuration.
1771
+ #
1772
+ # @param [String] client_id 'Client ID' of Instagram OAuth2 app. For example: 00000000000000000000000000000000
1773
+ # @param [String] client_secret 'Client Secret' of Instagram OAuth2 app. For example: 00000000000000000000000000000000
1774
+ # @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.
1775
+ #
1776
+ # @return [OAuth2Instagram]
1777
+ def update_o_auth2_instagram(
1778
+ client_id: nil,
1779
+ client_secret: nil,
1780
+ enabled: nil
1781
+ )
1782
+ api_path = '/project/oauth2/instagram'
1783
+
1784
+ api_params = {
1785
+ clientId: client_id,
1786
+ clientSecret: client_secret,
1787
+ enabled: enabled,
1788
+ }
1789
+
1790
+ api_headers = {
1791
+ "X-Appwrite-Project": @client.get_config('project'),
1792
+ "content-type": 'application/json',
1793
+ "accept": 'application/json',
1794
+ }
1795
+
1796
+ @client.call(
1797
+ method: 'PATCH',
1798
+ path: api_path,
1799
+ headers: api_headers,
1800
+ params: api_params,
1801
+ response_type: Models::OAuth2Instagram
1802
+ )
1803
+ end
1804
+
1621
1805
  # Update the project OAuth2 Kakao configuration.
1622
1806
  #
1623
1807
  # @param [String] client_id 'REST API key' of Kakao OAuth2 app. For example: 839ff5000000000000000000013206de
@@ -1732,6 +1916,76 @@ module Appwrite
1732
1916
  )
1733
1917
  end
1734
1918
 
1919
+ # Update the project OAuth2 LINE configuration.
1920
+ #
1921
+ # @param [String] client_id 'Client ID' of LINE OAuth2 app. For example: 1650000000
1922
+ # @param [String] client_secret 'Client Secret' of LINE OAuth2 app. For example: a1b2c3d4e5f600000000000000000000
1923
+ # @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.
1924
+ #
1925
+ # @return [OAuth2Line]
1926
+ def update_o_auth2_line(
1927
+ client_id: nil,
1928
+ client_secret: nil,
1929
+ enabled: nil
1930
+ )
1931
+ api_path = '/project/oauth2/line'
1932
+
1933
+ api_params = {
1934
+ clientId: client_id,
1935
+ clientSecret: client_secret,
1936
+ enabled: enabled,
1937
+ }
1938
+
1939
+ api_headers = {
1940
+ "X-Appwrite-Project": @client.get_config('project'),
1941
+ "content-type": 'application/json',
1942
+ "accept": 'application/json',
1943
+ }
1944
+
1945
+ @client.call(
1946
+ method: 'PATCH',
1947
+ path: api_path,
1948
+ headers: api_headers,
1949
+ params: api_params,
1950
+ response_type: Models::OAuth2Line
1951
+ )
1952
+ end
1953
+
1954
+ # Update the project OAuth2 Linear configuration.
1955
+ #
1956
+ # @param [String] client_id 'Client ID' of Linear OAuth2 app. For example: 5e1c0000000000000000000000000000
1957
+ # @param [String] client_secret 'Client Secret' of Linear OAuth2 app. For example: 9f8e7d6c5b4a00000000000000000000
1958
+ # @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.
1959
+ #
1960
+ # @return [OAuth2Linear]
1961
+ def update_o_auth2_linear(
1962
+ client_id: nil,
1963
+ client_secret: nil,
1964
+ enabled: nil
1965
+ )
1966
+ api_path = '/project/oauth2/linear'
1967
+
1968
+ api_params = {
1969
+ clientId: client_id,
1970
+ clientSecret: client_secret,
1971
+ enabled: enabled,
1972
+ }
1973
+
1974
+ api_headers = {
1975
+ "X-Appwrite-Project": @client.get_config('project'),
1976
+ "content-type": 'application/json',
1977
+ "accept": 'application/json',
1978
+ }
1979
+
1980
+ @client.call(
1981
+ method: 'PATCH',
1982
+ path: api_path,
1983
+ headers: api_headers,
1984
+ params: api_params,
1985
+ response_type: Models::OAuth2Linear
1986
+ )
1987
+ end
1988
+
1735
1989
  # Update the project OAuth2 Linkedin configuration.
1736
1990
  #
1737
1991
  # @param [String] client_id 'Client ID' of Linkedin OAuth2 app. For example: 770000000000dv
@@ -1808,6 +2062,76 @@ module Appwrite
1808
2062
  )
1809
2063
  end
1810
2064
 
2065
+ # Update the project OAuth2 Naver configuration.
2066
+ #
2067
+ # @param [String] client_id 'Client ID' of Naver OAuth2 app. For example: jK8pQ0000000000000Zv
2068
+ # @param [String] client_secret 'Client Secret' of Naver OAuth2 app. For example: 9f42A0000000000c1dEb. Find it under Application > My Applications, on the overview of your app
2069
+ # @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.
2070
+ #
2071
+ # @return [OAuth2Naver]
2072
+ def update_o_auth2_naver(
2073
+ client_id: nil,
2074
+ client_secret: nil,
2075
+ enabled: nil
2076
+ )
2077
+ api_path = '/project/oauth2/naver'
2078
+
2079
+ api_params = {
2080
+ clientId: client_id,
2081
+ clientSecret: client_secret,
2082
+ enabled: enabled,
2083
+ }
2084
+
2085
+ api_headers = {
2086
+ "X-Appwrite-Project": @client.get_config('project'),
2087
+ "content-type": 'application/json',
2088
+ "accept": 'application/json',
2089
+ }
2090
+
2091
+ @client.call(
2092
+ method: 'PATCH',
2093
+ path: api_path,
2094
+ headers: api_headers,
2095
+ params: api_params,
2096
+ response_type: Models::OAuth2Naver
2097
+ )
2098
+ end
2099
+
2100
+ # Update the project OAuth2 Netlify configuration.
2101
+ #
2102
+ # @param [String] client_id 'Client ID' of Netlify OAuth2 app. For example: 00000000000000000000000000000000
2103
+ # @param [String] client_secret 'Client Secret' of Netlify OAuth2 app. For example: 00000000000000000000000000000000
2104
+ # @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.
2105
+ #
2106
+ # @return [OAuth2Netlify]
2107
+ def update_o_auth2_netlify(
2108
+ client_id: nil,
2109
+ client_secret: nil,
2110
+ enabled: nil
2111
+ )
2112
+ api_path = '/project/oauth2/netlify'
2113
+
2114
+ api_params = {
2115
+ clientId: client_id,
2116
+ clientSecret: client_secret,
2117
+ enabled: enabled,
2118
+ }
2119
+
2120
+ api_headers = {
2121
+ "X-Appwrite-Project": @client.get_config('project'),
2122
+ "content-type": 'application/json',
2123
+ "accept": 'application/json',
2124
+ }
2125
+
2126
+ @client.call(
2127
+ method: 'PATCH',
2128
+ path: api_path,
2129
+ headers: api_headers,
2130
+ params: api_params,
2131
+ response_type: Models::OAuth2Netlify
2132
+ )
2133
+ end
2134
+
1811
2135
  # Update the project OAuth2 Notion configuration.
1812
2136
  #
1813
2137
  # @param [String] oauth_client_id 'OAuth Client ID' of Notion OAuth2 app. For example: 341d8700-0000-0000-0000-000000446ee3
@@ -1940,6 +2264,41 @@ module Appwrite
1940
2264
  )
1941
2265
  end
1942
2266
 
2267
+ # Update the project OAuth2 Patreon configuration.
2268
+ #
2269
+ # @param [String] client_id 'Client ID' of Patreon OAuth2 app. For example: 00000000000000000000000000000000
2270
+ # @param [String] client_secret 'Client Secret' of Patreon OAuth2 app. For example: 00000000000000000000000000000000
2271
+ # @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.
2272
+ #
2273
+ # @return [OAuth2Patreon]
2274
+ def update_o_auth2_patreon(
2275
+ client_id: nil,
2276
+ client_secret: nil,
2277
+ enabled: nil
2278
+ )
2279
+ api_path = '/project/oauth2/patreon'
2280
+
2281
+ api_params = {
2282
+ clientId: client_id,
2283
+ clientSecret: client_secret,
2284
+ enabled: enabled,
2285
+ }
2286
+
2287
+ api_headers = {
2288
+ "X-Appwrite-Project": @client.get_config('project'),
2289
+ "content-type": 'application/json',
2290
+ "accept": 'application/json',
2291
+ }
2292
+
2293
+ @client.call(
2294
+ method: 'PATCH',
2295
+ path: api_path,
2296
+ headers: api_headers,
2297
+ params: api_params,
2298
+ response_type: Models::OAuth2Patreon
2299
+ )
2300
+ end
2301
+
1943
2302
  # Update the project OAuth2 Paypal configuration.
1944
2303
  #
1945
2304
  # @param [String] client_id 'Client ID' of Paypal OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
@@ -2045,6 +2404,76 @@ module Appwrite
2045
2404
  )
2046
2405
  end
2047
2406
 
2407
+ # Update the project OAuth2 Railway configuration.
2408
+ #
2409
+ # @param [String] client_id 'Client ID' of Railway OAuth2 app. For example: 00000000000000000000000000000000
2410
+ # @param [String] client_secret 'Client Secret' of Railway OAuth2 app. For example: 00000000000000000000000000000000
2411
+ # @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.
2412
+ #
2413
+ # @return [OAuth2Railway]
2414
+ def update_o_auth2_railway(
2415
+ client_id: nil,
2416
+ client_secret: nil,
2417
+ enabled: nil
2418
+ )
2419
+ api_path = '/project/oauth2/railway'
2420
+
2421
+ api_params = {
2422
+ clientId: client_id,
2423
+ clientSecret: client_secret,
2424
+ enabled: enabled,
2425
+ }
2426
+
2427
+ api_headers = {
2428
+ "X-Appwrite-Project": @client.get_config('project'),
2429
+ "content-type": 'application/json',
2430
+ "accept": 'application/json',
2431
+ }
2432
+
2433
+ @client.call(
2434
+ method: 'PATCH',
2435
+ path: api_path,
2436
+ headers: api_headers,
2437
+ params: api_params,
2438
+ response_type: Models::OAuth2Railway
2439
+ )
2440
+ end
2441
+
2442
+ # Update the project OAuth2 Reddit configuration.
2443
+ #
2444
+ # @param [String] client_id 'Client ID' of Reddit OAuth2 app. For example: aBcD0000000000000000aB
2445
+ # @param [String] client_secret 'Client Secret' of Reddit OAuth2 app. For example: xYz00000000000000000000000000a
2446
+ # @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.
2447
+ #
2448
+ # @return [OAuth2Reddit]
2449
+ def update_o_auth2_reddit(
2450
+ client_id: nil,
2451
+ client_secret: nil,
2452
+ enabled: nil
2453
+ )
2454
+ api_path = '/project/oauth2/reddit'
2455
+
2456
+ api_params = {
2457
+ clientId: client_id,
2458
+ clientSecret: client_secret,
2459
+ enabled: enabled,
2460
+ }
2461
+
2462
+ api_headers = {
2463
+ "X-Appwrite-Project": @client.get_config('project'),
2464
+ "content-type": 'application/json',
2465
+ "accept": 'application/json',
2466
+ }
2467
+
2468
+ @client.call(
2469
+ method: 'PATCH',
2470
+ path: api_path,
2471
+ headers: api_headers,
2472
+ params: api_params,
2473
+ response_type: Models::OAuth2Reddit
2474
+ )
2475
+ end
2476
+
2048
2477
  # Update the project OAuth2 Resend configuration.
2049
2478
  #
2050
2479
  # @param [String] client_id 'Client ID' of Resend OAuth2 app. For example: f47ac10b-58cc-4372-a567-0e02b2c3d479
@@ -2080,6 +2509,41 @@ module Appwrite
2080
2509
  )
2081
2510
  end
2082
2511
 
2512
+ # Update the project OAuth2 Roblox configuration.
2513
+ #
2514
+ # @param [String] client_id 'Client ID' of Roblox OAuth2 app. For example: 1234567890123456789
2515
+ # @param [String] client_secret 'Client Secret' of Roblox OAuth2 app. For example: RBX-0000000000000000000000000000000000000000000000000000000000000000000000
2516
+ # @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.
2517
+ #
2518
+ # @return [OAuth2Roblox]
2519
+ def update_o_auth2_roblox(
2520
+ client_id: nil,
2521
+ client_secret: nil,
2522
+ enabled: nil
2523
+ )
2524
+ api_path = '/project/oauth2/roblox'
2525
+
2526
+ api_params = {
2527
+ clientId: client_id,
2528
+ clientSecret: client_secret,
2529
+ enabled: enabled,
2530
+ }
2531
+
2532
+ api_headers = {
2533
+ "X-Appwrite-Project": @client.get_config('project'),
2534
+ "content-type": 'application/json',
2535
+ "accept": 'application/json',
2536
+ }
2537
+
2538
+ @client.call(
2539
+ method: 'PATCH',
2540
+ path: api_path,
2541
+ headers: api_headers,
2542
+ params: api_params,
2543
+ response_type: Models::OAuth2Roblox
2544
+ )
2545
+ end
2546
+
2083
2547
  # Update the project OAuth2 Salesforce configuration.
2084
2548
  #
2085
2549
  # @param [String] customer_key 'Consumer Key' of Salesforce OAuth2 app. For example: 3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq
@@ -2188,6 +2652,41 @@ module Appwrite
2188
2652
  )
2189
2653
  end
2190
2654
 
2655
+ # Update the project OAuth2 Strava configuration.
2656
+ #
2657
+ # @param [String] client_id 'Client ID' of Strava OAuth2 app. For example: 00000000000000000000000000000000
2658
+ # @param [String] client_secret 'Client Secret' of Strava OAuth2 app. For example: 00000000000000000000000000000000
2659
+ # @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.
2660
+ #
2661
+ # @return [OAuth2Strava]
2662
+ def update_o_auth2_strava(
2663
+ client_id: nil,
2664
+ client_secret: nil,
2665
+ enabled: nil
2666
+ )
2667
+ api_path = '/project/oauth2/strava'
2668
+
2669
+ api_params = {
2670
+ clientId: client_id,
2671
+ clientSecret: client_secret,
2672
+ enabled: enabled,
2673
+ }
2674
+
2675
+ api_headers = {
2676
+ "X-Appwrite-Project": @client.get_config('project'),
2677
+ "content-type": 'application/json',
2678
+ "accept": 'application/json',
2679
+ }
2680
+
2681
+ @client.call(
2682
+ method: 'PATCH',
2683
+ path: api_path,
2684
+ headers: api_headers,
2685
+ params: api_params,
2686
+ response_type: Models::OAuth2Strava
2687
+ )
2688
+ end
2689
+
2191
2690
  # Update the project OAuth2 Stripe configuration.
2192
2691
  #
2193
2692
  # @param [String] client_id 'Client ID' of Stripe OAuth2 app. For example: ca_UKibXX0000000000000000000006byvR
@@ -2363,6 +2862,41 @@ module Appwrite
2363
2862
  )
2364
2863
  end
2365
2864
 
2865
+ # Update the project OAuth2 Vercel configuration.
2866
+ #
2867
+ # @param [String] client_id 'Client ID' of Vercel OAuth2 app. For example: cl_0000000000000000000000000000000
2868
+ # @param [String] client_secret 'Client Secret' of Vercel OAuth2 app. For example: vc_0000000000000000000000000000000000000000000000
2869
+ # @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.
2870
+ #
2871
+ # @return [OAuth2Vercel]
2872
+ def update_o_auth2_vercel(
2873
+ client_id: nil,
2874
+ client_secret: nil,
2875
+ enabled: nil
2876
+ )
2877
+ api_path = '/project/oauth2/vercel'
2878
+
2879
+ api_params = {
2880
+ clientId: client_id,
2881
+ clientSecret: client_secret,
2882
+ enabled: enabled,
2883
+ }
2884
+
2885
+ api_headers = {
2886
+ "X-Appwrite-Project": @client.get_config('project'),
2887
+ "content-type": 'application/json',
2888
+ "accept": 'application/json',
2889
+ }
2890
+
2891
+ @client.call(
2892
+ method: 'PATCH',
2893
+ path: api_path,
2894
+ headers: api_headers,
2895
+ params: api_params,
2896
+ response_type: Models::OAuth2Vercel
2897
+ )
2898
+ end
2899
+
2366
2900
  # Update the project OAuth2 Vipps MobilePay configuration.
2367
2901
  #
2368
2902
  # @param [String] client_id 'Client ID' of Vipps MobilePay OAuth2 app. For example: 9a3a4b3e-0000-0000-0000-0f1a6d1c3b2e
@@ -2433,6 +2967,41 @@ module Appwrite
2433
2967
  )
2434
2968
  end
2435
2969
 
2970
+ # Update the project OAuth2 VK configuration.
2971
+ #
2972
+ # @param [String] client_id 'Client ID' of VK OAuth2 app. For example: 00000000000000000000000000000000
2973
+ # @param [String] client_secret 'Client Secret' of VK OAuth2 app. For example: 00000000000000000000000000000000
2974
+ # @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.
2975
+ #
2976
+ # @return [OAuth2VK]
2977
+ def update_o_auth2_vk(
2978
+ client_id: nil,
2979
+ client_secret: nil,
2980
+ enabled: nil
2981
+ )
2982
+ api_path = '/project/oauth2/vk'
2983
+
2984
+ api_params = {
2985
+ clientId: client_id,
2986
+ clientSecret: client_secret,
2987
+ enabled: enabled,
2988
+ }
2989
+
2990
+ api_headers = {
2991
+ "X-Appwrite-Project": @client.get_config('project'),
2992
+ "content-type": 'application/json',
2993
+ "accept": 'application/json',
2994
+ }
2995
+
2996
+ @client.call(
2997
+ method: 'PATCH',
2998
+ path: api_path,
2999
+ headers: api_headers,
3000
+ params: api_params,
3001
+ response_type: Models::OAuth2VK
3002
+ )
3003
+ end
3004
+
2436
3005
  # Update the project OAuth2 Webflow configuration.
2437
3006
  #
2438
3007
  # @param [String] client_id 'Client ID' of Webflow OAuth2 app. For example: 8bb20000000000000000000000000000000000000000000000000000000040dd
@@ -2503,6 +3072,41 @@ module Appwrite
2503
3072
  )
2504
3073
  end
2505
3074
 
3075
+ # Update the project OAuth2 WorkOS configuration.
3076
+ #
3077
+ # @param [String] client_id 'Client ID' of WorkOS OAuth2 app. For example: client_01H0000000000000000000000
3078
+ # @param [String] client_secret 'Client Secret' of WorkOS OAuth2 app. For example: wos0000000000000000000000000000000000000000000000000000000000000
3079
+ # @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.
3080
+ #
3081
+ # @return [OAuth2WorkOS]
3082
+ def update_o_auth2_work_os(
3083
+ client_id: nil,
3084
+ client_secret: nil,
3085
+ enabled: nil
3086
+ )
3087
+ api_path = '/project/oauth2/workos'
3088
+
3089
+ api_params = {
3090
+ clientId: client_id,
3091
+ clientSecret: client_secret,
3092
+ enabled: enabled,
3093
+ }
3094
+
3095
+ api_headers = {
3096
+ "X-Appwrite-Project": @client.get_config('project'),
3097
+ "content-type": 'application/json',
3098
+ "accept": 'application/json',
3099
+ }
3100
+
3101
+ @client.call(
3102
+ method: 'PATCH',
3103
+ path: api_path,
3104
+ headers: api_headers,
3105
+ params: api_params,
3106
+ response_type: Models::OAuth2WorkOS
3107
+ )
3108
+ end
3109
+
2506
3110
  # Update the project OAuth2 X configuration.
2507
3111
  #
2508
3112
  # @param [String] customer_key 'Customer Key' of X OAuth2 app. For example: slzZV0000000000000NFLaWT
@@ -2686,7 +3290,7 @@ module Appwrite
2686
3290
  #
2687
3291
  # @param [ProjectOAuthProviderId] provider_id OAuth2 provider key. For example: github, google, apple.
2688
3292
  #
2689
- # @return [OAuth2Github, OAuth2Discord, OAuth2Figma, OAuth2Dropbox, OAuth2Dailymotion, OAuth2Bitbucket, OAuth2Bitly, OAuth2Box, OAuth2Autodesk, OAuth2Google, OAuth2Zoom, OAuth2Zoho, OAuth2Yandex, OAuth2X, OAuth2WordPress, OAuth2Webflow, OAuth2Twitch, OAuth2Stripe, OAuth2Spotify, OAuth2Slack, OAuth2Podio, OAuth2Notion, OAuth2Salesforce, OAuth2Yahoo, OAuth2HuggingFace, OAuth2Resend, OAuth2Cloudflare, OAuth2Linkedin, OAuth2Disqus, OAuth2Amazon, OAuth2Etsy, OAuth2Facebook, OAuth2Tradeshift, OAuth2Paypal, OAuth2Gitlab, OAuth2Authentik, OAuth2Auth0, OAuth2FusionAuth, OAuth2Keycloak, OAuth2Oidc, OAuth2Apple, OAuth2Okta, OAuth2Kick, OAuth2Microsoft, OAuth2TikTok, OAuth2Kakao, OAuth2Vipps]
3293
+ # @return [OAuth2Github, OAuth2Discord, OAuth2Figma, OAuth2Dropbox, OAuth2Dailymotion, OAuth2Bitbucket, OAuth2Bitly, OAuth2Box, OAuth2Autodesk, OAuth2Google, OAuth2Zoom, OAuth2Zoho, OAuth2Yandex, OAuth2X, OAuth2WordPress, OAuth2Webflow, OAuth2Twitch, OAuth2Stripe, OAuth2Spotify, OAuth2Slack, OAuth2Podio, OAuth2Notion, OAuth2Salesforce, OAuth2Yahoo, OAuth2HuggingFace, OAuth2Instagram, OAuth2Patreon, OAuth2Strava, OAuth2VK, OAuth2Netlify, OAuth2Railway, OAuth2Reddit, OAuth2Vercel, OAuth2Atlassian, OAuth2Line, OAuth2Linear, OAuth2Roblox, OAuth2WorkOS, OAuth2Resend, OAuth2Cloudflare, OAuth2Linkedin, OAuth2Disqus, OAuth2Amazon, OAuth2Etsy, OAuth2Facebook, OAuth2Tradeshift, OAuth2Paypal, OAuth2Gitlab, OAuth2Authentik, OAuth2Auth0, OAuth2FusionAuth, OAuth2Keycloak, OAuth2Oidc, OAuth2Apple, OAuth2Okta, OAuth2Kick, OAuth2Microsoft, OAuth2TikTok, OAuth2Kakao, OAuth2Naver, OAuth2Vipps]
2690
3294
  def get_o_auth2_provider(
2691
3295
  provider_id:
2692
3296
  )
@@ -2840,6 +3444,71 @@ module Appwrite
2840
3444
  return Models::OAuth2HuggingFace.from(map: response)
2841
3445
  end
2842
3446
 
3447
+ if response['$id'] == 'instagram'
3448
+
3449
+ return Models::OAuth2Instagram.from(map: response)
3450
+ end
3451
+
3452
+ if response['$id'] == 'patreon'
3453
+
3454
+ return Models::OAuth2Patreon.from(map: response)
3455
+ end
3456
+
3457
+ if response['$id'] == 'strava'
3458
+
3459
+ return Models::OAuth2Strava.from(map: response)
3460
+ end
3461
+
3462
+ if response['$id'] == 'vk'
3463
+
3464
+ return Models::OAuth2VK.from(map: response)
3465
+ end
3466
+
3467
+ if response['$id'] == 'netlify'
3468
+
3469
+ return Models::OAuth2Netlify.from(map: response)
3470
+ end
3471
+
3472
+ if response['$id'] == 'railway'
3473
+
3474
+ return Models::OAuth2Railway.from(map: response)
3475
+ end
3476
+
3477
+ if response['$id'] == 'reddit'
3478
+
3479
+ return Models::OAuth2Reddit.from(map: response)
3480
+ end
3481
+
3482
+ if response['$id'] == 'vercel'
3483
+
3484
+ return Models::OAuth2Vercel.from(map: response)
3485
+ end
3486
+
3487
+ if response['$id'] == 'atlassian'
3488
+
3489
+ return Models::OAuth2Atlassian.from(map: response)
3490
+ end
3491
+
3492
+ if response['$id'] == 'line'
3493
+
3494
+ return Models::OAuth2Line.from(map: response)
3495
+ end
3496
+
3497
+ if response['$id'] == 'linear'
3498
+
3499
+ return Models::OAuth2Linear.from(map: response)
3500
+ end
3501
+
3502
+ if response['$id'] == 'roblox'
3503
+
3504
+ return Models::OAuth2Roblox.from(map: response)
3505
+ end
3506
+
3507
+ if response['$id'] == 'workos'
3508
+
3509
+ return Models::OAuth2WorkOS.from(map: response)
3510
+ end
3511
+
2843
3512
  if response['$id'] == 'resend'
2844
3513
 
2845
3514
  return Models::OAuth2Resend.from(map: response)
@@ -2955,6 +3624,11 @@ module Appwrite
2955
3624
  return Models::OAuth2Kakao.from(map: response)
2956
3625
  end
2957
3626
 
3627
+ if response['$id'] == 'naver'
3628
+
3629
+ return Models::OAuth2Naver.from(map: response)
3630
+ end
3631
+
2958
3632
  if response['$id'] == 'vipps'
2959
3633
 
2960
3634
  return Models::OAuth2Vipps.from(map: response)
@@ -2968,6 +3642,36 @@ module Appwrite
2968
3642
  raise Exception, "Unable to match response to any expected response model"
2969
3643
  end
2970
3644
 
3645
+ # Delete all passwords in the project, forcing every user to reset their
3646
+ # password. Any password set before this request stops working for email and
3647
+ # password sign-in immediately: signing in returns a
3648
+ # `user_password_reset_required` error until the user sets a new password
3649
+ # through password recovery, or until a new password is set for them with the
3650
+ # Users API. Existing sessions are not affected; call the delete sessions
3651
+ # endpoint to sign users out as well. Users without a password and API keys
3652
+ # are not affected by this action.
3653
+ #
3654
+ #
3655
+ # @return []
3656
+ def delete_passwords()
3657
+ api_path = '/project/passwords'
3658
+
3659
+ api_params = {}
3660
+
3661
+ api_headers = {
3662
+ "X-Appwrite-Project": @client.get_config('project'),
3663
+ "content-type": 'application/json',
3664
+ "accept": 'application/json',
3665
+ }
3666
+
3667
+ @client.call(
3668
+ method: 'DELETE',
3669
+ path: api_path,
3670
+ headers: api_headers,
3671
+ params: api_params,
3672
+ )
3673
+ end
3674
+
2971
3675
  # Get a list of all platforms in the project. This endpoint returns an array
2972
3676
  # of all platforms and their configurations.
2973
3677
  #