@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
package/build/models/shared.d.ts
DELETED
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
import * as s from 'superstruct';
|
|
2
|
-
import { AnyRecord, Nullable } from "../types";
|
|
3
|
-
export declare const SPlatform: s.Struct<string, any>;
|
|
4
|
-
export declare type Platform = s.StructType<typeof SPlatform>;
|
|
5
|
-
export declare const SName: s.Struct<string, any>;
|
|
6
|
-
export declare type Name = s.StructType<typeof SName>;
|
|
7
|
-
export declare const SAPIKeyID: s.Struct<string, any>;
|
|
8
|
-
export declare type APIKeyID = s.StructType<typeof SAPIKeyID>;
|
|
9
|
-
export declare const STeamID: s.Struct<string, any>;
|
|
10
|
-
export declare type TeamID = s.StructType<typeof STeamID>;
|
|
11
|
-
export declare const SWorkspaceID: s.Struct<string, any>;
|
|
12
|
-
export declare type WorkspaceID = TeamID;
|
|
13
|
-
export declare const SBlockID: s.Struct<string, any>;
|
|
14
|
-
export declare type BlockID = s.StructType<typeof SBlockID>;
|
|
15
|
-
export declare const SVariable: s.Struct<string, any>;
|
|
16
|
-
export declare type Variable = s.StructType<typeof SVariable>;
|
|
17
|
-
export declare const STagID: s.Struct<string, any>;
|
|
18
|
-
export declare type TagID = s.StructType<typeof SBlockID>;
|
|
19
|
-
export declare const STimestamp: s.Struct<number, any>;
|
|
20
|
-
export declare type Timestamp = s.StructType<typeof STimestamp>;
|
|
21
|
-
export declare const SProjectID: s.Struct<string, any>;
|
|
22
|
-
export declare type ProjectID = s.StructType<typeof SProjectID>;
|
|
23
|
-
export declare const SCreatorID: s.Struct<number, any>;
|
|
24
|
-
export declare type CreatorID = s.StructType<typeof SCreatorID>;
|
|
25
|
-
export declare const SVersionID: s.Struct<string, any>;
|
|
26
|
-
export declare type VersionID = s.StructType<typeof SVersionID>;
|
|
27
|
-
export declare const SProgramID: s.Struct<string, any>;
|
|
28
|
-
export declare type ProgramID = s.StructType<typeof SProgramID>;
|
|
29
|
-
export declare const SDiagramID: s.Struct<string, any>;
|
|
30
|
-
export declare type DiagramID = s.StructType<typeof SDiagramID>;
|
|
31
|
-
export declare const SIntentInput: s.Struct<{
|
|
32
|
-
text: string;
|
|
33
|
-
slots?: string[] | undefined;
|
|
34
|
-
voice?: string | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
text: s.Struct<string, any>;
|
|
37
|
-
slots: s.Struct<string[] | undefined, any>;
|
|
38
|
-
voice: s.Struct<string | undefined, any>;
|
|
39
|
-
}>;
|
|
40
|
-
export interface IntentInput extends s.StructType<typeof SIntentInput> {
|
|
41
|
-
/** @deprecated shouldn't be used */
|
|
42
|
-
voice?: string;
|
|
43
|
-
}
|
|
44
|
-
export declare const SIntentSlotDialog: s.Struct<{
|
|
45
|
-
prompt: unknown[];
|
|
46
|
-
confirm: unknown[];
|
|
47
|
-
utterances: {
|
|
48
|
-
text: string;
|
|
49
|
-
slots?: string[] | undefined;
|
|
50
|
-
voice?: string | undefined;
|
|
51
|
-
}[];
|
|
52
|
-
confirmEnabled: boolean;
|
|
53
|
-
}, {
|
|
54
|
-
prompt: s.Struct<unknown[], s.Struct<unknown, any>>;
|
|
55
|
-
confirm: s.Struct<unknown[], s.Struct<unknown, any>>;
|
|
56
|
-
utterances: s.Struct<{
|
|
57
|
-
text: string;
|
|
58
|
-
slots?: string[] | undefined;
|
|
59
|
-
voice?: string | undefined;
|
|
60
|
-
}[], s.Struct<{
|
|
61
|
-
text: string;
|
|
62
|
-
slots?: string[] | undefined;
|
|
63
|
-
voice?: string | undefined;
|
|
64
|
-
}, any>>;
|
|
65
|
-
confirmEnabled: s.Struct<boolean, any>;
|
|
66
|
-
}>;
|
|
67
|
-
export declare type IntentSlotDialog = s.StructType<typeof SIntentSlotDialog>;
|
|
68
|
-
export declare const SIntentSlot: s.Struct<{
|
|
69
|
-
id: string;
|
|
70
|
-
dialog: {
|
|
71
|
-
prompt: unknown[];
|
|
72
|
-
confirm: unknown[];
|
|
73
|
-
utterances: {
|
|
74
|
-
text: string;
|
|
75
|
-
slots?: string[] | undefined;
|
|
76
|
-
voice?: string | undefined;
|
|
77
|
-
}[];
|
|
78
|
-
confirmEnabled: boolean;
|
|
79
|
-
};
|
|
80
|
-
required: boolean;
|
|
81
|
-
}, {
|
|
82
|
-
id: s.Struct<string, any>;
|
|
83
|
-
dialog: s.Struct<{
|
|
84
|
-
prompt: unknown[];
|
|
85
|
-
confirm: unknown[];
|
|
86
|
-
utterances: {
|
|
87
|
-
text: string;
|
|
88
|
-
slots?: string[] | undefined;
|
|
89
|
-
voice?: string | undefined;
|
|
90
|
-
}[];
|
|
91
|
-
confirmEnabled: boolean;
|
|
92
|
-
}, {
|
|
93
|
-
prompt: s.Struct<unknown[], s.Struct<unknown, any>>;
|
|
94
|
-
confirm: s.Struct<unknown[], s.Struct<unknown, any>>;
|
|
95
|
-
utterances: s.Struct<{
|
|
96
|
-
text: string;
|
|
97
|
-
slots?: string[] | undefined;
|
|
98
|
-
voice?: string | undefined;
|
|
99
|
-
}[], s.Struct<{
|
|
100
|
-
text: string;
|
|
101
|
-
slots?: string[] | undefined;
|
|
102
|
-
voice?: string | undefined;
|
|
103
|
-
}, any>>;
|
|
104
|
-
confirmEnabled: s.Struct<boolean, any>;
|
|
105
|
-
}>;
|
|
106
|
-
required: s.Struct<boolean, any>;
|
|
107
|
-
}>;
|
|
108
|
-
export declare type IntentSlot = s.StructType<typeof SIntentSlot>;
|
|
109
|
-
export declare const SIntent: s.Struct<{
|
|
110
|
-
key: string;
|
|
111
|
-
name: string;
|
|
112
|
-
inputs: {
|
|
113
|
-
text: string;
|
|
114
|
-
slots?: string[] | undefined;
|
|
115
|
-
voice?: string | undefined;
|
|
116
|
-
}[];
|
|
117
|
-
slots?: {
|
|
118
|
-
id: string;
|
|
119
|
-
dialog: {
|
|
120
|
-
prompt: unknown[];
|
|
121
|
-
confirm: unknown[];
|
|
122
|
-
utterances: {
|
|
123
|
-
text: string;
|
|
124
|
-
slots?: string[] | undefined;
|
|
125
|
-
voice?: string | undefined;
|
|
126
|
-
}[];
|
|
127
|
-
confirmEnabled: boolean;
|
|
128
|
-
};
|
|
129
|
-
required: boolean;
|
|
130
|
-
}[] | undefined;
|
|
131
|
-
builtIn?: boolean | undefined;
|
|
132
|
-
_platform?: string | undefined;
|
|
133
|
-
}, {
|
|
134
|
-
key: s.Struct<string, any>;
|
|
135
|
-
name: s.Struct<string, any>;
|
|
136
|
-
slots: s.Struct<{
|
|
137
|
-
id: string;
|
|
138
|
-
dialog: {
|
|
139
|
-
prompt: unknown[];
|
|
140
|
-
confirm: unknown[];
|
|
141
|
-
utterances: {
|
|
142
|
-
text: string;
|
|
143
|
-
slots?: string[] | undefined;
|
|
144
|
-
voice?: string | undefined;
|
|
145
|
-
}[];
|
|
146
|
-
confirmEnabled: boolean;
|
|
147
|
-
};
|
|
148
|
-
required: boolean;
|
|
149
|
-
}[] | undefined, any>;
|
|
150
|
-
inputs: s.Struct<{
|
|
151
|
-
text: string;
|
|
152
|
-
slots?: string[] | undefined;
|
|
153
|
-
voice?: string | undefined;
|
|
154
|
-
}[], s.Struct<{
|
|
155
|
-
text: string;
|
|
156
|
-
slots?: string[] | undefined;
|
|
157
|
-
voice?: string | undefined;
|
|
158
|
-
}, any>>;
|
|
159
|
-
builtIn: s.Struct<boolean | undefined, any>;
|
|
160
|
-
_platform: s.Struct<string | undefined, any>;
|
|
161
|
-
}>;
|
|
162
|
-
export declare type Intent = s.StructType<typeof SIntent>;
|
|
163
|
-
export declare const SSlot: s.Struct<{
|
|
164
|
-
key: string;
|
|
165
|
-
name: string;
|
|
166
|
-
inputs: string[];
|
|
167
|
-
type: {
|
|
168
|
-
value?: string | undefined;
|
|
169
|
-
};
|
|
170
|
-
color?: string | undefined;
|
|
171
|
-
}, {
|
|
172
|
-
key: s.Struct<string, any>;
|
|
173
|
-
name: s.Struct<string, any>;
|
|
174
|
-
type: s.Struct<{
|
|
175
|
-
value?: string | undefined;
|
|
176
|
-
}, {
|
|
177
|
-
value: s.Struct<string | undefined, any>;
|
|
178
|
-
}>;
|
|
179
|
-
color: s.Struct<string | undefined, any>;
|
|
180
|
-
inputs: s.Struct<string[], s.Struct<string, any>>;
|
|
181
|
-
}>;
|
|
182
|
-
export declare type Slot = s.StructType<typeof SSlot>;
|
|
183
|
-
export declare const SSlotMapping: s.Struct<{
|
|
184
|
-
slot: string | null;
|
|
185
|
-
variable: string | null;
|
|
186
|
-
}, {
|
|
187
|
-
slot: s.Struct<string | null, any>;
|
|
188
|
-
variable: s.Struct<string | null, any>;
|
|
189
|
-
}>;
|
|
190
|
-
export declare type SlotMapping = s.StructType<typeof SSlotMapping>;
|
|
191
|
-
export declare const SCommandMapping: s.Struct<{
|
|
192
|
-
slot: string;
|
|
193
|
-
variable: string;
|
|
194
|
-
}, {
|
|
195
|
-
slot: s.Struct<string, any>;
|
|
196
|
-
variable: s.Struct<string, any>;
|
|
197
|
-
}>;
|
|
198
|
-
export declare type CommandMapping = s.StructType<typeof SCommandMapping>;
|
|
199
|
-
export declare const SCommand: s.Struct<Record<string, any> & {
|
|
200
|
-
type: string;
|
|
201
|
-
}, {
|
|
202
|
-
type: s.Struct<string, any>;
|
|
203
|
-
}>;
|
|
204
|
-
/**
|
|
205
|
-
* @deprecated
|
|
206
|
-
*/
|
|
207
|
-
export declare type Command<T extends string = string, D extends AnyRecord = AnyRecord> = {
|
|
208
|
-
type: T;
|
|
209
|
-
} & D;
|
|
210
|
-
export interface BaseCommand {
|
|
211
|
-
type: string;
|
|
212
|
-
}
|
|
213
|
-
export declare const SNodeID: s.Struct<string, any>;
|
|
214
|
-
export declare type NodeID = s.StructType<typeof SNodeID>;
|
|
215
|
-
export declare const SNodeType: s.Struct<string, any>;
|
|
216
|
-
export declare type NodeType = s.StructType<typeof SNodeID>;
|
|
217
|
-
export declare const SNode: s.Struct<Record<string, any> & {
|
|
218
|
-
id: string;
|
|
219
|
-
type: string;
|
|
220
|
-
}, {
|
|
221
|
-
id: s.Struct<string, any>;
|
|
222
|
-
type: s.Struct<string, any>;
|
|
223
|
-
}>;
|
|
224
|
-
export declare const SNodePartial: s.Struct<Record<string, any> & {
|
|
225
|
-
id?: string | undefined;
|
|
226
|
-
type?: string | undefined;
|
|
227
|
-
}, {
|
|
228
|
-
id: s.Struct<string | undefined, any>;
|
|
229
|
-
type: s.Struct<string | undefined, any>;
|
|
230
|
-
}>;
|
|
231
|
-
/**
|
|
232
|
-
* @deprecated
|
|
233
|
-
*/
|
|
234
|
-
export declare type Node<T extends string = string, D extends AnyRecord = AnyRecord> = {
|
|
235
|
-
id: string;
|
|
236
|
-
type: T;
|
|
237
|
-
} & D;
|
|
238
|
-
export interface BaseNode {
|
|
239
|
-
id: string;
|
|
240
|
-
type: string;
|
|
241
|
-
}
|
|
242
|
-
export declare const SCoordPoint: s.Struct<number, any>;
|
|
243
|
-
export declare type CoordPoint = s.StructType<typeof SCoordPoint>;
|
|
244
|
-
export declare const SDiagramNode: s.Struct<{
|
|
245
|
-
data: Record<string, unknown>;
|
|
246
|
-
type: string;
|
|
247
|
-
nodeID: string;
|
|
248
|
-
coords?: [number, number] | undefined;
|
|
249
|
-
}, {
|
|
250
|
-
nodeID: s.Struct<string, any>;
|
|
251
|
-
type: s.Struct<string, any>;
|
|
252
|
-
coords: s.Struct<[number, number] | undefined, any>;
|
|
253
|
-
data: s.Struct<Record<string, unknown>, any>;
|
|
254
|
-
}>;
|
|
255
|
-
export interface BaseDiagramNode<D extends AnyRecord = AnyRecord> extends Omit<s.StructType<typeof SDiagramNode>, 'data'> {
|
|
256
|
-
data: D;
|
|
257
|
-
}
|
|
258
|
-
export interface BlockOnlyData {
|
|
259
|
-
name: string;
|
|
260
|
-
color: string;
|
|
261
|
-
steps: string[];
|
|
262
|
-
}
|
|
263
|
-
export interface BaseBlock<D extends AnyRecord = AnyRecord> extends BaseDiagramNode<D & BlockOnlyData> {
|
|
264
|
-
coords: [number, number];
|
|
265
|
-
}
|
|
266
|
-
export interface BasePort<PD extends AnyRecord = AnyRecord> {
|
|
267
|
-
type: string;
|
|
268
|
-
target: Nullable<string>;
|
|
269
|
-
data?: PD;
|
|
270
|
-
id: string;
|
|
271
|
-
}
|
|
272
|
-
interface StepOnlyData<P = [BasePort, ...BasePort[]]> {
|
|
273
|
-
ports: P;
|
|
274
|
-
}
|
|
275
|
-
export declare type BaseStep<D extends AnyRecord = AnyRecord, P = [BasePort, ...BasePort[]]> = BaseDiagramNode<D & StepOnlyData<P>>;
|
|
276
|
-
export declare const SBasePlatformData: s.Struct<Record<string, unknown>, any>;
|
|
277
|
-
export declare type BasePlatformData = AnyRecord;
|
|
278
|
-
export declare const SPrototypeModel: s.Struct<{
|
|
279
|
-
slots: {
|
|
280
|
-
key: string;
|
|
281
|
-
name: string;
|
|
282
|
-
inputs: string[];
|
|
283
|
-
type: {
|
|
284
|
-
value?: string | undefined;
|
|
285
|
-
};
|
|
286
|
-
color?: string | undefined;
|
|
287
|
-
}[];
|
|
288
|
-
intents: {
|
|
289
|
-
key: string;
|
|
290
|
-
name: string;
|
|
291
|
-
inputs: {
|
|
292
|
-
text: string;
|
|
293
|
-
slots?: string[] | undefined;
|
|
294
|
-
voice?: string | undefined;
|
|
295
|
-
}[];
|
|
296
|
-
slots?: {
|
|
297
|
-
id: string;
|
|
298
|
-
dialog: {
|
|
299
|
-
prompt: unknown[];
|
|
300
|
-
confirm: unknown[];
|
|
301
|
-
utterances: {
|
|
302
|
-
text: string;
|
|
303
|
-
slots?: string[] | undefined;
|
|
304
|
-
voice?: string | undefined;
|
|
305
|
-
}[];
|
|
306
|
-
confirmEnabled: boolean;
|
|
307
|
-
};
|
|
308
|
-
required: boolean;
|
|
309
|
-
}[] | undefined;
|
|
310
|
-
builtIn?: boolean | undefined;
|
|
311
|
-
_platform?: string | undefined;
|
|
312
|
-
}[];
|
|
313
|
-
}, {
|
|
314
|
-
slots: s.Struct<{
|
|
315
|
-
key: string;
|
|
316
|
-
name: string;
|
|
317
|
-
inputs: string[];
|
|
318
|
-
type: {
|
|
319
|
-
value?: string | undefined;
|
|
320
|
-
};
|
|
321
|
-
color?: string | undefined;
|
|
322
|
-
}[], s.Struct<{
|
|
323
|
-
key: string;
|
|
324
|
-
name: string;
|
|
325
|
-
inputs: string[];
|
|
326
|
-
type: {
|
|
327
|
-
value?: string | undefined;
|
|
328
|
-
};
|
|
329
|
-
color?: string | undefined;
|
|
330
|
-
}, any>>;
|
|
331
|
-
intents: s.Struct<{
|
|
332
|
-
key: string;
|
|
333
|
-
name: string;
|
|
334
|
-
inputs: {
|
|
335
|
-
text: string;
|
|
336
|
-
slots?: string[] | undefined;
|
|
337
|
-
voice?: string | undefined;
|
|
338
|
-
}[];
|
|
339
|
-
slots?: {
|
|
340
|
-
id: string;
|
|
341
|
-
dialog: {
|
|
342
|
-
prompt: unknown[];
|
|
343
|
-
confirm: unknown[];
|
|
344
|
-
utterances: {
|
|
345
|
-
text: string;
|
|
346
|
-
slots?: string[] | undefined;
|
|
347
|
-
voice?: string | undefined;
|
|
348
|
-
}[];
|
|
349
|
-
confirmEnabled: boolean;
|
|
350
|
-
};
|
|
351
|
-
required: boolean;
|
|
352
|
-
}[] | undefined;
|
|
353
|
-
builtIn?: boolean | undefined;
|
|
354
|
-
_platform?: string | undefined;
|
|
355
|
-
}[], s.Struct<{
|
|
356
|
-
key: string;
|
|
357
|
-
name: string;
|
|
358
|
-
inputs: {
|
|
359
|
-
text: string;
|
|
360
|
-
slots?: string[] | undefined;
|
|
361
|
-
voice?: string | undefined;
|
|
362
|
-
}[];
|
|
363
|
-
slots?: {
|
|
364
|
-
id: string;
|
|
365
|
-
dialog: {
|
|
366
|
-
prompt: unknown[];
|
|
367
|
-
confirm: unknown[];
|
|
368
|
-
utterances: {
|
|
369
|
-
text: string;
|
|
370
|
-
slots?: string[] | undefined;
|
|
371
|
-
voice?: string | undefined;
|
|
372
|
-
}[];
|
|
373
|
-
confirmEnabled: boolean;
|
|
374
|
-
};
|
|
375
|
-
required: boolean;
|
|
376
|
-
}[] | undefined;
|
|
377
|
-
builtIn?: boolean | undefined;
|
|
378
|
-
_platform?: string | undefined;
|
|
379
|
-
}, any>>;
|
|
380
|
-
}>;
|
|
381
|
-
export declare type PrototypeModel = s.StructType<typeof SPrototypeModel>;
|
|
382
|
-
export {};
|
package/build/models/shared.js
DELETED
|
@@ -1,99 +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.SPrototypeModel = exports.SBasePlatformData = exports.SDiagramNode = exports.SCoordPoint = exports.SNodePartial = exports.SNode = exports.SNodeType = exports.SNodeID = exports.SCommand = exports.SCommandMapping = exports.SSlotMapping = exports.SSlot = exports.SIntent = exports.SIntentSlot = exports.SIntentSlotDialog = exports.SIntentInput = exports.SDiagramID = exports.SProgramID = exports.SVersionID = exports.SCreatorID = exports.SProjectID = exports.STimestamp = exports.STagID = exports.SVariable = exports.SBlockID = exports.SWorkspaceID = exports.STeamID = exports.SAPIKeyID = exports.SName = exports.SPlatform = void 0;
|
|
23
|
-
const s = __importStar(require("superstruct"));
|
|
24
|
-
const utils_1 = require("../utils");
|
|
25
|
-
exports.SPlatform = s.string();
|
|
26
|
-
exports.SName = s.string();
|
|
27
|
-
exports.SAPIKeyID = s.string();
|
|
28
|
-
exports.STeamID = s.string();
|
|
29
|
-
// alias for the team id
|
|
30
|
-
exports.SWorkspaceID = exports.STeamID;
|
|
31
|
-
exports.SBlockID = s.string();
|
|
32
|
-
exports.SVariable = s.string();
|
|
33
|
-
exports.STagID = s.string();
|
|
34
|
-
exports.STimestamp = s.number();
|
|
35
|
-
exports.SProjectID = s.string();
|
|
36
|
-
exports.SCreatorID = s.number();
|
|
37
|
-
exports.SVersionID = s.string();
|
|
38
|
-
exports.SProgramID = s.string();
|
|
39
|
-
exports.SDiagramID = s.string();
|
|
40
|
-
exports.SIntentInput = s.object({
|
|
41
|
-
text: s.string(),
|
|
42
|
-
slots: s.optional(s.array(s.string())),
|
|
43
|
-
// TODO: delete when superstrack validations will bre moved
|
|
44
|
-
voice: s.optional(s.string()),
|
|
45
|
-
});
|
|
46
|
-
exports.SIntentSlotDialog = s.object({
|
|
47
|
-
prompt: s.array(s.any()),
|
|
48
|
-
confirm: s.array(s.any()),
|
|
49
|
-
utterances: s.array(exports.SIntentInput),
|
|
50
|
-
confirmEnabled: s.boolean(),
|
|
51
|
-
});
|
|
52
|
-
exports.SIntentSlot = s.object({
|
|
53
|
-
id: s.string(),
|
|
54
|
-
dialog: exports.SIntentSlotDialog,
|
|
55
|
-
required: s.boolean(),
|
|
56
|
-
});
|
|
57
|
-
exports.SIntent = s.object({
|
|
58
|
-
key: s.string(),
|
|
59
|
-
name: s.string(),
|
|
60
|
-
slots: s.optional(s.array(exports.SIntentSlot)),
|
|
61
|
-
inputs: s.array(exports.SIntentInput),
|
|
62
|
-
builtIn: s.optional(s.boolean()),
|
|
63
|
-
_platform: s.optional(s.string()),
|
|
64
|
-
});
|
|
65
|
-
exports.SSlot = s.object({
|
|
66
|
-
key: s.string(),
|
|
67
|
-
name: s.string(),
|
|
68
|
-
type: s.object({ value: s.optional(s.string()) }),
|
|
69
|
-
color: s.optional(s.string()),
|
|
70
|
-
inputs: s.array(s.string()),
|
|
71
|
-
});
|
|
72
|
-
exports.SSlotMapping = s.object({
|
|
73
|
-
slot: s.nullable(s.string()),
|
|
74
|
-
variable: s.nullable(exports.SVariable),
|
|
75
|
-
});
|
|
76
|
-
exports.SCommandMapping = s.object({
|
|
77
|
-
slot: s.string(),
|
|
78
|
-
variable: exports.SVariable,
|
|
79
|
-
});
|
|
80
|
-
exports.SCommand = utils_1.dynamicObject({
|
|
81
|
-
type: s.string(),
|
|
82
|
-
});
|
|
83
|
-
exports.SNodeID = s.string();
|
|
84
|
-
exports.SNodeType = s.string();
|
|
85
|
-
exports.SNode = utils_1.dynamicObject({ id: exports.SNodeID, type: exports.SNodeType });
|
|
86
|
-
exports.SNodePartial = utils_1.dynamicObject({ id: s.optional(exports.SNodeID), type: s.optional(exports.SNodeType) });
|
|
87
|
-
exports.SCoordPoint = s.number();
|
|
88
|
-
exports.SDiagramNode = s.object({
|
|
89
|
-
nodeID: exports.SNodeID,
|
|
90
|
-
type: exports.SNodeType,
|
|
91
|
-
coords: s.optional(s.tuple([s.number(), s.number()])),
|
|
92
|
-
data: s.object(),
|
|
93
|
-
});
|
|
94
|
-
exports.SBasePlatformData = s.object();
|
|
95
|
-
exports.SPrototypeModel = s.object({
|
|
96
|
-
slots: s.array(exports.SSlot),
|
|
97
|
-
intents: s.array(exports.SIntent),
|
|
98
|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