@voiceflow/base-types 2.25.2 → 2.27.0

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 (179) hide show
  1. package/build/common/button/index.d.ts +1 -1
  2. package/build/common/index.d.ts +1 -0
  3. package/build/common/index.js +2 -1
  4. package/build/common/models/apiKey.d.ts +1 -1
  5. package/build/common/models/base/command.d.ts +1 -1
  6. package/build/common/models/base/node.d.ts +1 -1
  7. package/build/common/models/base/note.d.ts +1 -1
  8. package/build/common/models/base/port.d.ts +3 -3
  9. package/build/common/models/base/slot.d.ts +1 -1
  10. package/build/common/models/project/index.d.ts +1 -1
  11. package/build/common/models/project/member.d.ts +1 -1
  12. package/build/common/models/project/prototype.d.ts +1 -1
  13. package/build/common/models/version/index.d.ts +1 -1
  14. package/build/common/models/version/prototype.d.ts +1 -1
  15. package/build/common/node/_v1.d.ts +1 -1
  16. package/build/common/node/api.d.ts +1 -1
  17. package/build/common/node/buttons.d.ts +1 -1
  18. package/build/common/node/capture.d.ts +1 -1
  19. package/build/common/node/captureV2.d.ts +1 -1
  20. package/build/common/node/cardV2.d.ts +1 -1
  21. package/build/common/node/exit.d.ts +2 -2
  22. package/build/common/node/flow.d.ts +1 -1
  23. package/build/common/node/general.d.ts +1 -1
  24. package/build/common/node/goTo.d.ts +1 -1
  25. package/build/common/node/goToBlock.d.ts +1 -1
  26. package/build/common/node/googleSheets.d.ts +1 -1
  27. package/build/common/node/interaction.d.ts +1 -1
  28. package/build/common/node/jump.d.ts +1 -1
  29. package/build/common/node/push.d.ts +1 -1
  30. package/build/common/node/set.d.ts +1 -1
  31. package/build/common/node/setV2.d.ts +1 -1
  32. package/build/common/node/speak.d.ts +1 -1
  33. package/build/common/node/utils/base.d.ts +1 -1
  34. package/build/common/node/utils/command.d.ts +1 -1
  35. package/build/common/node/utils/expression.d.ts +1 -1
  36. package/build/common/node/utils/integration.d.ts +1 -1
  37. package/build/common/node/utils/noMatch.d.ts +1 -1
  38. package/build/common/node/utils/noReply.d.ts +1 -1
  39. package/build/common/node/visual.d.ts +1 -1
  40. package/build/common/project/index.d.ts +1 -1
  41. package/build/common/runtimeLogs/index.d.ts +2 -0
  42. package/build/common/runtimeLogs/index.js +14 -0
  43. package/build/common/runtimeLogs/logs/base.d.ts +21 -0
  44. package/build/common/runtimeLogs/logs/base.js +2 -0
  45. package/build/common/runtimeLogs/logs/global/conversationStart.d.ts +6 -0
  46. package/build/common/runtimeLogs/logs/global/conversationStart.js +2 -0
  47. package/build/common/runtimeLogs/logs/index.d.ts +23 -0
  48. package/build/common/runtimeLogs/logs/index.js +13 -0
  49. package/build/common/runtimeLogs/logs/steps/api.d.ts +33 -0
  50. package/build/common/runtimeLogs/logs/steps/api.js +2 -0
  51. package/build/common/runtimeLogs/logs/steps/buttons.d.ts +16 -0
  52. package/build/common/runtimeLogs/logs/steps/buttons.js +2 -0
  53. package/build/common/runtimeLogs/logs/steps/capture.d.ts +8 -0
  54. package/build/common/runtimeLogs/logs/steps/capture.js +2 -0
  55. package/build/common/runtimeLogs/logs/steps/code.d.ts +9 -0
  56. package/build/common/runtimeLogs/logs/steps/code.js +2 -0
  57. package/build/common/runtimeLogs/logs/steps/condition.d.ts +5 -0
  58. package/build/common/runtimeLogs/logs/steps/condition.js +2 -0
  59. package/build/common/runtimeLogs/logs/steps/customAction.d.ts +7 -0
  60. package/build/common/runtimeLogs/logs/steps/customAction.js +2 -0
  61. package/build/common/runtimeLogs/logs/steps/exit.d.ts +7 -0
  62. package/build/common/runtimeLogs/logs/steps/exit.js +2 -0
  63. package/build/common/runtimeLogs/logs/steps/flow.d.ts +5 -0
  64. package/build/common/runtimeLogs/logs/steps/flow.js +2 -0
  65. package/build/common/runtimeLogs/logs/steps/intent.d.ts +11 -0
  66. package/build/common/runtimeLogs/logs/steps/intent.js +2 -0
  67. package/build/common/runtimeLogs/logs/steps/random.d.ts +5 -0
  68. package/build/common/runtimeLogs/logs/steps/random.js +2 -0
  69. package/build/common/runtimeLogs/logs/steps/set.d.ts +6 -0
  70. package/build/common/runtimeLogs/logs/steps/set.js +2 -0
  71. package/build/common/runtimeLogs/logs/steps/speak.d.ts +5 -0
  72. package/build/common/runtimeLogs/logs/steps/speak.js +2 -0
  73. package/build/common/runtimeLogs/logs/steps/start.d.ts +4 -0
  74. package/build/common/runtimeLogs/logs/steps/start.js +2 -0
  75. package/build/common/runtimeLogs/logs/steps/text.d.ts +5 -0
  76. package/build/common/runtimeLogs/logs/steps/text.js +2 -0
  77. package/build/common/runtimeLogs/runtime/index.d.ts +1 -0
  78. package/build/common/runtimeLogs/runtime/index.js +13 -0
  79. package/build/common/runtimeLogs/runtime/logBuffer.d.ts +19 -0
  80. package/build/common/runtimeLogs/runtime/logBuffer.js +2 -0
  81. package/build/common/runtimeLogs/utils/index.d.ts +2 -0
  82. package/build/common/runtimeLogs/utils/index.js +14 -0
  83. package/build/common/runtimeLogs/utils/logs.d.ts +8 -0
  84. package/build/common/runtimeLogs/utils/logs.js +19 -0
  85. package/build/common/runtimeLogs/utils/types.d.ts +32 -0
  86. package/build/common/runtimeLogs/utils/types.js +36 -0
  87. package/build/common/types.d.ts +9 -4
  88. package/build/common/utils/step.d.ts +29 -29
  89. package/build/common/version/settings.d.ts +1 -1
  90. package/build/esm/button/index.d.ts +1 -1
  91. package/build/esm/index.d.ts +1 -0
  92. package/build/esm/index.js +1 -0
  93. package/build/esm/models/apiKey.d.ts +1 -1
  94. package/build/esm/models/base/command.d.ts +1 -1
  95. package/build/esm/models/base/node.d.ts +1 -1
  96. package/build/esm/models/base/note.d.ts +1 -1
  97. package/build/esm/models/base/port.d.ts +3 -3
  98. package/build/esm/models/base/slot.d.ts +1 -1
  99. package/build/esm/models/project/index.d.ts +1 -1
  100. package/build/esm/models/project/member.d.ts +1 -1
  101. package/build/esm/models/project/prototype.d.ts +1 -1
  102. package/build/esm/models/version/index.d.ts +1 -1
  103. package/build/esm/models/version/prototype.d.ts +1 -1
  104. package/build/esm/node/_v1.d.ts +1 -1
  105. package/build/esm/node/api.d.ts +1 -1
  106. package/build/esm/node/buttons.d.ts +1 -1
  107. package/build/esm/node/capture.d.ts +1 -1
  108. package/build/esm/node/captureV2.d.ts +1 -1
  109. package/build/esm/node/cardV2.d.ts +1 -1
  110. package/build/esm/node/exit.d.ts +2 -2
  111. package/build/esm/node/flow.d.ts +1 -1
  112. package/build/esm/node/general.d.ts +1 -1
  113. package/build/esm/node/goTo.d.ts +1 -1
  114. package/build/esm/node/goToBlock.d.ts +1 -1
  115. package/build/esm/node/googleSheets.d.ts +1 -1
  116. package/build/esm/node/interaction.d.ts +1 -1
  117. package/build/esm/node/jump.d.ts +1 -1
  118. package/build/esm/node/push.d.ts +1 -1
  119. package/build/esm/node/set.d.ts +1 -1
  120. package/build/esm/node/setV2.d.ts +1 -1
  121. package/build/esm/node/speak.d.ts +1 -1
  122. package/build/esm/node/utils/base.d.ts +1 -1
  123. package/build/esm/node/utils/command.d.ts +1 -1
  124. package/build/esm/node/utils/expression.d.ts +1 -1
  125. package/build/esm/node/utils/integration.d.ts +1 -1
  126. package/build/esm/node/utils/noMatch.d.ts +1 -1
  127. package/build/esm/node/utils/noReply.d.ts +1 -1
  128. package/build/esm/node/visual.d.ts +1 -1
  129. package/build/esm/project/index.d.ts +1 -1
  130. package/build/esm/runtimeLogs/index.d.ts +2 -0
  131. package/build/esm/runtimeLogs/index.js +2 -0
  132. package/build/esm/runtimeLogs/logs/base.d.ts +21 -0
  133. package/build/esm/runtimeLogs/logs/base.js +1 -0
  134. package/build/esm/runtimeLogs/logs/global/conversationStart.d.ts +6 -0
  135. package/build/esm/runtimeLogs/logs/global/conversationStart.js +1 -0
  136. package/build/esm/runtimeLogs/logs/index.d.ts +23 -0
  137. package/build/esm/runtimeLogs/logs/index.js +1 -0
  138. package/build/esm/runtimeLogs/logs/steps/api.d.ts +33 -0
  139. package/build/esm/runtimeLogs/logs/steps/api.js +1 -0
  140. package/build/esm/runtimeLogs/logs/steps/buttons.d.ts +16 -0
  141. package/build/esm/runtimeLogs/logs/steps/buttons.js +1 -0
  142. package/build/esm/runtimeLogs/logs/steps/capture.d.ts +8 -0
  143. package/build/esm/runtimeLogs/logs/steps/capture.js +1 -0
  144. package/build/esm/runtimeLogs/logs/steps/code.d.ts +9 -0
  145. package/build/esm/runtimeLogs/logs/steps/code.js +1 -0
  146. package/build/esm/runtimeLogs/logs/steps/condition.d.ts +5 -0
  147. package/build/esm/runtimeLogs/logs/steps/condition.js +1 -0
  148. package/build/esm/runtimeLogs/logs/steps/customAction.d.ts +7 -0
  149. package/build/esm/runtimeLogs/logs/steps/customAction.js +1 -0
  150. package/build/esm/runtimeLogs/logs/steps/exit.d.ts +7 -0
  151. package/build/esm/runtimeLogs/logs/steps/exit.js +1 -0
  152. package/build/esm/runtimeLogs/logs/steps/flow.d.ts +5 -0
  153. package/build/esm/runtimeLogs/logs/steps/flow.js +1 -0
  154. package/build/esm/runtimeLogs/logs/steps/intent.d.ts +11 -0
  155. package/build/esm/runtimeLogs/logs/steps/intent.js +1 -0
  156. package/build/esm/runtimeLogs/logs/steps/random.d.ts +5 -0
  157. package/build/esm/runtimeLogs/logs/steps/random.js +1 -0
  158. package/build/esm/runtimeLogs/logs/steps/set.d.ts +6 -0
  159. package/build/esm/runtimeLogs/logs/steps/set.js +1 -0
  160. package/build/esm/runtimeLogs/logs/steps/speak.d.ts +5 -0
  161. package/build/esm/runtimeLogs/logs/steps/speak.js +1 -0
  162. package/build/esm/runtimeLogs/logs/steps/start.d.ts +4 -0
  163. package/build/esm/runtimeLogs/logs/steps/start.js +1 -0
  164. package/build/esm/runtimeLogs/logs/steps/text.d.ts +5 -0
  165. package/build/esm/runtimeLogs/logs/steps/text.js +1 -0
  166. package/build/esm/runtimeLogs/runtime/index.d.ts +1 -0
  167. package/build/esm/runtimeLogs/runtime/index.js +1 -0
  168. package/build/esm/runtimeLogs/runtime/logBuffer.d.ts +19 -0
  169. package/build/esm/runtimeLogs/runtime/logBuffer.js +1 -0
  170. package/build/esm/runtimeLogs/utils/index.d.ts +2 -0
  171. package/build/esm/runtimeLogs/utils/index.js +2 -0
  172. package/build/esm/runtimeLogs/utils/logs.d.ts +8 -0
  173. package/build/esm/runtimeLogs/utils/logs.js +15 -0
  174. package/build/esm/runtimeLogs/utils/types.d.ts +32 -0
  175. package/build/esm/runtimeLogs/utils/types.js +33 -0
  176. package/build/esm/types.d.ts +9 -4
  177. package/build/esm/utils/step.d.ts +29 -29
  178. package/build/esm/version/settings.d.ts +1 -1
  179. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  export declare enum ButtonType {
3
3
  INTENT = "INTENT"
4
4
  }
