Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 10
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-7632a025f14cf4ef9630966e00cb47fd93e8b43f1e9111f3917eb5adf145f0dd.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-ba6c4db7ea12bd505fe5cfe650ef7372c17dbe083875afea40d5de959dbba9e1.yml
5 changes: 2 additions & 3 deletions src/resources/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,9 @@ export interface DocumentAddURLParams {
collection: string;

/**
* Source URL of the document. If text is not provided and URL is publicly
* accessible, Hyperspell will retrieve the document from this URL.
* Source URL of the document.
*/
url?: string | null;
url: string;
}

export interface DocumentUploadParams {
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/documents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('resource documents', () => {
});

test('addURL: only required params', async () => {
const responsePromise = client.documents.addURL({ collection: 'collection' });
const responsePromise = client.documents.addURL({ collection: 'collection', url: 'url' });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
Expand Down