Skip to content

Commit abb8d3d

Browse files
author
ask-pyth
committed
Release 1.25.0. For changelog, check CHANGELOG.rst
1 parent 5a149d5 commit abb8d3d

File tree

9 files changed

+34
-19
lines changed

9 files changed

+34
-19
lines changed

ask-sdk-model/CHANGELOG.rst

+8
Original file line numberDiff line numberDiff line change
@@ -324,3 +324,11 @@ This release contains the following changes :
324324
This release contains the following changes :
325325

326326
- general bug fixes and updates
327+
328+
329+
1.25.0
330+
~~~~~~
331+
332+
This release contains the following changes :
333+
334+
- Introducing `person-level permissions <https://developer.amazon.com/en-US/docs/alexa/smapi/skill-events-in-alexa-skills.html#skill-permission-changed-event>`__ for Skill events.

ask-sdk-model/ask_sdk_model/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
__pip_package_name__ = 'ask-sdk-model'
1515
__description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.'
1616
__url__ = 'https://github.com/alexa/alexa-apis-for-python'
17-
__version__ = '1.24.0'
17+
__version__ = '1.25.0'
1818
__author__ = 'Alexa Skills Kit'
1919
__author_email__ = '[email protected]'
2020
__license__ = 'Apache 2.0'

ask-sdk-model/ask_sdk_model/events/skillevents/permission.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class Permission(object):
2929
"""
3030
31-
:param scope:
31+
:param scope: The value representing the permission scope.
3232
:type scope: (optional) str
3333
3434
"""
@@ -45,7 +45,7 @@ def __init__(self, scope=None):
4545
# type: (Optional[str]) -> None
4646
"""
4747
48-
:param scope:
48+
:param scope: The value representing the permission scope.
4949
:type scope: (optional) str
5050
"""
5151
self.__discriminator_value = None # type: str

ask-sdk-model/ask_sdk_model/events/skillevents/permission_body.py

+13-6
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,36 @@
2929
class PermissionBody(object):
3030
"""
3131
32-
:param accepted_permissions:
32+
:param accepted_permissions: The current list of permissions consented to on the account level. It can be an empty list if there are no account level permissions consented to.
3333
:type accepted_permissions: (optional) list[ask_sdk_model.events.skillevents.permission.Permission]
34+
:param accepted_person_permissions: The current list of permissions consented to on the person level. This is only present if the request contains the &#x60;&#x60;&#x60;person&#x60;&#x60;&#x60; object. It can be an empty list if there are no person level permissions consented to.
35+
:type accepted_person_permissions: (optional) list[ask_sdk_model.events.skillevents.permission.Permission]
3436
3537
"""
3638
deserialized_types = {
37-
'accepted_permissions': 'list[ask_sdk_model.events.skillevents.permission.Permission]'
39+
'accepted_permissions': 'list[ask_sdk_model.events.skillevents.permission.Permission]',
40+
'accepted_person_permissions': 'list[ask_sdk_model.events.skillevents.permission.Permission]'
3841
} # type: Dict
3942

4043
attribute_map = {
41-
'accepted_permissions': 'acceptedPermissions'
44+
'accepted_permissions': 'acceptedPermissions',
45+
'accepted_person_permissions': 'acceptedPersonPermissions'
4246
} # type: Dict
4347
supports_multiple_types = False
4448

45-
def __init__(self, accepted_permissions=None):
46-
# type: (Optional[List[Permission]]) -> None
49+
def __init__(self, accepted_permissions=None, accepted_person_permissions=None):
50+
# type: (Optional[List[Permission]], Optional[List[Permission]]) -> None
4751
"""
4852
49-
:param accepted_permissions:
53+
:param accepted_permissions: The current list of permissions consented to on the account level. It can be an empty list if there are no account level permissions consented to.
5054
:type accepted_permissions: (optional) list[ask_sdk_model.events.skillevents.permission.Permission]
55+
:param accepted_person_permissions: The current list of permissions consented to on the person level. This is only present if the request contains the &#x60;&#x60;&#x60;person&#x60;&#x60;&#x60; object. It can be an empty list if there are no person level permissions consented to.
56+
:type accepted_person_permissions: (optional) list[ask_sdk_model.events.skillevents.permission.Permission]
5157
"""
5258
self.__discriminator_value = None # type: str
5359

5460
self.accepted_permissions = accepted_permissions
61+
self.accepted_person_permissions = accepted_person_permissions
5562

5663
def to_dict(self):
5764
# type: () -> Dict[str, object]

ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
class ProactiveSubscriptionChangedRequest(Request):
3131
"""
32-
This event indicates a customer subscription to receive events from your skill and contains information for that user. You need this information to know the userId in order to send events to individual users. Note that these events can arrive out of order, so ensure that your skill service uses the timestamp in the event to correctly record the latest subscription state for a customer.
32+
This event indicates a customer subscription to receive events from your skill and contains information for that user and person, if recognized. You need this information to know the userId and personId in order to send events to individual users. Note that these events can arrive out of order, so ensure that your skill service uses the timestamp in the event to correctly record the latest subscription state for a customer.
3333
3434
3535
:param request_id: Represents the unique identifier for the specific request.
@@ -61,7 +61,7 @@ class ProactiveSubscriptionChangedRequest(Request):
6161

6262
def __init__(self, request_id=None, timestamp=None, locale=None, body=None):
6363
# type: (Optional[str], Optional[datetime], Optional[str], Optional[ProactiveSubscriptionChangedBody]) -> None
64-
"""This event indicates a customer subscription to receive events from your skill and contains information for that user. You need this information to know the userId in order to send events to individual users. Note that these events can arrive out of order, so ensure that your skill service uses the timestamp in the event to correctly record the latest subscription state for a customer.
64+
"""This event indicates a customer subscription to receive events from your skill and contains information for that user and person, if recognized. You need this information to know the userId and personId in order to send events to individual users. Note that these events can arrive out of order, so ensure that your skill service uses the timestamp in the event to correctly record the latest subscription state for a customer.
6565
6666
:param request_id: Represents the unique identifier for the specific request.
6767
:type request_id: (optional) str

ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/handle_message_directive.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
class HandleMessageDirective(Directive):
3131
"""
32-
The HandleMessage directive sends a message to a skill&#39;s web application that runs on the device browser. To use this directive, [apply to participate](https://build.amazonalexadev.com/AlexaWebAPIforGamesDeveloperPreview_AlexaWebAPIforGames.html) in the Alexa Web API for Games developer preview.
32+
The HandleMessage directive sends a message to a skill&#39;s web application that runs on the device browser.
3333
3434
3535
:param message: A free-form object containing data to deliver to a skill&#39;s HTML application running the device. Maximum size 18 KB.
@@ -53,7 +53,7 @@ class HandleMessageDirective(Directive):
5353

