@voiceflow/api-sdk 2.0.1 → 3.0.3
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/index.d.ts +1 -2
- package/build/index.js +0 -4
- package/build/index.js.map +1 -1
- package/build/resources/apiKey.d.ts +5 -5
- package/build/resources/apiKey.js +0 -5
- package/build/resources/apiKey.js.map +1 -1
- package/build/resources/base.d.ts +3 -15
- package/build/resources/base.js +1 -47
- package/build/resources/base.js.map +1 -1
- package/build/resources/crud.d.ts +1 -1
- package/build/resources/crud.js +0 -7
- package/build/resources/crud.js.map +1 -1
- package/build/resources/diagram.d.ts +14 -16
- package/build/resources/diagram.js +0 -34
- package/build/resources/diagram.js.map +1 -1
- package/build/resources/program.d.ts +10 -10
- package/build/resources/program.js +0 -3
- package/build/resources/program.js.map +1 -1
- package/build/resources/project/index.d.ts +18 -18
- package/build/resources/project/index.js +0 -29
- package/build/resources/project/index.js.map +1 -1
- package/build/resources/project/member.d.ts +17 -17
- package/build/resources/project/member.js +0 -33
- package/build/resources/project/member.js.map +1 -1
- package/build/resources/user.d.ts +2 -2
- package/build/resources/user.js +11 -3
- package/build/resources/user.js.map +1 -1
- package/build/resources/version.d.ts +30 -69
- package/build/resources/version.js +0 -41
- package/build/resources/version.js.map +1 -1
- package/build/types.d.ts +2 -10
- package/package.json +7 -5
- package/build/models/apiKey.d.ts +0 -21
- package/build/models/apiKey.js +0 -35
- package/build/models/apiKey.js.map +0 -1
- package/build/models/diagram.d.ts +0 -50
- package/build/models/diagram.js +0 -47
- package/build/models/diagram.js.map +0 -1
- package/build/models/index.d.ts +0 -7
- package/build/models/index.js +0 -20
- package/build/models/index.js.map +0 -1
- package/build/models/member.d.ts +0 -12
- package/build/models/member.js +0 -29
- package/build/models/member.js.map +0 -1
- package/build/models/program.d.ts +0 -35
- package/build/models/program.js +0 -34
- package/build/models/program.js.map +0 -1
- package/build/models/project.d.ts +0 -272
- package/build/models/project.js +0 -72
- package/build/models/project.js.map +0 -1
- package/build/models/shared.d.ts +0 -382
- package/build/models/shared.js +0 -99
- package/build/models/shared.js.map +0 -1
- package/build/models/version.d.ts +0 -764
- package/build/models/version.js +0 -97
- package/build/models/version.js.map +0 -1
- package/build/utils/index.d.ts +0 -1
- package/build/utils/index.js +0 -14
- package/build/utils/index.js.map +0 -1
- package/build/utils/struct.d.ts +0 -4
- package/build/utils/struct.js +0 -52
- package/build/utils/struct.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diagram.js","sourceRoot":"","sources":["../../src/models/diagram.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,qCAA4I;AAE5I,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf,sCAAuB,CAAA;AACzB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAEY,QAAA,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AAEnD,QAAA,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE,mBAAU;IAEf,IAAI,EAAE,cAAK;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,oBAAY,CAAC;IAC9B,SAAS,EAAE,mBAAU;IACrB,SAAS,EAAE,mBAAU;IACrB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAS,CAAC;IAE7B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAO,EAAE,qBAAY,CAAC;IACtC,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAE9C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAU,CAAC;IAE7B,QAAQ,EAAE,mBAAU;CACrB,CAAC,CAAC"}
|
package/build/models/index.d.ts
DELETED
package/build/models/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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("./apiKey"), exports);
|
|
14
|
-
__exportStar(require("./diagram"), exports);
|
|
15
|
-
__exportStar(require("./member"), exports);
|
|
16
|
-
__exportStar(require("./program"), exports);
|
|
17
|
-
__exportStar(require("./project"), exports);
|
|
18
|
-
__exportStar(require("./shared"), exports);
|
|
19
|
-
__exportStar(require("./version"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B"}
|
package/build/models/member.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as s from 'superstruct';
|
|
2
|
-
import { AnyRecord } from "../types";
|
|
3
|
-
export declare const SMember: s.Struct<{
|
|
4
|
-
creatorID: number;
|
|
5
|
-
platformData: Record<string, unknown>;
|
|
6
|
-
}, {
|
|
7
|
-
creatorID: s.Struct<number, any>;
|
|
8
|
-
platformData: s.Struct<Record<string, unknown>, any>;
|
|
9
|
-
}>;
|
|
10
|
-
export interface Member<P extends AnyRecord = AnyRecord> extends Omit<s.StructType<typeof SMember>, 'platformData'> {
|
|
11
|
-
platformData: P;
|
|
12
|
-
}
|
package/build/models/member.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SMember = void 0;
|
|
23
|
-
const s = __importStar(require("superstruct"));
|
|
24
|
-
const shared_1 = require("./shared");
|
|
25
|
-
exports.SMember = s.object({
|
|
26
|
-
creatorID: shared_1.SCreatorID,
|
|
27
|
-
platformData: shared_1.SBasePlatformData,
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=member.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../src/models/member.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAIjC,qCAAyD;AAE5C,QAAA,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,SAAS,EAAE,mBAAU;IACrB,YAAY,EAAE,0BAAiB;CAChC,CAAC,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as s from 'superstruct';
|
|
2
|
-
import { BaseCommand, BaseNode, NodeID } from './shared';
|
|
3
|
-
export declare const SProgram: s.Struct<{
|
|
4
|
-
id: string;
|
|
5
|
-
variables: string[];
|
|
6
|
-
startId: string;
|
|
7
|
-
skill_id: string;
|
|
8
|
-
lines: Record<string, Record<string, any> & {
|
|
9
|
-
id: string;
|
|
10
|
-
type: string;
|
|
11
|
-
}>;
|
|
12
|
-
commands: (Record<string, any> & {
|
|
13
|
-
type: string;
|
|
14
|
-
})[];
|
|
15
|
-
name?: string | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
id: s.Struct<string, any>;
|
|
18
|
-
startId: s.Struct<string, any>;
|
|
19
|
-
skill_id: s.Struct<string, any>;
|
|
20
|
-
name: s.Struct<string | undefined, any>;
|
|
21
|
-
lines: s.Struct<Record<string, Record<string, any> & {
|
|
22
|
-
id: string;
|
|
23
|
-
type: string;
|
|
24
|
-
}>, any>;
|
|
25
|
-
commands: s.Struct<(Record<string, any> & {
|
|
26
|
-
type: string;
|
|
27
|
-
})[], s.Struct<Record<string, any> & {
|
|
28
|
-
type: string;
|
|
29
|
-
}, any>>;
|
|
30
|
-
variables: s.Struct<string[], s.Struct<string, any>>;
|
|
31
|
-
}>;
|
|
32
|
-
export interface Program<N extends BaseNode = BaseNode, C extends BaseCommand = BaseCommand> extends Omit<s.StructType<typeof SProgram>, 'lines' | 'commands'> {
|
|
33
|
-
lines: Record<NodeID, N>;
|
|
34
|
-
commands: C[];
|
|
35
|
-
}
|
package/build/models/program.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SProgram = void 0;
|
|
23
|
-
const s = __importStar(require("superstruct"));
|
|
24
|
-
const shared_1 = require("./shared");
|
|
25
|
-
exports.SProgram = s.object({
|
|
26
|
-
id: shared_1.SProgramID,
|
|
27
|
-
startId: shared_1.SNodeID,
|
|
28
|
-
skill_id: shared_1.SVersionID,
|
|
29
|
-
name: s.optional(s.string()),
|
|
30
|
-
lines: s.record(shared_1.SNodeID, shared_1.SNode),
|
|
31
|
-
commands: s.array(shared_1.SCommand),
|
|
32
|
-
variables: s.array(shared_1.SVariable),
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=program.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program.js","sourceRoot":"","sources":["../../src/models/program.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,qCAAsH;AAEzG,QAAA,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,mBAAU;IACd,OAAO,EAAE,gBAAO;IAChB,QAAQ,EAAE,mBAAU;IACpB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAE5B,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAO,EAAE,cAAK,CAAC;IAC/B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAQ,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAS,CAAC;CAC9B,CAAC,CAAC"}
|
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import * as s from 'superstruct';
|
|
2
|
-
import { Member } from './member';
|
|
3
|
-
import { BasePlatformData } from './shared';
|
|
4
|
-
export declare enum ProjectPrototypeNLPType {
|
|
5
|
-
LUIS = "LUIS"
|
|
6
|
-
}
|
|
7
|
-
export declare enum ProjectLinkType {
|
|
8
|
-
CURVED = "CURVED",
|
|
9
|
-
STRAIGHT = "STRAIGHT"
|
|
10
|
-
}
|
|
11
|
-
export declare const SProjectPrototypeLuis: s.Struct<{
|
|
12
|
-
type: ProjectPrototypeNLPType;
|
|
13
|
-
appID: string;
|
|
14
|
-
resourceID?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
type: s.Struct<ProjectPrototypeNLPType, any>;
|
|
17
|
-
appID: s.Struct<string, any>;
|
|
18
|
-
resourceID: s.Struct<string | undefined, any>;
|
|
19
|
-
}>;
|
|
20
|
-
export interface ProjectPrototypeNLPBase {
|
|
21
|
-
type: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ProjectPrototypeLuis extends ProjectPrototypeNLPBase, Omit<s.StructType<typeof SProjectPrototypeLuis>, 'type'> {
|
|
24
|
-
type: ProjectPrototypeNLPType.LUIS;
|
|
25
|
-
}
|
|
26
|
-
export declare const SProjectPrototypeNLP: s.Struct<{
|
|
27
|
-
type: ProjectPrototypeNLPType;
|
|
28
|
-
appID: string;
|
|
29
|
-
resourceID?: string | undefined;
|
|
30
|
-
}, any>;
|
|
31
|
-
export declare type ProjectPrototypeNLP = ProjectPrototypeLuis;
|
|
32
|
-
export declare const SProjectPrototype: s.Struct<{
|
|
33
|
-
data: Record<string, unknown>;
|
|
34
|
-
nlp?: {
|
|
35
|
-
type: ProjectPrototypeNLPType;
|
|
36
|
-
appID: string;
|
|
37
|
-
resourceID?: string | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
trainedModel?: {
|
|
40
|
-
slots: {
|
|
41
|
-
key: string;
|
|
42
|
-
name: string;
|
|
43
|
-
inputs: string[];
|
|
44
|
-
type: {
|
|
45
|
-
value?: string | undefined;
|
|
46
|
-
};
|
|
47
|
-
color?: string | undefined;
|
|
48
|
-
}[];
|
|
49
|
-
intents: {
|
|
50
|
-
key: string;
|
|
51
|
-
name: string;
|
|
52
|
-
inputs: {
|
|
53
|
-
text: string;
|
|
54
|
-
slots?: string[] | undefined;
|
|
55
|
-
voice?: string | undefined;
|
|
56
|
-
}[];
|
|
57
|
-
slots?: {
|
|
58
|
-
id: string;
|
|
59
|
-
dialog: {
|
|
60
|
-
prompt: unknown[];
|
|
61
|
-
confirm: unknown[];
|
|
62
|
-
utterances: {
|
|
63
|
-
text: string;
|
|
64
|
-
slots?: string[] | undefined;
|
|
65
|
-
voice?: string | undefined;
|
|
66
|
-
}[];
|
|
67
|
-
confirmEnabled: boolean;
|
|
68
|
-
};
|
|
69
|
-
required: boolean;
|
|
70
|
-
}[] | undefined;
|
|
71
|
-
builtIn?: boolean | undefined;
|
|
72
|
-
_platform?: string | undefined;
|
|
73
|
-
}[];
|
|
74
|
-
} | undefined;
|
|
75
|
-
lastTrainedTime?: number | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
nlp: s.Struct<{
|
|
78
|
-
type: ProjectPrototypeNLPType;
|
|
79
|
-
appID: string;
|
|
80
|
-
resourceID?: string | undefined;
|
|
81
|
-
} | undefined, any>;
|
|
82
|
-
data: s.Struct<Record<string, unknown>, any>;
|
|
83
|
-
trainedModel: s.Struct<{
|
|
84
|
-
slots: {
|
|
85
|
-
key: string;
|
|
86
|
-
name: string;
|
|
87
|
-
inputs: string[];
|
|
88
|
-
type: {
|
|
89
|
-
value?: string | undefined;
|
|
90
|
-
};
|
|
91
|
-
color?: string | undefined;
|
|
92
|
-
}[];
|
|
93
|
-
intents: {
|
|
94
|
-
key: string;
|
|
95
|
-
name: string;
|
|
96
|
-
inputs: {
|
|
97
|
-
text: string;
|
|
98
|
-
slots?: string[] | undefined;
|
|
99
|
-
voice?: string | undefined;
|
|
100
|
-
}[];
|
|
101
|
-
slots?: {
|
|
102
|
-
id: string;
|
|
103
|
-
dialog: {
|
|
104
|
-
prompt: unknown[];
|
|
105
|
-
confirm: unknown[];
|
|
106
|
-
utterances: {
|
|
107
|
-
text: string;
|
|
108
|
-
slots?: string[] | undefined;
|
|
109
|
-
voice?: string | undefined;
|
|
110
|
-
}[];
|
|
111
|
-
confirmEnabled: boolean;
|
|
112
|
-
};
|
|
113
|
-
required: boolean;
|
|
114
|
-
}[] | undefined;
|
|
115
|
-
builtIn?: boolean | undefined;
|
|
116
|
-
_platform?: string | undefined;
|
|
117
|
-
}[];
|
|
118
|
-
} | undefined, any>;
|
|
119
|
-
lastTrainedTime: s.Struct<number | undefined, any>;
|
|
120
|
-
}>;
|
|
121
|
-
export interface ProjectPrototype extends Omit<s.StructType<typeof SProjectPrototype>, 'nlp'> {
|
|
122
|
-
nlp?: ProjectPrototypeNLP;
|
|
123
|
-
}
|
|
124
|
-
export declare enum ProjectPrivacy {
|
|
125
|
-
PUBLIC = "public",
|
|
126
|
-
PRIVATE = "private"
|
|
127
|
-
}
|
|
128
|
-
export declare const SReportTag: s.Struct<{
|
|
129
|
-
tagID: string;
|
|
130
|
-
label: string;
|
|
131
|
-
}, {
|
|
132
|
-
tagID: s.Struct<string, any>;
|
|
133
|
-
label: s.Struct<string, any>;
|
|
134
|
-
}>;
|
|
135
|
-
export declare const SProject: s.Struct<{
|
|
136
|
-
name: string;
|
|
137
|
-
_id: string;
|
|
138
|
-
creatorID: number;
|
|
139
|
-
platformData: Record<string, unknown>;
|
|
140
|
-
teamID: string;
|
|
141
|
-
members: {
|
|
142
|
-
creatorID: number;
|
|
143
|
-
platformData: Record<string, unknown>;
|
|
144
|
-
}[];
|
|
145
|
-
platform: string;
|
|
146
|
-
image?: string | undefined;
|
|
147
|
-
privacy?: ProjectPrivacy | undefined;
|
|
148
|
-
linkType?: ProjectLinkType | undefined;
|
|
149
|
-
prototype?: {
|
|
150
|
-
data: Record<string, unknown>;
|
|
151
|
-
nlp?: {
|
|
152
|
-
type: ProjectPrototypeNLPType;
|
|
153
|
-
appID: string;
|
|
154
|
-
resourceID?: string | undefined;
|
|
155
|
-
} | undefined;
|
|
156
|
-
trainedModel?: {
|
|
157
|
-
slots: {
|
|
158
|
-
key: string;
|
|
159
|
-
name: string;
|
|
160
|
-
inputs: string[];
|
|
161
|
-
type: {
|
|
162
|
-
value?: string | undefined;
|
|
163
|
-
};
|
|
164
|
-
color?: string | undefined;
|
|
165
|
-
}[];
|
|
166
|
-
intents: {
|
|
167
|
-
key: string;
|
|
168
|
-
name: string;
|
|
169
|
-
inputs: {
|
|
170
|
-
text: string;
|
|
171
|
-
slots?: string[] | undefined;
|
|
172
|
-
voice?: string | undefined;
|
|
173
|
-
}[];
|
|
174
|
-
slots?: {
|
|
175
|
-
id: string;
|
|
176
|
-
dialog: {
|
|
177
|
-
prompt: unknown[];
|
|
178
|
-
confirm: unknown[];
|
|
179
|
-
utterances: {
|
|
180
|
-
text: string;
|
|
181
|
-
slots?: string[] | undefined;
|
|
182
|
-
voice?: string | undefined;
|
|
183
|
-
}[];
|
|
184
|
-
confirmEnabled: boolean;
|
|
185
|
-
};
|
|
186
|
-
required: boolean;
|
|
187
|
-
}[] | undefined;
|
|
188
|
-
builtIn?: boolean | undefined;
|
|
189
|
-
_platform?: string | undefined;
|
|
190
|
-
}[];
|
|
191
|
-
} | undefined;
|
|
192
|
-
lastTrainedTime?: number | undefined;
|
|
193
|
-
} | undefined;
|
|
194
|
-
devVersion?: string | undefined;
|
|
195
|
-
liveVersion?: string | undefined;
|
|
196
|
-
reportTags?: Record<string, {
|
|
197
|
-
tagID: string;
|
|
198
|
-
label: string;
|
|
199
|
-
}> | undefined;
|
|
200
|
-
}, {
|
|
201
|
-
_id: s.Struct<string, any>;
|
|
202
|
-
teamID: s.Struct<string, any>;
|
|
203
|
-
creatorID: s.Struct<number, any>;
|
|
204
|
-
name: s.Struct<string, any>;
|
|
205
|
-
image: s.Struct<string | undefined, any>;
|
|
206
|
-
members: s.Struct<{
|
|
207
|
-
creatorID: number;
|
|
208
|
-
platformData: Record<string, unknown>;
|
|
209
|
-
}[], s.Struct<{
|
|
210
|
-
creatorID: number;
|
|
211
|
-
platformData: Record<string, unknown>;
|
|
212
|
-
}, any>>;
|
|
213
|
-
privacy: s.Struct<ProjectPrivacy | undefined, any>;
|
|
214
|
-
platform: s.Struct<string, any>;
|
|
215
|
-
linkType: s.Struct<ProjectLinkType | undefined, any>;
|
|
216
|
-
prototype: s.Struct<{
|
|
217
|
-
data: Record<string, unknown>;
|
|
218
|
-
nlp?: {
|
|
219
|
-
type: ProjectPrototypeNLPType;
|
|
220
|
-
appID: string;
|
|
221
|
-
resourceID?: string | undefined;
|
|
222
|
-
} | undefined;
|
|
223
|
-
trainedModel?: {
|
|
224
|
-
slots: {
|
|
225
|
-
key: string;
|
|
226
|
-
name: string;
|
|
227
|
-
inputs: string[];
|
|
228
|
-
type: {
|
|
229
|
-
value?: string | undefined;
|
|
230
|
-
};
|
|
231
|
-
color?: string | undefined;
|
|
232
|
-
}[];
|
|
233
|
-
intents: {
|
|
234
|
-
key: string;
|
|
235
|
-
name: string;
|
|
236
|
-
inputs: {
|
|
237
|
-
text: string;
|
|
238
|
-
slots?: string[] | undefined;
|
|
239
|
-
voice?: string | undefined;
|
|
240
|
-
}[];
|
|
241
|
-
slots?: {
|
|
242
|
-
id: string;
|
|
243
|
-
dialog: {
|
|
244
|
-
prompt: unknown[];
|
|
245
|
-
confirm: unknown[];
|
|
246
|
-
utterances: {
|
|
247
|
-
text: string;
|
|
248
|
-
slots?: string[] | undefined;
|
|
249
|
-
voice?: string | undefined;
|
|
250
|
-
}[];
|
|
251
|
-
confirmEnabled: boolean;
|
|
252
|
-
};
|
|
253
|
-
required: boolean;
|
|
254
|
-
}[] | undefined;
|
|
255
|
-
builtIn?: boolean | undefined;
|
|
256
|
-
_platform?: string | undefined;
|
|
257
|
-
}[];
|
|
258
|
-
} | undefined;
|
|
259
|
-
lastTrainedTime?: number | undefined;
|
|
260
|
-
} | undefined, any>;
|
|
261
|
-
devVersion: s.Struct<string | undefined, any>;
|
|
262
|
-
liveVersion: s.Struct<string | undefined, any>;
|
|
263
|
-
platformData: s.Struct<Record<string, unknown>, any>;
|
|
264
|
-
reportTags: s.Struct<Record<string, {
|
|
265
|
-
tagID: string;
|
|
266
|
-
label: string;
|
|
267
|
-
}> | undefined, any>;
|
|
268
|
-
}>;
|
|
269
|
-
export interface Project<P extends BasePlatformData, M extends BasePlatformData> extends Omit<s.StructType<typeof SProject>, 'platformData' | 'members'> {
|
|
270
|
-
members: Member<M>[];
|
|
271
|
-
platformData: P;
|
|
272
|
-
}
|
package/build/models/project.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SProject = exports.SReportTag = exports.ProjectPrivacy = exports.SProjectPrototype = exports.SProjectPrototypeNLP = exports.SProjectPrototypeLuis = exports.ProjectLinkType = exports.ProjectPrototypeNLPType = void 0;
|
|
23
|
-
const s = __importStar(require("superstruct"));
|
|
24
|
-
const member_1 = require("./member");
|
|
25
|
-
const shared_1 = require("./shared");
|
|
26
|
-
var ProjectPrototypeNLPType;
|
|
27
|
-
(function (ProjectPrototypeNLPType) {
|
|
28
|
-
ProjectPrototypeNLPType["LUIS"] = "LUIS";
|
|
29
|
-
})(ProjectPrototypeNLPType = exports.ProjectPrototypeNLPType || (exports.ProjectPrototypeNLPType = {}));
|
|
30
|
-
var ProjectLinkType;
|
|
31
|
-
(function (ProjectLinkType) {
|
|
32
|
-
ProjectLinkType["CURVED"] = "CURVED";
|
|
33
|
-
ProjectLinkType["STRAIGHT"] = "STRAIGHT";
|
|
34
|
-
})(ProjectLinkType = exports.ProjectLinkType || (exports.ProjectLinkType = {}));
|
|
35
|
-
exports.SProjectPrototypeLuis = s.object({
|
|
36
|
-
type: s.enums([ProjectPrototypeNLPType.LUIS]),
|
|
37
|
-
appID: s.string(),
|
|
38
|
-
resourceID: s.optional(s.string()),
|
|
39
|
-
});
|
|
40
|
-
exports.SProjectPrototypeNLP = s.union([exports.SProjectPrototypeLuis]);
|
|
41
|
-
exports.SProjectPrototype = s.object({
|
|
42
|
-
nlp: s.optional(exports.SProjectPrototypeNLP),
|
|
43
|
-
data: s.object(),
|
|
44
|
-
trainedModel: s.optional(shared_1.SPrototypeModel),
|
|
45
|
-
lastTrainedTime: s.optional(s.number()),
|
|
46
|
-
});
|
|
47
|
-
var ProjectPrivacy;
|
|
48
|
-
(function (ProjectPrivacy) {
|
|
49
|
-
ProjectPrivacy["PUBLIC"] = "public";
|
|
50
|
-
ProjectPrivacy["PRIVATE"] = "private";
|
|
51
|
-
})(ProjectPrivacy = exports.ProjectPrivacy || (exports.ProjectPrivacy = {}));
|
|
52
|
-
exports.SReportTag = s.object({
|
|
53
|
-
tagID: shared_1.STagID,
|
|
54
|
-
label: s.string(),
|
|
55
|
-
});
|
|
56
|
-
exports.SProject = s.object({
|
|
57
|
-
_id: shared_1.SProjectID,
|
|
58
|
-
teamID: shared_1.STeamID,
|
|
59
|
-
creatorID: shared_1.SCreatorID,
|
|
60
|
-
name: shared_1.SName,
|
|
61
|
-
image: s.optional(s.string()),
|
|
62
|
-
members: s.array(member_1.SMember),
|
|
63
|
-
privacy: s.optional(s.enums([ProjectPrivacy.PRIVATE, ProjectPrivacy.PUBLIC])),
|
|
64
|
-
platform: shared_1.SPlatform,
|
|
65
|
-
linkType: s.optional(s.enums(Object.values(ProjectLinkType))),
|
|
66
|
-
prototype: s.optional(exports.SProjectPrototype),
|
|
67
|
-
devVersion: s.optional(shared_1.SVersionID),
|
|
68
|
-
liveVersion: s.optional(shared_1.SVersionID),
|
|
69
|
-
platformData: shared_1.SBasePlatformData,
|
|
70
|
-
reportTags: s.optional(s.record(shared_1.STagID, exports.SReportTag)),
|
|
71
|
-
});
|
|
72
|
-
//# sourceMappingURL=project.js.map
|
|
@@ -1 +0,0 @@
|
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