Skip to content

Commit d02b088

Browse files
feat(api): manual updates
1 parent a31ae09 commit d02b088

File tree

8 files changed

+84
-35
lines changed

8 files changed

+84
-35
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 18
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-ebd5e757d0e76cb83013e01a1e0bb3dba62beb83b2a2ffa28d148ea032e96fd0.yml
33
openapi_spec_hash: f930474a6ad230545154244045cc602e
4-
config_hash: 2bf91b867343b1e48759e1b957074d85
4+
config_hash: 2113359488acead9b94556d37765c57e

api.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# Supermemory
22

3-
# Shared
4-
5-
Types:
6-
7-
- <code><a href="./src/resources/shared.ts">And</a></code>
8-
- <code><a href="./src/resources/shared.ts">Or</a></code>
9-
103
# Memories
114

125
Types:

src/client.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,4 @@ export declare namespace Supermemory {
845845
type ConnectionImportParams as ConnectionImportParams,
846846
type ConnectionListDocumentsParams as ConnectionListDocumentsParams,
847847
};
848-
849-
export type And = API.And;
850-
export type Or = API.Or;
851848
}

src/resources/documents.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { APIResource } from '../core/resource';
4-
import * as Shared from './shared';
54
import { APIPromise } from '../core/api-promise';
65
import { type Uploadable } from '../core/uploads';
76
import { buildHeaders } from '../internal/headers';
@@ -415,7 +414,7 @@ export interface DocumentListParams {
415414
/**
416415
* Optional filters to apply to the search. Can be a JSON string or Query object.
417416
*/
418-
filters?: Shared.Or | Shared.And;
417+
filters?: DocumentListParams.Or | DocumentListParams.And;
419418

420419
/**
421420
* Whether to include the content field in the response. Warning: This can make
@@ -444,6 +443,22 @@ export interface DocumentListParams {
444443
sort?: 'createdAt' | 'updatedAt';
445444
}
446445

446+
export namespace DocumentListParams {
447+
/**
448+
* OR
449+
*/
450+
export interface Or {
451+
OR: Array<unknown>;
452+
}
453+
454+
/**
455+
* AND
456+
*/
457+
export interface And {
458+
AND: Array<unknown>;
459+
}
460+
}
461+
447462
export interface DocumentAddParams {
448463
/**
449464
* The content to extract and process into a document. This can be a URL to a

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
export * from './shared';
43
export {
54
Connections,
65
type ConnectionCreateResponse,

src/resources/memories.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { APIResource } from '../core/resource';
4-
import * as Shared from './shared';
54
import { APIPromise } from '../core/api-promise';
65
import { type Uploadable } from '../core/uploads';
76
import { buildHeaders } from '../internal/headers';
@@ -412,7 +411,7 @@ export interface MemoryListParams {
412411
/**
413412
* Optional filters to apply to the search. Can be a JSON string or Query object.
414413
*/
415-
filters?: Shared.Or | Shared.And;
414+
filters?: MemoryListParams.Or | MemoryListParams.And;
416415

417416
/**
418417
* Whether to include the content field in the response. Warning: This can make
@@ -441,6 +440,22 @@ export interface MemoryListParams {
441440
sort?: 'createdAt' | 'updatedAt';
442441
}
443442

443+
export namespace MemoryListParams {
444+
/**
445+
* OR
446+
*/
447+
export interface Or {
448+
OR: Array<unknown>;
449+
}
450+
451+
/**
452+
* AND
453+
*/
454+
export interface And {
455+
AND: Array<unknown>;
456+
}
457+
}
458+
444459
export interface MemoryAddParams {
445460
/**
446461
* The content to extract and process into a document. This can be a URL to a

src/resources/search.ts

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { APIResource } from '../core/resource';
4-
import * as Shared from './shared';
54
import { APIPromise } from '../core/api-promise';
65
import { RequestOptions } from '../internal/request-options';
76

@@ -423,7 +422,7 @@ export interface SearchDocumentsParams {
423422
/**
424423
* Optional filters to apply to the search. Can be a JSON string or Query object.
425424
*/
426-
filters?: Shared.Or | Shared.And;
425+
filters?: SearchDocumentsParams.Or | SearchDocumentsParams.And;
427426

428427
/**
429428
* If true, include full document in the response. This is helpful if you want a
@@ -462,6 +461,22 @@ export interface SearchDocumentsParams {
462461
rewriteQuery?: boolean;
463462
}
464463

464+
export namespace SearchDocumentsParams {
465+
/**
466+
* OR
467+
*/
468+
export interface Or {
469+
OR: Array<unknown>;
470+
}
471+
472+
/**
473+
* AND
474+
*/
475+
export interface And {
476+
AND: Array<unknown>;
477+
}
478+
}
479+
465480
export interface SearchExecuteParams {
466481
/**
467482
* Search query string
@@ -501,7 +516,7 @@ export interface SearchExecuteParams {
501516
/**
502517
* Optional filters to apply to the search. Can be a JSON string or Query object.
503518
*/
504-
filters?: Shared.Or | Shared.And;
519+
filters?: SearchExecuteParams.Or | SearchExecuteParams.And;
505520

506521
/**
507522
* If true, include full document in the response. This is helpful if you want a
@@ -540,6 +555,22 @@ export interface SearchExecuteParams {
540555
rewriteQuery?: boolean;
541556
}
542557

558+
export namespace SearchExecuteParams {
559+
/**
560+
* OR
561+
*/
562+
export interface Or {
563+
OR: Array<unknown>;
564+
}
565+
566+
/**
567+
* AND
568+
*/
569+
export interface And {
570+
AND: Array<unknown>;
571+
}
572+
}
573+
543574
export interface SearchMemoriesParams {
544575
/**
545576
* Search query string
@@ -555,7 +586,7 @@ export interface SearchMemoriesParams {
555586
/**
556587
* Optional filters to apply to the search. Can be a JSON string or Query object.
557588
*/
558-
filters?: Shared.Or | Shared.And;
589+
filters?: SearchMemoriesParams.Or | SearchMemoriesParams.And;
559590

560591
include?: SearchMemoriesParams.Include;
561592

@@ -585,6 +616,20 @@ export interface SearchMemoriesParams {
585616
}
586617

587618
export namespace SearchMemoriesParams {
619+
/**
620+
* OR
621+
*/
622+
export interface Or {
623+
OR: Array<unknown>;
624+
}
625+
626+
/**
627+
* AND
628+
*/
629+
export interface And {
630+
AND: Array<unknown>;
631+
}
632+
588633
export interface Include {
589634
documents?: boolean;
590635

src/resources/shared.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)