appwrite 30.3.0 → 30.5.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 +1 -1
- data/lib/appwrite/enums/alert_comparator.rb +10 -0
- data/lib/appwrite/enums/alert_metric.rb +36 -0
- data/lib/appwrite/enums/alert_status.rb +8 -0
- data/lib/appwrite/enums/monitor_method.rb +13 -0
- data/lib/appwrite/enums/monitor_record.rb +12 -0
- data/lib/appwrite/enums/monitor_resource_type.rb +13 -0
- data/lib/appwrite/enums/monitor_result.rb +19 -0
- data/lib/appwrite/enums/monitor_severity.rb +10 -0
- data/lib/appwrite/enums/monitor_status.rb +8 -0
- data/lib/appwrite/enums/monitor_tls_mode.rb +10 -0
- data/lib/appwrite/enums/monitor_type.rb +12 -0
- data/lib/appwrite/enums/o_auth_provider.rb +13 -0
- data/lib/appwrite/enums/project_o_auth_provider_id.rb +13 -0
- data/lib/appwrite/models/alert.rb +308 -0
- data/lib/appwrite/models/alert_list.rb +33 -0
- data/lib/appwrite/models/escalation.rb +53 -0
- data/lib/appwrite/models/escalation_list.rb +33 -0
- data/lib/appwrite/models/escalation_step.rb +38 -0
- data/lib/appwrite/models/monitor.rb +342 -0
- data/lib/appwrite/models/monitor_list.rb +33 -0
- data/lib/appwrite/models/o_auth2_atlassian.rb +43 -0
- data/lib/appwrite/models/o_auth2_instagram.rb +43 -0
- data/lib/appwrite/models/o_auth2_line.rb +43 -0
- data/lib/appwrite/models/o_auth2_linear.rb +43 -0
- data/lib/appwrite/models/o_auth2_netlify.rb +43 -0
- data/lib/appwrite/models/o_auth2_patreon.rb +43 -0
- data/lib/appwrite/models/o_auth2_railway.rb +43 -0
- data/lib/appwrite/models/o_auth2_reddit.rb +43 -0
- data/lib/appwrite/models/o_auth2_roblox.rb +43 -0
- data/lib/appwrite/models/o_auth2_strava.rb +43 -0
- data/lib/appwrite/models/o_auth2_vercel.rb +43 -0
- data/lib/appwrite/models/o_auth2_vk.rb +43 -0
- data/lib/appwrite/models/o_auth2_work_os.rb +43 -0
- data/lib/appwrite/services/account.rb +1 -1
- data/lib/appwrite/services/alerts.rb +118 -0
- data/lib/appwrite/services/messaging.rb +208 -0
- data/lib/appwrite/services/monitors.rb +862 -0
- data/lib/appwrite/services/organization.rb +197 -0
- data/lib/appwrite/services/project.rb +521 -1
- data/lib/appwrite.rb +33 -0
- metadata +35 -2
|
@@ -1037,6 +1037,41 @@ module Appwrite
|
|
|
1037
1037
|
)
|
|
1038
1038
|
end
|
|
1039
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
|
+
|
|
1040
1075
|
# Update the project OAuth2 Auth0 configuration.
|
|
1041
1076
|
#
|
|
1042
1077
|
# @param [String] client_id 'Client ID' of Auth0 OAuth2 app. For example: OaOkIA000000000000000000005KLSYq
|
|
@@ -1732,6 +1767,41 @@ module Appwrite
|
|
|
1732
1767
|
)
|
|
1733
1768
|
end
|
|
1734
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
|
+
|
|
1735
1805
|
# Update the project OAuth2 Kakao configuration.
|
|
1736
1806
|
#
|
|
1737
1807
|
# @param [String] client_id 'REST API key' of Kakao OAuth2 app. For example: 839ff5000000000000000000013206de
|
|
@@ -1846,6 +1916,76 @@ module Appwrite
|
|
|
1846
1916
|
)
|
|
1847
1917
|
end
|
|
1848
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
|
+
|
|
1849
1989
|
# Update the project OAuth2 Linkedin configuration.
|
|
1850
1990
|
#
|
|
1851
1991
|
# @param [String] client_id 'Client ID' of Linkedin OAuth2 app. For example: 770000000000dv
|
|
@@ -1957,6 +2097,41 @@ module Appwrite
|
|
|
1957
2097
|
)
|
|
1958
2098
|
end
|
|
1959
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
|
+
|
|
1960
2135
|
# Update the project OAuth2 Notion configuration.
|
|
1961
2136
|
#
|
|
1962
2137
|
# @param [String] oauth_client_id 'OAuth Client ID' of Notion OAuth2 app. For example: 341d8700-0000-0000-0000-000000446ee3
|
|
@@ -2089,6 +2264,41 @@ module Appwrite
|
|
|
2089
2264
|
)
|
|
2090
2265
|
end
|
|
2091
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
|
+
|
|
2092
2302
|
# Update the project OAuth2 Paypal configuration.
|
|
2093
2303
|
#
|
|
2094
2304
|
# @param [String] client_id 'Client ID' of Paypal OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
|
|
@@ -2194,6 +2404,76 @@ module Appwrite
|
|
|
2194
2404
|
)
|
|
2195
2405
|
end
|
|
2196
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
|
+
|
|
2197
2477
|
# Update the project OAuth2 Resend configuration.
|
|
2198
2478
|
#
|
|
2199
2479
|
# @param [String] client_id 'Client ID' of Resend OAuth2 app. For example: f47ac10b-58cc-4372-a567-0e02b2c3d479
|
|
@@ -2229,6 +2509,41 @@ module Appwrite
|
|
|
2229
2509
|
)
|
|
2230
2510
|
end
|
|
2231
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
|
+
|
|
2232
2547
|
# Update the project OAuth2 Salesforce configuration.
|
|
2233
2548
|
#
|
|
2234
2549
|
# @param [String] customer_key 'Consumer Key' of Salesforce OAuth2 app. For example: 3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq
|
|
@@ -2337,6 +2652,41 @@ module Appwrite
|
|
|
2337
2652
|
)
|
|
2338
2653
|
end
|
|
2339
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
|
+
|
|
2340
2690
|
# Update the project OAuth2 Stripe configuration.
|
|
2341
2691
|
#
|
|
2342
2692
|
# @param [String] client_id 'Client ID' of Stripe OAuth2 app. For example: ca_UKibXX0000000000000000000006byvR
|
|
@@ -2512,6 +2862,41 @@ module Appwrite
|
|
|
2512
2862
|
)
|
|
2513
2863
|
end
|
|
2514
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
|
+
|
|
2515
2900
|
# Update the project OAuth2 Vipps MobilePay configuration.
|
|
2516
2901
|
#
|
|
2517
2902
|
# @param [String] client_id 'Client ID' of Vipps MobilePay OAuth2 app. For example: 9a3a4b3e-0000-0000-0000-0f1a6d1c3b2e
|
|
@@ -2582,6 +2967,41 @@ module Appwrite
|
|
|
2582
2967
|
)
|
|
2583
2968
|
end
|
|
2584
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
|
+
|
|
2585
3005
|
# Update the project OAuth2 Webflow configuration.
|
|
2586
3006
|
#
|
|
2587
3007
|
# @param [String] client_id 'Client ID' of Webflow OAuth2 app. For example: 8bb20000000000000000000000000000000000000000000000000000000040dd
|
|
@@ -2652,6 +3072,41 @@ module Appwrite
|
|
|
2652
3072
|
)
|
|
2653
3073
|
end
|
|
2654
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
|
+
|
|
2655
3110
|
# Update the project OAuth2 X configuration.
|
|
2656
3111
|
#
|
|
2657
3112
|
# @param [String] customer_key 'Customer Key' of X OAuth2 app. For example: slzZV0000000000000NFLaWT
|
|
@@ -2835,7 +3290,7 @@ module Appwrite
|
|
|
2835
3290
|
#
|
|
2836
3291
|
# @param [ProjectOAuthProviderId] provider_id OAuth2 provider key. For example: github, google, apple.
|
|
2837
3292
|
#
|
|
2838
|
-
# @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, OAuth2Naver, 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]
|
|
2839
3294
|
def get_o_auth2_provider(
|
|
2840
3295
|
provider_id:
|
|
2841
3296
|
)
|
|
@@ -2989,6 +3444,71 @@ module Appwrite
|
|
|
2989
3444
|
return Models::OAuth2HuggingFace.from(map: response)
|
|
2990
3445
|
end
|
|
2991
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
|
+
|
|
2992
3512
|
if response['$id'] == 'resend'
|
|
2993
3513
|
|
|
2994
3514
|
return Models::OAuth2Resend.from(map: response)
|
data/lib/appwrite.rb
CHANGED
|
@@ -40,6 +40,9 @@ require_relative 'appwrite/models/deployment_list'
|
|
|
40
40
|
require_relative 'appwrite/models/execution_list'
|
|
41
41
|
require_relative 'appwrite/models/project_list'
|
|
42
42
|
require_relative 'appwrite/models/webhook_list'
|
|
43
|
+
require_relative 'appwrite/models/monitor_list'
|
|
44
|
+
require_relative 'appwrite/models/alert_list'
|
|
45
|
+
require_relative 'appwrite/models/escalation_list'
|
|
43
46
|
require_relative 'appwrite/models/key_list'
|
|
44
47
|
require_relative 'appwrite/models/country_list'
|
|
45
48
|
require_relative 'appwrite/models/continent_list'
|
|
@@ -148,6 +151,10 @@ require_relative 'appwrite/models/project_auth_method'
|
|
|
148
151
|
require_relative 'appwrite/models/project_service'
|
|
149
152
|
require_relative 'appwrite/models/project_protocol'
|
|
150
153
|
require_relative 'appwrite/models/webhook'
|
|
154
|
+
require_relative 'appwrite/models/monitor'
|
|
155
|
+
require_relative 'appwrite/models/alert'
|
|
156
|
+
require_relative 'appwrite/models/escalation_step'
|
|
157
|
+
require_relative 'appwrite/models/escalation'
|
|
151
158
|
require_relative 'appwrite/models/key'
|
|
152
159
|
require_relative 'appwrite/models/ephemeral_key'
|
|
153
160
|
require_relative 'appwrite/models/mock_number'
|
|
@@ -177,6 +184,19 @@ require_relative 'appwrite/models/o_auth2_salesforce'
|
|
|
177
184
|
require_relative 'appwrite/models/o_auth2_yahoo'
|
|
178
185
|
require_relative 'appwrite/models/o_auth2_cloudflare'
|
|
179
186
|
require_relative 'appwrite/models/o_auth2_hugging_face'
|
|
187
|
+
require_relative 'appwrite/models/o_auth2_instagram'
|
|
188
|
+
require_relative 'appwrite/models/o_auth2_patreon'
|
|
189
|
+
require_relative 'appwrite/models/o_auth2_strava'
|
|
190
|
+
require_relative 'appwrite/models/o_auth2_vk'
|
|
191
|
+
require_relative 'appwrite/models/o_auth2_netlify'
|
|
192
|
+
require_relative 'appwrite/models/o_auth2_railway'
|
|
193
|
+
require_relative 'appwrite/models/o_auth2_reddit'
|
|
194
|
+
require_relative 'appwrite/models/o_auth2_vercel'
|
|
195
|
+
require_relative 'appwrite/models/o_auth2_atlassian'
|
|
196
|
+
require_relative 'appwrite/models/o_auth2_line'
|
|
197
|
+
require_relative 'appwrite/models/o_auth2_linear'
|
|
198
|
+
require_relative 'appwrite/models/o_auth2_roblox'
|
|
199
|
+
require_relative 'appwrite/models/o_auth2_work_os'
|
|
180
200
|
require_relative 'appwrite/models/o_auth2_linkedin'
|
|
181
201
|
require_relative 'appwrite/models/o_auth2_disqus'
|
|
182
202
|
require_relative 'appwrite/models/o_auth2_amazon'
|
|
@@ -379,6 +399,10 @@ require_relative 'appwrite/enums/on_duplicate'
|
|
|
379
399
|
require_relative 'appwrite/enums/firebase_migration_resource'
|
|
380
400
|
require_relative 'appwrite/enums/n_host_migration_resource'
|
|
381
401
|
require_relative 'appwrite/enums/supabase_migration_resource'
|
|
402
|
+
require_relative 'appwrite/enums/monitor_record'
|
|
403
|
+
require_relative 'appwrite/enums/monitor_severity'
|
|
404
|
+
require_relative 'appwrite/enums/monitor_method'
|
|
405
|
+
require_relative 'appwrite/enums/monitor_tls_mode'
|
|
382
406
|
require_relative 'appwrite/enums/region'
|
|
383
407
|
require_relative 'appwrite/enums/project_auth_method_id'
|
|
384
408
|
require_relative 'appwrite/enums/environment_resource'
|
|
@@ -421,6 +445,13 @@ require_relative 'appwrite/enums/deployment_status'
|
|
|
421
445
|
require_relative 'appwrite/enums/execution_resource_type'
|
|
422
446
|
require_relative 'appwrite/enums/execution_trigger'
|
|
423
447
|
require_relative 'appwrite/enums/execution_status'
|
|
448
|
+
require_relative 'appwrite/enums/monitor_type'
|
|
449
|
+
require_relative 'appwrite/enums/monitor_resource_type'
|
|
450
|
+
require_relative 'appwrite/enums/monitor_status'
|
|
451
|
+
require_relative 'appwrite/enums/monitor_result'
|
|
452
|
+
require_relative 'appwrite/enums/alert_status'
|
|
453
|
+
require_relative 'appwrite/enums/alert_metric'
|
|
454
|
+
require_relative 'appwrite/enums/alert_comparator'
|
|
424
455
|
require_relative 'appwrite/enums/o_auth2_github_prompt'
|
|
425
456
|
require_relative 'appwrite/enums/o_auth2_discord_prompt'
|
|
426
457
|
require_relative 'appwrite/enums/o_auth2_google_prompt'
|
|
@@ -442,6 +473,7 @@ require_relative 'appwrite/enums/waf_rule_action'
|
|
|
442
473
|
|
|
443
474
|
require_relative 'appwrite/services/account'
|
|
444
475
|
require_relative 'appwrite/services/activities'
|
|
476
|
+
require_relative 'appwrite/services/alerts'
|
|
445
477
|
require_relative 'appwrite/services/apps'
|
|
446
478
|
require_relative 'appwrite/services/avatars'
|
|
447
479
|
require_relative 'appwrite/services/backups'
|
|
@@ -455,6 +487,7 @@ require_relative 'appwrite/services/locale'
|
|
|
455
487
|
require_relative 'appwrite/services/messaging'
|
|
456
488
|
require_relative 'appwrite/services/migrations'
|
|
457
489
|
require_relative 'appwrite/services/mongo'
|
|
490
|
+
require_relative 'appwrite/services/monitors'
|
|
458
491
|
require_relative 'appwrite/services/mysql'
|
|
459
492
|
require_relative 'appwrite/services/oauth2'
|
|
460
493
|
require_relative 'appwrite/services/organization'
|