Skip to content

Commit

Permalink
Release 1.14.0. For changelog, check CHANGELOG.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyas-vgr committed Oct 27, 2021
1 parent 9a29b6b commit 5a7b1ba
Show file tree
Hide file tree
Showing 12 changed files with 669 additions and 11 deletions.
7 changes: 7 additions & 0 deletions ask-smapi-model/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,10 @@ This release contains the following changes :
This release contains the following changes :

- Updating model definitions for maxResults and simulationType.

1.14.0
^^^^^^

This release contains the following changes :

- Updating model definitions for `App link interfaces <https://developer.amazon.com/en-US/docs/alexa/alexa-for-apps/skill-manifest-reference.html>`__.
5 changes: 2 additions & 3 deletions ask-smapi-model/ask_smapi_model/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
__pip_package_name__ = 'ask-smapi-model'
__description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.'
__url__ = 'https://github.com/alexa/alexa-apis-for-python'
__version__ = '1.13.1'
__version__ = '1.14.0'
__author__ = 'Alexa Skills Kit'
__author_email__ = 'ask-sdk-dynamic@amazon.com'
__license__ = 'Apache 2.0'
__keywords__ = ['SMAPI SDK', 'ASK SDK', 'Alexa Skills Kit', 'Alexa', 'Models', 'Smapi']

__keywords__ = ['SMAPI SDK', 'ASK SDK', 'Alexa Skills Kit', 'Alexa', 'Models', 'Smapi']
7 changes: 7 additions & 0 deletions ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,17 @@
from .app_link_interface import AppLinkInterface
from .catalog_type import CatalogType
from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion
from .linked_common_schemes import LinkedCommonSchemes
from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager
from .flash_briefing_genre import FlashBriefingGenre
from .app_link_v2_interface import AppLinkV2Interface
from .linked_android_common_intent import LinkedAndroidCommonIntent
from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface
from .subscription_payment_frequency import SubscriptionPaymentFrequency
from .video_apis_locale import VideoApisLocale
from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName
from .paid_skill_information import PaidSkillInformation
from .android_custom_intent import AndroidCustomIntent
from .ssl_certificate_type import SSLCertificateType
from .music_request import MusicRequest
from .video_catalog_info import VideoCatalogInfo
Expand All @@ -91,6 +94,7 @@
from .offer_type import OfferType
from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest
from .friendly_name import FriendlyName
from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName
from .health_interface import HealthInterface
from .authorized_client import AuthorizedClient
from .permission_items import PermissionItems
Expand All @@ -103,10 +107,12 @@
from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale
from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement
from .authorized_client_lwa import AuthorizedClientLwa
from .play_store_common_scheme_name import PlayStoreCommonSchemeName
from .event_name_type import EventNameType
from .video_prompt_name_type import VideoPromptNameType
from .voice_profile_feature import VoiceProfileFeature
from .tax_information_category import TaxInformationCategory
from .catalog_name import CatalogName
from .smart_home_apis import SmartHomeApis
from .currency import Currency
from .flash_briefing_apis import FlashBriefingApis
Expand All @@ -130,3 +136,4 @@
from .video_app_interface import VideoAppInterface
from .video_apis import VideoApis
from .display_interface_template_version import DisplayInterfaceTemplateVersion
from .android_common_intent_name import AndroidCommonIntentName
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# coding: utf-8

#
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for
# the specific language governing permissions and limitations under the License.
#

import pprint
import re # noqa: F401
import six
import typing
from enum import Enum


if typing.TYPE_CHECKING:
from typing import Dict, List, Optional, Union, Any
from datetime import datetime


class AndroidCommonIntentName(Enum):
"""
Supported android common intent. Each of the value maps to a common intent defined in https://developer.android.com/guide/components/intents-common.
Allowed enum values: [SHOW_IN_MAP, ADD_CALENDAR_EVENT, PLAY_MEDIA, START_PHONE_CALL, OPEN_SETTINGS]
"""
SHOW_IN_MAP = "SHOW_IN_MAP"
ADD_CALENDAR_EVENT = "ADD_CALENDAR_EVENT"
PLAY_MEDIA = "PLAY_MEDIA"
START_PHONE_CALL = "START_PHONE_CALL"
OPEN_SETTINGS = "OPEN_SETTINGS"

