firecrawl-sdk 1.5.0 → 1.7.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: 364810a7f7627c43f70a5d9f008f3a3fc0bcfb2f655a780190d93f8b577de1bf
4
- data.tar.gz: 8191bc44441edd5d9abe7671cfc9851388058be954684cc92ddf0e37cf7e3669
3
+ metadata.gz: f89972a4033215c664988fa49128f1fa00ce00954ee95df9c18862d51ab3510f
4
+ data.tar.gz: 49dccdb0175e34e36f824e27973a3bcbd3a1327a266658113af69752da274a5d
5
5
  SHA512:
6
- metadata.gz: 83d1e41c97ec1abb35b8d14cb0d7003b1a8a3aadbd99ff0526c088e52b75405a80b7dda5b6cb8e6e7ea9edcaa1e519d13e8b5884dcd04880cdb24b4f7a7346d6
7
- data.tar.gz: 057e47a4e06af5dc218413fd574aa7b6f22a09e3ec3878efe2d3cc4d6ef0dbdbd6b2db28ab11b48fbb7385d7b6b76d58f452b04c0698468e3597c5e08af50c58
6
+ metadata.gz: fa95c7d9d96a3278d339292a6ec9dd70add7a5e74fea10b1b8a96989255dcd5e3d125a16ec6094e06b02e83da03a9f7a8c4e9d7a51469697f9377d31fc25f69e
7
+ data.tar.gz: 3f95f218c9f090fce256a2842db6ad6291e24ac2b06d36bc535e298db3f3dee7b312fc91fe46cdd94d43b40d7dae337e7c0aa5e4c67eb0fbe0e422398ecc757c
@@ -285,7 +285,8 @@ module Firecrawl
285
285
  # MONITOR
286
286
  # ================================================================
287
287
 
288
- def create_monitor(name:, schedule:, targets:, webhook: nil, notification: nil, retention_days: 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, :created_at, :updated_at
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
@@ -55,6 +58,24 @@ module Firecrawl
55
58
  end
56
59
  end
57
60
 
61
+ # A monitor check with paginated page results inlined.
62
+ #
63
+ # Each entry in {#pages} is a {Hash} with the standard monitor page
64
+ # fields (id, targetId, url, status, previousScrapeId,
65
+ # currentScrapeId, statusCode, error, metadata, createdAt) plus:
66
+ #
67
+ # * +"diff"+ – when the page changed. A hash with +"text"+ (markdown
68
+ # unified diff) and/or +"json"+ (parseDiff AST for markdown
69
+ # monitors, or a per-field +{ "previous", "current" }+ map for
70
+ # JSON-extraction monitors).
71
+ # * +"snapshot"+ – present on JSON / mixed-mode monitors. A hash
72
+ # with a +"json"+ key holding the current JSON extraction at this
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.
58
79
  class MonitorCheckDetail < MonitorCheck
59
80
  attr_accessor :pages, :next_url
60
81
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Firecrawl
4
- VERSION = "1.5.0"
4
+ VERSION = "1.7.0"
5
5
  end
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.5.0
4
+ version: 1.7.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-05-12 00:00:00.000000000 Z
11
+ date: 2026-05-23 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.