appwrite 30.0.1 → 30.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 +44 -24
- data/lib/appwrite/enums/appwrite_migration_resource.rb +46 -0
- data/lib/appwrite/enums/build_runtime.rb +4 -0
- data/lib/appwrite/enums/environment_resource.rb +40 -0
- data/lib/appwrite/enums/firebase_migration_resource.rb +16 -0
- data/lib/appwrite/enums/n_host_migration_resource.rb +17 -0
- data/lib/appwrite/enums/on_duplicate.rb +9 -0
- data/lib/appwrite/enums/project_policy_id.rb +1 -0
- data/lib/appwrite/enums/runtime.rb +4 -0
- data/lib/appwrite/enums/supabase_migration_resource.rb +17 -0
- data/lib/appwrite/models/billing_plan.rb +15 -0
- data/lib/appwrite/models/migration.rb +128 -0
- data/lib/appwrite/models/migration_list.rb +33 -0
- data/lib/appwrite/models/policy_deny_realtime_guests.rb +33 -0
- data/lib/appwrite/services/account.rb +19 -19
- data/lib/appwrite/services/activities.rb +1 -1
- data/lib/appwrite/services/advisor.rb +5 -5
- data/lib/appwrite/services/apps.rb +25 -25
- data/lib/appwrite/services/avatars.rb +3 -3
- data/lib/appwrite/services/backups.rb +6 -6
- data/lib/appwrite/services/databases.rb +157 -157
- data/lib/appwrite/services/documents_db.rb +63 -63
- data/lib/appwrite/services/domains.rb +77 -77
- data/lib/appwrite/services/functions.rb +33 -33
- data/lib/appwrite/services/messaging.rb +30 -30
- data/lib/appwrite/services/migrations.rb +653 -0
- data/lib/appwrite/services/mongo.rb +37 -37
- data/lib/appwrite/services/mysql.rb +40 -40
- data/lib/appwrite/services/oauth2.rb +14 -14
- data/lib/appwrite/services/organization.rb +17 -17
- data/lib/appwrite/services/postgresql.rb +44 -44
- data/lib/appwrite/services/presences.rb +4 -4
- data/lib/appwrite/services/project.rb +105 -28
- data/lib/appwrite/services/proxy.rb +3 -3
- data/lib/appwrite/services/sites.rb +32 -32
- data/lib/appwrite/services/storage.rb +17 -17
- data/lib/appwrite/services/tables_db.rb +169 -169
- data/lib/appwrite/services/teams.rb +23 -23
- data/lib/appwrite/services/tokens.rb +7 -7
- data/lib/appwrite/services/users.rb +50 -50
- data/lib/appwrite/services/vectors_db.rb +55 -55
- data/lib/appwrite/services/waf.rb +57 -35
- data/lib/appwrite/services/webhooks.rb +4 -4
- data/lib/appwrite.rb +12 -0
- metadata +12 -2
|
@@ -99,7 +99,7 @@ module Appwrite
|
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
api_path = '/teams/{teamId}'
|
|
102
|
-
.gsub('{teamId}', team_id)
|
|
102
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
103
103
|
|
|
104
104
|
api_params = {}
|
|
105
105
|
|
|
@@ -136,7 +136,7 @@ module Appwrite
|
|
|
136
136
|
end
|
|
137
137
|
|
|
138
138
|
api_path = '/teams/{teamId}'
|
|
139
|
-
.gsub('{teamId}', team_id)
|
|
139
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
140
140
|
|
|
141
141
|
api_params = {
|
|
142
142
|
name: name,
|
|
@@ -171,7 +171,7 @@ module Appwrite
|
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
api_path = '/teams/{teamId}'
|
|
174
|
-
.gsub('{teamId}', team_id)
|
|
174
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
175
175
|
|
|
176
176
|
api_params = {}
|
|
177
177
|
|
|
@@ -206,7 +206,7 @@ module Appwrite
|
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
api_path = '/teams/{teamId}/installations'
|
|
209
|
-
.gsub('{teamId}', team_id)
|
|
209
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
210
210
|
|
|
211
211
|
api_params = {
|
|
212
212
|
queries: queries,
|
|
@@ -251,7 +251,7 @@ module Appwrite
|
|
|
251
251
|
end
|
|
252
252
|
|
|
253
253
|
api_path = '/teams/{teamId}/installations'
|
|
254
|
-
.gsub('{teamId}', team_id)
|
|
254
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
255
255
|
|
|
256
256
|
api_params = {
|
|
257
257
|
appId: app_id,
|
|
@@ -293,8 +293,8 @@ module Appwrite
|
|
|
293
293
|
end
|
|
294
294
|
|
|
295
295
|
api_path = '/teams/{teamId}/installations/{installationId}'
|
|
296
|
-
.gsub('{teamId}', team_id)
|
|
297
|
-
.gsub('{installationId}', installation_id)
|
|
296
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
297
|
+
.gsub('{installationId}', @client.encode_path(installation_id))
|
|
298
298
|
|
|
299
299
|
api_params = {}
|
|
300
300
|
|
|
@@ -336,8 +336,8 @@ module Appwrite
|
|
|
336
336
|
end
|
|
337
337
|
|
|
338
338
|
api_path = '/teams/{teamId}/installations/{installationId}'
|
|
339
|
-
.gsub('{teamId}', team_id)
|
|
340
|
-
.gsub('{installationId}', installation_id)
|
|
339
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
340
|
+
.gsub('{installationId}', @client.encode_path(installation_id))
|
|
341
341
|
|
|
342
342
|
api_params = {
|
|
343
343
|
authorizationDetails: authorization_details,
|
|
@@ -379,8 +379,8 @@ module Appwrite
|
|
|
379
379
|
end
|
|
380
380
|
|
|
381
381
|
api_path = '/teams/{teamId}/installations/{installationId}'
|
|
382
|
-
.gsub('{teamId}', team_id)
|
|
383
|
-
.gsub('{installationId}', installation_id)
|
|
382
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
383
|
+
.gsub('{installationId}', @client.encode_path(installation_id))
|
|
384
384
|
|
|
385
385
|
api_params = {}
|
|
386
386
|
|
|
@@ -419,7 +419,7 @@ module Appwrite
|
|
|
419
419
|
end
|
|
420
420
|
|
|
421
421
|
api_path = '/teams/{teamId}/memberships'
|
|
422
|
-
.gsub('{teamId}', team_id)
|
|
422
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
423
423
|
|
|
424
424
|
api_params = {
|
|
425
425
|
queries: queries,
|
|
@@ -492,7 +492,7 @@ module Appwrite
|
|
|
492
492
|
end
|
|
493
493
|
|
|
494
494
|
api_path = '/teams/{teamId}/memberships'
|
|
495
|
-
.gsub('{teamId}', team_id)
|
|
495
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
496
496
|
|
|
497
497
|
api_params = {
|
|
498
498
|
email: email,
|
|
@@ -540,8 +540,8 @@ module Appwrite
|
|
|
540
540
|
end
|
|
541
541
|
|
|
542
542
|
api_path = '/teams/{teamId}/memberships/{membershipId}'
|
|
543
|
-
.gsub('{teamId}', team_id)
|
|
544
|
-
.gsub('{membershipId}', membership_id)
|
|
543
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
544
|
+
.gsub('{membershipId}', @client.encode_path(membership_id))
|
|
545
545
|
|
|
546
546
|
api_params = {}
|
|
547
547
|
|
|
@@ -587,8 +587,8 @@ module Appwrite
|
|
|
587
587
|
end
|
|
588
588
|
|
|
589
589
|
api_path = '/teams/{teamId}/memberships/{membershipId}'
|
|
590
|
-
.gsub('{teamId}', team_id)
|
|
591
|
-
.gsub('{membershipId}', membership_id)
|
|
590
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
591
|
+
.gsub('{membershipId}', @client.encode_path(membership_id))
|
|
592
592
|
|
|
593
593
|
api_params = {
|
|
594
594
|
roles: roles,
|
|
@@ -630,8 +630,8 @@ module Appwrite
|
|
|
630
630
|
end
|
|
631
631
|
|
|
632
632
|
api_path = '/teams/{teamId}/memberships/{membershipId}'
|
|
633
|
-
.gsub('{teamId}', team_id)
|
|
634
|
-
.gsub('{membershipId}', membership_id)
|
|
633
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
634
|
+
.gsub('{membershipId}', @client.encode_path(membership_id))
|
|
635
635
|
|
|
636
636
|
api_params = {}
|
|
637
637
|
|
|
@@ -686,8 +686,8 @@ module Appwrite
|
|
|
686
686
|
end
|
|
687
687
|
|
|
688
688
|
api_path = '/teams/{teamId}/memberships/{membershipId}/status'
|
|
689
|
-
.gsub('{teamId}', team_id)
|
|
690
|
-
.gsub('{membershipId}', membership_id)
|
|
689
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
690
|
+
.gsub('{membershipId}', @client.encode_path(membership_id))
|
|
691
691
|
|
|
692
692
|
api_params = {
|
|
693
693
|
userId: user_id,
|
|
@@ -724,7 +724,7 @@ module Appwrite
|
|
|
724
724
|
end
|
|
725
725
|
|
|
726
726
|
api_path = '/teams/{teamId}/prefs'
|
|
727
|
-
.gsub('{teamId}', team_id)
|
|
727
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
728
728
|
|
|
729
729
|
api_params = {}
|
|
730
730
|
|
|
@@ -763,7 +763,7 @@ module Appwrite
|
|
|
763
763
|
end
|
|
764
764
|
|
|
765
765
|
api_path = '/teams/{teamId}/prefs'
|
|
766
|
-
.gsub('{teamId}', team_id)
|
|
766
|
+
.gsub('{teamId}', @client.encode_path(team_id))
|
|
767
767
|
|
|
768
768
|
api_params = {
|
|
769
769
|
prefs: prefs,
|
|
@@ -30,8 +30,8 @@ module Appwrite
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
api_path = '/tokens/buckets/{bucketId}/files/{fileId}'
|
|
33
|
-
.gsub('{bucketId}', bucket_id)
|
|
34
|
-
.gsub('{fileId}', file_id)
|
|
33
|
+
.gsub('{bucketId}', @client.encode_path(bucket_id))
|
|
34
|
+
.gsub('{fileId}', @client.encode_path(file_id))
|
|
35
35
|
|
|
36
36
|
api_params = {
|
|
37
37
|
queries: queries,
|
|
@@ -74,8 +74,8 @@ module Appwrite
|
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
api_path = '/tokens/buckets/{bucketId}/files/{fileId}'
|
|
77
|
-
.gsub('{bucketId}', bucket_id)
|
|
78
|
-
.gsub('{fileId}', file_id)
|
|
77
|
+
.gsub('{bucketId}', @client.encode_path(bucket_id))
|
|
78
|
+
.gsub('{fileId}', @client.encode_path(file_id))
|
|
79
79
|
|
|
80
80
|
api_params = {
|
|
81
81
|
expire: expire,
|
|
@@ -109,7 +109,7 @@ module Appwrite
|
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
api_path = '/tokens/{tokenId}'
|
|
112
|
-
.gsub('{tokenId}', token_id)
|
|
112
|
+
.gsub('{tokenId}', @client.encode_path(token_id))
|
|
113
113
|
|
|
114
114
|
api_params = {}
|
|
115
115
|
|
|
@@ -143,7 +143,7 @@ module Appwrite
|
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
api_path = '/tokens/{tokenId}'
|
|
146
|
-
.gsub('{tokenId}', token_id)
|
|
146
|
+
.gsub('{tokenId}', @client.encode_path(token_id))
|
|
147
147
|
|
|
148
148
|
api_params = {
|
|
149
149
|
expire: expire,
|
|
@@ -177,7 +177,7 @@ module Appwrite
|
|
|
177
177
|
end
|
|
178
178
|
|
|
179
179
|
api_path = '/tokens/{tokenId}'
|
|
180
|
-
.gsub('{tokenId}', token_id)
|
|
180
|
+
.gsub('{tokenId}', @client.encode_path(token_id))
|
|
181
181
|
|
|
182
182
|
api_params = {}
|
|
183
183
|
|
|
@@ -239,7 +239,7 @@ module Appwrite
|
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
api_path = '/users/identities/{identityId}'
|
|
242
|
-
.gsub('{identityId}', identity_id)
|
|
242
|
+
.gsub('{identityId}', @client.encode_path(identity_id))
|
|
243
243
|
|
|
244
244
|
api_params = {}
|
|
245
245
|
|
|
@@ -372,10 +372,10 @@ module Appwrite
|
|
|
372
372
|
# @param [String] email User email.
|
|
373
373
|
# @param [String] password User password hashed using Scrypt.
|
|
374
374
|
# @param [String] password_salt Optional salt used to hash password.
|
|
375
|
-
# @param [Integer] password_cpu Optional CPU cost used to hash password.
|
|
376
|
-
# @param [Integer] password_memory Optional memory cost used to hash password.
|
|
377
|
-
# @param [Integer] password_parallel Optional parallelization cost used to hash password.
|
|
378
|
-
# @param [Integer] password_length Optional hash length used to hash password.
|
|
375
|
+
# @param [Integer] password_cpu Optional CPU cost used to hash password. Must be a power of two, at most 65536.
|
|
376
|
+
# @param [Integer] password_memory Optional memory cost used to hash password. Maximum is 16.
|
|
377
|
+
# @param [Integer] password_parallel Optional parallelization cost used to hash password. Maximum is 4.
|
|
378
|
+
# @param [Integer] password_length Optional hash length used to hash password. Must be between 16 and 128.
|
|
379
379
|
# @param [String] name User name. Max length: 128 chars.
|
|
380
380
|
#
|
|
381
381
|
# @return [User]
|
|
@@ -595,7 +595,7 @@ module Appwrite
|
|
|
595
595
|
end
|
|
596
596
|
|
|
597
597
|
api_path = '/users/{userId}'
|
|
598
|
-
.gsub('{userId}', user_id)
|
|
598
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
599
599
|
|
|
600
600
|
api_params = {}
|
|
601
601
|
|
|
@@ -631,7 +631,7 @@ module Appwrite
|
|
|
631
631
|
end
|
|
632
632
|
|
|
633
633
|
api_path = '/users/{userId}'
|
|
634
|
-
.gsub('{userId}', user_id)
|
|
634
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
635
635
|
|
|
636
636
|
api_params = {}
|
|
637
637
|
|
|
@@ -668,7 +668,7 @@ module Appwrite
|
|
|
668
668
|
end
|
|
669
669
|
|
|
670
670
|
api_path = '/users/{userId}/email'
|
|
671
|
-
.gsub('{userId}', user_id)
|
|
671
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
672
672
|
|
|
673
673
|
api_params = {
|
|
674
674
|
email: email,
|
|
@@ -716,7 +716,7 @@ module Appwrite
|
|
|
716
716
|
end
|
|
717
717
|
|
|
718
718
|
api_path = '/users/{userId}/impersonator'
|
|
719
|
-
.gsub('{userId}', user_id)
|
|
719
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
720
720
|
|
|
721
721
|
api_params = {
|
|
722
722
|
impersonator: impersonator,
|
|
@@ -756,7 +756,7 @@ module Appwrite
|
|
|
756
756
|
end
|
|
757
757
|
|
|
758
758
|
api_path = '/users/{userId}/jwts'
|
|
759
|
-
.gsub('{userId}', user_id)
|
|
759
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
760
760
|
|
|
761
761
|
api_params = {
|
|
762
762
|
sessionId: session_id,
|
|
@@ -802,7 +802,7 @@ module Appwrite
|
|
|
802
802
|
end
|
|
803
803
|
|
|
804
804
|
api_path = '/users/{userId}/labels'
|
|
805
|
-
.gsub('{userId}', user_id)
|
|
805
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
806
806
|
|
|
807
807
|
api_params = {
|
|
808
808
|
labels: labels,
|
|
@@ -842,7 +842,7 @@ module Appwrite
|
|
|
842
842
|
end
|
|
843
843
|
|
|
844
844
|
api_path = '/users/{userId}/memberships'
|
|
845
|
-
.gsub('{userId}', user_id)
|
|
845
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
846
846
|
|
|
847
847
|
api_params = {
|
|
848
848
|
queries: queries,
|
|
@@ -883,7 +883,7 @@ module Appwrite
|
|
|
883
883
|
end
|
|
884
884
|
|
|
885
885
|
api_path = '/users/{userId}/mfa'
|
|
886
|
-
.gsub('{userId}', user_id)
|
|
886
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
887
887
|
|
|
888
888
|
api_params = {
|
|
889
889
|
mfa: mfa,
|
|
@@ -923,8 +923,8 @@ module Appwrite
|
|
|
923
923
|
end
|
|
924
924
|
|
|
925
925
|
api_path = '/users/{userId}/mfa/authenticators/{type}'
|
|
926
|
-
.gsub('{userId}', user_id)
|
|
927
|
-
.gsub('{type}', type)
|
|
926
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
927
|
+
.gsub('{type}', @client.encode_path(type))
|
|
928
928
|
|
|
929
929
|
api_params = {}
|
|
930
930
|
|
|
@@ -962,8 +962,8 @@ module Appwrite
|
|
|
962
962
|
end
|
|
963
963
|
|
|
964
964
|
api_path = '/users/{userId}/mfa/challenges/{challengeId}'
|
|
965
|
-
.gsub('{userId}', user_id)
|
|
966
|
-
.gsub('{challengeId}', challenge_id)
|
|
965
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
966
|
+
.gsub('{challengeId}', @client.encode_path(challenge_id))
|
|
967
967
|
|
|
968
968
|
api_params = {}
|
|
969
969
|
|
|
@@ -994,7 +994,7 @@ module Appwrite
|
|
|
994
994
|
end
|
|
995
995
|
|
|
996
996
|
api_path = '/users/{userId}/mfa/factors'
|
|
997
|
-
.gsub('{userId}', user_id)
|
|
997
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
998
998
|
|
|
999
999
|
api_params = {}
|
|
1000
1000
|
|
|
@@ -1028,7 +1028,7 @@ module Appwrite
|
|
|
1028
1028
|
end
|
|
1029
1029
|
|
|
1030
1030
|
api_path = '/users/{userId}/mfa/recovery-codes'
|
|
1031
|
-
.gsub('{userId}', user_id)
|
|
1031
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1032
1032
|
|
|
1033
1033
|
api_params = {}
|
|
1034
1034
|
|
|
@@ -1062,7 +1062,7 @@ module Appwrite
|
|
|
1062
1062
|
end
|
|
1063
1063
|
|
|
1064
1064
|
api_path = '/users/{userId}/mfa/recovery-codes'
|
|
1065
|
-
.gsub('{userId}', user_id)
|
|
1065
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1066
1066
|
|
|
1067
1067
|
api_params = {}
|
|
1068
1068
|
|
|
@@ -1097,7 +1097,7 @@ module Appwrite
|
|
|
1097
1097
|
end
|
|
1098
1098
|
|
|
1099
1099
|
api_path = '/users/{userId}/mfa/recovery-codes'
|
|
1100
|
-
.gsub('{userId}', user_id)
|
|
1100
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1101
1101
|
|
|
1102
1102
|
api_params = {}
|
|
1103
1103
|
|
|
@@ -1135,7 +1135,7 @@ module Appwrite
|
|
|
1135
1135
|
end
|
|
1136
1136
|
|
|
1137
1137
|
api_path = '/users/{userId}/name'
|
|
1138
|
-
.gsub('{userId}', user_id)
|
|
1138
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1139
1139
|
|
|
1140
1140
|
api_params = {
|
|
1141
1141
|
name: name,
|
|
@@ -1173,7 +1173,7 @@ module Appwrite
|
|
|
1173
1173
|
end
|
|
1174
1174
|
|
|
1175
1175
|
api_path = '/users/{userId}/passkeys'
|
|
1176
|
-
.gsub('{userId}', user_id)
|
|
1176
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1177
1177
|
|
|
1178
1178
|
api_params = {
|
|
1179
1179
|
queries: queries,
|
|
@@ -1213,8 +1213,8 @@ module Appwrite
|
|
|
1213
1213
|
end
|
|
1214
1214
|
|
|
1215
1215
|
api_path = '/users/{userId}/passkeys/{passkeyId}'
|
|
1216
|
-
.gsub('{userId}', user_id)
|
|
1217
|
-
.gsub('{passkeyId}', passkey_id)
|
|
1216
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1217
|
+
.gsub('{passkeyId}', @client.encode_path(passkey_id))
|
|
1218
1218
|
|
|
1219
1219
|
api_params = {}
|
|
1220
1220
|
|
|
@@ -1257,8 +1257,8 @@ module Appwrite
|
|
|
1257
1257
|
end
|
|
1258
1258
|
|
|
1259
1259
|
api_path = '/users/{userId}/passkeys/{passkeyId}'
|
|
1260
|
-
.gsub('{userId}', user_id)
|
|
1261
|
-
.gsub('{passkeyId}', passkey_id)
|
|
1260
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1261
|
+
.gsub('{passkeyId}', @client.encode_path(passkey_id))
|
|
1262
1262
|
|
|
1263
1263
|
api_params = {
|
|
1264
1264
|
name: name,
|
|
@@ -1299,8 +1299,8 @@ module Appwrite
|
|
|
1299
1299
|
end
|
|
1300
1300
|
|
|
1301
1301
|
api_path = '/users/{userId}/passkeys/{passkeyId}'
|
|
1302
|
-
.gsub('{userId}', user_id)
|
|
1303
|
-
.gsub('{passkeyId}', passkey_id)
|
|
1302
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1303
|
+
.gsub('{passkeyId}', @client.encode_path(passkey_id))
|
|
1304
1304
|
|
|
1305
1305
|
api_params = {}
|
|
1306
1306
|
|
|
@@ -1337,7 +1337,7 @@ module Appwrite
|
|
|
1337
1337
|
end
|
|
1338
1338
|
|
|
1339
1339
|
api_path = '/users/{userId}/password'
|
|
1340
|
-
.gsub('{userId}', user_id)
|
|
1340
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1341
1341
|
|
|
1342
1342
|
api_params = {
|
|
1343
1343
|
password: password,
|
|
@@ -1377,7 +1377,7 @@ module Appwrite
|
|
|
1377
1377
|
end
|
|
1378
1378
|
|
|
1379
1379
|
api_path = '/users/{userId}/phone'
|
|
1380
|
-
.gsub('{userId}', user_id)
|
|
1380
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1381
1381
|
|
|
1382
1382
|
api_params = {
|
|
1383
1383
|
number: number,
|
|
@@ -1411,7 +1411,7 @@ module Appwrite
|
|
|
1411
1411
|
end
|
|
1412
1412
|
|
|
1413
1413
|
api_path = '/users/{userId}/prefs'
|
|
1414
|
-
.gsub('{userId}', user_id)
|
|
1414
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1415
1415
|
|
|
1416
1416
|
api_params = {}
|
|
1417
1417
|
|
|
@@ -1450,7 +1450,7 @@ module Appwrite
|
|
|
1450
1450
|
end
|
|
1451
1451
|
|
|
1452
1452
|
api_path = '/users/{userId}/prefs'
|
|
1453
|
-
.gsub('{userId}', user_id)
|
|
1453
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1454
1454
|
|
|
1455
1455
|
api_params = {
|
|
1456
1456
|
prefs: prefs,
|
|
@@ -1486,7 +1486,7 @@ module Appwrite
|
|
|
1486
1486
|
end
|
|
1487
1487
|
|
|
1488
1488
|
api_path = '/users/{userId}/sessions'
|
|
1489
|
-
.gsub('{userId}', user_id)
|
|
1489
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1490
1490
|
|
|
1491
1491
|
api_params = {
|
|
1492
1492
|
total: total,
|
|
@@ -1524,7 +1524,7 @@ module Appwrite
|
|
|
1524
1524
|
end
|
|
1525
1525
|
|
|
1526
1526
|
api_path = '/users/{userId}/sessions'
|
|
1527
|
-
.gsub('{userId}', user_id)
|
|
1527
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1528
1528
|
|
|
1529
1529
|
api_params = {}
|
|
1530
1530
|
|
|
@@ -1556,7 +1556,7 @@ module Appwrite
|
|
|
1556
1556
|
end
|
|
1557
1557
|
|
|
1558
1558
|
api_path = '/users/{userId}/sessions'
|
|
1559
|
-
.gsub('{userId}', user_id)
|
|
1559
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1560
1560
|
|
|
1561
1561
|
api_params = {}
|
|
1562
1562
|
|
|
@@ -1593,8 +1593,8 @@ module Appwrite
|
|
|
1593
1593
|
end
|
|
1594
1594
|
|
|
1595
1595
|
api_path = '/users/{userId}/sessions/{sessionId}'
|
|
1596
|
-
.gsub('{userId}', user_id)
|
|
1597
|
-
.gsub('{sessionId}', session_id)
|
|
1596
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1597
|
+
.gsub('{sessionId}', @client.encode_path(session_id))
|
|
1598
1598
|
|
|
1599
1599
|
api_params = {}
|
|
1600
1600
|
|
|
@@ -1632,7 +1632,7 @@ module Appwrite
|
|
|
1632
1632
|
end
|
|
1633
1633
|
|
|
1634
1634
|
api_path = '/users/{userId}/status'
|
|
1635
|
-
.gsub('{userId}', user_id)
|
|
1635
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1636
1636
|
|
|
1637
1637
|
api_params = {
|
|
1638
1638
|
status: status,
|
|
@@ -1670,7 +1670,7 @@ module Appwrite
|
|
|
1670
1670
|
end
|
|
1671
1671
|
|
|
1672
1672
|
api_path = '/users/{userId}/targets'
|
|
1673
|
-
.gsub('{userId}', user_id)
|
|
1673
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1674
1674
|
|
|
1675
1675
|
api_params = {
|
|
1676
1676
|
queries: queries,
|
|
@@ -1726,7 +1726,7 @@ module Appwrite
|
|
|
1726
1726
|
end
|
|
1727
1727
|
|
|
1728
1728
|
api_path = '/users/{userId}/targets'
|
|
1729
|
-
.gsub('{userId}', user_id)
|
|
1729
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1730
1730
|
|
|
1731
1731
|
api_params = {
|
|
1732
1732
|
targetId: target_id,
|
|
@@ -1770,8 +1770,8 @@ module Appwrite
|
|
|
1770
1770
|
end
|
|
1771
1771
|
|
|
1772
1772
|
api_path = '/users/{userId}/targets/{targetId}'
|
|
1773
|
-
.gsub('{userId}', user_id)
|
|
1774
|
-
.gsub('{targetId}', target_id)
|
|
1773
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1774
|
+
.gsub('{targetId}', @client.encode_path(target_id))
|
|
1775
1775
|
|
|
1776
1776
|
api_params = {}
|
|
1777
1777
|
|
|
@@ -1814,8 +1814,8 @@ module Appwrite
|
|
|
1814
1814
|
end
|
|
1815
1815
|
|
|
1816
1816
|
api_path = '/users/{userId}/targets/{targetId}'
|
|
1817
|
-
.gsub('{userId}', user_id)
|
|
1818
|
-
.gsub('{targetId}', target_id)
|
|
1817
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1818
|
+
.gsub('{targetId}', @client.encode_path(target_id))
|
|
1819
1819
|
|
|
1820
1820
|
api_params = {
|
|
1821
1821
|
identifier: identifier,
|
|
@@ -1857,8 +1857,8 @@ module Appwrite
|
|
|
1857
1857
|
end
|
|
1858
1858
|
|
|
1859
1859
|
api_path = '/users/{userId}/targets/{targetId}'
|
|
1860
|
-
.gsub('{userId}', user_id)
|
|
1861
|
-
.gsub('{targetId}', target_id)
|
|
1860
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1861
|
+
.gsub('{targetId}', @client.encode_path(target_id))
|
|
1862
1862
|
|
|
1863
1863
|
api_params = {}
|
|
1864
1864
|
|
|
@@ -1897,7 +1897,7 @@ module Appwrite
|
|
|
1897
1897
|
end
|
|
1898
1898
|
|
|
1899
1899
|
api_path = '/users/{userId}/tokens'
|
|
1900
|
-
.gsub('{userId}', user_id)
|
|
1900
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1901
1901
|
|
|
1902
1902
|
api_params = {
|
|
1903
1903
|
length: length,
|
|
@@ -1938,7 +1938,7 @@ module Appwrite
|
|
|
1938
1938
|
end
|
|
1939
1939
|
|
|
1940
1940
|
api_path = '/users/{userId}/verification'
|
|
1941
|
-
.gsub('{userId}', user_id)
|
|
1941
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1942
1942
|
|
|
1943
1943
|
api_params = {
|
|
1944
1944
|
emailVerification: email_verification,
|
|
@@ -1978,7 +1978,7 @@ module Appwrite
|
|
|
1978
1978
|
end
|
|
1979
1979
|
|
|
1980
1980
|
api_path = '/users/{userId}/verification/phone'
|
|
1981
|
-
.gsub('{userId}', user_id)
|
|
1981
|
+
.gsub('{userId}', @client.encode_path(user_id))
|
|
1982
1982
|
|
|
1983
1983
|
api_params = {
|
|
1984
1984
|
phoneVerification: phone_verification,
|