@@ -41,7 +41,7 @@ func TestUserAgentHeader(t *testing.T) {
4141 },
4242 }),
4343 )
44- client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
44+ client .Files .Upload (context .Background (), imagekit.FileUploadParams {
4545 File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
4646 FileName : "file-name.jpg" ,
4747 })
@@ -69,7 +69,7 @@ func TestRetryAfter(t *testing.T) {
6969 },
7070 }),
7171 )
72- _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
72+ _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParams {
7373 File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
7474 FileName : "file-name.jpg" ,
7575 })
@@ -108,7 +108,7 @@ func TestDeleteRetryCountHeader(t *testing.T) {
108108 }),
109109 option .WithHeaderDel ("X-Stainless-Retry-Count" ),
110110 )
111- _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
111+ _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParams {
112112 File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
113113 FileName : "file-name.jpg" ,
114114 })
@@ -142,7 +142,7 @@ func TestOverwriteRetryCountHeader(t *testing.T) {
142142 }),
143143 option .WithHeader ("X-Stainless-Retry-Count" , "42" ),
144144 )
145- _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
145+ _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParams {
146146 File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
147147 FileName : "file-name.jpg" ,
148148 })
@@ -175,7 +175,7 @@ func TestRetryAfterMs(t *testing.T) {
175175 },
176176 }),
177177 )
178- _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
178+ _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParams {
179179 File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
180180 FileName : "file-name.jpg" ,
181181 })
@@ -202,7 +202,7 @@ func TestContextCancel(t *testing.T) {
202202 )
203203 cancelCtx , cancel := context .WithCancel (context .Background ())
204204 cancel ()
205- _ , err := client .Files .Upload (cancelCtx , imagekit.FileUploadParamsFileUploadV1 {
205+ _ , err := client .Files .Upload (cancelCtx , imagekit.FileUploadParams {
206206 File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
207207 FileName : "file-name.jpg" ,
208208 })
@@ -226,7 +226,7 @@ func TestContextCancelDelay(t *testing.T) {
226226 )
227227 cancelCtx , cancel := context .WithTimeout (context .Background (), 2 * time .Millisecond )
228228 defer cancel ()
229- _ , err := client .Files .Upload (cancelCtx , imagekit.FileUploadParamsFileUploadV1 {
229+ _ , err := client .Files .Upload (cancelCtx , imagekit.FileUploadParams {
230230 File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
231231 FileName : "file-name.jpg" ,
232232 })
@@ -256,7 +256,7 @@ func TestContextDeadline(t *testing.T) {
256256 },
257257 }),
258258 )
259- _ , err := client .Files .Upload (deadlineCtx , imagekit.FileUploadParamsFileUploadV1 {
259+ _ , err := client .Files .Upload (deadlineCtx , imagekit.FileUploadParams {
260260 File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
261261 FileName : "file-name.jpg" ,
262262 })
0 commit comments