appwrite 13.1.0 → 14.0.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c1880b74a4373dc30f610c1edc6153ba4cc1afc40ca5070a0028795b1f1e465
|
4
|
+
data.tar.gz: 93655616285c03f1f60c3ea54397f5425ecf804807d7d58a1d7d9ef6258d5eef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5ddaebf14d25e2f092414d929cb6188bbd061c9d08a9263f698115d42d9fb1e9e94e7df94396eea1e98e4aed58e7d1ebf440b75359f40bdabc16d5b62b12d56
|
7
|
+
data.tar.gz: 07dc77005a0776013e695e6317e4673b4757a0cb8cee9d0cf99839839c956b93030c19caaf7d3a46fca55577481b483d28e738da0c0c858efd3435d3eb10a862
|
data/lib/appwrite/client.rb
CHANGED
@@ -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'=> '
|
18
|
+
'x-sdk-version'=> '14.0.0',
|
19
19
|
'X-Appwrite-Response-Format' => '1.6.0'
|
20
20
|
}
|
21
21
|
@endpoint = 'https://cloud.appwrite.io/v1'
|
@@ -104,7 +104,7 @@ module Appwrite
|
|
104
104
|
# @return [self]
|
105
105
|
def set_endpoint(endpoint)
|
106
106
|
@endpoint = endpoint
|
107
|
-
|
107
|
+
|
108
108
|
self
|
109
109
|
end
|
110
110
|
|
@@ -187,7 +187,7 @@ module Appwrite
|
|
187
187
|
|
188
188
|
offset = 0
|
189
189
|
id_param_name = id_param_name.to_sym if id_param_name
|
190
|
-
if id_param_name&.empty? == false
|
190
|
+
if id_param_name&.empty? == false
|
191
191
|
# Make a request to check if a file already exists
|
192
192
|
current = call(
|
193
193
|
method: "GET",
|
@@ -257,7 +257,7 @@ module Appwrite
|
|
257
257
|
@http = Net::HTTP.new(uri.host, uri.port) unless defined? @http
|
258
258
|
@http.use_ssl = !@self_signed
|
259
259
|
payload = ''
|
260
|
-
|
260
|
+
|
261
261
|
headers = @headers.merge(headers)
|
262
262
|
|
263
263
|
params.compact!
|
@@ -292,7 +292,7 @@ module Appwrite
|
|
292
292
|
if response_type == "location"
|
293
293
|
return location
|
294
294
|
end
|
295
|
-
|
295
|
+
|
296
296
|
# Handle Redirects
|
297
297
|
if (response.class == Net::HTTPRedirection || response.class == Net::HTTPMovedPermanently)
|
298
298
|
uri = URI.parse(uri.scheme + "://" + uri.host + "" + location)
|
@@ -327,7 +327,7 @@ module Appwrite
|
|
327
327
|
|
328
328
|
return response
|
329
329
|
end
|
330
|
-
|
330
|
+
|
331
331
|
def encode_form_data(value, key=nil)
|
332
332
|
case value
|
333
333
|
when Hash
|
@@ -359,13 +359,13 @@ module Appwrite
|
|
359
359
|
when Hash then value.map { |k,v| encode(v, append_key(key,k)) }.join('&')
|
360
360
|
when Array then value.map { |v| encode(v, "#{key}[]") }.join('&')
|
361
361
|
when nil then ''
|
362
|
-
else
|
363
|
-
"#{key}=#{CGI.escape(value.to_s)}"
|
362
|
+
else
|
363
|
+
"#{key}=#{CGI.escape(value.to_s)}"
|
364
364
|
end
|
365
365
|
end
|
366
366
|
|
367
367
|
def append_key(root_key, key)
|
368
368
|
root_key.nil? ? key : "#{root_key}[#{key.to_s}]"
|
369
369
|
end
|
370
|
-
end
|
370
|
+
end
|
371
371
|
end
|
@@ -405,7 +405,7 @@ module Appwrite
|
|
405
405
|
# @param [String] challenge_id ID of the challenge.
|
406
406
|
# @param [String] otp Valid verification token.
|
407
407
|
#
|
408
|
-
# @return []
|
408
|
+
# @return [Session]
|
409
409
|
def update_mfa_challenge(challenge_id:, otp:)
|
410
410
|
api_path = '/account/mfa/challenge'
|
411
411
|
|
@@ -431,6 +431,7 @@ module Appwrite
|
|
431
431
|
path: api_path,
|
432
432
|
headers: api_headers,
|
433
433
|
params: api_params,
|
434
|
+
response_type: Models::Session
|
434
435
|
)
|
435
436
|
end
|
436
437
|
|
@@ -499,7 +499,11 @@ module Appwrite
|
|
499
499
|
end
|
500
500
|
|
501
501
|
|
502
|
-
#
|
502
|
+
# Create a new build for an existing function deployment. This endpoint
|
503
|
+
# allows you to rebuild a deployment with the updated function configuration,
|
504
|
+
# including its entrypoint and build commands if they have been modified The
|
505
|
+
# build process will be queued and executed asynchronously. The original
|
506
|
+
# deployment's code will be preserved and used for the new build.
|
503
507
|
#
|
504
508
|
# @param [String] function_id Function ID.
|
505
509
|
# @param [String] deployment_id Deployment ID.
|
@@ -536,7 +540,11 @@ module Appwrite
|
|
536
540
|
end
|
537
541
|
|
538
542
|
|
539
|
-
#
|
543
|
+
# Cancel an ongoing function deployment build. If the build is already in
|
544
|
+
# progress, it will be stopped and marked as canceled. If the build hasn't
|
545
|
+
# started yet, it will be marked as canceled without executing. You cannot
|
546
|
+
# cancel builds that have already completed (status 'ready') or failed. The
|
547
|
+
# response includes the final build status and details.
|
540
548
|
#
|
541
549
|
# @param [String] function_id Function ID.
|
542
550
|
# @param [String] deployment_id Deployment ID.
|
@@ -791,7 +791,7 @@ module Appwrite
|
|
791
791
|
# @param [String] user_id User ID.
|
792
792
|
# @param [AuthenticatorType] type Type of authenticator.
|
793
793
|
#
|
794
|
-
# @return [
|
794
|
+
# @return []
|
795
795
|
def delete_mfa_authenticator(user_id:, type:)
|
796
796
|
api_path = '/users/{userId}/mfa/authenticators/{type}'
|
797
797
|
.gsub('{userId}', user_id)
|
@@ -817,7 +817,6 @@ module Appwrite
|
|
817
817
|
path: api_path,
|
818
818
|
headers: api_headers,
|
819
819
|
params: api_params,
|
820
|
-
response_type: Models::User
|
821
820
|
)
|
822
821
|
end
|
823
822
|
|
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: 14.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: 2025-01-
|
11
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|