@@ -8,6 +8,7 @@ export * as Project from './project';
8
8
  export * as BaseProject from './project';
9
9
  export * as Request from './request';
10
10
  export * as BaseRequest from './request';
11
+ export * as RuntimeLogs from './runtimeLogs';
11
12
  export * as Text from './text';
12
13
  export * as BaseText from './text';
13
14
  export * as Trace from './trace';
@@ -22,7 +22,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
22
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.VariableState = exports.BaseVersion = exports.Version = exports.BaseUtils = exports.Utils = exports.BaseTrace = exports.Trace = exports.BaseText = exports.Text = exports.BaseRequest = exports.Request = exports.BaseProject = exports.Project = exports.BaseNode = exports.Node = exports.BaseModels = exports.Models = exports.BaseButton = exports.Button = void 0;
25
+ exports.VariableState = exports.BaseVersion = exports.Version = exports.BaseUtils = exports.Utils = exports.BaseTrace = exports.Trace = exports.BaseText = exports.Text = exports.RuntimeLogs = exports.BaseRequest = exports.Request = exports.BaseProject = exports.Project = exports.BaseNode = exports.Node = exports.BaseModels = exports.Models = exports.BaseButton = exports.Button = void 0;
26
26
  exports.Button = __importStar(require("./button"));