def to_dict(self):
# type: () -> Dict[str, Any]
"""Returns the model properties as a dict"""
result = {self.name: self.value}
return result

def to_str(self):
# type: () -> str
"""Returns the string representation of the model"""
return pprint.pformat(self.value)

def __repr__(self):
# type: () -> str
"""For `print` and `pprint`"""
return self.to_str()

def __eq__(self, other):
# type: (Any) -> bool
"""Returns true if both objects are equal"""
if not isinstance(other, AndroidCommonIntentName):
return False

return self.__dict__ == other.__dict__

def __ne__(self, other):
# type: (Any) -> bool
"""Returns true if both objects are not equal"""
return not self == other
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# coding: utf-8

#
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for
# the specific language governing permissions and limitations under the License.
#

import pprint
import re # noqa: F401
import six
import typing
from enum import Enum


if typing.TYPE_CHECKING:
from typing import Dict, List, Optional, Union, Any
from datetime import datetime


class AndroidCustomIntent(object):
"""
Android custom intent
:param component: android component name
:type component: (optional) str
:param action: android intent action
:type action: (optional) str
"""
deserialized_types = {
'component': 'str',
'action': 'str'
} # type: Dict

attribute_map = {
'component': 'component',
'action': 'action'
} # type: Dict
supports_multiple_types = False

def __init__(self, component=None, action=None):
# type: (Optional[str], Optional[str]) -> None
"""Android custom intent
:param component: android component name
:type component: (optional) str
:param action: android intent action
:type action: (optional) str
"""
self.__discriminator_value = None # type: str

self.component = component
self.action = action

def to_dict(self):
# type: () -> Dict[str, object]
"""Returns the model properties as a dict"""
result = {} # type: Dict

for attr, _ in six.iteritems(self.deserialized_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else
x.value if isinstance(x, Enum) else x,
value
))
elif isinstance(value, Enum):
result[attr] = value.value
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else
(item[0], item[1].value)
if isinstance(item[1], Enum) else item,
value.items()
))
else:
result[attr] = value

return result

def to_str(self):
# type: () -> str
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())

def __repr__(self):
# type: () -> str
"""For `print` and `pprint`"""
return self.to_str()

def __eq__(self, other):
# type: (object) -> bool
"""Returns true if both objects are equal"""
if not isinstance(other, AndroidCustomIntent):
return False

return self.__dict__ == other.__dict__

def __ne__(self, other):
# type: (object) -> bool
"""Returns true if both objects are not equal"""
return not self == other
31 changes: 27 additions & 4 deletions ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
if typing.TYPE_CHECKING:
from typing import Dict, List, Optional, Union, Any
from datetime import datetime
from ask_smapi_model.v1.skill.manifest.linked_android_common_intent import LinkedAndroidCommonIntent as LinkedAndroidCommonIntent_f1721a22
from ask_smapi_model.v1.skill.manifest.linked_common_schemes import LinkedCommonSchemes as LinkedCommonSchemes_14e98c23
from ask_smapi_model.v1.skill.manifest.linked_application import LinkedApplication as LinkedApplication_85efe66c


