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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18592d674132d41fd96084e13cd69f58286ed43bfde4be1bc74401e72b3a3c94
4
- data.tar.gz: 370cb83347b54e2fb9008e7bd64a2d63e4318943e2688c54898da05416b0be96
3
+ metadata.gz: 2d5c5b64f3c5542a42ce36575c69c578044089ee688d3fb399c5528bd7e606d6
4
+ data.tar.gz: 932d79d838f53ea8502729f4088bc4a04e828942344b54c693176bac47e983e6
5
5
  SHA512:
6
- metadata.gz: ad64a8dd43d47dd5a161e19ac7dd46c318f0d68102e81e9afe5e8602969b22b5cf18162eb9affc8f6bc18488f653aade7e546b0a901c3e2420d4279dbb70a072
7
- data.tar.gz: dad348a020f49a082a50096966c447dfb618689fa4ac87d014d275d9415f71fb0047d24ec765f6f7b7672adaa6d268d050326857bf8700812023b446412a412e
6
+ metadata.gz: 466b53426f967b9cc995a3681a3cecc966eb46b030496ea11583c9f64ee2872ffc408e8354c41dc84b6623d23b9da0df1de79ddf8ef80d9116f796ed5b31ea35
7
+ data.tar.gz: 8eaf1129799d71e314f29e40136d323aa4726d38db39d5edd3054e6f1003377e339e80fb83c7091fc23ccd2ccc04b9d7d8cad9ee5f40dce17ce21df9fe30e9a9
@@ -15,7 +15,7 @@ module Appwrite
15
15
  'x-sdk-name'=> 'Ruby',
16
16
  'x-sdk-platform'=> 'server',
17
17
  'x-sdk-language'=> 'ruby',
18
- 'x-sdk-version'=> '9.0.1',
18
+ 'x-sdk-version'=> '10.0.0',
19
19
  'X-Appwrite-Response-Format' => '1.4.0'
20
20
  }
21
21
  @endpoint = 'https://HOSTNAME/v1'
@@ -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:, 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)
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:, url:, email: nil, user_id: nil, phone: nil, name: nil)
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 5 labels are allowed, each up to 36 alphanumeric characters long.
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: 9.0.1
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-01 00:00:00.000000000 Z
11
+ date: 2023-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types