Skip to content

Commit 70a1e18

Browse files
feat(api): api update
1 parent 3f21392 commit 70a1e18

10 files changed

Lines changed: 54 additions & 2 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 73
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock/knock-mapi-7bc361dd05957e3942ec72029fe6a1a2f05e4642d8aa4cc3f1c73ce956b8a08b.yml
3-
openapi_spec_hash: 138de78ea4d925dc54321a70cccc22b7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock/knock-mapi-1ec488e7c53d932d47c0a8dad075a2b9b48d76d90c33e879870c2ccf54c2d91c.yml
3+
openapi_spec_hash: 11bc7e330005aa01e98acfb6eaf459c6
44
config_hash: 1543050ac0815a90f8fc8158f853af03

src/knock_mapi/types/guide.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ class Guide(BaseModel):
6666
steps: Optional[List[GuideStep]] = None
6767
"""A list of guide step objects in the guide."""
6868

69+
tags: Optional[List[str]] = None
70+
"""Use tags to organize resources internally within your account.
71+
72+
For example, by team or product area.
73+
"""
74+
6975
target_audience_id: Optional[str] = None
7076
"""The ID of the target audience for the guide.
7177

src/knock_mapi/types/guide_upsert_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from datetime import datetime
77
from typing_extensions import Required, Annotated, TypedDict
88

9+
from .._types import SequenceNotStr
910
from .._utils import PropertyInfo
1011
from .guide_step_param import GuideStepParam
1112
from .condition_group_param import ConditionGroupParam
@@ -72,6 +73,12 @@ class Guide(TypedDict, total=False):
7273
characters allowed.
7374
"""
7475

76+
tags: SequenceNotStr[str]
77+
"""Use tags to organize resources internally within your account.
78+
79+
For example, by team or product area.
80+
"""
81+
7582
target_audience_id: Optional[str]
7683
"""The ID of the target audience for the guide.
7784

src/knock_mapi/types/guide_validate_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from datetime import datetime
77
from typing_extensions import Required, Annotated, TypedDict
88

9+
from .._types import SequenceNotStr
910
from .._utils import PropertyInfo
1011
from .guide_step_param import GuideStepParam
1112
from .condition_group_param import ConditionGroupParam
@@ -56,6 +57,12 @@ class Guide(TypedDict, total=False):
5657
characters allowed.
5758
"""
5859

60+
tags: SequenceNotStr[str]
61+
"""Use tags to organize resources internally within your account.
62+
63+
For example, by team or product area.
64+
"""
65+
5966
target_audience_id: Optional[str]
6067
"""The ID of the target audience for the guide.
6168

src/knock_mapi/types/workflow.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ class Workflow(BaseModel):
9090
settings: Optional[Settings] = None
9191
"""A map of workflow settings."""
9292

93+
tags: Optional[List[str]] = None
94+
"""Use tags to organize resources internally within your account.
95+
96+
For example, by team or product area.
97+
"""
98+
9399
trigger_data_json_schema: Optional[Dict[str, object]] = None
94100
"""
95101
A JSON schema for the expected structure of the workflow trigger's `data`

src/knock_mapi/types/workflow_retrieve_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ class WorkflowRetrieveResponse(BaseModel):
9494
settings: Optional[Settings] = None
9595
"""A map of workflow settings."""
9696

97+
tags: Optional[List[str]] = None
98+
"""Use tags to organize resources internally within your account.
99+
100+
For example, by team or product area.
101+
"""
102+
97103
trigger_data_json_schema: Optional[Dict[str, object]] = None
98104
"""
99105
A JSON schema for the expected structure of the workflow trigger's `data`

src/knock_mapi/types/workflow_upsert_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ class Workflow(TypedDict, total=False):
8484
settings: WorkflowSettings
8585
"""A map of workflow settings."""
8686

87+
tags: SequenceNotStr[str]
88+
"""Use tags to organize resources internally within your account.
89+
90+
For example, by team or product area.
91+
"""
92+
8793
trigger_data_json_schema: Dict[str, object]
8894
"""
8995
A JSON schema for the expected structure of the workflow trigger's `data`

