@voiceflow/base-types 2.7.5 → 2.9.2
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.
- package/build/common/button/index.d.ts +1 -1
- package/build/common/index.d.ts +11 -1
- package/build/common/index.js +12 -2
- package/build/common/index.js.map +1 -1
- package/build/common/models/apiKey.d.ts +8 -8
- package/build/common/models/base/command.d.ts +15 -0
- package/build/common/models/base/command.js +3 -0
- package/build/common/models/base/command.js.map +1 -0
- package/build/common/models/base/common.d.ts +4 -0
- package/build/common/models/base/common.js +8 -0
- package/build/common/models/base/common.js.map +1 -0
- package/build/common/models/base/index.d.ts +6 -0
- package/build/common/models/base/index.js +19 -0
- package/build/common/models/base/index.js.map +1 -0
- package/build/common/models/base/intent.d.ts +23 -0
- package/build/common/models/base/intent.js +3 -0
- package/build/common/models/base/intent.js.map +1 -0
- package/build/common/models/base/node.d.ts +46 -0
- package/build/common/models/{shared.js → base/node.js} +1 -1
- package/build/common/models/base/node.js.map +1 -0
- package/build/common/models/base/prototype.d.ts +6 -0
- package/build/common/models/base/prototype.js +3 -0
- package/build/common/models/base/prototype.js.map +1 -0
- package/build/common/models/base/slot.d.ts +16 -0
- package/build/common/{utils.js → models/base/slot.js} +1 -1
- package/build/common/models/base/slot.js.map +1 -0
- package/build/common/models/diagram.d.ts +11 -11
- package/build/common/models/index.d.ts +7 -8
- package/build/common/models/index.js +20 -8
- package/build/common/models/index.js.map +1 -1
- package/build/common/models/program.d.ts +7 -7
- package/build/common/models/project/index.d.ts +35 -0
- package/build/common/models/project/index.js +26 -0
- package/build/common/models/project/index.js.map +1 -0
- package/build/common/models/project/member.d.ts +5 -0
- package/build/common/models/{member.js → project/member.js} +0 -0
- package/build/{esm/models → common/models/project}/member.js.map +1 -1
- package/build/common/models/project/prototype.d.ts +17 -0
- package/build/common/models/project/prototype.js +3 -0
- package/build/common/models/project/prototype.js.map +1 -0
- package/build/common/models/transcripts.d.ts +6 -7
- package/build/common/models/version/index.d.ts +44 -0
- package/build/common/models/version/index.js +20 -0
- package/build/common/models/version/index.js.map +1 -0
- package/build/common/models/version/prototype.d.ts +39 -0
- package/build/common/models/version/prototype.js +3 -0
- package/build/common/models/version/prototype.js.map +1 -0
- package/build/common/node/_v1.d.ts +1 -1
- package/build/common/node/api.d.ts +1 -1
- package/build/common/node/buttons.d.ts +2 -1
- package/build/common/node/capture.d.ts +1 -1
- package/build/common/node/captureV2.d.ts +1 -1
- package/build/common/node/exit.d.ts +1 -1
- package/build/common/node/flow.d.ts +1 -1
- package/build/common/node/general.d.ts +1 -1
- package/build/common/node/googleSheets.d.ts +1 -1
- package/build/common/node/interaction.d.ts +3 -2
- package/build/common/node/jump.d.ts +1 -1
- package/build/common/node/prompt.d.ts +1 -1
- package/build/common/node/push.d.ts +1 -1
- package/build/common/node/set.d.ts +1 -1
- package/build/common/node/setV2.d.ts +1 -1
- package/build/common/node/speak.d.ts +1 -1
- package/build/common/node/utils/base.d.ts +1 -1
- package/build/common/node/utils/command.d.ts +1 -1
- package/build/common/node/utils/expression.d.ts +1 -1
- package/build/common/node/utils/integration.d.ts +1 -1
- package/build/common/node/utils/noMatch.d.ts +1 -1
- package/build/common/node/utils/noReply.d.ts +1 -1
- package/build/common/node/visual.d.ts +1 -1
- package/build/common/project/index.d.ts +8 -3
- package/build/common/project/index.js +3 -3
- package/build/common/project/index.js.map +1 -1
- package/build/common/request/action.d.ts +2 -2
- package/build/common/request/index.d.ts +2 -2
- package/build/common/{utils.d.ts → types.d.ts} +3 -0
- package/build/common/types.js +3 -0
- package/build/common/types.js.map +1 -0
- package/build/common/utils/index.d.ts +2 -0
- package/build/common/utils/index.js +25 -0
- package/build/common/utils/index.js.map +1 -0
- package/build/common/utils/node.d.ts +24 -0
- package/build/common/utils/node.js +48 -0
- package/build/common/utils/node.js.map +1 -0
- package/build/common/utils/step.d.ts +33 -0
- package/build/common/utils/step.js +54 -0
- package/build/common/utils/step.js.map +1 -0
- package/build/common/version/index.d.ts +7 -5
- package/build/common/version/index.js +4 -4
- package/build/common/version/index.js.map +1 -1
- package/build/common/version/settings.d.ts +5 -4
- package/build/common/version/settings.js +3 -3
- package/build/common/version/settings.js.map +1 -1
- package/build/esm/button/index.d.ts +1 -1
- package/build/esm/index.d.ts +11 -1
- package/build/esm/index.js +11 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/models/apiKey.d.ts +8 -8
- package/build/esm/models/base/command.d.ts +15 -0
- package/build/esm/models/base/command.js +2 -0
- package/build/esm/models/base/command.js.map +1 -0
- package/build/esm/models/base/common.d.ts +4 -0
- package/build/esm/models/base/common.js +5 -0
- package/build/esm/models/base/common.js.map +1 -0
- package/build/esm/models/base/index.d.ts +6 -0
- package/build/esm/models/base/index.js +7 -0
- package/build/esm/models/base/index.js.map +1 -0
- package/build/esm/models/base/intent.d.ts +23 -0
- package/build/esm/models/base/intent.js +2 -0
- package/build/esm/models/base/intent.js.map +1 -0
- package/build/esm/models/base/node.d.ts +46 -0
- package/build/esm/models/{shared.js → base/node.js} +1 -1
- package/build/esm/models/base/node.js.map +1 -0
- package/build/esm/models/base/prototype.d.ts +6 -0
- package/build/esm/models/base/prototype.js +2 -0
- package/build/esm/models/base/prototype.js.map +1 -0
- package/build/esm/models/base/slot.d.ts +16 -0
- package/build/esm/models/base/slot.js +2 -0
- package/build/esm/models/base/slot.js.map +1 -0
- package/build/esm/models/diagram.d.ts +11 -11
- package/build/esm/models/index.d.ts +7 -8
- package/build/esm/models/index.js +7 -8
- package/build/esm/models/index.js.map +1 -1
- package/build/esm/models/program.d.ts +7 -7
- package/build/esm/models/project/index.d.ts +35 -0
- package/build/esm/models/project/index.js +13 -0
- package/build/esm/models/project/index.js.map +1 -0
- package/build/esm/models/project/member.d.ts +5 -0
- package/build/esm/models/{member.js → project/member.js} +0 -0
- package/build/{common/models → esm/models/project}/member.js.map +1 -1
- package/build/esm/models/project/prototype.d.ts +17 -0
- package/build/esm/models/project/prototype.js +2 -0
- package/build/esm/models/project/prototype.js.map +1 -0
- package/build/esm/models/transcripts.d.ts +6 -7
- package/build/esm/models/version/index.d.ts +44 -0
- package/build/esm/models/version/index.js +7 -0
- package/build/esm/models/version/index.js.map +1 -0
- package/build/esm/models/version/prototype.d.ts +39 -0
- package/build/esm/models/version/prototype.js +2 -0
- package/build/esm/models/version/prototype.js.map +1 -0
- package/build/esm/node/_v1.d.ts +1 -1
- package/build/esm/node/api.d.ts +1 -1
- package/build/esm/node/buttons.d.ts +2 -1
- package/build/esm/node/capture.d.ts +1 -1
- package/build/esm/node/captureV2.d.ts +1 -1
- package/build/esm/node/exit.d.ts +1 -1
- package/build/esm/node/flow.d.ts +1 -1
- package/build/esm/node/general.d.ts +1 -1
- package/build/esm/node/googleSheets.d.ts +1 -1
- package/build/esm/node/interaction.d.ts +3 -2
- package/build/esm/node/jump.d.ts +1 -1
- package/build/esm/node/prompt.d.ts +1 -1
- package/build/esm/node/push.d.ts +1 -1
- package/build/esm/node/set.d.ts +1 -1
- package/build/esm/node/setV2.d.ts +1 -1
- package/build/esm/node/speak.d.ts +1 -1
- package/build/esm/node/utils/base.d.ts +1 -1
- package/build/esm/node/utils/command.d.ts +1 -1
- package/build/esm/node/utils/expression.d.ts +1 -1
- package/build/esm/node/utils/integration.d.ts +1 -1
- package/build/esm/node/utils/noMatch.d.ts +1 -1
- package/build/esm/node/utils/noReply.d.ts +1 -1
- package/build/esm/node/visual.d.ts +1 -1
- package/build/esm/project/index.d.ts +8 -3
- package/build/esm/project/index.js +1 -1
- package/build/esm/project/index.js.map +1 -1
- package/build/esm/request/action.d.ts +2 -2
- package/build/esm/request/index.d.ts +2 -2
- package/build/esm/{utils.d.ts → types.d.ts} +3 -0
- package/build/esm/types.js +2 -0
- package/build/esm/types.js.map +1 -0
- package/build/esm/utils/index.d.ts +2 -0
- package/build/esm/utils/index.js +3 -0
- package/build/esm/utils/index.js.map +1 -0
- package/build/esm/utils/node.d.ts +24 -0
- package/build/esm/utils/node.js +25 -0
- package/build/esm/utils/node.js.map +1 -0
- package/build/esm/utils/step.d.ts +33 -0
- package/build/esm/utils/step.js +32 -0
- package/build/esm/utils/step.js.map +1 -0
- package/build/esm/version/index.d.ts +7 -5
- package/build/esm/version/index.js +3 -3
- package/build/esm/version/index.js.map +1 -1
- package/build/esm/version/settings.d.ts +5 -4
- package/build/esm/version/settings.js +1 -1
- package/build/esm/version/settings.js.map +1 -1
- package/package.json +3 -2
- package/build/common/models/member.d.ts +0 -5
- package/build/common/models/project.d.ts +0 -49
- package/build/common/models/project.js +0 -18
- package/build/common/models/project.js.map +0 -1
- package/build/common/models/shared.d.ts +0 -120
- package/build/common/models/shared.js.map +0 -1
- package/build/common/models/version.d.ts +0 -82
- package/build/common/models/version.js +0 -9
- package/build/common/models/version.js.map +0 -1
- package/build/common/utils.js.map +0 -1
- package/build/esm/models/member.d.ts +0 -5
- package/build/esm/models/project.d.ts +0 -49
- package/build/esm/models/project.js +0 -15
- package/build/esm/models/project.js.map +0 -1
- package/build/esm/models/shared.d.ts +0 -120
- package/build/esm/models/shared.js.map +0 -1
- package/build/esm/models/version.d.ts +0 -82
- package/build/esm/models/version.js +0 -6
- package/build/esm/models/version.js.map +0 -1
- package/build/esm/utils.js +0 -2
- package/build/esm/utils.js.map +0 -1
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { AnyRecord, Nullable } from '../utils';
|
|
2
|
-
export declare type Platform = string;
|
|
3
|
-
export declare type Name = string;
|
|
4
|
-
export declare type APIKeyID = string;
|
|
5
|
-
export declare type TeamID = string;
|
|
6
|
-
export declare type WorkspaceID = TeamID;
|
|
7
|
-
export declare type BlockID = string;
|
|
8
|
-
export declare type Variable = string;
|
|
9
|
-
export declare type TagID = string;
|
|
10
|
-
export declare type Timestamp = number;
|
|
11
|
-
export declare type ProjectID = string;
|
|
12
|
-
export declare type CreatorID = number;
|
|
13
|
-
export declare type VersionID = string;
|
|
14
|
-
export declare type ProgramID = string;
|
|
15
|
-
export declare type DiagramID = string;
|
|
16
|
-
export declare type TranscriptID = string;
|
|
17
|
-
export declare type TurnID = string;
|
|
18
|
-
export interface IntentInput {
|
|
19
|
-
text: string;
|
|
20
|
-
slots?: string[];
|
|
21
|
-
/** @deprecated shouldn't be used */
|
|
22
|
-
voice?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IntentSlotDialog {
|
|
25
|
-
prompt: any[];
|
|
26
|
-
confirm: any[];
|
|
27
|
-
utterances: IntentInput[];
|
|
28
|
-
confirmEnabled: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface IntentSlot {
|
|
31
|
-
id: string;
|
|
32
|
-
dialog: IntentSlotDialog;
|
|
33
|
-
required: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface Intent {
|
|
36
|
-
key: string;
|
|
37
|
-
name: string;
|
|
38
|
-
slots?: IntentSlot[];
|
|
39
|
-
inputs: IntentInput[];
|
|
40
|
-
builtIn?: boolean;
|
|
41
|
-
_platform?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface Slot {
|
|
44
|
-
key: string;
|
|
45
|
-
name: string;
|
|
46
|
-
type: {
|
|
47
|
-
value?: string;
|
|
48
|
-
};
|
|
49
|
-
color?: string;
|
|
50
|
-
inputs: string[];
|
|
51
|
-
}
|
|
52
|
-
export interface SlotMapping {
|
|
53
|
-
slot: Nullable<string>;
|
|
54
|
-
variable: Nullable<Variable>;
|
|
55
|
-
}
|
|
56
|
-
export interface CommandMapping {
|
|
57
|
-
slot: string;
|
|
58
|
-
variable: Variable;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated
|
|
62
|
-
*/
|
|
63
|
-
export declare type Command<T extends string = string, D extends AnyRecord = AnyRecord> = {
|
|
64
|
-
type: T;
|
|
65
|
-
} & D;
|
|
66
|
-
export interface BaseCommand {
|
|
67
|
-
type: string;
|
|
68
|
-
}
|
|
69
|
-
export declare type NodeID = string;
|
|
70
|
-
export declare type NodeType = string;
|
|
71
|
-
/**
|
|
72
|
-
* @deprecated
|
|
73
|
-
*/
|
|
74
|
-
export declare type Node<T extends string = string, D extends AnyRecord = AnyRecord> = {
|
|
75
|
-
id: string;
|
|
76
|
-
type: T;
|
|
77
|
-
} & D;
|
|
78
|
-
export interface BaseNode {
|
|
79
|
-
id: string;
|
|
80
|
-
type: string;
|
|
81
|
-
}
|
|
82
|
-
export declare type CoordPoint = number;
|
|
83
|
-
export interface BaseDiagramNode<D extends AnyRecord = AnyRecord> {
|
|
84
|
-
nodeID: NodeID;
|
|
85
|
-
type: NodeType;
|
|
86
|
-
coords?: [number, number];
|
|
87
|
-
data: D;
|
|
88
|
-
}
|
|
89
|
-
export interface BlockOnlyData {
|
|
90
|
-
name: string;
|
|
91
|
-
color: string;
|
|
92
|
-
steps: string[];
|
|
93
|
-
}
|
|
94
|
-
export interface BaseBlock<D extends AnyRecord = AnyRecord> extends BaseDiagramNode<D & BlockOnlyData> {
|
|
95
|
-
coords: [number, number];
|
|
96
|
-
}
|
|
97
|
-
export declare enum PortType {
|
|
98
|
-
FAIL = "fail",
|
|
99
|
-
NEXT = "next",
|
|
100
|
-
PAUSE = "pause",
|
|
101
|
-
NO_REPLY = "no-reply",
|
|
102
|
-
NO_MATCH = "else",
|
|
103
|
-
PREVIOUS = "previous"
|
|
104
|
-
}
|
|
105
|
-
export interface BasePort<PD extends AnyRecord = AnyRecord> {
|
|
106
|
-
id: string;
|
|
107
|
-
type: string | PortType;
|
|
108
|
-
data?: PD;
|
|
109
|
-
target: Nullable<string>;
|
|
110
|
-
}
|
|
111
|
-
interface StepOnlyData<P = [BasePort, ...BasePort[]]> {
|
|
112
|
-
ports: P;
|
|
113
|
-
}
|
|
114
|
-
export declare type BaseStep<D extends AnyRecord = AnyRecord, P = [BasePort, ...BasePort[]]> = BaseDiagramNode<D & StepOnlyData<P>>;
|
|
115
|
-
export declare type BasePlatformData = AnyRecord;
|
|
116
|
-
export interface PrototypeModel {
|
|
117
|
-
slots: Slot[];
|
|
118
|
-
intents: Intent[];
|
|
119
|
-
}
|
|
120
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/models/shared.ts"],"names":[],"mappings":";;;AAkIA,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;AACvB,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { AnyRecord, Nullable } from '../utils';
|
|
2
|
-
import { BaseCommand, CreatorID, DiagramID, Intent, Name, Platform, ProjectID, PrototypeModel, Slot, Variable, VersionID } from './shared';
|
|
3
|
-
export declare type VersionPlatformDataSettings = Record<string, any>;
|
|
4
|
-
export declare type VersionPlatformDataPublishing = Record<string, any>;
|
|
5
|
-
export interface StrictVersionPlatformData<S extends AnyRecord = AnyRecord, P extends AnyRecord = AnyRecord> {
|
|
6
|
-
slots: Slot[];
|
|
7
|
-
intents: Intent[];
|
|
8
|
-
settings: S;
|
|
9
|
-
publishing: P;
|
|
10
|
-
}
|
|
11
|
-
export interface VersionPlatformData<S extends AnyRecord = AnyRecord, P extends AnyRecord = AnyRecord> extends StrictVersionPlatformData<S, P>, AnyRecord {
|
|
12
|
-
}
|
|
13
|
-
export interface VersionPrototypeStackFrame<C extends BaseCommand = BaseCommand> {
|
|
14
|
-
nodeID?: Nullable<string>;
|
|
15
|
-
programID: string;
|
|
16
|
-
storage?: Record<string, any>;
|
|
17
|
-
variables?: Record<string, any>;
|
|
18
|
-
commands?: C[];
|
|
19
|
-
}
|
|
20
|
-
export interface VersionPrototypeContext<C extends BaseCommand = BaseCommand> {
|
|
21
|
-
turn?: Record<string, any>;
|
|
22
|
-
storage?: Record<string, any>;
|
|
23
|
-
variables?: Record<string, any>;
|
|
24
|
-
stack?: VersionPrototypeStackFrame<C>[];
|
|
25
|
-
}
|
|
26
|
-
export interface VersionPrototypeData<L extends string> {
|
|
27
|
-
name: string;
|
|
28
|
-
locales: L[];
|
|
29
|
-
messageDelay?: {
|
|
30
|
-
durationMilliseconds: number;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface VersionPrototypeSettings {
|
|
34
|
-
layout?: string;
|
|
35
|
-
brandColor?: string;
|
|
36
|
-
brandImage?: string;
|
|
37
|
-
avatar?: string;
|
|
38
|
-
password?: string;
|
|
39
|
-
hasPassword?: boolean;
|
|
40
|
-
buttons?: string;
|
|
41
|
-
}
|
|
42
|
-
export interface VersionPrototype<C extends BaseCommand = BaseCommand, L extends string = string> {
|
|
43
|
-
model: PrototypeModel;
|
|
44
|
-
platform: Platform;
|
|
45
|
-
settings: VersionPrototypeSettings;
|
|
46
|
-
data: VersionPrototypeData<L>;
|
|
47
|
-
context: VersionPrototypeContext<C>;
|
|
48
|
-
}
|
|
49
|
-
export declare enum VersionFolderItemType {
|
|
50
|
-
FOLDER = "FOLDER",
|
|
51
|
-
DIAGRAM = "DIAGRAM"
|
|
52
|
-
}
|
|
53
|
-
export interface VersionFolderItem {
|
|
54
|
-
type: VersionFolderItemType;
|
|
55
|
-
sourceID: string;
|
|
56
|
-
}
|
|
57
|
-
export interface VersionFolder {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
items: VersionFolderItem[];
|
|
61
|
-
}
|
|
62
|
-
export interface Version<P extends VersionPlatformData, C extends BaseCommand = BaseCommand, L extends string = string> {
|
|
63
|
-
_id: VersionID;
|
|
64
|
-
creatorID: CreatorID;
|
|
65
|
-
projectID: ProjectID;
|
|
66
|
-
name: Name;
|
|
67
|
-
topics?: VersionFolderItem[];
|
|
68
|
-
folders?: Record<string, VersionFolder>;
|
|
69
|
-
variables: Variable[];
|
|
70
|
-
components?: VersionFolderItem[];
|
|
71
|
-
rootDiagramID: DiagramID;
|
|
72
|
-
prototype?: VersionPrototype<C, L>;
|
|
73
|
-
platformData: P;
|
|
74
|
-
}
|
|
75
|
-
export interface VersionDiagramResponse {
|
|
76
|
-
blockID: string;
|
|
77
|
-
blockName: string;
|
|
78
|
-
diagramID: string;
|
|
79
|
-
blockColor: string;
|
|
80
|
-
diagramName: string;
|
|
81
|
-
blockContent: string;
|
|
82
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VersionFolderItemType = void 0;
|
|
4
|
-
var VersionFolderItemType;
|
|
5
|
-
(function (VersionFolderItemType) {
|
|
6
|
-
VersionFolderItemType["FOLDER"] = "FOLDER";
|
|
7
|
-
VersionFolderItemType["DIAGRAM"] = "DIAGRAM";
|
|
8
|
-
})(VersionFolderItemType = exports.VersionFolderItemType || (exports.VersionFolderItemType = {}));
|
|
9
|
-
//# sourceMappingURL=version.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/models/version.ts"],"names":[],"mappings":";;;AA2DA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACrB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":""}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Member } from './member';
|
|
2
|
-
import { BasePlatformData, CreatorID, Name, Platform, ProjectID, PrototypeModel, TagID, TeamID, VersionID } from './shared';
|
|
3
|
-
export declare enum ProjectPrototypeNLPType {
|
|
4
|
-
LUIS = "LUIS"
|
|
5
|
-
}
|
|
6
|
-
export declare enum ProjectLinkType {
|
|
7
|
-
CURVED = "CURVED",
|
|
8
|
-
STRAIGHT = "STRAIGHT"
|
|
9
|
-
}
|
|
10
|
-
export interface ProjectPrototypeNLPBase {
|
|
11
|
-
type: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ProjectPrototypeLuis extends ProjectPrototypeNLPBase {
|
|
14
|
-
appID: string;
|
|
15
|
-
resourceID?: string;
|
|
16
|
-
type: ProjectPrototypeNLPType.LUIS;
|
|
17
|
-
}
|
|
18
|
-
export declare type ProjectPrototypeNLP = ProjectPrototypeLuis;
|
|
19
|
-
export interface ProjectPrototype {
|
|
20
|
-
data: Record<string, any>;
|
|
21
|
-
trainedModel?: PrototypeModel;
|
|
22
|
-
lastTrainedTime?: number;
|
|
23
|
-
nlp?: ProjectPrototypeNLP;
|
|
24
|
-
}
|
|
25
|
-
export declare enum ProjectPrivacy {
|
|
26
|
-
PUBLIC = "public",
|
|
27
|
-
PRIVATE = "private"
|
|
28
|
-
}
|
|
29
|
-
export interface ReportTag {
|
|
30
|
-
tagID: TagID;
|
|
31
|
-
label: string;
|
|
32
|
-
}
|
|
33
|
-
export interface Project<P extends BasePlatformData, M extends BasePlatformData> {
|
|
34
|
-
_id: ProjectID;
|
|
35
|
-
teamID: TeamID;
|
|
36
|
-
creatorID: CreatorID;
|
|
37
|
-
_version?: number;
|
|
38
|
-
name: Name;
|
|
39
|
-
image?: string;
|
|
40
|
-
privacy?: ProjectPrivacy.PRIVATE | ProjectPrivacy.PUBLIC;
|
|
41
|
-
platform: Platform;
|
|
42
|
-
linkType?: ProjectLinkType;
|
|
43
|
-
prototype?: ProjectPrototype;
|
|
44
|
-
devVersion?: VersionID;
|
|
45
|
-
liveVersion?: VersionID;
|
|
46
|
-
reportTags?: Record<TagID, ReportTag>;
|
|
47
|
-
members: Member<M>[];
|
|
48
|
-
platformData: P;
|
|
49
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export var ProjectPrototypeNLPType;
|
|
2
|
-
(function (ProjectPrototypeNLPType) {
|
|
3
|
-
ProjectPrototypeNLPType["LUIS"] = "LUIS";
|
|
4
|
-
})(ProjectPrototypeNLPType || (ProjectPrototypeNLPType = {}));
|
|
5
|
-
export var ProjectLinkType;
|
|
6
|
-
(function (ProjectLinkType) {
|
|
7
|
-
ProjectLinkType["CURVED"] = "CURVED";
|
|
8
|
-
ProjectLinkType["STRAIGHT"] = "STRAIGHT";
|
|
9
|
-
})(ProjectLinkType || (ProjectLinkType = {}));
|
|
10
|
-
export var ProjectPrivacy;
|
|
11
|
-
(function (ProjectPrivacy) {
|
|
12
|
-
ProjectPrivacy["PUBLIC"] = "public";
|
|
13
|
-
ProjectPrivacy["PRIVATE"] = "private";
|
|
14
|
-
})(ProjectPrivacy || (ProjectPrivacy = {}));
|
|
15
|
-
//# sourceMappingURL=project.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../../src/models/project.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;AACf,CAAC,EAFW,uBAAuB,KAAvB,uBAAuB,QAElC;AAED,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAqBD,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACrB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { AnyRecord, Nullable } from '../utils';
|
|
2
|
-
export declare type Platform = string;
|
|
3
|
-
export declare type Name = string;
|
|
4
|
-
export declare type APIKeyID = string;
|
|
5
|
-
export declare type TeamID = string;
|
|
6
|
-
export declare type WorkspaceID = TeamID;
|
|
7
|
-
export declare type BlockID = string;
|
|
8
|
-
export declare type Variable = string;
|
|
9
|
-
export declare type TagID = string;
|
|
10
|
-
export declare type Timestamp = number;
|
|
11
|
-
export declare type ProjectID = string;
|
|
12
|
-
export declare type CreatorID = number;
|
|
13
|
-
export declare type VersionID = string;
|
|
14
|
-
export declare type ProgramID = string;
|
|
15
|
-
export declare type DiagramID = string;
|
|
16
|
-
export declare type TranscriptID = string;
|
|
17
|
-
export declare type TurnID = string;
|
|
18
|
-
export interface IntentInput {
|
|
19
|
-
text: string;
|
|
20
|
-
slots?: string[];
|
|
21
|
-
/** @deprecated shouldn't be used */
|
|
22
|
-
voice?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IntentSlotDialog {
|
|
25
|
-
prompt: any[];
|
|
26
|
-
confirm: any[];
|
|
27
|
-
utterances: IntentInput[];
|
|
28
|
-
confirmEnabled: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface IntentSlot {
|
|
31
|
-
id: string;
|
|
32
|
-
dialog: IntentSlotDialog;
|
|
33
|
-
required: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface Intent {
|
|
36
|
-
key: string;
|
|
37
|
-
name: string;
|
|
38
|
-
slots?: IntentSlot[];
|
|
39
|
-
inputs: IntentInput[];
|
|
40
|
-
builtIn?: boolean;
|
|
41
|
-
_platform?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface Slot {
|
|
44
|
-
key: string;
|
|
45
|
-
name: string;
|
|
46
|
-
type: {
|
|
47
|
-
value?: string;
|
|
48
|
-
};
|
|
49
|
-
color?: string;
|
|
50
|
-
inputs: string[];
|
|
51
|
-
}
|
|
52
|
-
export interface SlotMapping {
|
|
53
|
-
slot: Nullable<string>;
|
|
54
|
-
variable: Nullable<Variable>;
|
|
55
|
-
}
|
|
56
|
-
export interface CommandMapping {
|
|
57
|
-
slot: string;
|
|
58
|
-
variable: Variable;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated
|
|
62
|
-
*/
|
|
63
|
-
export declare type Command<T extends string = string, D extends AnyRecord = AnyRecord> = {
|
|
64
|
-
type: T;
|
|
65
|
-
} & D;
|
|
66
|
-
export interface BaseCommand {
|
|
67
|
-
type: string;
|
|
68
|
-
}
|
|
69
|
-
export declare type NodeID = string;
|
|
70
|
-
export declare type NodeType = string;
|
|
71
|
-
/**
|
|
72
|
-
* @deprecated
|
|
73
|
-
*/
|
|
74
|
-
export declare type Node<T extends string = string, D extends AnyRecord = AnyRecord> = {
|
|
75
|
-
id: string;
|
|
76
|
-
type: T;
|
|
77
|
-
} & D;
|
|
78
|
-
export interface BaseNode {
|
|
79
|
-
id: string;
|
|
80
|
-
type: string;
|
|
81
|
-
}
|
|
82
|
-
export declare type CoordPoint = number;
|
|
83
|
-
export interface BaseDiagramNode<D extends AnyRecord = AnyRecord> {
|
|
84
|
-
nodeID: NodeID;
|
|
85
|
-
type: NodeType;
|
|
86
|
-
coords?: [number, number];
|
|
87
|
-
data: D;
|
|
88
|
-
}
|
|
89
|
-
export interface BlockOnlyData {
|
|
90
|
-
name: string;
|
|
91
|
-
color: string;
|
|
92
|
-
steps: string[];
|
|
93
|
-
}
|
|
94
|
-
export interface BaseBlock<D extends AnyRecord = AnyRecord> extends BaseDiagramNode<D & BlockOnlyData> {
|
|
95
|
-
coords: [number, number];
|
|
96
|
-
}
|
|
97
|
-
export declare enum PortType {
|
|
98
|
-
FAIL = "fail",
|
|
99
|
-
NEXT = "next",
|
|
100
|
-
PAUSE = "pause",
|
|
101
|
-
NO_REPLY = "no-reply",
|
|
102
|
-
NO_MATCH = "else",
|
|
103
|
-
PREVIOUS = "previous"
|
|
104
|
-
}
|
|
105
|
-
export interface BasePort<PD extends AnyRecord = AnyRecord> {
|
|
106
|
-
id: string;
|
|
107
|
-
type: string | PortType;
|
|
108
|
-
data?: PD;
|
|
109
|
-
target: Nullable<string>;
|
|
110
|
-
}
|
|
111
|
-
interface StepOnlyData<P = [BasePort, ...BasePort[]]> {
|
|
112
|
-
ports: P;
|
|
113
|
-
}
|
|
114
|
-
export declare type BaseStep<D extends AnyRecord = AnyRecord, P = [BasePort, ...BasePort[]]> = BaseDiagramNode<D & StepOnlyData<P>>;
|
|
115
|
-
export declare type BasePlatformData = AnyRecord;
|
|
116
|
-
export interface PrototypeModel {
|
|
117
|
-
slots: Slot[];
|
|
118
|
-
intents: Intent[];
|
|
119
|
-
}
|
|
120
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/models/shared.ts"],"names":[],"mappings":"AAkIA,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;AACvB,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { AnyRecord, Nullable } from '../utils';
|
|
2
|
-
import { BaseCommand, CreatorID, DiagramID, Intent, Name, Platform, ProjectID, PrototypeModel, Slot, Variable, VersionID } from './shared';
|
|
3
|
-
export declare type VersionPlatformDataSettings = Record<string, any>;
|
|
4
|
-
export declare type VersionPlatformDataPublishing = Record<string, any>;
|
|
5
|
-
export interface StrictVersionPlatformData<S extends AnyRecord = AnyRecord, P extends AnyRecord = AnyRecord> {
|
|
6
|
-
slots: Slot[];
|
|
7
|
-
intents: Intent[];
|
|
8
|
-
settings: S;
|
|
9
|
-
publishing: P;
|
|
10
|
-
}
|
|
11
|
-
export interface VersionPlatformData<S extends AnyRecord = AnyRecord, P extends AnyRecord = AnyRecord> extends StrictVersionPlatformData<S, P>, AnyRecord {
|
|
12
|
-
}
|
|
13
|
-
export interface VersionPrototypeStackFrame<C extends BaseCommand = BaseCommand> {
|
|
14
|
-
nodeID?: Nullable<string>;
|
|
15
|
-
programID: string;
|
|
16
|
-
storage?: Record<string, any>;
|
|
17
|
-
variables?: Record<string, any>;
|
|
18
|
-
commands?: C[];
|
|
19
|
-
}
|
|
20
|
-
export interface VersionPrototypeContext<C extends BaseCommand = BaseCommand> {
|
|
21
|
-
turn?: Record<string, any>;
|
|
22
|
-
storage?: Record<string, any>;
|
|
23
|
-
variables?: Record<string, any>;
|
|
24
|
-
stack?: VersionPrototypeStackFrame<C>[];
|
|
25
|
-
}
|
|
26
|
-
export interface VersionPrototypeData<L extends string> {
|
|
27
|
-
name: string;
|
|
28
|
-
locales: L[];
|
|
29
|
-
messageDelay?: {
|
|
30
|
-
durationMilliseconds: number;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface VersionPrototypeSettings {
|
|
34
|
-
layout?: string;
|
|
35
|
-
brandColor?: string;
|
|
36
|
-
brandImage?: string;
|
|
37
|
-
avatar?: string;
|
|
38
|
-
password?: string;
|
|
39
|
-
hasPassword?: boolean;
|
|
40
|
-
buttons?: string;
|
|
41
|
-
}
|
|
42
|
-
export interface VersionPrototype<C extends BaseCommand = BaseCommand, L extends string = string> {
|
|
43
|
-
model: PrototypeModel;
|
|
44
|
-
platform: Platform;
|
|
45
|
-
settings: VersionPrototypeSettings;
|
|
46
|
-
data: VersionPrototypeData<L>;
|
|
47
|
-
context: VersionPrototypeContext<C>;
|
|
48
|
-
}
|
|
49
|
-
export declare enum VersionFolderItemType {
|
|
50
|
-
FOLDER = "FOLDER",
|
|
51
|
-
DIAGRAM = "DIAGRAM"
|
|
52
|
-
}
|
|
53
|
-
export interface VersionFolderItem {
|
|
54
|
-
type: VersionFolderItemType;
|
|
55
|
-
sourceID: string;
|
|
56
|
-
}
|
|
57
|
-
export interface VersionFolder {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
items: VersionFolderItem[];
|
|
61
|
-
}
|
|
62
|
-
export interface Version<P extends VersionPlatformData, C extends BaseCommand = BaseCommand, L extends string = string> {
|
|
63
|
-
_id: VersionID;
|
|
64
|
-
creatorID: CreatorID;
|
|
65
|
-
projectID: ProjectID;
|
|
66
|
-
name: Name;
|
|
67
|
-
topics?: VersionFolderItem[];
|
|
68
|
-
folders?: Record<string, VersionFolder>;
|
|
69
|
-
variables: Variable[];
|
|
70
|
-
components?: VersionFolderItem[];
|
|
71
|
-
rootDiagramID: DiagramID;
|
|
72
|
-
prototype?: VersionPrototype<C, L>;
|
|
73
|
-
platformData: P;
|
|
74
|
-
}
|
|
75
|
-
export interface VersionDiagramResponse {
|
|
76
|
-
blockID: string;
|
|
77
|
-
blockName: string;
|
|
78
|
-
diagramID: string;
|
|
79
|
-
blockColor: string;
|
|
80
|
-
diagramName: string;
|
|
81
|
-
blockContent: string;
|
|
82
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/models/version.ts"],"names":[],"mappings":"AA2DA,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACrB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC"}
|
package/build/esm/utils.js
DELETED
package/build/esm/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":""}
|