Skip to content

Commit

Permalink
Release 1.1.1. For changelog, check CHANGELOG.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
ask-pyth committed Mar 2, 2020
1 parent 2cba039 commit d74c073
Show file tree
Hide file tree
Showing 40 changed files with 242 additions and 595 deletions.
9 changes: 9 additions & 0 deletions ask-smapi-model/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ This release contains the following changes :

- Add model definitions for new `APIS related to slot type management <https://developer.amazon.com/en-US/docs/alexa/smapi/create-a-slot-type-to-use-in-multiple-skills.html>`__. Skill developers can create slot types outside the context of a skill and use it across multiple skills.



1.1.1
^^^^^

This release contains the following changes :

- Updated properties for `skill response <https://developer.amazon.com/en-US/docs/alexa/smapi/skill-operations.html#response-4>`__ in `ListSkills` API.
- Updated interaction model values for `validation rules <https://developer.amazon.com/en-US/docs/alexa/custom-skills/validate-slot-values.html#validation-rules>`__.
2 changes: 1 addition & 1 deletion ask-smapi-model/ask_smapi_model/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
__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.1.0'
__version__ = '1.1.1'
__author__ = 'Alexa Skills Kit'
__author_email__ = 'ask-sdk-dynamic@amazon.com'
__license__ = 'Apache 2.0'
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ask-smapi-model/ask_smapi_model/v1/skill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from .ssl_certificate_payload import SSLCertificatePayload
from .build_step import BuildStep
from .interface_intent import InterfaceIntent
from .publication_status import PublicationStatus
from .interface_definition import InterfaceDefinition
from .standardized_error import StandardizedError
from .validation_details import ValidationDetails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
from .dialog_prompts import DialogPrompts
from .prompt_items import PromptItems
from .has_entity_resolution_match import HasEntityResolutionMatch
from .value_catalog_slot import ValueCatalogSlot
from .is_less_than import IsLessThan
from .is_not_in_set import IsNotInSet
from .dialog_intents import DialogIntents
from .interaction_model_schema import InteractionModelSchema
from .value_catalog import ValueCatalog
from .is_greater_than import IsGreaterThan
from .catalog_value_supplier_slot import CatalogValueSupplierSlot
from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo
from .slot_definition import SlotDefinition
from .interaction_model_data import InteractionModelData
Expand All @@ -40,7 +38,6 @@
from .value_supplier import ValueSupplier
from .prompt_items_type import PromptItemsType
from .language_model import LanguageModel
from .value_supplier_slot import ValueSupplierSlot
from .dialog_slot_items import DialogSlotItems
from .dialog import Dialog
from .prompt import Prompt
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, prompt=None):
:param prompt: The prompt id that should be used if validation fails.
:type prompt: (optional) str
"""
self.__discriminator_value = "HasEntityResolutionMatch" # type: str
self.__discriminator_value = "hasEntityResolutionMatch" # type: str

self.object_type = self.__discriminator_value
super(HasEntityResolutionMatch, self).__init__(object_type=self.__discriminator_value, prompt=prompt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import six
import typing
from enum import Enum
from ask_smapi_model.v1.skill.interaction_model.value_supplier_slot import ValueSupplierSlot
from ask_smapi_model.v1.skill.interaction_model.value_supplier import ValueSupplier


if typing.TYPE_CHECKING:
Expand All @@ -27,7 +27,7 @@
from ask_smapi_model.v1.skill.interaction_model.type_value import TypeValue


class InlineValueSupplier(ValueSupplierSlot):
class InlineValueSupplier(ValueSupplier):
"""
Supplies inline slot type values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, prompt=None, value=None):
:param value: Value to compare to.
:type value: (optional) str
"""
self.__discriminator_value = "IsGreaterThan" # type: str
self.__discriminator_value = "isGreaterThan" # type: str

self.object_type = self.__discriminator_value
super(IsGreaterThan, self).__init__(object_type=self.__discriminator_value, prompt=prompt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, prompt=None, value=None):
:param value: Value to compare to.
:type value: (optional) str
"""
self.__discriminator_value = "IsGreaterThanOrEqualTo" # type: str
self.__discriminator_value = "isGreaterThanOrEqualTo" # type: str

self.object_type = self.__discriminator_value
super(IsGreaterThanOrEqualTo, self).__init__(object_type=self.__discriminator_value, prompt=prompt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, prompt=None, start=None, end=None):
:param end: * &#x60;AMAZON.DATE&#x60;: ISO 8601 Duration using Y, M or D components or ISO 8601 Calendar Date in YYYY-MM-DD format. * &#x60;AMAZON.TIME&#x60;: ISO 8601 Duration using H or M component or ISO 8601 24-Hour Clock Time in hh:mm format.
:type end: (optional) str
"""
self.__discriminator_value = "IsInDuration" # type: str
self.__discriminator_value = "isInDuration" # type: str

self.object_type = self.__discriminator_value
super(IsInDuration, self).__init__(object_type=self.__discriminator_value, prompt=prompt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, prompt=None, values=None):
:param values: List of values to check.
:type values: (optional) list[str]
"""
self.__discriminator_value = "IsInSet" # type: str
self.__discriminator_value = "isInSet" # type: str

