fal 0.0.1 → 0.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/.env.example +1 -0
- data/.rubocop.yml +8 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +90 -26
- data/README.md +272 -0
- data/lib/fal/client.rb +151 -0
- data/lib/fal/model.rb +166 -0
- data/lib/fal/price.rb +92 -0
- data/lib/fal/price_estimate.rb +89 -0
- data/lib/fal/request.rb +161 -0
- data/lib/fal/stream.rb +92 -0
- data/lib/fal/version.rb +1 -1
- data/lib/fal/webhook_request.rb +99 -0
- data/lib/fal.rb +102 -0
- data/rbi/fal/client.rbi +59 -0
- data/rbi/fal/fal.rbi +68 -0
- data/rbi/fal/model.rbi +130 -0
- data/rbi/fal/price.rbi +49 -0
- data/rbi/fal/price_estimate.rbi +61 -0
- data/rbi/fal/request.rbi +88 -0
- data/rbi/fal/stream.rbi +37 -0
- data/rbi/fal/version.rbi +6 -0
- data/rbi/fal/webhook_request.rbi +61 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/.gitignore +2 -0
- metadata +21 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# typed: strict
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Fal
|
|
5
|
+
class WebhookRequest
|
|
6
|
+
sig { returns(T.nilable(String)) }
|
|
7
|
+
def request_id; end
|
|
8
|
+
|
|
9
|
+
sig { returns(T.nilable(String)) }
|
|
10
|
+
def gateway_request_id; end
|
|
11
|
+
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
def status; end
|
|
14
|
+
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
def error; end
|
|
17
|
+
|
|
18
|
+
sig { returns(T.untyped) }
|
|
19
|
+
def response; end
|
|
20
|
+
|
|
21
|
+
sig { returns(T.untyped) }
|
|
22
|
+
def logs; end
|
|
23
|
+
|
|
24
|
+
sig { returns(T.untyped) }
|
|
25
|
+
def metrics; end
|
|
26
|
+
|
|
27
|
+
sig { returns(T.untyped) }
|
|
28
|
+
def raw; end
|
|
29
|
+
|
|
30
|
+
sig { params(attributes: T.untyped).void }
|
|
31
|
+
def initialize(attributes); end
|
|
32
|
+
|
|
33
|
+
class << self
|
|
34
|
+
sig { params(json: String).returns(Fal::WebhookRequest) }
|
|
35
|
+
def from_json(json); end
|
|
36
|
+
|
|
37
|
+
sig { params(request: T.untyped).returns(Fal::WebhookRequest) }
|
|
38
|
+
def from_rack_request(request); end
|
|
39
|
+
|
|
40
|
+
sig { params(payload: T.untyped).returns(Fal::WebhookRequest) }
|
|
41
|
+
def from_hash(payload); end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
sig { returns(T::Boolean) }
|
|
45
|
+
def success?; end
|
|
46
|
+
|
|
47
|
+
sig { returns(T::Boolean) }
|
|
48
|
+
def error?; end
|
|
49
|
+
|
|
50
|
+
sig { returns(T.untyped) }
|
|
51
|
+
def payload; end
|
|
52
|
+
|
|
53
|
+
sig { returns(T.untyped) }
|
|
54
|
+
def error_detail; end
|
|
55
|
+
|
|
56
|
+
private
|
|
57
|
+
|
|
58
|
+
sig { params(attributes: T.untyped).void }
|
|
59
|
+
def reset_attributes(attributes); end
|
|
60
|
+
end
|
|
61
|
+
end
|
data/sorbet/config
ADDED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dylan Player
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-10-
|
|
11
|
+
date: 2025-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -31,6 +31,7 @@ executables: []
|
|
|
31
31
|
extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
|
33
33
|
files:
|
|
34
|
+
- ".env.example"
|
|
34
35
|
- ".rubocop.yml"
|
|
35
36
|
- ".ruby-version"
|
|
36
37
|
- Gemfile
|
|
@@ -40,7 +41,25 @@ files:
|
|
|
40
41
|
- Rakefile
|
|
41
42
|
- fal.gemspec
|
|
42
43
|
- lib/fal.rb
|
|
44
|
+
- lib/fal/client.rb
|
|
45
|
+
- lib/fal/model.rb
|
|
46
|
+
- lib/fal/price.rb
|
|
47
|
+
- lib/fal/price_estimate.rb
|
|
48
|
+
- lib/fal/request.rb
|
|
49
|
+
- lib/fal/stream.rb
|
|
43
50
|
- lib/fal/version.rb
|
|
51
|
+
- lib/fal/webhook_request.rb
|
|
52
|
+
- rbi/fal/client.rbi
|
|
53
|
+
- rbi/fal/fal.rbi
|
|
54
|
+
- rbi/fal/model.rbi
|
|
55
|
+
- rbi/fal/price.rbi
|
|
56
|
+
- rbi/fal/price_estimate.rbi
|
|
57
|
+
- rbi/fal/request.rbi
|
|
58
|
+
- rbi/fal/stream.rbi
|
|
59
|
+
- rbi/fal/version.rbi
|
|
60
|
+
- rbi/fal/webhook_request.rbi
|
|
61
|
+
- sorbet/config
|
|
62
|
+
- sorbet/rbi/.gitignore
|
|
44
63
|
homepage: https://github.com/851-labs/fal
|
|
45
64
|
licenses:
|
|
46
65
|
- MIT
|