27
27
  exports.BaseButton = __importStar(require("./button"));
28
28
  exports.Models = __importStar(require("./models"));
@@ -33,6 +33,7 @@ exports.Project = __importStar(require("./project"));
33
33
  exports.BaseProject = __importStar(require("./project"));
34
34
  exports.Request = __importStar(require("./request"));
35
35
  exports.BaseRequest = __importStar(require("./request"));
36
+ exports.RuntimeLogs = __importStar(require("./runtimeLogs"));
36
37
  exports.Text = __importStar(require("./text"));
37
38
  exports.BaseText = __importStar(require("./text"));
38
39
  exports.Trace = __importStar(require("./trace"));
@@ -1,4 +1,4 @@
1
- import { AnyRecord } from "../types";
1
+ import { AnyRecord } from '@voiceflow/common';
2
2
  export declare const API_KEY_PREFIX = "VF.";
3
3
  export declare enum APIKeySubType {
4
4
  Workspace = "WS",
@@ -1,4 +1,4 @@
1
- import { AnyRecord } from "../../types";
1
+ import { AnyRecord } from '@voiceflow/common';
2
2
  import { Variable } from './common';
3
3
  export interface CommandMapping {
4
4
  slot: string;
@@ -1,4 +1,4 @@
1
- import { AnyRecord } from "../../types";
1
+ import { AnyRecord } from '@voiceflow/common';
2
2
  import { AnyBaseStepPorts, BasePortList, NextStepPorts } from './port';
3
3
  /**
4
4
  * @deprecated use BaseNode instead
@@ -1,4 +1,4 @@
1
- import { AnyRecord } from "../../types";
1
+ import { AnyRecord } from '@voiceflow/common';
2
2
  export declare enum NoteType {
3
3
  INTENT = "INTENT"
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EmptyRecord, Nullable } from "../../types";
1
+ import { EmptyObject, Nullable } from '@voiceflow/common';
2
2
  export declare enum PortType {
3
3
  FAIL = "fail",
4
4
  NEXT = "next",
@@ -34,13 +34,13 @@ export interface BuiltInNextFailPorts extends BuiltInNextPort, BuiltInFailPort {
34
34
  }
35
35
  export interface BuiltInNoMatchNoReplyPorts extends BuiltInNoMatchPort, BuiltInNoReplyPort {
36
36
  }
37
- export interface EmptyStepPorts extends BaseStepPorts<EmptyRecord, []> {
37
+ export interface EmptyStepPorts extends BaseStepPorts<EmptyObject, []> {
38
38
  }
39
39
  export interface NextStepPorts<Dynamic extends BasePort[] = BasePort[]> extends BaseStepPorts<BuiltInNextPort, Dynamic> {
40
40
  }
41
41
  export interface SuccessFailStepPorts<Dynamic extends BasePort[] = BasePort[]> extends BaseStepPorts<BuiltInNextFailPorts, Dynamic> {
42
42
  }
43
- export interface DynamicOnlyStepPorts<Dynamic extends BasePort[] = BasePort[]> extends BaseStepPorts<EmptyRecord, Dynamic> {
43
+ export interface DynamicOnlyStepPorts<Dynamic extends BasePort[] = BasePort[]> extends BaseStepPorts<EmptyObject, Dynamic> {
44
44
  }
45
45
  export interface NoMatchNoReplyStepPorts<Dynamic extends BasePort[] = BasePort[]> extends BaseStepPorts<BuiltInNoMatchNoReplyPorts, Dynamic> {
46
46
  }
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { Variable } from './common';
3
3
  export interface SlotType {
4
4
  value?: string;
@@ -1,4 +1,4 @@
1
- import { AnyRecord } from "../../types";
1
+ import { AnyRecord } from '@voiceflow/common';
2
2
  import { Member } from './member';
3
3
  import { Prototype } from './prototype';
4
4
  export * from './member';
@@ -1,4 +1,4 @@
1
- import { AnyRecord } from "../../types";
1
+ import { AnyRecord } from '@voiceflow/common';
2
2
  export interface Member<P extends AnyRecord = AnyRecord> {
3
3
  creatorID: number;
4
4
  platformData: P;
@@ -1,4 +1,4 @@
1
- import { AnyRecord } from "../../types";
1
+ import { AnyRecord } from '@voiceflow/common';
2
2
  import { ProjectNLP, PrototypeModel } from '../base';
3
3
  export interface PrototypeNLPBase {
4
4
  type: string;
@@ -1,4 +1,4 @@
1
- import { AnyRecord } from "../../types";
1
+ import { AnyRecord } from '@voiceflow/common';
2
2
  import { BaseCommand, BaseNote, Intent, Slot, Variable } from '../base';
3
3
  import { Prototype } from './prototype';
4
4
  export * from './prototype';
@@ -1,4 +1,4 @@
1
- import { AnyRecord, Nullable } from "../../types";
1
+ import { AnyRecord, Nullable } from '@voiceflow/common';
2
2
  import { BaseCommand, PrototypeModel } from '../base';
3
3
  export interface PrototypeStackFrame<Command extends BaseCommand = BaseCommand> {
4
4
  nodeID?: Nullable<string>;
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { BaseEvent, BaseNode, BasePort, BasePortList, BaseStep, BaseStepPorts, NodeID } from './utils';
3
3
  export declare const _V1_STOP_TYPES = "stopTypes";
4
4
  export interface StepData<Payload = unknown> {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseStep, IntegrationType, NodeSuccessFailID, SuccessFailStepPorts } from './utils';
4
4
  export interface APIKeyVal {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { StepButtonsLayout } from '../button';
3
3
  import { NodeType } from './constants';
4
4
  import { BaseNoMatchStepData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, DataID, NoMatchNoReplyStepPorts, StepIntentScope } from './utils';
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BuiltInNextPort, BuiltInNoReplyPort, NodeNextID } from './utils';
4
4
  /** @deprecated */
@@ -1,5 +1,5 @@
1
1
  import { Intent } from "../models";
2
- import { Nullable } from "../types";
2
+ import { Nullable } from '@voiceflow/common';
3
3
  import { NodeType } from './constants';
4
4
  import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, NodeIntentScope, NodeNextID, StepIntentScope } from './utils';
5
5
  export declare enum CaptureType {
@@ -1,5 +1,5 @@
1
1
  import { SlateTextValue } from "../text";
2
- import { Nullable } from "../types";
2
+ import { Nullable } from '@voiceflow/common';
3
3
  import { NodeType } from './constants';
4
4
  import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, DataID, NoMatchNoReplyStepPorts } from './utils';
5
5
  export declare enum CardLayout {
@@ -1,7 +1,7 @@
1
- import { UnknownRecord } from "../types";
1
+ import { Struct } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, EmptyStepPorts, TraceType } from './utils';
4
- export declare type StepData = UnknownRecord;
4
+ export declare type StepData = Struct;
5
5
  export interface NodeData {
6
6
  end: true;
7
7
  }
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID, NodeVariablesMappings, TraceType } from './utils';
4
4
  export declare type VariableMapping = [Nullable<string>, Nullable<string>][];
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID } from './utils';
4
4
  export declare type AnyTrace = BaseTraceFrame<any>;