self.object_type = self.__discriminator_value
super(IsInSet, self).__init__(object_type=self.__discriminator_value, prompt=prompt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, prompt=None, value=None):
:param value: Value to compare to.
:type value: (optional) str
"""
self.__discriminator_value = "IsLessThan" # type: str
self.__discriminator_value = "isLessThan" # type: str

self.object_type = self.__discriminator_value
super(IsLessThan, self).__init__(object_type=self.__discriminator_value, prompt=prompt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, prompt=None, value=None):
:param value: Value to compare to.
:type value: (optional) str
"""
self.__discriminator_value = "IsLessThanOrEqualTo" # type: str
self.__discriminator_value = "isLessThanOrEqualTo" # type: str

self.object_type = self.__discriminator_value
super(IsLessThanOrEqualTo, self).__init__(object_type=self.__discriminator_value, prompt=prompt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, prompt=None, start=None, end=None):
:param end: * &#x60;AMAZON.DATE&#x60;: ISO 8601 Duration using Y, M or D components or ISO 8601 Calendar Date in YYYY-MM-DD format. * &#x60;AMAZON.TIME&#x60;: ISO 8601 Duration using H or M component or ISO 8601 24-Hour Clock Time in hh:mm format.
:type end: (optional) str
"""
self.__discriminator_value = "IsNotInDuration" # type: str
self.__discriminator_value = "isNotInDuration" # type: str

self.object_type = self.__discriminator_value
super(IsNotInDuration, self).__init__(object_type=self.__discriminator_value, prompt=prompt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, prompt=None, values=None):
:param values: List of values to check.
:type values: (optional) list[str]
"""
self.__discriminator_value = "IsNotInSet" # type: str
self.__discriminator_value = "isNotInSet" # type: str

self.object_type = self.__discriminator_value
super(IsNotInSet, self).__init__(object_type=self.__discriminator_value, prompt=prompt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
from __future__ import absolute_import

from .slot_type_entity import SlotTypeEntity
from .slot_type_response import SlotTypeResponse
from .error import Error
from .warning import Warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

class BadRequest(object):
"""
The body of the bad request exception
The body of the bad request exception.
:param errors:
Expand All @@ -51,7 +51,7 @@ class BadRequest(object):

def __init__(self, errors=None, warnings=None):
# type: (Optional[List[Error]], Optional[List[Warning]]) -> None
"""The body of the bad request exception
"""The body of the bad request exception.
:param errors:
:type errors: (optional) list[ask_smapi_model.v1.skill.interaction_model.model_type.error.Error]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

class Error(object):
"""
The Error which would fail requests
The error which would fail requests.
:param code: The error code
:param code: The error code.
:type code: (optional) str
:param message: The error message
:param message: The error message.
:type message: (optional) str
"""
Expand All @@ -49,11 +49,11 @@ class Error(object):

def __init__(self, code=None, message=None):
# type: (Optional[str], Optional[str]) -> None
"""The Error which would fail requests
"""The error which would fail requests.
:param code: The error code
:param code: The error code.
:type code: (optional) str
:param message: The error message
:param message: The error message.
:type message: (optional) str
"""
self.__discriminator_value = None # type: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
if typing.TYPE_CHECKING:
from typing import Dict, List, Optional, Union
from datetime import datetime
from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_entity import SlotTypeEntity
from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input import SlotTypeInput


class SlotTypeDefinitionOutput(object):
Expand All @@ -32,13 +32,13 @@ class SlotTypeDefinitionOutput(object):
:param slot_type:
:type slot_type: (optional) ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_entity.SlotTypeEntity
:type slot_type: (optional) ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input.SlotTypeInput
:param total_versions: Total number of versions.
:type total_versions: (optional) str
"""
deserialized_types = {
'slot_type': 'ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_entity.SlotTypeEntity',
'slot_type': 'ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input.SlotTypeInput',
'total_versions': 'str'
} # type: Dict

Expand All @@ -49,11 +49,11 @@ class SlotTypeDefinitionOutput(object):
supports_multiple_types = False

def __init__(self, slot_type=None, total_versions=None):
# type: (Optional[SlotTypeEntity], Optional[str]) -> None
# type: (Optional[SlotTypeInput], Optional[str]) -> None
"""Slot Type request definitions.
:param slot_type:
:type slot_type: (optional) ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_entity.SlotTypeEntity
:type slot_type: (optional) ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input.SlotTypeInput
:param total_versions: Total number of versions.
:type total_versions: (optional) str
"""
Expand Down
Loading

0 comments on commit d74c073

Please sign in to comment.