src/knock_mapi/types/workflow_validate_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ class Workflow(TypedDict, total=False):
6868
settings: WorkflowSettings
6969
"""A map of workflow settings."""
7070

71+
tags: SequenceNotStr[str]
72+
"""Use tags to organize resources internally within your account.
73+
74+
For example, by team or product area.
75+
"""
76+
7177
trigger_data_json_schema: Dict[str, object]
7278
"""
7379
A JSON schema for the expected structure of the workflow trigger's `data`

tests/api_resources/test_guides.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ def test_method_upsert_with_all_params(self, client: KnockMgmt) -> None:
342342
"archived_at": parse_datetime("2019-12-27T18:11:19.117Z"),
343343
"deleted_at": parse_datetime("2019-12-27T18:11:19.117Z"),
344344
"description": "A guide to help users get started with the application",
345+
"tags": ["string"],
345346
"target_audience_id": None,
346347
"target_property_conditions": {
347348
"all": [
@@ -484,6 +485,7 @@ def test_method_validate_with_all_params(self, client: KnockMgmt) -> None:
484485
"archived_at": parse_datetime("2019-12-27T18:11:19.117Z"),
485486
"deleted_at": parse_datetime("2019-12-27T18:11:19.117Z"),
486487
"description": "A guide to help users get started with the application",
488+
"tags": ["string"],
487489
"target_audience_id": None,
488490
"target_property_conditions": {
489491
"all": [
@@ -895,6 +897,7 @@ async def test_method_upsert_with_all_params(self, async_client: AsyncKnockMgmt)
895897
"archived_at": parse_datetime("2019-12-27T18:11:19.117Z"),
896898
"deleted_at": parse_datetime("2019-12-27T18:11:19.117Z"),
897899
"description": "A guide to help users get started with the application",
900+
"tags": ["string"],
898901
"target_audience_id": None,
899902
"target_property_conditions": {
900903
"all": [
@@ -1037,6 +1040,7 @@ async def test_method_validate_with_all_params(self, async_client: AsyncKnockMgm
10371040
"archived_at": parse_datetime("2019-12-27T18:11:19.117Z"),
10381041
"deleted_at": parse_datetime("2019-12-27T18:11:19.117Z"),
10391042
"description": "A guide to help users get started with the application",
1043+
"tags": ["string"],
10401044
"target_audience_id": None,
10411045
"target_property_conditions": {
10421046
"all": [

tests/api_resources/test_workflows.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ def test_method_upsert_with_all_params(self, client: KnockMgmt) -> None:
341341
"is_commercial": False,
342342
"override_preferences": False,
343343
},
344+
"tags": ["string"],
344345
"trigger_data_json_schema": {"foo": "bar"},
345346
"trigger_frequency": "every_trigger",
346347
},
@@ -500,6 +501,7 @@ def test_method_validate_with_all_params(self, client: KnockMgmt) -> None:
500501
"is_commercial": False,
501502
"override_preferences": False,
502503
},
504+
"tags": ["string"],
503505
"trigger_data_json_schema": {"foo": "bar"},
504506
"trigger_frequency": "every_trigger",
505507
},
@@ -896,6 +898,7 @@ async def test_method_upsert_with_all_params(self, async_client: AsyncKnockMgmt)
896898
"is_commercial": False,
897899
"override_preferences": False,
898900
},
901+
"tags": ["string"],
899902
"trigger_data_json_schema": {"foo": "bar"},
900903
"trigger_frequency": "every_trigger",
901904
},
@@ -1055,6 +1058,7 @@ async def test_method_validate_with_all_params(self, async_client: AsyncKnockMgm
10551058
"is_commercial": False,
10561059
"override_preferences": False,
10571060
},
1061+
"tags": ["string"],
10581062
"trigger_data_json_schema": {"foo": "bar"},
10591063
"trigger_frequency": "every_trigger",
10601064
},

0 commit comments

Comments
 (0)