Skip to content

Commit da9738c

Browse files
feat(api): api update
1 parent ed246b8 commit da9738c

File tree

4 files changed

+5
-203
lines changed

4 files changed

+5
-203
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 89
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-092c2b568690b68f1683b668b1d14db02854ef1a6e70d9f96efcd5f6e3e95ed7.yml
3-
openapi_spec_hash: 0ddb0d27c5cb719cddddbf204394d9fa
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-40ca41599f579fdd44c2e3e32a7d1bba51ba567050c0dcd5bc099ce8d48bba97.yml
3+
openapi_spec_hash: 72e32d434bbd7ccf7296a2eed7c642ef
44
config_hash: 658c551418df454aa40794f8ac679c18

src/knockapi/types/object_set_channel_data_params.py

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Iterable, Optional
5+
from typing import Union
66
from typing_extensions import Required, TypeAlias, TypedDict
77

88
from .._types import SequenceNotStr
@@ -14,11 +14,7 @@
1414
"ObjectSetChannelDataParams",
1515
"Data",
1616
"DataPushChannelDataTokensOnly",
17-
"DataPushChannelDataDevicesOnly",
18-
"DataPushChannelDataDevicesOnlyDevice",
1917
"DataAwssnsPushChannelDataTargetArNsOnly",
20-
"DataAwssnsPushChannelDataDevicesOnly",
21-
"DataAwssnsPushChannelDataDevicesOnlyDevice",
2218
"DataOneSignalChannelDataPlayerIDsOnly",
2319
]
2420

@@ -33,34 +29,6 @@ class DataPushChannelDataTokensOnly(TypedDict, total=False):
3329
"""A list of push channel tokens."""
3430

3531

36-
class DataPushChannelDataDevicesOnlyDevice(TypedDict, total=False):
37-
token: Required[str]
38-
"""The device token to send the push notification to."""
39-
40-
locale: Optional[str]
41-
"""The locale of the object.
42-
43-
Used for [message localization](/concepts/translations).
44-
"""
45-
46-
timezone: Optional[str]
47-
"""The timezone of the object.
48-
49-
Must be a
50-
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
51-
Used
52-
for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
53-
"""
54-
55-
56-
class DataPushChannelDataDevicesOnly(TypedDict, total=False):
57-
devices: Required[Iterable[DataPushChannelDataDevicesOnlyDevice]]
58-
"""A list of devices.
59-
60-
Each device contains a token, and optionally a locale and timezone.
61-
"""
62-
63-
6432
class DataAwssnsPushChannelDataTargetArNsOnly(TypedDict, total=False):
6533
target_arns: Required[SequenceNotStr[str]]
6634
"""A list of platform endpoint ARNs.
@@ -70,48 +38,14 @@ class DataAwssnsPushChannelDataTargetArNsOnly(TypedDict, total=False):
7038
"""
7139

7240

73-
class DataAwssnsPushChannelDataDevicesOnlyDevice(TypedDict, total=False):
74-
target_arn: Required[str]
75-
"""
76-
The ARN of a platform endpoint associated with a platform application and a
77-
device token. See
78-
[Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
79-
"""
80-
81-
locale: Optional[str]
82-
"""The locale of the object.
83-
84-
Used for [message localization](/concepts/translations).
85-
"""
86-
87-
timezone: Optional[str]
88-
"""The timezone of the object.
89-
90-
Must be a
91-
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
92-
Used
93-
for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
94-
"""
95-
96-
97-
class DataAwssnsPushChannelDataDevicesOnly(TypedDict, total=False):
98-
devices: Required[Iterable[DataAwssnsPushChannelDataDevicesOnlyDevice]]
99-
"""A list of devices.
100-
101-
Each device contains a target_arn, and optionally a locale and timezone.
102-
"""
103-
104-
10541
class DataOneSignalChannelDataPlayerIDsOnly(TypedDict, total=False):
10642
player_ids: Required[SequenceNotStr[str]]
10743
"""A list of OneSignal player IDs."""
10844

10945

