appwrite 19.3.0 → 20.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 +4 -4
- data/lib/appwrite/client.rb +1 -1
- data/lib/appwrite/enums/build_runtime.rb +2 -0
- data/lib/appwrite/enums/output.rb +13 -0
- data/lib/appwrite/enums/runtime.rb +2 -0
- data/lib/appwrite/enums/template_reference_type.rb +9 -0
- data/lib/appwrite/enums/theme.rb +8 -0
- data/lib/appwrite/enums/timezone.rb +425 -0
- data/lib/appwrite/enums/{vcs_deployment_type.rb → vcs_reference_type.rb} +1 -1
- data/lib/appwrite/models/bucket.rb +8 -3
- data/lib/appwrite/services/account.rb +2 -2
- data/lib/appwrite/services/avatars.rb +74 -0
- data/lib/appwrite/services/functions.rb +12 -6
- data/lib/appwrite/services/sites.rb +13 -7
- data/lib/appwrite/services/storage.rb +7 -3
- data/lib/appwrite/services/tables_db.rb +1 -1
- data/lib/appwrite.rb +5 -1
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44c3f7c9d3b58c24312f6fb43bee0247b9648e150d09f0ddeec7c36cc0d64f85
|
|
4
|
+
data.tar.gz: b6dc1549427f5bf36fbbfb78f8f30aed7a832231dc1a1302911cdd790ad4db5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc380605bc63bd67c73da7cb2e5956a26b3bd0cffbb047f5cc892402bfbdceecda419f67f33c16990dae9ac18f1b18e0cf0a268f50840ece53a9da1af1a4c06f
|
|
7
|
+
data.tar.gz: 7adb893e1c19536907b237655b5f99d3ba02e0d8deae33949e1466968a0251dd290d063651e7ebc84e2cba60871d3a0c4781caf4701d55c0a6f3b297dd10271d
|
data/lib/appwrite/client.rb
CHANGED
|
@@ -39,6 +39,7 @@ module Appwrite
|
|
|
39
39
|
DART_3_3 = 'dart-3.3'
|
|
40
40
|
DART_3_5 = 'dart-3.5'
|
|
41
41
|
DART_3_8 = 'dart-3.8'
|
|
42
|
+
DART_3_9 = 'dart-3.9'
|
|
42
43
|
DOTNET_6_0 = 'dotnet-6.0'
|
|
43
44
|
DOTNET_7_0 = 'dotnet-7.0'
|
|
44
45
|
DOTNET_8_0 = 'dotnet-8.0'
|
|
@@ -66,6 +67,7 @@ module Appwrite
|
|
|
66
67
|
FLUTTER_3_27 = 'flutter-3.27'
|
|
67
68
|
FLUTTER_3_29 = 'flutter-3.29'
|
|
68
69
|
FLUTTER_3_32 = 'flutter-3.32'
|
|
70
|
+
FLUTTER_3_35 = 'flutter-3.35'
|
|
69
71
|
end
|
|
70
72
|
end
|
|
71
73
|
end
|
|
@@ -39,6 +39,7 @@ module Appwrite
|
|
|
39
39
|
DART_3_3 = 'dart-3.3'
|
|
40
40
|
DART_3_5 = 'dart-3.5'
|
|
41
41
|
DART_3_8 = 'dart-3.8'
|
|
42
|
+
DART_3_9 = 'dart-3.9'
|
|
42
43
|
DOTNET_6_0 = 'dotnet-6.0'
|
|
43
44
|
DOTNET_7_0 = 'dotnet-7.0'
|
|
44
45
|
DOTNET_8_0 = 'dotnet-8.0'
|
|
@@ -66,6 +67,7 @@ module Appwrite
|
|
|
66
67
|
FLUTTER_3_27 = 'flutter-3.27'
|
|
67
68
|
FLUTTER_3_29 = 'flutter-3.29'
|
|
68
69
|
FLUTTER_3_32 = 'flutter-3.32'
|
|
70
|
+
FLUTTER_3_35 = 'flutter-3.35'
|
|
69
71
|
end
|
|
70
72
|
end
|
|
71
73
|
end
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
module Appwrite
|
|
2
|
+
module Enums
|
|
3
|
+
module Timezone
|
|
4
|
+
AFRICA_ABIDJAN = 'africa/abidjan'
|
|
5
|
+
AFRICA_ACCRA = 'africa/accra'
|
|
6
|
+
AFRICA_ADDIS_ABABA = 'africa/addis_ababa'
|
|
7
|
+
AFRICA_ALGIERS = 'africa/algiers'
|
|
8
|
+
AFRICA_ASMARA = 'africa/asmara'
|
|
9
|
+
AFRICA_BAMAKO = 'africa/bamako'
|
|
10
|
+
AFRICA_BANGUI = 'africa/bangui'
|
|
11
|
+
AFRICA_BANJUL = 'africa/banjul'
|
|
12
|
+
AFRICA_BISSAU = 'africa/bissau'
|
|
13
|
+
AFRICA_BLANTYRE = 'africa/blantyre'
|
|
14
|
+
AFRICA_BRAZZAVILLE = 'africa/brazzaville'
|
|
15
|
+
AFRICA_BUJUMBURA = 'africa/bujumbura'
|
|
16
|
+
AFRICA_CAIRO = 'africa/cairo'
|
|
17
|
+
AFRICA_CASABLANCA = 'africa/casablanca'
|
|
18
|
+
AFRICA_CEUTA = 'africa/ceuta'
|
|
19
|
+
AFRICA_CONAKRY = 'africa/conakry'
|
|
20
|
+
AFRICA_DAKAR = 'africa/dakar'
|
|
21
|
+
AFRICA_DAR_ES_SALAAM = 'africa/dar_es_salaam'
|
|
22
|
+
AFRICA_DJIBOUTI = 'africa/djibouti'
|
|
23
|
+
AFRICA_DOUALA = 'africa/douala'
|
|
24
|
+
AFRICA_EL_AAIUN = 'africa/el_aaiun'
|
|
25
|
+
AFRICA_FREETOWN = 'africa/freetown'
|
|
26
|
+
AFRICA_GABORONE = 'africa/gaborone'
|
|
27
|
+
AFRICA_HARARE = 'africa/harare'
|
|
28
|
+
AFRICA_JOHANNESBURG = 'africa/johannesburg'
|
|
29
|
+
AFRICA_JUBA = 'africa/juba'
|
|
30
|
+
AFRICA_KAMPALA = 'africa/kampala'
|
|
31
|
+
AFRICA_KHARTOUM = 'africa/khartoum'
|
|
32
|
+
AFRICA_KIGALI = 'africa/kigali'
|
|
33
|
+
AFRICA_KINSHASA = 'africa/kinshasa'
|
|
34
|
+
AFRICA_LAGOS = 'africa/lagos'
|
|
35
|
+
AFRICA_LIBREVILLE = 'africa/libreville'
|
|
36
|
+
AFRICA_LOME = 'africa/lome'
|
|
37
|
+
AFRICA_LUANDA = 'africa/luanda'
|
|
38
|
+
AFRICA_LUBUMBASHI = 'africa/lubumbashi'
|
|
39
|
+
AFRICA_LUSAKA = 'africa/lusaka'
|
|
40
|
+
AFRICA_MALABO = 'africa/malabo'
|
|
41
|
+
AFRICA_MAPUTO = 'africa/maputo'
|
|
42
|
+
AFRICA_MASERU = 'africa/maseru'
|
|
43
|
+
AFRICA_MBABANE = 'africa/mbabane'
|
|
44
|
+
AFRICA_MOGADISHU = 'africa/mogadishu'
|
|
45
|
+
AFRICA_MONROVIA = 'africa/monrovia'
|
|
46
|
+
AFRICA_NAIROBI = 'africa/nairobi'
|
|
47
|
+
AFRICA_NDJAMENA = 'africa/ndjamena'
|
|
48
|
+
AFRICA_NIAMEY = 'africa/niamey'
|
|
49
|
+
AFRICA_NOUAKCHOTT = 'africa/nouakchott'
|
|
50
|
+
AFRICA_OUAGADOUGOU = 'africa/ouagadougou'
|
|
51
|
+
AFRICA_PORTO_NOVO = 'africa/porto-novo'
|
|
52
|
+
AFRICA_SAO_TOME = 'africa/sao_tome'
|
|
53
|
+
AFRICA_TRIPOLI = 'africa/tripoli'
|
|
54
|
+
AFRICA_TUNIS = 'africa/tunis'
|
|
55
|
+
AFRICA_WINDHOEK = 'africa/windhoek'
|
|
56
|
+
AMERICA_ADAK = 'america/adak'
|
|
57
|
+
AMERICA_ANCHORAGE = 'america/anchorage'
|
|
58
|
+
AMERICA_ANGUILLA = 'america/anguilla'
|
|
59
|
+
AMERICA_ANTIGUA = 'america/antigua'
|
|
60
|
+
AMERICA_ARAGUAINA = 'america/araguaina'
|
|
61
|
+
AMERICA_ARGENTINA_BUENOS_AIRES = 'america/argentina/buenos_aires'
|
|
62
|
+
AMERICA_ARGENTINA_CATAMARCA = 'america/argentina/catamarca'
|
|
63
|
+
AMERICA_ARGENTINA_CORDOBA = 'america/argentina/cordoba'
|
|
64
|
+
AMERICA_ARGENTINA_JUJUY = 'america/argentina/jujuy'
|
|
65
|
+
AMERICA_ARGENTINA_LA_RIOJA = 'america/argentina/la_rioja'
|
|
66
|
+
AMERICA_ARGENTINA_MENDOZA = 'america/argentina/mendoza'
|
|
67
|
+
AMERICA_ARGENTINA_RIO_GALLEGOS = 'america/argentina/rio_gallegos'
|
|
68
|
+
AMERICA_ARGENTINA_SALTA = 'america/argentina/salta'
|
|
69
|
+
AMERICA_ARGENTINA_SAN_JUAN = 'america/argentina/san_juan'
|
|
70
|
+
AMERICA_ARGENTINA_SAN_LUIS = 'america/argentina/san_luis'
|
|
71
|
+
AMERICA_ARGENTINA_TUCUMAN = 'america/argentina/tucuman'
|
|
72
|
+
AMERICA_ARGENTINA_USHUAIA = 'america/argentina/ushuaia'
|
|
73
|
+
AMERICA_ARUBA = 'america/aruba'
|
|
74
|
+
AMERICA_ASUNCION = 'america/asuncion'
|
|
75
|
+
AMERICA_ATIKOKAN = 'america/atikokan'
|
|
76
|
+
AMERICA_BAHIA = 'america/bahia'
|
|
77
|
+
AMERICA_BAHIA_BANDERAS = 'america/bahia_banderas'
|
|
78
|
+
AMERICA_BARBADOS = 'america/barbados'
|
|
79
|
+
AMERICA_BELEM = 'america/belem'
|
|
80
|
+
AMERICA_BELIZE = 'america/belize'
|
|
81
|
+
AMERICA_BLANC_SABLON = 'america/blanc-sablon'
|
|
82
|
+
AMERICA_BOA_VISTA = 'america/boa_vista'
|
|
83
|
+
AMERICA_BOGOTA = 'america/bogota'
|
|
84
|
+
AMERICA_BOISE = 'america/boise'
|
|
85
|
+
AMERICA_CAMBRIDGE_BAY = 'america/cambridge_bay'
|
|
86
|
+
AMERICA_CAMPO_GRANDE = 'america/campo_grande'
|
|
87
|
+
AMERICA_CANCUN = 'america/cancun'
|
|
88
|
+
AMERICA_CARACAS = 'america/caracas'
|
|
89
|
+
AMERICA_CAYENNE = 'america/cayenne'
|
|
90
|
+
AMERICA_CAYMAN = 'america/cayman'
|
|
91
|
+
AMERICA_CHICAGO = 'america/chicago'
|
|
92
|
+
AMERICA_CHIHUAHUA = 'america/chihuahua'
|
|
93
|
+
AMERICA_CIUDAD_JUAREZ = 'america/ciudad_juarez'
|
|
94
|
+
AMERICA_COSTA_RICA = 'america/costa_rica'
|
|
95
|
+
AMERICA_COYHAIQUE = 'america/coyhaique'
|
|
96
|
+
AMERICA_CRESTON = 'america/creston'
|
|
97
|
+
AMERICA_CUIABA = 'america/cuiaba'
|
|
98
|
+
AMERICA_CURACAO = 'america/curacao'
|
|
99
|
+
AMERICA_DANMARKSHAVN = 'america/danmarkshavn'
|
|
100
|
+
AMERICA_DAWSON = 'america/dawson'
|
|
101
|
+
AMERICA_DAWSON_CREEK = 'america/dawson_creek'
|
|
102
|
+
AMERICA_DENVER = 'america/denver'
|
|
103
|
+
AMERICA_DETROIT = 'america/detroit'
|
|
104
|
+
AMERICA_DOMINICA = 'america/dominica'
|
|
105
|
+
AMERICA_EDMONTON = 'america/edmonton'
|
|
106
|
+
AMERICA_EIRUNEPE = 'america/eirunepe'
|
|
107
|
+
AMERICA_EL_SALVADOR = 'america/el_salvador'
|
|
108
|
+
AMERICA_FORT_NELSON = 'america/fort_nelson'
|
|
109
|
+
AMERICA_FORTALEZA = 'america/fortaleza'
|
|
110
|
+
AMERICA_GLACE_BAY = 'america/glace_bay'
|
|
111
|
+
AMERICA_GOOSE_BAY = 'america/goose_bay'
|
|
112
|
+
AMERICA_GRAND_TURK = 'america/grand_turk'
|
|
113
|
+
AMERICA_GRENADA = 'america/grenada'
|
|
114
|
+
AMERICA_GUADELOUPE = 'america/guadeloupe'
|
|
115
|
+
AMERICA_GUATEMALA = 'america/guatemala'
|
|
116
|
+
AMERICA_GUAYAQUIL = 'america/guayaquil'
|
|
117
|
+
AMERICA_GUYANA = 'america/guyana'
|
|
118
|
+
AMERICA_HALIFAX = 'america/halifax'
|
|
119
|
+
AMERICA_HAVANA = 'america/havana'
|
|
120
|
+
AMERICA_HERMOSILLO = 'america/hermosillo'
|
|
121
|
+
AMERICA_INDIANA_INDIANAPOLIS = 'america/indiana/indianapolis'
|
|
122
|
+
AMERICA_INDIANA_KNOX = 'america/indiana/knox'
|
|
123
|
+
AMERICA_INDIANA_MARENGO = 'america/indiana/marengo'
|
|
124
|
+
AMERICA_INDIANA_PETERSBURG = 'america/indiana/petersburg'
|
|
125
|
+
AMERICA_INDIANA_TELL_CITY = 'america/indiana/tell_city'
|
|
126
|
+
AMERICA_INDIANA_VEVAY = 'america/indiana/vevay'
|
|
127
|
+
AMERICA_INDIANA_VINCENNES = 'america/indiana/vincennes'
|
|
128
|
+
AMERICA_INDIANA_WINAMAC = 'america/indiana/winamac'
|
|
129
|
+
AMERICA_INUVIK = 'america/inuvik'
|
|
130
|
+
AMERICA_IQALUIT = 'america/iqaluit'
|
|
131
|
+
AMERICA_JAMAICA = 'america/jamaica'
|
|
132
|
+
AMERICA_JUNEAU = 'america/juneau'
|
|
133
|
+
AMERICA_KENTUCKY_LOUISVILLE = 'america/kentucky/louisville'
|
|
134
|
+
AMERICA_KENTUCKY_MONTICELLO = 'america/kentucky/monticello'
|
|
135
|
+
AMERICA_KRALENDIJK = 'america/kralendijk'
|
|
136
|
+
AMERICA_LA_PAZ = 'america/la_paz'
|
|
137
|
+
AMERICA_LIMA = 'america/lima'
|
|
138
|
+
AMERICA_LOS_ANGELES = 'america/los_angeles'
|
|
139
|
+
AMERICA_LOWER_PRINCES = 'america/lower_princes'
|
|
140
|
+
AMERICA_MACEIO = 'america/maceio'
|
|
141
|
+
AMERICA_MANAGUA = 'america/managua'
|
|
142
|
+
AMERICA_MANAUS = 'america/manaus'
|
|
143
|
+
AMERICA_MARIGOT = 'america/marigot'
|
|
144
|
+
AMERICA_MARTINIQUE = 'america/martinique'
|
|
145
|
+
AMERICA_MATAMOROS = 'america/matamoros'
|
|
146
|
+
AMERICA_MAZATLAN = 'america/mazatlan'
|
|
147
|
+
AMERICA_MENOMINEE = 'america/menominee'
|
|
148
|
+
AMERICA_MERIDA = 'america/merida'
|
|
149
|
+
AMERICA_METLAKATLA = 'america/metlakatla'
|
|
150
|
+
AMERICA_MEXICO_CITY = 'america/mexico_city'
|
|
151
|
+
AMERICA_MIQUELON = 'america/miquelon'
|
|
152
|
+
AMERICA_MONCTON = 'america/moncton'
|
|
153
|
+
AMERICA_MONTERREY = 'america/monterrey'
|
|
154
|
+
AMERICA_MONTEVIDEO = 'america/montevideo'
|
|
155
|
+
AMERICA_MONTSERRAT = 'america/montserrat'
|
|
156
|
+
AMERICA_NASSAU = 'america/nassau'
|
|
157
|
+
AMERICA_NEW_YORK = 'america/new_york'
|
|
158
|
+
AMERICA_NOME = 'america/nome'
|
|
159
|
+
AMERICA_NORONHA = 'america/noronha'
|
|
160
|
+
AMERICA_NORTH_DAKOTA_BEULAH = 'america/north_dakota/beulah'
|
|
161
|
+
AMERICA_NORTH_DAKOTA_CENTER = 'america/north_dakota/center'
|
|
162
|
+
AMERICA_NORTH_DAKOTA_NEW_SALEM = 'america/north_dakota/new_salem'
|
|
163
|
+
AMERICA_NUUK = 'america/nuuk'
|
|
164
|
+
AMERICA_OJINAGA = 'america/ojinaga'
|
|
165
|
+
AMERICA_PANAMA = 'america/panama'
|
|
166
|
+
AMERICA_PARAMARIBO = 'america/paramaribo'
|
|
167
|
+
AMERICA_PHOENIX = 'america/phoenix'
|
|
168
|
+
AMERICA_PORT_AU_PRINCE = 'america/port-au-prince'
|
|
169
|
+
AMERICA_PORT_OF_SPAIN = 'america/port_of_spain'
|
|
170
|
+
AMERICA_PORTO_VELHO = 'america/porto_velho'
|
|
171
|
+
AMERICA_PUERTO_RICO = 'america/puerto_rico'
|
|
172
|
+
AMERICA_PUNTA_ARENAS = 'america/punta_arenas'
|
|
173
|
+
AMERICA_RANKIN_INLET = 'america/rankin_inlet'
|
|
174
|
+
AMERICA_RECIFE = 'america/recife'
|
|
175
|
+
AMERICA_REGINA = 'america/regina'
|
|
176
|
+
AMERICA_RESOLUTE = 'america/resolute'
|
|
177
|
+
AMERICA_RIO_BRANCO = 'america/rio_branco'
|
|
178
|
+
AMERICA_SANTAREM = 'america/santarem'
|
|
179
|
+
AMERICA_SANTIAGO = 'america/santiago'
|
|
180
|
+
AMERICA_SANTO_DOMINGO = 'america/santo_domingo'
|
|
181
|
+
AMERICA_SAO_PAULO = 'america/sao_paulo'
|
|
182
|
+
AMERICA_SCORESBYSUND = 'america/scoresbysund'
|
|
183
|
+
AMERICA_SITKA = 'america/sitka'
|
|
184
|
+
AMERICA_ST_BARTHELEMY = 'america/st_barthelemy'
|
|
185
|
+
AMERICA_ST_JOHNS = 'america/st_johns'
|
|
186
|
+
AMERICA_ST_KITTS = 'america/st_kitts'
|
|
187
|
+
AMERICA_ST_LUCIA = 'america/st_lucia'
|
|
188
|
+
AMERICA_ST_THOMAS = 'america/st_thomas'
|
|
189
|
+
AMERICA_ST_VINCENT = 'america/st_vincent'
|
|
190
|
+
AMERICA_SWIFT_CURRENT = 'america/swift_current'
|
|
191
|
+
AMERICA_TEGUCIGALPA = 'america/tegucigalpa'
|
|
192
|
+
AMERICA_THULE = 'america/thule'
|
|
193
|
+
AMERICA_TIJUANA = 'america/tijuana'
|
|
194
|
+
AMERICA_TORONTO = 'america/toronto'
|
|
195
|
+
AMERICA_TORTOLA = 'america/tortola'
|
|
196
|
+
AMERICA_VANCOUVER = 'america/vancouver'
|
|
197
|
+
AMERICA_WHITEHORSE = 'america/whitehorse'
|
|
198
|
+
AMERICA_WINNIPEG = 'america/winnipeg'
|
|
199
|
+
AMERICA_YAKUTAT = 'america/yakutat'
|
|
200
|
+
ANTARCTICA_CASEY = 'antarctica/casey'
|
|
201
|
+
ANTARCTICA_DAVIS = 'antarctica/davis'
|
|
202
|
+
ANTARCTICA_DUMONTDURVILLE = 'antarctica/dumontdurville'
|
|
203
|
+
ANTARCTICA_MACQUARIE = 'antarctica/macquarie'
|
|
204
|
+
ANTARCTICA_MAWSON = 'antarctica/mawson'
|
|
205
|
+
ANTARCTICA_MCMURDO = 'antarctica/mcmurdo'
|
|
206
|
+
ANTARCTICA_PALMER = 'antarctica/palmer'
|
|
207
|
+
ANTARCTICA_ROTHERA = 'antarctica/rothera'
|
|
208
|
+
ANTARCTICA_SYOWA = 'antarctica/syowa'
|
|
209
|
+
ANTARCTICA_TROLL = 'antarctica/troll'
|
|
210
|
+
ANTARCTICA_VOSTOK = 'antarctica/vostok'
|
|
211
|
+
ARCTIC_LONGYEARBYEN = 'arctic/longyearbyen'
|
|
212
|
+
ASIA_ADEN = 'asia/aden'
|
|
213
|
+
ASIA_ALMATY = 'asia/almaty'
|
|
214
|
+
ASIA_AMMAN = 'asia/amman'
|
|
215
|
+
ASIA_ANADYR = 'asia/anadyr'
|
|
216
|
+
ASIA_AQTAU = 'asia/aqtau'
|
|
217
|
+
ASIA_AQTOBE = 'asia/aqtobe'
|
|
218
|
+
ASIA_ASHGABAT = 'asia/ashgabat'
|
|
219
|
+
ASIA_ATYRAU = 'asia/atyrau'
|
|
220
|
+
ASIA_BAGHDAD = 'asia/baghdad'
|
|
221
|
+
ASIA_BAHRAIN = 'asia/bahrain'
|
|
222
|
+
ASIA_BAKU = 'asia/baku'
|
|
223
|
+
ASIA_BANGKOK = 'asia/bangkok'
|
|
224
|
+
ASIA_BARNAUL = 'asia/barnaul'
|
|
225
|
+
ASIA_BEIRUT = 'asia/beirut'
|
|
226
|
+
ASIA_BISHKEK = 'asia/bishkek'
|
|
227
|
+
ASIA_BRUNEI = 'asia/brunei'
|
|
228
|
+
ASIA_CHITA = 'asia/chita'
|
|
229
|
+
ASIA_COLOMBO = 'asia/colombo'
|
|
230
|
+
ASIA_DAMASCUS = 'asia/damascus'
|
|
231
|
+
ASIA_DHAKA = 'asia/dhaka'
|
|
232
|
+
ASIA_DILI = 'asia/dili'
|
|
233
|
+
ASIA_DUBAI = 'asia/dubai'
|
|
234
|
+
ASIA_DUSHANBE = 'asia/dushanbe'
|
|
235
|
+
ASIA_FAMAGUSTA = 'asia/famagusta'
|
|
236
|
+
ASIA_GAZA = 'asia/gaza'
|
|
237
|
+
ASIA_HEBRON = 'asia/hebron'
|
|
238
|
+
ASIA_HO_CHI_MINH = 'asia/ho_chi_minh'
|
|
239
|
+
ASIA_HONG_KONG = 'asia/hong_kong'
|
|
240
|
+
ASIA_HOVD = 'asia/hovd'
|
|
241
|
+
ASIA_IRKUTSK = 'asia/irkutsk'
|
|
242
|
+
ASIA_JAKARTA = 'asia/jakarta'
|
|
243
|
+
ASIA_JAYAPURA = 'asia/jayapura'
|
|
244
|
+
ASIA_JERUSALEM = 'asia/jerusalem'
|
|
245
|
+
ASIA_KABUL = 'asia/kabul'
|
|
246
|
+
ASIA_KAMCHATKA = 'asia/kamchatka'
|
|
247
|
+
ASIA_KARACHI = 'asia/karachi'
|
|
248
|
+
ASIA_KATHMANDU = 'asia/kathmandu'
|
|
249
|
+
ASIA_KHANDYGA = 'asia/khandyga'
|
|
250
|
+
ASIA_KOLKATA = 'asia/kolkata'
|
|
251
|
+
ASIA_KRASNOYARSK = 'asia/krasnoyarsk'
|
|
252
|
+
ASIA_KUALA_LUMPUR = 'asia/kuala_lumpur'
|
|
253
|
+
ASIA_KUCHING = 'asia/kuching'
|
|
254
|
+
ASIA_KUWAIT = 'asia/kuwait'
|
|
255
|
+
ASIA_MACAU = 'asia/macau'
|
|
256
|
+
ASIA_MAGADAN = 'asia/magadan'
|
|
257
|
+
ASIA_MAKASSAR = 'asia/makassar'
|
|
258
|
+
ASIA_MANILA = 'asia/manila'
|
|
259
|
+
ASIA_MUSCAT = 'asia/muscat'
|
|
260
|
+
ASIA_NICOSIA = 'asia/nicosia'
|
|
261
|
+
ASIA_NOVOKUZNETSK = 'asia/novokuznetsk'
|
|
262
|
+
ASIA_NOVOSIBIRSK = 'asia/novosibirsk'
|
|
263
|
+
ASIA_OMSK = 'asia/omsk'
|
|
264
|
+
ASIA_ORAL = 'asia/oral'
|
|
265
|
+
ASIA_PHNOM_PENH = 'asia/phnom_penh'
|
|
266
|
+
ASIA_PONTIANAK = 'asia/pontianak'
|
|
267
|
+
ASIA_PYONGYANG = 'asia/pyongyang'
|
|
268
|
+
ASIA_QATAR = 'asia/qatar'
|
|
269
|
+
ASIA_QOSTANAY = 'asia/qostanay'
|
|
270
|
+
ASIA_QYZYLORDA = 'asia/qyzylorda'
|
|
271
|
+
ASIA_RIYADH = 'asia/riyadh'
|
|
272
|
+
ASIA_SAKHALIN = 'asia/sakhalin'
|
|
273
|
+
ASIA_SAMARKAND = 'asia/samarkand'
|
|
274
|
+
ASIA_SEOUL = 'asia/seoul'
|
|
275
|
+
ASIA_SHANGHAI = 'asia/shanghai'
|
|
276
|
+
ASIA_SINGAPORE = 'asia/singapore'
|
|
277
|
+
ASIA_SREDNEKOLYMSK = 'asia/srednekolymsk'
|
|
278
|
+
ASIA_TAIPEI = 'asia/taipei'
|
|
279
|
+
ASIA_TASHKENT = 'asia/tashkent'
|
|
280
|
+
ASIA_TBILISI = 'asia/tbilisi'
|
|
281
|
+
ASIA_TEHRAN = 'asia/tehran'
|
|
282
|
+
ASIA_THIMPHU = 'asia/thimphu'
|
|
283
|
+
ASIA_TOKYO = 'asia/tokyo'
|
|
284
|
+
ASIA_TOMSK = 'asia/tomsk'
|
|
285
|
+
ASIA_ULAANBAATAR = 'asia/ulaanbaatar'
|
|
286
|
+
ASIA_URUMQI = 'asia/urumqi'
|
|
287
|
+
ASIA_UST_NERA = 'asia/ust-nera'
|
|
288
|
+
ASIA_VIENTIANE = 'asia/vientiane'
|
|
289
|
+
ASIA_VLADIVOSTOK = 'asia/vladivostok'
|
|
290
|
+
ASIA_YAKUTSK = 'asia/yakutsk'
|
|
291
|
+
ASIA_YANGON = 'asia/yangon'
|
|
292
|
+
ASIA_YEKATERINBURG = 'asia/yekaterinburg'
|
|
293
|
+
ASIA_YEREVAN = 'asia/yerevan'
|
|
294
|
+
ATLANTIC_AZORES = 'atlantic/azores'
|
|
295
|
+
ATLANTIC_BERMUDA = 'atlantic/bermuda'
|
|
296
|
+
ATLANTIC_CANARY = 'atlantic/canary'
|
|
297
|
+
ATLANTIC_CAPE_VERDE = 'atlantic/cape_verde'
|
|
298
|
+
ATLANTIC_FAROE = 'atlantic/faroe'
|
|
299
|
+
ATLANTIC_MADEIRA = 'atlantic/madeira'
|
|
300
|
+
ATLANTIC_REYKJAVIK = 'atlantic/reykjavik'
|
|
301
|
+
ATLANTIC_SOUTH_GEORGIA = 'atlantic/south_georgia'
|
|
302
|
+
ATLANTIC_ST_HELENA = 'atlantic/st_helena'
|
|
303
|
+
ATLANTIC_STANLEY = 'atlantic/stanley'
|
|
304
|
+
AUSTRALIA_ADELAIDE = 'australia/adelaide'
|
|
305
|
+
AUSTRALIA_BRISBANE = 'australia/brisbane'
|
|
306
|
+
AUSTRALIA_BROKEN_HILL = 'australia/broken_hill'
|
|
307
|
+
AUSTRALIA_DARWIN = 'australia/darwin'
|
|
308
|
+
AUSTRALIA_EUCLA = 'australia/eucla'
|
|
309
|
+
AUSTRALIA_HOBART = 'australia/hobart'
|
|
310
|
+
AUSTRALIA_LINDEMAN = 'australia/lindeman'
|
|
311
|
+
AUSTRALIA_LORD_HOWE = 'australia/lord_howe'
|
|
312
|
+
AUSTRALIA_MELBOURNE = 'australia/melbourne'
|
|
313
|
+
AUSTRALIA_PERTH = 'australia/perth'
|
|
314
|
+
AUSTRALIA_SYDNEY = 'australia/sydney'
|
|
315
|
+
EUROPE_AMSTERDAM = 'europe/amsterdam'
|
|
316
|
+
EUROPE_ANDORRA = 'europe/andorra'
|
|
317
|
+
EUROPE_ASTRAKHAN = 'europe/astrakhan'
|
|
318
|
+
EUROPE_ATHENS = 'europe/athens'
|
|
319
|
+
EUROPE_BELGRADE = 'europe/belgrade'
|
|
320
|
+
EUROPE_BERLIN = 'europe/berlin'
|
|
321
|
+
EUROPE_BRATISLAVA = 'europe/bratislava'
|
|
322
|
+
EUROPE_BRUSSELS = 'europe/brussels'
|
|
323
|
+
EUROPE_BUCHAREST = 'europe/bucharest'
|
|
324
|
+
EUROPE_BUDAPEST = 'europe/budapest'
|
|
325
|
+
EUROPE_BUSINGEN = 'europe/busingen'
|
|
326
|
+
EUROPE_CHISINAU = 'europe/chisinau'
|
|
327
|
+
EUROPE_COPENHAGEN = 'europe/copenhagen'
|
|
328
|
+
EUROPE_DUBLIN = 'europe/dublin'
|
|
329
|
+
EUROPE_GIBRALTAR = 'europe/gibraltar'
|
|
330
|
+
EUROPE_GUERNSEY = 'europe/guernsey'
|
|
331
|
+
EUROPE_HELSINKI = 'europe/helsinki'
|
|
332
|
+
EUROPE_ISLE_OF_MAN = 'europe/isle_of_man'
|
|
333
|
+
EUROPE_ISTANBUL = 'europe/istanbul'
|
|
334
|
+
EUROPE_JERSEY = 'europe/jersey'
|
|
335
|
+
EUROPE_KALININGRAD = 'europe/kaliningrad'
|
|
336
|
+
EUROPE_KIROV = 'europe/kirov'
|
|
337
|
+
EUROPE_KYIV = 'europe/kyiv'
|
|
338
|
+
EUROPE_LISBON = 'europe/lisbon'
|
|
339
|
+
EUROPE_LJUBLJANA = 'europe/ljubljana'
|
|
340
|
+
EUROPE_LONDON = 'europe/london'
|
|
341
|
+
EUROPE_LUXEMBOURG = 'europe/luxembourg'
|
|
342
|
+
EUROPE_MADRID = 'europe/madrid'
|
|
343
|
+
EUROPE_MALTA = 'europe/malta'
|
|
344
|
+
EUROPE_MARIEHAMN = 'europe/mariehamn'
|
|
345
|
+
EUROPE_MINSK = 'europe/minsk'
|
|
346
|
+
EUROPE_MONACO = 'europe/monaco'
|
|
347
|
+
EUROPE_MOSCOW = 'europe/moscow'
|
|
348
|
+
EUROPE_OSLO = 'europe/oslo'
|
|
349
|
+
EUROPE_PARIS = 'europe/paris'
|
|
350
|
+
EUROPE_PODGORICA = 'europe/podgorica'
|
|
351
|
+
EUROPE_PRAGUE = 'europe/prague'
|
|
352
|
+
EUROPE_RIGA = 'europe/riga'
|
|
353
|
+
EUROPE_ROME = 'europe/rome'
|
|
354
|
+
EUROPE_SAMARA = 'europe/samara'
|
|
355
|
+
EUROPE_SAN_MARINO = 'europe/san_marino'
|
|
356
|
+
EUROPE_SARAJEVO = 'europe/sarajevo'
|
|
357
|
+
EUROPE_SARATOV = 'europe/saratov'
|
|
358
|
+
EUROPE_SIMFEROPOL = 'europe/simferopol'
|
|
359
|
+
EUROPE_SKOPJE = 'europe/skopje'
|
|
360
|
+
EUROPE_SOFIA = 'europe/sofia'
|
|
361
|
+
EUROPE_STOCKHOLM = 'europe/stockholm'
|
|
362
|
+
EUROPE_TALLINN = 'europe/tallinn'
|
|
363
|
+
EUROPE_TIRANE = 'europe/tirane'
|
|
364
|
+
EUROPE_ULYANOVSK = 'europe/ulyanovsk'
|
|
365
|
+
EUROPE_VADUZ = 'europe/vaduz'
|
|
366
|
+
EUROPE_VATICAN = 'europe/vatican'
|
|
367
|
+
EUROPE_VIENNA = 'europe/vienna'
|
|
368
|
+
EUROPE_VILNIUS = 'europe/vilnius'
|
|
369
|
+
EUROPE_VOLGOGRAD = 'europe/volgograd'
|
|
370
|
+
EUROPE_WARSAW = 'europe/warsaw'
|
|
371
|
+
EUROPE_ZAGREB = 'europe/zagreb'
|
|
372
|
+
EUROPE_ZURICH = 'europe/zurich'
|
|
373
|
+
INDIAN_ANTANANARIVO = 'indian/antananarivo'
|
|
374
|
+
INDIAN_CHAGOS = 'indian/chagos'
|
|
375
|
+
INDIAN_CHRISTMAS = 'indian/christmas'
|
|
376
|
+
INDIAN_COCOS = 'indian/cocos'
|
|
377
|
+
INDIAN_COMORO = 'indian/comoro'
|
|
378
|
+
INDIAN_KERGUELEN = 'indian/kerguelen'
|
|
379
|
+
INDIAN_MAHE = 'indian/mahe'
|
|
380
|
+
INDIAN_MALDIVES = 'indian/maldives'
|
|
381
|
+
INDIAN_MAURITIUS = 'indian/mauritius'
|
|
382
|
+
INDIAN_MAYOTTE = 'indian/mayotte'
|
|
383
|
+
INDIAN_REUNION = 'indian/reunion'
|
|
384
|
+
PACIFIC_APIA = 'pacific/apia'
|
|
385
|
+
PACIFIC_AUCKLAND = 'pacific/auckland'
|
|
386
|
+
PACIFIC_BOUGAINVILLE = 'pacific/bougainville'
|
|
387
|
+
PACIFIC_CHATHAM = 'pacific/chatham'
|
|
388
|
+
PACIFIC_CHUUK = 'pacific/chuuk'
|
|
389
|
+
PACIFIC_EASTER = 'pacific/easter'
|
|
390
|
+
PACIFIC_EFATE = 'pacific/efate'
|
|
391
|
+
PACIFIC_FAKAOFO = 'pacific/fakaofo'
|
|
392
|
+
PACIFIC_FIJI = 'pacific/fiji'
|
|
393
|
+
PACIFIC_FUNAFUTI = 'pacific/funafuti'
|
|
394
|
+
PACIFIC_GALAPAGOS = 'pacific/galapagos'
|
|
395
|
+
PACIFIC_GAMBIER = 'pacific/gambier'
|
|
396
|
+
PACIFIC_GUADALCANAL = 'pacific/guadalcanal'
|
|
397
|
+
PACIFIC_GUAM = 'pacific/guam'
|
|
398
|
+
PACIFIC_HONOLULU = 'pacific/honolulu'
|
|
399
|
+
PACIFIC_KANTON = 'pacific/kanton'
|
|
400
|
+
PACIFIC_KIRITIMATI = 'pacific/kiritimati'
|
|
401
|
+
PACIFIC_KOSRAE = 'pacific/kosrae'
|
|
402
|
+
PACIFIC_KWAJALEIN = 'pacific/kwajalein'
|
|
403
|
+
PACIFIC_MAJURO = 'pacific/majuro'
|
|
404
|
+
PACIFIC_MARQUESAS = 'pacific/marquesas'
|
|
405
|
+
PACIFIC_MIDWAY = 'pacific/midway'
|
|
406
|
+
PACIFIC_NAURU = 'pacific/nauru'
|
|
407
|
+
PACIFIC_NIUE = 'pacific/niue'
|
|
408
|
+
PACIFIC_NORFOLK = 'pacific/norfolk'
|
|
409
|
+
PACIFIC_NOUMEA = 'pacific/noumea'
|
|
410
|
+
PACIFIC_PAGO_PAGO = 'pacific/pago_pago'
|
|
411
|
+
PACIFIC_PALAU = 'pacific/palau'
|
|
412
|
+
PACIFIC_PITCAIRN = 'pacific/pitcairn'
|
|
413
|
+
PACIFIC_POHNPEI = 'pacific/pohnpei'
|
|
414
|
+
PACIFIC_PORT_MORESBY = 'pacific/port_moresby'
|
|
415
|
+
PACIFIC_RAROTONGA = 'pacific/rarotonga'
|
|
416
|
+
PACIFIC_SAIPAN = 'pacific/saipan'
|
|
417
|
+
PACIFIC_TAHITI = 'pacific/tahiti'
|
|
418
|
+
PACIFIC_TARAWA = 'pacific/tarawa'
|
|
419
|
+
PACIFIC_TONGATAPU = 'pacific/tongatapu'
|
|
420
|
+
PACIFIC_WAKE = 'pacific/wake'
|
|
421
|
+
PACIFIC_WALLIS = 'pacific/wallis'
|
|
422
|
+
UTC = 'utc'
|
|
423
|
+
end
|
|
424
|
+
end
|
|
425
|
+
end
|
|
@@ -15,6 +15,7 @@ module Appwrite
|
|
|
15
15
|
attr_reader :compression
|
|
16
16
|
attr_reader :encryption
|
|
17
17
|
attr_reader :antivirus
|
|
18
|
+
attr_reader :transformations
|
|
18
19
|
|
|
19
20
|
def initialize(
|
|
20
21
|
id:,
|
|
@@ -28,7 +29,8 @@ module Appwrite
|
|
|
28
29
|
allowed_file_extensions:,
|
|
29
30
|
compression:,
|
|
30
31
|
encryption:,
|
|
31
|
-
antivirus
|
|
32
|
+
antivirus:,
|
|
33
|
+
transformations:
|
|
32
34
|
)
|
|
33
35
|
@id = id
|
|
34
36
|
@created_at = created_at
|
|
@@ -42,6 +44,7 @@ module Appwrite
|
|
|
42
44
|
@compression = compression
|
|
43
45
|
@encryption = encryption
|
|
44
46
|
@antivirus = antivirus
|
|
47
|
+
@transformations = transformations
|
|
45
48
|
end
|
|
46
49
|
|
|
47
50
|
def self.from(map:)
|
|
@@ -57,7 +60,8 @@ module Appwrite
|
|
|
57
60
|
allowed_file_extensions: map["allowedFileExtensions"],
|
|
58
61
|
compression: map["compression"],
|
|
59
62
|
encryption: map["encryption"],
|
|
60
|
-
antivirus: map["antivirus"]
|
|
63
|
+
antivirus: map["antivirus"],
|
|
64
|
+
transformations: map["transformations"]
|
|
61
65
|
)
|
|
62
66
|
end
|
|
63
67
|
|
|
@@ -74,7 +78,8 @@ module Appwrite
|
|
|
74
78
|
"allowedFileExtensions": @allowed_file_extensions,
|
|
75
79
|
"compression": @compression,
|
|
76
80
|
"encryption": @encryption,
|
|
77
|
-
"antivirus": @antivirus
|
|
81
|
+
"antivirus": @antivirus,
|
|
82
|
+
"transformations": @transformations
|
|
78
83
|
}
|
|
79
84
|
end
|
|
80
85
|
end
|
|
@@ -362,7 +362,7 @@ module Appwrite
|
|
|
362
362
|
#
|
|
363
363
|
# @return [MfaChallenge]
|
|
364
364
|
def create_mfa_challenge(factor:)
|
|
365
|
-
api_path = '/account/mfa/
|
|
365
|
+
api_path = '/account/mfa/challenges'
|
|
366
366
|
|
|
367
367
|
if factor.nil?
|
|
368
368
|
raise Appwrite::Exception.new('Missing required parameter: "factor"')
|
|
@@ -396,7 +396,7 @@ module Appwrite
|
|
|
396
396
|
#
|
|
397
397
|
# @return [Session]
|
|
398
398
|
def update_mfa_challenge(challenge_id:, otp:)
|
|
399
|
-
api_path = '/account/mfa/
|
|
399
|
+
api_path = '/account/mfa/challenges'
|
|
400
400
|
|
|
401
401
|
if challenge_id.nil?
|
|
402
402
|
raise Appwrite::Exception.new('Missing required parameter: "challengeId"')
|
|
@@ -282,5 +282,79 @@ module Appwrite
|
|
|
282
282
|
)
|
|
283
283
|
end
|
|
284
284
|
|
|
285
|
+
# Use this endpoint to capture a screenshot of any website URL. This endpoint
|
|
286
|
+
# uses a headless browser to render the webpage and capture it as an image.
|
|
287
|
+
#
|
|
288
|
+
# You can configure the browser viewport size, theme, user agent,
|
|
289
|
+
# geolocation, permissions, and more. Capture either just the viewport or the
|
|
290
|
+
# full page scroll.
|
|
291
|
+
#
|
|
292
|
+
# When width and height are specified, the image is resized accordingly. If
|
|
293
|
+
# both dimensions are 0, the API provides an image at original size. If
|
|
294
|
+
# dimensions are not specified, the default viewport size is 1280x720px.
|
|
295
|
+
#
|
|
296
|
+
# @param [String] url Website URL which you want to capture.
|
|
297
|
+
# @param [Hash] headers HTTP headers to send with the browser request. Defaults to empty.
|
|
298
|
+
# @param [Integer] viewport_width Browser viewport width. Pass an integer between 1 to 1920. Defaults to 1280.
|
|
299
|
+
# @param [Integer] viewport_height Browser viewport height. Pass an integer between 1 to 1080. Defaults to 720.
|
|
300
|
+
# @param [Float] scale Browser scale factor. Pass a number between 0.1 to 3. Defaults to 1.
|
|
301
|
+
# @param [Theme] theme Browser theme. Pass "light" or "dark". Defaults to "light".
|
|
302
|
+
# @param [String] user_agent Custom user agent string. Defaults to browser default.
|
|
303
|
+
# @param [] fullpage Capture full page scroll. Pass 0 for viewport only, or 1 for full page. Defaults to 0.
|
|
304
|
+
# @param [String] locale Browser locale (e.g., "en-US", "fr-FR"). Defaults to browser default.
|
|
305
|
+
# @param [Timezone] timezone IANA timezone identifier (e.g., "America/New_York", "Europe/London"). Defaults to browser default.
|
|
306
|
+
# @param [Float] latitude Geolocation latitude. Pass a number between -90 to 90. Defaults to 0.
|
|
307
|
+
# @param [Float] longitude Geolocation longitude. Pass a number between -180 to 180. Defaults to 0.
|
|
308
|
+
# @param [Float] accuracy Geolocation accuracy in meters. Pass a number between 0 to 100000. Defaults to 0.
|
|
309
|
+
# @param [] touch Enable touch support. Pass 0 for no touch, or 1 for touch enabled. Defaults to 0.
|
|
310
|
+
# @param [Array] permissions Browser permissions to grant. Pass an array of permission names like ["geolocation", "camera", "microphone"]. Defaults to empty.
|
|
311
|
+
# @param [Integer] sleep Wait time in seconds before taking the screenshot. Pass an integer between 0 to 10. Defaults to 0.
|
|
312
|
+
# @param [Integer] width Output image width. Pass 0 to use original width, or an integer between 1 to 2000. Defaults to 0 (original width).
|
|
313
|
+
# @param [Integer] height Output image height. Pass 0 to use original height, or an integer between 1 to 2000. Defaults to 0 (original height).
|
|
314
|
+
# @param [Integer] quality Screenshot quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.
|
|
315
|
+
# @param [Output] output Output format type (jpeg, jpg, png, gif and webp).
|
|
316
|
+
#
|
|
317
|
+
# @return []
|
|
318
|
+
def get_screenshot(url:, headers: nil, viewport_width: nil, viewport_height: nil, scale: nil, theme: nil, user_agent: nil, fullpage: nil, locale: nil, timezone: nil, latitude: nil, longitude: nil, accuracy: nil, touch: nil, permissions: nil, sleep: nil, width: nil, height: nil, quality: nil, output: nil)
|
|
319
|
+
api_path = '/avatars/screenshots'
|
|
320
|
+
|
|
321
|
+
if url.nil?
|
|
322
|
+
raise Appwrite::Exception.new('Missing required parameter: "url"')
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
api_params = {
|
|
326
|
+
url: url,
|
|
327
|
+
headers: headers,
|
|
328
|
+
viewportWidth: viewport_width,
|
|
329
|
+
viewportHeight: viewport_height,
|
|
330
|
+
scale: scale,
|
|
331
|
+
theme: theme,
|
|
332
|
+
userAgent: user_agent,
|
|
333
|
+
fullpage: fullpage,
|
|
334
|
+
locale: locale,
|
|
335
|
+
timezone: timezone,
|
|
336
|
+
latitude: latitude,
|
|
337
|
+
longitude: longitude,
|
|
338
|
+
accuracy: accuracy,
|
|
339
|
+
touch: touch,
|
|
340
|
+
permissions: permissions,
|
|
341
|
+
sleep: sleep,
|
|
342
|
+
width: width,
|
|
343
|
+
height: height,
|
|
344
|
+
quality: quality,
|
|
345
|
+
output: output,
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
api_headers = {
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@client.call(
|
|
352
|
+
method: 'GET',
|
|
353
|
+
path: api_path,
|
|
354
|
+
headers: api_headers,
|
|
355
|
+
params: api_params,
|
|
356
|
+
)
|
|
357
|
+
end
|
|
358
|
+
|
|
285
359
|
end
|
|
286
360
|
end
|
|
@@ -458,11 +458,12 @@ module Appwrite
|
|
|
458
458
|
# @param [String] repository Repository name of the template.
|
|
459
459
|
# @param [String] owner The name of the owner of the template.
|
|
460
460
|
# @param [String] root_directory Path to function code in the template repo.
|
|
461
|
-
# @param [
|
|
461
|
+
# @param [TemplateReferenceType] type Type for the reference provided. Can be commit, branch, or tag
|
|
462
|
+
# @param [String] reference Reference value, can be a commit hash, branch name, or release tag
|
|
462
463
|
# @param [] activate Automatically activate the deployment when it is finished building.
|
|
463
464
|
#
|
|
464
465
|
# @return [Deployment]
|
|
465
|
-
def create_template_deployment(function_id:, repository:, owner:, root_directory:,
|
|
466
|
+
def create_template_deployment(function_id:, repository:, owner:, root_directory:, type:, reference:, activate: nil)
|
|
466
467
|
api_path = '/functions/{functionId}/deployments/template'
|
|
467
468
|
.gsub('{functionId}', function_id)
|
|
468
469
|
|
|
@@ -482,15 +483,20 @@ module Appwrite
|
|
|
482
483
|
raise Appwrite::Exception.new('Missing required parameter: "rootDirectory"')
|
|
483
484
|
end
|
|
484
485
|
|
|
485
|
-
if
|
|
486
|
-
raise Appwrite::Exception.new('Missing required parameter: "
|
|
486
|
+
if type.nil?
|
|
487
|
+
raise Appwrite::Exception.new('Missing required parameter: "type"')
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
if reference.nil?
|
|
491
|
+
raise Appwrite::Exception.new('Missing required parameter: "reference"')
|
|
487
492
|
end
|
|
488
493
|
|
|
489
494
|
api_params = {
|
|
490
495
|
repository: repository,
|
|
491
496
|
owner: owner,
|
|
492
497
|
rootDirectory: root_directory,
|
|
493
|
-
|
|
498
|
+
type: type,
|
|
499
|
+
reference: reference,
|
|
494
500
|
activate: activate,
|
|
495
501
|
}
|
|
496
502
|
|
|
@@ -512,7 +518,7 @@ module Appwrite
|
|
|
512
518
|
# This endpoint lets you create deployment from a branch, commit, or a tag.
|
|
513
519
|
#
|
|
514
520
|
# @param [String] function_id Function ID.
|
|
515
|
-
# @param [
|
|
521
|
+
# @param [VCSReferenceType] type Type of reference passed. Allowed values are: branch, commit
|
|
516
522
|
# @param [String] reference VCS reference to create deployment from. Depending on type this can be: branch name, commit hash
|
|
517
523
|
# @param [] activate Automatically activate the deployment when it is finished building.
|
|
518
524
|
#
|
|
@@ -356,7 +356,7 @@ module Appwrite
|
|
|
356
356
|
|
|
357
357
|
# Create a new site code deployment. Use this endpoint to upload a new
|
|
358
358
|
# version of your site code. To activate your newly uploaded code, you'll
|
|
359
|
-
# need to update the
|
|
359
|
+
# need to update the site's deployment to use your new deployment ID.
|
|
360
360
|
#
|
|
361
361
|
# @param [String] site_id Site ID.
|
|
362
362
|
# @param [file] code Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
|
|
@@ -457,11 +457,12 @@ module Appwrite
|
|
|
457
457
|
# @param [String] repository Repository name of the template.
|
|
458
458
|
# @param [String] owner The name of the owner of the template.
|
|
459
459
|
# @param [String] root_directory Path to site code in the template repo.
|
|
460
|
-
# @param [
|
|
460
|
+
# @param [TemplateReferenceType] type Type for the reference provided. Can be commit, branch, or tag
|
|
461
|
+
# @param [String] reference Reference value, can be a commit hash, branch name, or release tag
|
|
461
462
|
# @param [] activate Automatically activate the deployment when it is finished building.
|
|
462
463
|
#
|
|
463
464
|
# @return [Deployment]
|
|
464
|
-
def create_template_deployment(site_id:, repository:, owner:, root_directory:,
|
|
465
|
+
def create_template_deployment(site_id:, repository:, owner:, root_directory:, type:, reference:, activate: nil)
|
|
465
466
|
api_path = '/sites/{siteId}/deployments/template'
|
|
466
467
|
.gsub('{siteId}', site_id)
|
|
467
468
|
|
|
@@ -481,15 +482,20 @@ module Appwrite
|
|
|
481
482
|
raise Appwrite::Exception.new('Missing required parameter: "rootDirectory"')
|
|
482
483
|
end
|
|
483
484
|
|
|
484
|
-
if
|
|
485
|
-
raise Appwrite::Exception.new('Missing required parameter: "
|
|
485
|
+
if type.nil?
|
|
486
|
+
raise Appwrite::Exception.new('Missing required parameter: "type"')
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
if reference.nil?
|
|
490
|
+
raise Appwrite::Exception.new('Missing required parameter: "reference"')
|
|
486
491
|
end
|
|
487
492
|
|
|
488
493
|
api_params = {
|
|
489
494
|
repository: repository,
|
|
490
495
|
owner: owner,
|
|
491
496
|
rootDirectory: root_directory,
|
|
492
|
-
|
|
497
|
+
type: type,
|
|
498
|
+
reference: reference,
|
|
493
499
|
activate: activate,
|
|
494
500
|
}
|
|
495
501
|
|
|
@@ -511,7 +517,7 @@ module Appwrite
|
|
|
511
517
|
# This endpoint lets you create deployment from a branch, commit, or a tag.
|
|
512
518
|
#
|
|
513
519
|
# @param [String] site_id Site ID.
|
|
514
|
-
# @param [
|
|
520
|
+
# @param [VCSReferenceType] type Type of reference passed. Allowed values are: branch, commit
|
|
515
521
|
# @param [String] reference VCS reference to create deployment from. Depending on type this can be: branch name, commit hash
|
|
516
522
|
# @param [] activate Automatically activate the deployment when it is finished building.
|
|
517
523
|
#
|
|
@@ -10,7 +10,7 @@ module Appwrite
|
|
|
10
10
|
# Get a list of all the storage buckets. You can use the query params to
|
|
11
11
|
# filter your results.
|
|
12
12
|
#
|
|
13
|
-
# @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. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus
|
|
13
|
+
# @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. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations
|
|
14
14
|
# @param [String] search Search term to filter your list results. Max length: 256 chars.
|
|
15
15
|
# @param [] total When set to false, the total count returned will be 0 and will not be calculated.
|
|
16
16
|
#
|
|
@@ -48,9 +48,10 @@ module Appwrite
|
|
|
48
48
|
# @param [Compression] compression Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
49
49
|
# @param [] encryption Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
50
50
|
# @param [] antivirus Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
51
|
+
# @param [] transformations Are image transformations enabled?
|
|
51
52
|
#
|
|
52
53
|
# @return [Bucket]
|
|
53
|
-
def create_bucket(bucket_id:, name:, permissions: nil, file_security: nil, enabled: nil, maximum_file_size: nil, allowed_file_extensions: nil, compression: nil, encryption: nil, antivirus: nil)
|
|
54
|
+
def create_bucket(bucket_id:, name:, permissions: nil, file_security: nil, enabled: nil, maximum_file_size: nil, allowed_file_extensions: nil, compression: nil, encryption: nil, antivirus: nil, transformations: nil)
|
|
54
55
|
api_path = '/storage/buckets'
|
|
55
56
|
|
|
56
57
|
if bucket_id.nil?
|
|
@@ -72,6 +73,7 @@ module Appwrite
|
|
|
72
73
|
compression: compression,
|
|
73
74
|
encryption: encryption,
|
|
74
75
|
antivirus: antivirus,
|
|
76
|
+
transformations: transformations,
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
api_headers = {
|
|
@@ -128,9 +130,10 @@ module Appwrite
|
|
|
128
130
|
# @param [Compression] compression Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
129
131
|
# @param [] encryption Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
130
132
|
# @param [] antivirus Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
133
|
+
# @param [] transformations Are image transformations enabled?
|
|
131
134
|
#
|
|
132
135
|
# @return [Bucket]
|
|
133
|
-
def update_bucket(bucket_id:, name:, permissions: nil, file_security: nil, enabled: nil, maximum_file_size: nil, allowed_file_extensions: nil, compression: nil, encryption: nil, antivirus: nil)
|
|
136
|
+
def update_bucket(bucket_id:, name:, permissions: nil, file_security: nil, enabled: nil, maximum_file_size: nil, allowed_file_extensions: nil, compression: nil, encryption: nil, antivirus: nil, transformations: nil)
|
|
134
137
|
api_path = '/storage/buckets/{bucketId}'
|
|
135
138
|
.gsub('{bucketId}', bucket_id)
|
|
136
139
|
|
|
@@ -152,6 +155,7 @@ module Appwrite
|
|
|
152
155
|
compression: compression,
|
|
153
156
|
encryption: encryption,
|
|
154
157
|
antivirus: antivirus,
|
|
158
|
+
transformations: transformations,
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
api_headers = {
|
|
@@ -464,7 +464,7 @@ module Appwrite
|
|
|
464
464
|
# @param [String] table_id Table ID.
|
|
465
465
|
# @param [String] name Table name. Max length: 128 chars.
|
|
466
466
|
# @param [Array] permissions An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
467
|
-
# @param [] row_security Enables configuring permissions for individual rows. A user needs one of row or table
|
|
467
|
+
# @param [] row_security Enables configuring permissions for individual rows. A user needs one of row or table-level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
468
468
|
# @param [] enabled Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.
|
|
469
469
|
#
|
|
470
470
|
# @return [Table]
|
data/lib/appwrite.rb
CHANGED
|
@@ -142,11 +142,15 @@ require_relative 'appwrite/enums/o_auth_provider'
|
|
|
142
142
|
require_relative 'appwrite/enums/browser'
|
|
143
143
|
require_relative 'appwrite/enums/credit_card'
|
|
144
144
|
require_relative 'appwrite/enums/flag'
|
|
145
|
+
require_relative 'appwrite/enums/theme'
|
|
146
|
+
require_relative 'appwrite/enums/timezone'
|
|
147
|
+
require_relative 'appwrite/enums/output'
|
|
145
148
|
require_relative 'appwrite/enums/relationship_type'
|
|
146
149
|
require_relative 'appwrite/enums/relation_mutate'
|
|
147
150
|
require_relative 'appwrite/enums/index_type'
|
|
148
151
|
require_relative 'appwrite/enums/runtime'
|
|
149
|
-
require_relative 'appwrite/enums/
|
|
152
|
+
require_relative 'appwrite/enums/template_reference_type'
|
|
153
|
+
require_relative 'appwrite/enums/vcs_reference_type'
|
|
150
154
|
require_relative 'appwrite/enums/deployment_download_type'
|
|
151
155
|
require_relative 'appwrite/enums/execution_method'
|
|
152
156
|
require_relative 'appwrite/enums/name'
|
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: 20.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-
|
|
11
|
+
date: 2025-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mime-types
|
|
@@ -60,12 +60,16 @@ files:
|
|
|
60
60
|
- lib/appwrite/enums/messaging_provider_type.rb
|
|
61
61
|
- lib/appwrite/enums/name.rb
|
|
62
62
|
- lib/appwrite/enums/o_auth_provider.rb
|
|
63
|
+
- lib/appwrite/enums/output.rb
|
|
63
64
|
- lib/appwrite/enums/password_hash.rb
|
|
64
65
|
- lib/appwrite/enums/relation_mutate.rb
|
|
65
66
|
- lib/appwrite/enums/relationship_type.rb
|
|
66
67
|
- lib/appwrite/enums/runtime.rb
|
|
67
68
|
- lib/appwrite/enums/smtp_encryption.rb
|
|
68
|
-
- lib/appwrite/enums/
|
|
69
|
+
- lib/appwrite/enums/template_reference_type.rb
|
|
70
|
+
- lib/appwrite/enums/theme.rb
|
|
71
|
+
- lib/appwrite/enums/timezone.rb
|
|
72
|
+
- lib/appwrite/enums/vcs_reference_type.rb
|
|
69
73
|
- lib/appwrite/exception.rb
|
|
70
74
|
- lib/appwrite/id.rb
|
|
71
75
|
- lib/appwrite/input_file.rb
|