Skip to content

Commit df3da15

Browse files
committed
This release contains the following :
- Model updates for Location Services. - Model updates for GameEngine Interface.
1 parent 6a38ce9 commit df3da15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1331
-233
lines changed

ask-sdk-model/CHANGELOG.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,27 @@ CHANGELOG
5858
graphics, images, slideshows, and video, and to customize them for
5959
different device types.
6060

61+
62+
63+
1.4.0
64+
~~~~~~~
65+
66+
This release includes the following:
67+
- Models for [CanFulfillIntentRequest, for Name-free Interactions](https://developer.amazon.com/docs/custom-skills/implement-canfulfillintentrequest-for-name-free-interaction.html)
68+
69+
70+
1.5.0
71+
~~~~~~~
72+
73+
This release includes the following :
74+
75+
- Models for Location Services.
76+
- Updated models for Game engine interface.
77+
78+
79+
1.5.1
80+
^^^^^^^
81+
82+
This release includes the following:
83+
84+
- Updated interfaces for Location Services

ask-sdk-model/ask_sdk_model/__version__.py

Lines changed: 1 addition & 1 deletion
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.3.0'
17+
__version__ = '1.5.1'
1818
__author__ = 'Alexa Skills Kit'
1919
__author_email__ = '[email protected]'
2020
__license__ = 'Apache 2.0'

ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_request.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,54 +37,53 @@ class CanFulfillIntentRequest(Request):
3737
:type request_id: (optional) str
3838
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
3939
:type timestamp: (optional) datetime
40+
:param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types.
41+
:type locale: (optional) str
4042
:param dialog_state:
4143
:type dialog_state: (optional) ask_sdk_model.dialog_state.DialogState
4244
:param intent:
4345
:type intent: (optional) ask_sdk_model.intent.Intent
44-
:param locale: A string indicating the user’s locale. For example: en-US.
45-
:type locale: (optional) str
4646
4747
"""
4848
deserialized_types = {
4949
'object_type': 'str',
5050
'request_id': 'str',
5151
'timestamp': 'datetime',
52+
'locale': 'str',
5253
'dialog_state': 'ask_sdk_model.dialog_state.DialogState',
53-
'intent': 'ask_sdk_model.intent.Intent',
54-
'locale': 'str'
54+
'intent': 'ask_sdk_model.intent.Intent'
5555
}
5656

5757
attribute_map = {
5858
'object_type': 'type',
5959
'request_id': 'requestId',
6060
'timestamp': 'timestamp',
61+
'locale': 'locale',
6162
'dialog_state': 'dialogState',
62-
'intent': 'intent',
63-
'locale': 'locale'
63+
'intent': 'intent'
6464
}
6565

66-
def __init__(self, request_id=None, timestamp=None, dialog_state=None, intent=None, locale=None):
67-
# type: (Optional[str], Optional[datetime], Optional[DialogState], Optional[Intent], Optional[str]) -> None
66+
def __init__(self, request_id=None, timestamp=None, locale=None, dialog_state=None, intent=None):
67+
# type: (Optional[str], Optional[datetime], Optional[str], Optional[DialogState], Optional[Intent]) -> None
6868
"""An object that represents a request made to skill to query whether the skill can understand and fulfill the intent request with detected slots, before actually asking the skill to take action. Skill should be aware this is not to actually take action, skill should handle this request without causing side-effect, skill should not modify some state outside its scope or has an observable interaction with its calling functions or the outside world besides returning a value, such as playing sound,turning on/off lights, committing a transaction or a charge.
6969
7070
:param request_id: Represents the unique identifier for the specific request.
7171
:type request_id: (optional) str
7272
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
7373
:type timestamp: (optional) datetime
74+
:param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types.
75+
:type locale: (optional) str
7476
:param dialog_state:
7577
:type dialog_state: (optional) ask_sdk_model.dialog_state.DialogState
7678
:param intent:
7779
:type intent: (optional) ask_sdk_model.intent.Intent
78-
:param locale: A string indicating the user’s locale. For example: en-US.
79-
:type locale: (optional) str
8080
"""
8181
self.__discriminator_value = "CanFulfillIntentRequest"
8282

8383
self.object_type = self.__discriminator_value
84-
super(CanFulfillIntentRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp)
84+
super(CanFulfillIntentRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale)
8585
self.dialog_state = dialog_state
8686
self.intent = intent
87-
self.locale = locale
8887

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

ask-sdk-model/ask_sdk_model/context.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from typing import Dict, List, Optional
2525
from datetime import datetime
2626
from ask_sdk_model.interfaces.system.system_state import SystemState
27+
from ask_sdk_model.interfaces.geolocation.geolocation_state import GeolocationState
2728
from ask_sdk_model.interfaces.audioplayer.audio_player_state import AudioPlayerState
2829
from ask_sdk_model.interfaces.viewport.viewport_state import ViewportState
2930
from ask_sdk_model.interfaces.display.display_state import DisplayState
@@ -38,6 +39,8 @@ class Context(object):
3839
:type audio_player: (optional) ask_sdk_model.interfaces.audioplayer.audio_player_state.AudioPlayerState
3940
:param display: Provides the current state for the Display interface.
4041
:type display: (optional) ask_sdk_model.interfaces.display.display_state.DisplayState
42+
:param geolocation: Provides the last gathered geolocation information of the device.
43+
:type geolocation: (optional) ask_sdk_model.interfaces.geolocation.geolocation_state.GeolocationState
4144
:param viewport: Provides the characteristics of a device's viewport.
4245
:type viewport: (optional) ask_sdk_model.interfaces.viewport.viewport_state.ViewportState
4346
@@ -46,18 +49,20 @@ class Context(object):
4649
'system': 'ask_sdk_model.interfaces.system.system_state.SystemState',
4750
'audio_player': 'ask_sdk_model.interfaces.audioplayer.audio_player_state.AudioPlayerState',
4851
'display': 'ask_sdk_model.interfaces.display.display_state.DisplayState',
52+
'geolocation': 'ask_sdk_model.interfaces.geolocation.geolocation_state.GeolocationState',
4953
'viewport': 'ask_sdk_model.interfaces.viewport.viewport_state.ViewportState'
5054
}
5155

5256
attribute_map = {
5357
'system': 'System',
5458
'audio_player': 'AudioPlayer',
5559
'display': 'Display',
60+
'geolocation': 'Geolocation',
5661
'viewport': 'Viewport'
5762
}
5863

59-
def __init__(self, system=None, audio_player=None, display=None, viewport=None):
60-
# type: (Optional[SystemState], Optional[AudioPlayerState], Optional[DisplayState], Optional[ViewportState]) -> None
64+
def __init__(self, system=None, audio_player=None, display=None, geolocation=None, viewport=None):
65+
# type: (Optional[SystemState], Optional[AudioPlayerState], Optional[DisplayState], Optional[GeolocationState], Optional[ViewportState]) -> None
6166
"""
6267
6368
:param system: Provides information about the current state of the Alexa service and the device interacting with your skill.
@@ -66,6 +71,8 @@ def __init__(self, system=None, audio_player=None, display=None, viewport=None):
6671
:type audio_player: (optional) ask_sdk_model.interfaces.audioplayer.audio_player_state.AudioPlayerState
6772
:param display: Provides the current state for the Display interface.
6873
:type display: (optional) ask_sdk_model.interfaces.display.display_state.DisplayState
74+
:param geolocation: Provides the last gathered geolocation information of the device.
75+
:type geolocation: (optional) ask_sdk_model.interfaces.geolocation.geolocation_state.GeolocationState
6976
:param viewport: Provides the characteristics of a device's viewport.
7077
:type viewport: (optional) ask_sdk_model.interfaces.viewport.viewport_state.ViewportState
7178
"""
@@ -74,6 +81,7 @@ def __init__(self, system=None, audio_player=None, display=None, viewport=None):
7481
self.system = system
7582
self.audio_player = audio_player
7683
self.display = display
84+
self.geolocation = geolocation
7785
self.viewport = viewport
7886

7987
def to_dict(self):

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class AccountLinkedRequest(Request):
3636
:type request_id: (optional) str
3737
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
3838
:type timestamp: (optional) datetime
39+
:param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types.
40+
:type locale: (optional) str
3941
:param body:
4042
:type body: (optional) ask_sdk_model.events.skillevents.account_linked_body.AccountLinkedBody
4143
:param event_creation_time:
@@ -48,6 +50,7 @@ class AccountLinkedRequest(Request):
4850
'object_type': 'str',
4951
'request_id': 'str',
5052
'timestamp': 'datetime',
53+
'locale': 'str',
5154
'body': 'ask_sdk_model.events.skillevents.account_linked_body.AccountLinkedBody',
5255
'event_creation_time': 'datetime',
5356
'event_publishing_time': 'datetime'
@@ -57,19 +60,22 @@ class AccountLinkedRequest(Request):
5760
'object_type': 'type',
5861
'request_id': 'requestId',
5962
'timestamp': 'timestamp',
63+
'locale': 'locale',
6064
'body': 'body',
6165
'event_creation_time': 'eventCreationTime',
6266
'event_publishing_time': 'eventPublishingTime'
6367
}
6468

65-
def __init__(self, request_id=None, timestamp=None, body=None, event_creation_time=None, event_publishing_time=None):
66-
# type: (Optional[str], Optional[datetime], Optional[AccountLinkedBody], Optional[datetime], Optional[datetime]) -> None
69+
def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None):
70+
# type: (Optional[str], Optional[datetime], Optional[str], Optional[AccountLinkedBody], Optional[datetime], Optional[datetime]) -> None
6771
"""This event indicates that a customer has linked an account in a third-party application with the Alexa app. This event is useful for an application that support out-of-session (non-voice) user interactions so that this application can be notified when the internal customer can be associated with the Alexa customer. This event is required for many applications that synchronize customer Alexa lists with application lists. During the account linking process, the Alexa app directs the user to the skill website where the customer logs in. When the customer logs in, the skill then provides an access token and a consent token to Alexa. The event includes the same access token and consent token.
6872
6973
:param request_id: Represents the unique identifier for the specific request.
7074
:type request_id: (optional) str
7175
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
7276
:type timestamp: (optional) datetime
77+
:param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types.
78+
:type locale: (optional) str
7379
:param body:
7480
:type body: (optional) ask_sdk_model.events.skillevents.account_linked_body.AccountLinkedBody
7581
:param event_creation_time:
@@ -80,7 +86,7 @@ def __init__(self, request_id=None, timestamp=None, body=None, event_creation_ti
8086
self.__discriminator_value = "AlexaSkillEvent.SkillAccountLinked"
8187

8288
self.object_type = self.__discriminator_value
83-
super(AccountLinkedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp)
89+
super(AccountLinkedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale)
8490
self.body = body
8591
self.event_creation_time = event_creation_time
8692
self.event_publishing_time = event_publishing_time

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class PermissionAcceptedRequest(Request):
3434
:type request_id: (optional) str
3535
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
3636
:type timestamp: (optional) datetime
37+
:param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types.
38+
:type locale: (optional) str
3739
:param body:
3840
:type body: (optional) ask_sdk_model.events.skillevents.permission_body.PermissionBody
3941
:param event_creation_time:
@@ -46,6 +48,7 @@ class PermissionAcceptedRequest(Request):
4648
'object_type': 'str',
4749
'request_id': 'str',
4850
'timestamp': 'datetime',
51+
'locale': 'str',
4952
'body': 'ask_sdk_model.events.skillevents.permission_body.PermissionBody',
5053
'event_creation_time': 'datetime',
5154
'event_publishing_time': 'datetime'
@@ -55,19 +58,22 @@ class PermissionAcceptedRequest(Request):
5558
'object_type': 'type',
5659
'request_id': 'requestId',
5760
'timestamp': 'timestamp',
61+
'locale': 'locale',
5862
'body': 'body',
5963
'event_creation_time': 'eventCreationTime',
6064
'event_publishing_time': 'eventPublishingTime'
6165
}
6266

63-
def __init__(self, request_id=None, timestamp=None, body=None, event_creation_time=None, event_publishing_time=None):
64-
# type: (Optional[str], Optional[datetime], Optional[PermissionBody], Optional[datetime], Optional[datetime]) -> None
67+
def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None):
68+
# type: (Optional[str], Optional[datetime], Optional[str], Optional[PermissionBody], Optional[datetime], Optional[datetime]) -> None
6569
"""
6670
6771
:param request_id: Represents the unique identifier for the specific request.
6872
:type request_id: (optional) str
6973
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
7074
:type timestamp: (optional) datetime
75+
:param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types.
76+
:type locale: (optional) str
7177
:param body:
7278
:type body: (optional) ask_sdk_model.events.skillevents.permission_body.PermissionBody
7379
:param event_creation_time:
@@ -78,7 +84,7 @@ def __init__(self, request_id=None, timestamp=None, body=None, event_creation_ti
7884
self.__discriminator_value = "AlexaSkillEvent.SkillPermissionAccepted"
7985

8086
self.object_type = self.__discriminator_value
81-
super(PermissionAcceptedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp)
87+
super(PermissionAcceptedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale)
8288
self.body = body
8389
self.event_creation_time = event_creation_time
8490
self.event_publishing_time = event_publishing_time

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class PermissionChangedRequest(Request):
3434
:type request_id: (optional) str
3535
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
3636
:type timestamp: (optional) datetime
37+
:param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types.
38+
:type locale: (optional) str
3739
:param body:
3840
:type body: (optional) ask_sdk_model.events.skillevents.permission_body.PermissionBody
3941
:param event_creation_time:
@@ -46,6 +48,7 @@ class PermissionChangedRequest(Request):
4648
'object_type': 'str',
4749
'request_id': 'str',
4850
'timestamp': 'datetime',
51+
'locale': 'str',
4952
'body': 'ask_sdk_model.events.skillevents.permission_body.PermissionBody',
5053
'event_creation_time': 'datetime',
5154
'event_publishing_time': 'datetime'
@@ -55,19 +58,22 @@ class PermissionChangedRequest(Request):
5558
'object_type': 'type',
5659
'request_id': 'requestId',
5760
'timestamp': 'timestamp',
61+
'locale': 'locale',
5862
'body': 'body',
5963
'event_creation_time': 'eventCreationTime',
6064
'event_publishing_time': 'eventPublishingTime'
6165
}
6266

63-
def __init__(self, request_id=None, timestamp=None, body=None, event_creation_time=None, event_publishing_time=None):
64-
# type: (Optional[str], Optional[datetime], Optional[PermissionBody], Optional[datetime], Optional[datetime]) -> None
67+
def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None):
68+
# type: (Optional[str], Optional[datetime], Optional[str], Optional[PermissionBody], Optional[datetime], Optional[datetime]) -> None
6569
"""
6670
6771
:param request_id: Represents the unique identifier for the specific request.
6872
:type request_id: (optional) str
6973
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
7074
:type timestamp: (optional) datetime
75+
:param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types.
76+
:type locale: (optional) str
7177
:param body:
7278
:type body: (optional) ask_sdk_model.events.skillevents.permission_body.PermissionBody
7379
:param event_creation_time:
@@ -78,7 +84,7 @@ def __init__(self, request_id=None, timestamp=None, body=None, event_creation_ti
7884
self.__discriminator_value = "AlexaSkillEvent.SkillPermissionChanged"
7985

8086
self.object_type = self.__discriminator_value
81-
super(PermissionChangedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp)
87+
super(PermissionChangedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale)
8288
self.body = body
8389
self.event_creation_time = event_creation_time
8490
self.event_publishing_time = event_publishing_time

0 commit comments

Comments
 (0)