Skip to content

Commit ff43c4b

Browse files
fix(types): add missing types to method arguments
1 parent d35fa67 commit ff43c4b

File tree

6 files changed

+518
-38
lines changed

6 files changed

+518
-38
lines changed

src/cloudflare/resources/ai/ai.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,12 +953,16 @@ def run(
953953
presence_penalty: float | NotGiven = NOT_GIVEN,
954954
raw: bool | NotGiven = NOT_GIVEN,
955955
repetition_penalty: float | NotGiven = NOT_GIVEN,
956-
response_format: ai_run_params.PromptResponseFormat | NotGiven = NOT_GIVEN,
956+
response_format: ai_run_params.PromptResponseFormat
957+
| ai_run_params.MessagesResponseFormat
958+
| NotGiven = NOT_GIVEN,
957959
stream: bool | NotGiven = NOT_GIVEN,
958960
temperature: float | NotGiven = NOT_GIVEN,
959961
top_k: int | float | NotGiven = NOT_GIVEN,
960962
top_p: float | NotGiven = NOT_GIVEN,
961-
messages: Iterable[ai_run_params.MessagesMessage] | NotGiven = NOT_GIVEN,
963+
messages: Iterable[ai_run_params.MessagesMessage]
964+
| Iterable[ai_run_params.Variant13Message]
965+
| NotGiven = NOT_GIVEN,
962966
functions: Iterable[ai_run_params.MessagesFunction] | NotGiven = NOT_GIVEN,
963967
tools: Iterable[ai_run_params.MessagesTool] | NotGiven = NOT_GIVEN,
964968
input_text: str | NotGiven = NOT_GIVEN,
@@ -1927,12 +1931,16 @@ async def run(
19271931
presence_penalty: float | NotGiven = NOT_GIVEN,
19281932
raw: bool | NotGiven = NOT_GIVEN,
19291933
repetition_penalty: float | NotGiven = NOT_GIVEN,
1930-
response_format: ai_run_params.PromptResponseFormat | NotGiven = NOT_GIVEN,
1934+
response_format: ai_run_params.PromptResponseFormat
1935+
| ai_run_params.MessagesResponseFormat
1936+
| NotGiven = NOT_GIVEN,
19311937
stream: bool | NotGiven = NOT_GIVEN,
19321938
temperature: float | NotGiven = NOT_GIVEN,
19331939
top_k: int | float | NotGiven = NOT_GIVEN,
19341940
top_p: float | NotGiven = NOT_GIVEN,
1935-
messages: Iterable[ai_run_params.MessagesMessage] | NotGiven = NOT_GIVEN,
1941+
messages: Iterable[ai_run_params.MessagesMessage]
1942+
| Iterable[ai_run_params.Variant13Message]
1943+
| NotGiven = NOT_GIVEN,
19361944
functions: Iterable[ai_run_params.MessagesFunction] | NotGiven = NOT_GIVEN,
19371945
tools: Iterable[ai_run_params.MessagesTool] | NotGiven = NOT_GIVEN,
19381946
input_text: str | NotGiven = NOT_GIVEN,

src/cloudflare/resources/dns/records.py

Lines changed: 138 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,10 +1428,29 @@ def create(
14281428
| Literal["TLSA"]
14291429
| Literal["URI"],
14301430
comment: str | NotGiven = NOT_GIVEN,
1431-
content: str | str | str | str | NotGiven = NOT_GIVEN,
1431+
content: str | NotGiven = NOT_GIVEN,
14321432
proxied: bool | NotGiven = NOT_GIVEN,
14331433
settings: record_create_params.ARecordSettings
1434+
| record_create_params.AAAARecordSettings
14341435
| record_create_params.CNAMERecordSettings
1436+
| record_create_params.MXRecordSettings
1437+
| record_create_params.NSRecordSettings
1438+
| record_create_params.DNSRecordsOpenpgpkeyRecordSettings
1439+
| record_create_params.PTRRecordSettings
1440+
| record_create_params.TXTRecordSettings
1441+
| record_create_params.CAARecordSettings
1442+
| record_create_params.CERTRecordSettings
1443+
| record_create_params.DNSKEYRecordSettings
1444+
| record_create_params.DSRecordSettings
1445+
| record_create_params.HTTPSRecordSettings
1446+
| record_create_params.LOCRecordSettings
1447+
| record_create_params.NAPTRRecordSettings
1448+
| record_create_params.SMIMEARecordSettings
1449+
| record_create_params.SRVRecordSettings
1450+
| record_create_params.SSHFPRecordSettings
1451+
| record_create_params.SVCBRecordSettings
1452+
| record_create_params.TLSARecordSettings
1453+
| record_create_params.URIRecordSettings
14351454
| NotGiven = NOT_GIVEN,
14361455
tags: SequenceNotStr[RecordTags] | NotGiven = NOT_GIVEN,
14371456
priority: float | NotGiven = NOT_GIVEN,
@@ -1445,6 +1464,8 @@ def create(
14451464
| record_create_params.SMIMEARecordData
14461465
| record_create_params.SRVRecordData
14471466
| record_create_params.SSHFPRecordData
1467+
| record_create_params.SVCBRecordData
1468+
| record_create_params.TLSARecordData
14481469
| record_create_params.URIRecordData
14491470
| NotGiven = NOT_GIVEN,
14501471
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2917,10 +2938,29 @@ def update(
29172938
| Literal["TLSA"]
29182939
| Literal["URI"],
29192940
comment: str | NotGiven = NOT_GIVEN,
2920-
content: str | str | str | str | NotGiven = NOT_GIVEN,
2941+
content: str | NotGiven = NOT_GIVEN,
29212942
proxied: bool | NotGiven = NOT_GIVEN,
29222943
settings: record_update_params.ARecordSettings
2944+
| record_update_params.AAAARecordSettings
29232945
| record_update_params.CNAMERecordSettings
2946+
| record_update_params.MXRecordSettings
2947+
| record_update_params.NSRecordSettings
2948+
| record_update_params.DNSRecordsOpenpgpkeyRecordSettings
2949+
| record_update_params.PTRRecordSettings
2950+
| record_update_params.TXTRecordSettings
2951+
| record_update_params.CAARecordSettings
2952+
| record_update_params.CERTRecordSettings
2953+
| record_update_params.DNSKEYRecordSettings
2954+
| record_update_params.DSRecordSettings
2955+
| record_update_params.HTTPSRecordSettings
2956+
| record_update_params.LOCRecordSettings
2957+
| record_update_params.NAPTRRecordSettings
2958+
| record_update_params.SMIMEARecordSettings
2959+
| record_update_params.SRVRecordSettings
2960+
| record_update_params.SSHFPRecordSettings
2961+
| record_update_params.SVCBRecordSettings
2962+
| record_update_params.TLSARecordSettings
2963+
| record_update_params.URIRecordSettings
29242964
| NotGiven = NOT_GIVEN,
29252965
tags: SequenceNotStr[RecordTags] | NotGiven = NOT_GIVEN,
29262966
priority: float | NotGiven = NOT_GIVEN,
@@ -2934,6 +2974,8 @@ def update(
29342974
| record_update_params.SMIMEARecordData
29352975
| record_update_params.SRVRecordData
29362976
| record_update_params.SSHFPRecordData
2977+
| record_update_params.SVCBRecordData
2978+
| record_update_params.TLSARecordData
29372979
| record_update_params.URIRecordData
29382980
| NotGiven = NOT_GIVEN,
29392981
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -4642,9 +4684,30 @@ def edit(
46424684
| Literal["TLSA"]
46434685
| Literal["URI"],
46444686
comment: str | NotGiven = NOT_GIVEN,
4645-
content: str | str | str | str | NotGiven = NOT_GIVEN,
4687+
content: str | NotGiven = NOT_GIVEN,
46464688
proxied: bool | NotGiven = NOT_GIVEN,
4647-
settings: record_edit_params.ARecordSettings | record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN,
4689+
settings: record_edit_params.ARecordSettings
4690+
| record_edit_params.AAAARecordSettings
4691+
| record_edit_params.CNAMERecordSettings
4692+
| record_edit_params.MXRecordSettings
4693+
| record_edit_params.NSRecordSettings
4694+
| record_edit_params.DNSRecordsOpenpgpkeyRecordSettings
4695+
| record_edit_params.PTRRecordSettings
4696+
| record_edit_params.TXTRecordSettings
4697+
| record_edit_params.CAARecordSettings
4698+
| record_edit_params.CERTRecordSettings
4699+
| record_edit_params.DNSKEYRecordSettings
4700+
| record_edit_params.DSRecordSettings
4701+
| record_edit_params.HTTPSRecordSettings
4702+
| record_edit_params.LOCRecordSettings
4703+
| record_edit_params.NAPTRRecordSettings
4704+
| record_edit_params.SMIMEARecordSettings
4705+
| record_edit_params.SRVRecordSettings
4706+
| record_edit_params.SSHFPRecordSettings
4707+
| record_edit_params.SVCBRecordSettings
4708+
| record_edit_params.TLSARecordSettings
4709+
| record_edit_params.URIRecordSettings
4710+
| NotGiven = NOT_GIVEN,
46484711
tags: SequenceNotStr[RecordTags] | NotGiven = NOT_GIVEN,
46494712
priority: float | NotGiven = NOT_GIVEN,
46504713
data: record_edit_params.CAARecordData
@@ -4657,6 +4720,8 @@ def edit(
46574720
| record_edit_params.SMIMEARecordData
46584721
| record_edit_params.SRVRecordData
46594722
| record_edit_params.SSHFPRecordData
4723+
| record_edit_params.SVCBRecordData
4724+
| record_edit_params.TLSARecordData
46604725
| record_edit_params.URIRecordData
46614726
| NotGiven = NOT_GIVEN,
46624727
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -6290,10 +6355,29 @@ async def create(
62906355
| Literal["TLSA"]
62916356
| Literal["URI"],
62926357
comment: str | NotGiven = NOT_GIVEN,
6293-
content: str | str | str | str | NotGiven = NOT_GIVEN,
6358+
content: str | NotGiven = NOT_GIVEN,
62946359
proxied: bool | NotGiven = NOT_GIVEN,
62956360
settings: record_create_params.ARecordSettings
6361+
| record_create_params.AAAARecordSettings
62966362
| record_create_params.CNAMERecordSettings
6363+
| record_create_params.MXRecordSettings
6364+
| record_create_params.NSRecordSettings
6365+
| record_create_params.DNSRecordsOpenpgpkeyRecordSettings
6366+
| record_create_params.PTRRecordSettings
6367+
| record_create_params.TXTRecordSettings
6368+
| record_create_params.CAARecordSettings
6369+
| record_create_params.CERTRecordSettings
6370+
| record_create_params.DNSKEYRecordSettings
6371+
| record_create_params.DSRecordSettings
6372+
| record_create_params.HTTPSRecordSettings
6373+
| record_create_params.LOCRecordSettings
6374+
| record_create_params.NAPTRRecordSettings
6375+
| record_create_params.SMIMEARecordSettings
6376+
| record_create_params.SRVRecordSettings
6377+
| record_create_params.SSHFPRecordSettings
6378+
| record_create_params.SVCBRecordSettings
6379+
| record_create_params.TLSARecordSettings
6380+
| record_create_params.URIRecordSettings
62976381
| NotGiven = NOT_GIVEN,
62986382
tags: SequenceNotStr[RecordTags] | NotGiven = NOT_GIVEN,
62996383
priority: float | NotGiven = NOT_GIVEN,
@@ -6307,6 +6391,8 @@ async def create(
63076391
| record_create_params.SMIMEARecordData
63086392
| record_create_params.SRVRecordData
63096393
| record_create_params.SSHFPRecordData
6394+
| record_create_params.SVCBRecordData
6395+
| record_create_params.TLSARecordData
63106396
| record_create_params.URIRecordData
63116397
| NotGiven = NOT_GIVEN,
63126398
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -7779,10 +7865,29 @@ async def update(
77797865
| Literal["TLSA"]
77807866
| Literal["URI"],
77817867
comment: str | NotGiven = NOT_GIVEN,
7782-
content: str | str | str | str | NotGiven = NOT_GIVEN,
7868+
content: str | NotGiven = NOT_GIVEN,
77837869
proxied: bool | NotGiven = NOT_GIVEN,
77847870
settings: record_update_params.ARecordSettings
7871+
| record_update_params.AAAARecordSettings
77857872
| record_update_params.CNAMERecordSettings
7873+
| record_update_params.MXRecordSettings
7874+
| record_update_params.NSRecordSettings
7875+
| record_update_params.DNSRecordsOpenpgpkeyRecordSettings
7876+
| record_update_params.PTRRecordSettings
7877+
| record_update_params.TXTRecordSettings
7878+
| record_update_params.CAARecordSettings
7879+
| record_update_params.CERTRecordSettings
7880+
| record_update_params.DNSKEYRecordSettings
7881+
| record_update_params.DSRecordSettings
7882+
| record_update_params.HTTPSRecordSettings
7883+
| record_update_params.LOCRecordSettings
7884+
| record_update_params.NAPTRRecordSettings
7885+
| record_update_params.SMIMEARecordSettings
7886+
| record_update_params.SRVRecordSettings
7887+
| record_update_params.SSHFPRecordSettings
7888+
| record_update_params.SVCBRecordSettings
7889+
| record_update_params.TLSARecordSettings
7890+
| record_update_params.URIRecordSettings
77867891
| NotGiven = NOT_GIVEN,
77877892
tags: SequenceNotStr[RecordTags] | NotGiven = NOT_GIVEN,
77887893
priority: float | NotGiven = NOT_GIVEN,
@@ -7796,6 +7901,8 @@ async def update(
77967901
| record_update_params.SMIMEARecordData
77977902
| record_update_params.SRVRecordData
77987903
| record_update_params.SSHFPRecordData
7904+
| record_update_params.SVCBRecordData
7905+
| record_update_params.TLSARecordData
77997906
| record_update_params.URIRecordData
78007907
| NotGiven = NOT_GIVEN,
78017908
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -9504,9 +9611,30 @@ async def edit(
95049611
| Literal["TLSA"]
95059612
| Literal["URI"],
95069613
comment: str | NotGiven = NOT_GIVEN,
9507-
content: str | str | str | str | NotGiven = NOT_GIVEN,
9614+
content: str | NotGiven = NOT_GIVEN,
95089615
proxied: bool | NotGiven = NOT_GIVEN,
9509-
settings: record_edit_params.ARecordSettings | record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN,
9616+
settings: record_edit_params.ARecordSettings
9617+
| record_edit_params.AAAARecordSettings
9618+
| record_edit_params.CNAMERecordSettings
9619+
| record_edit_params.MXRecordSettings
9620+
| record_edit_params.NSRecordSettings
9621+
| record_edit_params.DNSRecordsOpenpgpkeyRecordSettings
9622+
| record_edit_params.PTRRecordSettings
9623+
| record_edit_params.TXTRecordSettings
9624+
| record_edit_params.CAARecordSettings
9625+
| record_edit_params.CERTRecordSettings
9626+
| record_edit_params.DNSKEYRecordSettings
9627+
| record_edit_params.DSRecordSettings
9628+
| record_edit_params.HTTPSRecordSettings
9629+
| record_edit_params.LOCRecordSettings
9630+
| record_edit_params.NAPTRRecordSettings
9631+
| record_edit_params.SMIMEARecordSettings
9632+
| record_edit_params.SRVRecordSettings
9633+
| record_edit_params.SSHFPRecordSettings
9634+
| record_edit_params.SVCBRecordSettings
9635+
| record_edit_params.TLSARecordSettings
9636+
| record_edit_params.URIRecordSettings
9637+
| NotGiven = NOT_GIVEN,
95109638
tags: SequenceNotStr[RecordTags] | NotGiven = NOT_GIVEN,
95119639
priority: float | NotGiven = NOT_GIVEN,
95129640
data: record_edit_params.CAARecordData
@@ -9519,6 +9647,8 @@ async def edit(
95199647
| record_edit_params.SMIMEARecordData
95209648
| record_edit_params.SRVRecordData
95219649
| record_edit_params.SSHFPRecordData
9650+
| record_edit_params.SVCBRecordData
9651+
| record_edit_params.TLSARecordData
95229652
| record_edit_params.URIRecordData
95239653
| NotGiven = NOT_GIVEN,
95249654
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/cloudflare/resources/r2/buckets/sippy.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ def update(
132132
bucket_name: str,
133133
*,
134134
account_id: str,
135-
destination: sippy_update_params.R2EnableSippyAwsDestination | NotGiven = NOT_GIVEN,
135+
destination: sippy_update_params.R2EnableSippyAwsDestination
136+
| sippy_update_params.R2EnableSippyGcsDestination
137+
| NotGiven = NOT_GIVEN,
136138
source: sippy_update_params.R2EnableSippyAwsSource
137139
| sippy_update_params.R2EnableSippyGcsSource
138140
| NotGiven = NOT_GIVEN,
@@ -380,7 +382,9 @@ async def update(
380382
bucket_name: str,
381383
*,
382384
account_id: str,
383-
destination: sippy_update_params.R2EnableSippyAwsDestination | NotGiven = NOT_GIVEN,
385+
destination: sippy_update_params.R2EnableSippyAwsDestination
386+
| sippy_update_params.R2EnableSippyGcsDestination
387+
| NotGiven = NOT_GIVEN,
384388
source: sippy_update_params.R2EnableSippyAwsSource
385389
| sippy_update_params.R2EnableSippyGcsSource
386390
| NotGiven = NOT_GIVEN,

src/cloudflare/resources/r2/super_slurper/connectivity_precheck.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def source(
146146
endpoint: Optional[str] | NotGiven = NOT_GIVEN,
147147
secret: connectivity_precheck_source_params.R2SlurperS3SourceSchemaSecret
148148
| connectivity_precheck_source_params.R2SlurperGcsSourceSchemaSecret
149+
| connectivity_precheck_source_params.R2SlurperR2SourceSchemaSecret
149150
| NotGiven = NOT_GIVEN,
150151
vendor: Literal["s3"] | Literal["gcs"] | Provider | NotGiven = NOT_GIVEN,
151152
jurisdiction: Literal["default", "eu", "fedramp"] | NotGiven = NOT_GIVEN,
@@ -353,6 +354,7 @@ async def source(
353354
endpoint: Optional[str] | NotGiven = NOT_GIVEN,
354355
secret: connectivity_precheck_source_params.R2SlurperS3SourceSchemaSecret
355356
| connectivity_precheck_source_params.R2SlurperGcsSourceSchemaSecret
357+
| connectivity_precheck_source_params.R2SlurperR2SourceSchemaSecret
356358
| NotGiven = NOT_GIVEN,
357359
vendor: Literal["s3"] | Literal["gcs"] | Provider | NotGiven = NOT_GIVEN,
358360
jurisdiction: Literal["default", "eu", "fedramp"] | NotGiven = NOT_GIVEN,

0 commit comments

Comments
 (0)