Skip to content

Commit f70d1c2

Browse files
feat(api): manual updates
1 parent 4efbfee commit f70d1c2

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 42
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-eab9713fd85da68b41e881dfd9cd71f654e8620132da2023bab7dd01e5f7852e.yml
3-
openapi_spec_hash: b5037b26fbe7360c6bfaf9947a65bb85
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-911102f2eaf3be4b34381f6ba089330bed099bb72eb93667ce2f6e72b5934c8c.yml
3+
openapi_spec_hash: 637ad417a580137914441bd790b04cc2
44
config_hash: 70f9408b8d1dfbcf262a20d6eed50e1c

src/resources/files/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class Files extends APIResource {
175175
* @example
176176
* ```ts
177177
* const response = await client.files.upload({
178-
* file: 'https://www.example.com/path/to-image.jpg',
178+
* file: 'file',
179179
* fileName: 'fileName',
180180
* });
181181
* ```

tests/api-resources/files/files.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ describe('resource files', () => {
153153

154154
// Prism tests are disabled
155155
test.skip('upload: only required params', async () => {
156-
const responsePromise = client.files.upload({
157-
file: 'https://www.example.com/path/to-image.jpg',
158-
fileName: 'fileName',
159-
});
156+
const responsePromise = client.files.upload({ file: 'file', fileName: 'fileName' });
160157
const rawResponse = await responsePromise.asResponse();
161158
expect(rawResponse).toBeInstanceOf(Response);
162159
const response = await responsePromise;
@@ -169,7 +166,7 @@ describe('resource files', () => {
169166
// Prism tests are disabled
170167
test.skip('upload: required and optional params', async () => {
171168
const response = await client.files.upload({
172-
file: 'https://www.example.com/path/to-image.jpg',
169+
file: 'file',
173170
fileName: 'fileName',
174171
token: 'token',
175172
checks: '"request.folder" : "marketing/"\n',

0 commit comments

Comments
 (0)