Skip to content

Commit 4fb738f

Browse files
feat(api): api update
1 parent 2eac170 commit 4fb738f

7 files changed

Lines changed: 56 additions & 32 deletions

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-ea4f36d262d32250c0626d46b9df01e15fd17dec54928c712284693c8be487d2.yml
3-
openapi_spec_hash: 33fe53c36120b880472d3743ba2bd898
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-190c8939f11afec54c1c0303cb21e7164a350fb66c5fe8fb5ae970e809dfb066.yml
3+
openapi_spec_hash: 65e3c8513e047a95bcf276b6f88045a6
44
config_hash: ff35e224e809656528c44163aa41bebd

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ChangeDetectionMonitorsExactChangeDetection(TypedDict, total=False):
6161

6262
class ChangeDetectionMonitorsSemanticChangeDetection(TypedDict, total=False):
6363
"""
64-
Detect meaning-level changes to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`.
64+
Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided).
6565
"""
6666

6767
type: Required[Literal["semantic"]]
@@ -128,7 +128,7 @@ class TargetMonitorsSitemapTarget(TypedDict, total=False):
128128
class TargetMonitorsExtractTarget(TypedDict, total=False):
129129
"""Watch the monitor-relevant pages of a site for meaningful changes.
130130
131-
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl.
131+
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl.
132132
"""
133133

134134
instructions: Required[str]
@@ -153,9 +153,13 @@ class TargetMonitorsExtractTarget(TypedDict, total=False):
153153
schema: Dict[str, object]
154154
"""JSON Schema describing the data you care about.
155155
156-
It guides which pages are selected for tracking and gives the change judge
157-
context on what matters. If omitted, a default summary + key-points schema is
158-
used.
156+
It is used three ways: it guides which pages are selected for tracking, it gives
157+
the change judge extra context on which changes matter (alongside
158+
`instructions`), and it defines the shape of the baseline `data` snapshot on GET
159+
/monitors/{monitor_id} (refreshed at most about once a day). It is not a
160+
response format for changes: change events and webhook payloads always contain
161+
diffs, summaries, and evidence excerpts — never data in this schema's shape. If
162+
omitted, a default summary + key-points schema is used.
159163
"""
160164

161165

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ChangeDetectionMonitorsExactChangeDetection(BaseModel):
3939

4040
class ChangeDetectionMonitorsSemanticChangeDetection(BaseModel):
4141
"""
42-
Detect meaning-level changes to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`.
42+
Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided).
4343
"""
4444

4545
type: Literal["semantic"]
@@ -107,7 +107,7 @@ class TargetMonitorsSitemapTarget(BaseModel):
107107
class TargetMonitorsExtractTarget(BaseModel):
108108
"""Watch the monitor-relevant pages of a site for meaningful changes.
109109
110-
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl.
110+
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl.
111111
"""
112112

113113
instructions: str
@@ -132,9 +132,13 @@ class TargetMonitorsExtractTarget(BaseModel):
132132
schema_: Optional[Dict[str, object]] = FieldInfo(alias="schema", default=None)
133133
"""JSON Schema describing the data you care about.
134134
135-
It guides which pages are selected for tracking and gives the change judge
136-
context on what matters. If omitted, a default summary + key-points schema is
137-
used.
135+
It is used three ways: it guides which pages are selected for tracking, it gives
136+
the change judge extra context on which changes matter (alongside
137+
`instructions`), and it defines the shape of the baseline `data` snapshot on GET
138+
/monitors/{monitor_id} (refreshed at most about once a day). It is not a
139+
response format for changes: change events and webhook payloads always contain
140+
diffs, summaries, and evidence excerpts — never data in this schema's shape. If
141+
omitted, a default summary + key-points schema is used.
138142
"""
139143

140144

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class DataChangeDetectionMonitorsExactChangeDetection(BaseModel):
4040

4141
class DataChangeDetectionMonitorsSemanticChangeDetection(BaseModel):
4242
"""
43-
Detect meaning-level changes to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`.
43+
Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided).
4444
"""
4545

4646
type: Literal["semantic"]
@@ -108,7 +108,7 @@ class DataTargetMonitorsSitemapTarget(BaseModel):
108108
class DataTargetMonitorsExtractTarget(BaseModel):
109109
"""Watch the monitor-relevant pages of a site for meaningful changes.
110110
111-
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl.
111+
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl.
112112
"""
113113

114114
instructions: str
@@ -133,9 +133,13 @@ class DataTargetMonitorsExtractTarget(BaseModel):
133133
schema_: Optional[Dict[str, object]] = FieldInfo(alias="schema", default=None)
134134
"""JSON Schema describing the data you care about.
135135
136-
It guides which pages are selected for tracking and gives the change judge
137-
context on what matters. If omitted, a default summary + key-points schema is
138-
used.
136+
It is used three ways: it guides which pages are selected for tracking, it gives
137+
the change judge extra context on which changes matter (alongside
138+
`instructions`), and it defines the shape of the baseline `data` snapshot on GET
139+
/monitors/{monitor_id} (refreshed at most about once a day). It is not a
140+
response format for changes: change events and webhook payloads always contain
141+
diffs, summaries, and evidence excerpts — never data in this schema's shape. If
142+
omitted, a default summary + key-points schema is used.
139143
"""
140144

