appwrite 25.0.0 → 25.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +19 -3
- data/lib/appwrite/enums/project_key_scopes.rb +2 -0
- data/lib/appwrite/enums/project_policy_id.rb +1 -0
- data/lib/appwrite/models/policy_password_strength.rb +52 -0
- data/lib/appwrite/models/project.rb +58 -13
- data/lib/appwrite/services/account.rb +46 -1
- data/lib/appwrite/services/activities.rb +2 -0
- data/lib/appwrite/services/advisor.rb +5 -0
- data/lib/appwrite/services/avatars.rb +8 -0
- data/lib/appwrite/services/backups.rb +12 -0
- data/lib/appwrite/services/databases.rb +71 -0
- data/lib/appwrite/services/functions.rb +26 -0
- data/lib/appwrite/services/graphql.rb +2 -0
- data/lib/appwrite/services/health.rb +51 -0
- data/lib/appwrite/services/locale.rb +8 -0
- data/lib/appwrite/services/messaging.rb +150 -0
- data/lib/appwrite/services/organization.rb +10 -0
- data/lib/appwrite/services/presences.rb +5 -0
- data/lib/appwrite/services/project.rb +230 -43
- data/lib/appwrite/services/proxy.rb +8 -0
- data/lib/appwrite/services/sites.rb +25 -0
- data/lib/appwrite/services/storage.rb +13 -0
- data/lib/appwrite/services/tables_db.rb +71 -0
- data/lib/appwrite/services/teams.rb +13 -0
- data/lib/appwrite/services/tokens.rb +5 -0
- data/lib/appwrite/services/usage.rb +2 -0
- data/lib/appwrite/services/users.rb +43 -0
- data/lib/appwrite/services/webhooks.rb +6 -0
- data/lib/appwrite.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc6d0070b3940ca846d8ecb461dacbdb9f078abd2086afc9b9e42febc14df663
|
|
4
|
+
data.tar.gz: 466949abf687dfb27cbc1ff60304612082f5df2a3e453032f3016dfdcaa47947
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 185be5d32ebd73c3160bfc2ddd2c0987cf06315a4306c18108202f189b83379ab78f71b4fd745e9fc3ece72c9a74f000a4f295f3c90b560b69557179594bbe99
|
|
7
|
+
data.tar.gz: d44619e35df9c1521abb70959cb7659e326ac13dd3f79a89a32896390835ca2de2c434ae18c1507fd5c6a7a28579275870c9ea4b06edd162e9e9aeb9e1f2ad02
|
data/lib/appwrite/client.rb
CHANGED
|
@@ -15,10 +15,11 @@ module Appwrite
|
|
|
15
15
|
'x-sdk-name'=> 'Ruby',
|
|
16
16
|
'x-sdk-platform'=> 'server',
|
|
17
17
|
'x-sdk-language'=> 'ruby',
|
|
18
|
-
'x-sdk-version'=> '25.
|
|
18
|
+
'x-sdk-version'=> '25.1.0',
|
|
19
19
|
'X-Appwrite-Response-Format' => '1.9.5'
|
|
20
20
|
}
|
|
21
21
|
@endpoint = 'https://cloud.appwrite.io/v1'
|
|
22
|
+
@config = {}
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
# Set Project
|
|
@@ -29,7 +30,7 @@ module Appwrite
|
|
|
29
30
|
#
|
|
30
31
|
# @return [self]
|
|
31
32
|
def set_project(value)
|
|
32
|
-
|
|
33
|
+
@config['project'] = value
|
|
33
34
|
|
|
34
35
|
self
|
|
35
36
|
end
|
|
@@ -43,6 +44,7 @@ module Appwrite
|
|
|
43
44
|
# @return [self]
|
|
44
45
|
def set_key(value)
|
|
45
46
|
add_header('x-appwrite-key', value)
|
|
47
|
+
@config['key'] = value
|
|
46
48
|
|
|
47
49
|
self
|
|
48
50
|
end
|
|
@@ -56,6 +58,7 @@ module Appwrite
|
|
|
56
58
|
# @return [self]
|
|
57
59
|
def set_jwt(value)
|
|
58
60
|
add_header('x-appwrite-jwt', value)
|
|
61
|
+
@config['jwt'] = value
|
|
59
62
|
|
|
60
63
|
self
|
|
61
64
|
end
|
|
@@ -67,6 +70,7 @@ module Appwrite
|
|
|
67
70
|
# @return [self]
|
|
68
71
|
def set_locale(value)
|
|
69
72
|
add_header('x-appwrite-locale', value)
|
|
73
|
+
@config['locale'] = value
|
|
70
74
|
|
|
71
75
|
self
|
|
72
76
|
end
|
|
@@ -80,6 +84,7 @@ module Appwrite
|
|
|
80
84
|
# @return [self]
|
|
81
85
|
def set_session(value)
|
|
82
86
|
add_header('x-appwrite-session', value)
|
|
87
|
+
@config['session'] = value
|
|
83
88
|
|
|
84
89
|
self
|
|
85
90
|
end
|
|
@@ -93,6 +98,7 @@ module Appwrite
|
|
|
93
98
|
# @return [self]
|
|
94
99
|
def set_forwarded_user_agent(value)
|
|
95
100
|
add_header('x-forwarded-user-agent', value)
|
|
101
|
+
@config['forwardeduseragent'] = value
|
|
96
102
|
|
|
97
103
|
self
|
|
98
104
|
end
|
|
@@ -106,6 +112,7 @@ module Appwrite
|
|
|
106
112
|
# @return [self]
|
|
107
113
|
def set_dev_key(value)
|
|
108
114
|
add_header('x-appwrite-dev-key', value)
|
|
115
|
+
@config['devkey'] = value
|
|
109
116
|
|
|
110
117
|
self
|
|
111
118
|
end
|
|
@@ -119,6 +126,7 @@ module Appwrite
|
|
|
119
126
|
# @return [self]
|
|
120
127
|
def set_cookie(value)
|
|
121
128
|
add_header('cookie', value)
|
|
129
|
+
@config['cookie'] = value
|
|
122
130
|
|
|
123
131
|
self
|
|
124
132
|
end
|
|
@@ -132,6 +140,7 @@ module Appwrite
|
|
|
132
140
|
# @return [self]
|
|
133
141
|
def set_impersonate_user_id(value)
|
|
134
142
|
add_header('x-appwrite-impersonate-user-id', value)
|
|
143
|
+
@config['impersonateuserid'] = value
|
|
135
144
|
|
|
136
145
|
self
|
|
137
146
|
end
|
|
@@ -145,6 +154,7 @@ module Appwrite
|
|
|
145
154
|
# @return [self]
|
|
146
155
|
def set_impersonate_user_email(value)
|
|
147
156
|
add_header('x-appwrite-impersonate-user-email', value)
|
|
157
|
+
@config['impersonateuseremail'] = value
|
|
148
158
|
|
|
149
159
|
self
|
|
150
160
|
end
|
|
@@ -158,10 +168,15 @@ module Appwrite
|
|
|
158
168
|
# @return [self]
|
|
159
169
|
def set_impersonate_user_phone(value)
|
|
160
170
|
add_header('x-appwrite-impersonate-user-phone', value)
|
|
171
|
+
@config['impersonateuserphone'] = value
|
|
161
172
|
|
|
162
173
|
self
|
|
163
174
|
end
|
|
164
175
|
|
|
176
|
+
def get_config(key)
|
|
177
|
+
@config[key] || ''
|
|
178
|
+
end
|
|
179
|
+
|
|
165
180
|
# Set endpoint.
|
|
166
181
|
#
|
|
167
182
|
# @param [String] endpoint The endpoint to set
|
|
@@ -223,7 +238,8 @@ module Appwrite
|
|
|
223
238
|
params: {},
|
|
224
239
|
response_type: nil
|
|
225
240
|
)
|
|
226
|
-
|
|
241
|
+
separator = path.include?('?') ? '&' : '?'
|
|
242
|
+
uri = URI.parse(@endpoint + path + ((method == "GET" && params.length) ? separator + encode(params) : ''))
|
|
227
243
|
|
|
228
244
|
fetch(method, uri, headers, params, response_type)
|
|
229
245
|
end
|
|
@@ -3,6 +3,7 @@ module Appwrite
|
|
|
3
3
|
module ProjectPolicyId
|
|
4
4
|
PASSWORD_DICTIONARY = 'password-dictionary'
|
|
5
5
|
PASSWORD_HISTORY = 'password-history'
|
|
6
|
+
PASSWORD_STRENGTH = 'password-strength'
|
|
6
7
|
PASSWORD_PERSONAL_DATA = 'password-personal-data'
|
|
7
8
|
SESSION_ALERT = 'session-alert'
|
|
8
9
|
SESSION_DURATION = 'session-duration'
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class PolicyPasswordStrength
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :min
|
|
8
|
+
attr_reader :uppercase
|
|
9
|
+
attr_reader :lowercase
|
|
10
|
+
attr_reader :number
|
|
11
|
+
attr_reader :symbols
|
|
12
|
+
|
|
13
|
+
def initialize(
|
|
14
|
+
id:,
|
|
15
|
+
min:,
|
|
16
|
+
uppercase:,
|
|
17
|
+
lowercase:,
|
|
18
|
+
number:,
|
|
19
|
+
symbols:
|
|
20
|
+
)
|
|
21
|
+
@id = id
|
|
22
|
+
@min = min
|
|
23
|
+
@uppercase = uppercase
|
|
24
|
+
@lowercase = lowercase
|
|
25
|
+
@number = number
|
|
26
|
+
@symbols = symbols
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def self.from(map:)
|
|
30
|
+
PolicyPasswordStrength.new(
|
|
31
|
+
id: map["$id"],
|
|
32
|
+
min: map["min"],
|
|
33
|
+
uppercase: map["uppercase"],
|
|
34
|
+
lowercase: map["lowercase"],
|
|
35
|
+
number: map["number"],
|
|
36
|
+
symbols: map["symbols"]
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def to_map
|
|
41
|
+
{
|
|
42
|
+
"$id": @id,
|
|
43
|
+
"min": @min,
|
|
44
|
+
"uppercase": @uppercase,
|
|
45
|
+
"lowercase": @lowercase,
|
|
46
|
+
"number": @number,
|
|
47
|
+
"symbols": @symbols
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -8,6 +8,7 @@ module Appwrite
|
|
|
8
8
|
attr_reader :updated_at
|
|
9
9
|
attr_reader :name
|
|
10
10
|
attr_reader :team_id
|
|
11
|
+
attr_reader :region
|
|
11
12
|
attr_reader :dev_keys
|
|
12
13
|
attr_reader :smtp_enabled
|
|
13
14
|
attr_reader :smtp_sender_name
|
|
@@ -26,10 +27,18 @@ module Appwrite
|
|
|
26
27
|
attr_reader :auth_methods
|
|
27
28
|
attr_reader :services
|
|
28
29
|
attr_reader :protocols
|
|
29
|
-
attr_reader :region
|
|
30
|
-
attr_reader :billing_limits
|
|
31
30
|
attr_reader :blocks
|
|
32
31
|
attr_reader :console_accessed_at
|
|
32
|
+
attr_reader :billing_limits
|
|
33
|
+
attr_reader :o_auth2_server_enabled
|
|
34
|
+
attr_reader :o_auth2_server_authorization_url
|
|
35
|
+
attr_reader :o_auth2_server_scopes
|
|
36
|
+
attr_reader :o_auth2_server_access_token_duration
|
|
37
|
+
attr_reader :o_auth2_server_refresh_token_duration
|
|
38
|
+
attr_reader :o_auth2_server_public_access_token_duration
|
|
39
|
+
attr_reader :o_auth2_server_public_refresh_token_duration
|
|
40
|
+
attr_reader :o_auth2_server_confidential_pkce
|
|
41
|
+
attr_reader :o_auth2_server_discovery_url
|
|
33
42
|
|
|
34
43
|
def initialize(
|
|
35
44
|
id:,
|
|
@@ -37,6 +46,7 @@ module Appwrite
|
|
|
37
46
|
updated_at:,
|
|
38
47
|
name:,
|
|
39
48
|
team_id:,
|
|
49
|
+
region:,
|
|
40
50
|
dev_keys:,
|
|
41
51
|
smtp_enabled:,
|
|
42
52
|
smtp_sender_name:,
|
|
@@ -55,16 +65,25 @@ module Appwrite
|
|
|
55
65
|
auth_methods:,
|
|
56
66
|
services:,
|
|
57
67
|
protocols:,
|
|
58
|
-
region:,
|
|
59
|
-
billing_limits: ,
|
|
60
68
|
blocks:,
|
|
61
|
-
console_accessed_at
|
|
69
|
+
console_accessed_at:,
|
|
70
|
+
billing_limits: ,
|
|
71
|
+
o_auth2_server_enabled:,
|
|
72
|
+
o_auth2_server_authorization_url:,
|
|
73
|
+
o_auth2_server_scopes:,
|
|
74
|
+
o_auth2_server_access_token_duration:,
|
|
75
|
+
o_auth2_server_refresh_token_duration:,
|
|
76
|
+
o_auth2_server_public_access_token_duration:,
|
|
77
|
+
o_auth2_server_public_refresh_token_duration:,
|
|
78
|
+
o_auth2_server_confidential_pkce:,
|
|
79
|
+
o_auth2_server_discovery_url:
|
|
62
80
|
)
|
|
63
81
|
@id = id
|
|
64
82
|
@created_at = created_at
|
|
65
83
|
@updated_at = updated_at
|
|
66
84
|
@name = name
|
|
67
85
|
@team_id = team_id
|
|
86
|
+
@region = region
|
|
68
87
|
@dev_keys = dev_keys
|
|
69
88
|
@smtp_enabled = smtp_enabled
|
|
70
89
|
@smtp_sender_name = smtp_sender_name
|
|
@@ -83,10 +102,18 @@ module Appwrite
|
|
|
83
102
|
@auth_methods = auth_methods
|
|
84
103
|
@services = services
|
|
85
104
|
@protocols = protocols
|
|
86
|
-
@region = region
|
|
87
|
-
@billing_limits = billing_limits
|
|
88
105
|
@blocks = blocks
|
|
89
106
|
@console_accessed_at = console_accessed_at
|
|
107
|
+
@billing_limits = billing_limits
|
|
108
|
+
@o_auth2_server_enabled = o_auth2_server_enabled
|
|
109
|
+
@o_auth2_server_authorization_url = o_auth2_server_authorization_url
|
|
110
|
+
@o_auth2_server_scopes = o_auth2_server_scopes
|
|
111
|
+
@o_auth2_server_access_token_duration = o_auth2_server_access_token_duration
|
|
112
|
+
@o_auth2_server_refresh_token_duration = o_auth2_server_refresh_token_duration
|
|
113
|
+
@o_auth2_server_public_access_token_duration = o_auth2_server_public_access_token_duration
|
|
114
|
+
@o_auth2_server_public_refresh_token_duration = o_auth2_server_public_refresh_token_duration
|
|
115
|
+
@o_auth2_server_confidential_pkce = o_auth2_server_confidential_pkce
|
|
116
|
+
@o_auth2_server_discovery_url = o_auth2_server_discovery_url
|
|
90
117
|
end
|
|
91
118
|
|
|
92
119
|
def self.from(map:)
|
|
@@ -96,6 +123,7 @@ module Appwrite
|
|
|
96
123
|
updated_at: map["$updatedAt"],
|
|
97
124
|
name: map["name"],
|
|
98
125
|
team_id: map["teamId"],
|
|
126
|
+
region: map["region"],
|
|
99
127
|
dev_keys: map["devKeys"].map { |it| DevKey.from(map: it) },
|
|
100
128
|
smtp_enabled: map["smtpEnabled"],
|
|
101
129
|
smtp_sender_name: map["smtpSenderName"],
|
|
@@ -114,10 +142,18 @@ module Appwrite
|
|
|
114
142
|
auth_methods: map["authMethods"].map { |it| ProjectAuthMethod.from(map: it) },
|
|
115
143
|
services: map["services"].map { |it| ProjectService.from(map: it) },
|
|
116
144
|
protocols: map["protocols"].map { |it| ProjectProtocol.from(map: it) },
|
|
117
|
-
region: map["region"],
|
|
118
|
-
billing_limits: BillingLimits.from(map: map["billingLimits"]),
|
|
119
145
|
blocks: map["blocks"].map { |it| Block.from(map: it) },
|
|
120
|
-
console_accessed_at: map["consoleAccessedAt"]
|
|
146
|
+
console_accessed_at: map["consoleAccessedAt"],
|
|
147
|
+
billing_limits: BillingLimits.from(map: map["billingLimits"]),
|
|
148
|
+
o_auth2_server_enabled: map["oAuth2ServerEnabled"],
|
|
149
|
+
o_auth2_server_authorization_url: map["oAuth2ServerAuthorizationUrl"],
|
|
150
|
+
o_auth2_server_scopes: map["oAuth2ServerScopes"],
|
|
151
|
+
o_auth2_server_access_token_duration: map["oAuth2ServerAccessTokenDuration"],
|
|
152
|
+
o_auth2_server_refresh_token_duration: map["oAuth2ServerRefreshTokenDuration"],
|
|
153
|
+
o_auth2_server_public_access_token_duration: map["oAuth2ServerPublicAccessTokenDuration"],
|
|
154
|
+
o_auth2_server_public_refresh_token_duration: map["oAuth2ServerPublicRefreshTokenDuration"],
|
|
155
|
+
o_auth2_server_confidential_pkce: map["oAuth2ServerConfidentialPkce"],
|
|
156
|
+
o_auth2_server_discovery_url: map["oAuth2ServerDiscoveryUrl"]
|
|
121
157
|
)
|
|
122
158
|
end
|
|
123
159
|
|
|
@@ -128,6 +164,7 @@ module Appwrite
|
|
|
128
164
|
"$updatedAt": @updated_at,
|
|
129
165
|
"name": @name,
|
|
130
166
|
"teamId": @team_id,
|
|
167
|
+
"region": @region,
|
|
131
168
|
"devKeys": @dev_keys.map { |it| it.to_map },
|
|
132
169
|
"smtpEnabled": @smtp_enabled,
|
|
133
170
|
"smtpSenderName": @smtp_sender_name,
|
|
@@ -146,10 +183,18 @@ module Appwrite
|
|
|
146
183
|
"authMethods": @auth_methods.map { |it| it.to_map },
|
|
147
184
|
"services": @services.map { |it| it.to_map },
|
|
148
185
|
"protocols": @protocols.map { |it| it.to_map },
|
|
149
|
-
"region": @region,
|
|
150
|
-
"billingLimits": @billing_limits.to_map,
|
|
151
186
|
"blocks": @blocks.map { |it| it.to_map },
|
|
152
|
-
"consoleAccessedAt": @console_accessed_at
|
|
187
|
+
"consoleAccessedAt": @console_accessed_at,
|
|
188
|
+
"billingLimits": @billing_limits.to_map,
|
|
189
|
+
"oAuth2ServerEnabled": @o_auth2_server_enabled,
|
|
190
|
+
"oAuth2ServerAuthorizationUrl": @o_auth2_server_authorization_url,
|
|
191
|
+
"oAuth2ServerScopes": @o_auth2_server_scopes,
|
|
192
|
+
"oAuth2ServerAccessTokenDuration": @o_auth2_server_access_token_duration,
|
|
193
|
+
"oAuth2ServerRefreshTokenDuration": @o_auth2_server_refresh_token_duration,
|
|
194
|
+
"oAuth2ServerPublicAccessTokenDuration": @o_auth2_server_public_access_token_duration,
|
|
195
|
+
"oAuth2ServerPublicRefreshTokenDuration": @o_auth2_server_public_refresh_token_duration,
|
|
196
|
+
"oAuth2ServerConfidentialPkce": @o_auth2_server_confidential_pkce,
|
|
197
|
+
"oAuth2ServerDiscoveryUrl": @o_auth2_server_discovery_url
|
|
153
198
|
}
|
|
154
199
|
end
|
|
155
200
|
end
|
|
@@ -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(
|
|
@@ -67,6 +68,7 @@ module Appwrite
|
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
api_headers = {
|
|
71
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
70
72
|
"content-type": 'application/json',
|
|
71
73
|
}
|
|
72
74
|
|
|
@@ -110,6 +112,7 @@ module Appwrite
|
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
api_headers = {
|
|
115
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
113
116
|
"content-type": 'application/json',
|
|
114
117
|
}
|
|
115
118
|
|
|
@@ -138,6 +141,7 @@ module Appwrite
|
|
|
138
141
|
}
|
|
139
142
|
|
|
140
143
|
api_headers = {
|
|
144
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
@client.call(
|
|
@@ -167,6 +171,7 @@ module Appwrite
|
|
|
167
171
|
}
|
|
168
172
|
|
|
169
173
|
api_headers = {
|
|
174
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
170
175
|
"content-type": 'application/json',
|
|
171
176
|
}
|
|
172
177
|
|
|
@@ -196,6 +201,7 @@ module Appwrite
|
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
api_headers = {
|
|
204
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
199
205
|
"content-type": 'application/json',
|
|
200
206
|
}
|
|
201
207
|
|
|
@@ -225,6 +231,7 @@ module Appwrite
|
|
|
225
231
|
}
|
|
226
232
|
|
|
227
233
|
api_headers = {
|
|
234
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
228
235
|
}
|
|
229
236
|
|
|
230
237
|
@client.call(
|
|
@@ -254,6 +261,7 @@ module Appwrite
|
|
|
254
261
|
}
|
|
255
262
|
|
|
256
263
|
api_headers = {
|
|
264
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
257
265
|
"content-type": 'application/json',
|
|
258
266
|
}
|
|
259
267
|
|
|
@@ -287,6 +295,7 @@ module Appwrite
|
|
|
287
295
|
}
|
|
288
296
|
|
|
289
297
|
api_headers = {
|
|
298
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
290
299
|
"content-type": 'application/json',
|
|
291
300
|
}
|
|
292
301
|
|
|
@@ -325,6 +334,7 @@ module Appwrite
|
|
|
325
334
|
}
|
|
326
335
|
|
|
327
336
|
api_headers = {
|
|
337
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
328
338
|
"content-type": 'application/json',
|
|
329
339
|
}
|
|
330
340
|
|
|
@@ -355,6 +365,7 @@ module Appwrite
|
|
|
355
365
|
}
|
|
356
366
|
|
|
357
367
|
api_headers = {
|
|
368
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
358
369
|
"content-type": 'application/json',
|
|
359
370
|
}
|
|
360
371
|
|
|
@@ -386,6 +397,7 @@ module Appwrite
|
|
|
386
397
|
}
|
|
387
398
|
|
|
388
399
|
api_headers = {
|
|
400
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
389
401
|
"content-type": 'application/json',
|
|
390
402
|
}
|
|
391
403
|
|
|
@@ -426,6 +438,7 @@ module Appwrite
|
|
|
426
438
|
}
|
|
427
439
|
|
|
428
440
|
api_headers = {
|
|
441
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
429
442
|
"content-type": 'application/json',
|
|
430
443
|
}
|
|
431
444
|
|
|
@@ -450,6 +463,7 @@ module Appwrite
|
|
|
450
463
|
}
|
|
451
464
|
|
|
452
465
|
api_headers = {
|
|
466
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
453
467
|
}
|
|
454
468
|
|
|
455
469
|
@client.call(
|
|
@@ -476,6 +490,7 @@ module Appwrite
|
|
|
476
490
|
}
|
|
477
491
|
|
|
478
492
|
api_headers = {
|
|
493
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
479
494
|
}
|
|
480
495
|
|
|
481
496
|
@client.call(
|
|
@@ -503,6 +518,7 @@ module Appwrite
|
|
|
503
518
|
}
|
|
504
519
|
|
|
505
520
|
api_headers = {
|
|
521
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
506
522
|
"content-type": 'application/json',
|
|
507
523
|
}
|
|
508
524
|
|
|
@@ -530,6 +546,7 @@ module Appwrite
|
|
|
530
546
|
}
|
|
531
547
|
|
|
532
548
|
api_headers = {
|
|
549
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
533
550
|
"content-type": 'application/json',
|
|
534
551
|
}
|
|
535
552
|
|
|
@@ -560,6 +577,7 @@ module Appwrite
|
|
|
560
577
|
}
|
|
561
578
|
|
|
562
579
|
api_headers = {
|
|
580
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
563
581
|
"content-type": 'application/json',
|
|
564
582
|
}
|
|
565
583
|
|
|
@@ -578,7 +596,7 @@ module Appwrite
|
|
|
578
596
|
# OAuth, Team Invites and Magic URL, oldPassword is optional.
|
|
579
597
|
#
|
|
580
598
|
# @param [String] password New user password. Must be at least 8 chars.
|
|
581
|
-
# @param [String] old_password Current user password.
|
|
599
|
+
# @param [String] old_password Current user password. Max length: 256 chars.
|
|
582
600
|
#
|
|
583
601
|
# @return [User]
|
|
584
602
|
def update_password(password:, old_password: nil)
|
|
@@ -594,6 +612,7 @@ module Appwrite
|
|
|
594
612
|
}
|
|
595
613
|
|
|
596
614
|
api_headers = {
|
|
615
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
597
616
|
"content-type": 'application/json',
|
|
598
617
|
}
|
|
599
618
|
|
|
@@ -634,6 +653,7 @@ module Appwrite
|
|
|
634
653
|
}
|
|
635
654
|
|
|
636
655
|
api_headers = {
|
|
656
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
637
657
|
"content-type": 'application/json',
|
|
638
658
|
}
|
|
639
659
|
|
|
@@ -658,6 +678,7 @@ module Appwrite
|
|
|
658
678
|
}
|
|
659
679
|
|
|
660
680
|
api_headers = {
|
|
681
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
661
682
|
}
|
|
662
683
|
|
|
663
684
|
@client.call(
|
|
@@ -689,6 +710,7 @@ module Appwrite
|
|
|
689
710
|
}
|
|
690
711
|
|
|
691
712
|
api_headers = {
|
|
713
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
692
714
|
"content-type": 'application/json',
|
|
693
715
|
}
|
|
694
716
|
|
|
@@ -732,6 +754,7 @@ module Appwrite
|
|
|
732
754
|
}
|
|
733
755
|
|
|
734
756
|
api_headers = {
|
|
757
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
735
758
|
"content-type": 'application/json',
|
|
736
759
|
}
|
|
737
760
|
|
|
@@ -783,6 +806,7 @@ module Appwrite
|
|
|
783
806
|
}
|
|
784
807
|
|
|
785
808
|
api_headers = {
|
|
809
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
786
810
|
"content-type": 'application/json',
|
|
787
811
|
}
|
|
788
812
|
|
|
@@ -808,6 +832,7 @@ module Appwrite
|
|
|
808
832
|
}
|
|
809
833
|
|
|
810
834
|
api_headers = {
|
|
835
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
811
836
|
}
|
|
812
837
|
|
|
813
838
|
@client.call(
|
|
@@ -832,6 +857,7 @@ module Appwrite
|
|
|
832
857
|
}
|
|
833
858
|
|
|
834
859
|
api_headers = {
|
|
860
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
835
861
|
"content-type": 'application/json',
|
|
836
862
|
}
|
|
837
863
|
|
|
@@ -861,6 +887,7 @@ module Appwrite
|
|
|
861
887
|
}
|
|
862
888
|
|
|
863
889
|
api_headers = {
|
|
890
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
864
891
|
"content-type": 'application/json',
|
|
865
892
|
}
|
|
866
893
|
|
|
@@ -902,6 +929,7 @@ module Appwrite
|
|
|
902
929
|
}
|
|
903
930
|
|
|
904
931
|
api_headers = {
|
|
932
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
905
933
|
"content-type": 'application/json',
|
|
906
934
|
}
|
|
907
935
|
|
|
@@ -943,6 +971,7 @@ module Appwrite
|
|
|
943
971
|
}
|
|
944
972
|
|
|
945
973
|
api_headers = {
|
|
974
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
946
975
|
"content-type": 'application/json',
|
|
947
976
|
}
|
|
948
977
|
|
|
@@ -984,6 +1013,7 @@ module Appwrite
|
|
|
984
1013
|
}
|
|
985
1014
|
|
|
986
1015
|
api_headers = {
|
|
1016
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
987
1017
|
"content-type": 'application/json',
|
|
988
1018
|
}
|
|
989
1019
|
|
|
@@ -1022,6 +1052,7 @@ module Appwrite
|
|
|
1022
1052
|
}
|
|
1023
1053
|
|
|
1024
1054
|
api_headers = {
|
|
1055
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1025
1056
|
"content-type": 'application/json',
|
|
1026
1057
|
}
|
|
1027
1058
|
|
|
@@ -1053,6 +1084,7 @@ module Appwrite
|
|
|
1053
1084
|
}
|
|
1054
1085
|
|
|
1055
1086
|
api_headers = {
|
|
1087
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1056
1088
|
}
|
|
1057
1089
|
|
|
1058
1090
|
@client.call(
|
|
@@ -1084,6 +1116,7 @@ module Appwrite
|
|
|
1084
1116
|
}
|
|
1085
1117
|
|
|
1086
1118
|
api_headers = {
|
|
1119
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1087
1120
|
"content-type": 'application/json',
|
|
1088
1121
|
}
|
|
1089
1122
|
|
|
@@ -1118,6 +1151,7 @@ module Appwrite
|
|
|
1118
1151
|
}
|
|
1119
1152
|
|
|
1120
1153
|
api_headers = {
|
|
1154
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1121
1155
|
"content-type": 'application/json',
|
|
1122
1156
|
}
|
|
1123
1157
|
|
|
@@ -1143,6 +1177,7 @@ module Appwrite
|
|
|
1143
1177
|
}
|
|
1144
1178
|
|
|
1145
1179
|
api_headers = {
|
|
1180
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1146
1181
|
"content-type": 'application/json',
|
|
1147
1182
|
}
|
|
1148
1183
|
|
|
@@ -1194,6 +1229,7 @@ module Appwrite
|
|
|
1194
1229
|
}
|
|
1195
1230
|
|
|
1196
1231
|
api_headers = {
|
|
1232
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1197
1233
|
"content-type": 'application/json',
|
|
1198
1234
|
}
|
|
1199
1235
|
|
|
@@ -1247,6 +1283,7 @@ module Appwrite
|
|
|
1247
1283
|
}
|
|
1248
1284
|
|
|
1249
1285
|
api_headers = {
|
|
1286
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1250
1287
|
"content-type": 'application/json',
|
|
1251
1288
|
}
|
|
1252
1289
|
|
|
@@ -1296,6 +1333,7 @@ module Appwrite
|
|
|
1296
1333
|
}
|
|
1297
1334
|
|
|
1298
1335
|
api_headers = {
|
|
1336
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1299
1337
|
}
|
|
1300
1338
|
|
|
1301
1339
|
@client.call(
|
|
@@ -1340,6 +1378,7 @@ module Appwrite
|
|
|
1340
1378
|
}
|
|
1341
1379
|
|
|
1342
1380
|
api_headers = {
|
|
1381
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1343
1382
|
"content-type": 'application/json',
|
|
1344
1383
|
}
|
|
1345
1384
|
|
|
@@ -1384,6 +1423,7 @@ module Appwrite
|
|
|
1384
1423
|
}
|
|
1385
1424
|
|
|
1386
1425
|
api_headers = {
|
|
1426
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1387
1427
|
"content-type": 'application/json',
|
|
1388
1428
|
}
|
|
1389
1429
|
|
|
@@ -1431,6 +1471,7 @@ module Appwrite
|
|
|
1431
1471
|
}
|
|
1432
1472
|
|
|
1433
1473
|
api_headers = {
|
|
1474
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1434
1475
|
"content-type": 'application/json',
|
|
1435
1476
|
}
|
|
1436
1477
|
|
|
@@ -1470,6 +1511,7 @@ module Appwrite
|
|
|
1470
1511
|
}
|
|
1471
1512
|
|
|
1472
1513
|
api_headers = {
|
|
1514
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1473
1515
|
"content-type": 'application/json',
|
|
1474
1516
|
}
|
|
1475
1517
|
|
|
@@ -1512,6 +1554,7 @@ module Appwrite
|
|
|
1512
1554
|
}
|
|
1513
1555
|
|
|
1514
1556
|
api_headers = {
|
|
1557
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1515
1558
|
"content-type": 'application/json',
|
|
1516
1559
|
}
|
|
1517
1560
|
|
|
@@ -1543,6 +1586,7 @@ module Appwrite
|
|
|
1543
1586
|
}
|
|
1544
1587
|
|
|
1545
1588
|
api_headers = {
|
|
1589
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1546
1590
|
"content-type": 'application/json',
|
|
1547
1591
|
}
|
|
1548
1592
|
|
|
@@ -1582,6 +1626,7 @@ module Appwrite
|
|
|
1582
1626
|
}
|
|
1583
1627
|
|
|
1584
1628
|
api_headers = {
|
|
1629
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
1585
1630
|
"content-type": 'application/json',
|
|
1586
1631
|
}
|
|
1587
1632
|
|