appwrite 9.0.0 → 9.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,20 +17,20 @@ module Appwrite
17
17
  def list(queries: nil, search: nil)
18
18
  api_path = '/users'
19
19
 
20
- params = {
20
+ api_params = {
21
21
  queries: queries,
22
22
  search: search,
23
23
  }
24
24
 
25
- headers = {
25
+ api_headers = {
26
26
  "content-type": 'application/json',
27
27
  }
28
28
 
29
29
  @client.call(
30
30
  method: 'GET',
31
31
  path: api_path,
32
- headers: headers,
33
- params: params,
32
+ headers: api_headers,
33
+ params: api_params,
34
34
  response_type: Models::UserList
35
35
  )
36
36
  end
@@ -52,7 +52,7 @@ module Appwrite
52
52
  raise Appwrite::Exception.new('Missing required parameter: "userId"')
53
53
  end
54
54
 
55
- params = {
55
+ api_params = {
56
56
  userId: user_id,
57
57
  email: email,
58
58
  phone: phone,
@@ -60,15 +60,15 @@ module Appwrite
60
60
  name: name,
61
61
  }
62
62
 
63
- headers = {
63
+ api_headers = {
64
64
  "content-type": 'application/json',
65
65
  }
66
66
 
67
67
  @client.call(
68
68
  method: 'POST',
69
69
  path: api_path,
70
- headers: headers,
71
- params: params,
70
+ headers: api_headers,
71
+ params: api_params,
72
72
  response_type: Models::User
73
73
  )
74
74
  end
@@ -100,22 +100,22 @@ module Appwrite
100
100
  raise Appwrite::Exception.new('Missing required parameter: "password"')
101
101
  end
102
102
 
103
- params = {
103
+ api_params = {
104
104
  userId: user_id,
105
105
  email: email,
106
106
  password: password,
107
107
  name: name,
108
108
  }
109
109
 
110
- headers = {
110
+ api_headers = {
111
111
  "content-type": 'application/json',
112
112
  }
113
113
 
114
114
  @client.call(
115
115
  method: 'POST',
116
116
  path: api_path,
117
- headers: headers,
118
- params: params,
117
+ headers: api_headers,
118
+ params: api_params,
119
119
  response_type: Models::User
120
120
  )
121
121
  end
@@ -147,22 +147,22 @@ module Appwrite
147
147
  raise Appwrite::Exception.new('Missing required parameter: "password"')
148
148
  end
149
149
 
150
- params = {
150
+ api_params = {
151
151
  userId: user_id,
152
152
  email: email,
153
153
  password: password,
154
154
  name: name,
155
155
  }
156
156
 
157
- headers = {
157
+ api_headers = {
158
158
  "content-type": 'application/json',
159
159
  }
160
160
 
161
161
  @client.call(
162
162
  method: 'POST',
163
163
  path: api_path,
164
- headers: headers,
165
- params: params,
164
+ headers: api_headers,
165
+ params: api_params,
166
166
  response_type: Models::User
167
167
  )
168
168
  end
@@ -177,20 +177,20 @@ module Appwrite
177
177
  def list_identities(queries: nil, search: nil)
178
178
  api_path = '/users/identities'
179
179
 
180
- params = {
180
+ api_params = {
181
181
  queries: queries,
182
182
  search: search,
183
183
  }
184
184
 
185
- headers = {
185
+ api_headers = {
186
186
  "content-type": 'application/json',
187
187
  }
188
188
 
189
189
  @client.call(
190
190
  method: 'GET',
191
191
  path: api_path,
192
- headers: headers,
193
- params: params,
192
+ headers: api_headers,
193
+ params: api_params,
194
194
  response_type: Models::IdentityList
195
195
  )
196
196
  end
@@ -209,18 +209,18 @@ module Appwrite
209
209
  raise Appwrite::Exception.new('Missing required parameter: "identityId"')
210
210
  end
211
211
 
212
- params = {
212
+ api_params = {
213
213
  }
214
214
 
215
- headers = {
215
+ api_headers = {
216
216
  "content-type": 'application/json',
217
217
  }
218
218
 
219
219
  @client.call(
220
220
  method: 'DELETE',
221
221
  path: api_path,
222
- headers: headers,
223
- params: params,
222
+ headers: api_headers,
223
+ params: api_params,
224
224
  )
225
225
  end
226
226
 
@@ -251,22 +251,22 @@ module Appwrite
251
251
  raise Appwrite::Exception.new('Missing required parameter: "password"')
252
252
  end
253
253
 
254
- params = {
254
+ api_params = {
255
255
  userId: user_id,
256
256
  email: email,
257
257
  password: password,
258
258
  name: name,
259
259
  }
260
260
 
261
- headers = {
261
+ api_headers = {
262
262
  "content-type": 'application/json',
263
263
  }
264
264
 
265
265
  @client.call(
266
266
  method: 'POST',
267
267
  path: api_path,
268
- headers: headers,
269
- params: params,
268
+ headers: api_headers,
269
+ params: api_params,
270
270
  response_type: Models::User
271
271
  )
272
272
  end
@@ -298,22 +298,22 @@ module Appwrite
298
298
  raise Appwrite::Exception.new('Missing required parameter: "password"')
299
299
  end
300
300
 
301
- params = {
301
+ api_params = {
302
302
  userId: user_id,
303
303
  email: email,
304
304
  password: password,
305
305
  name: name,
306
306
  }
307
307
 
308
- headers = {
308
+ api_headers = {
309
309
  "content-type": 'application/json',
310
310
  }
311
311
 
312
312
  @client.call(
313
313
  method: 'POST',
314
314
  path: api_path,
315
- headers: headers,
316
- params: params,
315
+ headers: api_headers,
316
+ params: api_params,
317
317
  response_type: Models::User
318
318
  )
319
319
  end
@@ -370,7 +370,7 @@ module Appwrite
370
370
  raise Appwrite::Exception.new('Missing required parameter: "passwordLength"')
371
371
  end
372
372
 
373
- params = {
373
+ api_params = {
374
374
  userId: user_id,
375
375
  email: email,
376
376
  password: password,
@@ -382,15 +382,15 @@ module Appwrite
382
382
  name: name,
383
383
  }
384
384
 
385
- headers = {
385
+ api_headers = {
386
386
  "content-type": 'application/json',
387
387
  }
388
388
 
389
389
  @client.call(
390
390
  method: 'POST',
391
391
  path: api_path,
392
- headers: headers,
393
- params: params,
392
+ headers: api_headers,
393
+ params: api_params,
394
394
  response_type: Models::User
395
395
  )
396
396
  end
@@ -437,7 +437,7 @@ module Appwrite
437
437
  raise Appwrite::Exception.new('Missing required parameter: "passwordSignerKey"')
438
438
  end
439
439
 
440
- params = {
440
+ api_params = {
441
441
  userId: user_id,
442
442
  email: email,
443
443
  password: password,
@@ -447,15 +447,15 @@ module Appwrite
447
447
  name: name,
448
448
  }
449
449
 
450
- headers = {
450
+ api_headers = {
451
451
  "content-type": 'application/json',
452
452
  }
453
453
 
454
454
  @client.call(
455
455
  method: 'POST',
456
456
  path: api_path,
457
- headers: headers,
458
- params: params,
457
+ headers: api_headers,
458
+ params: api_params,
459
459
  response_type: Models::User
460
460
  )
461
461
  end
@@ -488,7 +488,7 @@ module Appwrite
488
488
  raise Appwrite::Exception.new('Missing required parameter: "password"')
489
489
  end
490
490
 
491
- params = {
491
+ api_params = {
492
492
  userId: user_id,
493
493
  email: email,
494
494
  password: password,
@@ -496,15 +496,15 @@ module Appwrite
496
496
  name: name,
497
497
  }
498
498
 
499
- headers = {
499
+ api_headers = {
500
500
  "content-type": 'application/json',
501
501
  }
502
502
 
503
503
  @client.call(
504
504
  method: 'POST',
505
505
  path: api_path,
506
- headers: headers,
507
- params: params,
506
+ headers: api_headers,
507
+ params: api_params,
508
508
  response_type: Models::User
509
509
  )
510
510
  end
@@ -523,18 +523,18 @@ module Appwrite
523
523
  raise Appwrite::Exception.new('Missing required parameter: "userId"')
524
524
  end
525
525
 
526
- params = {
526
+ api_params = {
527
527
  }
528
528
 
529
- headers = {
529
+ api_headers = {
530
530
  "content-type": 'application/json',
531
531
  }
532
532
 
533
533
  @client.call(
534
534
  method: 'GET',
535
535
  path: api_path,
536
- headers: headers,
537
- params: params,
536
+ headers: api_headers,
537
+ params: api_params,
538
538
  response_type: Models::User
539
539
  )
540
540
  end
@@ -557,18 +557,18 @@ module Appwrite
557
557
  raise Appwrite::Exception.new('Missing required parameter: "userId"')
558
558
  end
559
559
 
560
- params = {
560
+ api_params = {
561
561
  }
562
562
 
563
- headers = {
563
+ api_headers = {
564
564
  "content-type": 'application/json',
565
565
  }
566
566
 
567
567
  @client.call(
568
568
  method: 'DELETE',
569
569
  path: api_path,
570
- headers: headers,
571
- params: params,
570
+ headers: api_headers,
571
+ params: api_params,
572
572
  )
573
573
  end
574
574
 
@@ -591,19 +591,19 @@ module Appwrite
591
591
  raise Appwrite::Exception.new('Missing required parameter: "email"')
592
592
  end
593
593
 
594
- params = {
594
+ api_params = {
595
595
  email: email,
596
596
  }
597
597
 
598
- headers = {
598
+ api_headers = {
599
599
  "content-type": 'application/json',
600
600
  }
601
601
 
602
602
  @client.call(
603
603
  method: 'PATCH',
604
604
  path: api_path,
605
- headers: headers,
606
- params: params,
605
+ headers: api_headers,
606
+ params: api_params,
607
607
  response_type: Models::User
608
608
  )
609
609
  end
@@ -632,19 +632,19 @@ module Appwrite
632
632
  raise Appwrite::Exception.new('Missing required parameter: "labels"')
633
633
  end
634
634
 
635
- params = {
635
+ api_params = {
636
636
  labels: labels,
637
637
  }
638
638
 
639
- headers = {
639
+ api_headers = {
640
640
  "content-type": 'application/json',
641
641
  }
642
642
 
643
643
  @client.call(
644
644
  method: 'PUT',
645
645
  path: api_path,
646
- headers: headers,
647
- params: params,
646
+ headers: api_headers,
647
+ params: api_params,
648
648
  response_type: Models::User
649
649
  )
650
650
  end
@@ -664,19 +664,19 @@ module Appwrite
664
664
  raise Appwrite::Exception.new('Missing required parameter: "userId"')
665
665
  end
666
666
 
667
- params = {
667
+ api_params = {
668
668
  queries: queries,
669
669
  }
670
670
 
671
- headers = {
671
+ api_headers = {
672
672
  "content-type": 'application/json',
673
673
  }
674
674
 
675
675
  @client.call(
676
676
  method: 'GET',
677
677
  path: api_path,
678
- headers: headers,
679
- params: params,
678
+ headers: api_headers,
679
+ params: api_params,
680
680
  response_type: Models::LogList
681
681
  )
682
682
  end
@@ -695,18 +695,18 @@ module Appwrite
695
695
  raise Appwrite::Exception.new('Missing required parameter: "userId"')
696
696
  end
697
697
 
698
- params = {
698
+ api_params = {
699
699
  }
700
700
 
701
- headers = {
701
+ api_headers = {
702
702
  "content-type": 'application/json',
703
703
  }
704
704
 
705
705
  @client.call(
706
706
  method: 'GET',
707
707
  path: api_path,
708
- headers: headers,
709
- params: params,
708
+ headers: api_headers,
709
+ params: api_params,
710
710
  response_type: Models::MembershipList
711
711
  )
712
712
  end
@@ -730,19 +730,19 @@ module Appwrite
730
730
  raise Appwrite::Exception.new('Missing required parameter: "name"')
731
731
  end
732
732
 
733
- params = {
733
+ api_params = {
734
734
  name: name,
735
735
  }
736
736
 
737
- headers = {
737
+ api_headers = {
738
738
  "content-type": 'application/json',
739
739
  }
740
740
 
741
741
  @client.call(
742
742
  method: 'PATCH',
743
743
  path: api_path,
744
- headers: headers,
745
- params: params,
744
+ headers: api_headers,
745
+ params: api_params,
746
746
  response_type: Models::User
747
747
  )
748
748
  end
@@ -766,19 +766,19 @@ module Appwrite
766
766
  raise Appwrite::Exception.new('Missing required parameter: "password"')
767
767
  end
768
768
 
769
- params = {
769
+ api_params = {
770
770
  password: password,
771
771
  }
772
772
 
773
- headers = {
773
+ api_headers = {
774
774
  "content-type": 'application/json',
775
775
  }
776
776
 
777
777
  @client.call(
778
778
  method: 'PATCH',
779
779
  path: api_path,
780
- headers: headers,
781
- params: params,
780
+ headers: api_headers,
781
+ params: api_params,
782
782
  response_type: Models::User
783
783
  )
784
784
  end
@@ -802,19 +802,19 @@ module Appwrite
802
802
  raise Appwrite::Exception.new('Missing required parameter: "number"')
803
803
  end
804
804
 
805
- params = {
805
+ api_params = {
806
806
  number: number,
807
807
  }
808
808
 
809
- headers = {
809
+ api_headers = {
810
810
  "content-type": 'application/json',
811
811
  }
812
812
 
813
813
  @client.call(
814
814
  method: 'PATCH',
815
815
  path: api_path,
816
- headers: headers,
817
- params: params,
816
+ headers: api_headers,
817
+ params: api_params,
818
818
  response_type: Models::User
819
819
  )
820
820
  end
@@ -833,18 +833,18 @@ module Appwrite
833
833
  raise Appwrite::Exception.new('Missing required parameter: "userId"')
834
834
  end
835
835
 
836
- params = {
836
+ api_params = {
837
837
  }
838
838
 
839
- headers = {
839
+ api_headers = {
840
840
  "content-type": 'application/json',
841
841
  }
842
842
 
843
843
  @client.call(
844
844
  method: 'GET',
845
845
  path: api_path,
846
- headers: headers,
847
- params: params,
846
+ headers: api_headers,
847
+ params: api_params,
848
848
  response_type: Models::Preferences
849
849
  )
850
850
  end
@@ -870,19 +870,19 @@ module Appwrite
870
870
  raise Appwrite::Exception.new('Missing required parameter: "prefs"')
871
871
  end
872
872
 
873
- params = {
873
+ api_params = {
874
874
  prefs: prefs,
875
875
  }
876
876
 
877
- headers = {
877
+ api_headers = {
878
878
  "content-type": 'application/json',
879
879
  }
880
880
 
881
881
  @client.call(
882
882
  method: 'PATCH',
883
883
  path: api_path,
884
- headers: headers,
885
- params: params,
884
+ headers: api_headers,
885
+ params: api_params,
886
886
  response_type: Models::Preferences
887
887
  )
888
888
  end
@@ -901,18 +901,18 @@ module Appwrite
901
901
  raise Appwrite::Exception.new('Missing required parameter: "userId"')
902
902
  end
903
903
 
904
- params = {
904
+ api_params = {
905
905
  }
906
906
 
907
- headers = {
907
+ api_headers = {
908
908
  "content-type": 'application/json',
909
909
  }
910
910
 
911
911
  @client.call(
912
912
  method: 'GET',
913
913
  path: api_path,
914
- headers: headers,
915
- params: params,
914
+ headers: api_headers,
915
+ params: api_params,
916
916
  response_type: Models::SessionList
917
917
  )
918
918
  end
@@ -931,18 +931,18 @@ module Appwrite
931
931
  raise Appwrite::Exception.new('Missing required parameter: "userId"')
932
932
  end
933
933
 
934
- params = {
934
+ api_params = {
935
935
  }
936
936
 
937
- headers = {
937
+ api_headers = {
938
938
  "content-type": 'application/json',
939
939
  }
940
940
 
941
941
  @client.call(
942
942
  method: 'DELETE',
943
943
  path: api_path,
944
- headers: headers,
945
- params: params,
944
+ headers: api_headers,
945
+ params: api_params,
946
946
  )
947
947
  end
948
948
 
@@ -966,18 +966,18 @@ module Appwrite
966
966
  raise Appwrite::Exception.new('Missing required parameter: "sessionId"')
967
967
  end
968
968
 
969
- params = {
969
+ api_params = {
970
970
  }
971
971
 
972
- headers = {
972
+ api_headers = {
973
973
  "content-type": 'application/json',
974
974
  }
975
975
 
976
976
  @client.call(
977
977
  method: 'DELETE',
978
978
  path: api_path,
979
- headers: headers,
980
- params: params,
979
+ headers: api_headers,
980
+ params: api_params,
981
981
  )
982
982
  end
983
983
 
@@ -1001,19 +1001,19 @@ module Appwrite
1001
1001
  raise Appwrite::Exception.new('Missing required parameter: "status"')
1002
1002
  end
1003
1003
 
1004
- params = {
1004
+ api_params = {
1005
1005
  status: status,
1006
1006
  }
1007
1007
 
1008
- headers = {
1008
+ api_headers = {
1009
1009
  "content-type": 'application/json',
1010
1010
  }
1011
1011
 
1012
1012
  @client.call(
1013
1013
  method: 'PATCH',
1014
1014
  path: api_path,
1015
- headers: headers,
1016
- params: params,
1015
+ headers: api_headers,
1016
+ params: api_params,
1017
1017
  response_type: Models::User
1018
1018
  )
1019
1019
  end
@@ -1037,19 +1037,19 @@ module Appwrite
1037
1037
  raise Appwrite::Exception.new('Missing required parameter: "emailVerification"')
1038
1038
  end
1039
1039
 
1040
- params = {
1040
+ api_params = {
1041
1041
  emailVerification: email_verification,
1042
1042
  }
1043
1043
 
1044
- headers = {
1044
+ api_headers = {
1045
1045
  "content-type": 'application/json',
1046
1046
  }
1047
1047
 
1048
1048
  @client.call(
1049
1049
  method: 'PATCH',
1050
1050
  path: api_path,
1051
- headers: headers,
1052
- params: params,
1051
+ headers: api_headers,
1052
+ params: api_params,
1053
1053
  response_type: Models::User
1054
1054
  )
1055
1055
  end
@@ -1073,19 +1073,19 @@ module Appwrite
1073
1073
  raise Appwrite::Exception.new('Missing required parameter: "phoneVerification"')
1074
1074
  end
1075
1075
 
1076
- params = {
1076
+ api_params = {
1077
1077
  phoneVerification: phone_verification,
1078
1078
  }
1079
1079
 
1080
- headers = {
1080
+ api_headers = {
1081
1081
  "content-type": 'application/json',
1082
1082
  }
1083
1083
 
1084
1084
  @client.call(
1085
1085
  method: 'PATCH',
1086
1086
  path: api_path,
1087
- headers: headers,
1088
- params: params,
1087
+ headers: api_headers,
1088
+ params: api_params,
1089
1089
  response_type: Models::User
1090
1090
  )
1091
1091
  end
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.0
4
+ version: 9.0.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: 2023-08-30 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types