@@ -1,5 +1,5 @@
1
1
  import { IntentRequest } from "../request";
2
- import { Nullable } from "../types";
2
+ import { Nullable } from '@voiceflow/common';
3
3
  import { NodeType } from './constants';
4
4
  import { BaseNode, BaseNoMatchNodeData, BaseStep } from './utils';
5
5
  export interface StepData {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, NodeNextID } from './utils';
4
4
  export interface StepData {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseStep, IntegrationType, IntegrationUser, NodeSuccessFailID, SuccessFailStepPorts } from './utils';
4
4
  export declare enum GoogleSheetsActionType {
@@ -1,5 +1,5 @@
1
1
  import { AnyRequestButton } from "../request";
2
- import { Nullable } from "../types";
2
+ import { Nullable } from '@voiceflow/common';
3
3
  import { NodeType } from './constants';
4
4
  import { BaseEvent, BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, BaseTraceFrame, DeprecatedBaseNodeNoMatch, NodeIntentScope, NodeNextID, NoMatchNoReplyStepPorts, SlotMappings, StepIntentScope, TraceType } from './utils';
5
5
  export declare enum ChoiceAction {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseCommand, BaseStep, CommandType, NodeID, SlotMappings } from './utils';
4
4
  export declare enum IntentAvailability {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseCommand, BaseStep, CommandType, NodeID, SlotMappings } from './utils';
4
4
  export interface StepData extends SlotMappings {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, Expression, NodeNextID } from './utils';
4
4
  export interface Set {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, ExpressionTypeV2, NodeNextID } from './utils';
4
4
  export interface Set {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID, StepCanvasNodeVisibility, TraceType } from './utils';
4
4
  export interface StepDataDialog<Dialog> {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  export { BaseCommand, BaseNode, BasePort, BasePortList, BaseStep, BaseStepPorts, BuiltInFailPort, BuiltInNextFailPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, BuiltInNoMatchPort, BuiltInNoReplyPort, DynamicOnlyStepPorts, EmptyStepPorts, NextStepPorts, NoMatchNoReplyStepPorts, SuccessFailStepPorts, } from "../../models";
3
3
  export declare type NodeID = Nullable<string>;
4
4
  export interface DataID {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { BaseCommand } from './base';
3
3
  import { BaseEvent } from './event';
4
4
  export declare enum CommandType {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  export declare enum ExpressionType {
3
3
  EQUALS = "equals",
4
4
  GREATER = "greater",
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  export declare enum IntegrationType {
3
3
  ZAPIER = "Zapier",
4
4
  CUSTOM_API = "Custom API",
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeID } from './base';
3
3
  export declare enum NoMatchType {
4
4
  PATH = "path",
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeID } from './base';
3
3
  export declare enum NoReplyType {
4
4
  PATH = "path",
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../types";
1
+ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID, TraceType } from './utils';
4
4
  export declare enum DeviceType {
@@ -1,5 +1,5 @@
1
1
  import { Project as ProjectModels } from "../models";
2
- import { AnyRecord } from "../types";
2
+ import { AnyRecord } from '@voiceflow/common';
3
3
  export interface PlatformData extends AnyRecord {
4
4
  }
5
5
  export interface MemberPlatformData extends AnyRecord {
@@ -0,0 +1,2 @@
1
+ export * from './logs';
2
+ export * from './runtime';
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./logs"), exports);
14
+ __exportStar(require("./runtime"), exports);
@@ -0,0 +1,21 @@
1
+ import { EmptyObject } from '@voiceflow/common';
2
+ import { GlobalLogKinds, Iso8601Timestamp, LoggingNodeType, PathReference } from '../utils';
3
+ import { LogLevel } from '../utils/logs';
4
+ /** The base log interface. This should not be used directly, use one of the subtypes instead. */
5
+ interface BaseLog {
6
+ kind: string;
7
+ timestamp: Iso8601Timestamp;
8
+ message: EmptyObject;
9
+ level: LogLevel;
10
+ }
11
+ export interface BaseGlobalLog<Kind extends GlobalLogKinds, Message extends EmptyObject, Level extends LogLevel = LogLevel.INFO> extends BaseLog {
12
+ kind: `global.${Kind}`;
13
+ level: Level;
14
+ message: Message;
15
+ }
16
+ export interface BaseStepLog<Kind extends LoggingNodeType, Message extends EmptyObject, Level extends LogLevel = LogLevel.INFO> extends BaseLog {
17
+ kind: `step.${Kind}`;
18
+ level: Level;
19
+ message: PathReference & Message;
20
+ }
21
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { GlobalLogKinds } from "../../utils";
2
+ import { BaseGlobalLog } from '../base';
3
+ export declare type ConversationStartLog = BaseGlobalLog<GlobalLogKinds.CONVERSATION_START, {
4
+ versionID: string;
5
+ userID: string;
6
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import { ConversationStartLog } from './global/conversationStart';
2
+ import { ApiStepLog } from './steps/api';
3
+ import { ButtonsStepLog } from './steps/buttons';
4
+ import { CaptureStepLog } from './steps/capture';
5
+ import { CodeStepLog } from './steps/code';
6
+ import { ConditionStepLog } from './steps/condition';
7
+ import { CustomActionStepLog } from './steps/customAction';
8
+ import { ExitStepLog } from './steps/exit';
9
+ import { FlowStepLog } from './steps/flow';
10
+ import { IntentStepLog } from './steps/intent';
11
+ import { RandomStepLog } from './steps/random';
12
+ import { SetStepLog } from './steps/set';
13
+ import { SpeakStepLog } from './steps/speak';
14
+ import { StartStepLog } from './steps/start';
15
+ import { TextStepLog } from './steps/text';
16
+ export * from './global/conversationStart';
17
+ export { ApiStepLog, ButtonsStepLog, CaptureStepLog, CodeStepLog, ConditionStepLog, CustomActionStepLog, ExitStepLog, FlowStepLog, IntentStepLog, RandomStepLog, SetStepLog, SpeakStepLog, StartStepLog, TextStepLog, };
18
+ /** All possible runtime logs for global events. */
19
+ declare type GlobalLog = ConversationStartLog;
20
+ /** All possible runtime logs for steps. */
21
+ declare type StepLog = ApiStepLog | ButtonsStepLog | CaptureStepLog | CodeStepLog | ConditionStepLog | CustomActionStepLog | ExitStepLog | FlowStepLog | IntentStepLog | RandomStepLog | SetStepLog | SpeakStepLog | StartStepLog | TextStepLog;
22
+ /** All possible runtime logs. */
23
+ export declare type Log = GlobalLog | StepLog;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./global/conversationStart"), exports);
@@ -0,0 +1,33 @@
1
+ import { APIBodyType, APIMethod } from "../../../node/api";
2
+ import { LoggingNodeType, LogLevel } from '../../utils';
3
+ import { BaseStepLog } from '../base';
4
+ interface ApiLogMessage {
5
+ request: {
6
+ method: APIMethod;
7
+ url: string;
8
+ };
9
+ response: {
10
+ statusCode: number;
11
+ statusMessage: string;
12
+ };
13
+ }
14
+ interface VerboseApiLogMessage {
15
+ request: {
16
+ headers: Record<string, string>;
17
+ query: Record<string, string>;
18
+ } & ({
19
+ method: Exclude<APIMethod, APIMethod.GET>;
20
+ bodyType: APIBodyType;
21
+ body: string;
22
+ } | {
23
+ method: APIMethod.GET;
24
+ bodyType: null;
25
+ body: null;
26
+ });
27
+ response: {
28
+ headers: Record<string, string>;
29
+ body: string;
30
+ };
31
+ }
32
+ export declare type ApiStepLog = BaseStepLog<LoggingNodeType.API, ApiLogMessage, LogLevel.INFO | LogLevel.ERROR> | BaseStepLog<LoggingNodeType.API, ApiLogMessage & VerboseApiLogMessage, LogLevel.VERBOSE | LogLevel.ERROR>;
33
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { Nullable } from '@voiceflow/common';
2
+ import { LoggingNodeType, PathReference } from '../../utils';
3
+ import { BaseStepLog } from '../base';
4
+ interface UrlButtonLogMessage {
5
+ url: Nullable<string>;
6
+ }
7
+ interface FollowPathButtonLogMessage extends UrlButtonLogMessage {
8
+ intent: null;
9
+ path: PathReference;
10
+ }
11
+ interface GoToIntentButtonLogMessage extends UrlButtonLogMessage {
12
+ intent: string;
13
+ path: null;
14
+ }
15
+ export declare type ButtonsStepLog = BaseStepLog<LoggingNodeType.BUTTONS, FollowPathButtonLogMessage | GoToIntentButtonLogMessage>;
16
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { LoggingNodeType } from '../../utils';
2
+ import { BaseStepLog } from '../base';
3
+ export declare type CaptureStepLog = BaseStepLog<LoggingNodeType.CAPTURE, {
4
+ slots: Array<{
5
+ utteredValue: string;
6
+ canonicalValue: string;
7
+ }>;
8
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { LoggingNodeType, LogLevel } from '../../utils';
2
+ import { BaseStepLog } from '../base';
3
+ export declare type CodeStepLog = BaseStepLog<LoggingNodeType.CUSTOM_CODE, {
4
+ data: any;
5
+ error: null;
6
+ }, LogLevel.INFO> | BaseStepLog<LoggingNodeType.CUSTOM_CODE, {
7
+ data: null;
8
+ error: any;
9
+ }, LogLevel.ERROR>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { LoggingNodeType, PathReference } from '../../utils';
2
+ import { BaseStepLog } from '../base';
3
+ export declare type ConditionStepLog = BaseStepLog<LoggingNodeType.CONDITION, {
4
+ path: PathReference;
5
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { Nullable } from '@voiceflow/common';
2
+ import { LoggingNodeType, PathReference } from '../../utils';
3
+ import { BaseStepLog } from '../base';
4
+ export declare type CustomActionStepLog = BaseStepLog<LoggingNodeType.CUSTOM_ACTION, {
5
+ actionBody: Nullable<string>;
6
+ path: PathReference;
7
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { EmptyObject } from '@voiceflow/common';
2
+ import { LoggingNodeType } from '../../utils';
3
+ import { BaseStepLog } from '../base';
4
+ export declare type ExitStepLog = BaseStepLog<LoggingNodeType.EXIT, {
5
+ /** The state of the program on exit. */
6
+ state: EmptyObject;
7
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { LoggingNodeType, PathReference } from '../../utils';
2
+ import { BaseStepLog } from '../base';
3
+ export declare type FlowStepLog = BaseStepLog<LoggingNodeType.FLOW, {
4
+ path: PathReference;
5
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { LoggingNodeType } from '../../utils';
2
+ import { BaseStepLog } from '../base';
3
+ export declare type IntentStepLog = BaseStepLog<LoggingNodeType.INTENT, {
4
+ intentName: string;
5
+ utterance: string;
6
+ confidence: number;
7
+ slots: Array<{
8
+ utteredValue: string;
9
+ canonicalValue: string;
10
+ }>;
11
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { LoggingNodeType, PathReference } from '../../utils';
2
+ import { BaseStepLog } from '../base';
3
+ export declare type RandomStepLog = BaseStepLog<LoggingNodeType.RANDOM, {
4
+ path: PathReference;
5
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { LoggingNodeType } from '../../utils';
2
+ import { BaseStepLog } from '../base';
3
+ export declare type SetStepLog = BaseStepLog<LoggingNodeType.SET, {
4
+ variableName: string;
5
+ expression: string;
6
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { LoggingNodeType } from '../../utils';
2
+ import { BaseStepLog } from '../base';
3
+ export declare type SpeakStepLog = BaseStepLog<LoggingNodeType.SPEAK, {
4
+ text: string;
5
+ }>;