Expand All @@ -33,27 +35,48 @@ class AppLink(object):
:param linked_applications: Allows developers to declare their Skill will use Alexa App Links, and list relevant apps. This field is required when using the APP_LINK interface.
:type linked_applications: (optional) list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication]
:param linked_web_domains: Allow developer to decalre their skill to link to the declared web domains.
:type linked_web_domains: (optional) list[str]
:param linked_android_common_intents: Allow developer to declare their skill to link to the speicified android common intents.
:type linked_android_common_intents: (optional) list[ask_smapi_model.v1.skill.manifest.linked_android_common_intent.LinkedAndroidCommonIntent]
:param linked_common_schemes:
:type linked_common_schemes: (optional) ask_smapi_model.v1.skill.manifest.linked_common_schemes.LinkedCommonSchemes
"""
deserialized_types = {
'linked_applications': 'list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication]'
'linked_applications': 'list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication]',
'linked_web_domains': 'list[str]',
'linked_android_common_intents': 'list[ask_smapi_model.v1.skill.manifest.linked_android_common_intent.LinkedAndroidCommonIntent]',
'linked_common_schemes': 'ask_smapi_model.v1.skill.manifest.linked_common_schemes.LinkedCommonSchemes'
} # type: Dict

attribute_map = {
'linked_applications': 'linkedApplications'
'linked_applications': 'linkedApplications',
'linked_web_domains': 'linkedWebDomains',
'linked_android_common_intents': 'linkedAndroidCommonIntents',
'linked_common_schemes': 'linkedCommonSchemes'
} # type: Dict
supports_multiple_types = False

def __init__(self, linked_applications=None):
# type: (Optional[List[LinkedApplication_85efe66c]]) -> None
def __init__(self, linked_applications=None, linked_web_domains=None, linked_android_common_intents=None, linked_common_schemes=None):
# type: (Optional[List[LinkedApplication_85efe66c]], Optional[List[object]], Optional[List[LinkedAndroidCommonIntent_f1721a22]], Optional[LinkedCommonSchemes_14e98c23]) -> None
"""Details required for app linking use cases.
:param linked_applications: Allows developers to declare their Skill will use Alexa App Links, and list relevant apps. This field is required when using the APP_LINK interface.
:type linked_applications: (optional) list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication]
:param linked_web_domains: Allow developer to decalre their skill to link to the declared web domains.
:type linked_web_domains: (optional) list[str]
:param linked_android_common_intents: Allow developer to declare their skill to link to the speicified android common intents.
:type linked_android_common_intents: (optional) list[ask_smapi_model.v1.skill.manifest.linked_android_common_intent.LinkedAndroidCommonIntent]
:param linked_common_schemes:
:type linked_common_schemes: (optional) ask_smapi_model.v1.skill.manifest.linked_common_schemes.LinkedCommonSchemes
"""
self.__discriminator_value = None # type: str

self.linked_applications = linked_applications
self.linked_web_domains = linked_web_domains
self.linked_android_common_intents = linked_android_common_intents
self.linked_common_schemes = linked_common_schemes

def to_dict(self):
# type: () -> Dict[str, object]
Expand Down
64 changes: 64 additions & 0 deletions ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# coding: utf-8

#
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for
# the specific language governing permissions and limitations under the License.
#

import pprint
import re # noqa: F401
import six
import typing
from enum import Enum


if typing.TYPE_CHECKING:
from typing import Dict, List, Optional, Union, Any
from datetime import datetime


class CatalogName(Enum):
"""
Allowed enum values: [IOS_APP_STORE, GOOGLE_PLAY_STORE]
"""
IOS_APP_STORE = "IOS_APP_STORE"
GOOGLE_PLAY_STORE = "GOOGLE_PLAY_STORE"

def to_dict(self):
# type: () -> Dict[str, Any]
"""Returns the model properties as a dict"""
result = {self.name: self.value}
return result

def to_str(self):
# type: () -> str
"""Returns the string representation of the model"""
return pprint.pformat(self.value)

def __repr__(self):
# type: () -> str
"""For `print` and `pprint`"""
return self.to_str()

def __eq__(self, other):
# type: (Any) -> bool
"""Returns true if both objects are equal"""
if not isinstance(other, CatalogName):
return False

return self.__dict__ == other.__dict__

def __ne__(self, other):
# type: (Any) -> bool
"""Returns true if both objects are not equal"""
return not self == other
Loading

0 comments on commit 5a7b1ba

Please sign in to comment.