5454
def __init__(self, message=None, transformers=None):
5555
# type: (Optional[object], Optional[List[Transformer]]) -> None
56-
"""The HandleMessage directive sends a message to a skill&#39;s web application that runs on the device browser. To use this directive, [apply to participate](https://build.amazonalexadev.com/AlexaWebAPIforGamesDeveloperPreview_AlexaWebAPIforGames.html) in the Alexa Web API for Games developer preview.
56+
"""The HandleMessage directive sends a message to a skill&#39;s web application that runs on the device browser.
5757
5858
:param message: A free-form object containing data to deliver to a skill&#39;s HTML application running the device. Maximum size 18 KB.
5959
:type message: (optional) object

ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/message_request.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
class MessageRequest(Request):
3030
"""
31-
The Message request sends a message to the skill lambda. To use this request, [apply to participate](https://build.amazonalexadev.com/AlexaWebAPIforGamesDeveloperPreview_AlexaWebAPIforGames.html) in the Alexa Web API for Games developer preview.
31+
The Message request sends a message to the skill lambda.
3232
3333
3434
:param request_id: Represents the unique identifier for the specific request.
@@ -60,7 +60,7 @@ class MessageRequest(Request):
6060

6161
def __init__(self, request_id=None, timestamp=None, locale=None, message=None):
6262
# type: (Optional[str], Optional[datetime], Optional[str], Optional[object]) -> None
63-
"""The Message request sends a message to the skill lambda. To use this request, [apply to participate](https://build.amazonalexadev.com/AlexaWebAPIforGamesDeveloperPreview_AlexaWebAPIforGames.html) in the Alexa Web API for Games developer preview.
63+
"""The Message request sends a message to the skill lambda.
6464
6565
:param request_id: Represents the unique identifier for the specific request.
6666
:type request_id: (optional) str

ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_request.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
class RuntimeErrorRequest(Request):
3131
"""
32-
The RuntimeError request occurs when the device software encounters an error with loading a skill&#39;s web application. To use this request, [apply to participate](https://build.amazonalexadev.com/AlexaWebAPIforGamesDeveloperPreview_AlexaWebAPIforGames.html) in the Alexa Web API for Games developer preview.
32+
The RuntimeError request occurs when the device software encounters an error with loading a skill&#39;s web application.
3333
3434
3535
:param request_id: Represents the unique identifier for the specific request.
@@ -61,7 +61,7 @@ class RuntimeErrorRequest(Request):
6161

6262
def __init__(self, request_id=None, timestamp=None, locale=None, error=None):
6363
# type: (Optional[str], Optional[datetime], Optional[str], Optional[RuntimeError]) -> None
64-
"""The RuntimeError request occurs when the device software encounters an error with loading a skill&#39;s web application. To use this request, [apply to participate](https://build.amazonalexadev.com/AlexaWebAPIforGamesDeveloperPreview_AlexaWebAPIforGames.html) in the Alexa Web API for Games developer preview.
64+
"""The RuntimeError request occurs when the device software encounters an error with loading a skill&#39;s web application.
6565
6666
:param request_id: Represents the unique identifier for the specific request.
6767
:type request_id: (optional) str

ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_directive.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
class StartDirective(Directive):
3333
"""
34-
The Start directive provides the data necessary to load an HTML page on the target device. To use this directive, [apply to participate](https://build.amazonalexadev.com/AlexaWebAPIforGamesDeveloperPreview_AlexaWebAPIforGames.html) in the Alexa Web API for Games developer preview.
34+
The Start directive provides the data necessary to load an HTML page on the target device.
3535
3636
3737
:param data: Optional startup data which will be made available to the runtime for skill startup. Maximum size: 18 KB
@@ -63,7 +63,7 @@ class StartDirective(Directive):
6363

6464
def __init__(self, data=None, transformers=None, request=None, configuration=None):
6565
# type: (Optional[object], Optional[List[Transformer]], Optional[StartRequest], Optional[Configuration]) -> None
66-
"""The Start directive provides the data necessary to load an HTML page on the target device. To use this directive, [apply to participate](https://build.amazonalexadev.com/AlexaWebAPIforGamesDeveloperPreview_AlexaWebAPIforGames.html) in the Alexa Web API for Games developer preview.
66+
"""The Start directive provides the data necessary to load an HTML page on the target device.
6767
6868
:param data: Optional startup data which will be made available to the runtime for skill startup. Maximum size: 18 KB
6969
:type data: (optional) object

0 commit comments

Comments
 (0)