stentor-models 1.57.0 → 1.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/lib/Action/Types.d.ts +1 -1
  2. package/lib/App/App.d.ts +1 -1
  3. package/lib/App/AppDataStreams.d.ts +11 -11
  4. package/lib/App/AppStatus.d.ts +14 -14
  5. package/lib/Channel/Channel.d.ts +2 -2
  6. package/lib/Channel/Channeled.d.ts +1 -1
  7. package/lib/Conditional.d.ts +1 -1
  8. package/lib/Context.d.ts +1 -1
  9. package/lib/Contextual.d.ts +1 -1
  10. package/lib/DateTime/Duration.d.ts +1 -1
  11. package/lib/DateTime/Expiration.d.ts +1 -1
  12. package/lib/DateTime/LastActive.d.ts +4 -4
  13. package/lib/DateTime/RelativeDateTime.d.ts +2 -2
  14. package/lib/DateTime/Schedulable.d.ts +1 -1
  15. package/lib/DateTime/TimeContextual.d.ts +1 -1
  16. package/lib/DelegatingHandler/DelegatedHandlerMethod.d.ts +1 -1
  17. package/lib/DelegatingHandler/DelegatedRequestMethod.d.ts +1 -1
  18. package/lib/Device.d.ts +1 -1
  19. package/lib/Display/Types.d.ts +1 -1
  20. package/lib/Events/Types.d.ts +7 -7
  21. package/lib/Handler/Types.d.ts +6 -6
  22. package/lib/History.d.ts +1 -1
  23. package/lib/Intent/Intent.d.ts +1 -1
  24. package/lib/Intent/Types.d.ts +25 -25
  25. package/lib/JSONDependent.d.ts +1 -1
  26. package/lib/Locale/Locale.d.ts +3 -3
  27. package/lib/Locale/Localizable.d.ts +1 -1
  28. package/lib/Match.d.ts +1 -1
  29. package/lib/Media/OnDemand.d.ts +1 -1
  30. package/lib/Media/PlayableMedia.d.ts +1 -1
  31. package/lib/Media/RSSFeedItem.d.ts +1 -1
  32. package/lib/Media/SocialRadio.d.ts +1 -1
  33. package/lib/Media/Types.d.ts +22 -22
  34. package/lib/Path/Path.d.ts +8 -8
  35. package/lib/Pii.d.ts +2 -2
  36. package/lib/Request/AudioPlayerRequest.d.ts +7 -7
  37. package/lib/Request/IntentRequest.d.ts +1 -1
  38. package/lib/Request/PlaybackControlRequest.d.ts +5 -5
  39. package/lib/Request/Request.d.ts +1 -1
  40. package/lib/Request/RequestDependent.d.ts +1 -1
  41. package/lib/Request/SystemDependent.d.ts +2 -2
  42. package/lib/Request/Types.d.ts +23 -23
  43. package/lib/Response/AbstractResponseBuilder.js +5 -5
  44. package/lib/Response/AbstractResponseBuilder.js.map +1 -1
  45. package/lib/Response/Response.d.ts +8 -8
  46. package/lib/Response/ResponseOutput.d.ts +1 -1
  47. package/lib/Response/ResponseSegment.d.ts +6 -6
  48. package/lib/Response/Transactions.d.ts +11 -11
  49. package/lib/Runtime/RuntimeCallback.d.ts +1 -1
  50. package/lib/Slot/SlotDependent.d.ts +1 -1
  51. package/lib/Storage/KeyValueStore.d.ts +1 -1
  52. package/lib/Storage/StorageAction.d.ts +1 -1
  53. package/lib/Storage/StorageDependent.d.ts +1 -1
  54. package/lib/Storage/Types.d.ts +7 -7
  55. package/lib/Suggestion.d.ts +3 -3
  56. package/lib/UserData.d.ts +1 -1
  57. package/package.json +3 -3