11046
Data: TypeAlias = Union[
11147
DataPushChannelDataTokensOnly,
112-
DataPushChannelDataDevicesOnly,
11348
DataAwssnsPushChannelDataTargetArNsOnly,
114-
DataAwssnsPushChannelDataDevicesOnly,
11549
DataOneSignalChannelDataPlayerIDsOnly,
11650
SlackChannelDataParam,
11751
MsTeamsChannelDataParam,

src/knockapi/types/recipients/inline_channel_data_request_param.py

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Union, Iterable, Optional
5+
from typing import Dict, Union
66
from typing_extensions import Required, TypeAlias, TypedDict
77

88
from ..._types import SequenceNotStr
@@ -14,11 +14,7 @@
1414
"InlineChannelDataRequestParam",
1515
"InlineChannelDataRequestParamItem",
1616
"InlineChannelDataRequestParamItemPushChannelDataTokensOnly",
17-
"InlineChannelDataRequestParamItemPushChannelDataDevicesOnly",
18-
"InlineChannelDataRequestParamItemPushChannelDataDevicesOnlyDevice",
1917
"InlineChannelDataRequestParamItemAwssnsPushChannelDataTargetArNsOnly",
20-
"InlineChannelDataRequestParamItemAwssnsPushChannelDataDevicesOnly",
21-
"InlineChannelDataRequestParamItemAwssnsPushChannelDataDevicesOnlyDevice",
2218
"InlineChannelDataRequestParamItemOneSignalChannelDataPlayerIDsOnly",
2319
]
2420

