firecrawl-sdk 1.6.0 → 1.8.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e60c06ab05dc82b6a73b45fd0653e25ea9a52e6995b653adc02de1ead2544fc
|
|
4
|
+
data.tar.gz: 9d7229377ce68b2bf96edce29aa9db2685d11c45c108e1cdb4bab7f9b29b4081
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88f68bb69bf81891e6768901dfcdd7ee04c8dc2d878056f85311a7acf79f5a2fe5a8dc9ef6c9cd03570e690404bf498cccc994c733b9261d96a829ae78a581fa
|
|
7
|
+
data.tar.gz: ec03a978278b33c33e5452b8876a80ba205401e5a4689c023ed9ad1afa62cb28720cbb41d4e21272e4fb077f6b4c2767b6cfbe375b6d041b84246488162f212d
|
data/lib/firecrawl/client.rb
CHANGED
|
@@ -285,7 +285,8 @@ module Firecrawl
|
|
|
285
285
|
# MONITOR
|
|
286
286
|
# ================================================================
|
|
287
287
|
|
|
288
|
-
def create_monitor(name:, schedule:, targets:, webhook: nil, notification: nil,
|
|
288
|
+
def create_monitor(name:, schedule:, targets:, webhook: nil, notification: nil,
|
|
289
|
+
retention_days: nil, goal: nil, judge_enabled: nil)
|
|
289
290
|
body = {
|
|
290
291
|
"name" => name,
|
|
291
292
|
"schedule" => schedule,
|
|
@@ -293,6 +294,8 @@ module Firecrawl
|
|
|
293
294
|
"webhook" => webhook,
|
|
294
295
|
"notification" => notification,
|
|
295
296
|
"retentionDays" => retention_days,
|
|
297
|
+
"goal" => goal,
|
|
298
|
+
"judgeEnabled" => judge_enabled,
|
|
296
299
|
}.compact
|
|
297
300
|
raw = @http.post("/v2/monitor", body)
|
|
298
301
|
Models::Monitor.new(raw["data"] || raw)
|
|
@@ -321,6 +324,8 @@ module Firecrawl
|
|
|
321
324
|
"notification" => attrs[:notification],
|
|
322
325
|
"targets" => attrs[:targets],
|
|
323
326
|
"retentionDays" => attrs[:retention_days],
|
|
327
|
+
"goal" => attrs[:goal],
|
|
328
|
+
"judgeEnabled" => attrs[:judge_enabled],
|
|
324
329
|
}.compact
|
|
325
330
|
raw = @http.patch("/v2/monitor/#{monitor_id}", body)
|
|
326
331
|
Models::Monitor.new(raw["data"] || raw)
|
|
@@ -6,7 +6,8 @@ module Firecrawl
|
|
|
6
6
|
attr_reader :id, :name, :status, :schedule, :next_run_at, :last_run_at,
|
|
7
7
|
:current_check_id, :targets, :webhook, :notification,
|
|
8
8
|
:retention_days, :estimated_credits_per_month,
|
|
9
|
-
:last_check_summary, :
|
|
9
|
+
:last_check_summary, :goal, :judge_enabled,
|
|
10
|
+
:created_at, :updated_at
|
|
10
11
|
|
|
11
12
|
def initialize(data)
|
|
12
13
|
@id = data["id"]
|
|
@@ -22,6 +23,8 @@ module Firecrawl
|
|
|
22
23
|
@retention_days = data["retentionDays"]
|
|
23
24
|
@estimated_credits_per_month = data["estimatedCreditsPerMonth"]
|
|
24
25
|
@last_check_summary = data["lastCheckSummary"]
|
|
26
|
+
@goal = data["goal"]
|
|
27
|
+
@judge_enabled = data["judgeEnabled"] || false
|
|
25
28
|
@created_at = data["createdAt"]
|
|
26
29
|
@updated_at = data["updatedAt"]
|
|
27
30
|
end
|
|
@@ -68,6 +71,11 @@ module Firecrawl
|
|
|
68
71
|
# * +"snapshot"+ – present on JSON / mixed-mode monitors. A hash
|
|
69
72
|
# with a +"json"+ key holding the current JSON extraction at this
|
|
70
73
|
# run.
|
|
74
|
+
# * +"judgment"+ – present when the monitor has a +goal+ set and
|
|
75
|
+
# judging is enabled. A hash with +"meaningful"+ (Boolean),
|
|
76
|
+
# +"confidence"+ (+"high"+ / +"medium"+ / +"low"+), +"reason"+
|
|
77
|
+
# (String), and +"fields"+ (Array of String) describing which
|
|
78
|
+
# fields the judge weighed.
|
|
71
79
|
class MonitorCheckDetail < MonitorCheck
|
|
72
80
|
attr_accessor :pages, :next_url
|
|
73
81
|
|
|
@@ -13,7 +13,7 @@ module Firecrawl
|
|
|
13
13
|
FIELDS = %i[
|
|
14
14
|
formats headers include_tags exclude_tags only_main_content
|
|
15
15
|
timeout parsers skip_tls_verification remove_base64_images
|
|
16
|
-
block_ads proxy integration json_options
|
|
16
|
+
block_ads proxy integration redact_pii json_options
|
|
17
17
|
].freeze
|
|
18
18
|
|
|
19
19
|
attr_reader(*FIELDS)
|
|
@@ -38,6 +38,7 @@ module Firecrawl
|
|
|
38
38
|
"blockAds" => block_ads,
|
|
39
39
|
"proxy" => proxy,
|
|
40
40
|
"integration" => integration,
|
|
41
|
+
"redactPII" => redact_pii,
|
|
41
42
|
"jsonOptions" => json_options.is_a?(Hash) ? json_options : json_options&.to_h,
|
|
42
43
|
}.compact
|
|
43
44
|
end
|
|
@@ -8,7 +8,7 @@ module Firecrawl
|
|
|
8
8
|
formats headers include_tags exclude_tags only_main_content
|
|
9
9
|
timeout wait_for mobile parsers actions location
|
|
10
10
|
skip_tls_verification remove_base64_images block_ads proxy
|
|
11
|
-
max_age store_in_cache lockdown integration
|
|
11
|
+
max_age store_in_cache lockdown redact_pii integration
|
|
12
12
|
].freeze
|
|
13
13
|
|
|
14
14
|
attr_reader(*FIELDS)
|
|
@@ -38,6 +38,7 @@ module Firecrawl
|
|
|
38
38
|
"maxAge" => max_age,
|
|
39
39
|
"storeInCache" => store_in_cache,
|
|
40
40
|
"lockdown" => lockdown,
|
|
41
|
+
"redactPII" => redact_pii,
|
|
41
42
|
"integration" => integration,
|
|
42
43
|
}.compact
|
|
43
44
|
end
|
data/lib/firecrawl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: firecrawl-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Firecrawl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A type-safe Ruby client for the Firecrawl v2 API. Supports scraping,
|
|
14
14
|
crawling, batch scraping, URL mapping, web search, and AI agent operations.
|