141145

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ChangeDetectionMonitorsExactChangeDetection(BaseModel):
3939

4040
class ChangeDetectionMonitorsSemanticChangeDetection(BaseModel):
4141
"""
42-
Detect meaning-level changes to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`.
42+
Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided).
4343
"""
4444

4545
type: Literal["semantic"]
@@ -107,7 +107,7 @@ class TargetMonitorsSitemapTarget(BaseModel):
107107
class TargetMonitorsExtractTarget(BaseModel):
108108
"""Watch the monitor-relevant pages of a site for meaningful changes.
109109
110-
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl.
110+
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl.
111111
"""
112112

113113
instructions: str
@@ -132,9 +132,13 @@ class TargetMonitorsExtractTarget(BaseModel):
132132
schema_: Optional[Dict[str, object]] = FieldInfo(alias="schema", default=None)
133133
"""JSON Schema describing the data you care about.
134134
135-
It guides which pages are selected for tracking and gives the change judge
136-
context on what matters. If omitted, a default summary + key-points schema is
137-
used.
135+
It is used three ways: it guides which pages are selected for tracking, it gives
136+
the change judge extra context on which changes matter (alongside
137+
`instructions`), and it defines the shape of the baseline `data` snapshot on GET
138+
/monitors/{monitor_id} (refreshed at most about once a day). It is not a
139+
response format for changes: change events and webhook payloads always contain
140+
diffs, summaries, and evidence excerpts — never data in this schema's shape. If
141+
omitted, a default summary + key-points schema is used.
138142
"""
139143

140144

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ChangeDetectionMonitorsExactChangeDetection(TypedDict, total=False):
5757

5858
class ChangeDetectionMonitorsSemanticChangeDetection(TypedDict, total=False):
5959
"""
60-
Detect meaning-level changes to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`.
60+
Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided).
6161
"""
6262

6363
type: Required[Literal["semantic"]]
@@ -124,7 +124,7 @@ class TargetMonitorsSitemapTarget(TypedDict, total=False):
124124
class TargetMonitorsExtractTarget(TypedDict, total=False):
125125
"""Watch the monitor-relevant pages of a site for meaningful changes.
126126
127-
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl.
127+
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl.
128128
"""
129129

130130
instructions: Required[str]
@@ -149,9 +149,13 @@ class TargetMonitorsExtractTarget(TypedDict, total=False):
149149
schema: Dict[str, object]
150150
"""JSON Schema describing the data you care about.
151151
152-
It guides which pages are selected for tracking and gives the change judge
153-
context on what matters. If omitted, a default summary + key-points schema is
154-
used.
152+
It is used three ways: it guides which pages are selected for tracking, it gives
153+
the change judge extra context on which changes matter (alongside
154+
`instructions`), and it defines the shape of the baseline `data` snapshot on GET
155+
/monitors/{monitor_id} (refreshed at most about once a day). It is not a
156+
response format for changes: change events and webhook payloads always contain
157+
diffs, summaries, and evidence excerpts — never data in this schema's shape. If
158+
omitted, a default summary + key-points schema is used.
155159
"""
156160

157161

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ChangeDetectionMonitorsExactChangeDetection(BaseModel):
3939

4040
class ChangeDetectionMonitorsSemanticChangeDetection(BaseModel):
4141
"""
42-
Detect meaning-level changes to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`.
42+
Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided).
4343
"""
4444

4545
type: Literal["semantic"]
@@ -107,7 +107,7 @@ class TargetMonitorsSitemapTarget(BaseModel):
107107
class TargetMonitorsExtractTarget(BaseModel):
108108
"""Watch the monitor-relevant pages of a site for meaningful changes.
109109
110-
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl.
110+
A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl.
111111
"""
112112

113113
instructions: str
@@ -132,9 +132,13 @@ class TargetMonitorsExtractTarget(BaseModel):
132132
schema_: Optional[Dict[str, object]] = FieldInfo(alias="schema", default=None)
133133
"""JSON Schema describing the data you care about.
134134
135-
It guides which pages are selected for tracking and gives the change judge
136-
context on what matters. If omitted, a default summary + key-points schema is
137-
used.
135+
It is used three ways: it guides which pages are selected for tracking, it gives
136+
the change judge extra context on which changes matter (alongside
137+
`instructions`), and it defines the shape of the baseline `data` snapshot on GET
138+
/monitors/{monitor_id} (refreshed at most about once a day). It is not a
139+
response format for changes: change events and webhook payloads always contain
140+
diffs, summaries, and evidence excerpts — never data in this schema's shape. If
141+
omitted, a default summary + key-points schema is used.
138142
"""
139143

140144

0 commit comments

Comments
 (0)