appwrite 30.3.0 → 30.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7518dcd2e08b6917cae0f5d68ae9d50bcf47dcafc900571435e2f10c81b85c8
4
- data.tar.gz: 370850a37e56b5a72b6a700d932a42584603ec97818c46a7eb133c22f3d96ebd
3
+ metadata.gz: 74cae80fdbf5d2d8bce004eb891da0a982ee3c97b274059e4a29b16bd1181840
4
+ data.tar.gz: 7a7c50ed5def8bff4d644e98ab130c4794770edc651d2cf77d632cb911c51031
5
5
  SHA512:
6
- metadata.gz: f275b0df7a824ed73aa1b7314de9c8111de7f29a3c11cc27069dcbd86ca55a44ee66b75b84ed7e4f085ddcd0620a4d18ff17bdebea3e839546083284d83eb210
7
- data.tar.gz: f2b1069325a832912a369204908d3026ae92377d67b97c56978fbd6a98161b14a0f895126cfe8cce21de73e4c7c99118fb9da278ddba5bf3336c7fa5c867bc5e
6
+ metadata.gz: d93f03f527e1875a0ba0466d68b3c90169b1b96fadf6c7e1a2a17ccc75e8313a6456f99e4ce188397a74b5f6599b5cc2ba6313fa2816396b41deb384e871401e
7
+ data.tar.gz: a35a86f654b47cb1c6101571536a148a6eba0360ebce3f1061f76cdd8632380bf52938d487f98f0a9f08fa6bb067b3a93132fc339f77f02ed91e6176225e8cc1
@@ -14,7 +14,7 @@ module Appwrite
14
14
  'x-sdk-name' => 'Ruby',
15
15
  'x-sdk-platform' => 'server',
16
16
  'x-sdk-language' => 'ruby',
17
- 'x-sdk-version' => '30.3.0',
17
+ 'x-sdk-version' => '30.4.0',
18
18
  'X-Appwrite-Response-Format' => '2.7.2'
19
19
  }
20
20
  @endpoint = 'https://cloud.appwrite.io/v1'
@@ -4,6 +4,7 @@ module Appwrite
4
4
  AMAZON = 'amazon'
5
5
  APPLE = 'apple'
6
6
  APPWRITE = 'appwrite'
7
+ ATLASSIAN = 'atlassian'
7
8
  AUTH0 = 'auth0'
8
9
  AUTHENTIK = 'authentik'
9
10
  AUTODESK = 'autodesk'
@@ -23,31 +24,43 @@ module Appwrite
23
24
  GITLAB = 'gitlab'
24
25
  GOOGLE = 'google'
25
26
  HUGGINGFACE = 'huggingface'
27
+ INSTAGRAM = 'instagram'
26
28
  KAKAO = 'kakao'
27
29
  KEYCLOAK = 'keycloak'
28
30
  KICK = 'kick'
31
+ LINE = 'line'
32
+ LINEAR = 'linear'
29
33
  LINKEDIN = 'linkedin'
30
34
  MICROSOFT = 'microsoft'
31
35
  NAVER = 'naver'
36
+ NETLIFY = 'netlify'
32
37
  NOTION = 'notion'
33
38
  OIDC = 'oidc'
34
39
  OKTA = 'okta'
40
+ PATREON = 'patreon'
35
41
  PAYPAL = 'paypal'
36
42
  PAYPALSANDBOX = 'paypalSandbox'
37
43
  PODIO = 'podio'
44
+ RAILWAY = 'railway'
45
+ REDDIT = 'reddit'
38
46
  RESEND = 'resend'
47
+ ROBLOX = 'roblox'
39
48
  SALESFORCE = 'salesforce'
40
49
  SLACK = 'slack'
41
50
  SPOTIFY = 'spotify'
51
+ STRAVA = 'strava'
42
52
  STRIPE = 'stripe'
43
53
  TIKTOK = 'tiktok'
44
54
  TRADESHIFT = 'tradeshift'
45
55
  TRADESHIFTBOX = 'tradeshiftBox'
46
56
  TWITCH = 'twitch'
57
+ VERCEL = 'vercel'
47
58
  VIPPS = 'vipps'
