@sprucelabs/spruce-core-schemas 41.3.0 → 41.3.1
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/.spruce/schemas/core.schemas.types.d.ts +119 -85
- package/build/.spruce/schemas/spruce/v2020_07_22/agent.schema.js +9 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/agentSource.schema.d.ts +3 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/agentSource.schema.js +24 -0
- package/build/esm/.spruce/schemas/core.schemas.types.d.ts +119 -85
- package/build/esm/schemas/v2020_07_22/agent.builder.d.ts +16 -0
- package/build/esm/schemas/v2020_07_22/agent.builder.js +16 -0
- package/build/schemas/v2020_07_22/agent.builder.d.ts +16 -0
- package/build/schemas/v2020_07_22/agent.builder.js +16 -0
- package/package.json +1 -1
|
@@ -1149,91 +1149,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
type LinkEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.LinkSchema>;
|
|
1151
1151
|
}
|
|
1152
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1153
|
-
interface FeedItemTarget {
|
|
1154
|
-
'personId'?: string | undefined | null;
|
|
1155
|
-
'casualName': string;
|
|
1156
|
-
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
1157
|
-
'skillId'?: string | undefined | null;
|
|
1158
|
-
'isMe': boolean;
|
|
1159
|
-
'isSprucebot': boolean;
|
|
1160
|
-
}
|
|
1161
|
-
interface FeedItemTargetSchema extends SpruceSchema.Schema {
|
|
1162
|
-
id: 'feedItemTarget';
|
|
1163
|
-
version: 'v2020_07_22';
|
|
1164
|
-
namespace: 'Spruce';
|
|
1165
|
-
name: '';
|
|
1166
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1167
|
-
fields: {
|
|
1168
|
-
/** . */
|
|
1169
|
-
'personId': {
|
|
1170
|
-
type: 'id';
|
|
1171
|
-
options: undefined;
|
|
1172
|
-
};
|
|
1173
|
-
/** . */
|
|
1174
|
-
'casualName': {
|
|
1175
|
-
type: 'text';
|
|
1176
|
-
isRequired: true;
|
|
1177
|
-
options: undefined;
|
|
1178
|
-
};
|
|
1179
|
-
/** . */
|
|
1180
|
-
'avatar': {
|
|
1181
|
-
type: 'image';
|
|
1182
|
-
options: {
|
|
1183
|
-
requiredSizes: ["*"];
|
|
1184
|
-
};
|
|
1185
|
-
};
|
|
1186
|
-
/** . */
|
|
1187
|
-
'skillId': {
|
|
1188
|
-
type: 'id';
|
|
1189
|
-
options: undefined;
|
|
1190
|
-
};
|
|
1191
|
-
/** . */
|
|
1192
|
-
'isMe': {
|
|
1193
|
-
type: 'boolean';
|
|
1194
|
-
isRequired: true;
|
|
1195
|
-
options: undefined;
|
|
1196
|
-
};
|
|
1197
|
-
/** . */
|
|
1198
|
-
'isSprucebot': {
|
|
1199
|
-
type: 'boolean';
|
|
1200
|
-
isRequired: true;
|
|
1201
|
-
options: undefined;
|
|
1202
|
-
};
|
|
1203
|
-
};
|
|
1204
|
-
}
|
|
1205
|
-
type FeedItemTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema>;
|
|
1206
|
-
}
|
|
1207
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1208
|
-
interface Choice {
|
|
1209
|
-
'value': (string | number);
|
|
1210
|
-
'label': string;
|
|
1211
|
-
}
|
|
1212
|
-
interface ChoiceSchema extends SpruceSchema.Schema {
|
|
1213
|
-
id: 'choice';
|
|
1214
|
-
version: 'v2020_07_22';
|
|
1215
|
-
namespace: 'Spruce';
|
|
1216
|
-
name: '';
|
|
1217
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1218
|
-
fields: {
|
|
1219
|
-
/** . */
|
|
1220
|
-
'value': {
|
|
1221
|
-
type: 'raw';
|
|
1222
|
-
isRequired: true;
|
|
1223
|
-
options: {
|
|
1224
|
-
valueType: `string | number`;
|
|
1225
|
-
};
|
|
1226
|
-
};
|
|
1227
|
-
/** . */
|
|
1228
|
-
'label': {
|
|
1229
|
-
type: 'text';
|
|
1230
|
-
isRequired: true;
|
|
1231
|
-
options: undefined;
|
|
1232
|
-
};
|
|
1233
|
-
};
|
|
1234
|
-
}
|
|
1235
|
-
type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
|
|
1236
|
-
}
|
|
1237
1152
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1238
1153
|
/** A discrete communication between two humans or a human and a machine. */
|
|
1239
1154
|
interface Message {
|
|
@@ -1399,6 +1314,91 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1399
1314
|
}
|
|
1400
1315
|
type MessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageSchema>;
|
|
1401
1316
|
}
|
|
1317
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1318
|
+
interface FeedItemTarget {
|
|
1319
|
+
'personId'?: string | undefined | null;
|
|
1320
|
+
'casualName': string;
|
|
1321
|
+
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
1322
|
+
'skillId'?: string | undefined | null;
|
|
1323
|
+
'isMe': boolean;
|
|
1324
|
+
'isSprucebot': boolean;
|
|
1325
|
+
}
|
|
1326
|
+
interface FeedItemTargetSchema extends SpruceSchema.Schema {
|
|
1327
|
+
id: 'feedItemTarget';
|
|
1328
|
+
version: 'v2020_07_22';
|
|
1329
|
+
namespace: 'Spruce';
|
|
1330
|
+
name: '';
|
|
1331
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1332
|
+
fields: {
|
|
1333
|
+
/** . */
|
|
1334
|
+
'personId': {
|
|
1335
|
+
type: 'id';
|
|
1336
|
+
options: undefined;
|
|
1337
|
+
};
|
|
1338
|
+
/** . */
|
|
1339
|
+
'casualName': {
|
|
1340
|
+
type: 'text';
|
|
1341
|
+
isRequired: true;
|
|
1342
|
+
options: undefined;
|
|
1343
|
+
};
|
|
1344
|
+
/** . */
|
|
1345
|
+
'avatar': {
|
|
1346
|
+
type: 'image';
|
|
1347
|
+
options: {
|
|
1348
|
+
requiredSizes: ["*"];
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
/** . */
|
|
1352
|
+
'skillId': {
|
|
1353
|
+
type: 'id';
|
|
1354
|
+
options: undefined;
|
|
1355
|
+
};
|
|
1356
|
+
/** . */
|
|
1357
|
+
'isMe': {
|
|
1358
|
+
type: 'boolean';
|
|
1359
|
+
isRequired: true;
|
|
1360
|
+
options: undefined;
|
|
1361
|
+
};
|
|
1362
|
+
/** . */
|
|
1363
|
+
'isSprucebot': {
|
|
1364
|
+
type: 'boolean';
|
|
1365
|
+
isRequired: true;
|
|
1366
|
+
options: undefined;
|
|
1367
|
+
};
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
type FeedItemTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema>;
|
|
1371
|
+
}
|
|
1372
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1373
|
+
interface Choice {
|
|
1374
|
+
'value': (string | number);
|
|
1375
|
+
'label': string;
|
|
1376
|
+
}
|
|
1377
|
+
interface ChoiceSchema extends SpruceSchema.Schema {
|
|
1378
|
+
id: 'choice';
|
|
1379
|
+
version: 'v2020_07_22';
|
|
1380
|
+
namespace: 'Spruce';
|
|
1381
|
+
name: '';
|
|
1382
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1383
|
+
fields: {
|
|
1384
|
+
/** . */
|
|
1385
|
+
'value': {
|
|
1386
|
+
type: 'raw';
|
|
1387
|
+
isRequired: true;
|
|
1388
|
+
options: {
|
|
1389
|
+
valueType: `string | number`;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
/** . */
|
|
1393
|
+
'label': {
|
|
1394
|
+
type: 'text';
|
|
1395
|
+
isRequired: true;
|
|
1396
|
+
options: undefined;
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
|
|
1401
|
+
}
|
|
1402
1402
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1403
1403
|
interface FeedItem {
|
|
1404
1404
|
'id': string;
|
|
@@ -1485,11 +1485,38 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
type FeedItemEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema>;
|
|
1487
1487
|
}
|
|
1488
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1489
|
+
interface AgentSource {
|
|
1490
|
+
'personId'?: string | undefined | null;
|
|
1491
|
+
'skillId'?: string | undefined | null;
|
|
1492
|
+
}
|
|
1493
|
+
interface AgentSourceSchema extends SpruceSchema.Schema {
|
|
1494
|
+
id: 'agentSource';
|
|
1495
|
+
version: 'v2020_07_22';
|
|
1496
|
+
namespace: 'Spruce';
|
|
1497
|
+
name: '';
|
|
1498
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1499
|
+
fields: {
|
|
1500
|
+
/** . */
|
|
1501
|
+
'personId': {
|
|
1502
|
+
type: 'id';
|
|
1503
|
+
options: undefined;
|
|
1504
|
+
};
|
|
1505
|
+
/** . */
|
|
1506
|
+
'skillId': {
|
|
1507
|
+
type: 'id';
|
|
1508
|
+
options: undefined;
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
type AgentSourceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.AgentSourceSchema>;
|
|
1513
|
+
}
|
|
1488
1514
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1489
1515
|
interface Agent {
|
|
1490
1516
|
'id': string;
|
|
1491
1517
|
'name': string;
|
|
1492
1518
|
'systemPrompt': string;
|
|
1519
|
+
'source'?: SpruceSchemas.Spruce.v2020_07_22.AgentSource | undefined | null;
|
|
1493
1520
|
}
|
|
1494
1521
|
interface AgentSchema extends SpruceSchema.Schema {
|
|
1495
1522
|
id: 'agent';
|
|
@@ -1516,6 +1543,13 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1516
1543
|
isRequired: true;
|
|
1517
1544
|
options: undefined;
|
|
1518
1545
|
};
|
|
1546
|
+
/** . */
|
|
1547
|
+
'source': {
|
|
1548
|
+
type: 'schema';
|
|
1549
|
+
options: {
|
|
1550
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.AgentSourceSchema;
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1519
1553
|
};
|
|
1520
1554
|
}
|
|
1521
1555
|
type AgentEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.AgentSchema>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
+
const agentSource_schema_1 = __importDefault(require("./agentSource.schema"));
|
|
4
8
|
const agentSchema = {
|
|
5
9
|
id: 'agent',
|
|
6
10
|
version: 'v2020_07_22',
|
|
@@ -26,6 +30,11 @@ const agentSchema = {
|
|
|
26
30
|
isRequired: true,
|
|
27
31
|
options: undefined
|
|
28
32
|
},
|
|
33
|
+
/** . */
|
|
34
|
+
'source': {
|
|
35
|
+
type: 'schema',
|
|
36
|
+
options: { schema: agentSource_schema_1.default, }
|
|
37
|
+
},
|
|
29
38
|
}
|
|
30
39
|
};
|
|
31
40
|
schema_1.SchemaRegistry.getInstance().trackSchema(agentSchema);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const agentSourceSchema = {
|
|
5
|
+
id: 'agentSource',
|
|
6
|
+
version: 'v2020_07_22',
|
|
7
|
+
namespace: 'Spruce',
|
|
8
|
+
name: '',
|
|
9
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
|
|
10
|
+
fields: {
|
|
11
|
+
/** . */
|
|
12
|
+
'personId': {
|
|
13
|
+
type: 'id',
|
|
14
|
+
options: undefined
|
|
15
|
+
},
|
|
16
|
+
/** . */
|
|
17
|
+
'skillId': {
|
|
18
|
+
type: 'id',
|
|
19
|
+
options: undefined
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(agentSourceSchema);
|
|
24
|
+
exports.default = agentSourceSchema;
|
|
@@ -1149,91 +1149,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
type LinkEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.LinkSchema>;
|
|
1151
1151
|
}
|
|
1152
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1153
|
-
interface FeedItemTarget {
|
|
1154
|
-
'personId'?: string | undefined | null;
|
|
1155
|
-
'casualName': string;
|
|
1156
|
-
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
1157
|
-
'skillId'?: string | undefined | null;
|
|
1158
|
-
'isMe': boolean;
|
|
1159
|
-
'isSprucebot': boolean;
|
|
1160
|
-
}
|
|
1161
|
-
interface FeedItemTargetSchema extends SpruceSchema.Schema {
|
|
1162
|
-
id: 'feedItemTarget';
|
|
1163
|
-
version: 'v2020_07_22';
|
|
1164
|
-
namespace: 'Spruce';
|
|
1165
|
-
name: '';
|
|
1166
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1167
|
-
fields: {
|
|
1168
|
-
/** . */
|
|
1169
|
-
'personId': {
|
|
1170
|
-
type: 'id';
|
|
1171
|
-
options: undefined;
|
|
1172
|
-
};
|
|
1173
|
-
/** . */
|
|
1174
|
-
'casualName': {
|
|
1175
|
-
type: 'text';
|
|
1176
|
-
isRequired: true;
|
|
1177
|
-
options: undefined;
|
|
1178
|
-
};
|
|
1179
|
-
/** . */
|
|
1180
|
-
'avatar': {
|
|
1181
|
-
type: 'image';
|
|
1182
|
-
options: {
|
|
1183
|
-
requiredSizes: ["*"];
|
|
1184
|
-
};
|
|
1185
|
-
};
|
|
1186
|
-
/** . */
|
|
1187
|
-
'skillId': {
|
|
1188
|
-
type: 'id';
|
|
1189
|
-
options: undefined;
|
|
1190
|
-
};
|
|
1191
|
-
/** . */
|
|
1192
|
-
'isMe': {
|
|
1193
|
-
type: 'boolean';
|
|
1194
|
-
isRequired: true;
|
|
1195
|
-
options: undefined;
|
|
1196
|
-
};
|
|
1197
|
-
/** . */
|
|
1198
|
-
'isSprucebot': {
|
|
1199
|
-
type: 'boolean';
|
|
1200
|
-
isRequired: true;
|
|
1201
|
-
options: undefined;
|
|
1202
|
-
};
|
|
1203
|
-
};
|
|
1204
|
-
}
|
|
1205
|
-
type FeedItemTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema>;
|
|
1206
|
-
}
|
|
1207
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1208
|
-
interface Choice {
|
|
1209
|
-
'value': (string | number);
|
|
1210
|
-
'label': string;
|
|
1211
|
-
}
|
|
1212
|
-
interface ChoiceSchema extends SpruceSchema.Schema {
|
|
1213
|
-
id: 'choice';
|
|
1214
|
-
version: 'v2020_07_22';
|
|
1215
|
-
namespace: 'Spruce';
|
|
1216
|
-
name: '';
|
|
1217
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1218
|
-
fields: {
|
|
1219
|
-
/** . */
|
|
1220
|
-
'value': {
|
|
1221
|
-
type: 'raw';
|
|
1222
|
-
isRequired: true;
|
|
1223
|
-
options: {
|
|
1224
|
-
valueType: `string | number`;
|
|
1225
|
-
};
|
|
1226
|
-
};
|
|
1227
|
-
/** . */
|
|
1228
|
-
'label': {
|
|
1229
|
-
type: 'text';
|
|
1230
|
-
isRequired: true;
|
|
1231
|
-
options: undefined;
|
|
1232
|
-
};
|
|
1233
|
-
};
|
|
1234
|
-
}
|
|
1235
|
-
type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
|
|
1236
|
-
}
|
|
1237
1152
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1238
1153
|
/** A discrete communication between two humans or a human and a machine. */
|
|
1239
1154
|
interface Message {
|
|
@@ -1399,6 +1314,91 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1399
1314
|
}
|
|
1400
1315
|
type MessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageSchema>;
|
|
1401
1316
|
}
|
|
1317
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1318
|
+
interface FeedItemTarget {
|
|
1319
|
+
'personId'?: string | undefined | null;
|
|
1320
|
+
'casualName': string;
|
|
1321
|
+
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
1322
|
+
'skillId'?: string | undefined | null;
|
|
1323
|
+
'isMe': boolean;
|
|
1324
|
+
'isSprucebot': boolean;
|
|
1325
|
+
}
|
|
1326
|
+
interface FeedItemTargetSchema extends SpruceSchema.Schema {
|
|
1327
|
+
id: 'feedItemTarget';
|
|
1328
|
+
version: 'v2020_07_22';
|
|
1329
|
+
namespace: 'Spruce';
|
|
1330
|
+
name: '';
|
|
1331
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1332
|
+
fields: {
|
|
1333
|
+
/** . */
|
|
1334
|
+
'personId': {
|
|
1335
|
+
type: 'id';
|
|
1336
|
+
options: undefined;
|
|
1337
|
+
};
|
|
1338
|
+
/** . */
|
|
1339
|
+
'casualName': {
|
|
1340
|
+
type: 'text';
|
|
1341
|
+
isRequired: true;
|
|
1342
|
+
options: undefined;
|
|
1343
|
+
};
|
|
1344
|
+
/** . */
|
|
1345
|
+
'avatar': {
|
|
1346
|
+
type: 'image';
|
|
1347
|
+
options: {
|
|
1348
|
+
requiredSizes: ["*"];
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
/** . */
|
|
1352
|
+
'skillId': {
|
|
1353
|
+
type: 'id';
|
|
1354
|
+
options: undefined;
|
|
1355
|
+
};
|
|
1356
|
+
/** . */
|
|
1357
|
+
'isMe': {
|
|
1358
|
+
type: 'boolean';
|
|
1359
|
+
isRequired: true;
|
|
1360
|
+
options: undefined;
|
|
1361
|
+
};
|
|
1362
|
+
/** . */
|
|
1363
|
+
'isSprucebot': {
|
|
1364
|
+
type: 'boolean';
|
|
1365
|
+
isRequired: true;
|
|
1366
|
+
options: undefined;
|
|
1367
|
+
};
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
type FeedItemTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemTargetSchema>;
|
|
1371
|
+
}
|
|
1372
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1373
|
+
interface Choice {
|
|
1374
|
+
'value': (string | number);
|
|
1375
|
+
'label': string;
|
|
1376
|
+
}
|
|
1377
|
+
interface ChoiceSchema extends SpruceSchema.Schema {
|
|
1378
|
+
id: 'choice';
|
|
1379
|
+
version: 'v2020_07_22';
|
|
1380
|
+
namespace: 'Spruce';
|
|
1381
|
+
name: '';
|
|
1382
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1383
|
+
fields: {
|
|
1384
|
+
/** . */
|
|
1385
|
+
'value': {
|
|
1386
|
+
type: 'raw';
|
|
1387
|
+
isRequired: true;
|
|
1388
|
+
options: {
|
|
1389
|
+
valueType: `string | number`;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
/** . */
|
|
1393
|
+
'label': {
|
|
1394
|
+
type: 'text';
|
|
1395
|
+
isRequired: true;
|
|
1396
|
+
options: undefined;
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
|
|
1401
|
+
}
|
|
1402
1402
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1403
1403
|
interface FeedItem {
|
|
1404
1404
|
'id': string;
|
|
@@ -1485,11 +1485,38 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
type FeedItemEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema>;
|
|
1487
1487
|
}
|
|
1488
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1489
|
+
interface AgentSource {
|
|
1490
|
+
'personId'?: string | undefined | null;
|
|
1491
|
+
'skillId'?: string | undefined | null;
|
|
1492
|
+
}
|
|
1493
|
+
interface AgentSourceSchema extends SpruceSchema.Schema {
|
|
1494
|
+
id: 'agentSource';
|
|
1495
|
+
version: 'v2020_07_22';
|
|
1496
|
+
namespace: 'Spruce';
|
|
1497
|
+
name: '';
|
|
1498
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1499
|
+
fields: {
|
|
1500
|
+
/** . */
|
|
1501
|
+
'personId': {
|
|
1502
|
+
type: 'id';
|
|
1503
|
+
options: undefined;
|
|
1504
|
+
};
|
|
1505
|
+
/** . */
|
|
1506
|
+
'skillId': {
|
|
1507
|
+
type: 'id';
|
|
1508
|
+
options: undefined;
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
type AgentSourceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.AgentSourceSchema>;
|
|
1513
|
+
}
|
|
1488
1514
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1489
1515
|
interface Agent {
|
|
1490
1516
|
'id': string;
|
|
1491
1517
|
'name': string;
|
|
1492
1518
|
'systemPrompt': string;
|
|
1519
|
+
'source'?: SpruceSchemas.Spruce.v2020_07_22.AgentSource | undefined | null;
|
|
1493
1520
|
}
|
|
1494
1521
|
interface AgentSchema extends SpruceSchema.Schema {
|
|
1495
1522
|
id: 'agent';
|
|
@@ -1516,6 +1543,13 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1516
1543
|
isRequired: true;
|
|
1517
1544
|
options: undefined;
|
|
1518
1545
|
};
|
|
1546
|
+
/** . */
|
|
1547
|
+
'source': {
|
|
1548
|
+
type: 'schema';
|
|
1549
|
+
options: {
|
|
1550
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.AgentSourceSchema;
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1519
1553
|
};
|
|
1520
1554
|
}
|
|
1521
1555
|
type AgentEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.AgentSchema>;
|
|
@@ -14,6 +14,22 @@ declare const _default: {
|
|
|
14
14
|
type: "text";
|
|
15
15
|
isRequired: true;
|
|
16
16
|
};
|
|
17
|
+
source: {
|
|
18
|
+
type: "schema";
|
|
19
|
+
options: {
|
|
20
|
+
schema: {
|
|
21
|
+
id: string;
|
|
22
|
+
fields: {
|
|
23
|
+
personId: {
|
|
24
|
+
type: "id";
|
|
25
|
+
};
|
|
26
|
+
skillId: {
|
|
27
|
+
type: "id";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
17
33
|
};
|
|
18
34
|
};
|
|
19
35
|
export default _default;
|
|
@@ -15,5 +15,21 @@ export default buildSchema({
|
|
|
15
15
|
type: 'text',
|
|
16
16
|
isRequired: true,
|
|
17
17
|
},
|
|
18
|
+
source: {
|
|
19
|
+
type: 'schema',
|
|
20
|
+
options: {
|
|
21
|
+
schema: buildSchema({
|
|
22
|
+
id: 'agentSource',
|
|
23
|
+
fields: {
|
|
24
|
+
personId: {
|
|
25
|
+
type: 'id',
|
|
26
|
+
},
|
|
27
|
+
skillId: {
|
|
28
|
+
type: 'id',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
}),
|
|
32
|
+
},
|
|
33
|
+
},
|
|
18
34
|
},
|
|
19
35
|
});
|
|
@@ -14,6 +14,22 @@ declare const _default: {
|
|
|
14
14
|
type: "text";
|
|
15
15
|
isRequired: true;
|
|
16
16
|
};
|
|
17
|
+
source: {
|
|
18
|
+
type: "schema";
|
|
19
|
+
options: {
|
|
20
|
+
schema: {
|
|
21
|
+
id: string;
|
|
22
|
+
fields: {
|
|
23
|
+
personId: {
|
|
24
|
+
type: "id";
|
|
25
|
+
};
|
|
26
|
+
skillId: {
|
|
27
|
+
type: "id";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
17
33
|
};
|
|
18
34
|
};
|
|
19
35
|
export default _default;
|
|
@@ -17,5 +17,21 @@ exports.default = (0, schema_1.buildSchema)({
|
|
|
17
17
|
type: 'text',
|
|
18
18
|
isRequired: true,
|
|
19
19
|
},
|
|
20
|
+
source: {
|
|
21
|
+
type: 'schema',
|
|
22
|
+
options: {
|
|
23
|
+
schema: (0, schema_1.buildSchema)({
|
|
24
|
+
id: 'agentSource',
|
|
25
|
+
fields: {
|
|
26
|
+
personId: {
|
|
27
|
+
type: 'id',
|
|
28
|
+
},
|
|
29
|
+
skillId: {
|
|
30
|
+
type: 'id',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
}),
|
|
34
|
+
},
|
|
35
|
+
},
|
|
20
36
|
},
|
|
21
37
|
});
|