Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 4.0.0 #1195

Merged
merged 1,777 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
1777 commits
Select commit Hold shift + click to select a range
bc2b5c4
feat(api): api update (#2160)
stainless-app[bot] Nov 15, 2024
441bcec
feat(api): api update (#2161)
stainless-app[bot] Nov 15, 2024
6f7623f
codegen metadata
stainless-bot Nov 15, 2024
5244425
feat(api): api update (#2162)
stainless-app[bot] Nov 15, 2024
c2770ee
feat(api): api update (#2163)
stainless-app[bot] Nov 15, 2024
3f20b98
feat(api): manual updates (#2164)
stainless-app[bot] Nov 18, 2024
2b267ce
codegen metadata
stainless-bot Nov 18, 2024
877e8c2
chore: rebuild project due to codegen change (#2165)
stainless-app[bot] Nov 18, 2024
9978385
codegen metadata
stainless-bot Nov 18, 2024
cd21ed6
codegen metadata
stainless-bot Nov 18, 2024
44c9de7
feat(api): api update (#2167)
stainless-app[bot] Nov 18, 2024
86eff89
feat(api): api update (#2168)
stainless-app[bot] Nov 18, 2024
94403aa
feat(api): api update (#2169)
stainless-app[bot] Nov 18, 2024
bfd27f8
feat(api): api update (#2170)
stainless-app[bot] Nov 19, 2024
f704605
feat(api): api update (#2171)
stainless-app[bot] Nov 19, 2024
08ad8b2
codegen metadata
stainless-bot Nov 19, 2024
5f7165b
codegen metadata
stainless-bot Nov 19, 2024
6cce632
codegen metadata
stainless-bot Nov 19, 2024
64c23aa
codegen metadata
stainless-bot Nov 19, 2024
abbdc97
feat(api): api update (#2172)
stainless-app[bot] Nov 19, 2024
9e7ca11
feat(api): api update (#2173)
stainless-app[bot] Nov 19, 2024
dbebda3
chore: rebuild project due to codegen change (#2174)
stainless-app[bot] Nov 19, 2024
d22a2de
feat(api): api update (#2175)
stainless-app[bot] Nov 19, 2024
c810755
chore(internal): codegen related update (#2176)
stainless-app[bot] Nov 20, 2024
3fd5de2
feat(api): introduce bulk operation methods (#2177)
stainless-app[bot] Nov 20, 2024
bd94126
feat(api): clean up missing models (#2178)
stainless-app[bot] Nov 20, 2024
d39c7b5
feat(api): api update (#2179)
stainless-app[bot] Nov 20, 2024
90be13d
feat(api): api update (#2180)
stainless-app[bot] Nov 20, 2024
f3c2bb4
feat(api): api update (#2181)
stainless-app[bot] Nov 20, 2024
660adfd
feat(api): update via SDK Studio (#2182)
stainless-app[bot] Nov 20, 2024
cda5a42
feat(api): update via SDK Studio (#2183)
stainless-app[bot] Nov 20, 2024
838f684
feat(api): update via SDK Studio (#2184)
stainless-app[bot] Nov 20, 2024
b461bd6
codegen metadata
stainless-bot Nov 20, 2024
efe358f
codegen metadata
stainless-bot Nov 20, 2024
073898d
codegen metadata
stainless-bot Nov 20, 2024
e727768
feat(api): update via SDK Studio (#2185)
stainless-app[bot] Nov 20, 2024
eeb6d8e
feat(zero_trust_organization): swap to upsert for creation (#2186)
stainless-app[bot] Nov 20, 2024
4e1d81a
feat(api): update via SDK Studio (#2187)
stainless-app[bot] Nov 20, 2024
d55a879
codegen metadata
stainless-bot Nov 20, 2024
09acf0a
feat(api): api update (#2188)
stainless-app[bot] Nov 20, 2024
93cfe28
feat(api): update via SDK Studio (#2189)
stainless-app[bot] Nov 20, 2024
4b59193
feat(api): update via SDK Studio (#2190)
stainless-app[bot] Nov 20, 2024
8fa356e
codegen metadata
stainless-bot Nov 20, 2024
b480965
feat(api): update via SDK Studio (#2191)
stainless-app[bot] Nov 20, 2024
f1b6c86
feat(api): update via SDK Studio (#2192)
stainless-app[bot] Nov 20, 2024
d4deaed
feat(api): update via SDK Studio (#2193)
stainless-app[bot] Nov 20, 2024
9949651
feat(api): update via SDK Studio (#2194)
stainless-app[bot] Nov 20, 2024
2de0fb0
feat(api): manual updates (#2195)
stainless-app[bot] Nov 20, 2024
8ed5f71
feat(r2_bucket): add `cors` support (#2196)
stainless-app[bot] Nov 21, 2024
8fb8e8b
feat(api): api update (#2197)
stainless-app[bot] Nov 21, 2024
1cad830
feat(api): api update (#2198)
stainless-app[bot] Nov 21, 2024
2d5cecb
feat(api): api update (#2199)
stainless-app[bot] Nov 21, 2024
5be5fe6
feat(api): api update (#2200)
stainless-app[bot] Nov 21, 2024
dc752c1
feat(api): api update (#2201)
stainless-app[bot] Nov 21, 2024
ace26df
feat(api): api update (#2202)
stainless-app[bot] Nov 21, 2024
1c97b11
feat(api): api update (#2203)
stainless-app[bot] Nov 21, 2024
f43f392
feat(zero_trust_device_certificates): update path placeholders (#2204)
stainless-app[bot] Nov 22, 2024
291389c
feat(api): api update (#2205)
stainless-app[bot] Nov 22, 2024
546cb1c
feat(api): api update (#2206)
stainless-app[bot] Nov 22, 2024
d40b099
feat(api): manual updates (#2207)
stainless-app[bot] Nov 22, 2024
1c448f1
codegen metadata
stainless-bot Nov 25, 2024
9218b3b
chore: remove now unused `cached-property` dep (#2208)
stainless-app[bot] Nov 25, 2024
2d037ba
codegen metadata
stainless-bot Nov 25, 2024
458a4a5
feat(api): api update (#2209)
stainless-app[bot] Nov 25, 2024
51a0005
feat(api): api update (#2211)
stainless-app[bot] Nov 26, 2024
eb4ca16
chore: workaround circular import error (#2210)
stainless-app[bot] Nov 26, 2024
4786ac7
codegen metadata
stainless-bot Nov 26, 2024
b6cc832
codegen metadata
stainless-bot Nov 26, 2024
19d7551
feat(api): api update (#2212)
stainless-app[bot] Nov 26, 2024
5bf1ef5
chore(internal): codegen related update (#2213)
stainless-app[bot] Nov 26, 2024
515e68c
chore(internal): codegen related update (#2214)
stainless-app[bot] Nov 26, 2024
ce08157
docs(api.md): fix return type annotations (#2215)
stainless-app[bot] Nov 26, 2024
272e71c
feat(api): api update (#2216)
stainless-app[bot] Nov 26, 2024
09de961
chore(internal): codegen related update (#2217)
stainless-app[bot] Nov 26, 2024
55b8cff
chore(internal): codegen related update (#2218)
stainless-app[bot] Nov 26, 2024
88819fc
feat(api): api update (#2219)
stainless-app[bot] Nov 26, 2024
de07ba2
feat(warp_connector)!: move under zero trust namespace (#2220)
stainless-app[bot] Nov 26, 2024
c984914
codegen metadata
stainless-bot Nov 26, 2024
5570f23
codegen metadata
stainless-bot Nov 26, 2024
aa8b4a6
codegen metadata
stainless-bot Nov 26, 2024
8eac90a
codegen metadata
stainless-bot Nov 27, 2024
5b79c50
codegen metadata
stainless-bot Nov 27, 2024
2c1492d
codegen metadata
stainless-bot Nov 27, 2024
0f01824
feat(api): api update (#2221)
stainless-app[bot] Nov 27, 2024
ee088e9
chore(internal): exclude mypy from running on tests (#2222)
stainless-app[bot] Nov 27, 2024
2e9734b
feat(api): api update (#2223)
stainless-app[bot] Nov 27, 2024
2cad4a0
feat(internal): update path placeholders (#2224)
stainless-app[bot] Nov 28, 2024
c04d762
feat(urlscanner): swap to v2 create (#2225)
stainless-app[bot] Nov 28, 2024
7065932
feat(api): manual updates (#2226)
stainless-app[bot] Nov 28, 2024
ace3716
feat(api): api update (#2227)
stainless-app[bot] Nov 28, 2024
a369813
fix(client): compat with new httpx 0.28.0 release (#2228)
stainless-app[bot] Nov 28, 2024
2b35234
feat(leaked_credential_check): add terraform resource (#2229)
stainless-app[bot] Nov 29, 2024
076177e
codegen metadata
stainless-bot Nov 29, 2024
1156419
chore(internal): codegen related update (#2230)
stainless-app[bot] Nov 29, 2024
3823729
feat(url_scanner)!: swap all methods to be v2 only (#2231)
stainless-app[bot] Dec 2, 2024
13247e7
codegen metadata
stainless-bot Dec 2, 2024
7d503e6
chore(internal): bump pyright (#2232)
stainless-app[bot] Dec 2, 2024
40cb3e1
feat(dnssec)!: move under DNS namespace (#2233)
stainless-app[bot] Dec 3, 2024
c3cd782
feat(zone_transfers)!: move under DNS namespace (#2234)
stainless-app[bot] Dec 3, 2024
34e5a29
feat(dns_firewall): break out into standalone package (#2235)
stainless-app[bot] Dec 3, 2024
a0f4c07
codegen metadata
stainless-bot Dec 3, 2024
adc6f6b
feat(api): api update (#2237)
stainless-app[bot] Dec 3, 2024
84bc37c
feat(api): api update (#2238)
stainless-app[bot] Dec 3, 2024
cb5fbad
feat: fix(project): constrain incompatible httpx and pydantic versions
RobertCraigie Dec 3, 2024
6a4602a
feat: release: 3.1.1
RobertCraigie Dec 3, 2024
4823b68
revert: fix(project): constrain incompatible httpx and pydantic versions
RobertCraigie Dec 3, 2024
375bc8c
feat(kv)!: move analytics under existing namespace (#2239)
Dec 4, 2024
a824f1b
chore(internal): fix formatting
RobertCraigie Dec 4, 2024
4b2bf34
chore: make the `Omit` type public (#2241)
stainless-app[bot] Dec 4, 2024
571fe0e
feat(dns): remove `delta` model (#2242)
stainless-app[bot] Dec 4, 2024
86ca907
feat(api): api update (#2243)
stainless-app[bot] Dec 4, 2024
0978d14
feat(api): api update (#2244)
stainless-app[bot] Dec 4, 2024
c12dfc0
feat(api): api update (#2245)
stainless-app[bot] Dec 5, 2024
e2f5e1b
feat(infrastructure_targets): add bulk endpoints (#2246)
stainless-app[bot] Dec 6, 2024
38a93e7
feat(api): api update (#2247)
stainless-app[bot] Dec 6, 2024
240f6c5
codegen metadata
stainless-app[bot] Dec 7, 2024
8b5316e
feat(dex): add commands support (#2248)
stainless-app[bot] Dec 9, 2024
5bd4192
test(api): disable some broken prism tests pending investigation (#2249)
stainless-app[bot] Dec 9, 2024
cb658ad
test: uncomment another round of broken prism tests (#2250)
stainless-app[bot] Dec 9, 2024
ff3807c
chore(internal): bump pydantic dependency (#2251)
stainless-app[bot] Dec 9, 2024
3f9fd35
docs(readme): fix http client proxies example (#2252)
stainless-app[bot] Dec 9, 2024
89e9982
chore(internal): codegen related update (#2253)
stainless-app[bot] Dec 9, 2024
39bd39c
feat(content_scanning): introduce support (#2254)
stainless-app[bot] Dec 9, 2024
f70b142
feat(api): manual updates (#2255)
stainless-app[bot] Dec 10, 2024
6b30a5b
codegen metadata
stainless-app[bot] Dec 10, 2024
f3206a6
codegen metadata
stainless-app[bot] Dec 10, 2024
db72d31
fix(urlscanner): fix invalid schema definition for plain text (#2256)
stainless-app[bot] Dec 10, 2024
9e6edc9
test: skip assertions with invalid auth failures (#2257)
stainless-app[bot] Dec 10, 2024
041b12d
test: skip assertions with invalid auth failures (#2258)
stainless-app[bot] Dec 10, 2024
7f6dfe2
test: skip assertions with invalid auth failures (#2259)
stainless-app[bot] Dec 10, 2024
d2f86b6
chore: updates (#2260)
stainless-app[bot] Dec 10, 2024
560801e
feat(dlp): disable problematic test (#2261)
stainless-app[bot] Dec 10, 2024
332f48d
chore: switch to TypeAliasType for request tracer
RobertCraigie Dec 10, 2024
c7dffd7
Merge remote-tracking branch 'origin/main' into next
RobertCraigie Dec 10, 2024
72b7def
feat(pagerules): rename namespace to page_rules (#2262)
stainless-app[bot] Dec 11, 2024
acbdc24
feat: generate more types that are used as request bodies (#2263)
stainless-app[bot] Dec 12, 2024
792e093
feat: swap DNS example to A
jacobbednarz Dec 12, 2024
ebd0a3a
feat: Delete examples/.keep
jacobbednarz Dec 12, 2024
72e5f89
chore(internal): bump pyright (#2264)
stainless-app[bot] Dec 12, 2024
f68f721
chore(internal): add support for TypeAliasType (#2265)
stainless-app[bot] Dec 12, 2024
da884ff
chore: use TypeAliasType for Pydantic v2 only
RobertCraigie Dec 12, 2024
e738082
feat(api): api update (#2266)
stainless-app[bot] Dec 12, 2024
165bc8c
feat(api): fix internal URL mappings (#2267)
stainless-app[bot] Dec 13, 2024
f21869f
feat(api): Add PATCH zone hold update method (#2268)
stainless-app[bot] Dec 13, 2024
90d0608
feat(ai)!: move to dedicated namespace (#2269)
stainless-app[bot] Dec 13, 2024
582142f
fix(internal): add cleaner handling of DNS unions (#2270)
stainless-app[bot] Dec 13, 2024
d723b37
fix(example): update example to reflect new structure
jacobbednarz Dec 13, 2024
f78a055
Merge pull request #2271 from cloudflare/update-examples
jacobbednarz Dec 13, 2024
c59b644
update example paths
jacobbednarz Dec 13, 2024
642d2d3
update dns example path
jacobbednarz Dec 13, 2024
9e517da
fix CLOUDFLARE_ZONE_ID value
jacobbednarz Dec 13, 2024
f3b2007
cleanup DNS record after the test
jacobbednarz Dec 13, 2024
0c5439a
Update record.py
jacobbednarz Dec 13, 2024
cf4cf84
codegen metadata
stainless-app[bot] Dec 13, 2024
2fe9a70
chore(internal): remove some duplicated imports (#2272)
stainless-app[bot] Dec 13, 2024
fcf96f7
feat(api): api update (#2273)
stainless-app[bot] Dec 13, 2024
352b69d
chore(internal): updated imports (#2274)
stainless-app[bot] Dec 13, 2024
5c57d32
feat(api): Update verb on PATCH zone hold method (#2275)
stainless-app[bot] Dec 13, 2024
d77a47e
feat(api): api update (#2276)
stainless-app[bot] Dec 13, 2024
674c2ce
feat(ai): move AI back to dedicated namespace (#2277)
stainless-app[bot] Dec 15, 2024
e5c69df
feat(dns): fix model oneOf (#2278)
stainless-app[bot] Dec 15, 2024
0991241
feat(workers): add routes support (#2279)
stainless-app[bot] Dec 16, 2024
54e1a34
docs(readme): example snippet for client context manager (#2280)
stainless-app[bot] Dec 16, 2024
712c994
chore(internal): codegen related update (#2282)
stainless-app[bot] Dec 16, 2024
6b98f7a
chore(internal): fix some typos (#2283)
stainless-app[bot] Dec 17, 2024
982f95a
feat(api): api update (#2284)
stainless-app[bot] Dec 17, 2024
b1b4b24
codegen metadata
stainless-app[bot] Dec 17, 2024
9cae1f0
feat(api): api update (#2285)
stainless-app[bot] Dec 17, 2024
efa8fcb
feat(api): api update (#2286)
stainless-app[bot] Dec 17, 2024
ce7f872
feat(api): map more endpoints (#2287)
stainless-app[bot] Dec 17, 2024
52ec839
feat(api): api update (#2288)
stainless-app[bot] Dec 17, 2024
9cb1e41
chore(internal): codegen related update (#2289)
stainless-app[bot] Dec 17, 2024
db76849
feat(api): api update (#2290)
stainless-app[bot] Dec 18, 2024
17a3ce1
feat(api): api update (#2291)
stainless-app[bot] Dec 18, 2024
5408013
feat(api): api update (#2292)
stainless-app[bot] Dec 18, 2024
f2cdcdc
feat(api): api update (#2293)
stainless-app[bot] Dec 18, 2024
17db44d
feat(api): api update (#2294)
stainless-app[bot] Dec 18, 2024
a3043d4
feat(api): manual updates (#2295)
stainless-app[bot] Dec 18, 2024
e7936f6
feat(api): api shield operations updates; rename discovery resource (…
stainless-app[bot] Dec 18, 2024
1230240
codegen metadata
stainless-app[bot] Dec 19, 2024
1d4bea4
feat(api): api update (#2297)
stainless-app[bot] Dec 19, 2024
124d934
codegen metadata
stainless-app[bot] Dec 19, 2024
5d21b01
codegen metadata
stainless-app[bot] Dec 19, 2024
5b6c236
codegen metadata
stainless-app[bot] Dec 19, 2024
2085a9e
feat(api): api update (#2298)
stainless-app[bot] Dec 19, 2024
429c4ee
feat(api): api update (#2299)
stainless-app[bot] Dec 29, 2024
73ec2ba
chore(internal): codegen related update (#2300)
stainless-app[bot] Jan 1, 2025
91253c2
feat(api): manual updates (#2301)
stainless-app[bot] Jan 1, 2025
df84d3a
feat(api): manual updates (#2302)
stainless-app[bot] Jan 1, 2025
b9a842b
feat(addressing)!: move service bindings to dedicated namespace (#2303)
stainless-app[bot] Jan 1, 2025
c10d3b7
feat(loa_documents)!: move download subresource into parent as `get` …
stainless-app[bot] Jan 1, 2025
4493d6c
feat(ai): add support for search endpoints and finetunes (#2305)
stainless-app[bot] Jan 2, 2025
8edd6d6
chore: small refactors (#2306)
stainless-app[bot] Jan 2, 2025
5dfdcbd
feat(r2)!: rename `cf-r2-jurisdiction` to more usable `jurisdiction` …
stainless-app[bot] Jan 3, 2025
fd63955
feat(r2)!: rename `cf-r2-jurisdiction` to more usable `jurisdiction` …
stainless-app[bot] Jan 3, 2025
a1ef1be
feat(r2)!: rename `cf-r2-jurisdiction` to more usable `jurisdiction` …
stainless-app[bot] Jan 3, 2025
20fbd7d
feat(zone_settings): update `origin_max_http_version` model (#2311)
stainless-app[bot] Jan 3, 2025
f7ca287
feat(api): manual updates (#2312)
stainless-app[bot] Jan 3, 2025
6c97352
feat(api): api update (#2313)
stainless-app[bot] Jan 4, 2025
8f97535
codegen metadata
stainless-app[bot] Jan 4, 2025
b04ba76
feat(cloud_connector): define body param name (#2314)
stainless-app[bot] Jan 6, 2025
a7aacf0
codegen metadata
stainless-app[bot] Jan 6, 2025
f411df9
codegen metadata
stainless-app[bot] Jan 6, 2025
09f456c
feat(api): api update (#2315)
stainless-app[bot] Jan 6, 2025
a271105
chore: add missing isclass check (#2316)
stainless-app[bot] Jan 6, 2025
c6cf3dc
feat(api): api update (#2317)
stainless-app[bot] Jan 6, 2025
9229d53
feat(api): api update (#2318)
stainless-app[bot] Jan 6, 2025
dce9437
feat(api): Add new Aegis zone setting (#2319)
stainless-app[bot] Jan 6, 2025
bdb21a5
feat(api): api update (#2320)
stainless-app[bot] Jan 6, 2025
f6b6e83
feat(origin_post_quantum_encryption): swap PUT for PATCH operation (#…
stainless-app[bot] Jan 6, 2025
e6a1bfa
feat(addressing)!: reshuffle relationship in the namespace to align w…
stainless-app[bot] Jan 7, 2025
cc90fdc
feat(api): skip authorization failures in prism (#2323)
stainless-app[bot] Jan 7, 2025
da91e21
feat(api): mark JSON as initialism (#2324)
stainless-app[bot] Jan 7, 2025
2a2e199
feat(api): manual updates (#2325)
stainless-app[bot] Jan 7, 2025
7e80cb8
feat(api): manual updates (#2326)
stainless-app[bot] Jan 7, 2025
ff79b8b
chore(internal): codegen related update (#2327)
stainless-app[bot] Jan 7, 2025
799c954
chore(internal): bump httpx dependency (#2328)
stainless-app[bot] Jan 7, 2025
10e2b12
fix(types): work around cyclical import error
RobertCraigie Jan 7, 2025
41a2158
fix(types): correct forward usage
RobertCraigie Jan 7, 2025
349d7af
fix(client): only call .close() when needed (#2330)
stainless-app[bot] Jan 7, 2025
0a952c0
feat(dlp): skip tests for `entries` update due to HTTP 422 in prism (…
stainless-app[bot] Jan 7, 2025
68720aa
test: skip more HTTP 422 failures from prism (#2332)
stainless-app[bot] Jan 7, 2025
6074a04
test: skip more HTTP 422 failures from prism (#2333)
stainless-app[bot] Jan 7, 2025
7af6c00
feat(examples): update paths to reflect namespace changes (#2334)
stainless-app[bot] Jan 8, 2025
5a0030a
docs: fix typos (#2336)
stainless-app[bot] Jan 8, 2025
e0e0068
chore(internal): codegen related update (#2337)
stainless-app[bot] Jan 8, 2025
645adba
feat(dns): add models for batch operations and response (#2339)
stainless-app[bot] Jan 8, 2025
e6ff06c
fix(api): better support union schemas with common properties (#2340)
stainless-app[bot] Jan 8, 2025
11683b6
feat(api): remove unneeded DNS transforms (#2341)
stainless-app[bot] Jan 8, 2025
2a3b8c5
feat(list_item): remove duplicated `anyOf` properties from component …
stainless-app[bot] Jan 9, 2025
1bd37b9
feat(api): api update (#2343)
stainless-app[bot] Jan 9, 2025
8072d1e
codegen metadata
stainless-app[bot] Jan 9, 2025
4423d8f
feat(api): api update (#2344)
stainless-app[bot] Jan 9, 2025
520a260
chore(examples): fix DNS record example
RobertCraigie Jan 9, 2025
9228d48
chore(internal): skip broken tests (#2345)
stainless-app[bot] Jan 9, 2025
7fce634
codegen metadata
stainless-app[bot] Jan 9, 2025
8225a83
feat(api): api update (#2347)
stainless-app[bot] Jan 9, 2025
1d668f9
codegen metadata
stainless-app[bot] Jan 9, 2025
61a852b
feat(api): update api shield operation endpoint (#2348)
stainless-app[bot] Jan 9, 2025
302b156
codegen metadata
stainless-app[bot] Jan 9, 2025
f3508f4
Merge pull request #2346 from cloudflare/robert/fix-example
jacobbednarz Jan 9, 2025
62ae025
codegen metadata
stainless-app[bot] Jan 9, 2025
878ae25
feat(api): manual updates (#2349)
stainless-app[bot] Jan 9, 2025
a1e865f
fix: correctly handle deserialising `cls` fields (#2350)
stainless-app[bot] Jan 9, 2025
85fd586
feat(api): manual updates (#2351)
stainless-app[bot] Jan 10, 2025
8ce1bcb
Update README.md
jacobbednarz Jan 10, 2025
b241f5b
chore: updates (#2352)
stainless-app[bot] Jan 11, 2025
7f83adf
chore: fix cyclical imports (#2353)
stainless-app[bot] Jan 13, 2025
1dedfa9
feat(api): api update (#2355)
stainless-app[bot] Jan 13, 2025
02d7cbb
release: 4.0.0
stainless-app[bot] Jan 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(api): manual updates (#2302)
stainless-app[bot] committed Jan 1, 2025
commit df84d3a36679693d2bed6ee4f8a73d82fb7fa8ef
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1475
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-663ea50351c42f1c51f49f099c888745f6a06cf22b8fe46cf1fa9ae89fdfdd61.yml
configured_endpoints: 1483
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f9dc65d353b377858f3d63d594de47559ed3a9d562295719690867315b8ec2fe.yml
45 changes: 45 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
@@ -6594,6 +6594,51 @@ Methods:
- <code title="get /accounts/{account_id}/vectorize/v2/indexes/{index_name}/metadata_index/list">client.vectorize.indexes.metadata_index.<a href="./src/cloudflare/resources/vectorize/indexes/metadata_index.py">list</a>(index_name, \*, account_id) -> <a href="./src/cloudflare/types/vectorize/indexes/metadata_index_list_response.py">Optional[MetadataIndexListResponse]</a></code>
- <code title="post /accounts/{account_id}/vectorize/v2/indexes/{index_name}/metadata_index/delete">client.vectorize.indexes.metadata_index.<a href="./src/cloudflare/resources/vectorize/indexes/metadata_index.py">delete</a>(index_name, \*, account_id, \*\*<a href="src/cloudflare/types/vectorize/indexes/metadata_index_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/vectorize/indexes/metadata_index_delete_response.py">Optional[MetadataIndexDeleteResponse]</a></code>

# URLScanner

Types:

```python
from cloudflare.types.url_scanner import URLScannerDomain, URLScannerTask
```

## Responses

Types:

```python
from cloudflare.types.url_scanner import ResponseGetResponse
```

Methods:

- <code title="get /accounts/{account_id}/urlscanner/v2/responses/{response_id}">client.url_scanner.responses.<a href="./src/cloudflare/resources/url_scanner/responses.py">get</a>(response_id, \*, account_id) -> str</code>

## Scans

Types:

```python
from cloudflare.types.url_scanner import (
ScanCreateResponse,
ScanListResponse,
ScanBulkCreateResponse,
ScanDOMResponse,
ScanGetResponse,
ScanHARResponse,
)
```

Methods:

- <code title="post /accounts/{account_id}/urlscanner/v2/scan">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_create_params.py">params</a>) -> <a href="./src/cloudflare/types/url_scanner/scan_create_response.py">str</a></code>
- <code title="get /accounts/{account_id}/urlscanner/v2/search">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_list_params.py">params</a>) -> <a href="./src/cloudflare/types/url_scanner/scan_list_response.py">ScanListResponse</a></code>
- <code title="post /accounts/{account_id}/urlscanner/v2/bulk">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">bulk_create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_bulk_create_params.py">params</a>) -> <a href="./src/cloudflare/types/url_scanner/scan_bulk_create_response.py">ScanBulkCreateResponse</a></code>
- <code title="get /accounts/{account_id}/urlscanner/v2/dom/{scan_id}">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">dom</a>(scan_id, \*, account_id) -> str</code>
- <code title="get /accounts/{account_id}/urlscanner/v2/result/{scan_id}">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">get</a>(scan_id, \*, account_id) -> <a href="./src/cloudflare/types/url_scanner/scan_get_response.py">ScanGetResponse</a></code>
- <code title="get /accounts/{account_id}/urlscanner/v2/har/{scan_id}">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">har</a>(scan_id, \*, account_id) -> <a href="./src/cloudflare/types/url_scanner/scan_har_response.py">ScanHARResponse</a></code>
- <code title="get /accounts/{account_id}/urlscanner/v2/screenshots/{scan_id}.png">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">screenshot</a>(scan_id, \*, account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_screenshot_params.py">params</a>) -> BinaryAPIResponse</code>

# Radar

## AI
38 changes: 38 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
@@ -88,6 +88,7 @@
memberships,
page_shield,
rate_limits,
url_scanner,
dns_firewall,
healthchecks,
security_txt,
@@ -185,6 +186,7 @@
from .resources.botnet_feed.botnet_feed import BotnetFeedResource, AsyncBotnetFeedResource
from .resources.diagnostics.diagnostics import DiagnosticsResource, AsyncDiagnosticsResource
from .resources.page_shield.page_shield import PageShieldResource, AsyncPageShieldResource
from .resources.url_scanner.url_scanner import URLScannerResource, AsyncURLScannerResource
from .resources.dns_firewall.dns_firewall import DNSFirewallResource, AsyncDNSFirewallResource
from .resources.healthchecks.healthchecks import HealthchecksResource, AsyncHealthchecksResource
from .resources.email_routing.email_routing import EmailRoutingResource, AsyncEmailRoutingResource
@@ -704,6 +706,12 @@ def vectorize(self) -> VectorizeResource:

return VectorizeResource(self)

@cached_property
def url_scanner(self) -> URLScannerResource:
from .resources.url_scanner import URLScannerResource

return URLScannerResource(self)

@cached_property
def radar(self) -> RadarResource:
from .resources.radar import RadarResource
@@ -1469,6 +1477,12 @@ def vectorize(self) -> AsyncVectorizeResource:

return AsyncVectorizeResource(self)

@cached_property
def url_scanner(self) -> AsyncURLScannerResource:
from .resources.url_scanner import AsyncURLScannerResource

return AsyncURLScannerResource(self)

@cached_property
def radar(self) -> AsyncRadarResource:
from .resources.radar import AsyncRadarResource
@@ -2167,6 +2181,12 @@ def vectorize(self) -> vectorize.VectorizeResourceWithRawResponse:

return VectorizeResourceWithRawResponse(self._client.vectorize)

@cached_property
def url_scanner(self) -> url_scanner.URLScannerResourceWithRawResponse:
from .resources.url_scanner import URLScannerResourceWithRawResponse

return URLScannerResourceWithRawResponse(self._client.url_scanner)

@cached_property
def radar(self) -> radar.RadarResourceWithRawResponse:
from .resources.radar import RadarResourceWithRawResponse
@@ -2686,6 +2706,12 @@ def vectorize(self) -> vectorize.AsyncVectorizeResourceWithRawResponse:

return AsyncVectorizeResourceWithRawResponse(self._client.vectorize)

@cached_property
def url_scanner(self) -> url_scanner.AsyncURLScannerResourceWithRawResponse:
from .resources.url_scanner import AsyncURLScannerResourceWithRawResponse

return AsyncURLScannerResourceWithRawResponse(self._client.url_scanner)

@cached_property
def radar(self) -> radar.AsyncRadarResourceWithRawResponse:
from .resources.radar import AsyncRadarResourceWithRawResponse
@@ -3205,6 +3231,12 @@ def vectorize(self) -> vectorize.VectorizeResourceWithStreamingResponse:

return VectorizeResourceWithStreamingResponse(self._client.vectorize)

@cached_property
def url_scanner(self) -> url_scanner.URLScannerResourceWithStreamingResponse:
from .resources.url_scanner import URLScannerResourceWithStreamingResponse

return URLScannerResourceWithStreamingResponse(self._client.url_scanner)

@cached_property
def radar(self) -> radar.RadarResourceWithStreamingResponse:
from .resources.radar import RadarResourceWithStreamingResponse
@@ -3728,6 +3760,12 @@ def vectorize(self) -> vectorize.AsyncVectorizeResourceWithStreamingResponse:

return AsyncVectorizeResourceWithStreamingResponse(self._client.vectorize)

@cached_property
def url_scanner(self) -> url_scanner.AsyncURLScannerResourceWithStreamingResponse:
from .resources.url_scanner import AsyncURLScannerResourceWithStreamingResponse

return AsyncURLScannerResourceWithStreamingResponse(self._client.url_scanner)

@cached_property
def radar(self) -> radar.AsyncRadarResourceWithStreamingResponse:
from .resources.radar import AsyncRadarResourceWithStreamingResponse
47 changes: 47 additions & 0 deletions src/cloudflare/resources/url_scanner/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .scans import (
ScansResource,
AsyncScansResource,
ScansResourceWithRawResponse,
AsyncScansResourceWithRawResponse,
ScansResourceWithStreamingResponse,
AsyncScansResourceWithStreamingResponse,
)
from .responses import (
ResponsesResource,
AsyncResponsesResource,
ResponsesResourceWithRawResponse,
AsyncResponsesResourceWithRawResponse,
ResponsesResourceWithStreamingResponse,
AsyncResponsesResourceWithStreamingResponse,
)
from .url_scanner import (
URLScannerResource,
AsyncURLScannerResource,
URLScannerResourceWithRawResponse,
AsyncURLScannerResourceWithRawResponse,
URLScannerResourceWithStreamingResponse,
AsyncURLScannerResourceWithStreamingResponse,
)

__all__ = [
"ResponsesResource",
"AsyncResponsesResource",
"ResponsesResourceWithRawResponse",
"AsyncResponsesResourceWithRawResponse",
"ResponsesResourceWithStreamingResponse",
"AsyncResponsesResourceWithStreamingResponse",
"ScansResource",
"AsyncScansResource",
"ScansResourceWithRawResponse",
"AsyncScansResourceWithRawResponse",
"ScansResourceWithStreamingResponse",
"AsyncScansResourceWithStreamingResponse",
"URLScannerResource",
"AsyncURLScannerResource",
"URLScannerResourceWithRawResponse",
"AsyncURLScannerResourceWithRawResponse",
"URLScannerResourceWithStreamingResponse",
"AsyncURLScannerResourceWithStreamingResponse",
]
182 changes: 182 additions & 0 deletions src/cloudflare/resources/url_scanner/responses.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

import httpx

from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ..._base_client import make_request_options

__all__ = ["ResponsesResource", "AsyncResponsesResource"]


class ResponsesResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> ResponsesResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
"""
return ResponsesResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> ResponsesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
"""
return ResponsesResourceWithStreamingResponse(self)

def get(
self,
response_id: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> str:
"""Returns the raw response of the network request.

If HTML, a plain text response
will be returned.

Args:
account_id: Account ID.

response_id: Response hash.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not response_id:
raise ValueError(f"Expected a non-empty value for `response_id` but received {response_id!r}")
extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
return self._get(
f"/accounts/{account_id}/urlscanner/v2/responses/{response_id}",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=str,
)


class AsyncResponsesResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncResponsesResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
"""
return AsyncResponsesResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AsyncResponsesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
"""
return AsyncResponsesResourceWithStreamingResponse(self)

async def get(
self,
response_id: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> str:
"""Returns the raw response of the network request.

If HTML, a plain text response
will be returned.

Args:
account_id: Account ID.

response_id: Response hash.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not response_id:
raise ValueError(f"Expected a non-empty value for `response_id` but received {response_id!r}")
extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
return await self._get(
f"/accounts/{account_id}/urlscanner/v2/responses/{response_id}",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=str,
)


class ResponsesResourceWithRawResponse:
def __init__(self, responses: ResponsesResource) -> None:
self._responses = responses

self.get = to_raw_response_wrapper(
responses.get,
)


class AsyncResponsesResourceWithRawResponse:
def __init__(self, responses: AsyncResponsesResource) -> None:
self._responses = responses

self.get = async_to_raw_response_wrapper(
responses.get,
)


class ResponsesResourceWithStreamingResponse:
def __init__(self, responses: ResponsesResource) -> None:
self._responses = responses

self.get = to_streamed_response_wrapper(
responses.get,
)


class AsyncResponsesResourceWithStreamingResponse:
def __init__(self, responses: AsyncResponsesResource) -> None:
self._responses = responses

self.get = async_to_streamed_response_wrapper(
responses.get,
)
Loading