appwrite 14.0.0 → 15.1.0.pre.rc.1
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 +8 -4
- data/lib/appwrite/enums/credit_card.rb +1 -0
- data/lib/appwrite/enums/name.rb +2 -2
- data/lib/appwrite/enums/o_auth_provider.rb +1 -0
- data/lib/appwrite/services/account.rb +1 -10
- data/lib/appwrite/services/avatars.rb +1 -8
- data/lib/appwrite/services/databases.rb +173 -30
- data/lib/appwrite/services/functions.rb +0 -11
- data/lib/appwrite/services/health.rb +7 -54
- data/lib/appwrite/services/locale.rb +0 -8
- data/lib/appwrite/services/messaging.rb +9 -16
- data/lib/appwrite/services/storage.rb +0 -7
- data/lib/appwrite/services/teams.rb +0 -5
- data/lib/appwrite/services/users.rb +0 -11
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22ac14a149342eb6eff26e7ddb8a9393408f4ad59f507869ce6c3e63e9341706
|
4
|
+
data.tar.gz: 3d71263b960797f1c6a9aca1c7c088eddc2d271a0820b66761bf7dcafefc18c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ced3159ac2f55558555e60c3dcbf324e8d5ca230b863fdcbf02f72a9bb3e8b3c95afbade6313aebca6b54ee7cc20d5eac488aec726627809e7540a64ff1e0d4d
|
7
|
+
data.tar.gz: ef1c92cfc2362818c79a95ccd60a8c7f1045a5324e1a877fb977569230b88ba45b30b7ed4f02a9b11c05a7c01fd0efef0e8786d5a4832f9b108c9c74d8e53643
|
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'=> '15.1.0-rc.1',
|
19
19
|
'X-Appwrite-Response-Format' => '1.6.0'
|
20
20
|
}
|
21
21
|
@endpoint = 'https://cloud.appwrite.io/v1'
|
@@ -103,6 +103,10 @@ module Appwrite
|
|
103
103
|
#
|
104
104
|
# @return [self]
|
105
105
|
def set_endpoint(endpoint)
|
106
|
+
if not endpoint.start_with?('http://') and not endpoint.start_with?('https://')
|
107
|
+
raise Appwrite::Exception.new('Invalid endpoint URL: ' + endpoint)
|
108
|
+
end
|
109
|
+
|
106
110
|
@endpoint = endpoint
|
107
111
|
|
108
112
|
self
|
@@ -303,11 +307,11 @@ module Appwrite
|
|
303
307
|
begin
|
304
308
|
result = JSON.parse(response.body)
|
305
309
|
rescue JSON::ParserError => e
|
306
|
-
raise Appwrite::Exception.new(response.body, response.code, nil, response)
|
310
|
+
raise Appwrite::Exception.new(response.body, response.code, nil, response.body)
|
307
311
|
end
|
308
312
|
|
309
313
|
if response.code.to_i >= 400
|
310
|
-
raise Appwrite::Exception.new(result['message'], result['status'], result['type'],
|
314
|
+
raise Appwrite::Exception.new(result['message'], result['status'], result['type'], response.body)
|
311
315
|
end
|
312
316
|
|
313
317
|
unless response_type.respond_to?("from")
|
@@ -318,7 +322,7 @@ module Appwrite
|
|
318
322
|
end
|
319
323
|
|
320
324
|
if response.code.to_i >= 400
|
321
|
-
raise Appwrite::Exception.new(response.body, response.code, response)
|
325
|
+
raise Appwrite::Exception.new(response.body, response.code, response, response.body)
|
322
326
|
end
|
323
327
|
|
324
328
|
if response.respond_to?("body_permitted?")
|
data/lib/appwrite/enums/name.rb
CHANGED
@@ -6,8 +6,8 @@ module Appwrite
|
|
6
6
|
V1_AUDITS = 'v1-audits'
|
7
7
|
V1_MAILS = 'v1-mails'
|
8
8
|
V1_FUNCTIONS = 'v1-functions'
|
9
|
-
|
10
|
-
|
9
|
+
V1_STATS_RESOURCES = 'v1-stats-resources'
|
10
|
+
V1_STATS_USAGE = 'v1-stats-usage'
|
11
11
|
V1_WEBHOOKS = 'v1-webhooks'
|
12
12
|
V1_CERTIFICATES = 'v1-certificates'
|
13
13
|
V1_BUILDS = 'v1-builds'
|
@@ -18,7 +18,6 @@ module Appwrite
|
|
18
18
|
}
|
19
19
|
|
20
20
|
api_headers = {
|
21
|
-
"content-type": 'application/json',
|
22
21
|
}
|
23
22
|
|
24
23
|
@client.call(
|
@@ -137,7 +136,6 @@ module Appwrite
|
|
137
136
|
}
|
138
137
|
|
139
138
|
api_headers = {
|
140
|
-
"content-type": 'application/json',
|
141
139
|
}
|
142
140
|
|
143
141
|
@client.call(
|
@@ -221,7 +219,6 @@ module Appwrite
|
|
221
219
|
}
|
222
220
|
|
223
221
|
api_headers = {
|
224
|
-
"content-type": 'application/json',
|
225
222
|
}
|
226
223
|
|
227
224
|
@client.call(
|
@@ -447,7 +444,6 @@ module Appwrite
|
|
447
444
|
}
|
448
445
|
|
449
446
|
api_headers = {
|
450
|
-
"content-type": 'application/json',
|
451
447
|
}
|
452
448
|
|
453
449
|
@client.call(
|
@@ -474,7 +470,6 @@ module Appwrite
|
|
474
470
|
}
|
475
471
|
|
476
472
|
api_headers = {
|
477
|
-
"content-type": 'application/json',
|
478
473
|
}
|
479
474
|
|
480
475
|
@client.call(
|
@@ -657,7 +652,6 @@ module Appwrite
|
|
657
652
|
}
|
658
653
|
|
659
654
|
api_headers = {
|
660
|
-
"content-type": 'application/json',
|
661
655
|
}
|
662
656
|
|
663
657
|
@client.call(
|
@@ -808,7 +802,6 @@ module Appwrite
|
|
808
802
|
}
|
809
803
|
|
810
804
|
api_headers = {
|
811
|
-
"content-type": 'application/json',
|
812
805
|
}
|
813
806
|
|
814
807
|
@client.call(
|
@@ -1048,7 +1041,6 @@ module Appwrite
|
|
1048
1041
|
}
|
1049
1042
|
|
1050
1043
|
api_headers = {
|
1051
|
-
"content-type": 'application/json',
|
1052
1044
|
}
|
1053
1045
|
|
1054
1046
|
@client.call(
|
@@ -1267,7 +1259,7 @@ module Appwrite
|
|
1267
1259
|
# about session
|
1268
1260
|
# limits](https://appwrite.io/docs/authentication-security#limits).
|
1269
1261
|
#
|
1270
|
-
# @param [OAuthProvider] provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
|
1262
|
+
# @param [OAuthProvider] provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
|
1271
1263
|
# @param [String] success URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's 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.
|
1272
1264
|
# @param [String] failure URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's 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.
|
1273
1265
|
# @param [Array] scopes A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.
|
@@ -1288,7 +1280,6 @@ module Appwrite
|
|
1288
1280
|
}
|
1289
1281
|
|
1290
1282
|
api_headers = {
|
1291
|
-
"content-type": 'application/json',
|
1292
1283
|
}
|
1293
1284
|
|
1294
1285
|
@client.call(
|
@@ -39,7 +39,6 @@ module Appwrite
|
|
39
39
|
}
|
40
40
|
|
41
41
|
api_headers = {
|
42
|
-
"content-type": 'application/json',
|
43
42
|
}
|
44
43
|
|
45
44
|
@client.call(
|
@@ -61,7 +60,7 @@ module Appwrite
|
|
61
60
|
# of image returned is 100x100px.
|
62
61
|
#
|
63
62
|
#
|
64
|
-
# @param [CreditCard] code Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.
|
63
|
+
# @param [CreditCard] code Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.
|
65
64
|
# @param [Integer] width Image width. Pass an integer between 0 to 2000. Defaults to 100.
|
66
65
|
# @param [Integer] height Image height. Pass an integer between 0 to 2000. Defaults to 100.
|
67
66
|
# @param [Integer] quality Image quality. Pass an integer between 0 to 100. Defaults to 100.
|
@@ -82,7 +81,6 @@ module Appwrite
|
|
82
81
|
}
|
83
82
|
|
84
83
|
api_headers = {
|
85
|
-
"content-type": 'application/json',
|
86
84
|
}
|
87
85
|
|
88
86
|
@client.call(
|
@@ -114,7 +112,6 @@ module Appwrite
|
|
114
112
|
}
|
115
113
|
|
116
114
|
api_headers = {
|
117
|
-
"content-type": 'application/json',
|
118
115
|
}
|
119
116
|
|
120
117
|
@client.call(
|
@@ -158,7 +155,6 @@ module Appwrite
|
|
158
155
|
}
|
159
156
|
|
160
157
|
api_headers = {
|
161
|
-
"content-type": 'application/json',
|
162
158
|
}
|
163
159
|
|
164
160
|
@client.call(
|
@@ -201,7 +197,6 @@ module Appwrite
|
|
201
197
|
}
|
202
198
|
|
203
199
|
api_headers = {
|
204
|
-
"content-type": 'application/json',
|
205
200
|
}
|
206
201
|
|
207
202
|
@client.call(
|
@@ -247,7 +242,6 @@ module Appwrite
|
|
247
242
|
}
|
248
243
|
|
249
244
|
api_headers = {
|
250
|
-
"content-type": 'application/json',
|
251
245
|
}
|
252
246
|
|
253
247
|
@client.call(
|
@@ -284,7 +278,6 @@ module Appwrite
|
|
284
278
|
}
|
285
279
|
|
286
280
|
api_headers = {
|
287
|
-
"content-type": 'application/json',
|
288
281
|
}
|
289
282
|
|
290
283
|
@client.call(
|
@@ -23,7 +23,6 @@ module Appwrite
|
|
23
23
|
}
|
24
24
|
|
25
25
|
api_headers = {
|
26
|
-
"content-type": 'application/json',
|
27
26
|
}
|
28
27
|
|
29
28
|
@client.call(
|
@@ -93,7 +92,6 @@ module Appwrite
|
|
93
92
|
}
|
94
93
|
|
95
94
|
api_headers = {
|
96
|
-
"content-type": 'application/json',
|
97
95
|
}
|
98
96
|
|
99
97
|
@client.call(
|
@@ -196,7 +194,6 @@ module Appwrite
|
|
196
194
|
}
|
197
195
|
|
198
196
|
api_headers = {
|
199
|
-
"content-type": 'application/json',
|
200
197
|
}
|
201
198
|
|
202
199
|
@client.call(
|
@@ -284,7 +281,6 @@ module Appwrite
|
|
284
281
|
}
|
285
282
|
|
286
283
|
api_headers = {
|
287
|
-
"content-type": 'application/json',
|
288
284
|
}
|
289
285
|
|
290
286
|
@client.call(
|
@@ -406,7 +402,6 @@ module Appwrite
|
|
406
402
|
}
|
407
403
|
|
408
404
|
api_headers = {
|
409
|
-
"content-type": 'application/json',
|
410
405
|
}
|
411
406
|
|
412
407
|
@client.call(
|
@@ -939,13 +934,13 @@ module Appwrite
|
|
939
934
|
# @param [String] collection_id Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
|
940
935
|
# @param [String] key Attribute Key.
|
941
936
|
# @param [] required Is attribute required?
|
937
|
+
# @param [Float] default Default value for attribute when not provided. Cannot be set when attribute is required.
|
942
938
|
# @param [Float] min Minimum value to enforce on new documents
|
943
939
|
# @param [Float] max Maximum value to enforce on new documents
|
944
|
-
# @param [Float] default Default value for attribute when not provided. Cannot be set when attribute is required.
|
945
940
|
# @param [String] new_key New attribute key.
|
946
941
|
#
|
947
942
|
# @return [AttributeFloat]
|
948
|
-
def update_float_attribute(database_id:, collection_id:, key:, required:,
|
943
|
+
def update_float_attribute(database_id:, collection_id:, key:, required:, default:, min: nil, max: nil, new_key: nil)
|
949
944
|
api_path = '/databases/{databaseId}/collections/{collectionId}/attributes/float/{key}'
|
950
945
|
.gsub('{databaseId}', database_id)
|
951
946
|
.gsub('{collectionId}', collection_id)
|
@@ -967,14 +962,6 @@ module Appwrite
|
|
967
962
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
968
963
|
end
|
969
964
|
|
970
|
-
if min.nil?
|
971
|
-
raise Appwrite::Exception.new('Missing required parameter: "min"')
|
972
|
-
end
|
973
|
-
|
974
|
-
if max.nil?
|
975
|
-
raise Appwrite::Exception.new('Missing required parameter: "max"')
|
976
|
-
end
|
977
|
-
|
978
965
|
if default.nil?
|
979
966
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
980
967
|
end
|
@@ -1067,13 +1054,13 @@ module Appwrite
|
|
1067
1054
|
# @param [String] collection_id Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
|
1068
1055
|
# @param [String] key Attribute Key.
|
1069
1056
|
# @param [] required Is attribute required?
|
1057
|
+
# @param [Integer] default Default value for attribute when not provided. Cannot be set when attribute is required.
|
1070
1058
|
# @param [Integer] min Minimum value to enforce on new documents
|
1071
1059
|
# @param [Integer] max Maximum value to enforce on new documents
|
1072
|
-
# @param [Integer] default Default value for attribute when not provided. Cannot be set when attribute is required.
|
1073
1060
|
# @param [String] new_key New attribute key.
|
1074
1061
|
#
|
1075
1062
|
# @return [AttributeInteger]
|
1076
|
-
def update_integer_attribute(database_id:, collection_id:, key:, required:,
|
1063
|
+
def update_integer_attribute(database_id:, collection_id:, key:, required:, default:, min: nil, max: nil, new_key: nil)
|
1077
1064
|
api_path = '/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key}'
|
1078
1065
|
.gsub('{databaseId}', database_id)
|
1079
1066
|
.gsub('{collectionId}', collection_id)
|
@@ -1095,14 +1082,6 @@ module Appwrite
|
|
1095
1082
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
1096
1083
|
end
|
1097
1084
|
|
1098
|
-
if min.nil?
|
1099
|
-
raise Appwrite::Exception.new('Missing required parameter: "min"')
|
1100
|
-
end
|
1101
|
-
|
1102
|
-
if max.nil?
|
1103
|
-
raise Appwrite::Exception.new('Missing required parameter: "max"')
|
1104
|
-
end
|
1105
|
-
|
1106
1085
|
if default.nil?
|
1107
1086
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
1108
1087
|
end
|
@@ -1559,7 +1538,6 @@ module Appwrite
|
|
1559
1538
|
}
|
1560
1539
|
|
1561
1540
|
api_headers = {
|
1562
|
-
"content-type": 'application/json',
|
1563
1541
|
}
|
1564
1542
|
|
1565
1543
|
@client.call(
|
@@ -1686,7 +1664,6 @@ module Appwrite
|
|
1686
1664
|
}
|
1687
1665
|
|
1688
1666
|
api_headers = {
|
1689
|
-
"content-type": 'application/json',
|
1690
1667
|
}
|
1691
1668
|
|
1692
1669
|
@client.call(
|
@@ -1752,6 +1729,175 @@ module Appwrite
|
|
1752
1729
|
end
|
1753
1730
|
|
1754
1731
|
|
1732
|
+
# Create new Documents. Before using this route, you should create a new
|
1733
|
+
# collection resource using either a [server
|
1734
|
+
# integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
|
1735
|
+
# API or directly from your database console.
|
1736
|
+
#
|
1737
|
+
#
|
1738
|
+
# @param [String] database_id Database ID.
|
1739
|
+
# @param [String] collection_id Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.
|
1740
|
+
# @param [Array] documents Array of documents data as JSON objects.
|
1741
|
+
#
|
1742
|
+
# @return [DocumentList]
|
1743
|
+
def create_documents(database_id:, collection_id:, documents:)
|
1744
|
+
api_path = '/databases/{databaseId}/collections/{collectionId}/documents'
|
1745
|
+
.gsub('{databaseId}', database_id)
|
1746
|
+
.gsub('{collectionId}', collection_id)
|
1747
|
+
|
1748
|
+
if database_id.nil?
|
1749
|
+
raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
if collection_id.nil?
|
1753
|
+
raise Appwrite::Exception.new('Missing required parameter: "collectionId"')
|
1754
|
+
end
|
1755
|
+
|
1756
|
+
if documents.nil?
|
1757
|
+
raise Appwrite::Exception.new('Missing required parameter: "documents"')
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
api_params = {
|
1761
|
+
documents: documents,
|
1762
|
+
}
|
1763
|
+
|
1764
|
+
api_headers = {
|
1765
|
+
"content-type": 'application/json',
|
1766
|
+
}
|
1767
|
+
|
1768
|
+
@client.call(
|
1769
|
+
method: 'POST',
|
1770
|
+
path: api_path,
|
1771
|
+
headers: api_headers,
|
1772
|
+
params: api_params,
|
1773
|
+
response_type: Models::DocumentList
|
1774
|
+
)
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
|
1778
|
+
# Create or update Documents. Before using this route, you should create a
|
1779
|
+
# new collection resource using either a [server
|
1780
|
+
# integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
|
1781
|
+
# API or directly from your database console.
|
1782
|
+
#
|
1783
|
+
#
|
1784
|
+
# @param [String] database_id Database ID.
|
1785
|
+
# @param [String] collection_id Collection ID.
|
1786
|
+
# @param [Array] documents Array of document data as JSON objects. May contain partial documents.
|
1787
|
+
#
|
1788
|
+
# @return [DocumentList]
|
1789
|
+
def upsert_documents(database_id:, collection_id:, documents: nil)
|
1790
|
+
api_path = '/databases/{databaseId}/collections/{collectionId}/documents'
|
1791
|
+
.gsub('{databaseId}', database_id)
|
1792
|
+
.gsub('{collectionId}', collection_id)
|
1793
|
+
|
1794
|
+
if database_id.nil?
|
1795
|
+
raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
|
1796
|
+
end
|
1797
|
+
|
1798
|
+
if collection_id.nil?
|
1799
|
+
raise Appwrite::Exception.new('Missing required parameter: "collectionId"')
|
1800
|
+
end
|
1801
|
+
|
1802
|
+
api_params = {
|
1803
|
+
documents: documents,
|
1804
|
+
}
|
1805
|
+
|
1806
|
+
api_headers = {
|
1807
|
+
"content-type": 'application/json',
|
1808
|
+
}
|
1809
|
+
|
1810
|
+
@client.call(
|
1811
|
+
method: 'PUT',
|
1812
|
+
path: api_path,
|
1813
|
+
headers: api_headers,
|
1814
|
+
params: api_params,
|
1815
|
+
response_type: Models::DocumentList
|
1816
|
+
)
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
|
1820
|
+
# Update all documents that match your queries, if no queries are submitted
|
1821
|
+
# then all documents are updated. You can pass only specific fields to be
|
1822
|
+
# updated.
|
1823
|
+
#
|
1824
|
+
# @param [String] database_id Database ID.
|
1825
|
+
# @param [String] collection_id Collection ID.
|
1826
|
+
# @param [Hash] data Document data as JSON object. Include only attribute and value pairs to be updated.
|
1827
|
+
# @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
1828
|
+
#
|
1829
|
+
# @return [DocumentList]
|
1830
|
+
def update_documents(database_id:, collection_id:, data: nil, queries: nil)
|
1831
|
+
api_path = '/databases/{databaseId}/collections/{collectionId}/documents'
|
1832
|
+
.gsub('{databaseId}', database_id)
|
1833
|
+
.gsub('{collectionId}', collection_id)
|
1834
|
+
|
1835
|
+
if database_id.nil?
|
1836
|
+
raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
|
1837
|
+
end
|
1838
|
+
|
1839
|
+
if collection_id.nil?
|
1840
|
+
raise Appwrite::Exception.new('Missing required parameter: "collectionId"')
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
api_params = {
|
1844
|
+
data: data,
|
1845
|
+
queries: queries,
|
1846
|
+
}
|
1847
|
+
|
1848
|
+
api_headers = {
|
1849
|
+
"content-type": 'application/json',
|
1850
|
+
}
|
1851
|
+
|
1852
|
+
@client.call(
|
1853
|
+
method: 'PATCH',
|
1854
|
+
path: api_path,
|
1855
|
+
headers: api_headers,
|
1856
|
+
params: api_params,
|
1857
|
+
response_type: Models::DocumentList
|
1858
|
+
)
|
1859
|
+
end
|
1860
|
+
|
1861
|
+
|
1862
|
+
# Bulk delete documents using queries, if no queries are passed then all
|
1863
|
+
# documents are deleted.
|
1864
|
+
#
|
1865
|
+
# @param [String] database_id Database ID.
|
1866
|
+
# @param [String] collection_id Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
|
1867
|
+
# @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
1868
|
+
#
|
1869
|
+
# @return [DocumentList]
|
1870
|
+
def delete_documents(database_id:, collection_id:, queries: nil)
|
1871
|
+
api_path = '/databases/{databaseId}/collections/{collectionId}/documents'
|
1872
|
+
.gsub('{databaseId}', database_id)
|
1873
|
+
.gsub('{collectionId}', collection_id)
|
1874
|
+
|
1875
|
+
if database_id.nil?
|
1876
|
+
raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
|
1877
|
+
end
|
1878
|
+
|
1879
|
+
if collection_id.nil?
|
1880
|
+
raise Appwrite::Exception.new('Missing required parameter: "collectionId"')
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
api_params = {
|
1884
|
+
queries: queries,
|
1885
|
+
}
|
1886
|
+
|
1887
|
+
api_headers = {
|
1888
|
+
"content-type": 'application/json',
|
1889
|
+
}
|
1890
|
+
|
1891
|
+
@client.call(
|
1892
|
+
method: 'DELETE',
|
1893
|
+
path: api_path,
|
1894
|
+
headers: api_headers,
|
1895
|
+
params: api_params,
|
1896
|
+
response_type: Models::DocumentList
|
1897
|
+
)
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
|
1755
1901
|
# Get a document by its unique ID. This endpoint response returns a JSON
|
1756
1902
|
# object with the document data.
|
1757
1903
|
#
|
@@ -1784,7 +1930,6 @@ module Appwrite
|
|
1784
1930
|
}
|
1785
1931
|
|
1786
1932
|
api_headers = {
|
1787
|
-
"content-type": 'application/json',
|
1788
1933
|
}
|
1789
1934
|
|
1790
1935
|
@client.call(
|
@@ -1910,7 +2055,6 @@ module Appwrite
|
|
1910
2055
|
}
|
1911
2056
|
|
1912
2057
|
api_headers = {
|
1913
|
-
"content-type": 'application/json',
|
1914
2058
|
}
|
1915
2059
|
|
1916
2060
|
@client.call(
|
@@ -2010,7 +2154,6 @@ module Appwrite
|
|
2010
2154
|
}
|
2011
2155
|
|
2012
2156
|
api_headers = {
|
2013
|
-
"content-type": 'application/json',
|
2014
2157
|
}
|
2015
2158
|
|
2016
2159
|
@client.call(
|
@@ -23,7 +23,6 @@ module Appwrite
|
|
23
23
|
}
|
24
24
|
|
25
25
|
api_headers = {
|
26
|
-
"content-type": 'application/json',
|
27
26
|
}
|
28
27
|
|
29
28
|
@client.call(
|
@@ -130,7 +129,6 @@ module Appwrite
|
|
130
129
|
}
|
131
130
|
|
132
131
|
api_headers = {
|
133
|
-
"content-type": 'application/json',
|
134
132
|
}
|
135
133
|
|
136
134
|
@client.call(
|
@@ -155,7 +153,6 @@ module Appwrite
|
|
155
153
|
}
|
156
154
|
|
157
155
|
api_headers = {
|
158
|
-
"content-type": 'application/json',
|
159
156
|
}
|
160
157
|
|
161
158
|
@client.call(
|
@@ -185,7 +182,6 @@ module Appwrite
|
|
185
182
|
}
|
186
183
|
|
187
184
|
api_headers = {
|
188
|
-
"content-type": 'application/json',
|
189
185
|
}
|
190
186
|
|
191
187
|
@client.call(
|
@@ -317,7 +313,6 @@ module Appwrite
|
|
317
313
|
}
|
318
314
|
|
319
315
|
api_headers = {
|
320
|
-
"content-type": 'application/json',
|
321
316
|
}
|
322
317
|
|
323
318
|
@client.call(
|
@@ -413,7 +408,6 @@ module Appwrite
|
|
413
408
|
}
|
414
409
|
|
415
410
|
api_headers = {
|
416
|
-
"content-type": 'application/json',
|
417
411
|
}
|
418
412
|
|
419
413
|
@client.call(
|
@@ -604,7 +598,6 @@ module Appwrite
|
|
604
598
|
}
|
605
599
|
|
606
600
|
api_headers = {
|
607
|
-
"content-type": 'application/json',
|
608
601
|
}
|
609
602
|
|
610
603
|
@client.call(
|
@@ -638,7 +631,6 @@ module Appwrite
|
|
638
631
|
}
|
639
632
|
|
640
633
|
api_headers = {
|
641
|
-
"content-type": 'application/json',
|
642
634
|
}
|
643
635
|
|
644
636
|
@client.call(
|
@@ -719,7 +711,6 @@ module Appwrite
|
|
719
711
|
}
|
720
712
|
|
721
713
|
api_headers = {
|
722
|
-
"content-type": 'application/json',
|
723
714
|
}
|
724
715
|
|
725
716
|
@client.call(
|
@@ -785,7 +776,6 @@ module Appwrite
|
|
785
776
|
}
|
786
777
|
|
787
778
|
api_headers = {
|
788
|
-
"content-type": 'application/json',
|
789
779
|
}
|
790
780
|
|
791
781
|
@client.call(
|
@@ -864,7 +854,6 @@ module Appwrite
|
|
864
854
|
}
|
865
855
|
|
866
856
|
api_headers = {
|
867
|
-
"content-type": 'application/json',
|
868
857
|
}
|
869
858
|
|
870
859
|
@client.call(
|
@@ -18,7 +18,6 @@ module Appwrite
|
|
18
18
|
}
|
19
19
|
|
20
20
|
api_headers = {
|
21
|
-
"content-type": 'application/json',
|
22
21
|
}
|
23
22
|
|
24
23
|
@client.call(
|
@@ -42,7 +41,6 @@ module Appwrite
|
|
42
41
|
}
|
43
42
|
|
44
43
|
api_headers = {
|
45
|
-
"content-type": 'application/json',
|
46
44
|
}
|
47
45
|
|
48
46
|
@client.call(
|
@@ -67,7 +65,6 @@ module Appwrite
|
|
67
65
|
}
|
68
66
|
|
69
67
|
api_headers = {
|
70
|
-
"content-type": 'application/json',
|
71
68
|
}
|
72
69
|
|
73
70
|
@client.call(
|
@@ -93,7 +90,6 @@ module Appwrite
|
|
93
90
|
}
|
94
91
|
|
95
92
|
api_headers = {
|
96
|
-
"content-type": 'application/json',
|
97
93
|
}
|
98
94
|
|
99
95
|
@client.call(
|
@@ -117,7 +113,6 @@ module Appwrite
|
|
117
113
|
}
|
118
114
|
|
119
115
|
api_headers = {
|
120
|
-
"content-type": 'application/json',
|
121
116
|
}
|
122
117
|
|
123
118
|
@client.call(
|
@@ -141,32 +136,6 @@ module Appwrite
|
|
141
136
|
}
|
142
137
|
|
143
138
|
api_headers = {
|
144
|
-
"content-type": 'application/json',
|
145
|
-
}
|
146
|
-
|
147
|
-
@client.call(
|
148
|
-
method: 'GET',
|
149
|
-
path: api_path,
|
150
|
-
headers: api_headers,
|
151
|
-
params: api_params,
|
152
|
-
response_type: Models::HealthStatus
|
153
|
-
)
|
154
|
-
end
|
155
|
-
|
156
|
-
|
157
|
-
# Check the Appwrite queue messaging servers are up and connection is
|
158
|
-
# successful.
|
159
|
-
#
|
160
|
-
#
|
161
|
-
# @return [HealthStatus]
|
162
|
-
def get_queue()
|
163
|
-
api_path = '/health/queue'
|
164
|
-
|
165
|
-
api_params = {
|
166
|
-
}
|
167
|
-
|
168
|
-
api_headers = {
|
169
|
-
"content-type": 'application/json',
|
170
139
|
}
|
171
140
|
|
172
141
|
@client.call(
|
@@ -193,7 +162,6 @@ module Appwrite
|
|
193
162
|
}
|
194
163
|
|
195
164
|
api_headers = {
|
196
|
-
"content-type": 'application/json',
|
197
165
|
}
|
198
166
|
|
199
167
|
@client.call(
|
@@ -221,7 +189,6 @@ module Appwrite
|
|
221
189
|
}
|
222
190
|
|
223
191
|
api_headers = {
|
224
|
-
"content-type": 'application/json',
|
225
192
|
}
|
226
193
|
|
227
194
|
@client.call(
|
@@ -250,7 +217,6 @@ module Appwrite
|
|
250
217
|
}
|
251
218
|
|
252
219
|
api_headers = {
|
253
|
-
"content-type": 'application/json',
|
254
220
|
}
|
255
221
|
|
256
222
|
@client.call(
|
@@ -277,7 +243,6 @@ module Appwrite
|
|
277
243
|
}
|
278
244
|
|
279
245
|
api_headers = {
|
280
|
-
"content-type": 'application/json',
|
281
246
|
}
|
282
247
|
|
283
248
|
@client.call(
|
@@ -310,7 +275,6 @@ module Appwrite
|
|
310
275
|
}
|
311
276
|
|
312
277
|
api_headers = {
|
313
|
-
"content-type": 'application/json',
|
314
278
|
}
|
315
279
|
|
316
280
|
@client.call(
|
@@ -337,7 +301,6 @@ module Appwrite
|
|
337
301
|
}
|
338
302
|
|
339
303
|
api_headers = {
|
340
|
-
"content-type": 'application/json',
|
341
304
|
}
|
342
305
|
|
343
306
|
@client.call(
|
@@ -364,7 +327,6 @@ module Appwrite
|
|
364
327
|
}
|
365
328
|
|
366
329
|
api_headers = {
|
367
|
-
"content-type": 'application/json',
|
368
330
|
}
|
369
331
|
|
370
332
|
@client.call(
|
@@ -391,7 +353,6 @@ module Appwrite
|
|
391
353
|
}
|
392
354
|
|
393
355
|
api_headers = {
|
394
|
-
"content-type": 'application/json',
|
395
356
|
}
|
396
357
|
|
397
358
|
@client.call(
|
@@ -418,7 +379,6 @@ module Appwrite
|
|
418
379
|
}
|
419
380
|
|
420
381
|
api_headers = {
|
421
|
-
"content-type": 'application/json',
|
422
382
|
}
|
423
383
|
|
424
384
|
@client.call(
|
@@ -445,7 +405,6 @@ module Appwrite
|
|
445
405
|
}
|
446
406
|
|
447
407
|
api_headers = {
|
448
|
-
"content-type": 'application/json',
|
449
408
|
}
|
450
409
|
|
451
410
|
@client.call(
|
@@ -459,20 +418,19 @@ module Appwrite
|
|
459
418
|
|
460
419
|
|
461
420
|
# Get the number of metrics that are waiting to be processed in the Appwrite
|
462
|
-
#
|
421
|
+
# stats resources queue.
|
463
422
|
#
|
464
423
|
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
465
424
|
#
|
466
425
|
# @return [HealthQueue]
|
467
|
-
def
|
468
|
-
api_path = '/health/queue/
|
426
|
+
def get_queue_stats_resources(threshold: nil)
|
427
|
+
api_path = '/health/queue/stats-resources'
|
469
428
|
|
470
429
|
api_params = {
|
471
430
|
threshold: threshold,
|
472
431
|
}
|
473
432
|
|
474
433
|
api_headers = {
|
475
|
-
"content-type": 'application/json',
|
476
434
|
}
|
477
435
|
|
478
436
|
@client.call(
|
@@ -485,21 +443,20 @@ module Appwrite
|
|
485
443
|
end
|
486
444
|
|
487
445
|
|
488
|
-
# Get the number of
|
489
|
-
#
|
446
|
+
# Get the number of metrics that are waiting to be processed in the Appwrite
|
447
|
+
# internal queue server.
|
490
448
|
#
|
491
449
|
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
492
450
|
#
|
493
451
|
# @return [HealthQueue]
|
494
|
-
def
|
495
|
-
api_path = '/health/queue/usage
|
452
|
+
def get_queue_usage(threshold: nil)
|
453
|
+
api_path = '/health/queue/stats-usage'
|
496
454
|
|
497
455
|
api_params = {
|
498
456
|
threshold: threshold,
|
499
457
|
}
|
500
458
|
|
501
459
|
api_headers = {
|
502
|
-
"content-type": 'application/json',
|
503
460
|
}
|
504
461
|
|
505
462
|
@client.call(
|
@@ -526,7 +483,6 @@ module Appwrite
|
|
526
483
|
}
|
527
484
|
|
528
485
|
api_headers = {
|
529
|
-
"content-type": 'application/json',
|
530
486
|
}
|
531
487
|
|
532
488
|
@client.call(
|
@@ -550,7 +506,6 @@ module Appwrite
|
|
550
506
|
}
|
551
507
|
|
552
508
|
api_headers = {
|
553
|
-
"content-type": 'application/json',
|
554
509
|
}
|
555
510
|
|
556
511
|
@client.call(
|
@@ -574,7 +529,6 @@ module Appwrite
|
|
574
529
|
}
|
575
530
|
|
576
531
|
api_headers = {
|
577
|
-
"content-type": 'application/json',
|
578
532
|
}
|
579
533
|
|
580
534
|
@client.call(
|
@@ -604,7 +558,6 @@ module Appwrite
|
|
604
558
|
}
|
605
559
|
|
606
560
|
api_headers = {
|
607
|
-
"content-type": 'application/json',
|
608
561
|
}
|
609
562
|
|
610
563
|
@client.call(
|
@@ -23,7 +23,6 @@ module Appwrite
|
|
23
23
|
}
|
24
24
|
|
25
25
|
api_headers = {
|
26
|
-
"content-type": 'application/json',
|
27
26
|
}
|
28
27
|
|
29
28
|
@client.call(
|
@@ -48,7 +47,6 @@ module Appwrite
|
|
48
47
|
}
|
49
48
|
|
50
49
|
api_headers = {
|
51
|
-
"content-type": 'application/json',
|
52
50
|
}
|
53
51
|
|
54
52
|
@client.call(
|
@@ -73,7 +71,6 @@ module Appwrite
|
|
73
71
|
}
|
74
72
|
|
75
73
|
api_headers = {
|
76
|
-
"content-type": 'application/json',
|
77
74
|
}
|
78
75
|
|
79
76
|
@client.call(
|
@@ -98,7 +95,6 @@ module Appwrite
|
|
98
95
|
}
|
99
96
|
|
100
97
|
api_headers = {
|
101
|
-
"content-type": 'application/json',
|
102
98
|
}
|
103
99
|
|
104
100
|
@client.call(
|
@@ -123,7 +119,6 @@ module Appwrite
|
|
123
119
|
}
|
124
120
|
|
125
121
|
api_headers = {
|
126
|
-
"content-type": 'application/json',
|
127
122
|
}
|
128
123
|
|
129
124
|
@client.call(
|
@@ -148,7 +143,6 @@ module Appwrite
|
|
148
143
|
}
|
149
144
|
|
150
145
|
api_headers = {
|
151
|
-
"content-type": 'application/json',
|
152
146
|
}
|
153
147
|
|
154
148
|
@client.call(
|
@@ -174,7 +168,6 @@ module Appwrite
|
|
174
168
|
}
|
175
169
|
|
176
170
|
api_headers = {
|
177
|
-
"content-type": 'application/json',
|
178
171
|
}
|
179
172
|
|
180
173
|
@client.call(
|
@@ -199,7 +192,6 @@ module Appwrite
|
|
199
192
|
}
|
200
193
|
|
201
194
|
api_headers = {
|
202
|
-
"content-type": 'application/json',
|
203
195
|
}
|
204
196
|
|
205
197
|
@client.call(
|
@@ -22,7 +22,6 @@ module Appwrite
|
|
22
22
|
}
|
23
23
|
|
24
24
|
api_headers = {
|
25
|
-
"content-type": 'application/json',
|
26
25
|
}
|
27
26
|
|
28
27
|
@client.call(
|
@@ -95,7 +94,9 @@ module Appwrite
|
|
95
94
|
end
|
96
95
|
|
97
96
|
|
98
|
-
# Update an email message by its unique ID.
|
97
|
+
# Update an email message by its unique ID. This endpoint only works on
|
98
|
+
# messages that are in draft status. Messages that are already processing,
|
99
|
+
# sent, or failed cannot be updated.
|
99
100
|
#
|
100
101
|
#
|
101
102
|
# @param [String] message_id Message ID.
|
@@ -214,7 +215,9 @@ module Appwrite
|
|
214
215
|
end
|
215
216
|
|
216
217
|
|
217
|
-
# Update a push notification by its unique ID.
|
218
|
+
# Update a push notification by its unique ID. This endpoint only works on
|
219
|
+
# messages that are in draft status. Messages that are already processing,
|
220
|
+
# sent, or failed cannot be updated.
|
218
221
|
#
|
219
222
|
#
|
220
223
|
# @param [String] message_id Message ID.
|
@@ -327,7 +330,9 @@ module Appwrite
|
|
327
330
|
end
|
328
331
|
|
329
332
|
|
330
|
-
# Update an SMS message by its unique ID.
|
333
|
+
# Update an SMS message by its unique ID. This endpoint only works on
|
334
|
+
# messages that are in draft status. Messages that are already processing,
|
335
|
+
# sent, or failed cannot be updated.
|
331
336
|
#
|
332
337
|
#
|
333
338
|
# @param [String] message_id Message ID.
|
@@ -388,7 +393,6 @@ module Appwrite
|
|
388
393
|
}
|
389
394
|
|
390
395
|
api_headers = {
|
391
|
-
"content-type": 'application/json',
|
392
396
|
}
|
393
397
|
|
394
398
|
@client.call(
|
@@ -450,7 +454,6 @@ module Appwrite
|
|
450
454
|
}
|
451
455
|
|
452
456
|
api_headers = {
|
453
|
-
"content-type": 'application/json',
|
454
457
|
}
|
455
458
|
|
456
459
|
@client.call(
|
@@ -482,7 +485,6 @@ module Appwrite
|
|
482
485
|
}
|
483
486
|
|
484
487
|
api_headers = {
|
485
|
-
"content-type": 'application/json',
|
486
488
|
}
|
487
489
|
|
488
490
|
@client.call(
|
@@ -510,7 +512,6 @@ module Appwrite
|
|
510
512
|
}
|
511
513
|
|
512
514
|
api_headers = {
|
513
|
-
"content-type": 'application/json',
|
514
515
|
}
|
515
516
|
|
516
517
|
@client.call(
|
@@ -1441,7 +1442,6 @@ module Appwrite
|
|
1441
1442
|
}
|
1442
1443
|
|
1443
1444
|
api_headers = {
|
1444
|
-
"content-type": 'application/json',
|
1445
1445
|
}
|
1446
1446
|
|
1447
1447
|
@client.call(
|
@@ -1502,7 +1502,6 @@ module Appwrite
|
|
1502
1502
|
}
|
1503
1503
|
|
1504
1504
|
api_headers = {
|
1505
|
-
"content-type": 'application/json',
|
1506
1505
|
}
|
1507
1506
|
|
1508
1507
|
@client.call(
|
@@ -1534,7 +1533,6 @@ module Appwrite
|
|
1534
1533
|
}
|
1535
1534
|
|
1536
1535
|
api_headers = {
|
1537
|
-
"content-type": 'application/json',
|
1538
1536
|
}
|
1539
1537
|
|
1540
1538
|
@client.call(
|
@@ -1562,7 +1560,6 @@ module Appwrite
|
|
1562
1560
|
}
|
1563
1561
|
|
1564
1562
|
api_headers = {
|
1565
|
-
"content-type": 'application/json',
|
1566
1563
|
}
|
1567
1564
|
|
1568
1565
|
@client.call(
|
@@ -1631,7 +1628,6 @@ module Appwrite
|
|
1631
1628
|
}
|
1632
1629
|
|
1633
1630
|
api_headers = {
|
1634
|
-
"content-type": 'application/json',
|
1635
1631
|
}
|
1636
1632
|
|
1637
1633
|
@client.call(
|
@@ -1727,7 +1723,6 @@ module Appwrite
|
|
1727
1723
|
}
|
1728
1724
|
|
1729
1725
|
api_headers = {
|
1730
|
-
"content-type": 'application/json',
|
1731
1726
|
}
|
1732
1727
|
|
1733
1728
|
@client.call(
|
@@ -1761,7 +1756,6 @@ module Appwrite
|
|
1761
1756
|
}
|
1762
1757
|
|
1763
1758
|
api_headers = {
|
1764
|
-
"content-type": 'application/json',
|
1765
1759
|
}
|
1766
1760
|
|
1767
1761
|
@client.call(
|
@@ -1840,7 +1834,6 @@ module Appwrite
|
|
1840
1834
|
}
|
1841
1835
|
|
1842
1836
|
api_headers = {
|
1843
|
-
"content-type": 'application/json',
|
1844
1837
|
}
|
1845
1838
|
|
1846
1839
|
@client.call(
|
@@ -23,7 +23,6 @@ module Appwrite
|
|
23
23
|
}
|
24
24
|
|
25
25
|
api_headers = {
|
26
|
-
"content-type": 'application/json',
|
27
26
|
}
|
28
27
|
|
29
28
|
@client.call(
|
@@ -106,7 +105,6 @@ module Appwrite
|
|
106
105
|
}
|
107
106
|
|
108
107
|
api_headers = {
|
109
|
-
"content-type": 'application/json',
|
110
108
|
}
|
111
109
|
|
112
110
|
@client.call(
|
@@ -222,7 +220,6 @@ module Appwrite
|
|
222
220
|
}
|
223
221
|
|
224
222
|
api_headers = {
|
225
|
-
"content-type": 'application/json',
|
226
223
|
}
|
227
224
|
|
228
225
|
@client.call(
|
@@ -325,7 +322,6 @@ module Appwrite
|
|
325
322
|
}
|
326
323
|
|
327
324
|
api_headers = {
|
328
|
-
"content-type": 'application/json',
|
329
325
|
}
|
330
326
|
|
331
327
|
@client.call(
|
@@ -440,7 +436,6 @@ module Appwrite
|
|
440
436
|
}
|
441
437
|
|
442
438
|
api_headers = {
|
443
|
-
"content-type": 'application/json',
|
444
439
|
}
|
445
440
|
|
446
441
|
@client.call(
|
@@ -501,7 +496,6 @@ module Appwrite
|
|
501
496
|
}
|
502
497
|
|
503
498
|
api_headers = {
|
504
|
-
"content-type": 'application/json',
|
505
499
|
}
|
506
500
|
|
507
501
|
@client.call(
|
@@ -538,7 +532,6 @@ module Appwrite
|
|
538
532
|
}
|
539
533
|
|
540
534
|
api_headers = {
|
541
|
-
"content-type": 'application/json',
|
542
535
|
}
|
543
536
|
|
544
537
|
@client.call(
|
@@ -23,7 +23,6 @@ module Appwrite
|
|
23
23
|
}
|
24
24
|
|
25
25
|
api_headers = {
|
26
|
-
"content-type": 'application/json',
|
27
26
|
}
|
28
27
|
|
29
28
|
@client.call(
|
@@ -93,7 +92,6 @@ module Appwrite
|
|
93
92
|
}
|
94
93
|
|
95
94
|
api_headers = {
|
96
|
-
"content-type": 'application/json',
|
97
95
|
}
|
98
96
|
|
99
97
|
@client.call(
|
@@ -195,7 +193,6 @@ module Appwrite
|
|
195
193
|
}
|
196
194
|
|
197
195
|
api_headers = {
|
198
|
-
"content-type": 'application/json',
|
199
196
|
}
|
200
197
|
|
201
198
|
@client.call(
|
@@ -299,7 +296,6 @@ module Appwrite
|
|
299
296
|
}
|
300
297
|
|
301
298
|
api_headers = {
|
302
|
-
"content-type": 'application/json',
|
303
299
|
}
|
304
300
|
|
305
301
|
@client.call(
|
@@ -467,7 +463,6 @@ module Appwrite
|
|
467
463
|
}
|
468
464
|
|
469
465
|
api_headers = {
|
470
|
-
"content-type": 'application/json',
|
471
466
|
}
|
472
467
|
|
473
468
|
@client.call(
|
@@ -23,7 +23,6 @@ module Appwrite
|
|
23
23
|
}
|
24
24
|
|
25
25
|
api_headers = {
|
26
|
-
"content-type": 'application/json',
|
27
26
|
}
|
28
27
|
|
29
28
|
@client.call(
|
@@ -183,7 +182,6 @@ module Appwrite
|
|
183
182
|
}
|
184
183
|
|
185
184
|
api_headers = {
|
186
|
-
"content-type": 'application/json',
|
187
185
|
}
|
188
186
|
|
189
187
|
@client.call(
|
@@ -528,7 +526,6 @@ module Appwrite
|
|
528
526
|
}
|
529
527
|
|
530
528
|
api_headers = {
|
531
|
-
"content-type": 'application/json',
|
532
529
|
}
|
533
530
|
|
534
531
|
@client.call(
|
@@ -707,7 +704,6 @@ module Appwrite
|
|
707
704
|
}
|
708
705
|
|
709
706
|
api_headers = {
|
710
|
-
"content-type": 'application/json',
|
711
707
|
}
|
712
708
|
|
713
709
|
@client.call(
|
@@ -737,7 +733,6 @@ module Appwrite
|
|
737
733
|
}
|
738
734
|
|
739
735
|
api_headers = {
|
740
|
-
"content-type": 'application/json',
|
741
736
|
}
|
742
737
|
|
743
738
|
@client.call(
|
@@ -838,7 +833,6 @@ module Appwrite
|
|
838
833
|
}
|
839
834
|
|
840
835
|
api_headers = {
|
841
|
-
"content-type": 'application/json',
|
842
836
|
}
|
843
837
|
|
844
838
|
@client.call(
|
@@ -871,7 +865,6 @@ module Appwrite
|
|
871
865
|
}
|
872
866
|
|
873
867
|
api_headers = {
|
874
|
-
"content-type": 'application/json',
|
875
868
|
}
|
876
869
|
|
877
870
|
@client.call(
|
@@ -1075,7 +1068,6 @@ module Appwrite
|
|
1075
1068
|
}
|
1076
1069
|
|
1077
1070
|
api_headers = {
|
1078
|
-
"content-type": 'application/json',
|
1079
1071
|
}
|
1080
1072
|
|
1081
1073
|
@client.call(
|
@@ -1143,7 +1135,6 @@ module Appwrite
|
|
1143
1135
|
}
|
1144
1136
|
|
1145
1137
|
api_headers = {
|
1146
|
-
"content-type": 'application/json',
|
1147
1138
|
}
|
1148
1139
|
|
1149
1140
|
@client.call(
|
@@ -1311,7 +1302,6 @@ module Appwrite
|
|
1311
1302
|
}
|
1312
1303
|
|
1313
1304
|
api_headers = {
|
1314
|
-
"content-type": 'application/json',
|
1315
1305
|
}
|
1316
1306
|
|
1317
1307
|
@client.call(
|
@@ -1399,7 +1389,6 @@ module Appwrite
|
|
1399
1389
|
}
|
1400
1390
|
|
1401
1391
|
api_headers = {
|
1402
|
-
"content-type": 'application/json',
|
1403
1392
|
}
|
1404
1393
|
|
1405
1394
|
@client.call(
|
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: 15.1.0.pre.rc.1
|
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-
|
11
|
+
date: 2025-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|
@@ -175,9 +175,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '0'
|
176
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - ">"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 1.3.1
|
181
181
|
requirements: []
|
182
182
|
rubygems_version: 3.1.6
|
183
183
|
signing_key:
|