context.dev 2.19.0 → 2.21.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 +219 -0
- data/README.md +1 -1
- data/lib/context_dev/client.rb +6 -0
- data/lib/context_dev/models/feedback_submit_params.rb +73 -0
- data/lib/context_dev/models/feedback_submit_response.rb +68 -0
- data/lib/context_dev/models/news_search_params.rb +13 -6
- data/lib/context_dev/models/web_scrape_params.rb +149 -14
- data/lib/context_dev/models/web_scrape_response.rb +404 -12
- data/lib/context_dev/models.rb +2 -0
- data/lib/context_dev/resources/feedback.rb +50 -0
- data/lib/context_dev/resources/news.rb +8 -4
- data/lib/context_dev/resources/web.rb +26 -8
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +3 -0
- data/rbi/context_dev/client.rbi +5 -0
- data/rbi/context_dev/models/feedback_submit_params.rbi +133 -0
- data/rbi/context_dev/models/feedback_submit_response.rbi +122 -0
- data/rbi/context_dev/models/news_search_params.rbi +12 -6
- data/rbi/context_dev/models/web_scrape_params.rbi +248 -18
- data/rbi/context_dev/models/web_scrape_response.rbi +702 -30
- data/rbi/context_dev/models.rbi +2 -0
- data/rbi/context_dev/resources/feedback.rbi +42 -0
- data/rbi/context_dev/resources/news.rbi +7 -4
- data/rbi/context_dev/resources/web.rbi +38 -12
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/feedback_submit_params.rbs +73 -0
- data/sig/context_dev/models/feedback_submit_response.rbs +58 -0
- data/sig/context_dev/models/web_scrape_params.rbs +91 -0
- data/sig/context_dev/models/web_scrape_response.rbs +302 -18
- data/sig/context_dev/models.rbs +2 -0
- data/sig/context_dev/resources/feedback.rbs +16 -0
- data/sig/context_dev/resources/web.rbs +3 -0
- metadata +11 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00b5d7dcb52a04ff3be4b212cbf64f01fa8728ea160adebf5cedc9f2c98b1680
|
|
4
|
+
data.tar.gz: 492420d10233d6bce72fca4f6ee94a4600892cedaa4e833658c30776480da726
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7327c49a078d92775d9446f89c314bf72ccdad01f510321a305238a4f151751e03135ce864a4bc78085605c1c6432edf1b5f311441940cff4b960b5834acf80b
|
|
7
|
+
data.tar.gz: c6496a4bc18352abf4d13cc52f321982c79d14ab1d0652eafa7e44be273ede98b2a1f2f1f9721f155b0cc540c9f38c6db16b6f2f5e1a94e9e82781ffb8330d9c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,224 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.21.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.20.0...v2.21.0) (2026-09-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **feedback:** add agent feedback endpoint ([#1322](https://github.com/context-dot-dev/context-ruby-sdk/issues/1322)) ([f3a9dce](https://github.com/context-dot-dev/context-ruby-sdk/commit/f3a9dce10e0f8a20977d0133e387fe20a9e11d18))
|
|
9
|
+
* **highlights:** preserve Markdown structure in scrape excerpts ([#1236](https://github.com/context-dot-dev/context-ruby-sdk/issues/1236)) ([d3c383a](https://github.com/context-dot-dev/context-ruby-sdk/commit/d3c383a7ccfcea00a01c9c85955d62e871227ceb))
|
|
10
|
+
* **scrape:** enable highlights with zero data retention ([#1246](https://github.com/context-dot-dev/context-ruby-sdk/issues/1246)) ([487a289](https://github.com/context-dot-dev/context-ruby-sdk/commit/487a2897d19d15d5164d0e69c2700f511b223216))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **openapi:** document exclusive news filters ([#1265](https://github.com/context-dot-dev/context-ruby-sdk/issues/1265)) ([5b7c79d](https://github.com/context-dot-dev/context-ruby-sdk/commit/5b7c79de83fd209760bfb5738670229024480206))
|
|
16
|
+
* **scrape:** only flag partial success when a requested format succeeds ([#1325](https://github.com/context-dot-dev/context-ruby-sdk/issues/1325)) ([1120d93](https://github.com/context-dot-dev/context-ruby-sdk/commit/1120d9344525c6fc1ffb60403df75790ea6bbf1c))
|
|
17
|
+
* **scrape:** preserve successful formats when other outputs fail ([#1263](https://github.com/context-dot-dev/context-ruby-sdk/issues/1263)) ([e2ccfa7](https://github.com/context-dot-dev/context-ruby-sdk/commit/e2ccfa7ea613221d3c6ad755aec93e01c58ca402))
|
|
18
|
+
* **scrape:** retain highlight headings only when needed ([#1245](https://github.com/context-dot-dev/context-ruby-sdk/issues/1245)) ([492a305](https://github.com/context-dot-dev/context-ruby-sdk/commit/492a3058c77fd4d2edad2be9007c010e1745cfc9))
|
|
19
|
+
|
|
20
|
+
## [2.20.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.19.0...v2.20.0) (2026-09-23)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **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))
|
|
26
|
+
* **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))
|
|
27
|
+
* **api:** api update ([f7adbd6](https://github.com/context-dot-dev/context-ruby-sdk/commit/f7adbd63407b697245019ea9483dc090de9ba0ff))
|
|
28
|
+
* **api:** api update ([c26b304](https://github.com/context-dot-dev/context-ruby-sdk/commit/c26b30411607dcc2eaad14962d582f4588f5193f))
|
|
29
|
+
* **api:** api update ([852a96e](https://github.com/context-dot-dev/context-ruby-sdk/commit/852a96e58dab7e6fef53af10093119ffc237f52e))
|
|
30
|
+
* **api:** api update ([c16beb5](https://github.com/context-dot-dev/context-ruby-sdk/commit/c16beb55d66977611c58711b489132f347ab2c96))
|
|
31
|
+
* **api:** api update ([9bff49f](https://github.com/context-dot-dev/context-ruby-sdk/commit/9bff49f9a966fd40691f2cd7a41ba96ec7679243))
|
|
32
|
+
* **api:** api update ([5b19e0c](https://github.com/context-dot-dev/context-ruby-sdk/commit/5b19e0ce1f7ad615a92e28440bec6ab3703ffe02))
|
|
33
|
+
* **api:** api update ([f4ccf22](https://github.com/context-dot-dev/context-ruby-sdk/commit/f4ccf220f130672950d3231a6b9952c166168ef9))
|
|
34
|
+
* **api:** api update ([6f90ebf](https://github.com/context-dot-dev/context-ruby-sdk/commit/6f90ebff6164a8daf2f6c4bf8d1492ade1ad2779))
|
|
35
|
+
* **api:** api update ([95cbdde](https://github.com/context-dot-dev/context-ruby-sdk/commit/95cbddeb3a3351a03c394709dfeaf3fb5c98be92))
|
|
36
|
+
* **api:** api update ([97520df](https://github.com/context-dot-dev/context-ruby-sdk/commit/97520df52a798122460e2f219d7b582d2f6830da))
|
|
37
|
+
* **api:** api update ([2b73772](https://github.com/context-dot-dev/context-ruby-sdk/commit/2b737722e962cf7a5aba20a2b596d379f7f2bce0))
|
|
38
|
+
* **api:** api update ([630b415](https://github.com/context-dot-dev/context-ruby-sdk/commit/630b4156f12004d2da154e26003271cd143ccbb8))
|
|
39
|
+
* **api:** api update ([ea29f67](https://github.com/context-dot-dev/context-ruby-sdk/commit/ea29f67042bd6fd9b987d7ad4ad9f8993a871653))
|
|
40
|
+
* **api:** api update ([e7c64e4](https://github.com/context-dot-dev/context-ruby-sdk/commit/e7c64e4540db4cc313d70cebe5409739b052e567))
|
|
41
|
+
* **api:** api update ([975de89](https://github.com/context-dot-dev/context-ruby-sdk/commit/975de893c9145f20f541a443730d7d99f575a313))
|
|
42
|
+
* **api:** api update ([a1f13c2](https://github.com/context-dot-dev/context-ruby-sdk/commit/a1f13c2244b0ac81a58c350e6cba79875e0c4bf1))
|
|
43
|
+
* **api:** api update ([e7cfd87](https://github.com/context-dot-dev/context-ruby-sdk/commit/e7cfd87ff2e163f572cc33ee4b6af5be79811d03))
|
|
44
|
+
* **api:** api update ([c827408](https://github.com/context-dot-dev/context-ruby-sdk/commit/c8274088947813e1090d6232190b5333c025696a))
|
|
45
|
+
* **api:** api update ([5c09f03](https://github.com/context-dot-dev/context-ruby-sdk/commit/5c09f03dd90cda2cad388ac2605d6cadebf0e137))
|
|
46
|
+
* **api:** api update ([b0bdc3e](https://github.com/context-dot-dev/context-ruby-sdk/commit/b0bdc3ec9322ce5854177cdaff808caaba427746))
|
|
47
|
+
* **api:** api update ([17848b3](https://github.com/context-dot-dev/context-ruby-sdk/commit/17848b313dcbd098b21902bd2bd2cab6d9ad5ce2))
|
|
48
|
+
* **api:** api update ([4db7386](https://github.com/context-dot-dev/context-ruby-sdk/commit/4db7386bf6f686a33beae7817ec9122e1adad47f))
|
|
49
|
+
* **api:** api update ([cedd9b1](https://github.com/context-dot-dev/context-ruby-sdk/commit/cedd9b1191e1297236c2aa6dede3fa640380b651))
|
|
50
|
+
* **api:** api update ([98fedb9](https://github.com/context-dot-dev/context-ruby-sdk/commit/98fedb99aae187cff9284efd0a6c574b1b71d749))
|
|
51
|
+
* **api:** api update ([7a5cc9a](https://github.com/context-dot-dev/context-ruby-sdk/commit/7a5cc9aa3bd2c746d0e47a58fbc426453db3b8c7))
|
|
52
|
+
* **api:** api update ([6cfd0e8](https://github.com/context-dot-dev/context-ruby-sdk/commit/6cfd0e80f3860cfbddd595ac4c72461075775415))
|
|
53
|
+
* **api:** api update ([99bdfb2](https://github.com/context-dot-dev/context-ruby-sdk/commit/99bdfb24af9adfac64ee68ca714fb1176c1d61c0))
|
|
54
|
+
* **api:** api update ([5af0d4b](https://github.com/context-dot-dev/context-ruby-sdk/commit/5af0d4b1954673356f6200967dbea5ea61685025))
|
|
55
|
+
* **api:** api update ([28793d8](https://github.com/context-dot-dev/context-ruby-sdk/commit/28793d84ed93dcf457aaf3f346056f2480f37724))
|
|
56
|
+
* **api:** api update ([c9c4475](https://github.com/context-dot-dev/context-ruby-sdk/commit/c9c447554772879c742d72ac88174a75fbff599a))
|
|
57
|
+
* **api:** api update ([72e6d90](https://github.com/context-dot-dev/context-ruby-sdk/commit/72e6d90baaeeb9181482488e7b49e511597d2175))
|
|
58
|
+
* **api:** api update ([2574f7d](https://github.com/context-dot-dev/context-ruby-sdk/commit/2574f7db809d8480db2b7ae2705fd2de6a1ce2ff))
|
|
59
|
+
* **api:** api update ([8fb7d29](https://github.com/context-dot-dev/context-ruby-sdk/commit/8fb7d29835d4ffe7eb53b1619d3da20fa45df52c))
|
|
60
|
+
* **api:** api update ([f5684a3](https://github.com/context-dot-dev/context-ruby-sdk/commit/f5684a355f24bf6a80aa904f09087a899f2121aa))
|
|
61
|
+
* **api:** api update ([426deb1](https://github.com/context-dot-dev/context-ruby-sdk/commit/426deb18249b214c3ccaa44c1e654e75ef666dd2))
|
|
62
|
+
* **api:** api update ([3fd9604](https://github.com/context-dot-dev/context-ruby-sdk/commit/3fd960488c341f082b6d312dda927aeee23dccff))
|
|
63
|
+
* **api:** api update ([bdd3176](https://github.com/context-dot-dev/context-ruby-sdk/commit/bdd3176c7f507880adb7becae314b816c6bbe9bc))
|
|
64
|
+
* **api:** api update ([d68d31d](https://github.com/context-dot-dev/context-ruby-sdk/commit/d68d31dc5aa77ad154789b6cf91e0b8558353214))
|
|
65
|
+
* **api:** api update ([d4c601e](https://github.com/context-dot-dev/context-ruby-sdk/commit/d4c601ea30aa1d47ef041d0439ab8b5d976cc8e2))
|
|
66
|
+
* **api:** api update ([03fa3ac](https://github.com/context-dot-dev/context-ruby-sdk/commit/03fa3ac3c7c61aba88846db890bf4d3fd22d1086))
|
|
67
|
+
* **api:** api update ([626d105](https://github.com/context-dot-dev/context-ruby-sdk/commit/626d1054da9622e88469bb9c3b755f43d1d75280))
|
|
68
|
+
* **api:** api update ([04e3709](https://github.com/context-dot-dev/context-ruby-sdk/commit/04e370916ae9679892d86fc297e3c935afa1e2c2))
|
|
69
|
+
* **api:** api update ([59b7e62](https://github.com/context-dot-dev/context-ruby-sdk/commit/59b7e62e57eff7482db12fe2dd1a97298620b88f))
|
|
70
|
+
* **api:** api update ([7fe6a1f](https://github.com/context-dot-dev/context-ruby-sdk/commit/7fe6a1fbd2977c0669b7623ba96533b43789b8ae))
|
|
71
|
+
* **api:** api update ([cd5b872](https://github.com/context-dot-dev/context-ruby-sdk/commit/cd5b8725dcd7fb06d7bd684aa4ce11b81ca4409a))
|
|
72
|
+
* **api:** api update ([bdc4962](https://github.com/context-dot-dev/context-ruby-sdk/commit/bdc4962f436086be52293ea489960b6b6158726b))
|
|
73
|
+
* **api:** api update ([531ccbe](https://github.com/context-dot-dev/context-ruby-sdk/commit/531ccbeb9770c4340641353859064b50aa6d72bc))
|
|
74
|
+
* **api:** api update ([b0511d9](https://github.com/context-dot-dev/context-ruby-sdk/commit/b0511d905641a19d59391ff26ac27d474016ac26))
|
|
75
|
+
* **api:** api update ([a146323](https://github.com/context-dot-dev/context-ruby-sdk/commit/a14632340e78b4b21be6c742f3792a7f14ca4fae))
|
|
76
|
+
* **api:** api update ([4a4a076](https://github.com/context-dot-dev/context-ruby-sdk/commit/4a4a0762b6c422c5507f847bb06b9ac0fb11e605))
|
|
77
|
+
* **api:** api update ([4682d0b](https://github.com/context-dot-dev/context-ruby-sdk/commit/4682d0b50170440ce7a3b60beadad10cefff3168))
|
|
78
|
+
* **api:** api update ([0026695](https://github.com/context-dot-dev/context-ruby-sdk/commit/00266958beb99d8747e4e5422a122792e0cb8080))
|
|
79
|
+
* **api:** api update ([3393a00](https://github.com/context-dot-dev/context-ruby-sdk/commit/3393a0047608f81e85a7c011ff3fd6356d7433a3))
|
|
80
|
+
* **api:** api update ([ab547fb](https://github.com/context-dot-dev/context-ruby-sdk/commit/ab547fb83535a1184f2aa1414b86022e4550704f))
|
|
81
|
+
* **api:** api update ([d71fbde](https://github.com/context-dot-dev/context-ruby-sdk/commit/d71fbde94bc39245091db193f120fa383efea82f))
|
|
82
|
+
* **api:** api update ([8fb393a](https://github.com/context-dot-dev/context-ruby-sdk/commit/8fb393a6a53d4ec6867efe8d9daf8458d9fa3cc8))
|
|
83
|
+
* **api:** api update ([edf39d7](https://github.com/context-dot-dev/context-ruby-sdk/commit/edf39d75e9ca0a7b96ddac6467f9b50ceca0acf1))
|
|
84
|
+
* **api:** api update ([893f11d](https://github.com/context-dot-dev/context-ruby-sdk/commit/893f11d2746ccb636e971e12c24553043046cb11))
|
|
85
|
+
* **api:** api update ([59319b0](https://github.com/context-dot-dev/context-ruby-sdk/commit/59319b0421154c96a444f5e2d45b83e8f4bc9074))
|
|
86
|
+
* **api:** api update ([125ebe5](https://github.com/context-dot-dev/context-ruby-sdk/commit/125ebe5cb023b276c01bdc8c3cafbe8841dffddb))
|
|
87
|
+
* **api:** api update ([26f4358](https://github.com/context-dot-dev/context-ruby-sdk/commit/26f43582d8d63b9ebd98f0ba04c64e93d61b185f))
|
|
88
|
+
* **api:** api update ([94469da](https://github.com/context-dot-dev/context-ruby-sdk/commit/94469da02de1d8713f5bcb723cab05f0e23bb33d))
|
|
89
|
+
* **api:** api update ([65310de](https://github.com/context-dot-dev/context-ruby-sdk/commit/65310de1d9739b217660fc4ab8e5462bc5a0f081))
|
|
90
|
+
* **api:** api update ([67ddd60](https://github.com/context-dot-dev/context-ruby-sdk/commit/67ddd60fffad48a4cc6697fb940f6510bc04d0cb))
|
|
91
|
+
* **api:** api update ([e987167](https://github.com/context-dot-dev/context-ruby-sdk/commit/e9871675c89fd313209d95cd54071fe986dd772a))
|
|
92
|
+
* **api:** api update ([2170040](https://github.com/context-dot-dev/context-ruby-sdk/commit/2170040142dab272a55f903f0d062b0d36d751aa))
|
|
93
|
+
* **api:** api update ([c57bae4](https://github.com/context-dot-dev/context-ruby-sdk/commit/c57bae40d99770e18c92d402eb71dc0aa651f522))
|
|
94
|
+
* **api:** api update ([c897bbf](https://github.com/context-dot-dev/context-ruby-sdk/commit/c897bbf03235960c8036bd808c5239b935d94bf3))
|
|
95
|
+
* **api:** api update ([9aa6127](https://github.com/context-dot-dev/context-ruby-sdk/commit/9aa6127b563032655648c3c24fe9564616ebe3f1))
|
|
96
|
+
* **api:** api update ([22eb08f](https://github.com/context-dot-dev/context-ruby-sdk/commit/22eb08f65d1001052f1bd247a4d60e2680bb33ea))
|
|
97
|
+
* **api:** api update ([d442168](https://github.com/context-dot-dev/context-ruby-sdk/commit/d442168b67accce12463e36f03630f155c1c7be3))
|
|
98
|
+
* **api:** api update ([f3a97c1](https://github.com/context-dot-dev/context-ruby-sdk/commit/f3a97c19ef01be5e6cf1ce7ecfa26c972edfdf33))
|
|
99
|
+
* **api:** api update ([8d8abf7](https://github.com/context-dot-dev/context-ruby-sdk/commit/8d8abf7c1600bce17ea26aa245f41b2e3199f722))
|
|
100
|
+
* **api:** api update ([7948cbf](https://github.com/context-dot-dev/context-ruby-sdk/commit/7948cbf296742dd0fea7c08c148962a35ed88c20))
|
|
101
|
+
* **api:** api update ([5574aa6](https://github.com/context-dot-dev/context-ruby-sdk/commit/5574aa6793f9ff576b625cbb2e86fa819fd3bf36))
|
|
102
|
+
* **api:** api update ([6e08ffc](https://github.com/context-dot-dev/context-ruby-sdk/commit/6e08ffc77cc708d31b9a3972bc3e2ac86c2fdb92))
|
|
103
|
+
* **api:** api update ([ab9c393](https://github.com/context-dot-dev/context-ruby-sdk/commit/ab9c3935b669fbe2c7a8ffdd5bff7ea05fc2ae56))
|
|
104
|
+
* **api:** api update ([7f8b7b7](https://github.com/context-dot-dev/context-ruby-sdk/commit/7f8b7b7a720f3fdf5364ffaf7c7e55f171b72c0e))
|
|
105
|
+
* **api:** api update ([b582c05](https://github.com/context-dot-dev/context-ruby-sdk/commit/b582c05376102bb0cb6f8d4d8c9a2cefdef8c1ec))
|
|
106
|
+
* **api:** api update ([4a4e4bb](https://github.com/context-dot-dev/context-ruby-sdk/commit/4a4e4bbc547662de263a307b213dd7eecd03a61d))
|
|
107
|
+
* **api:** api update ([ae638b0](https://github.com/context-dot-dev/context-ruby-sdk/commit/ae638b04d0e08bf93e2cdd1211236d841d5313b1))
|
|
108
|
+
* **api:** api update ([8376344](https://github.com/context-dot-dev/context-ruby-sdk/commit/8376344a7a72a7ff01906bc3d6a5913a4de60bcb))
|
|
109
|
+
* **api:** api update ([f0b1f3a](https://github.com/context-dot-dev/context-ruby-sdk/commit/f0b1f3afd885c44cb464393b57d944fa27a6c0b5))
|
|
110
|
+
* **api:** api update ([42c8282](https://github.com/context-dot-dev/context-ruby-sdk/commit/42c8282f18c421ca317b51c640ea42cc04c61230))
|
|
111
|
+
* **api:** api update ([58cb73a](https://github.com/context-dot-dev/context-ruby-sdk/commit/58cb73a109e20f296f6a5f256a94d690b1203f70))
|
|
112
|
+
* **api:** api update ([59a9399](https://github.com/context-dot-dev/context-ruby-sdk/commit/59a93997a90f6afac755abf6686c139b92d8463e))
|
|
113
|
+
* **api:** api update ([c74cbf3](https://github.com/context-dot-dev/context-ruby-sdk/commit/c74cbf354e15c2b56680b4248ed69462a1a84d23))
|
|
114
|
+
* **api:** api update ([cc57672](https://github.com/context-dot-dev/context-ruby-sdk/commit/cc576729ce6c522ee578e7dc5f99122463014515))
|
|
115
|
+
* **api:** api update ([84bfef2](https://github.com/context-dot-dev/context-ruby-sdk/commit/84bfef260d99a7a444c243edc4be1c72191929dd))
|
|
116
|
+
* **api:** api update ([5405b96](https://github.com/context-dot-dev/context-ruby-sdk/commit/5405b9676800e2004d92dd9f621dfc56972bacd2))
|
|
117
|
+
* **api:** api update ([9c8b4d9](https://github.com/context-dot-dev/context-ruby-sdk/commit/9c8b4d9b1d813c5b7992998a3fa23cde63fe2f4c))
|
|
118
|
+
* **api:** api update ([c1543f7](https://github.com/context-dot-dev/context-ruby-sdk/commit/c1543f7513b2d88b0c8ad8e209e62075bd9658bc))
|
|
119
|
+
* **api:** api update ([9c98e20](https://github.com/context-dot-dev/context-ruby-sdk/commit/9c98e20725dcda8466a2274b61be75943d0564d9))
|
|
120
|
+
* **api:** api update ([8ccafd9](https://github.com/context-dot-dev/context-ruby-sdk/commit/8ccafd9625079f40393fe23890958a80d8bdb4e8))
|
|
121
|
+
* **api:** api update ([30ef99f](https://github.com/context-dot-dev/context-ruby-sdk/commit/30ef99f9a0d61f6528aed16b080f376753b3447a))
|
|
122
|
+
* **api:** api update ([c9851eb](https://github.com/context-dot-dev/context-ruby-sdk/commit/c9851ebc0618d7433ed88f7062902fcec575b229))
|
|
123
|
+
* **api:** api update ([55529f6](https://github.com/context-dot-dev/context-ruby-sdk/commit/55529f63e23cf255645bdb2d0420bf24aaba28b1))
|
|
124
|
+
* **api:** api update ([51320a5](https://github.com/context-dot-dev/context-ruby-sdk/commit/51320a5677298ab231dc417ef3c54d6a75e640ba))
|
|
125
|
+
* **api:** api update ([5a69904](https://github.com/context-dot-dev/context-ruby-sdk/commit/5a69904d89cc873614e8320308eecac9304992d2))
|
|
126
|
+
* **api:** api update ([7d186fa](https://github.com/context-dot-dev/context-ruby-sdk/commit/7d186faf849e20bcd958beb5f46b71f6440b8358))
|
|
127
|
+
* **api:** api update ([2d439b9](https://github.com/context-dot-dev/context-ruby-sdk/commit/2d439b9814f0e3be9efead3d2e70e3e5d7e3a1f0))
|
|
128
|
+
* **api:** api update ([8b33b1e](https://github.com/context-dot-dev/context-ruby-sdk/commit/8b33b1ee26acc8314d9c285ea53e3531ba390a16))
|
|
129
|
+
* **api:** api update ([7b5ddec](https://github.com/context-dot-dev/context-ruby-sdk/commit/7b5ddec0b8e306df34a72ccd39e8d731168a62ea))
|
|
130
|
+
* **api:** api update ([b09024f](https://github.com/context-dot-dev/context-ruby-sdk/commit/b09024fa19c7aecafaf4fe4bd211bfc3738484ed))
|
|
131
|
+
* **api:** api update ([4e74fe3](https://github.com/context-dot-dev/context-ruby-sdk/commit/4e74fe3f395778efb1ca3f1e752f2f71e21a3191))
|
|
132
|
+
* **api:** api update ([f475665](https://github.com/context-dot-dev/context-ruby-sdk/commit/f47566556bc4d2c81a52084979f83be62cb17cf2))
|
|
133
|
+
* **api:** api update ([a4e99e6](https://github.com/context-dot-dev/context-ruby-sdk/commit/a4e99e6e0659cb7b09375d7a467e9771aa6cea44))
|
|
134
|
+
* **api:** api update ([b13514f](https://github.com/context-dot-dev/context-ruby-sdk/commit/b13514f872498b08e54fc8b4264179201ee30311))
|
|
135
|
+
* **api:** api update ([5f00bc0](https://github.com/context-dot-dev/context-ruby-sdk/commit/5f00bc076f0081065bc274ce9f28cd26a7daa944))
|
|
136
|
+
* **api:** api update ([9ae9b10](https://github.com/context-dot-dev/context-ruby-sdk/commit/9ae9b108ce2737b42574a6f781103410a546f704))
|
|
137
|
+
* **api:** api update ([58ed755](https://github.com/context-dot-dev/context-ruby-sdk/commit/58ed7551637936ea3c007e28af3358eb96a339ca))
|
|
138
|
+
* **api:** api update ([4767618](https://github.com/context-dot-dev/context-ruby-sdk/commit/4767618765a8f15bde582bf35f78190649681453))
|
|
139
|
+
* **api:** api update ([0891a8f](https://github.com/context-dot-dev/context-ruby-sdk/commit/0891a8f97fa7ca1b8e49dbc5d383763406ac85ae))
|
|
140
|
+
* **api:** api update ([ff1db16](https://github.com/context-dot-dev/context-ruby-sdk/commit/ff1db1692a06315279532c93a05722223cb2c7ee))
|
|
141
|
+
* **api:** api update ([97eac17](https://github.com/context-dot-dev/context-ruby-sdk/commit/97eac17686bff356d4d5b6ad6438beb24c05b05a))
|
|
142
|
+
* **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))
|
|
143
|
+
* **api:** manual updates ([54ad450](https://github.com/context-dot-dev/context-ruby-sdk/commit/54ad450f892542378cec0ce5430d1436e1437a4d))
|
|
144
|
+
* **api:** manual updates ([cf2f79f](https://github.com/context-dot-dev/context-ruby-sdk/commit/cf2f79ff77dca3e57069cfac612e7fd333a8d83f))
|
|
145
|
+
* **api:** manual updates ([054713e](https://github.com/context-dot-dev/context-ruby-sdk/commit/054713ecd7a6c12c29a2aaf0df0ea0eeb0ff61fc))
|
|
146
|
+
* **api:** manual updates ([d7a4669](https://github.com/context-dot-dev/context-ruby-sdk/commit/d7a46695c2ba5ec1f54eaedec751bfd1d1559c4b))
|
|
147
|
+
* **api:** manual updates ([2a83a5f](https://github.com/context-dot-dev/context-ruby-sdk/commit/2a83a5f976bf2b75964ea56ff07f99872acd5022))
|
|
148
|
+
* **api:** manual updates ([b7f6b2c](https://github.com/context-dot-dev/context-ruby-sdk/commit/b7f6b2c0a5bb91cc065bcc2ef497c9999414262c))
|
|
149
|
+
* **api:** manual updates ([b18f464](https://github.com/context-dot-dev/context-ruby-sdk/commit/b18f46485bf70c10b0a20459ed38b2991ea5add0))
|
|
150
|
+
* **api:** manual updates ([fa7f5bf](https://github.com/context-dot-dev/context-ruby-sdk/commit/fa7f5bfa1e892a7dff26b169bd3ea7a6d0863048))
|
|
151
|
+
* **api:** manual updates ([7277672](https://github.com/context-dot-dev/context-ruby-sdk/commit/7277672e289e4d8a54791a154e989ec6ba25e3b2))
|
|
152
|
+
* **api:** manual updates ([e3971dc](https://github.com/context-dot-dev/context-ruby-sdk/commit/e3971dcc3b94f5b998562f8ecb82a292cc8f00bd))
|
|
153
|
+
* **api:** manual updates ([688e5f5](https://github.com/context-dot-dev/context-ruby-sdk/commit/688e5f56137aeac7c5219383f241a459173f961f))
|
|
154
|
+
* **api:** manual updates ([b6c283e](https://github.com/context-dot-dev/context-ruby-sdk/commit/b6c283ee6c514421e07fb0b6d61aace62df318d1))
|
|
155
|
+
* **api:** manual updates ([6d640e9](https://github.com/context-dot-dev/context-ruby-sdk/commit/6d640e9d1c52818badc55b8f9e5c545766a26d01))
|
|
156
|
+
* **api:** manual updates ([ec963bb](https://github.com/context-dot-dev/context-ruby-sdk/commit/ec963bb99ac36d162552c76fb067e87144f21089))
|
|
157
|
+
* **api:** manual updates ([1017ae4](https://github.com/context-dot-dev/context-ruby-sdk/commit/1017ae4d595beb2e5b466326a4db19c78ce6db51))
|
|
158
|
+
* **api:** manual updates ([490fde0](https://github.com/context-dot-dev/context-ruby-sdk/commit/490fde06ead702db0640f9d1161c3d8ecedd31a9))
|
|
159
|
+
* **api:** manual updates ([e1f12de](https://github.com/context-dot-dev/context-ruby-sdk/commit/e1f12de44bcadd047b5746fdddcd828a29107e1e))
|
|
160
|
+
* **api:** manual updates ([f451afe](https://github.com/context-dot-dev/context-ruby-sdk/commit/f451afea50625bba49a808a4b193c451c7019571))
|
|
161
|
+
* **api:** manual updates ([11ea49f](https://github.com/context-dot-dev/context-ruby-sdk/commit/11ea49fac95ca680db1f9880b8b8590aa650b00a))
|
|
162
|
+
* **api:** manual updates ([739b99f](https://github.com/context-dot-dev/context-ruby-sdk/commit/739b99fddcd745960b3cf390cc9bff4220941ee8))
|
|
163
|
+
* **api:** manual updates ([d32eb69](https://github.com/context-dot-dev/context-ruby-sdk/commit/d32eb69f2bafb655156587bfb2daa659dcc3b731))
|
|
164
|
+
* **api:** manual updates ([8e8fcc2](https://github.com/context-dot-dev/context-ruby-sdk/commit/8e8fcc26f2fbbb2bdcca9713fa3b9f8518303586))
|
|
165
|
+
* **api:** manual updates ([d120a5d](https://github.com/context-dot-dev/context-ruby-sdk/commit/d120a5dde6665acced2c75394beb6910389e344e))
|
|
166
|
+
* **api:** manual updates ([fe32a5e](https://github.com/context-dot-dev/context-ruby-sdk/commit/fe32a5e431bf152d8b0966f9927efcd8ebc3b5c1))
|
|
167
|
+
* **api:** return request_id on every response ([012ba65](https://github.com/context-dot-dev/context-ruby-sdk/commit/012ba65ea7648ebd7b18fa7ad00955a13b8394b9))
|
|
168
|
+
* **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))
|
|
169
|
+
* **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))
|
|
170
|
+
* initial stlc build ([bf63ae0](https://github.com/context-dot-dev/context-ruby-sdk/commit/bf63ae0769d9756a0b36480fd0c2d05ae939997c))
|
|
171
|
+
* **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))
|
|
172
|
+
* **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))
|
|
173
|
+
* **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))
|
|
174
|
+
* **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))
|
|
175
|
+
* **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))
|
|
176
|
+
* **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))
|
|
177
|
+
* **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))
|
|
178
|
+
* **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))
|
|
179
|
+
* **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))
|
|
180
|
+
* **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))
|
|
181
|
+
* **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))
|
|
182
|
+
* **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))
|
|
183
|
+
* **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))
|
|
184
|
+
* **sitemap:** add subdomain discovery ([5630b67](https://github.com/context-dot-dev/context-ruby-sdk/commit/5630b67ab555ab5dabd06b0ade2c4d2837f13423))
|
|
185
|
+
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([f1c36e9](https://github.com/context-dot-dev/context-ruby-sdk/commit/f1c36e95f04eb617aa1769ba9cd21e3dad7bc5ee))
|
|
186
|
+
* support setting headers via env ([e625fee](https://github.com/context-dot-dev/context-ruby-sdk/commit/e625fee97a6d4f6ab25f69447b33521cac6a896c))
|
|
187
|
+
* **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))
|
|
188
|
+
* **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))
|
|
189
|
+
* **webhooks:** add configurable retries and manual replay ([00388ec](https://github.com/context-dot-dev/context-ruby-sdk/commit/00388ec76d375d7466c9b0d85dfe983d2a369807))
|
|
190
|
+
* **webhooks:** simplify delivery APIs ([fbd879e](https://github.com/context-dot-dev/context-ruby-sdk/commit/fbd879eaa0c0008cba1c3b19f1fe1accb53d8771))
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### Bug Fixes
|
|
194
|
+
|
|
195
|
+
* align path encoding with RFC 3986 section 3.3 ([2c4072d](https://github.com/context-dot-dev/context-ruby-sdk/commit/2c4072df7df531933f5352c611183b1d152e3ec2))
|
|
196
|
+
* **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))
|
|
197
|
+
* **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))
|
|
198
|
+
* **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))
|
|
199
|
+
* **api:** reject timeoutMS too short for waitForMs ([e8a6725](https://github.com/context-dot-dev/context-ruby-sdk/commit/e8a67255c9354f69d632697179a4d6270a4677ee))
|
|
200
|
+
* **client:** elide content type header on requests without body ([f53ad05](https://github.com/context-dot-dev/context-ruby-sdk/commit/f53ad05fc7e00b2be604cc1e637998bf4ed187f5))
|
|
201
|
+
* **client:** send content-type header for requests with an omitted optional body ([63d0f66](https://github.com/context-dot-dev/context-ruby-sdk/commit/63d0f66c1d871786bf80989b7a8ad11b859ec12a))
|
|
202
|
+
* **internal:** correct multipart form field name encoding ([221d059](https://github.com/context-dot-dev/context-ruby-sdk/commit/221d0598148243acddae6c9679c949c07e1dcd7a))
|
|
203
|
+
* multipart encoding for file arrays ([105116f](https://github.com/context-dot-dev/context-ruby-sdk/commit/105116f48178f46bae721d32e987d684fc662dd0))
|
|
204
|
+
* **openapi:** strip empty-object defaults from the generated spec ([fcbb393](https://github.com/context-dot-dev/context-ruby-sdk/commit/fcbb393067fd9058bb2d443bd2a8f2a9e4b8f17c))
|
|
205
|
+
* **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))
|
|
206
|
+
* variable name typo ([10e1853](https://github.com/context-dot-dev/context-ruby-sdk/commit/10e185365b3196732fc5e0649975ab696f80e893))
|
|
207
|
+
* **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))
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### Chores
|
|
211
|
+
|
|
212
|
+
* **ci:** support opting out of skipping builds on metadata-only commits ([aad82ac](https://github.com/context-dot-dev/context-ruby-sdk/commit/aad82ac90dd1c55ca4db05e63b70b46abded53e3))
|
|
213
|
+
* configure new SDK language ([8d24989](https://github.com/context-dot-dev/context-ruby-sdk/commit/8d2498986b1358432204720208f1a9b18d0f53f0))
|
|
214
|
+
* **internal:** bound formatter parallelism to CPU count ([8b73d53](https://github.com/context-dot-dev/context-ruby-sdk/commit/8b73d53426ce571223386b1decabcb0bf58eaa37))
|
|
215
|
+
* **internal:** more robust bootstrap script ([57b2d93](https://github.com/context-dot-dev/context-ruby-sdk/commit/57b2d93877e5ceeb388679f239e21c09b087b2a1))
|
|
216
|
+
* **internal:** tweak CI branches ([2b124b9](https://github.com/context-dot-dev/context-ruby-sdk/commit/2b124b9fd6a5eeb81fa445afc448ce4819fc077e))
|
|
217
|
+
* release 2.17.1 ([eeb2a0d](https://github.com/context-dot-dev/context-ruby-sdk/commit/eeb2a0db6c069449f6c062113583657a3dfa7bdc))
|
|
218
|
+
* sync repo ([663ae2b](https://github.com/context-dot-dev/context-ruby-sdk/commit/663ae2b31199fd8a6b7e37161111d2c37a8d76df))
|
|
219
|
+
* update SDK settings ([8a92059](https://github.com/context-dot-dev/context-ruby-sdk/commit/8a920591a4a5ef301d26d19ca2a985ac7c0d8efd))
|
|
220
|
+
* update SDK settings ([3c49703](https://github.com/context-dot-dev/context-ruby-sdk/commit/3c49703a25e8951d07f597cc16b1abc03b248d84))
|
|
221
|
+
|
|
3
222
|
## [2.19.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.18.0...v2.19.0) (2026-09-22)
|
|
4
223
|
|
|
5
224
|
|
data/README.md
CHANGED
data/lib/context_dev/client.rb
CHANGED
|
@@ -59,6 +59,11 @@ module ContextDev
|
|
|
59
59
|
# @return [ContextDev::Resources::Logs]
|
|
60
60
|
attr_reader :logs
|
|
61
61
|
|
|
62
|
+
# Report bugs, docs mismatches, and friction with any Context.dev API. Submissions
|
|
63
|
+
# cost no credits and use a separate rate limit.
|
|
64
|
+
# @return [ContextDev::Resources::Feedback]
|
|
65
|
+
attr_reader :feedback
|
|
66
|
+
|
|
62
67
|
# @api private
|
|
63
68
|
#
|
|
64
69
|
# @return [Hash{String=>String}]
|
|
@@ -131,6 +136,7 @@ module ContextDev
|
|
|
131
136
|
@people = ContextDev::Resources::People.new(client: self)
|
|
132
137
|
@news = ContextDev::Resources::News.new(client: self)
|
|
133
138
|
@logs = ContextDev::Resources::Logs.new(client: self)
|
|
139
|
+
@feedback = ContextDev::Resources::Feedback.new(client: self)
|
|
134
140
|
end
|
|
135
141
|
end
|
|
136
142
|
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Feedback#submit
|
|
6
|
+
class FeedbackSubmitParams < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute category
|
|
11
|
+
# Kind of issue.
|
|
12
|
+
#
|
|
13
|
+
# @return [Symbol, ContextDev::Models::FeedbackSubmitParams::Category]
|
|
14
|
+
required :category, enum: -> { ContextDev::FeedbackSubmitParams::Category }
|
|
15
|
+
|
|
16
|
+
# @!attribute note
|
|
17
|
+
# What went wrong and what you expected instead.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :note, String
|
|
21
|
+
|
|
22
|
+
# @!attribute request_id
|
|
23
|
+
# The request_id of the API call the feedback is about, from its response body or
|
|
24
|
+
# X-Request-Id header.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :request_id, String
|
|
28
|
+
|
|
29
|
+
# @!attribute tags
|
|
30
|
+
# Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
|
|
31
|
+
#
|
|
32
|
+
# @return [Array<String>, nil]
|
|
33
|
+
optional :tags, ContextDev::Internal::Type::ArrayOf[String]
|
|
34
|
+
|
|
35
|
+
# @!attribute url
|
|
36
|
+
# The page the feedback is about, such as one page of a crawl or a docs page.
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :url, String
|
|
40
|
+
|
|
41
|
+
# @!method initialize(category:, note:, request_id: nil, tags: nil, url: nil, request_options: {})
|
|
42
|
+
# Some parameter documentations has been truncated, see
|
|
43
|
+
# {ContextDev::Models::FeedbackSubmitParams} for more details.
|
|
44
|
+
#
|
|
45
|
+
# @param category [Symbol, ContextDev::Models::FeedbackSubmitParams::Category] Kind of issue.
|
|
46
|
+
#
|
|
47
|
+
# @param note [String] What went wrong and what you expected instead.
|
|
48
|
+
#
|
|
49
|
+
# @param request_id [String] The request_id of the API call the feedback is about, from its response body or
|
|
50
|
+
#
|
|
51
|
+
# @param tags [Array<String>] Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
|
|
52
|
+
#
|
|
53
|
+
# @param url [String] The page the feedback is about, such as one page of a crawl or a docs page.
|
|
54
|
+
#
|
|
55
|
+
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
|
|
56
|
+
|
|
57
|
+
# Kind of issue.
|
|
58
|
+
module Category
|
|
59
|
+
extend ContextDev::Internal::Type::Enum
|
|
60
|
+
|
|
61
|
+
BUG = :bug
|
|
62
|
+
DOCS_MISMATCH = :docs_mismatch
|
|
63
|
+
FRICTION = :friction
|
|
64
|
+
FEATURE_GAP = :feature_gap
|
|
65
|
+
QUALITY_DEGRADATION = :quality_degradation
|
|
66
|
+
OTHER = :other
|
|
67
|
+
|
|
68
|
+
# @!method self.values
|
|
69
|
+
# @return [Array<Symbol>]
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Feedback#submit
|
|
6
|
+
class FeedbackSubmitResponse < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute already_submitted
|
|
8
|
+
# True when feedback for this request_id was already recorded; the original
|
|
9
|
+
# feedback_id is returned.
|
|
10
|
+
#
|
|
11
|
+
# @return [Boolean]
|
|
12
|
+
required :already_submitted, ContextDev::Internal::Type::Boolean
|
|
13
|
+
|
|
14
|
+
# @!attribute feedback_id
|
|
15
|
+
# ID of the stored feedback.
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :feedback_id, String
|
|
19
|
+
|
|
20
|
+
# @!attribute request_id
|
|
21
|
+
# Unique id of this API call, also sent in the X-Request-Id response header. Quote
|
|
22
|
+
# it when contacting support about a failed request.
|
|
23
|
+
#
|
|
24
|
+
# @return [String]
|
|
25
|
+
required :request_id, String
|
|
26
|
+
|
|
27
|
+
# @!attribute key_metadata
|
|
28
|
+
# Credit usage, included whenever a valid API key is provided.
|
|
29
|
+
#
|
|
30
|
+
# @return [ContextDev::Models::FeedbackSubmitResponse::KeyMetadata, nil]
|
|
31
|
+
optional :key_metadata, -> { ContextDev::Models::FeedbackSubmitResponse::KeyMetadata }
|
|
32
|
+
|
|
33
|
+
# @!method initialize(already_submitted:, feedback_id:, request_id:, key_metadata: nil)
|
|
34
|
+
# Some parameter documentations has been truncated, see
|
|
35
|
+
# {ContextDev::Models::FeedbackSubmitResponse} for more details.
|
|
36
|
+
#
|
|
37
|
+
# @param already_submitted [Boolean] True when feedback for this request_id was already recorded; the original feedba
|
|
38
|
+
#
|
|
39
|
+
# @param feedback_id [String] ID of the stored feedback.
|
|
40
|
+
#
|
|
41
|
+
# @param request_id [String] Unique id of this API call, also sent in the X-Request-Id response header. Quote
|
|
42
|
+
#
|
|
43
|
+
# @param key_metadata [ContextDev::Models::FeedbackSubmitResponse::KeyMetadata] Credit usage, included whenever a valid API key is provided.
|
|
44
|
+
|
|
45
|
+
# @see ContextDev::Models::FeedbackSubmitResponse#key_metadata
|
|
46
|
+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
|
|
47
|
+
# @!attribute credits_consumed
|
|
48
|
+
# Credits used by this request.
|
|
49
|
+
#
|
|
50
|
+
# @return [Integer]
|
|
51
|
+
required :credits_consumed, Integer
|
|
52
|
+
|
|
53
|
+
# @!attribute credits_remaining
|
|
54
|
+
# Credits remaining for your organization.
|
|
55
|
+
#
|
|
56
|
+
# @return [Integer]
|
|
57
|
+
required :credits_remaining, Integer
|
|
58
|
+
|
|
59
|
+
# @!method initialize(credits_consumed:, credits_remaining:)
|
|
60
|
+
# Credit usage, included whenever a valid API key is provided.
|
|
61
|
+
#
|
|
62
|
+
# @param credits_consumed [Integer] Credits used by this request.
|
|
63
|
+
#
|
|
64
|
+
# @param credits_remaining [Integer] Credits remaining for your organization.
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -20,7 +20,9 @@ module ContextDev
|
|
|
20
20
|
optional :cursor, String, nil?: true
|
|
21
21
|
|
|
22
22
|
# @!attribute filter_by
|
|
23
|
-
# Optional result filters.
|
|
23
|
+
# Optional result filters. Use at most one of sourceDomain, sourceCountry,
|
|
24
|
+
# articleLanguage, or articleType. A date range may accompany that category;
|
|
25
|
+
# date.from must not exceed date.to.
|
|
24
26
|
#
|
|
25
27
|
# @return [ContextDev::Models::NewsSearchParams::FilterBy, nil]
|
|
26
28
|
optional :filter_by, -> { ContextDev::NewsSearchParams::FilterBy }, api_name: :filterBy
|
|
@@ -44,11 +46,14 @@ module ContextDev
|
|
|
44
46
|
optional :tags, ContextDev::Internal::Type::ArrayOf[String]
|
|
45
47
|
|
|
46
48
|
# @!method initialize(search_by:, cursor: nil, filter_by: nil, limit: nil, sort_by: nil, tags: nil, request_options: {})
|
|
49
|
+
# Some parameter documentations has been truncated, see
|
|
50
|
+
# {ContextDev::Models::NewsSearchParams} for more details.
|
|
51
|
+
#
|
|
47
52
|
# @param search_by [ContextDev::Models::NewsSearchParams::SearchBy] What to search for.
|
|
48
53
|
#
|
|
49
54
|
# @param cursor [String, nil] Opaque next_cursor from the previous response, or null for the first page.
|
|
50
55
|
#
|
|
51
|
-
# @param filter_by [ContextDev::Models::NewsSearchParams::FilterBy] Optional result filters.
|
|
56
|
+
# @param filter_by [ContextDev::Models::NewsSearchParams::FilterBy] Optional result filters. Use at most one of sourceDomain, sourceCountry, article
|
|
52
57
|
#
|
|
53
58
|
# @param limit [Integer] Maximum results to return. Defaults to 10.
|
|
54
59
|
#
|
|
@@ -314,7 +319,7 @@ module ContextDev
|
|
|
314
319
|
api_name: :articleType
|
|
315
320
|
|
|
316
321
|
# @!attribute date
|
|
317
|
-
# Published-at window in epoch milliseconds.
|
|
322
|
+
# Published-at window in epoch milliseconds. from must be before or equal to to.
|
|
318
323
|
#
|
|
319
324
|
# @return [ContextDev::Models::NewsSearchParams::FilterBy::Date, nil]
|
|
320
325
|
optional :date, -> { ContextDev::NewsSearchParams::FilterBy::Date }
|
|
@@ -336,13 +341,15 @@ module ContextDev
|
|
|
336
341
|
optional :source_domain, ContextDev::Internal::Type::ArrayOf[String], api_name: :sourceDomain
|
|
337
342
|
|
|
338
343
|
# @!method initialize(article_language: nil, article_type: nil, date: nil, source_country: nil, source_domain: nil)
|
|
339
|
-
# Optional result filters.
|
|
344
|
+
# Optional result filters. Use at most one of sourceDomain, sourceCountry,
|
|
345
|
+
# articleLanguage, or articleType. A date range may accompany that category;
|
|
346
|
+
# date.from must not exceed date.to.
|
|
340
347
|
#
|
|
341
348
|
# @param article_language [Array<Symbol, ContextDev::Models::NewsSearchParams::FilterBy::ArticleLanguage>] Article languages to include. Up to 3.
|
|
342
349
|
#
|
|
343
350
|
# @param article_type [Array<Symbol, ContextDev::Models::NewsSearchParams::FilterBy::ArticleType>] Article types to include. Up to 3.
|
|
344
351
|
#
|
|
345
|
-
# @param date [ContextDev::Models::NewsSearchParams::FilterBy::Date] Published-at window in epoch milliseconds.
|
|
352
|
+
# @param date [ContextDev::Models::NewsSearchParams::FilterBy::Date] Published-at window in epoch milliseconds. from must be before or equal to to.
|
|
346
353
|
#
|
|
347
354
|
# @param source_country [Array<Symbol, ContextDev::Models::NewsSearchParams::FilterBy::SourceCountry>] Publisher countries to include, as lowercase ISO 3166-1 alpha-2 codes. Up to 3.
|
|
348
355
|
#
|
|
@@ -396,7 +403,7 @@ module ContextDev
|
|
|
396
403
|
optional :to, Integer
|
|
397
404
|
|
|
398
405
|
# @!method initialize(from: nil, to: nil)
|
|
399
|
-
# Published-at window in epoch milliseconds.
|
|
406
|
+
# Published-at window in epoch milliseconds. from must be before or equal to to.
|
|
400
407
|
#
|
|
401
408
|
# @param from [Integer] Inclusive start of the published-at window, in epoch milliseconds.
|
|
402
409
|
#
|