@@ -28,34 +24,6 @@ class InlineChannelDataRequestParamItemPushChannelDataTokensOnly(TypedDict, tota
2824
"""A list of push channel tokens."""
2925

3026

31-
class InlineChannelDataRequestParamItemPushChannelDataDevicesOnlyDevice(TypedDict, total=False):
32-
token: Required[str]
33-
"""The device token to send the push notification to."""
34-
35-
locale: Optional[str]
36-
"""The locale of the object.
37-
38-
Used for [message localization](/concepts/translations).
39-
"""
40-
41-
timezone: Optional[str]
42-
"""The timezone of the object.
43-
44-
Must be a
45-
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
46-
Used
47-
for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
48-
"""
49-
50-
51-
class InlineChannelDataRequestParamItemPushChannelDataDevicesOnly(TypedDict, total=False):
52-
devices: Required[Iterable[InlineChannelDataRequestParamItemPushChannelDataDevicesOnlyDevice]]
53-
"""A list of devices.
54-
55-
Each device contains a token, and optionally a locale and timezone.
56-
"""
57-
58-
5927
class InlineChannelDataRequestParamItemAwssnsPushChannelDataTargetArNsOnly(TypedDict, total=False):
6028
target_arns: Required[SequenceNotStr[str]]
6129
"""A list of platform endpoint ARNs.
@@ -65,48 +33,14 @@ class InlineChannelDataRequestParamItemAwssnsPushChannelDataTargetArNsOnly(Typed
6533
"""
6634

6735

68-
class InlineChannelDataRequestParamItemAwssnsPushChannelDataDevicesOnlyDevice(TypedDict, total=False):
69-
target_arn: Required[str]
70-
"""
71-
The ARN of a platform endpoint associated with a platform application and a
72-
device token. See
73-
[Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
74-
"""
75-
76-
locale: Optional[str]
77-
"""The locale of the object.
78-
79-
Used for [message localization](/concepts/translations).
80-
"""
81-
82-
timezone: Optional[str]
83-
"""The timezone of the object.
84-
85-
Must be a
86-
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
87-
Used
88-
for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
89-
"""
90-
91-
92-
class InlineChannelDataRequestParamItemAwssnsPushChannelDataDevicesOnly(TypedDict, total=False):
93-
devices: Required[Iterable[InlineChannelDataRequestParamItemAwssnsPushChannelDataDevicesOnlyDevice]]
94-
"""A list of devices.
95-
96-
Each device contains a target_arn, and optionally a locale and timezone.
97-
"""
98-
99-
10036
class InlineChannelDataRequestParamItemOneSignalChannelDataPlayerIDsOnly(TypedDict, total=False):
10137
player_ids: Required[SequenceNotStr[str]]
10238
"""A list of OneSignal player IDs."""
10339

10440

10541
InlineChannelDataRequestParamItem: TypeAlias = Union[
10642
InlineChannelDataRequestParamItemPushChannelDataTokensOnly,
107-
InlineChannelDataRequestParamItemPushChannelDataDevicesOnly,
10843
InlineChannelDataRequestParamItemAwssnsPushChannelDataTargetArNsOnly,
109-
InlineChannelDataRequestParamItemAwssnsPushChannelDataDevicesOnly,
11044
InlineChannelDataRequestParamItemOneSignalChannelDataPlayerIDsOnly,
11145
SlackChannelDataParam,
11246
MsTeamsChannelDataParam,

src/knockapi/types/user_set_channel_data_params.py

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Iterable, Optional
5+
from typing import Union
66
from typing_extensions import Required, TypeAlias, TypedDict
77

88
from .._types import SequenceNotStr
@@ -14,11 +14,7 @@
1414
"UserSetChannelDataParams",
1515
"Data",
1616
"DataPushChannelDataTokensOnly",
17-
"DataPushChannelDataDevicesOnly",
18-
"DataPushChannelDataDevicesOnlyDevice",
1917
"DataAwssnsPushChannelDataTargetArNsOnly",
20-
"DataAwssnsPushChannelDataDevicesOnly",
21-
"DataAwssnsPushChannelDataDevicesOnlyDevice",
2218
"DataOneSignalChannelDataPlayerIDsOnly",
2319
]
2420

@@ -33,34 +29,6 @@ class DataPushChannelDataTokensOnly(TypedDict, total=False):
3329
"""A list of push channel tokens."""
3430

3531

36-
class DataPushChannelDataDevicesOnlyDevice(TypedDict, total=False):
37-
token: Required[str]
38-
"""The device token to send the push notification to."""
39-
40-
locale: Optional[str]
41-
"""The locale of the object.
42-
43-
Used for [message localization](/concepts/translations).
44-
"""
45-
46-
timezone: Optional[str]
47-
"""The timezone of the object.
48-
49-
Must be a
50-
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
51-
Used
52-
for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
53-
"""
54-
55-
56-
class DataPushChannelDataDevicesOnly(TypedDict, total=False):
57-
devices: Required[Iterable[DataPushChannelDataDevicesOnlyDevice]]
58-
"""A list of devices.
59-
60-
Each device contains a token, and optionally a locale and timezone.
61-
"""
62-
63-
6432
class DataAwssnsPushChannelDataTargetArNsOnly(TypedDict, total=False):
6533
target_arns: Required[SequenceNotStr[str]]
6634
"""A list of platform endpoint ARNs.
@@ -70,48 +38,14 @@ class DataAwssnsPushChannelDataTargetArNsOnly(TypedDict, total=False):
7038
"""
7139

7240

73-
class DataAwssnsPushChannelDataDevicesOnlyDevice(TypedDict, total=False):
74-
target_arn: Required[str]
75-
"""
76-
The ARN of a platform endpoint associated with a platform application and a
77-
device token. See
78-
[Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
79-
"""
80-
81-
locale: Optional[str]
82-
"""The locale of the object.
83-
84-
Used for [message localization](/concepts/translations).
85-
"""
86-
87-
timezone: Optional[str]
88-
"""The timezone of the object.
89-
90-
Must be a
91-
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
92-
Used
93-
for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
94-
"""
95-
96-
97-
class DataAwssnsPushChannelDataDevicesOnly(TypedDict, total=False):
98-
devices: Required[Iterable[DataAwssnsPushChannelDataDevicesOnlyDevice]]
99-
"""A list of devices.
100-
101-
Each device contains a target_arn, and optionally a locale and timezone.
102-
"""
103-
104-
10541
class DataOneSignalChannelDataPlayerIDsOnly(TypedDict, total=False):
10642
player_ids: Required[SequenceNotStr[str]]
10743
"""A list of OneSignal player IDs."""
10844

10945

11046
Data: TypeAlias = Union[
11147
DataPushChannelDataTokensOnly,
112-
DataPushChannelDataDevicesOnly,
11348
DataAwssnsPushChannelDataTargetArNsOnly,
114-
DataAwssnsPushChannelDataDevicesOnly,
11549
DataOneSignalChannelDataPlayerIDsOnly,
11650
SlackChannelDataParam,
11751
MsTeamsChannelDataParam,

0 commit comments

Comments
 (0)