Skip to content

Commit 791e4d0

Browse files
feat(api): api update
1 parent 87d0caf commit 791e4d0

3 files changed

Lines changed: 7 additions & 2 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: 65
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock/knock-mapi-52fbf485599390007cf01379cd41d78ef49a1f54fd48fb1d2e226044705a2506.yml
3-
openapi_spec_hash: f182041ef907cf46e65856817c8889b4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock/knock-mapi-7dd4264d0f79e83178ebf7eeaa23bfda1f74c1fccd905ff6cb746f16b5c1f705.yml
3+
openapi_spec_hash: 67ef3c3404750a1f00fe62c020ad83aa
44
config_hash: 0d16fc321205745633b4e4ccd7a83c19

src/knock_mapi/types/template_preview_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,6 @@ class Workflow(TypedDict, total=False):
129129

130130
categories: Optional[SequenceNotStr[str]]
131131
"""Workflow categories."""
132+
133+
commercial: Optional[bool]
134+
"""Whether the workflow is marked as commercial messaging."""

tests/api_resources/test_templates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def test_method_preview_with_all_params(self, client: KnockMgmt) -> None:
163163
workflow={
164164
"key": "key",
165165
"categories": ["string"],
166+
"commercial": True,
166167
},
167168
)
168169
assert_matches_type(TemplatePreviewResponse, template, path=["response"])
@@ -357,6 +358,7 @@ async def test_method_preview_with_all_params(self, async_client: AsyncKnockMgmt
357358
workflow={
358359
"key": "key",
359360
"categories": ["string"],
361+
"commercial": True,
360362
},
361363
)
362364
assert_matches_type(TemplatePreviewResponse, template, path=["response"])

0 commit comments

Comments
 (0)