Commit f0bf8c8
authored
Adapt to quicknode-sdk 0.3: require JWT kid and webhook compression, support ByList templates (#42)
SDK 0.3 made several request fields non-optional and reshaped webhook
template args:
- CreateJwtRequest.kid is now required, so `--kid` is required on
`qn endpoint security jwt add`.
- WebhookDestinationAttributes.compression is now required, so
`--compression` is required on `qn webhook create`; update/update-template
require it only when `--url` is supplied.
- Each TemplateArgs variant now wraps an Inline/ByList input enum. Added
`--*-list-name` flags so a template can reference a saved list instead of
inline values; supply the inline flag or the list-name flag, not both.
- evm-contract-events event_hashes is now a required Vec.
Updates the embedded `agent context` guide. Adds 4 webhook tests (ByList,
evm-abi ByList, inline+list conflict, missing compression) and 2 JWT tests
(add-with-kid, requires-kid). Full suite green.1 parent 1782127 commit f0bf8c8
8 files changed
Lines changed: 493 additions & 110 deletions
File tree
- src/commands
- agent
- endpoint
- webhook
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments