Skip to content

Commit 9a29b6b

Browse files
Release 1.32.0. For changelog, check CHANGELOG.rst (#18)
Co-authored-by: Shreyas Govinda Raju <shreraju@amazon.com>
1 parent bfe5e69 commit 9a29b6b

File tree

61 files changed

+881
-328
lines changed

Some content is hidden

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

61 files changed

+881
-328
lines changed

ask-sdk-model/CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,3 +406,9 @@ This release contains the following changes :
406406

407407
- Updating model definitions
408408

409+
1.32.0
410+
^^^^^^
411+
412+
This release contains the following changes :
413+
414+
- Models and support for `App Link Interfaces <https://developer.amazon.com/en-US/docs/alexa/alexa-for-apps/skill-connection-request-reference.html>`__.

ask-sdk-model/ask_sdk_model/__init__.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,37 @@
1414
#
1515
from __future__ import absolute_import
1616

17-
from .intent_request import IntentRequest
18-
from .permission_status import PermissionStatus
19-
from .simple_slot_value import SimpleSlotValue
17+
from .intent import Intent
18+
from .user import User
2019
from .list_slot_value import ListSlotValue
21-
from .application import Application
22-
from .permissions import Permissions
20+
from .task import Task
2321
from .slot_confirmation_status import SlotConfirmationStatus
22+
from .person import Person
2423
from .connection_completed import ConnectionCompleted
25-
from .slot import Slot
26-
from .task import Task
27-
from .intent_confirmation_status import IntentConfirmationStatus
28-
from .supported_interfaces import SupportedInterfaces
29-
from .session_ended_error import SessionEndedError
30-
from .status import Status
31-
from .response import Response
32-
from .directive import Directive
3324
from .device import Device
34-
from .session_ended_reason import SessionEndedReason
35-
from .user import User
36-
from .scope import Scope
37-
from .dialog_state import DialogState
38-
from .slot_value import SlotValue
25+
from .session_ended_error import SessionEndedError
26+
from .simple_slot_value import SimpleSlotValue
27+
from .supported_interfaces import SupportedInterfaces
3928
from .launch_request import LaunchRequest
4029
from .session import Session
30+
from .request import Request
31+
from .session_ended_reason import SessionEndedReason
32+
from .slot import Slot
33+
from .cause import Cause
34+
from .response import Response
4135
from .session_resumed_request import SessionResumedRequest
36+
from .slot_value import SlotValue
37+
from .application import Application
38+
from .session_ended_error_type import SessionEndedErrorType
39+
from .dialog_state import DialogState
40+
from .permission_status import PermissionStatus
41+
from .intent_confirmation_status import IntentConfirmationStatus
42+
from .context import Context
4243
from .response_envelope import ResponseEnvelope
43-
from .request import Request
44+
from .permissions import Permissions
45+
from .directive import Directive
4446
from .session_ended_request import SessionEndedRequest
45-
from .context import Context
46-
from .person import Person
47-
from .cause import Cause
4847
from .request_envelope import RequestEnvelope
49-
from .session_ended_error_type import SessionEndedErrorType
50-
from .intent import Intent
48+
from .intent_request import IntentRequest
49+
from .scope import Scope
50+
from .status import Status

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.31.1'
17+
__version__ = '1.32.0'
1818
__author__ = 'Alexa Skills Kit'
1919
__author_email__ = 'ask-sdk-dynamic@amazon.com'
2020
__license__ = 'Apache 2.0'

ask-sdk-model/ask_sdk_model/authorization/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
from __future__ import absolute_import
1616

17-
from .grant_type import GrantType
1817
from .authorization_grant_request import AuthorizationGrantRequest
19-
from .grant import Grant
2018
from .authorization_grant_body import AuthorizationGrantBody
19+
from .grant import Grant
20+
from .grant_type import GrantType

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#
1515
from __future__ import absolute_import
1616

17-
from .can_fulfill_slot import CanFulfillSlot
18-
from .can_fulfill_intent import CanFulfillIntent
19-
from .can_fulfill_intent_request import CanFulfillIntentRequest
20-
from .can_fulfill_intent_values import CanFulfillIntentValues
2117
from .can_understand_slot_values import CanUnderstandSlotValues
18+
from .can_fulfill_intent_request import CanFulfillIntentRequest
19+
from .can_fulfill_intent import CanFulfillIntent
2220
from .can_fulfill_slot_values import CanFulfillSlotValues
21+
from .can_fulfill_intent_values import CanFulfillIntentValues
22+
from .can_fulfill_slot import CanFulfillSlot

ask-sdk-model/ask_sdk_model/context.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from ask_sdk_model.interfaces.audioplayer.audio_player_state import AudioPlayerState as AudioPlayerState_ac652451
3030
from ask_sdk_model.interfaces.automotive.automotive_state import AutomotiveState as AutomotiveState_2b614eea
3131
from ask_sdk_model.interfaces.alexa.extension.extensions_state import ExtensionsState as ExtensionsState_f02207d3
32+
from ask_sdk_model.interfaces.applink.app_link_state import AppLinkState as AppLinkState_370eda23
3233
from ask_sdk_model.interfaces.geolocation.geolocation_state import GeolocationState as GeolocationState_5225020d
3334
from ask_sdk_model.interfaces.system.system_state import SystemState as SystemState_22fcb230
3435
from ask_sdk_model.interfaces.display.display_state import DisplayState as DisplayState_726e4959
@@ -55,6 +56,8 @@ class Context(object):
5556
:type viewports: (optional) list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState]
5657
:param extensions: Provides the current state for Extensions interface
5758
:type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState
59+
:param app_link: Provides the current state for app link capability.
60+
:type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_state.AppLinkState
5861
5962
"""
6063
deserialized_types = {
@@ -66,7 +69,8 @@ class Context(object):
6669
'geolocation': 'ask_sdk_model.interfaces.geolocation.geolocation_state.GeolocationState',
6770
'viewport': 'ask_sdk_model.interfaces.viewport.viewport_state.ViewportState',
6871
'viewports': 'list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState]',
69-
'extensions': 'ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState'
72+
'extensions': 'ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState',
73+
'app_link': 'ask_sdk_model.interfaces.applink.app_link_state.AppLinkState'
7074
} # type: Dict
7175

7276
attribute_map = {
@@ -78,12 +82,13 @@ class Context(object):
7882
'geolocation': 'Geolocation',
7983
'viewport': 'Viewport',
8084
'viewports': 'Viewports',
81-
'extensions': 'Extensions'
85+
'extensions': 'Extensions',
86+
'app_link': 'AppLink'
8287
} # type: Dict
8388
supports_multiple_types = False
8489

85-
def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None):
86-
# type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3]) -> None
90+
def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None, app_link=None):
91+
# type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3], Optional[AppLinkState_370eda23]) -> None
8792
"""
8893
8994
:param system: Provides information about the current state of the Alexa service and the device interacting with your skill.
@@ -104,6 +109,8 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None,
104109
:type viewports: (optional) list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState]
105110
:param extensions: Provides the current state for Extensions interface
106111
:type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState
112+
:param app_link: Provides the current state for app link capability.
113+
:type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_state.AppLinkState
107114
"""
108115
self.__discriminator_value = None # type: str
109116

@@ -116,6 +123,7 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None,
116123
self.viewport = viewport
117124
self.viewports = viewports
118125
self.extensions = extensions
126+
self.app_link = app_link
119127

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

ask-sdk-model/ask_sdk_model/device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Device(object):
3131
An object providing information about the device used to send the request. The device object contains both deviceId and supportedInterfaces properties. The deviceId property uniquely identifies the device. The supportedInterfaces property lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface.
3232
3333
34-
:param device_id: The deviceId property uniquely identifies the device.
34+
:param device_id: The deviceId property uniquely identifies the device. This identifier is scoped to a skill. Normally, disabling and re-enabling a skill generates a new identifier.
3535
:type device_id: (optional) str
3636
:param supported_interfaces: Lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface
3737
:type supported_interfaces: (optional) ask_sdk_model.supported_interfaces.SupportedInterfaces
@@ -52,7 +52,7 @@ def __init__(self, device_id=None, supported_interfaces=None):
5252
# type: (Optional[str], Optional[SupportedInterfaces_8ec830f5]) -> None
5353
"""An object providing information about the device used to send the request. The device object contains both deviceId and supportedInterfaces properties. The deviceId property uniquely identifies the device. The supportedInterfaces property lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface.
5454
55-
:param device_id: The deviceId property uniquely identifies the device.
55+
:param device_id: The deviceId property uniquely identifies the device. This identifier is scoped to a skill. Normally, disabling and re-enabling a skill generates a new identifier.
5656
:type device_id: (optional) str
5757
:param supported_interfaces: Lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface
5858
:type supported_interfaces: (optional) ask_sdk_model.supported_interfaces.SupportedInterfaces

ask-sdk-model/ask_sdk_model/dialog/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
#
1515
from __future__ import absolute_import
1616

17+
from .confirm_intent_directive import ConfirmIntentDirective
18+
from .updated_request import UpdatedRequest
1719
from .delegate_directive import DelegateDirective
18-
from .delegation_period import DelegationPeriod
20+
from .delegate_request_directive import DelegateRequestDirective
1921
from .input_request import InputRequest
20-
from .confirm_slot_directive import ConfirmSlotDirective
2122
from .elicit_slot_directive import ElicitSlotDirective
22-
from .updated_request import UpdatedRequest
2323
from .input import Input
24+
from .delegation_period import DelegationPeriod
2425
from .updated_input_request import UpdatedInputRequest
25-
from .delegation_period_until import DelegationPeriodUntil
26-
from .confirm_intent_directive import ConfirmIntentDirective
27-
from .updated_intent_request import UpdatedIntentRequest
28-
from .delegate_request_directive import DelegateRequestDirective
2926
from .dynamic_entities_directive import DynamicEntitiesDirective
27+
from .confirm_slot_directive import ConfirmSlotDirective
28+
from .updated_intent_request import UpdatedIntentRequest
29+
from .delegation_period_until import DelegationPeriodUntil

ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
from __future__ import absolute_import
1616

17-
from .base_response import BaseResponse
1817
from .success_response import SuccessResponse
19-
from .failure_response import FailureResponse
18+
from .base_response import BaseResponse
2019
from .request import Request
20+
from .failure_response import FailureResponse

ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
from __future__ import absolute_import
1616

17-
from .entity_value_and_synonyms import EntityValueAndSynonyms
1817
from .update_behavior import UpdateBehavior
18+
from .entity_value_and_synonyms import EntityValueAndSynonyms
1919
from .entity_list_item import EntityListItem
2020
from .entity import Entity

0 commit comments

Comments
 (0)