Skip to content

Commit 7a4deed

Browse files
feat(api): api update
1 parent 2842144 commit 7a4deed

3 files changed

Lines changed: 17 additions & 12 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-d7845a9c7875d892f8d627e0ef60ac61fb28f2520de5eca2063818fd78af431b.yml
3-
openapi_spec_hash: 1827547045c4ef804428e8feeb66e170
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-45009925f4264a8da8b85b861fdd3652359a5242d90908196b716c0ca81be719.yml
3+
openapi_spec_hash: fdfeb51f600c434336e6aa88aff345df
44
config_hash: cde97ef3188581c5f4924c633ec33ddb

‎src/supermemory/resources/documents.py‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def list_processing(
542542
container_tags: str | Omit = omit,
543543
limit: Union[str, float] | Omit = omit,
544544
page: Union[str, float] | Omit = omit,
545-
view: Literal["active", "all"] | Omit = omit,
545+
view: Literal["active", "pending", "all"] | Omit = omit,
546546
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
547547
# The extra values given here take precedence over values defined on the client or passed to this method.
548548
extra_headers: Headers | None = None,
@@ -553,7 +553,8 @@ def list_processing(
553553
"""Get documents that are currently being processed.
554554
555555
Default `view=active` is the
556-
live in-flight queue. `view=all` also includes failed and stuck documents.
556+
live in-flight queue. `view=pending` is every unfinished document with no time
557+
cutoff. `view=all` also includes failed documents, paginated.
557558
558559
Args:
559560
container_tags: Comma-separated container tags to filter by
@@ -562,8 +563,9 @@ def list_processing(
562563
563564
page: Page number to fetch. Used with `view=all`.
564565
565-
view: `active` returns in-flight documents updated in the last 4 hours. `all` also
566-
includes failed and stuck documents.
566+
view: `active` returns in-flight documents updated in the last 4 hours. `pending`
567+
returns every document that is not done or failed, with no time cutoff. `all`
568+
also includes failed documents, paginated.
567569
568570
extra_headers: Send extra headers
569571
@@ -1209,7 +1211,7 @@ async def list_processing(
12091211
container_tags: str | Omit = omit,
12101212
limit: Union[str, float] | Omit = omit,
12111213
page: Union[str, float] | Omit = omit,
1212-
view: Literal["active", "all"] | Omit = omit,
1214+
view: Literal["active", "pending", "all"] | Omit = omit,
12131215
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
12141216
# The extra values given here take precedence over values defined on the client or passed to this method.
12151217
extra_headers: Headers | None = None,
@@ -1220,7 +1222,8 @@ async def list_processing(
12201222
"""Get documents that are currently being processed.
12211223
12221224
Default `view=active` is the
1223-
live in-flight queue. `view=all` also includes failed and stuck documents.
1225+
live in-flight queue. `view=pending` is every unfinished document with no time
1226+
cutoff. `view=all` also includes failed documents, paginated.
12241227
12251228
Args:
12261229
container_tags: Comma-separated container tags to filter by
@@ -1229,8 +1232,9 @@ async def list_processing(
12291232
12301233
page: Page number to fetch. Used with `view=all`.
12311234
1232-
view: `active` returns in-flight documents updated in the last 4 hours. `all` also
1233-
includes failed and stuck documents.
1235+
view: `active` returns in-flight documents updated in the last 4 hours. `pending`
1236+
returns every document that is not done or failed, with no time cutoff. `all`
1237+
also includes failed documents, paginated.
12341238
12351239
extra_headers: Send extra headers
12361240

‎src/supermemory/types/document_list_processing_params.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ class DocumentListProcessingParams(TypedDict, total=False):
2020
page: Union[str, float]
2121
"""Page number to fetch. Used with `view=all`."""
2222

23-
view: Literal["active", "all"]
23+
view: Literal["active", "pending", "all"]
2424
"""`active` returns in-flight documents updated in the last 4 hours.
2525
26-
`all` also includes failed and stuck documents.
26+
`pending` returns every document that is not done or failed, with no time
27+
cutoff. `all` also includes failed documents, paginated.
2728
"""

0 commit comments

Comments
 (0)