context.dev 2.19.0 → 2.20.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/CHANGELOG.md +202 -0
- data/README.md +1 -1
- data/lib/context_dev/models/web_scrape_params.rb +133 -4
- data/lib/context_dev/models/web_scrape_response.rb +321 -6
- data/lib/context_dev/resources/web.rb +20 -8
- data/lib/context_dev/version.rb +1 -1
- data/rbi/context_dev/models/web_scrape_params.rbi +224 -3
- data/rbi/context_dev/models/web_scrape_response.rbi +564 -6
- data/rbi/context_dev/resources/web.rbi +24 -7
- data/sig/context_dev/models/web_scrape_params.rbs +91 -0
- data/sig/context_dev/models/web_scrape_response.rbs +230 -0
- data/sig/context_dev/resources/web.rbs +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e77aec25d51b70c0df1a55ba12b10fad65b5366d49e720e6efefabf6c3a23711
|
|
4
|
+
data.tar.gz: '03190fde06fe98e9fb590ebbf09d0871f47cbfe824ea48158e0ee5b62aa36dd1'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f037514e5a499f5632b49fcec6d219dbcf14950e58d0178861f9583ebf303e71ec7f8baac7db9934c4e74d49df45f3bd46f51a5235b51acc80dcb808b0e1a8d5
|
|
7
|
+
data.tar.gz: c44695655f09ef6b9d2aee15b39c7e1522e05f69d46b201aaaa1621d82001e16f25749976b9f1a8b662440bbb2cf24bfd598f6cac50b1d436bdf810d48b0d915
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,207 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.20.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.19.0...v2.20.0) (2026-09-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **answers:** add live web research with fast and ultra modes ([#954](https://github.com/context-dot-dev/context-ruby-sdk/issues/954)) ([838e943](https://github.com/context-dot-dev/context-ruby-sdk/commit/838e943b1fe34aeaf6f804ff534c22f62b4900fe))
|
|
9
|
+
* **api-keys:** enforce scoped API key permissions ([#1038](https://github.com/context-dot-dev/context-ruby-sdk/issues/1038)) ([7f87431](https://github.com/context-dot-dev/context-ruby-sdk/commit/7f874312c42b5c12020d71251f8bfc6eaa8ab2aa))
|
|
10
|
+
* **api:** api update ([f7adbd6](https://github.com/context-dot-dev/context-ruby-sdk/commit/f7adbd63407b697245019ea9483dc090de9ba0ff))
|
|
11
|
+
* **api:** api update ([c26b304](https://github.com/context-dot-dev/context-ruby-sdk/commit/c26b30411607dcc2eaad14962d582f4588f5193f))
|
|
12
|
+
* **api:** api update ([852a96e](https://github.com/context-dot-dev/context-ruby-sdk/commit/852a96e58dab7e6fef53af10093119ffc237f52e))
|
|
13
|
+
* **api:** api update ([c16beb5](https://github.com/context-dot-dev/context-ruby-sdk/commit/c16beb55d66977611c58711b489132f347ab2c96))
|
|
14
|
+
* **api:** api update ([9bff49f](https://github.com/context-dot-dev/context-ruby-sdk/commit/9bff49f9a966fd40691f2cd7a41ba96ec7679243))
|
|
15
|
+
* **api:** api update ([5b19e0c](https://github.com/context-dot-dev/context-ruby-sdk/commit/5b19e0ce1f7ad615a92e28440bec6ab3703ffe02))
|
|
16
|
+
* **api:** api update ([f4ccf22](https://github.com/context-dot-dev/context-ruby-sdk/commit/f4ccf220f130672950d3231a6b9952c166168ef9))
|
|
17
|
+
* **api:** api update ([6f90ebf](https://github.com/context-dot-dev/context-ruby-sdk/commit/6f90ebff6164a8daf2f6c4bf8d1492ade1ad2779))
|
|
18
|
+
* **api:** api update ([95cbdde](https://github.com/context-dot-dev/context-ruby-sdk/commit/95cbddeb3a3351a03c394709dfeaf3fb5c98be92))
|
|
19
|
+
* **api:** api update ([97520df](https://github.com/context-dot-dev/context-ruby-sdk/commit/97520df52a798122460e2f219d7b582d2f6830da))
|
|
20
|
+
* **api:** api update ([2b73772](https://github.com/context-dot-dev/context-ruby-sdk/commit/2b737722e962cf7a5aba20a2b596d379f7f2bce0))
|
|
21
|
+
* **api:** api update ([630b415](https://github.com/context-dot-dev/context-ruby-sdk/commit/630b4156f12004d2da154e26003271cd143ccbb8))
|
|
22
|
+
* **api:** api update ([ea29f67](https://github.com/context-dot-dev/context-ruby-sdk/commit/ea29f67042bd6fd9b987d7ad4ad9f8993a871653))
|
|
23
|
+
* **api:** api update ([e7c64e4](https://github.com/context-dot-dev/context-ruby-sdk/commit/e7c64e4540db4cc313d70cebe5409739b052e567))
|
|
24
|
+
* **api:** api update ([975de89](https://github.com/context-dot-dev/context-ruby-sdk/commit/975de893c9145f20f541a443730d7d99f575a313))
|
|
25
|
+
* **api:** api update ([a1f13c2](https://github.com/context-dot-dev/context-ruby-sdk/commit/a1f13c2244b0ac81a58c350e6cba79875e0c4bf1))
|
|
26
|
+
* **api:** api update ([e7cfd87](https://github.com/context-dot-dev/context-ruby-sdk/commit/e7cfd87ff2e163f572cc33ee4b6af5be79811d03))
|
|
27
|
+
* **api:** api update ([c827408](https://github.com/context-dot-dev/context-ruby-sdk/commit/c8274088947813e1090d6232190b5333c025696a))
|
|
28
|
+
* **api:** api update ([5c09f03](https://github.com/context-dot-dev/context-ruby-sdk/commit/5c09f03dd90cda2cad388ac2605d6cadebf0e137))
|
|
29
|
+
* **api:** api update ([b0bdc3e](https://github.com/context-dot-dev/context-ruby-sdk/commit/b0bdc3ec9322ce5854177cdaff808caaba427746))
|
|
30
|
+
* **api:** api update ([17848b3](https://github.com/context-dot-dev/context-ruby-sdk/commit/17848b313dcbd098b21902bd2bd2cab6d9ad5ce2))
|
|
31
|
+
* **api:** api update ([4db7386](https://github.com/context-dot-dev/context-ruby-sdk/commit/4db7386bf6f686a33beae7817ec9122e1adad47f))
|
|
32
|
+
* **api:** api update ([cedd9b1](https://github.com/context-dot-dev/context-ruby-sdk/commit/cedd9b1191e1297236c2aa6dede3fa640380b651))
|
|
33
|
+
* **api:** api update ([98fedb9](https://github.com/context-dot-dev/context-ruby-sdk/commit/98fedb99aae187cff9284efd0a6c574b1b71d749))
|
|
34
|
+
* **api:** api update ([7a5cc9a](https://github.com/context-dot-dev/context-ruby-sdk/commit/7a5cc9aa3bd2c746d0e47a58fbc426453db3b8c7))
|
|
35
|
+
* **api:** api update ([6cfd0e8](https://github.com/context-dot-dev/context-ruby-sdk/commit/6cfd0e80f3860cfbddd595ac4c72461075775415))
|
|
36
|
+
* **api:** api update ([99bdfb2](https://github.com/context-dot-dev/context-ruby-sdk/commit/99bdfb24af9adfac64ee68ca714fb1176c1d61c0))
|
|
37
|
+
* **api:** api update ([5af0d4b](https://github.com/context-dot-dev/context-ruby-sdk/commit/5af0d4b1954673356f6200967dbea5ea61685025))
|
|
38
|
+
* **api:** api update ([28793d8](https://github.com/context-dot-dev/context-ruby-sdk/commit/28793d84ed93dcf457aaf3f346056f2480f37724))
|
|
39
|
+
* **api:** api update ([c9c4475](https://github.com/context-dot-dev/context-ruby-sdk/commit/c9c447554772879c742d72ac88174a75fbff599a))
|
|
40
|
+
* **api:** api update ([72e6d90](https://github.com/context-dot-dev/context-ruby-sdk/commit/72e6d90baaeeb9181482488e7b49e511597d2175))
|
|
41
|
+
* **api:** api update ([2574f7d](https://github.com/context-dot-dev/context-ruby-sdk/commit/2574f7db809d8480db2b7ae2705fd2de6a1ce2ff))
|
|
42
|
+
* **api:** api update ([8fb7d29](https://github.com/context-dot-dev/context-ruby-sdk/commit/8fb7d29835d4ffe7eb53b1619d3da20fa45df52c))
|
|
43
|
+
* **api:** api update ([f5684a3](https://github.com/context-dot-dev/context-ruby-sdk/commit/f5684a355f24bf6a80aa904f09087a899f2121aa))
|
|
44
|
+
* **api:** api update ([426deb1](https://github.com/context-dot-dev/context-ruby-sdk/commit/426deb18249b214c3ccaa44c1e654e75ef666dd2))
|
|
45
|
+
* **api:** api update ([3fd9604](https://github.com/context-dot-dev/context-ruby-sdk/commit/3fd960488c341f082b6d312dda927aeee23dccff))
|
|
46
|
+
* **api:** api update ([bdd3176](https://github.com/context-dot-dev/context-ruby-sdk/commit/bdd3176c7f507880adb7becae314b816c6bbe9bc))
|
|
47
|
+
* **api:** api update ([d68d31d](https://github.com/context-dot-dev/context-ruby-sdk/commit/d68d31dc5aa77ad154789b6cf91e0b8558353214))
|
|
48
|
+
* **api:** api update ([d4c601e](https://github.com/context-dot-dev/context-ruby-sdk/commit/d4c601ea30aa1d47ef041d0439ab8b5d976cc8e2))
|
|
49
|
+
* **api:** api update ([03fa3ac](https://github.com/context-dot-dev/context-ruby-sdk/commit/03fa3ac3c7c61aba88846db890bf4d3fd22d1086))
|
|
50
|
+
* **api:** api update ([626d105](https://github.com/context-dot-dev/context-ruby-sdk/commit/626d1054da9622e88469bb9c3b755f43d1d75280))
|
|
51
|
+
* **api:** api update ([04e3709](https://github.com/context-dot-dev/context-ruby-sdk/commit/04e370916ae9679892d86fc297e3c935afa1e2c2))
|
|
52
|
+
* **api:** api update ([59b7e62](https://github.com/context-dot-dev/context-ruby-sdk/commit/59b7e62e57eff7482db12fe2dd1a97298620b88f))
|
|
53
|
+
* **api:** api update ([7fe6a1f](https://github.com/context-dot-dev/context-ruby-sdk/commit/7fe6a1fbd2977c0669b7623ba96533b43789b8ae))
|
|
54
|
+
* **api:** api update ([cd5b872](https://github.com/context-dot-dev/context-ruby-sdk/commit/cd5b8725dcd7fb06d7bd684aa4ce11b81ca4409a))
|
|
55
|
+
* **api:** api update ([bdc4962](https://github.com/context-dot-dev/context-ruby-sdk/commit/bdc4962f436086be52293ea489960b6b6158726b))
|
|
56
|
+
* **api:** api update ([531ccbe](https://github.com/context-dot-dev/context-ruby-sdk/commit/531ccbeb9770c4340641353859064b50aa6d72bc))
|
|
57
|
+
* **api:** api update ([b0511d9](https://github.com/context-dot-dev/context-ruby-sdk/commit/b0511d905641a19d59391ff26ac27d474016ac26))
|
|
58
|
+
* **api:** api update ([a146323](https://github.com/context-dot-dev/context-ruby-sdk/commit/a14632340e78b4b21be6c742f3792a7f14ca4fae))
|
|
59
|
+
* **api:** api update ([4a4a076](https://github.com/context-dot-dev/context-ruby-sdk/commit/4a4a0762b6c422c5507f847bb06b9ac0fb11e605))
|
|
60
|
+
* **api:** api update ([4682d0b](https://github.com/context-dot-dev/context-ruby-sdk/commit/4682d0b50170440ce7a3b60beadad10cefff3168))
|
|
61
|
+
* **api:** api update ([0026695](https://github.com/context-dot-dev/context-ruby-sdk/commit/00266958beb99d8747e4e5422a122792e0cb8080))
|
|
62
|
+
* **api:** api update ([3393a00](https://github.com/context-dot-dev/context-ruby-sdk/commit/3393a0047608f81e85a7c011ff3fd6356d7433a3))
|
|
63
|
+
* **api:** api update ([ab547fb](https://github.com/context-dot-dev/context-ruby-sdk/commit/ab547fb83535a1184f2aa1414b86022e4550704f))
|
|
64
|
+
* **api:** api update ([d71fbde](https://github.com/context-dot-dev/context-ruby-sdk/commit/d71fbde94bc39245091db193f120fa383efea82f))
|
|
65
|
+
* **api:** api update ([8fb393a](https://github.com/context-dot-dev/context-ruby-sdk/commit/8fb393a6a53d4ec6867efe8d9daf8458d9fa3cc8))
|
|
66
|
+
* **api:** api update ([edf39d7](https://github.com/context-dot-dev/context-ruby-sdk/commit/edf39d75e9ca0a7b96ddac6467f9b50ceca0acf1))
|
|
67
|
+
* **api:** api update ([893f11d](https://github.com/context-dot-dev/context-ruby-sdk/commit/893f11d2746ccb636e971e12c24553043046cb11))
|
|
68
|
+
* **api:** api update ([59319b0](https://github.com/context-dot-dev/context-ruby-sdk/commit/59319b0421154c96a444f5e2d45b83e8f4bc9074))
|
|
69
|
+
* **api:** api update ([125ebe5](https://github.com/context-dot-dev/context-ruby-sdk/commit/125ebe5cb023b276c01bdc8c3cafbe8841dffddb))
|
|
70
|
+
* **api:** api update ([26f4358](https://github.com/context-dot-dev/context-ruby-sdk/commit/26f43582d8d63b9ebd98f0ba04c64e93d61b185f))
|
|
71
|
+
* **api:** api update ([94469da](https://github.com/context-dot-dev/context-ruby-sdk/commit/94469da02de1d8713f5bcb723cab05f0e23bb33d))
|
|
72
|
+
* **api:** api update ([65310de](https://github.com/context-dot-dev/context-ruby-sdk/commit/65310de1d9739b217660fc4ab8e5462bc5a0f081))
|
|
73
|
+
* **api:** api update ([67ddd60](https://github.com/context-dot-dev/context-ruby-sdk/commit/67ddd60fffad48a4cc6697fb940f6510bc04d0cb))
|
|
74
|
+
* **api:** api update ([e987167](https://github.com/context-dot-dev/context-ruby-sdk/commit/e9871675c89fd313209d95cd54071fe986dd772a))
|
|
75
|
+
* **api:** api update ([2170040](https://github.com/context-dot-dev/context-ruby-sdk/commit/2170040142dab272a55f903f0d062b0d36d751aa))
|
|
76
|
+
* **api:** api update ([c57bae4](https://github.com/context-dot-dev/context-ruby-sdk/commit/c57bae40d99770e18c92d402eb71dc0aa651f522))
|
|
77
|
+
* **api:** api update ([c897bbf](https://github.com/context-dot-dev/context-ruby-sdk/commit/c897bbf03235960c8036bd808c5239b935d94bf3))
|
|
78
|
+
* **api:** api update ([9aa6127](https://github.com/context-dot-dev/context-ruby-sdk/commit/9aa6127b563032655648c3c24fe9564616ebe3f1))
|
|
79
|
+
* **api:** api update ([22eb08f](https://github.com/context-dot-dev/context-ruby-sdk/commit/22eb08f65d1001052f1bd247a4d60e2680bb33ea))
|
|
80
|
+
* **api:** api update ([d442168](https://github.com/context-dot-dev/context-ruby-sdk/commit/d442168b67accce12463e36f03630f155c1c7be3))
|
|
81
|
+
* **api:** api update ([f3a97c1](https://github.com/context-dot-dev/context-ruby-sdk/commit/f3a97c19ef01be5e6cf1ce7ecfa26c972edfdf33))
|
|
82
|
+
* **api:** api update ([8d8abf7](https://github.com/context-dot-dev/context-ruby-sdk/commit/8d8abf7c1600bce17ea26aa245f41b2e3199f722))
|
|
83
|
+
* **api:** api update ([7948cbf](https://github.com/context-dot-dev/context-ruby-sdk/commit/7948cbf296742dd0fea7c08c148962a35ed88c20))
|
|
84
|
+
* **api:** api update ([5574aa6](https://github.com/context-dot-dev/context-ruby-sdk/commit/5574aa6793f9ff576b625cbb2e86fa819fd3bf36))
|
|
85
|
+
* **api:** api update ([6e08ffc](https://github.com/context-dot-dev/context-ruby-sdk/commit/6e08ffc77cc708d31b9a3972bc3e2ac86c2fdb92))
|
|
86
|
+
* **api:** api update ([ab9c393](https://github.com/context-dot-dev/context-ruby-sdk/commit/ab9c3935b669fbe2c7a8ffdd5bff7ea05fc2ae56))
|
|
87
|
+
* **api:** api update ([7f8b7b7](https://github.com/context-dot-dev/context-ruby-sdk/commit/7f8b7b7a720f3fdf5364ffaf7c7e55f171b72c0e))
|
|
88
|
+
* **api:** api update ([b582c05](https://github.com/context-dot-dev/context-ruby-sdk/commit/b582c05376102bb0cb6f8d4d8c9a2cefdef8c1ec))
|
|
89
|
+
* **api:** api update ([4a4e4bb](https://github.com/context-dot-dev/context-ruby-sdk/commit/4a4e4bbc547662de263a307b213dd7eecd03a61d))
|
|
90
|
+
* **api:** api update ([ae638b0](https://github.com/context-dot-dev/context-ruby-sdk/commit/ae638b04d0e08bf93e2cdd1211236d841d5313b1))
|
|
91
|
+
* **api:** api update ([8376344](https://github.com/context-dot-dev/context-ruby-sdk/commit/8376344a7a72a7ff01906bc3d6a5913a4de60bcb))
|
|
92
|
+
* **api:** api update ([f0b1f3a](https://github.com/context-dot-dev/context-ruby-sdk/commit/f0b1f3afd885c44cb464393b57d944fa27a6c0b5))
|
|
93
|
+
* **api:** api update ([42c8282](https://github.com/context-dot-dev/context-ruby-sdk/commit/42c8282f18c421ca317b51c640ea42cc04c61230))
|
|
94
|
+
* **api:** api update ([58cb73a](https://github.com/context-dot-dev/context-ruby-sdk/commit/58cb73a109e20f296f6a5f256a94d690b1203f70))
|
|
95
|
+
* **api:** api update ([59a9399](https://github.com/context-dot-dev/context-ruby-sdk/commit/59a93997a90f6afac755abf6686c139b92d8463e))
|
|
96
|
+
* **api:** api update ([c74cbf3](https://github.com/context-dot-dev/context-ruby-sdk/commit/c74cbf354e15c2b56680b4248ed69462a1a84d23))
|
|
97
|
+
* **api:** api update ([cc57672](https://github.com/context-dot-dev/context-ruby-sdk/commit/cc576729ce6c522ee578e7dc5f99122463014515))
|
|
98
|
+
* **api:** api update ([84bfef2](https://github.com/context-dot-dev/context-ruby-sdk/commit/84bfef260d99a7a444c243edc4be1c72191929dd))
|
|
99
|
+
* **api:** api update ([5405b96](https://github.com/context-dot-dev/context-ruby-sdk/commit/5405b9676800e2004d92dd9f621dfc56972bacd2))
|
|
100
|
+
* **api:** api update ([9c8b4d9](https://github.com/context-dot-dev/context-ruby-sdk/commit/9c8b4d9b1d813c5b7992998a3fa23cde63fe2f4c))
|
|
101
|
+
* **api:** api update ([c1543f7](https://github.com/context-dot-dev/context-ruby-sdk/commit/c1543f7513b2d88b0c8ad8e209e62075bd9658bc))
|
|
102
|
+
* **api:** api update ([9c98e20](https://github.com/context-dot-dev/context-ruby-sdk/commit/9c98e20725dcda8466a2274b61be75943d0564d9))
|
|
103
|
+
* **api:** api update ([8ccafd9](https://github.com/context-dot-dev/context-ruby-sdk/commit/8ccafd9625079f40393fe23890958a80d8bdb4e8))
|
|
104
|
+
* **api:** api update ([30ef99f](https://github.com/context-dot-dev/context-ruby-sdk/commit/30ef99f9a0d61f6528aed16b080f376753b3447a))
|
|
105
|
+
* **api:** api update ([c9851eb](https://github.com/context-dot-dev/context-ruby-sdk/commit/c9851ebc0618d7433ed88f7062902fcec575b229))
|
|
106
|
+
* **api:** api update ([55529f6](https://github.com/context-dot-dev/context-ruby-sdk/commit/55529f63e23cf255645bdb2d0420bf24aaba28b1))
|
|
107
|
+
* **api:** api update ([51320a5](https://github.com/context-dot-dev/context-ruby-sdk/commit/51320a5677298ab231dc417ef3c54d6a75e640ba))
|
|
108
|
+
* **api:** api update ([5a69904](https://github.com/context-dot-dev/context-ruby-sdk/commit/5a69904d89cc873614e8320308eecac9304992d2))
|
|
109
|
+
* **api:** api update ([7d186fa](https://github.com/context-dot-dev/context-ruby-sdk/commit/7d186faf849e20bcd958beb5f46b71f6440b8358))
|
|
110
|
+
* **api:** api update ([2d439b9](https://github.com/context-dot-dev/context-ruby-sdk/commit/2d439b9814f0e3be9efead3d2e70e3e5d7e3a1f0))
|
|
111
|
+
* **api:** api update ([8b33b1e](https://github.com/context-dot-dev/context-ruby-sdk/commit/8b33b1ee26acc8314d9c285ea53e3531ba390a16))
|
|
112
|
+
* **api:** api update ([7b5ddec](https://github.com/context-dot-dev/context-ruby-sdk/commit/7b5ddec0b8e306df34a72ccd39e8d731168a62ea))
|
|
113
|
+
* **api:** api update ([b09024f](https://github.com/context-dot-dev/context-ruby-sdk/commit/b09024fa19c7aecafaf4fe4bd211bfc3738484ed))
|
|
114
|
+
* **api:** api update ([4e74fe3](https://github.com/context-dot-dev/context-ruby-sdk/commit/4e74fe3f395778efb1ca3f1e752f2f71e21a3191))
|
|
115
|
+
* **api:** api update ([f475665](https://github.com/context-dot-dev/context-ruby-sdk/commit/f47566556bc4d2c81a52084979f83be62cb17cf2))
|
|
116
|
+
* **api:** api update ([a4e99e6](https://github.com/context-dot-dev/context-ruby-sdk/commit/a4e99e6e0659cb7b09375d7a467e9771aa6cea44))
|
|
117
|
+
* **api:** api update ([b13514f](https://github.com/context-dot-dev/context-ruby-sdk/commit/b13514f872498b08e54fc8b4264179201ee30311))
|
|
118
|
+
* **api:** api update ([5f00bc0](https://github.com/context-dot-dev/context-ruby-sdk/commit/5f00bc076f0081065bc274ce9f28cd26a7daa944))
|
|
119
|
+
* **api:** api update ([9ae9b10](https://github.com/context-dot-dev/context-ruby-sdk/commit/9ae9b108ce2737b42574a6f781103410a546f704))
|
|
120
|
+
* **api:** api update ([58ed755](https://github.com/context-dot-dev/context-ruby-sdk/commit/58ed7551637936ea3c007e28af3358eb96a339ca))
|
|
121
|
+
* **api:** api update ([4767618](https://github.com/context-dot-dev/context-ruby-sdk/commit/4767618765a8f15bde582bf35f78190649681453))
|
|
122
|
+
* **api:** api update ([0891a8f](https://github.com/context-dot-dev/context-ruby-sdk/commit/0891a8f97fa7ca1b8e49dbc5d383763406ac85ae))
|
|
123
|
+
* **api:** api update ([ff1db16](https://github.com/context-dot-dev/context-ruby-sdk/commit/ff1db1692a06315279532c93a05722223cb2c7ee))
|
|
124
|
+
* **api:** api update ([97eac17](https://github.com/context-dot-dev/context-ruby-sdk/commit/97eac17686bff356d4d5b6ad6438beb24c05b05a))
|
|
125
|
+
* **api:** enable ZDR on remaining AI endpoints via OpenAI ([#1099](https://github.com/context-dot-dev/context-ruby-sdk/issues/1099)) ([36e5487](https://github.com/context-dot-dev/context-ruby-sdk/commit/36e548724224b3198e49d248735916f3af6d1b61))
|
|
126
|
+
* **api:** manual updates ([54ad450](https://github.com/context-dot-dev/context-ruby-sdk/commit/54ad450f892542378cec0ce5430d1436e1437a4d))
|
|
127
|
+
* **api:** manual updates ([cf2f79f](https://github.com/context-dot-dev/context-ruby-sdk/commit/cf2f79ff77dca3e57069cfac612e7fd333a8d83f))
|
|
128
|
+
* **api:** manual updates ([054713e](https://github.com/context-dot-dev/context-ruby-sdk/commit/054713ecd7a6c12c29a2aaf0df0ea0eeb0ff61fc))
|
|
129
|
+
* **api:** manual updates ([d7a4669](https://github.com/context-dot-dev/context-ruby-sdk/commit/d7a46695c2ba5ec1f54eaedec751bfd1d1559c4b))
|
|
130
|
+
* **api:** manual updates ([2a83a5f](https://github.com/context-dot-dev/context-ruby-sdk/commit/2a83a5f976bf2b75964ea56ff07f99872acd5022))
|
|
131
|
+
* **api:** manual updates ([b7f6b2c](https://github.com/context-dot-dev/context-ruby-sdk/commit/b7f6b2c0a5bb91cc065bcc2ef497c9999414262c))
|
|
132
|
+
* **api:** manual updates ([b18f464](https://github.com/context-dot-dev/context-ruby-sdk/commit/b18f46485bf70c10b0a20459ed38b2991ea5add0))
|
|
133
|
+
* **api:** manual updates ([fa7f5bf](https://github.com/context-dot-dev/context-ruby-sdk/commit/fa7f5bfa1e892a7dff26b169bd3ea7a6d0863048))
|
|
134
|
+
* **api:** manual updates ([7277672](https://github.com/context-dot-dev/context-ruby-sdk/commit/7277672e289e4d8a54791a154e989ec6ba25e3b2))
|
|
135
|
+
* **api:** manual updates ([e3971dc](https://github.com/context-dot-dev/context-ruby-sdk/commit/e3971dcc3b94f5b998562f8ecb82a292cc8f00bd))
|
|
136
|
+
* **api:** manual updates ([688e5f5](https://github.com/context-dot-dev/context-ruby-sdk/commit/688e5f56137aeac7c5219383f241a459173f961f))
|
|
137
|
+
* **api:** manual updates ([b6c283e](https://github.com/context-dot-dev/context-ruby-sdk/commit/b6c283ee6c514421e07fb0b6d61aace62df318d1))
|
|
138
|
+
* **api:** manual updates ([6d640e9](https://github.com/context-dot-dev/context-ruby-sdk/commit/6d640e9d1c52818badc55b8f9e5c545766a26d01))
|
|
139
|
+
* **api:** manual updates ([ec963bb](https://github.com/context-dot-dev/context-ruby-sdk/commit/ec963bb99ac36d162552c76fb067e87144f21089))
|
|
140
|
+
* **api:** manual updates ([1017ae4](https://github.com/context-dot-dev/context-ruby-sdk/commit/1017ae4d595beb2e5b466326a4db19c78ce6db51))
|
|
141
|
+
* **api:** manual updates ([490fde0](https://github.com/context-dot-dev/context-ruby-sdk/commit/490fde06ead702db0640f9d1161c3d8ecedd31a9))
|
|
142
|
+
* **api:** manual updates ([e1f12de](https://github.com/context-dot-dev/context-ruby-sdk/commit/e1f12de44bcadd047b5746fdddcd828a29107e1e))
|
|
143
|
+
* **api:** manual updates ([f451afe](https://github.com/context-dot-dev/context-ruby-sdk/commit/f451afea50625bba49a808a4b193c451c7019571))
|
|
144
|
+
* **api:** manual updates ([11ea49f](https://github.com/context-dot-dev/context-ruby-sdk/commit/11ea49fac95ca680db1f9880b8b8590aa650b00a))
|
|
145
|
+
* **api:** manual updates ([739b99f](https://github.com/context-dot-dev/context-ruby-sdk/commit/739b99fddcd745960b3cf390cc9bff4220941ee8))
|
|
146
|
+
* **api:** manual updates ([d32eb69](https://github.com/context-dot-dev/context-ruby-sdk/commit/d32eb69f2bafb655156587bfb2daa659dcc3b731))
|
|
147
|
+
* **api:** manual updates ([8e8fcc2](https://github.com/context-dot-dev/context-ruby-sdk/commit/8e8fcc26f2fbbb2bdcca9713fa3b9f8518303586))
|
|
148
|
+
* **api:** manual updates ([d120a5d](https://github.com/context-dot-dev/context-ruby-sdk/commit/d120a5dde6665acced2c75394beb6910389e344e))
|
|
149
|
+
* **api:** manual updates ([fe32a5e](https://github.com/context-dot-dev/context-ruby-sdk/commit/fe32a5e431bf152d8b0966f9927efcd8ebc3b5c1))
|
|
150
|
+
* **api:** return request_id on every response ([012ba65](https://github.com/context-dot-dev/context-ruby-sdk/commit/012ba65ea7648ebd7b18fa7ad00955a13b8394b9))
|
|
151
|
+
* **api:** unify timeout configuration and return partial results ([#1030](https://github.com/context-dot-dev/context-ruby-sdk/issues/1030)) ([7c0fa1f](https://github.com/context-dot-dev/context-ruby-sdk/commit/7c0fa1f308fc51885405c065aef2fd4ab8fe5725))
|
|
152
|
+
* **billing:** charge for 404s and skip fraud accounting ([#1152](https://github.com/context-dot-dev/context-ruby-sdk/issues/1152)) ([d1fa73e](https://github.com/context-dot-dev/context-ruby-sdk/commit/d1fa73e0809ce7acb5668f413f40b902e539fe72))
|
|
153
|
+
* initial stlc build ([bf63ae0](https://github.com/context-dot-dev/context-ruby-sdk/commit/bf63ae0769d9756a0b36480fd0c2d05ae939997c))
|
|
154
|
+
* **logs:** expose request log endpoints in SDKs ([#1025](https://github.com/context-dot-dev/context-ruby-sdk/issues/1025)) ([5b22be7](https://github.com/context-dot-dev/context-ruby-sdk/commit/5b22be7bd1cb6401b8260b5a756b6ec040cbc6a8))
|
|
155
|
+
* **monitors:** add page selector filters ([#1037](https://github.com/context-dot-dev/context-ruby-sdk/issues/1037)) ([1f3a748](https://github.com/context-dot-dev/context-ruby-sdk/commit/1f3a74858133f69ea52c3a189f9ed8c80b80c0c6))
|
|
156
|
+
* **products:** extract ProductGroup variants with images ([#1124](https://github.com/context-dot-dev/context-ruby-sdk/issues/1124)) ([dd14116](https://github.com/context-dot-dev/context-ruby-sdk/commit/dd141167200666c0bbb658f9a83ffa8896411aae))
|
|
157
|
+
* **scrape:** add cache age support to byte downloads ([#1171](https://github.com/context-dot-dev/context-ruby-sdk/issues/1171)) ([9b2704f](https://github.com/context-dot-dev/context-ruby-sdk/commit/9b2704f21f51249319a1536a535b881769da0864))
|
|
158
|
+
* **scrape:** add CSS extraction rules to HTML scraping ([#1146](https://github.com/context-dot-dev/context-ruby-sdk/issues/1146)) ([4ed406d](https://github.com/context-dot-dev/context-ruby-sdk/commit/4ed406dfa5bf0dd2ad8e6652fb85ef9ebe37ff07))
|
|
159
|
+
* **scrape:** add highlights format to POST /web/scrape ([#1210](https://github.com/context-dot-dev/context-ruby-sdk/issues/1210)) ([b15aa13](https://github.com/context-dot-dev/context-ruby-sdk/commit/b15aa139b666c263900f0f058344887cf3da3e4b))
|
|
160
|
+
* **scrape:** add json output format to POST /web/scrape ([#1213](https://github.com/context-dot-dev/context-ruby-sdk/issues/1213)) ([03ec23b](https://github.com/context-dot-dev/context-ruby-sdk/commit/03ec23bb699bf1cc7c3662979ce2a5a0c7f0a8dd))
|
|
161
|
+
* **scrape:** add product extraction format to POST /web/scrape ([#1212](https://github.com/context-dot-dev/context-ruby-sdk/issues/1212)) ([cf6a8ca](https://github.com/context-dot-dev/context-ruby-sdk/commit/cf6a8caaf6c4d913847d034aef557bdb1d5622cf))
|
|
162
|
+
* **scrape:** add unified scrape API ([#1182](https://github.com/context-dot-dev/context-ruby-sdk/issues/1182)) ([f96de1a](https://github.com/context-dot-dev/context-ruby-sdk/commit/f96de1aceca6305f47851701708cba674ed5c30b))
|
|
163
|
+
* **scrape:** align timeout options and public SDK methods ([#1207](https://github.com/context-dot-dev/context-ruby-sdk/issues/1207)) ([f1f8442](https://github.com/context-dot-dev/context-ruby-sdk/commit/f1f84420192e0b686f973187d2efdadd4a1509cd))
|
|
164
|
+
* **scrape:** support country for image scraping ([#1172](https://github.com/context-dot-dev/context-ruby-sdk/issues/1172)) ([9b2704f](https://github.com/context-dot-dev/context-ruby-sdk/commit/9b2704f21f51249319a1536a535b881769da0864))
|
|
165
|
+
* **scrape:** support custom screenshot headers ([#1169](https://github.com/context-dot-dev/context-ruby-sdk/issues/1169)) ([ea364f2](https://github.com/context-dot-dev/context-ruby-sdk/commit/ea364f242b9120982ee69006305a1929464d4dfe))
|
|
166
|
+
* **scrape:** support waitForMs for byte downloads ([#1170](https://github.com/context-dot-dev/context-ruby-sdk/issues/1170)) ([267301b](https://github.com/context-dot-dev/context-ruby-sdk/commit/267301b3da971db51c63102242ed0dece4ba6630))
|
|
167
|
+
* **sitemap:** add subdomain discovery ([5630b67](https://github.com/context-dot-dev/context-ruby-sdk/commit/5630b67ab555ab5dabd06b0ade2c4d2837f13423))
|
|
168
|
+
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([f1c36e9](https://github.com/context-dot-dev/context-ruby-sdk/commit/f1c36e95f04eb617aa1769ba9cd21e3dad7bc5ee))
|
|
169
|
+
* support setting headers via env ([e625fee](https://github.com/context-dot-dev/context-ruby-sdk/commit/e625fee97a6d4f6ab25f69447b33521cac6a896c))
|
|
170
|
+
* **web:** add raw bytes scraping endpoint ([#1081](https://github.com/context-dot-dev/context-ruby-sdk/issues/1081)) ([e4b2347](https://github.com/context-dot-dev/context-ruby-sdk/commit/e4b23477deab52f1822eb2e3e2bbbca6b9cf9c07))
|
|
171
|
+
* **web:** add URL-based scrape screenshot endpoint ([#1150](https://github.com/context-dot-dev/context-ruby-sdk/issues/1150)) ([52c8043](https://github.com/context-dot-dev/context-ruby-sdk/commit/52c80435c9c767bdb6ff782c487ada1263d9f767))
|
|
172
|
+
* **webhooks:** add configurable retries and manual replay ([00388ec](https://github.com/context-dot-dev/context-ruby-sdk/commit/00388ec76d375d7466c9b0d85dfe983d2a369807))
|
|
173
|
+
* **webhooks:** simplify delivery APIs ([fbd879e](https://github.com/context-dot-dev/context-ruby-sdk/commit/fbd879eaa0c0008cba1c3b19f1fe1accb53d8771))
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### Bug Fixes
|
|
177
|
+
|
|
178
|
+
* align path encoding with RFC 3986 section 3.3 ([2c4072d](https://github.com/context-dot-dev/context-ruby-sdk/commit/2c4072df7df531933f5352c611183b1d152e3ec2))
|
|
179
|
+
* **api:** guarantee search descriptions and align response types ([#1089](https://github.com/context-dot-dev/context-ruby-sdk/issues/1089)) ([7ee03fc](https://github.com/context-dot-dev/context-ruby-sdk/commit/7ee03fc233d3e975f01fd3d290defb48a6e6ad56))
|
|
180
|
+
* **api:** honour maxAgeMs=0 on brand retrieve, styleguide and fonts endpoints ([#998](https://github.com/context-dot-dev/context-ruby-sdk/issues/998)) ([78491ef](https://github.com/context-dot-dev/context-ruby-sdk/commit/78491ef8e43ab49074d011ce8c10e3cda5cb27db))
|
|
181
|
+
* **api:** lower partial scrape timeout minimum to five seconds ([#1118](https://github.com/context-dot-dev/context-ruby-sdk/issues/1118)) ([871982b](https://github.com/context-dot-dev/context-ruby-sdk/commit/871982bff814f9cb698fc59f1e07c2d87c5a6dad))
|
|
182
|
+
* **api:** reject timeoutMS too short for waitForMs ([e8a6725](https://github.com/context-dot-dev/context-ruby-sdk/commit/e8a67255c9354f69d632697179a4d6270a4677ee))
|
|
183
|
+
* **client:** elide content type header on requests without body ([f53ad05](https://github.com/context-dot-dev/context-ruby-sdk/commit/f53ad05fc7e00b2be604cc1e637998bf4ed187f5))
|
|
184
|
+
* **client:** send content-type header for requests with an omitted optional body ([63d0f66](https://github.com/context-dot-dev/context-ruby-sdk/commit/63d0f66c1d871786bf80989b7a8ad11b859ec12a))
|
|
185
|
+
* **internal:** correct multipart form field name encoding ([221d059](https://github.com/context-dot-dev/context-ruby-sdk/commit/221d0598148243acddae6c9679c949c07e1dcd7a))
|
|
186
|
+
* multipart encoding for file arrays ([105116f](https://github.com/context-dot-dev/context-ruby-sdk/commit/105116f48178f46bae721d32e987d684fc662dd0))
|
|
187
|
+
* **openapi:** strip empty-object defaults from the generated spec ([fcbb393](https://github.com/context-dot-dev/context-ruby-sdk/commit/fcbb393067fd9058bb2d443bd2a8f2a9e4b8f17c))
|
|
188
|
+
* **scrape:** reuse legacy caches across all output formats ([#1197](https://github.com/context-dot-dev/context-ruby-sdk/issues/1197)) ([007ad3f](https://github.com/context-dot-dev/context-ruby-sdk/commit/007ad3f81ba753e74093d5ee05dfe8df2db06be9))
|
|
189
|
+
* variable name typo ([10e1853](https://github.com/context-dot-dev/context-ruby-sdk/commit/10e185365b3196732fc5e0649975ab696f80e893))
|
|
190
|
+
* **webhooks:** format Slack webhook notifications ([#1045](https://github.com/context-dot-dev/context-ruby-sdk/issues/1045)) ([4bd0df1](https://github.com/context-dot-dev/context-ruby-sdk/commit/4bd0df1c614713a46e366ca1320942fa777452fc))
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### Chores
|
|
194
|
+
|
|
195
|
+
* **ci:** support opting out of skipping builds on metadata-only commits ([aad82ac](https://github.com/context-dot-dev/context-ruby-sdk/commit/aad82ac90dd1c55ca4db05e63b70b46abded53e3))
|
|
196
|
+
* configure new SDK language ([8d24989](https://github.com/context-dot-dev/context-ruby-sdk/commit/8d2498986b1358432204720208f1a9b18d0f53f0))
|
|
197
|
+
* **internal:** bound formatter parallelism to CPU count ([8b73d53](https://github.com/context-dot-dev/context-ruby-sdk/commit/8b73d53426ce571223386b1decabcb0bf58eaa37))
|
|
198
|
+
* **internal:** more robust bootstrap script ([57b2d93](https://github.com/context-dot-dev/context-ruby-sdk/commit/57b2d93877e5ceeb388679f239e21c09b087b2a1))
|
|
199
|
+
* **internal:** tweak CI branches ([2b124b9](https://github.com/context-dot-dev/context-ruby-sdk/commit/2b124b9fd6a5eeb81fa445afc448ce4819fc077e))
|
|
200
|
+
* release 2.17.1 ([eeb2a0d](https://github.com/context-dot-dev/context-ruby-sdk/commit/eeb2a0db6c069449f6c062113583657a3dfa7bdc))
|
|
201
|
+
* sync repo ([663ae2b](https://github.com/context-dot-dev/context-ruby-sdk/commit/663ae2b31199fd8a6b7e37161111d2c37a8d76df))
|
|
202
|
+
* update SDK settings ([8a92059](https://github.com/context-dot-dev/context-ruby-sdk/commit/8a920591a4a5ef301d26d19ca2a985ac7c0d8efd))
|
|
203
|
+
* update SDK settings ([3c49703](https://github.com/context-dot-dev/context-ruby-sdk/commit/3c49703a25e8951d07f597cc16b1abc03b248d84))
|
|
204
|
+
|
|
3
205
|
## [2.19.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.18.0...v2.19.0) (2026-09-22)
|
|
4
206
|
|
|
5
207
|
|
data/README.md
CHANGED
|
@@ -19,12 +19,26 @@ module ContextDev
|
|
|
19
19
|
# @return [String]
|
|
20
20
|
required :url, String
|
|
21
21
|
|
|
22
|
+
# @!attribute highlights_params
|
|
23
|
+
# Highlight options. Requires formats.highlights: true.
|
|
24
|
+
#
|
|
25
|
+
# @return [ContextDev::Models::WebScrapeParams::HighlightsParams, nil]
|
|
26
|
+
optional :highlights_params,
|
|
27
|
+
-> { ContextDev::WebScrapeParams::HighlightsParams },
|
|
28
|
+
api_name: :highlightsParams
|
|
29
|
+
|
|
22
30
|
# @!attribute image_params
|
|
23
31
|
# Image options. Requires formats.images: true.
|
|
24
32
|
#
|
|
25
33
|
# @return [ContextDev::Models::WebScrapeParams::ImageParams, nil]
|
|
26
34
|
optional :image_params, -> { ContextDev::WebScrapeParams::ImageParams }, api_name: :imageParams
|
|
27
35
|
|
|
36
|
+
# @!attribute json_params
|
|
37
|
+
# Required when formats.json is true.
|
|
38
|
+
#
|
|
39
|
+
# @return [ContextDev::Models::WebScrapeParams::JsonParams, nil]
|
|
40
|
+
optional :json_params, -> { ContextDev::WebScrapeParams::JsonParams }, api_name: :jsonParams
|
|
41
|
+
|
|
28
42
|
# @!attribute markdown_params
|
|
29
43
|
# Markdown options. Requires formats.markdown: true.
|
|
30
44
|
#
|
|
@@ -46,6 +60,12 @@ module ContextDev
|
|
|
46
60
|
# @return [ContextDev::Models::WebScrapeParams::ParseParams, nil]
|
|
47
61
|
optional :parse_params, -> { ContextDev::WebScrapeParams::ParseParams }, api_name: :parseParams
|
|
48
62
|
|
|
63
|
+
# @!attribute product_params
|
|
64
|
+
# Product options. Requires formats.product: true.
|
|
65
|
+
#
|
|
66
|
+
# @return [ContextDev::Models::WebScrapeParams::ProductParams, nil]
|
|
67
|
+
optional :product_params, -> { ContextDev::WebScrapeParams::ProductParams }, api_name: :productParams
|
|
68
|
+
|
|
49
69
|
# @!attribute screenshot_params
|
|
50
70
|
# Screenshot options. Requires formats.screenshot: true.
|
|
51
71
|
#
|
|
@@ -81,12 +101,13 @@ module ContextDev
|
|
|
81
101
|
|
|
82
102
|
# @!attribute zdr
|
|
83
103
|
# Zero data retention. Bypasses caches and uploads; excludes request/response
|
|
84
|
-
# content and tags from logs. Must be enabled for your organization.
|
|
104
|
+
# content and tags from logs. Must be enabled for your organization. Not available
|
|
105
|
+
# with the highlights output.
|
|
85
106
|
#
|
|
86
107
|
# @return [Symbol, ContextDev::Models::WebScrapeParams::Zdr, nil]
|
|
87
108
|
optional :zdr, enum: -> { ContextDev::WebScrapeParams::Zdr }
|
|
88
109
|
|
|
89
|
-
# @!method initialize(formats:, url:, image_params: nil, markdown_params: nil, max_age_ms: nil, parse_params: nil, screenshot_params: nil, shared_params: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
|
|
110
|
+
# @!method initialize(formats:, url:, highlights_params: nil, image_params: nil, json_params: nil, markdown_params: nil, max_age_ms: nil, parse_params: nil, product_params: nil, screenshot_params: nil, shared_params: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
|
|
90
111
|
# Some parameter documentations has been truncated, see
|
|
91
112
|
# {ContextDev::Models::WebScrapeParams} for more details.
|
|
92
113
|
#
|
|
@@ -94,14 +115,20 @@ module ContextDev
|
|
|
94
115
|
#
|
|
95
116
|
# @param url [String] The URL to scrape.
|
|
96
117
|
#
|
|
118
|
+
# @param highlights_params [ContextDev::Models::WebScrapeParams::HighlightsParams] Highlight options. Requires formats.highlights: true.
|
|
119
|
+
#
|
|
97
120
|
# @param image_params [ContextDev::Models::WebScrapeParams::ImageParams] Image options. Requires formats.images: true.
|
|
98
121
|
#
|
|
122
|
+
# @param json_params [ContextDev::Models::WebScrapeParams::JsonParams] Required when formats.json is true.
|
|
123
|
+
#
|
|
99
124
|
# @param markdown_params [ContextDev::Models::WebScrapeParams::MarkdownParams] Markdown options. Requires formats.markdown: true.
|
|
100
125
|
#
|
|
101
126
|
# @param max_age_ms [Integer] Maximum age of each cached output. Defaults to 1 day; 0 fetches fresh and update
|
|
102
127
|
#
|
|
103
128
|
# @param parse_params [ContextDev::Models::WebScrapeParams::ParseParams] Required when formats.parse is true.
|
|
104
129
|
#
|
|
130
|
+
# @param product_params [ContextDev::Models::WebScrapeParams::ProductParams] Product options. Requires formats.product: true.
|
|
131
|
+
#
|
|
105
132
|
# @param screenshot_params [ContextDev::Models::WebScrapeParams::ScreenshotParams] Screenshot options. Requires formats.screenshot: true.
|
|
106
133
|
#
|
|
107
134
|
# @param shared_params [ContextDev::Models::WebScrapeParams::SharedParams] Shared browser and content settings. Content filters leave screenshots and origi
|
|
@@ -121,6 +148,14 @@ module ContextDev
|
|
|
121
148
|
# @return [Boolean, nil]
|
|
122
149
|
optional :bytes, ContextDev::Internal::Type::Boolean
|
|
123
150
|
|
|
151
|
+
# @!attribute highlights
|
|
152
|
+
# Plain-text passages from the page that are most relevant to
|
|
153
|
+
# highlightsParams.query, each prefixed with its section heading. Adds 3 credits.
|
|
154
|
+
# Not available with zdr enabled.
|
|
155
|
+
#
|
|
156
|
+
# @return [Boolean, nil]
|
|
157
|
+
optional :highlights, ContextDev::Internal::Type::Boolean
|
|
158
|
+
|
|
124
159
|
# @!attribute html
|
|
125
160
|
# Rendered HTML.
|
|
126
161
|
#
|
|
@@ -133,6 +168,15 @@ module ContextDev
|
|
|
133
168
|
# @return [Boolean, nil]
|
|
134
169
|
optional :images, ContextDev::Internal::Type::Boolean
|
|
135
170
|
|
|
171
|
+
# @!attribute json
|
|
172
|
+
# Page data extracted by an LLM from the page Markdown into jsonParams.schema;
|
|
173
|
+
# values carried only in attributes or CSS classes need formats.parse instead.
|
|
174
|
+
# Adds four credits when the page has text to extract; when shared content filters
|
|
175
|
+
# leave no text the result is an empty object and only the base price applies.
|
|
176
|
+
#
|
|
177
|
+
# @return [Boolean, nil]
|
|
178
|
+
optional :json, ContextDev::Internal::Type::Boolean
|
|
179
|
+
|
|
136
180
|
# @!attribute markdown
|
|
137
181
|
# Page content as Markdown.
|
|
138
182
|
#
|
|
@@ -145,28 +189,64 @@ module ContextDev
|
|
|
145
189
|
# @return [Boolean, nil]
|
|
146
190
|
optional :parse, ContextDev::Internal::Type::Boolean
|
|
147
191
|
|
|
192
|
+
# @!attribute product
|
|
193
|
+
# Structured product data for product detail pages. Adds one credit.
|
|
194
|
+
#
|
|
195
|
+
# @return [Boolean, nil]
|
|
196
|
+
optional :product, ContextDev::Internal::Type::Boolean
|
|
197
|
+
|
|
148
198
|
# @!attribute screenshot
|
|
149
199
|
# An inline image of the page.
|
|
150
200
|
#
|
|
151
201
|
# @return [Boolean, nil]
|
|
152
202
|
optional :screenshot, ContextDev::Internal::Type::Boolean
|
|
153
203
|
|
|
154
|
-
# @!method initialize(bytes: nil, html: nil, images: nil, markdown: nil, parse: nil, screenshot: nil)
|
|
204
|
+
# @!method initialize(bytes: nil, highlights: nil, html: nil, images: nil, json: nil, markdown: nil, parse: nil, product: nil, screenshot: nil)
|
|
205
|
+
# Some parameter documentations has been truncated, see
|
|
206
|
+
# {ContextDev::Models::WebScrapeParams::Formats} for more details.
|
|
207
|
+
#
|
|
155
208
|
# Outputs to return. Enable at least one; omitted formats are false.
|
|
156
209
|
#
|
|
157
210
|
# @param bytes [Boolean] The original HTTP response body.
|
|
158
211
|
#
|
|
212
|
+
# @param highlights [Boolean] Plain-text passages from the page that are most relevant to highlightsParams.que
|
|
213
|
+
#
|
|
159
214
|
# @param html [Boolean] Rendered HTML.
|
|
160
215
|
#
|
|
161
216
|
# @param images [Boolean] Images found on the page.
|
|
162
217
|
#
|
|
218
|
+
# @param json [Boolean] Page data extracted by an LLM from the page Markdown into jsonParams.schema; val
|
|
219
|
+
#
|
|
163
220
|
# @param markdown [Boolean] Page content as Markdown.
|
|
164
221
|
#
|
|
165
222
|
# @param parse [Boolean] Fields selected by parseParams.rules.
|
|
166
223
|
#
|
|
224
|
+
# @param product [Boolean] Structured product data for product detail pages. Adds one credit.
|
|
225
|
+
#
|
|
167
226
|
# @param screenshot [Boolean] An inline image of the page.
|
|
168
227
|
end
|
|
169
228
|
|
|
229
|
+
class HighlightsParams < ContextDev::Internal::Type::BaseModel
|
|
230
|
+
# @!attribute query
|
|
231
|
+
# The question or topic to find passages for.
|
|
232
|
+
#
|
|
233
|
+
# @return [String]
|
|
234
|
+
required :query, String
|
|
235
|
+
|
|
236
|
+
# @!attribute max_characters
|
|
237
|
+
# Maximum combined length of the returned passages, in characters.
|
|
238
|
+
#
|
|
239
|
+
# @return [Integer, nil]
|
|
240
|
+
optional :max_characters, Integer, api_name: :maxCharacters
|
|
241
|
+
|
|
242
|
+
# @!method initialize(query:, max_characters: nil)
|
|
243
|
+
# Highlight options. Requires formats.highlights: true.
|
|
244
|
+
#
|
|
245
|
+
# @param query [String] The question or topic to find passages for.
|
|
246
|
+
#
|
|
247
|
+
# @param max_characters [Integer] Maximum combined length of the returned passages, in characters.
|
|
248
|
+
end
|
|
249
|
+
|
|
170
250
|
class ImageParams < ContextDev::Internal::Type::BaseModel
|
|
171
251
|
# @!attribute dedupe
|
|
172
252
|
# For visual duplicates, keep the largest image.
|
|
@@ -218,6 +298,35 @@ module ContextDev
|
|
|
218
298
|
end
|
|
219
299
|
end
|
|
220
300
|
|
|
301
|
+
class JsonParams < ContextDev::Internal::Type::BaseModel
|
|
302
|
+
# @!attribute schema
|
|
303
|
+
# JSON Schema for the returned object. Must describe a top-level object; at most
|
|
304
|
+
# 50 KB serialized. Optional fields the page does not state are omitted, or null
|
|
305
|
+
# when their type allows null, while required non-nullable fields always receive a
|
|
306
|
+
# best-effort value, so prefer nullable or optional fields for data a page may
|
|
307
|
+
# omit. Zod users can pass the output of z.toJSONSchema().
|
|
308
|
+
#
|
|
309
|
+
# @return [Hash{Symbol=>Object}]
|
|
310
|
+
required :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown]
|
|
311
|
+
|
|
312
|
+
# @!attribute instructions
|
|
313
|
+
# Optional guidance on which facts to prioritize or how to interpret schema
|
|
314
|
+
# fields.
|
|
315
|
+
#
|
|
316
|
+
# @return [String, nil]
|
|
317
|
+
optional :instructions, String
|
|
318
|
+
|
|
319
|
+
# @!method initialize(schema:, instructions: nil)
|
|
320
|
+
# Some parameter documentations has been truncated, see
|
|
321
|
+
# {ContextDev::Models::WebScrapeParams::JsonParams} for more details.
|
|
322
|
+
#
|
|
323
|
+
# Required when formats.json is true.
|
|
324
|
+
#
|
|
325
|
+
# @param schema [Hash{Symbol=>Object}] JSON Schema for the returned object. Must describe a top-level object; at most 5
|
|
326
|
+
#
|
|
327
|
+
# @param instructions [String] Optional guidance on which facts to prioritize or how to interpret schema fields
|
|
328
|
+
end
|
|
329
|
+
|
|
221
330
|
class MarkdownParams < ContextDev::Internal::Type::BaseModel
|
|
222
331
|
# @!attribute include_images
|
|
223
332
|
#
|
|
@@ -355,6 +464,25 @@ module ContextDev
|
|
|
355
464
|
end
|
|
356
465
|
end
|
|
357
466
|
|
|
467
|
+
class ProductParams < ContextDev::Internal::Type::BaseModel
|
|
468
|
+
# @!attribute use_ai_fallback
|
|
469
|
+
# Extract the product with a specialized model when the page has no structured
|
|
470
|
+
# product data. Adds six credits when the model returns a verdict. If the fallback
|
|
471
|
+
# fails, returns a partial response with the deterministic result and no fallback
|
|
472
|
+
# charge. Request deadlines and client disconnects still apply.
|
|
473
|
+
#
|
|
474
|
+
# @return [Boolean, nil]
|
|
475
|
+
optional :use_ai_fallback, ContextDev::Internal::Type::Boolean, api_name: :useAIFallback
|
|
476
|
+
|
|
477
|
+
# @!method initialize(use_ai_fallback: nil)
|
|
478
|
+
# Some parameter documentations has been truncated, see
|
|
479
|
+
# {ContextDev::Models::WebScrapeParams::ProductParams} for more details.
|
|
480
|
+
#
|
|
481
|
+
# Product options. Requires formats.product: true.
|
|
482
|
+
#
|
|
483
|
+
# @param use_ai_fallback [Boolean] Extract the product with a specialized model when the page has no structured pro
|
|
484
|
+
end
|
|
485
|
+
|
|
358
486
|
class ScreenshotParams < ContextDev::Internal::Type::BaseModel
|
|
359
487
|
# @!attribute area
|
|
360
488
|
# Viewport, full page, one visible element, or a rectangle. Maximum 40 megapixels.
|
|
@@ -891,7 +1019,8 @@ module ContextDev
|
|
|
891
1019
|
end
|
|
892
1020
|
|
|
893
1021
|
# Zero data retention. Bypasses caches and uploads; excludes request/response
|
|
894
|
-
# content and tags from logs. Must be enabled for your organization.
|
|
1022
|
+
# content and tags from logs. Must be enabled for your organization. Not available
|
|
1023
|
+
# with the highlights output.
|
|
895
1024
|
module Zdr
|
|
896
1025
|
extend ContextDev::Internal::Type::Enum
|
|
897
1026
|
|