appwrite 9.0.1 → 10.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +1 -1
- data/lib/appwrite/services/functions.rb +1 -5
- data/lib/appwrite/services/teams.rb +2 -6
- data/lib/appwrite/services/users.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d5c5b64f3c5542a42ce36575c69c578044089ee688d3fb399c5528bd7e606d6
|
4
|
+
data.tar.gz: 932d79d838f53ea8502729f4088bc4a04e828942344b54c693176bac47e983e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 466b53426f967b9cc995a3681a3cecc966eb46b030496ea11583c9f64ee2872ffc408e8354c41dc84b6623d23b9da0df1de79ddf8ef80d9116f796ed5b31ea35
|
7
|
+
data.tar.gz: 8eaf1129799d71e314f29e40136d323aa4726d38db39d5edd3054e6f1003377e339e80fb83c7091fc23ccd2ccc04b9d7d8cad9ee5f40dce17ce21df9fe30e9a9
|
data/lib/appwrite/client.rb
CHANGED
@@ -188,7 +188,7 @@ module Appwrite
|
|
188
188
|
# @param [String] provider_root_directory Path to function code in the linked repo.
|
189
189
|
#
|
190
190
|
# @return [Function]
|
191
|
-
def update(function_id:, name:, runtime
|
191
|
+
def update(function_id:, name:, runtime: nil, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil)
|
192
192
|
api_path = '/functions/{functionId}'
|
193
193
|
.gsub('{functionId}', function_id)
|
194
194
|
|
@@ -200,10 +200,6 @@ module Appwrite
|
|
200
200
|
raise Appwrite::Exception.new('Missing required parameter: "name"')
|
201
201
|
end
|
202
202
|
|
203
|
-
if runtime.nil?
|
204
|
-
raise Appwrite::Exception.new('Missing required parameter: "runtime"')
|
205
|
-
end
|
206
|
-
|
207
203
|
api_params = {
|
208
204
|
name: name,
|
209
205
|
runtime: runtime,
|
@@ -231,14 +231,14 @@ module Appwrite
|
|
231
231
|
#
|
232
232
|
# @param [String] team_id Team ID.
|
233
233
|
# @param [Array] roles Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
|
234
|
-
# @param [String] url URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
235
234
|
# @param [String] email Email of the new team member.
|
236
235
|
# @param [String] user_id ID of the user to be added to a team.
|
237
236
|
# @param [String] phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
|
237
|
+
# @param [String] url URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
238
238
|
# @param [String] name Name of the new team member. Max length: 128 chars.
|
239
239
|
#
|
240
240
|
# @return [Membership]
|
241
|
-
def create_membership(team_id:, roles:,
|
241
|
+
def create_membership(team_id:, roles:, email: nil, user_id: nil, phone: nil, url: nil, name: nil)
|
242
242
|
api_path = '/teams/{teamId}/memberships'
|
243
243
|
.gsub('{teamId}', team_id)
|
244
244
|
|
@@ -250,10 +250,6 @@ module Appwrite
|
|
250
250
|
raise Appwrite::Exception.new('Missing required parameter: "roles"')
|
251
251
|
end
|
252
252
|
|
253
|
-
if url.nil?
|
254
|
-
raise Appwrite::Exception.new('Missing required parameter: "url"')
|
255
|
-
end
|
256
|
-
|
257
253
|
api_params = {
|
258
254
|
email: email,
|
259
255
|
userId: user_id,
|
@@ -617,7 +617,7 @@ module Appwrite
|
|
617
617
|
# docs](/docs/permissions) for more info.
|
618
618
|
#
|
619
619
|
# @param [String] user_id User ID.
|
620
|
-
# @param [Array] labels Array of user labels. Replaces the previous labels. Maximum of
|
620
|
+
# @param [Array] labels Array of user labels. Replaces the previous labels. Maximum of 100 labels are allowed, each up to 36 alphanumeric characters long.
|
621
621
|
#
|
622
622
|
# @return [User]
|
623
623
|
def update_labels(user_id:, labels:)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appwrite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 10.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Appwrite Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|