@@ -1,3 +1,3 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { StorageAction } from "../Storage";
3
- export declare type Action = StorageAction;
3
+ export type Action = StorageAction;
package/lib/App/App.d.ts CHANGED
@@ -18,7 +18,7 @@ export interface FullAppStatus extends AppStatus {
18
18
  /**
19
19
  * An app locale is a description of an app as it will appear to users in other countries.
20
20
  */
21
- export declare type LocaleSpecificApp = Partial<Pick<App, "name" | "summary" | "description" | "alexaCategory" | "invocationName" | "examplePhrases" | "keywords" | "icon" | "smallIcon" | "largeIcon" | "termsOfUseUrl" | "privacyPolicyUrl">>;
21
+ export type LocaleSpecificApp = Partial<Pick<App, "name" | "summary" | "description" | "alexaCategory" | "invocationName" | "examplePhrases" | "keywords" | "icon" | "smallIcon" | "largeIcon" | "termsOfUseUrl" | "privacyPolicyUrl">>;
22
22
  export interface AppRuntimeData {
23
23
  /**
24
24
  * The title of the app.
@@ -2,31 +2,31 @@
2
2
  /**
3
3
  * Analytics
4
4
  */
5
- export declare type BespokenDataStreamType = "bespoken";
6
- export declare type DashbotDataStreamType = "dashbot";
7
- export declare type VoiceLabsDataStreamType = "voiceLabs";
8
- export declare type GoogleAnalyticsDataStreamType = "googleAnalytics";
9
- export declare type ChatbaseDataStreamType = "chatbase";
5
+ export type BespokenDataStreamType = "bespoken";
6
+ export type DashbotDataStreamType = "dashbot";
7
+ export type VoiceLabsDataStreamType = "voiceLabs";
8
+ export type GoogleAnalyticsDataStreamType = "googleAnalytics";
9
+ export type ChatbaseDataStreamType = "chatbase";
10
10
  /**
11
11
  * NLU services
12
12
  */
13
- export declare type LuisType = "luis";
14
- export declare type DialogflowType = "dialogflow";
13
+ export type LuisType = "luis";
14
+ export type DialogflowType = "dialogflow";
15
15
  /**
16
16
  * Types
17
17
  */
18
- export declare type AppDataStreamTypes = BespokenDataStreamType | VoiceLabsDataStreamType | GoogleAnalyticsDataStreamType | ChatbaseDataStreamType | LuisType | DialogflowType | DashbotDataStreamType;
19
- export declare type AppDataStreamsMap = {
18
+ export type AppDataStreamTypes = BespokenDataStreamType | VoiceLabsDataStreamType | GoogleAnalyticsDataStreamType | ChatbaseDataStreamType | LuisType | DialogflowType | DashbotDataStreamType;
19
+ export type AppDataStreamsMap = {
20
20
  [dataStream in AppDataStreamTypes]?: AppDataStream;
21
21
  };
22
- export declare type AppDataStreamsRepo = {
22
+ export type AppDataStreamsRepo = {
23
23
  [appId in string]?: AppDataStreamsMap;
24
24
  };
25
25
  /**
26
26
  * Third (or first) party providers of analytics, metrics, and monitoring
27
27
  * that are hooked up to receive transactional information about the app.
28
28
  */
29
- export declare type AppDataStream = BespokenDataStream | ChatbaseDataStream | GoogleAnalyticsStream | VoiceLabsDataStream | LuisDataStream | DialogflowDataStream | DashbotDataStream;
29
+ export type AppDataStream = BespokenDataStream | ChatbaseDataStream | GoogleAnalyticsStream | VoiceLabsDataStream | LuisDataStream | DialogflowDataStream | DashbotDataStream;
30
30
  /**
31
31
  * Base data stream all data streams extend.
32
32
  */
@@ -1,31 +1,31 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type AppStatusUnknown = "Unknown";
2
+ export type AppStatusUnknown = "Unknown";
3
3
  export declare const APP_STATUS_UNKNOWN: AppStatusUnknown;
4
- export declare type AppStatusIncomplete = "Incomplete";
4
+ export type AppStatusIncomplete = "Incomplete";
5
5
  export declare const APP_STATUS_INCOMPLETE: AppStatusIncomplete;
6
- export declare type AppStatusSubmittedForReview = "Submitted For Review";
6
+ export type AppStatusSubmittedForReview = "Submitted For Review";
7
7
  export declare const APP_STATUS_SUBMITTED_FOR_REVIEW: AppStatusSubmittedForReview;
8
- export declare type AppStatusUnderReview = "Under Review";
8
+ export type AppStatusUnderReview = "Under Review";
9
9
  export declare const APP_STATUS_UNDER_REVIEW: AppStatusUnderReview;
10
- export declare type AppStatusInCertification = "In Certification";
10
+ export type AppStatusInCertification = "In Certification";
11
11
  export declare const APP_STATUS_IN_CERTIFICATION: AppStatusInCertification;
12
- export declare type AppStatusRequiresPublish = "Needs publish";
12
+ export type AppStatusRequiresPublish = "Needs publish";
13
13
  export declare const APP_STATUS_REQUIRES_PUBLISH: AppStatusRequiresPublish;
14
- export declare type AppStatusLive = "Live";
14
+ export type AppStatusLive = "Live";
15
15
  export declare const APP_STATUS_LIVE: AppStatusLive;
16
- export declare type AppStatusRequiresAttention = "Requires Attention";
16
+ export type AppStatusRequiresAttention = "Requires Attention";
17
17
  export declare const APP_STATUS_REQUIRES_ATTENTION: AppStatusRequiresAttention;
18
- export declare type AppStatusArchived = "Archived";
18
+ export type AppStatusArchived = "Archived";
19
19
  export declare const APP_STATUS_ARCHIVED: AppStatusArchived;
20
- export declare type AppStatusLiveRequiresCert = "Live: Requires Cert";
20
+ export type AppStatusLiveRequiresCert = "Live: Requires Cert";
21
21
  export declare const APP_STATUS_LIVE_AND_REQUIRES_CERT: AppStatusLiveRequiresCert;
22
- export declare type AppStatusLiveInCert = "Live: In Certification";
22
+ export type AppStatusLiveInCert = "Live: In Certification";
23
23
  export declare const APP_STATUS_LIVE_AND_IN_CERT: AppStatusLiveInCert;
24
- export declare type AppStatusLiveAndRequiresPublish = "Live: Requires Publish";
24
+ export type AppStatusLiveAndRequiresPublish = "Live: Requires Publish";
25
25
  export declare const APP_STATUS_LIVE_AND_REQUIRES_PUBLISH: AppStatusLiveAndRequiresPublish;
26
- export declare type AppStatusLiveAndRequiresAttention = "Live: Requires Attention";
26
+ export type AppStatusLiveAndRequiresAttention = "Live: Requires Attention";
27
27
  export declare const APP_STATUS_LIVE_AND_REQUIRES_ATTENTION: AppStatusLiveAndRequiresAttention;
28
- export declare type AppStatusType = AppStatusUnknown | AppStatusIncomplete | AppStatusSubmittedForReview | AppStatusUnderReview | AppStatusInCertification | AppStatusRequiresPublish | AppStatusLive | AppStatusRequiresAttention | AppStatusArchived | AppStatusLiveRequiresCert | AppStatusLiveInCert | AppStatusLiveAndRequiresPublish | AppStatusLiveAndRequiresAttention;
28
+ export type AppStatusType = AppStatusUnknown | AppStatusIncomplete | AppStatusSubmittedForReview | AppStatusUnderReview | AppStatusInCertification | AppStatusRequiresPublish | AppStatusLive | AppStatusRequiresAttention | AppStatusArchived | AppStatusLiveRequiresCert | AppStatusLiveInCert | AppStatusLiveAndRequiresPublish | AppStatusLiveAndRequiresAttention;
29
29
  /**
30
30
  * The status of the App
31
31
  */
@@ -6,12 +6,12 @@ import { Request } from "../Request";
6
6
  import { AbstractResponseBuilder, Response } from "../Response";
7
7
  import { Hooks, RuntimeContext } from "../Runtime";
8
8
  import { UserStorageService } from "../Services";
9
- export declare type Callback<TResult = any> = (error?: Error | string | null, result?: TResult) => void;
9
+ export type Callback<TResult = any> = (error?: Error | string | null, result?: TResult) => void;
10
10
  export interface RequestResponse {
11
11
  request: Request;
12
12
  response: Response;
13
13
  }
14
- export declare type ChannelHooks = Pick<Hooks, "preExecution" | "postRequestTranslation" | "preResponseTranslation">;
14
+ export type ChannelHooks = Pick<Hooks, "preExecution" | "postRequestTranslation" | "preResponseTranslation">;
15
15
  export interface Channel {
16
16
  /**
17
17
  * The name of the channel.
@@ -14,4 +14,4 @@ export interface Channeled {
14
14
  name?: string;
15
15
  };
16
16
  }
17
- export declare type Channelable<T> = T & Channeled;
17
+ export type Channelable<T> = T & Channeled;
@@ -71,4 +71,4 @@ export interface Conditioned {
71
71
  /**
72
72
  * An object that is Conditional implements Conditioned.
73
73
  */
74
- export declare type Conditional<T> = T & Conditioned;
74
+ export type Conditional<T> = T & Conditioned;
package/lib/Context.d.ts CHANGED
@@ -16,7 +16,7 @@ export interface UserDataValue {
16
16
  userProfile?: UserProfile;
17
17
  requestStatus: UserDataRequestStatus;
18
18
  }
19
- export declare type UserData = (userDataType: UserDataType) => Promise<UserDataRequestStatus>;
19
+ export type UserData = (userDataType: UserDataType) => Promise<UserDataRequestStatus>;
20
20
  /**
21
21
  * These we want to make available for custom handlers
22
22
  */
@@ -4,7 +4,7 @@ import { JSONDependent } from "./JSONDependent";
4
4
  import { RequestDependent, SystemDependent } from "./Request";
5
5
  import { SlotDependent } from "./Slot";
6
6
  import { StorageDependent } from "./Storage";
7
- export declare type Contexts = ActiveWithinable | FirstTimeable | HaveNotSeenWithinable | JSONDependent | RequestDependent | Schedulable | SlotDependent | StorageDependent | SystemDependent;
7
+ export type Contexts = ActiveWithinable | FirstTimeable | HaveNotSeenWithinable | JSONDependent | RequestDependent | Schedulable | SlotDependent | StorageDependent | SystemDependent;
8
8
  /**
9
9
  * Currently not in use, for discussion.
10
10
  *
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * This is the same as the moment.js duration format.
6
6
  */
7
- export declare type DurationFormat = "year" | "years" | "y" | "quarter" | "quarters" | "Q" | "month" | "months" | "M" | "week" | "weeks" | "w" | "day" | "days" | "d" | "hour" | "hours" | "h" | "minute" | "minutes" | "m" | "second" | "seconds" | "s" | "millisecond" | "milliseconds" | "ms";
7
+ export type DurationFormat = "year" | "years" | "y" | "quarter" | "quarters" | "Q" | "month" | "months" | "M" | "week" | "weeks" | "w" | "day" | "days" | "d" | "hour" | "hours" | "h" | "minute" | "minutes" | "m" | "second" | "seconds" | "s" | "millisecond" | "milliseconds" | "ms";
8
8
  /**
9
9
  * Duration, amount and format.
10
10
  */
@@ -12,4 +12,4 @@ export interface ExpirationDate {
12
12
  export interface ExpirationDuration {
13
13
  duration?: Duration;
14
14
  }
15
- export declare type Expiration = ExpirationDate | ExpirationDuration;
15
+ export type Expiration = ExpirationDate | ExpirationDuration;
@@ -3,13 +3,13 @@ import { Duration } from "./Duration";
3
3
  export interface ActiveWithinable {
4
4
  activeWithin: Duration;
5
5
  }
6
- export declare type ActiveWithin<T> = T & ActiveWithinable;
6
+ export type ActiveWithin<T> = T & ActiveWithinable;
7
7
  export interface HaveNotSeenWithinable {
8
8
  haveNotSeenWithin: Duration;
9
9
  }
10
- export declare type HaveNotSeenWithin<T> = T & HaveNotSeenWithinable;
10
+ export type HaveNotSeenWithin<T> = T & HaveNotSeenWithinable;
11
11
  export interface FirstTimeable {
12
12
  firstTime: boolean;
13
13
  }
14
- export declare type FirstTime<T> = T & FirstTimeable;
15
- export declare type LastActive<T> = FirstTime<T> | HaveNotSeenWithin<T> | ActiveWithin<T>;
14
+ export type FirstTime<T> = T & FirstTimeable;
15
+ export type LastActive<T> = FirstTime<T> | HaveNotSeenWithin<T> | ActiveWithin<T>;
@@ -1,6 +1,6 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type RelativeDateType = "LAST_FRIDAY" | "LAST_MONDAY" | "LAST_SATURDAY" | "LAST_SUNDAY" | "LAST_THURSDAY" | "LAST_TUESDAY" | "LAST_WEDNESDAY" | "YESTERDAY" | "THIS_FRIDAY" | "THIS_MONDAY" | "THIS_SATURDAY" | "THIS_SUNDAY" | "THIS_THURSDAY" | "THIS_TUESDAY" | "THIS_WEDNESDAY" | "TODAY" | "NEXT_FRIDAY" | "NEXT_MONDAY" | "NEXT_SATURDAY" | "NEXT_SUNDAY" | "NEXT_THURSDAY" | "NEXT_TUESDAY" | "NEXT_WEDNESDAY" | "TOMORROW";
3
- export declare type RelativeDateRangeType = "LAST_MONTH" | "LAST_WEEK" | "LAST_WEEKEND" | "LAST_YEAR" | "THIS_MONTH" | "THIS_WEEK" | "THIS_WEEKEND" | "THIS_YEAR" | "NEXT_MONTH" | "NEXT_WEEK" | "NEXT_WEEKEND" | "NEXT_YEAR";
2
+ export type RelativeDateType = "LAST_FRIDAY" | "LAST_MONDAY" | "LAST_SATURDAY" | "LAST_SUNDAY" | "LAST_THURSDAY" | "LAST_TUESDAY" | "LAST_WEDNESDAY" | "YESTERDAY" | "THIS_FRIDAY" | "THIS_MONDAY" | "THIS_SATURDAY" | "THIS_SUNDAY" | "THIS_THURSDAY" | "THIS_TUESDAY" | "THIS_WEDNESDAY" | "TODAY" | "NEXT_FRIDAY" | "NEXT_MONDAY" | "NEXT_SATURDAY" | "NEXT_SUNDAY" | "NEXT_THURSDAY" | "NEXT_TUESDAY" | "NEXT_WEDNESDAY" | "TOMORROW";
3
+ export type RelativeDateRangeType = "LAST_MONTH" | "LAST_WEEK" | "LAST_WEEKEND" | "LAST_YEAR" | "THIS_MONTH" | "THIS_WEEK" | "THIS_WEEKEND" | "THIS_YEAR" | "NEXT_MONTH" | "NEXT_WEEK" | "NEXT_WEEKEND" | "NEXT_YEAR";
4
4
  /**
5
5
  * A relative date time contains data about relative dates such as "yesterday" or "last year".
6
6
  *
@@ -9,4 +9,4 @@ import { Schedule } from "./Schedule";
9
9
  export interface Schedulable {
10
10
  readonly schedule: Schedule;
11
11
  }
12
- export declare type Scheduled<T> = T & Schedulable;
12
+ export type Scheduled<T> = T & Schedulable;
@@ -1,4 +1,4 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { LastActive } from "./LastActive";
3
3
  import { Scheduled } from "./Schedulable";
4
- export declare type TimeContextual<T> = Scheduled<T> | LastActive<T>;
4
+ export type TimeContextual<T> = Scheduled<T> | LastActive<T>;
@@ -2,4 +2,4 @@
2
2
  import { Context } from "../Context";
3
3
  import { Content, Data } from "../Handler";
4
4
  import { Request } from "../Request";
5
- export declare type DelegatedHandlerMethod = (request: Request, context: Context, content: Content, data: Data) => Promise<void>;
5
+ export type DelegatedHandlerMethod = (request: Request, context: Context, content: Content, data: Data) => Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { Request } from "../Request";
3
- export declare type DelegatedRequestMethod = (request: Request) => boolean;
3
+ export type DelegatedRequestMethod = (request: Request) => boolean;
package/lib/Device.d.ts CHANGED
@@ -8,7 +8,7 @@ export interface MediaPlayerStatus {
8
8
  /**
9
9
  * The hardware type (screen) if we have it
10
10
  */
11
- export declare type DisplayShape = "RECTANGLE" | "ROUND";
11
+ export type DisplayShape = "RECTANGLE" | "ROUND";
12
12
  /**
13
13
  * Describes the capability of the device where the
14
14
  * request originated.
@@ -7,4 +7,4 @@ export interface BaseDisplay {
7
7
  token?: string;
8
8
  title?: string;
9
9
  }
10
- export declare type Display = Card | List | SimpleDisplay | object;
10
+ export type Display = Card | List | SimpleDisplay | object;
@@ -1,8 +1,8 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type LambdaFailureEventType = "LambdaErrorEvent";
3
- export declare type LambdaSuccessEventType = "LambdaSuccessEvent";
4
- export declare type MessageEventType = "MessageEvent";
5
- export declare type RequestEventType = "REQUEST";
6
- export declare type AnalyticsEvent = "AnalyticsEvent";
7
- export declare type ErrorEventType = "ERROR";
8
- export declare type EventType = LambdaFailureEventType | LambdaSuccessEventType | MessageEventType | RequestEventType | AnalyticsEvent | ErrorEventType;
2
+ export type LambdaFailureEventType = "LambdaErrorEvent";
3
+ export type LambdaSuccessEventType = "LambdaSuccessEvent";
4
+ export type MessageEventType = "MessageEvent";
5
+ export type RequestEventType = "REQUEST";
6
+ export type AnalyticsEvent = "AnalyticsEvent";
7
+ export type ErrorEventType = "ERROR";
8
+ export type EventType = LambdaFailureEventType | LambdaSuccessEventType | MessageEventType | RequestEventType | AnalyticsEvent | ErrorEventType;
@@ -1,7 +1,7 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type InputUnknownStrategyGlobal = "GLOBAL";
3
- export declare type InputUnknownStrategyGoogle = "GOOGLE";
4
- export declare type InputUnknownStrategyReprompt = "REPROMPT";
5
- export declare type BaseHandlerType = "HandlerIntent";
6
- export declare type ConversationHandlerType = "InSessionIntent";
7
- export declare type DelegatingHandlerType = "DelegatingHandlerType";
2
+ export type InputUnknownStrategyGlobal = "GLOBAL";
3
+ export type InputUnknownStrategyGoogle = "GOOGLE";
4
+ export type InputUnknownStrategyReprompt = "REPROMPT";
5
+ export type BaseHandlerType = "HandlerIntent";
6
+ export type ConversationHandlerType = "InSessionIntent";
7
+ export type DelegatingHandlerType = "DelegatingHandlerType";
package/lib/History.d.ts CHANGED
@@ -28,7 +28,7 @@ export interface PlayableHistoryData {
28
28
  */
29
29
  lastPlayed: number;
30
30
  }
31
- export declare type HistoryData = PlayableHistoryData | {};
31
+ export type HistoryData = PlayableHistoryData | {};
32
32
  /**
33
33
  * History is a map to store information about recent activity for the user by some hashed token that
34
34
  * links back to the content.
@@ -2,7 +2,7 @@
2
2
  import { Locale, Localizable } from "../Locale";
3
3
  import { Slot, SlotTypeMap } from "../Slot";
4
4
  import { LangCode } from "./Types";
5
- export declare type LocaleSpecificIntent = Partial<Pick<Intent, "slots" | "utterancePatterns" | "substitutions">>;
5
+ export type LocaleSpecificIntent = Partial<Pick<Intent, "slots" | "utterancePatterns" | "substitutions">>;
6
6
  /**
7
7
  * These are coordinates for the placement of the intent when
8
8
  * placed in a graph with other intents.
@@ -1,26 +1,26 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type LangCodeEnUs = "en-US";
3
- export declare type LangCode = LangCodeEnUs;
4
- export declare type CancelIntent = "CancelIntent";
5
- export declare type FirstIntent = "FirstIntent";
6
- export declare type HelpIntent = "HelpIntent";
7
- export declare type LatestIntent = "LatestIntent";
8
- export declare type LoopOffIntent = "LoopOffIntent";
9
- export declare type LoopOnIntent = "LoopOnIntent";
10
- export declare type NextIntent = "NextIntent";
11
- export declare type NoIntent = "NoIntent";
12
- export declare type PauseIntent = "PauseIntent";
13
- export declare type PreviousIntent = "PreviousIntent";
14
- export declare type RepeatIntent = "RepeatIntent";
15
- export declare type ResumeIntent = "ResumeIntent";
16
- export declare type ShuffleOffIntent = "ShuffleOffIntent";
17
- export declare type ShuffleOnIntent = "ShuffleOnIntent";
18
- export declare type StartOverIntent = "StartOverIntent";
19
- export declare type StopIntent = "StopIntent";
20
- export declare type YesIntent = "YesIntent";
21
- export declare type InputUnknown = "InputUnknown";
22
- export declare type BuiltInIntents = CancelIntent | FirstIntent | HelpIntent | LatestIntent | InputUnknown | LoopOffIntent | LoopOnIntent | NextIntent | NoIntent | PauseIntent | PreviousIntent | RepeatIntent | ResumeIntent | ShuffleOffIntent | ShuffleOnIntent | StartOverIntent | StopIntent | YesIntent;
23
- export declare type PlayIntent = "PlayIntent";
24
- export declare type PlayPodcastTitle = "PlayPodcastTitleIntent";
25
- export declare type PlayTopicIntent = "PlayTopicIntent";
26
- export declare type PlayTitleIntent = "PlayTitleIntent";
2
+ export type LangCodeEnUs = "en-US";
3
+ export type LangCode = LangCodeEnUs;
4
+ export type CancelIntent = "CancelIntent";
5
+ export type FirstIntent = "FirstIntent";
6
+ export type HelpIntent = "HelpIntent";
7
+ export type LatestIntent = "LatestIntent";
8
+ export type LoopOffIntent = "LoopOffIntent";
9
+ export type LoopOnIntent = "LoopOnIntent";
10
+ export type NextIntent = "NextIntent";
11
+ export type NoIntent = "NoIntent";
12
+ export type PauseIntent = "PauseIntent";
13
+ export type PreviousIntent = "PreviousIntent";
14
+ export type RepeatIntent = "RepeatIntent";
15
+ export type ResumeIntent = "ResumeIntent";
16
+ export type ShuffleOffIntent = "ShuffleOffIntent";
17
+ export type ShuffleOnIntent = "ShuffleOnIntent";
18
+ export type StartOverIntent = "StartOverIntent";
19
+ export type StopIntent = "StopIntent";
20
+ export type YesIntent = "YesIntent";
21
+ export type InputUnknown = "InputUnknown";
22
+ export type BuiltInIntents = CancelIntent | FirstIntent | HelpIntent | LatestIntent | InputUnknown | LoopOffIntent | LoopOnIntent | NextIntent | NoIntent | PauseIntent | PreviousIntent | RepeatIntent | ResumeIntent | ShuffleOffIntent | ShuffleOnIntent | StartOverIntent | StopIntent | YesIntent;
23
+ export type PlayIntent = "PlayIntent";
24
+ export type PlayPodcastTitle = "PlayPodcastTitleIntent";
25
+ export type PlayTopicIntent = "PlayTopicIntent";
26
+ export type PlayTitleIntent = "PlayTitleIntent";
@@ -16,4 +16,4 @@ export interface JSONDependent {
16
16
  */
17
17
  JSONPathMatch: Match;
18
18
  }
19
- export declare type JSONDependable<T> = T & JSONDependent;
19
+ export type JSONDependable<T> = T & JSONDependent;
@@ -1,7 +1,7 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type LanguageTag = "de-DE" | "en-AU" | "en-CA" | "en-GB" | "en-IN" | "en-US" | "es-419" | "es-ES" | "es-MX" | "fr-CA" | "fr-FR" | "it-IT" | "ja-JP" | "pt-BR" | "zh-CH" | "zh-HK" | "zh-TW";
3
- export declare type Language = "da" | "de" | "en" | "es" | "fr" | "it" | "ja" | "nl" | "no" | "pt" | "ru" | "sv" | "th" | "tr" | "uk" | "zh";
2
+ export type LanguageTag = "de-DE" | "en-AU" | "en-CA" | "en-GB" | "en-IN" | "en-US" | "es-419" | "es-ES" | "es-MX" | "fr-CA" | "fr-FR" | "it-IT" | "ja-JP" | "pt-BR" | "zh-CH" | "zh-HK" | "zh-TW";
3
+ export type Language = "da" | "de" | "en" | "es" | "fr" | "it" | "ja" | "nl" | "no" | "pt" | "ru" | "sv" | "th" | "tr" | "uk" | "zh";
4
4
  /**
5
5
  * The different kinds of locales that can be assigned in Stentor.
6
6
  */
7
- export declare type Locale = LanguageTag | Language;
7
+ export type Locale = LanguageTag | Language;
@@ -1,6 +1,6 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { Locale } from "./Locale";
3
- export declare type LocaleObject = object;
3
+ export type LocaleObject = object;
4
4
  /**
5
5
  * An object that has a default locale and separate localalized versions.
6
6
  */
package/lib/Match.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type MatchOperation = "==" | "===" | ">" | ">=" | "<" | "=<" | "!=" | "!==" | "includes" | "!includes";
2
+ export type MatchOperation = "==" | "===" | ">" | ">=" | "<" | "=<" | "!=" | "!==" | "includes" | "!includes";
3
3
  /**
4
4
  * Match is an interface that describes
5
5
  * how to compare two different values.
@@ -3,7 +3,7 @@ import { Audio } from "./Audio";
3
3
  import { ReportableAudio, ReportableSong } from "./ReportableAudio";
4
4
  import { Song } from "./Song";
5
5
  import { OnDemandType } from "./Types";
6
- export declare type OnDemandAudio = ReportableSong | Song | ReportableAudio | Audio;
6
+ export type OnDemandAudio = ReportableSong | Song | ReportableAudio | Audio;
7
7
  export interface OnDemand {
8
8
  type: OnDemandType;
9
9
  apiKey: string;
@@ -4,4 +4,4 @@ import { Playable } from "./Playable";
4
4
  /**
5
5
  * Media that can be played.
6
6
  */
7
- export declare type PlayableMedia = Playable & Media;
7
+ export type PlayableMedia = Playable & Media;
@@ -63,4 +63,4 @@ export interface RSSFeedItem {
63
63
  */
64
64
  pubDate?: string;
65
65
  }
66
- export declare type RSSFeedItemPlayableMedia = RSSFeedItem & PlayableMedia;
66
+ export type RSSFeedItemPlayableMedia = RSSFeedItem & PlayableMedia;
@@ -6,7 +6,7 @@ export interface SocialRadio extends OnDemand {
6
6
  type: SocialRadioType;
7
7
  channel?: string;
8
8
  }
9
- export declare type SocialRadioAudio = SocialRadioTrack | SocialRadioSong;
9
+ export type SocialRadioAudio = SocialRadioTrack | SocialRadioSong;
10
10
  /**
11
11
  * Tracks in SocialRadio are typically filler audio used
12
12
  * for station identification.
@@ -1,29 +1,29 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type UnspecifiedMediaType = "Media";
3
- export declare type MultimediaType = "Multimedia";
4
- export declare type ImageType = "Image";
5
- export declare type VideoLiveStreamType = "VideoLiveStream";
6
- export declare type GenericVideoType = "Video";
7
- export declare type VideoType = GenericVideoType | VideoLiveStreamType;
8
- export declare type AudioLiveStreamType = "LiveStream";
9
- export declare type PodcastEpisodeType = "PodcastEpisode";
10
- export declare type SongType = "Song";
11
- export declare type GenericAudioType = "Audio";
12
- export declare type LiveStreamType = AudioLiveStreamType | VideoLiveStreamType;
2
+ export type UnspecifiedMediaType = "Media";
3
+ export type MultimediaType = "Multimedia";
4
+ export type ImageType = "Image";
5
+ export type VideoLiveStreamType = "VideoLiveStream";
6
+ export type GenericVideoType = "Video";
7
+ export type VideoType = GenericVideoType | VideoLiveStreamType;
8
+ export type AudioLiveStreamType = "LiveStream";
9
+ export type PodcastEpisodeType = "PodcastEpisode";
10
+ export type SongType = "Song";
11
+ export type GenericAudioType = "Audio";
12
+ export type LiveStreamType = AudioLiveStreamType | VideoLiveStreamType;
13
13
  /**
14
14
  * AudioType is the combination of all types of audio
15
15
  */
16
- export declare type AudioType = PodcastEpisodeType | SongType | AudioLiveStreamType | GenericAudioType;
16
+ export type AudioType = PodcastEpisodeType | SongType | AudioLiveStreamType | GenericAudioType;
17
17
  /**
18
18
  * MediaType is the combination of Audio, Video, and Images
19
19
  */
20
- export declare type MediaType = AudioType | VideoType | ImageType | UnspecifiedMediaType;
21
- export declare type PodcastType = "Podcast";
22
- export declare type GenericRSSFeedType = "RSSFeed";
23
- export declare type RSSFeedType = GenericRSSFeedType | PodcastType;
24
- export declare type GenericMediaPlaylistType = "MediaPlaylist";
25
- export declare type MediaPlaylistType = GenericMediaPlaylistType | RSSFeedType;
26
- export declare type PlaylistType = RSSFeedType | MediaPlaylistType;
27
- export declare type SocialRadioType = "SocialRadio";
28
- export declare type OnDemandType = SocialRadioType;
29
- export declare type MediaSourceType = OnDemandType | PlaylistType | AudioLiveStreamType | VideoLiveStreamType;
20
+ export type MediaType = AudioType | VideoType | ImageType | UnspecifiedMediaType;
21
+ export type PodcastType = "Podcast";
22
+ export type GenericRSSFeedType = "RSSFeed";
23
+ export type RSSFeedType = GenericRSSFeedType | PodcastType;
24
+ export type GenericMediaPlaylistType = "MediaPlaylist";
25
+ export type MediaPlaylistType = GenericMediaPlaylistType | RSSFeedType;
26
+ export type PlaylistType = RSSFeedType | MediaPlaylistType;
27
+ export type SocialRadioType = "SocialRadio";
28
+ export type OnDemandType = SocialRadioType;
29
+ export type MediaSourceType = OnDemandType | PlaylistType | AudioLiveStreamType | VideoLiveStreamType;
@@ -5,7 +5,7 @@ import { JSONDependable } from "../JSONDependent";
5
5
  import { RequestDependable, RequestSlotMap, SystemDependable } from "../Request";
6
6
  import { SlotDependable } from "../Slot";
7
7
  import { StorageDependable } from "../Storage";
8
- export declare type PathType = "START";
8
+ export type PathType = "START";
9
9
  /**
10
10
  * An executable path defines exactly where an incoming request will be routed to.
11
11
  */
@@ -70,33 +70,33 @@ export interface SharedPath extends Partial<Actionable>, Partial<Conditioned> {
70
70
  /**
71
71
  * Compilable paths
72
72
  */
73
- export declare type CompilablePath = HistoricalPath | PreviousHandlerPath;
73
+ export type CompilablePath = HistoricalPath | PreviousHandlerPath;
74
74
  /**
75
75
  * Path used if a particular key-value pair on the
76
76
  * user's storage matches.
77
77
  */
78
- export declare type JSONDependentPath = JSONDependable<ExecutablePath | CompilablePath>;
78
+ export type JSONDependentPath = JSONDependable<ExecutablePath | CompilablePath>;
79
79
  /**
80
80
  * Path used if a particular key-value pair on the
81
81
  * user's storage matches.
82
82
  */
83
- export declare type StorageDependentPath = StorageDependable<ExecutablePath | CompilablePath>;
83
+ export type StorageDependentPath = StorageDependable<ExecutablePath | CompilablePath>;
84
84
  /**
85
85
  * Path used if a slot on the incoming intent matches
86
86
  * the compare value.
87
87
  */
88
- export declare type SlotDependentPath = SlotDependable<ExecutablePath | CompilablePath>;
88
+ export type SlotDependentPath = SlotDependable<ExecutablePath | CompilablePath>;
89
89
  /**
90
90
  * Path that is dependent on a system request.
91
91
  */
92
- export declare type RequestDependentPath = RequestDependable<ExecutablePath | CompilablePath>;
92
+ export type RequestDependentPath = RequestDependable<ExecutablePath | CompilablePath>;
93
93
  /**
94
94
  * Path that is dependent on a system request.
95
95
  */
96
- export declare type SystemDependentPath = SystemDependable<ExecutablePath | CompilablePath>;
96
+ export type SystemDependentPath = SystemDependable<ExecutablePath | CompilablePath>;
97
97
  /**
98
98
  * A path determines where to redirect or forward an incoming request. They can either
99
99
  * be predetermined (ExecutablePath) or determined at runtime (CompilablePath). Additionally,
100
100
  * they can have rules associated with them to only apply them at certain situations.
101
101
  */
102
- export declare type Path = ExecutablePath | CompilablePath | RequestDependentPath | SlotDependentPath | StorageDependentPath | JSONDependentPath | SystemDependentPath;
102
+ export type Path = ExecutablePath | CompilablePath | RequestDependentPath | SlotDependentPath | StorageDependentPath | JSONDependentPath | SystemDependentPath;
package/lib/Pii.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { EmailDescription } from "./Email";
3
3
  import { SmsDescription } from "./SMS";
4
- export declare type OptStatus = "OPTIN" | "OPTOUT" | "PENDING";
4
+ export type OptStatus = "OPTIN" | "OPTOUT" | "PENDING";
5
5
  export interface Pii {
6
6
  token?: string;
7
7
  appId?: string;
@@ -22,4 +22,4 @@ export interface Pii {
22
22
  pendingSmsJobs?: SmsDescription[];
23
23
  pendingEmailJobs?: EmailDescription[];
24
24
  }
25
- export declare type CommFieldType = "phoneNumber" | "emailAddress";
25
+ export type CommFieldType = "phoneNumber" | "emailAddress";
@@ -1,13 +1,13 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { BaseRequest } from "./Request";
3
3
  import { AudioPlayerRequestType } from "./Types";
4
- export declare type AudioPlayerPlaybackStartedEvent = "AudioPlayerPlaybackStarted";
5
- export declare type AudioPlayerPlaybackFinishedEvent = "AudioPlayerPlaybackFinished";
6
- export declare type AudioPlayerPlaybackStoppedEvent = "AudioPlayerPlaybackStopped";
7
- export declare type AudioPlayerPlaybackNearlyFinishedEvent = "AudioPlayerPlaybackNearlyFinished";
8
- export declare type AudioPlayerPlaybackFailedEvent = "AudioPlayerPlaybackFailed";
9
- export declare type AudioPlayerSystemExceptionEvent = "AudioPlayerSystemException";
10
- export declare type AudioPlayerEvent = AudioPlayerPlaybackStartedEvent | AudioPlayerPlaybackFinishedEvent | AudioPlayerPlaybackStoppedEvent | AudioPlayerPlaybackNearlyFinishedEvent | AudioPlayerPlaybackFailedEvent | AudioPlayerSystemExceptionEvent;
4
+ export type AudioPlayerPlaybackStartedEvent = "AudioPlayerPlaybackStarted";
5
+ export type AudioPlayerPlaybackFinishedEvent = "AudioPlayerPlaybackFinished";
6
+ export type AudioPlayerPlaybackStoppedEvent = "AudioPlayerPlaybackStopped";
7
+ export type AudioPlayerPlaybackNearlyFinishedEvent = "AudioPlayerPlaybackNearlyFinished";
8
+ export type AudioPlayerPlaybackFailedEvent = "AudioPlayerPlaybackFailed";
9
+ export type AudioPlayerSystemExceptionEvent = "AudioPlayerSystemException";
10
+ export type AudioPlayerEvent = AudioPlayerPlaybackStartedEvent | AudioPlayerPlaybackFinishedEvent | AudioPlayerPlaybackStoppedEvent | AudioPlayerPlaybackNearlyFinishedEvent | AudioPlayerPlaybackFailedEvent | AudioPlayerSystemExceptionEvent;
11
11
  /**
12
12
  * AudioPlayer requests handle audio life-cycle events such as playback started, playback stopped,
13
13
  * playback failed, etc.
@@ -4,7 +4,7 @@ import { Data } from "../Handler";
4
4
  import { BaseRequest, SentimentedRequest } from "./Request";
5
5
  import { IntentRequestType } from "./Types";
6
6
  import { KnowledgeAnswer, KnowledgeBaseResult } from "./KnowledgeBase";
7
- export declare type RequestSlotValues = string | number | object | DateTimeRange | DateTime | Duration | (string)[];
7
+ export type RequestSlotValues = string | number | object | DateTimeRange | DateTime | Duration | (string)[];
8
8
  export interface RequestAttachment {
9
9
  /**
10
10
  * Url to the uploaded file
@@ -1,11 +1,11 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { BaseRequest } from "./Request";
3
3
  import { PlaybackControlRequestType } from "./Types";
4
- export declare type PlaybackControlNextEvent = "PlaybackControlNextEvent";
5
- export declare type PlaybackControlPreviousEvent = "PlaybackControlPreviousEvent";
6
- export declare type PlaybackControlPauseEvent = "PlaybackControlPauseEvent";
7
- export declare type PlaybackControlPlayEvent = "PlaybackControlPlayEvent";
8
- export declare type PlaybackControlEvent = PlaybackControlNextEvent | PlaybackControlPauseEvent | PlaybackControlPreviousEvent | PlaybackControlPlayEvent;
4
+ export type PlaybackControlNextEvent = "PlaybackControlNextEvent";
5
+ export type PlaybackControlPreviousEvent = "PlaybackControlPreviousEvent";
6
+ export type PlaybackControlPauseEvent = "PlaybackControlPauseEvent";
7
+ export type PlaybackControlPlayEvent = "PlaybackControlPlayEvent";
8
+ export type PlaybackControlEvent = PlaybackControlNextEvent | PlaybackControlPauseEvent | PlaybackControlPreviousEvent | PlaybackControlPlayEvent;
9
9
  /**
10
10
  * Playback control requests come from either remote control buttons or
11
11
  * on screen buttons. These are events like next, previous, resume & pause.
@@ -143,4 +143,4 @@ export interface ApiAccessData {
143
143
  apiBaseUrl: string;
144
144
  apiAuthToken: string;
145
145
  }
146
- export declare type Request = LaunchRequest | SessionEndedRequest | InputUnknownRequest | IntentRequest | AudioPlayerRequest | PlaybackControlRequest | PermissionRequest | SurfaceChangeRequest | NotificationPermissionRequest | SignInRequest | OptionSelectRequest | RawQueryRequest | DeliveryAddressRequest | TransactionDecisionRequest | TransactionRequirementCheckRequest;
146
+ export type Request = LaunchRequest | SessionEndedRequest | InputUnknownRequest | IntentRequest | AudioPlayerRequest | PlaybackControlRequest | PermissionRequest | SurfaceChangeRequest | NotificationPermissionRequest | SignInRequest | OptionSelectRequest | RawQueryRequest | DeliveryAddressRequest | TransactionDecisionRequest | TransactionRequirementCheckRequest;
@@ -8,4 +8,4 @@ export interface RequestDependent {
8
8
  */
9
9
  requestMatch: Match;
10
10
  }
11
- export declare type RequestDependable<T> = T & RequestDependent;
11
+ export type RequestDependable<T> = T & RequestDependent;
@@ -1,9 +1,9 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type SystemConditionType = "!ACCOUNT_LINKED" | "ACCOUNT_LINKED" | "!HEALTH_CHECK" | "HEALTH_CHECK" | "!BARGE_IN" | "BARGE_IN" | "OPTION_SELECT" | "!OPTION_SELECT" | "PERMISSION_GRANTED" | "!PERMISSION_GRANTED" | "SURFACE_CHANGED" | "!SURFACE_CHANGED" | "NOTIFICATION_PERMISSION_GRANTED" | "!NOTIFICATION_PERMISSION_GRANTED";
2
+ export type SystemConditionType = "!ACCOUNT_LINKED" | "ACCOUNT_LINKED" | "!HEALTH_CHECK" | "HEALTH_CHECK" | "!BARGE_IN" | "BARGE_IN" | "OPTION_SELECT" | "!OPTION_SELECT" | "PERMISSION_GRANTED" | "!PERMISSION_GRANTED" | "SURFACE_CHANGED" | "!SURFACE_CHANGED" | "NOTIFICATION_PERMISSION_GRANTED" | "!NOTIFICATION_PERMISSION_GRANTED";
3
3
  export interface SystemDependent {
4
4
  /**
5
5
  * "System state". This is something that is not in slots, session or perm. data.
6
6
  */
7
7
  systemCondition: SystemConditionType;
8
8
  }
9
- export declare type SystemDependable<T> = T & SystemDependent;
9
+ export type SystemDependable<T> = T & SystemDependent;
@@ -1,24 +1,24 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type AudioPlayerRequestType = "AUDIO_PLAYER_REQUEST";
3
- export declare type InputUnknownRequestType = "INPUT_UNKNOWN_REQUEST";
4
- export declare type IntentRequestType = "INTENT_REQUEST";
5
- export declare type LaunchRequestType = "LAUNCH_REQUEST";
6
- export declare type NotificationPermissionRequestType = "NOTIFICATION_PERMISSION_REQUEST_TYPE";
7
- export declare type OptionSelectRequestType = "OPTION_SELECT_REQUEST";
8
- export declare type PermissionRequestType = "PERMISSION_GRANT";
9
- export declare type PlaybackControlRequestType = "PLAYBACK_CONTROL_REQUEST";
10
- export declare type RawQueryRequestType = "RAW_QUERY_REQUEST";
11
- export declare type SessionEndedRequestType = "SESSION_ENDED_REQUEST";
12
- export declare type SignInRequestType = "SIGN_IN_REQUEST";
13
- export declare type SurfaceChangeRequestType = "SURFACE_CHANGE_REQUEST";
14
- export declare type TransactionRequirementCheckType = "TRANSACTION_REQUIREMENT_CHECK_REQUEST";
15
- export declare type TransactionDecisionType = "TRANSACTION_DECISION_REQUEST";
16
- export declare type TransactionDeliveryAddressType = "TRANSACTION_DELIVERY_ADDRESS_REQUEST";
17
- export declare type RequestTypes = AudioPlayerRequestType | InputUnknownRequestType | IntentRequestType | LaunchRequestType | NotificationPermissionRequestType | OptionSelectRequestType | PermissionRequestType | PlaybackControlRequestType | RawQueryRequestType | SessionEndedRequestType | SignInRequestType | SurfaceChangeRequestType | TransactionRequirementCheckType | TransactionDecisionType | TransactionDeliveryAddressType;
18
- export declare type LaunchRequestID = "LaunchRequest";
19
- export declare type PermissionGrantID = "PermissionGrant";
20
- export declare type InputUnknownID = "InputUnknown";
21
- export declare type OptionSelectID = "OptionSelect";
22
- export declare type SignInID = "SignIn";
23
- export declare type KnowledgeAnswerID = "KnowledgeAnswer";
24
- export declare type AttachmentRequestID = "AttachmentRequest";
2
+ export type AudioPlayerRequestType = "AUDIO_PLAYER_REQUEST";
3
+ export type InputUnknownRequestType = "INPUT_UNKNOWN_REQUEST";
4
+ export type IntentRequestType = "INTENT_REQUEST";
5
+ export type LaunchRequestType = "LAUNCH_REQUEST";
6
+ export type NotificationPermissionRequestType = "NOTIFICATION_PERMISSION_REQUEST_TYPE";
7
+ export type OptionSelectRequestType = "OPTION_SELECT_REQUEST";
8
+ export type PermissionRequestType = "PERMISSION_GRANT";
9
+ export type PlaybackControlRequestType = "PLAYBACK_CONTROL_REQUEST";
10
+ export type RawQueryRequestType = "RAW_QUERY_REQUEST";
11
+ export type SessionEndedRequestType = "SESSION_ENDED_REQUEST";
12
+ export type SignInRequestType = "SIGN_IN_REQUEST";
13
+ export type SurfaceChangeRequestType = "SURFACE_CHANGE_REQUEST";
14
+ export type TransactionRequirementCheckType = "TRANSACTION_REQUIREMENT_CHECK_REQUEST";
15
+ export type TransactionDecisionType = "TRANSACTION_DECISION_REQUEST";
16
+ export type TransactionDeliveryAddressType = "TRANSACTION_DELIVERY_ADDRESS_REQUEST";
17
+ export type RequestTypes = AudioPlayerRequestType | InputUnknownRequestType | IntentRequestType | LaunchRequestType | NotificationPermissionRequestType | OptionSelectRequestType | PermissionRequestType | PlaybackControlRequestType | RawQueryRequestType | SessionEndedRequestType | SignInRequestType | SurfaceChangeRequestType | TransactionRequirementCheckType | TransactionDecisionType | TransactionDeliveryAddressType;
18
+ export type LaunchRequestID = "LaunchRequest";
19
+ export type PermissionGrantID = "PermissionGrant";
20
+ export type InputUnknownID = "InputUnknown";
21
+ export type OptionSelectID = "OptionSelect";
22
+ export type SignInID = "SignIn";
23
+ export type KnowledgeAnswerID = "KnowledgeAnswer";
24
+ export type AttachmentRequestID = "AttachmentRequest";
@@ -2,11 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AbstractResponseBuilder = void 0;
4
4
  class AbstractResponseBuilder {
5
- constructor(props) {
6
- this.tag = undefined;
7
- this.device = props.device;
8
- this._response = {};
9
- }
10
5
  /**
11
6
  * The response that will be communicated to the user
12
7
  *
@@ -15,6 +10,11 @@ class AbstractResponseBuilder {
15
10
  get response() {
16
11
  return this._response;
17
12
  }
13
+ constructor(props) {
14
+ this.tag = undefined;
15
+ this.device = props.device;
16
+ this._response = {};
17
+ }
18
18
  /**
19
19
  * The number of playables that can be sent at once. Override it if the platform handles more.
20
20
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractResponseBuilder.js","sourceRoot":"","sources":["../../src/Response/AbstractResponseBuilder.ts"],"names":[],"mappings":";;;AAgCA,MAAsB,uBAAuB;IAsCzC,YAAmB,KAA2B;QAC1C,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACxB,CAAC;IAtBD;;;;OAIG;IACH,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAoID;;OAEG;IACI,cAAc;QACjB,OAAO,CAAC,CAAC;IACb,CAAC;CAoFJ;AAxPD,0DAwPC"}
1
+ {"version":3,"file":"AbstractResponseBuilder.js","sourceRoot":"","sources":["../../src/Response/AbstractResponseBuilder.ts"],"names":[],"mappings":";;;AAgCA,MAAsB,uBAAuB;IAoBzC;;;;OAIG;IACH,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAWD,YAAmB,KAA2B;QAC1C,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACxB,CAAC;IAqHD;;OAEG;IACI,cAAc;QACjB,OAAO,CAAC,CAAC;IACb,CAAC;CAoFJ;AAxPD,0DAwPC"}
@@ -135,33 +135,33 @@ export interface SimpleResponse<T = string | ResponseOutput> extends Partial<Act
135
135
  /**
136
136
  * A response that can be scheduled.
137
137
  */
138
- export declare type SchedulableResponse<T = string | ResponseOutput> = Scheduled<SimpleResponse<T>>;
138
+ export type SchedulableResponse<T = string | ResponseOutput> = Scheduled<SimpleResponse<T>>;
139
139
  /**
140
140
  * A response that is contextual, it knows about your past interactions.
141
141
  */
142
- export declare type LastActiveResponse<T = string | ResponseOutput> = LastActive<SimpleResponse<T>>;
142
+ export type LastActiveResponse<T = string | ResponseOutput> = LastActive<SimpleResponse<T>>;
143
143
  /**
144
144
  * A response that is dependent on a slot value in the current request.
145
145
  */
146
- export declare type SlotDependentResponse<T = string | ResponseOutput> = SlotDependable<SimpleResponse<T>>;
146
+ export type SlotDependentResponse<T = string | ResponseOutput> = SlotDependable<SimpleResponse<T>>;
147
147
  /**
148
148
  * A response that is dependent on a value on user storage.
149
149
  */
150
- export declare type StorageDependentResponse<T = string | ResponseOutput> = StorageDependable<SimpleResponse<T>>;
150
+ export type StorageDependentResponse<T = string | ResponseOutput> = StorageDependable<SimpleResponse<T>>;
151
151
  /**
152
152
  * A response that is dependent on a value on the request.
153
153
  */
154
- export declare type RequestDependentResponse<T = string | ResponseOutput> = RequestDependable<SimpleResponse<T>>;
154
+ export type RequestDependentResponse<T = string | ResponseOutput> = RequestDependable<SimpleResponse<T>>;
155
155
  /**
156
156
  * A response that is dependent on a system state such as if the user has linked their account.
157
157
  */
158
- export declare type SystemDependentResponse<T = string | ResponseOutput> = SystemDependable<SimpleResponse<T>>;
158
+ export type SystemDependentResponse<T = string | ResponseOutput> = SystemDependable<SimpleResponse<T>>;
159
159
  /**
160
160
  * A response that is dependent on a particular JSON path matcher.
161
161
  */
162
- export declare type JSONDependableResponse<T = string | ResponseOutput> = JSONDependable<SimpleResponse<T>>;
162
+ export type JSONDependableResponse<T = string | ResponseOutput> = JSONDependable<SimpleResponse<T>>;
163
163
  /**
164
164
  * A response is a possible response back to a user; it includes a prompt, reprompt, and visual
165
165
  * assets.
166
166
  */
167
- export declare type Response<T = string | ResponseOutput> = JSONDependableResponse<T> | LastActiveResponse<T> | RequestDependentResponse<T> | SchedulableResponse<T> | SimpleResponse<T> | SlotDependentResponse<T> | StorageDependentResponse<T> | SystemDependentResponse<T>;
167
+ export type Response<T = string | ResponseOutput> = JSONDependableResponse<T> | LastActiveResponse<T> | RequestDependentResponse<T> | SchedulableResponse<T> | SimpleResponse<T> | SlotDependentResponse<T> | StorageDependentResponse<T> | SystemDependentResponse<T>;
@@ -1,7 +1,7 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { Locale, Localizable } from "../Locale";
3
3
  import { SuggestionTypes } from "../Suggestion";
4
- export declare type LocaleSpecificResponseOutput = Partial<Pick<ResponseOutput, "displayText" | "ssml" | "textToSpeech" | "suggestions">>;
4
+ export type LocaleSpecificResponseOutput = Partial<Pick<ResponseOutput, "displayText" | "ssml" | "textToSpeech" | "suggestions">>;
5
5
  /**
6
6
  * A response object which contains all the necessary information to communicate
7
7
  * a particular response for multiple surfaces.
@@ -20,24 +20,24 @@ export interface SimpleSegment extends Partial<Conditioned> {
20
20
  /**
21
21
  * A segment that can be scheduled.
22
22
  */
23
- export declare type ScheduledSegment = Scheduled<SimpleSegment>;
23
+ export type ScheduledSegment = Scheduled<SimpleSegment>;
24
24
  /**
25
25
  * A segment that is contextual, it knows about your past interactions.
26
26
  */
27
- export declare type LastActiveSegment = LastActive<SimpleSegment>;
27
+ export type LastActiveSegment = LastActive<SimpleSegment>;
28
28
  /**
29
29
  * A segment that is dependent on a slot value in the current request.
30
30
  */
31
- export declare type SlotDependentSegment = SlotDependable<SimpleSegment>;
31
+ export type SlotDependentSegment = SlotDependable<SimpleSegment>;
32
32
  /**
33
33
  * A segment that is dependent on a value on user storage.
34
34
  */
35
- export declare type StorageDependentSegment = StorageDependable<SimpleSegment>;
35
+ export type StorageDependentSegment = StorageDependable<SimpleSegment>;
36
36
  /**
37
37
  * A segment that is dependent on a value on the request.
38
38
  */
39
- export declare type RequestDependentSegment = RequestDependable<SimpleSegment>;
40
- export declare type ResponseSegment = SimpleSegment | ScheduledSegment | LastActiveSegment | SlotDependentSegment | RequestDependentSegment | StorageDependentSegment;
39
+ export type RequestDependentSegment = RequestDependable<SimpleSegment>;
40
+ export type ResponseSegment = SimpleSegment | ScheduledSegment | LastActiveSegment | SlotDependentSegment | RequestDependentSegment | StorageDependentSegment;
41
41
  /**
42
42
  * Map of response segments where the key is name within the template.
43
43
  *
@@ -4,17 +4,17 @@
4
4
  This is a more common sense (more user-friendly), de-googlified version of the Google inputs.
5
5
  This transaction API could change in the future as we gain more experience.
6
6
  */
7
- export declare type PaymentType = "PAYMENT_TYPE_UNSPECIFIED" | "PAYMENT_CARD" | "BANK" | "LOYALTY_PROGRAM" | "CASH" | "GIFT_CARD" | "WALLET";
8
- export declare type PaymentMethodStatusType = "STATUS_UNSPECIFIED" | "STATUS_OK" | "STATUS_REQUIRE_FIX" | "STATUS_INAPPLICABLE";
9
- export declare type PurchaseStatus = "PURCHASE_STATUS_UNSPECIFIED" | "READY_FOR_PICKUP" | "SHIPPED" | "DELIVERED" | "OUT_OF_STOCK" | "IN_PREPARATION" | "CREATED" | "CONFIRMED" | "REJECTED" | "RETURNED" | "CANCELLED" | "CHANGE_REQUESTED";
10
- export declare type PurchaseType = "PURCHASE_TYPE_UNSPECIFIED" | "RETAIL" | "FOOD" | "GROCERY" | "MOBILE_RECHARGE";
11
- export declare type FulfillmentType = "TYPE_UNSPECIFIED" | "DELIVERY" | "PICKUP";
12
- export declare type PickupType = "UNSPECIFIED" | "INSTORE" | "CURBSIDE";
13
- export declare type FollowUpActionType = "VIEW_DETAILS" | "CALL" | "EMAIL";
14
- export declare type PriceType = "UNIT" | "TOTAL" | "SUBTOTAL" | "DELIVERY" | "TAX";
15
- export declare type PriceState = "ESTIMATE" | "ACTUAL";
16
- export declare type ProvenanceType = "PAYMENT_METHOD_PROVENANCE_MERCHANT" | "PAYMENT_METHOD_PROVENANCE_UNSPECIFIED" | "PAYMENT_METHOD_PROVENANCE_GOOGLE";
17
- export declare type PurchaseLocationType = "ONLINE_PURCHASE" | "UNSPECIFIED_LOCATION" | "INSTORE_PURCHASE";
7
+ export type PaymentType = "PAYMENT_TYPE_UNSPECIFIED" | "PAYMENT_CARD" | "BANK" | "LOYALTY_PROGRAM" | "CASH" | "GIFT_CARD" | "WALLET";
8
+ export type PaymentMethodStatusType = "STATUS_UNSPECIFIED" | "STATUS_OK" | "STATUS_REQUIRE_FIX" | "STATUS_INAPPLICABLE";
9
+ export type PurchaseStatus = "PURCHASE_STATUS_UNSPECIFIED" | "READY_FOR_PICKUP" | "SHIPPED" | "DELIVERED" | "OUT_OF_STOCK" | "IN_PREPARATION" | "CREATED" | "CONFIRMED" | "REJECTED" | "RETURNED" | "CANCELLED" | "CHANGE_REQUESTED";
10
+ export type PurchaseType = "PURCHASE_TYPE_UNSPECIFIED" | "RETAIL" | "FOOD" | "GROCERY" | "MOBILE_RECHARGE";
11
+ export type FulfillmentType = "TYPE_UNSPECIFIED" | "DELIVERY" | "PICKUP";
12
+ export type PickupType = "UNSPECIFIED" | "INSTORE" | "CURBSIDE";
13
+ export type FollowUpActionType = "VIEW_DETAILS" | "CALL" | "EMAIL";
14
+ export type PriceType = "UNIT" | "TOTAL" | "SUBTOTAL" | "DELIVERY" | "TAX";
15
+ export type PriceState = "ESTIMATE" | "ACTUAL";
16
+ export type ProvenanceType = "PAYMENT_METHOD_PROVENANCE_MERCHANT" | "PAYMENT_METHOD_PROVENANCE_UNSPECIFIED" | "PAYMENT_METHOD_PROVENANCE_GOOGLE";
17
+ export type PurchaseLocationType = "ONLINE_PURCHASE" | "UNSPECIFIED_LOCATION" | "INSTORE_PURCHASE";
18
18
  export interface PaymentMethodDisplayInfo {
19
19
  paymentType: PaymentType;
20
20
  paymentMethodDisplayName: string;
@@ -1,4 +1,4 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { Request } from "../Request";
3
3
  import { Response } from "../Response";
4
- export declare type RuntimeCallback<Result extends object = object> = (error?: Error | null | string, result?: Result, request?: Request, response?: Response) => void;
4
+ export type RuntimeCallback<Result extends object = object> = (error?: Error | null | string, result?: Result, request?: Request, response?: Response) => void;
@@ -8,4 +8,4 @@ export interface SlotDependent {
8
8
  */
9
9
  slotMatch: Match;
10
10
  }
11
- export declare type SlotDependable<T> = T & SlotDependent;
11
+ export type SlotDependable<T> = T & SlotDependent;
@@ -1,5 +1,5 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type ValueTypes = object | string | number | boolean;
2
+ export type ValueTypes = object | string | number | boolean;
3
3
  export interface KeyValue {
4
4
  /**
5
5
  * Key on the storage that the action will be
@@ -1,7 +1,7 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { KeyValue } from "./KeyValueStore";
3
3
  import { StorageActionType } from "./Types";
4
- export declare type StorageType = "SESSION" | "PERMANENT";
4
+ export type StorageType = "SESSION" | "PERMANENT";
5
5
  export interface StorageAction extends KeyValue {
6
6
  /**
7
7
  * The type of action to be performed on the storage.
@@ -3,4 +3,4 @@ import { Match } from "../Match";
3
3
  export interface StorageDependent {
4
4
  storageMatch: Match;
5
5
  }
6
- export declare type StorageDependable<T> = T & StorageDependent;
6
+ export type StorageDependable<T> = T & StorageDependent;
@@ -1,9 +1,9 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { KeyValue, KeyValueStore } from "./KeyValueStore";
3
- export declare type StorageActionAdd = "ADD";
4
- export declare type StorageActionAppend = "APPEND";
5
- export declare type StorageActionDelete = "DELETE";
6
- export declare type StorageActionSet = "SET";
7
- export declare type StorageActionSubtract = "SUBTRACT";
8
- export declare type StorageActionType = StorageActionAdd | StorageActionAppend | StorageActionDelete | StorageActionSet | StorageActionSubtract;
9
- export declare type StorageActionExecutor<S extends KeyValueStore = KeyValueStore> = (storage: S, keyValue: KeyValue) => S;
3
+ export type StorageActionAdd = "ADD";
4
+ export type StorageActionAppend = "APPEND";
5
+ export type StorageActionDelete = "DELETE";
6
+ export type StorageActionSet = "SET";
7
+ export type StorageActionSubtract = "SUBTRACT";
8
+ export type StorageActionType = StorageActionAdd | StorageActionAppend | StorageActionDelete | StorageActionSet | StorageActionSubtract;
9
+ export type StorageActionExecutor<S extends KeyValueStore = KeyValueStore> = (storage: S, keyValue: KeyValue) => S;
@@ -1,7 +1,7 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type SuggestionTypes = SimpleSuggestion | SuggestionObjectTypes;
3
- export declare type SuggestionObjectTypes = Suggestion | LinkOutSuggestion;
4
- export declare type SimpleSuggestion = string;
2
+ export type SuggestionTypes = SimpleSuggestion | SuggestionObjectTypes;
3
+ export type SuggestionObjectTypes = Suggestion | LinkOutSuggestion;
4
+ export type SimpleSuggestion = string;
5
5
  /**
6
6
  * Suggested responses that a user can tap.
7
7
  *
package/lib/UserData.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export declare type UserDataType = "EMAIL" | "NAME" | "DEVICE_COARSE_LOCATION" | "DEVICE_PRECISE_LOCATION" | "PHONE_NUMBER" | "LIST";
2
+ export type UserDataType = "EMAIL" | "NAME" | "DEVICE_COARSE_LOCATION" | "DEVICE_PRECISE_LOCATION" | "PHONE_NUMBER" | "LIST";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.57.0",
7
+ "version": "1.57.1",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -22,7 +22,7 @@
22
22
  "@xapp/config": "0.2.3",
23
23
  "rollup": "3.3.0",
24
24
  "tslib": "2.4.1",
25
- "typescript": "4.8.4"
25
+ "typescript": "4.9.3"
26
26
  },
27
27
  "scripts": {
28
28
  "api": "api-extractor run --local",
@@ -33,5 +33,5 @@
33
33
  "dependencies": {
34
34
  "@xapp/patterns": "1.40.343"
35
35
  },
36
- "gitHead": "49d4e56874c967af5ef1dc0da757bdd6d819ae82"
36
+ "gitHead": "09019818f24aeb1882fe2e8a73f43a01a0cc2789"
37
37
  }