Skip to content

Commit 94fa1f1

Browse files
feat(api): api update
1 parent 2fcfc26 commit 94fa1f1

11 files changed

Lines changed: 54 additions & 23 deletions

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 32
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-65d8d9d461368f72da68cd7606e0498cde07b586235769d8e3e04b7a3c42858d.yml
3-
openapi_spec_hash: 048da2b1bfe8095b6c2e805c515e20e2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-48449a9e476c712dc65557934c8b97ac9708b06b7f96fa5c22d135037eeb9ce5.yml
3+
openapi_spec_hash: 6a0575b3dc2ea3e5d47c4961f0251213
44
config_hash: 70e7e80b5e87f94981bee396c6cd41e8

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def create(
106106
described by `target` and `change_detection`.
107107
108108
tags: User-defined tags for grouping and filtering monitors and their changes.
109+
Duplicates are removed.
109110
110111
extra_headers: Send extra headers
111112
@@ -200,6 +201,7 @@ def update(
200201
between 10 minutes and 1 year.
201202
202203
tags: User-defined tags for grouping and filtering monitors and their changes.
204+
Duplicates are removed.
203205
204206
target: Discriminated union describing what the monitor watches.
205207
@@ -780,6 +782,7 @@ async def create(
780782
described by `target` and `change_detection`.
781783
782784
tags: User-defined tags for grouping and filtering monitors and their changes.
785+
Duplicates are removed.
783786
784787
extra_headers: Send extra headers
785788
@@ -874,6 +877,7 @@ async def update(
874877
between 10 minutes and 1 year.
875878
876879
tags: User-defined tags for grouping and filtering monitors and their changes.
880+
Duplicates are removed.
877881
878882
target: Discriminated union describing what the monitor watches.
879883

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ class MonitorCreateParams(TypedDict, total=False):
4545
"""
4646

4747
tags: SequenceNotStr[str]
48-
"""User-defined tags for grouping and filtering monitors and their changes."""
48+
"""User-defined tags for grouping and filtering monitors and their changes.
49+
50+
Duplicates are removed.
51+
"""
4952

5053
webhook: Optional[Webhook]
5154

@@ -116,10 +119,10 @@ class TargetMonitorsSitemapTarget(TypedDict, total=False):
116119
"""Sitemap URL to monitor."""
117120

118121
exclude: SequenceNotStr[str]
119-
"""URL path patterns to exclude."""
122+
"""URL path patterns to exclude (max 50)."""
120123

121124
include: SequenceNotStr[str]
122-
"""URL path patterns to include."""
125+
"""URL path patterns to include (max 50)."""
123126

124127
max_urls: int
125128
"""Maximum number of sitemap URLs to track (capped at 10,000)."""

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ class TargetMonitorsSitemapTarget(BaseModel):
9696
"""Sitemap URL to monitor."""
9797

9898
exclude: Optional[List[str]] = None
99-
"""URL path patterns to exclude."""
99+
"""URL path patterns to exclude (max 50)."""
100100

101101
include: Optional[List[str]] = None
102-
"""URL path patterns to include."""
102+
"""URL path patterns to include (max 50)."""
103103

104104
max_urls: Optional[int] = None
105105
"""Maximum number of sitemap URLs to track (capped at 10,000)."""
@@ -312,7 +312,10 @@ class MonitorCreateResponse(BaseModel):
312312
"""When the next scheduled run is due."""
313313

314314
tags: Optional[List[str]] = None
315-
"""User-defined tags for grouping and filtering monitors and their changes."""
315+
"""User-defined tags for grouping and filtering monitors and their changes.
316+
317+
Duplicates are removed.
318+
"""
316319

317320
webhook: Optional[Webhook] = None
318321

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ class Data(BaseModel):
4949
removed_url_count: Optional[int] = None
5050

5151
tags: Optional[List[str]] = None
52-
"""User-defined tags for grouping and filtering monitors and their changes."""
52+
"""User-defined tags for grouping and filtering monitors and their changes.
53+
54+
Duplicates are removed.
55+
"""
5356

5457

5558
class MonitorListAccountChangesResponse(BaseModel):

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ class Data(BaseModel):
4949
removed_url_count: Optional[int] = None
5050

5151
tags: Optional[List[str]] = None
52-
"""User-defined tags for grouping and filtering monitors and their changes."""
52+
"""User-defined tags for grouping and filtering monitors and their changes.
53+
54+
Duplicates are removed.
55+
"""
5356

5457

5558
class MonitorListChangesResponse(BaseModel):

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ class DataTargetMonitorsSitemapTarget(BaseModel):
9797
"""Sitemap URL to monitor."""
9898

9999
exclude: Optional[List[str]] = None
100-
"""URL path patterns to exclude."""
100+
"""URL path patterns to exclude (max 50)."""
101101

102102
include: Optional[List[str]] = None
103-
"""URL path patterns to include."""
103+
"""URL path patterns to include (max 50)."""
104104

105105
max_urls: Optional[int] = None
106106
"""Maximum number of sitemap URLs to track (capped at 10,000)."""
@@ -313,7 +313,10 @@ class Data(BaseModel):
313313
"""When the next scheduled run is due."""
314314

315315
tags: Optional[List[str]] = None
316-
"""User-defined tags for grouping and filtering monitors and their changes."""
316+
"""User-defined tags for grouping and filtering monitors and their changes.
317+
318+
Duplicates are removed.
319+
"""
317320

318321
webhook: Optional[DataWebhook] = None
319322

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ class MonitorRetrieveChangeResponse(BaseModel):
4747
summary: str
4848

4949
tags: List[str]
50-
"""User-defined tags for grouping and filtering monitors and their changes."""
50+
"""User-defined tags for grouping and filtering monitors and their changes.
51+
52+
Duplicates are removed.
53+
"""
5154

5255
target_type: Literal["page", "sitemap", "extract"]
5356

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ class TargetMonitorsSitemapTarget(BaseModel):
9696
"""Sitemap URL to monitor."""
9797

9898
exclude: Optional[List[str]] = None
99-
"""URL path patterns to exclude."""
99+
"""URL path patterns to exclude (max 50)."""
100100

101101
include: Optional[List[str]] = None
102-
"""URL path patterns to include."""
102+
"""URL path patterns to include (max 50)."""
103103

104104
max_urls: Optional[int] = None
105105
"""Maximum number of sitemap URLs to track (capped at 10,000)."""
@@ -312,7 +312,10 @@ class MonitorRetrieveResponse(BaseModel):
312312
"""When the next scheduled run is due."""
313313

314314
tags: Optional[List[str]] = None
315-
"""User-defined tags for grouping and filtering monitors and their changes."""
315+
"""User-defined tags for grouping and filtering monitors and their changes.
316+
317+
Duplicates are removed.
318+
"""
316319

317320
webhook: Optional[Webhook] = None
318321

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ class MonitorUpdateParams(TypedDict, total=False):
3737
status: Literal["active", "paused"]
3838

3939
tags: SequenceNotStr[str]
40-
"""User-defined tags for grouping and filtering monitors and their changes."""
40+
"""User-defined tags for grouping and filtering monitors and their changes.
41+
42+
Duplicates are removed.
43+
"""
4144

4245
target: Target
4346
"""Discriminated union describing what the monitor watches."""
@@ -112,10 +115,10 @@ class TargetMonitorsSitemapTarget(TypedDict, total=False):
112115
"""Sitemap URL to monitor."""
113116

114117
exclude: SequenceNotStr[str]
115-
"""URL path patterns to exclude."""
118+
"""URL path patterns to exclude (max 50)."""
116119

117120
include: SequenceNotStr[str]
118-
"""URL path patterns to include."""
121+
"""URL path patterns to include (max 50)."""
119122

120123
max_urls: int
121124
"""Maximum number of sitemap URLs to track (capped at 10,000)."""

0 commit comments

Comments
 (0)