stentor-models 1.57.38 → 1.57.40

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.
@@ -0,0 +1,41 @@
1
+ /*! Copyright (c) 2022, XAPP AI */
2
+ import { BaseRequest } from "./Request";
3
+ import { ChannelActionRequestType } from "./Types";
4
+ /**
5
+ * A user initiated action performed on the channel. The most common is opening a URL.
6
+ *
7
+ * This can be used to provide a follow up response to the user performing an action or simply for keeping
8
+ * track of if the URL opened.
9
+ *
10
+ * @beta This is new and subject to change
11
+ */
12
+ export interface ChannelActionRequest extends BaseRequest {
13
+ type: ChannelActionRequestType;
14
+ /**
15
+ * The current session ID
16
+ */
17
+ sessionId?: string;
18
+ /**
19
+ * Action taken
20
+ */
21
+ action: "OPEN_URL" | "FEEDBACK_RESPONSE" | string;
22
+ /**
23
+ * Optional, reference ID passed back.
24
+ */
25
+ referenceId?: string;
26
+ /**
27
+ * Optional, used differently depending on the action.
28
+ *
29
+ * Use this for "OPEN_URL" action types.
30
+ */
31
+ uri?: string;
32
+ /**
33
+ * Optional, used to provide feedback on a posed question such as "How would you rate this experience?"
34
+ * or "Was the response relevant?"
35
+ */
36
+ feedback?: "POSITIVE" | "NEGATIVE" | "RELEVANT" | "NOT_RELEVANT" | string;
37
+ /**
38
+ * Optional, open ended detail, can be used for stringified JSON or notes from the end user.
39
+ */
40
+ detail?: string;
41
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ChannelActionRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelActionRequest.js","sourceRoot":"","sources":["../../src/Request/ChannelActionRequest.ts"],"names":[],"mappings":""}
@@ -17,6 +17,7 @@ import { RequestTypes } from "./Types";
17
17
  import { DeliveryAddressRequest } from "./DeliveryAddressRequest";
18
18
  import { TransactionDecisionRequest } from "./TransactionDecisionRequest";
19
19
  import { TransactionRequirementCheckRequest } from "./TransactionRequirementCheckRequest";
20
+ import { ChannelActionRequest } from "./ChannelActionRequest";
20
21
  /**
21
22
  * Shared parameters for each Request
22
23
  */
@@ -150,4 +151,4 @@ export interface ApiAccessData {
150
151
  apiBaseUrl: string;
151
152
  apiAuthToken: string;
152
153
  }
153
- export type Request = LaunchRequest | SessionEndedRequest | InputUnknownRequest | IntentRequest | AudioPlayerRequest | PlaybackControlRequest | PermissionRequest | SurfaceChangeRequest | NotificationPermissionRequest | SignInRequest | OptionSelectRequest | RawQueryRequest | DeliveryAddressRequest | TransactionDecisionRequest | TransactionRequirementCheckRequest;
154
+ export type Request = AudioPlayerRequest | ChannelActionRequest | DeliveryAddressRequest | InputUnknownRequest | IntentRequest | LaunchRequest | NotificationPermissionRequest | OptionSelectRequest | PermissionRequest | PlaybackControlRequest | RawQueryRequest | SessionEndedRequest | SignInRequest | SurfaceChangeRequest | TransactionDecisionRequest | TransactionRequirementCheckRequest;
@@ -1,5 +1,6 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  export type AudioPlayerRequestType = "AUDIO_PLAYER_REQUEST";
3
+ export type ChannelActionRequestType = "CHANNEL_ACTION_REQUEST";
3
4
  export type InputUnknownRequestType = "INPUT_UNKNOWN_REQUEST";
4
5
  export type IntentRequestType = "INTENT_REQUEST";
5
6
  export type LaunchRequestType = "LAUNCH_REQUEST";
@@ -14,7 +15,7 @@ export type SurfaceChangeRequestType = "SURFACE_CHANGE_REQUEST";
14
15
  export type TransactionRequirementCheckType = "TRANSACTION_REQUIREMENT_CHECK_REQUEST";
15
16
  export type TransactionDecisionType = "TRANSACTION_DECISION_REQUEST";
16
17
  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 RequestTypes = AudioPlayerRequestType | ChannelActionRequestType | InputUnknownRequestType | IntentRequestType | LaunchRequestType | NotificationPermissionRequestType | OptionSelectRequestType | PermissionRequestType | PlaybackControlRequestType | RawQueryRequestType | SessionEndedRequestType | SignInRequestType | SurfaceChangeRequestType | TransactionRequirementCheckType | TransactionDecisionType | TransactionDeliveryAddressType;
18
19
  export type LaunchRequestID = "LaunchRequest";
19
20
  export type PermissionGrantID = "PermissionGrant";
20
21
  export type InputUnknownID = "InputUnknown";
@@ -1,5 +1,6 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  export * from "./AudioPlayerRequest";
3
+ export * from "./ChannelActionRequest";
3
4
  export * from "./InputUnknownRequest";
4
5
  export * from "./IntentRequest";
5
6
  export * from "./KnowledgeBase";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /*! Copyright (c) 2019, XAPPmedia */
18
18
  __exportStar(require("./AudioPlayerRequest"), exports);
19
+ __exportStar(require("./ChannelActionRequest"), exports);
19
20
  __exportStar(require("./InputUnknownRequest"), exports);
20
21
  __exportStar(require("./IntentRequest"), exports);
21
22
  __exportStar(require("./KnowledgeBase"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,kEAAgD;AAChD,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,4CAA0B;AAC1B,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,yDAAuC;AACvC,oDAAkC;AAClC,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,uDAAqC;AACrC,yDAAuC;AACvC,wDAAsC;AACtC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,kEAAgD;AAChD,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,4CAA0B;AAC1B,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,yDAAuC;AACvC,oDAAkC;AAClC,0CAAwB"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.57.38",
7
+ "version": "1.57.40",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -31,7 +31,7 @@
31
31
  "clean": "rm -rf ./lib/* && rm -rf ./dist/*"
32
32
  },
33
33
  "dependencies": {
34
- "@xapp/patterns": "1.43.4"
34
+ "@xapp/patterns": "1.43.38"
35
35
  },
36
- "gitHead": "b6384a0607f153daa9778b9f626861cb83f64412"
36
+ "gitHead": "072b5f40e94929b039d7833fd846905a04d42606"
37
37
  }