48
59
  VIPPSSANDBOX = 'vippsSandbox'
60
+ VK = 'vk'
49
61
  WEBFLOW = 'webflow'
50
62
  WORDPRESS = 'wordpress'
63
+ WORKOS = 'workos'
51
64
  X = 'x'
52
65
  YAHOO = 'yahoo'
53
66
  YAMMER = 'yammer'
@@ -4,6 +4,7 @@ module Appwrite
4
4
  AMAZON = 'amazon'
5
5
  APPLE = 'apple'
6
6
  APPWRITE = 'appwrite'
7
+ ATLASSIAN = 'atlassian'
7
8
  AUTH0 = 'auth0'
8
9
  AUTHENTIK = 'authentik'
9
10
  AUTODESK = 'autodesk'
@@ -23,31 +24,43 @@ module Appwrite
23
24
  GITLAB = 'gitlab'
24
25
  GOOGLE = 'google'
25
26
  HUGGINGFACE = 'huggingface'
27
+ INSTAGRAM = 'instagram'
26
28
  KAKAO = 'kakao'
27
29
  KEYCLOAK = 'keycloak'
28
30
  KICK = 'kick'
31
+ LINE = 'line'
32
+ LINEAR = 'linear'
29
33
  LINKEDIN = 'linkedin'
30
34
  MICROSOFT = 'microsoft'
31
35
  NAVER = 'naver'
36
+ NETLIFY = 'netlify'
32
37
  NOTION = 'notion'
33
38
  OIDC = 'oidc'
34
39
  OKTA = 'okta'
40
+ PATREON = 'patreon'
35
41
  PAYPAL = 'paypal'
36
42
  PAYPALSANDBOX = 'paypalSandbox'
37
43
  PODIO = 'podio'
44
+ RAILWAY = 'railway'
45
+ REDDIT = 'reddit'
38
46
  RESEND = 'resend'
47
+ ROBLOX = 'roblox'
39
48
  SALESFORCE = 'salesforce'
40
49
  SLACK = 'slack'
41
50
  SPOTIFY = 'spotify'
51
+ STRAVA = 'strava'
42
52
  STRIPE = 'stripe'
43
53
  TIKTOK = 'tiktok'
44
54
  TRADESHIFT = 'tradeshift'
45
55
  TRADESHIFTBOX = 'tradeshiftBox'
46
56
  TWITCH = 'twitch'
57
+ VERCEL = 'vercel'
47
58
  VIPPS = 'vipps'
48
59
  VIPPSSANDBOX = 'vippsSandbox'
60
+ VK = 'vk'
49
61
  WEBFLOW = 'webflow'
50
62
  WORDPRESS = 'wordpress'
63
+ WORKOS = 'workos'
51
64
  X = 'x'
52
65
  YAHOO = 'yahoo'
53
66
  YAMMER = 'yammer'
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Atlassian
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Atlassian.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Instagram
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Instagram.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Line
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Line.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Linear
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Linear.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Netlify
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Netlify.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Patreon
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Patreon.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Railway
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Railway.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Reddit
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Reddit.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Roblox
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Roblox.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Strava
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Strava.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2Vercel
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2Vercel.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class OAuth2VK
6
+ attr_reader :id
7
+ attr_reader :enabled
8
+ attr_reader :client_id
9
+ attr_reader :client_secret
10
+
11
+ def initialize(
12
+ id:,
13
+ enabled:,
14
+ client_id:,
15
+ client_secret:
16
+ )
17
+ @id = id
18
+ @enabled = enabled
19
+ @client_id = client_id
20
+ @client_secret = client_secret
21
+ end
22
+
23
+ def self.from(map:)
24
+ map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
25
+ OAuth2VK.new(
26
+ id: map["$id"],
27
+ enabled: map["enabled"],
28
+ client_id: map["clientId"],
29
+ client_secret: map["clientSecret"]
30
+ )
31
+ end
32
+
33
+ def to_map
34
+ {
35
+ "$id": @id,
36
+ "enabled": @enabled,
37
+ "clientId": @client_id,
38
+ "clientSecret": @client_secret
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end