Skip to content

Commit b2b2312

Browse files
feat(api): api update
1 parent a62c8a4 commit b2b2312

3 files changed

Lines changed: 16 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: 40
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-e2ba5381de3010ee53f27388aa6727ad567eb18e4b0b4eb1c4c66402bfea64cc.yml
3-
openapi_spec_hash: 141bfa8430ddccfb5a37c4bd703d163b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-a0dda03bbb600917cfb9add468cc4c8c84351a8dbbf61644dbc353263ca1748f.yml
3+
openapi_spec_hash: c24264f32a46d9317aac5af9d6a396f7
44
config_hash: 920678668dd2da6f8966fbf1b8fde4e2

‎src/context/dev/resources/people.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def enrich(
6363
) -> PersonEnrichResponse:
6464
"""
6565
Finds and normalizes the best available person candidate from additive identity
66-
clues, then assigns an identity match score from 0 to 100. Available on Pro and
67-
Scale plans. Successful requests cost 20 credits. Disposable and free email
68-
addresses (like gmail.com, yahoo.com) will throw a 422 error.
66+
clues, then assigns an identity match score from 0 to 100. Available on all paid
67+
plans. Successful requests cost 20 credits. Disposable and free email addresses
68+
(like gmail.com, yahoo.com) will throw a 422 error.
6969
7070
Args:
7171
tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
@@ -144,9 +144,9 @@ async def enrich(
144144
) -> PersonEnrichResponse:
145145
"""
146146
Finds and normalizes the best available person candidate from additive identity
147-
clues, then assigns an identity match score from 0 to 100. Available on Pro and
148-
Scale plans. Successful requests cost 20 credits. Disposable and free email
149-
addresses (like gmail.com, yahoo.com) will throw a 422 error.
147+
clues, then assigns an identity match score from 0 to 100. Available on all paid
148+
plans. Successful requests cost 20 credits. Disposable and free email addresses
149+
(like gmail.com, yahoo.com) will throw a 422 error.
150150
151151
Args:
152152
tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.

‎src/context/dev/types/crawl_controls.py‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,28 @@
55

66
from .._models import BaseModel
77

8-
__all__ = ["CrawlControls", "Source", "SourceUnionMember0", "SourceUnionMember1"]
8+
__all__ = ["CrawlControls", "Source", "SourceStartURL", "SourceSitemap"]
99

1010

11-
class SourceUnionMember0(BaseModel):
11+
class SourceStartURL(BaseModel):
12+
"""The crawl discovered pages by following links from one URL."""
13+
1214
type: Literal["start_url"]
1315

1416
url: str
1517
"""Page the crawl started from."""
1618

1719

18-
class SourceUnionMember1(BaseModel):
20+
class SourceSitemap(BaseModel):
21+
"""The crawl scraped the pages listed in the domain's sitemap."""
22+
1923
domain: str
2024
"""Domain whose sitemap supplied the pages."""
2125

2226
type: Literal["sitemap"]
2327

2428

25-
Source: TypeAlias = Union[SourceUnionMember0, SourceUnionMember1]
29+
Source: TypeAlias = Union[SourceStartURL, SourceSitemap]
2630

2731

2832
class CrawlControls(BaseModel):

0 commit comments

Comments
 (0)