Skip to content

Commit 683d8f0

Browse files
authored
release: 5.0.0rc3 (v5 cleanup stack + connector fields) (#90)
rc2 merged last night before this morning's mono stack landed, and today's two regenerations were pushed to that branch after the merge, so PyPI rc2 predates the current API. This is main plus those two commits plus the bump. - `include` replaces `attach` as a typed list on GETs and an object on search - search and write options live in the body; `moveTo` is a query param - `namespaces.list` returns `{namespaces, pagination}` - deletes return `count` / `status` - new `memories.get` - connectors: `authorization: ConnectorLink`, `system.status`, `latest_run` (mono#3413) Spec matches production byte for byte. 39 tests, ruff, mypy pass; 39/39 steps against production with the built wheel.
2 parents ceb4dc1 + 17dc499 commit 683d8f0

131 files changed

Lines changed: 5500 additions & 1978 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MIGRATION.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Only the API methods change. Everything around them works as before:
5656
| `custom_id` | `id` |
5757
| `q` | `query` |
5858
| `filters` | `filter` (typed filter expression) |
59-
| `include` | `attach` |
59+
| `include` | `include` (a list on GETs, a dict on search) |
6060
| search `timing` / `total` | `search_time` |
6161

6262
## Profile no longer searches

‎fern/openapi.json‎

Lines changed: 1967 additions & 947 deletions
Large diffs are not rendered by default.

‎fern/overlay.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ actions:
2121
# memories
2222
- { target: '$.paths["/ns/{namespace}/memories"].delete', update: { x-fern-sdk-group-name: memories, x-fern-sdk-method-name: forget } }
2323
- { target: '$.paths["/ns/{namespace}/memories/semantic"].delete', update: { x-fern-sdk-group-name: memories, x-fern-sdk-method-name: forget_matching } }
24+
- { target: '$.paths["/ns/{namespace}/memories/{id}"].get', update: { x-fern-sdk-group-name: memories, x-fern-sdk-method-name: get } }
2425
# profiles
2526
- { target: '$.paths["/ns/{namespace}/profile/buckets"].get', update: { x-fern-sdk-group-name: profiles, x-fern-sdk-method-name: get_buckets } }
2627
- { target: '$.paths["/ns/{namespace}/profile/buckets"].put', update: { x-fern-sdk-group-name: profiles, x-fern-sdk-method-name: set_buckets } }

‎fern/schemas.yaml‎

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,15 @@
1515
# bodies stay inline because their fields become keyword arguments.
1616

1717
# --- enums
18-
TaskType: POST /ns/{namespace}/document param:taskType
19-
DreamingMode: POST /ns/{namespace}/document param:dreaming
20-
FileType: POST /ns/{namespace}/document/file param:fileType
21-
SearchMode: POST /ns/{namespace}/search param:searchMode
18+
TaskType: POST /ns/{namespace}/document body.taskType
19+
DreamingMode: POST /ns/{namespace}/document body.dreaming
20+
FileType: POST /ns/{namespace}/document/file body.fileType
21+
SearchMode: POST /ns/{namespace}/search body.searchMode
2222
ListType: POST /ns/{namespace}/list/{type} param:type
2323
ListSort: POST /ns/{namespace}/list/{type} param:sort
2424
SortOrder: POST /ns/{namespace}/list/{type} param:order
2525
MemoryRelation: POST /ns/{namespace}/search 200.results[].included.related.parents[].relation
2626
ConnectorProvider: GET /connectors param:provider
27-
ConnectorStatus: GET /ns/{namespace}/connectors/{id} 200.status
28-
ConnectorSyncStatus: GET /ns/{namespace}/connectors/{id} 200.lastSync?.status
29-
ConnectorErrorCode: GET /ns/{namespace}/connectors/{id} 200.lastSync?.errorCode?
3027
ConnectorSyncTrigger: GET /ns/{namespace}/connectors/{id} 200.syncs[].trigger
3128

3229
# --- filters
@@ -46,13 +43,17 @@ BatchAddResult: POST /ns/{namespace}/document/batch 200
4643
BatchAddItemResult: POST /ns/{namespace}/document/batch 200.results[]
4744
DeleteDocumentsResult: DELETE /ns/{namespace}/document 200
4845
DeleteDocumentError: DELETE /ns/{namespace}/document 200.errors[]
49-
DocumentAttachment: GET /ns/{namespace}/document/{id} param:attach[]
50-
FileUploadResult: POST /ns/{namespace}/document/file 200
46+
DocumentInclude: GET /ns/{namespace}/document/{id} param:include[]
47+
SearchInclude: POST /ns/{namespace}/search body.include
48+
MemoryInclude: GET /ns/{namespace}/memories/{id} param:include[]
49+
ConnectorInclude: GET /ns/{namespace}/connectors/{id} param:include[]
5150
Document: GET /ns/{namespace}/document/{id} 200
5251
DocumentSystem: GET /ns/{namespace}/document/{id} 200.system
5352
Chunk: GET /ns/{namespace}/document/{id} 200.chunks[]
5453
ChunkSystem: GET /ns/{namespace}/document/{id} 200.chunks[].system
5554
Memory: GET /ns/{namespace}/document/{id} 200.memories[]
55+
MemoryIncluded: GET /ns/{namespace}/memories/{id} 200.included
56+
MemoryDetails: GET /ns/{namespace}/memories/{id} 200
5657
MemorySystem: GET /ns/{namespace}/document/{id} 200.memories[].system
5758

5859
# --- list
@@ -77,12 +78,16 @@ ForgetError: DELETE /ns/{namespace}/memories 200.errors[]
7778
ForgetMatch: DELETE /ns/{namespace}/memories 200.matches[]
7879

7980
# --- connectors
81+
ConnectorStatus: GET /ns/{namespace}/connectors/{id} 200.system.status
82+
ConnectorRunStatus: GET /ns/{namespace}/connectors/{id} 200.latestRun?.system.status
83+
ConnectorErrorCode: GET /ns/{namespace}/connectors/{id} 200.latestRun?.errorCode?
84+
ConnectorRun: GET /ns/{namespace}/connectors/{id} 200.latestRun?
85+
ConnectorSystem: GET /ns/{namespace}/connectors/{id} 200.system
8086
Connector: GET /ns/{namespace}/connectors/{id} 200
8187
ConnectorList: GET /connectors 200
8288
ConnectorCapabilities: GET /ns/{namespace}/connectors/{id} 200.capabilities
83-
ConnectorPicker: GET /ns/{namespace}/connectors/{id} 200.picker?
89+
ConnectorLink: GET /ns/{namespace}/connectors/{id} 200.picker? # same {url, expiresAt} shape as authorization
8490
ConnectorSelectionItem: GET /ns/{namespace}/connectors/{id} 200.selection?{}[]
85-
ConnectorLastSync: GET /ns/{namespace}/connectors/{id} 200.lastSync?
8691
ConnectorSync: GET /ns/{namespace}/connectors/{id} 200.syncs[]
8792
ConnectorSyncFailure: GET /ns/{namespace}/connectors/{id} 200.syncs[].failures[]
8893
ConnectorSelection: PATCH /ns/{namespace}/connectors/{id} body.selection
@@ -96,8 +101,9 @@ ConnectorSyncStarted: POST /ns/{namespace}/connectors/{id}/sync 202
96101
ConnectorDeleted: DELETE /ns/{namespace}/connectors/{id} 200
97102

98103
# --- namespaces and organization
99-
Namespace: GET /ns 200[]
100-
NamespaceSystem: GET /ns 200[].system
104+
NamespaceList: GET /ns 200
105+
Namespace: GET /ns 200.namespaces[]
106+
NamespaceSystem: GET /ns 200.namespaces[].system
101107
NamespaceDetails: GET /ns/{namespace} 200
102108
NamespaceDeleted: DELETE /ns/{namespace} 200
103109
Organization: GET /organization 200

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "supermemory"
3-
version = "5.0.0rc2"
3+
version = "5.0.0rc3"
44
description = "The official Python library for the Supermemory API"
55
readme = "README.md"
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)