@sprucelabs/spruce-core-schemas 41.2.0 → 41.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/.spruce/schemas/core.schemas.types.d.ts +204 -169
- package/build/.spruce/schemas/spruce/v2020_07_22/agent.schema.d.ts +3 -0
- package/build/.spruce/schemas/spruce/v2020_07_22/agent.schema.js +32 -0
- package/build/esm/.spruce/schemas/core.schemas.types.d.ts +204 -169
- package/build/esm/schemas/v2020_07_22/agent.builder.d.ts +19 -0
- package/build/esm/schemas/v2020_07_22/agent.builder.js +19 -0
- package/build/schemas/v2020_07_22/agent.builder.d.ts +19 -0
- package/build/schemas/v2020_07_22/agent.builder.js +21 -0
- package/package.json +9 -8
|
@@ -133,6 +133,146 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
133
133
|
}
|
|
134
134
|
type SkillEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SkillSchema>;
|
|
135
135
|
}
|
|
136
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
137
|
+
interface SendMessage {
|
|
138
|
+
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
139
|
+
'trackingId'?: string | undefined | null;
|
|
140
|
+
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
141
|
+
'inReplyToMessageId'?: string | undefined | null;
|
|
142
|
+
'dateSent'?: number | undefined | null;
|
|
143
|
+
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
144
|
+
'errors'?: string[] | undefined | null;
|
|
145
|
+
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
146
|
+
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
147
|
+
'body': string;
|
|
148
|
+
'context'?: (Record<string, any>) | undefined | null;
|
|
149
|
+
'topicId'?: string | undefined | null;
|
|
150
|
+
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
151
|
+
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
152
|
+
}
|
|
153
|
+
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
154
|
+
id: 'sendMessage';
|
|
155
|
+
version: 'v2020_07_22';
|
|
156
|
+
namespace: 'Spruce';
|
|
157
|
+
name: '';
|
|
158
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
159
|
+
fields: {
|
|
160
|
+
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
161
|
+
'trackingId': {
|
|
162
|
+
type: 'id';
|
|
163
|
+
hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.';
|
|
164
|
+
options: undefined;
|
|
165
|
+
};
|
|
166
|
+
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
167
|
+
'inReplyToMessageId': {
|
|
168
|
+
type: 'id';
|
|
169
|
+
hint: 'If this message is a reply to another message, this is the id of that original message.';
|
|
170
|
+
options: undefined;
|
|
171
|
+
};
|
|
172
|
+
/** . */
|
|
173
|
+
'dateSent': {
|
|
174
|
+
type: 'number';
|
|
175
|
+
options: undefined;
|
|
176
|
+
};
|
|
177
|
+
/** . */
|
|
178
|
+
'target': {
|
|
179
|
+
type: 'schema';
|
|
180
|
+
isRequired: true;
|
|
181
|
+
options: {
|
|
182
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
/** . */
|
|
186
|
+
'errors': {
|
|
187
|
+
type: 'text';
|
|
188
|
+
isPrivate: true;
|
|
189
|
+
isArray: true;
|
|
190
|
+
options: undefined;
|
|
191
|
+
};
|
|
192
|
+
/** . */
|
|
193
|
+
'classification': {
|
|
194
|
+
type: 'select';
|
|
195
|
+
isRequired: true;
|
|
196
|
+
options: {
|
|
197
|
+
choices: [{
|
|
198
|
+
"value": "auth";
|
|
199
|
+
"label": "Auth";
|
|
200
|
+
}, {
|
|
201
|
+
"value": "transactional";
|
|
202
|
+
"label": "transactional";
|
|
203
|
+
}, {
|
|
204
|
+
"value": "promotional";
|
|
205
|
+
"label": "Promotional";
|
|
206
|
+
}, {
|
|
207
|
+
"value": "incoming";
|
|
208
|
+
"label": "incoming";
|
|
209
|
+
}];
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
/** . */
|
|
213
|
+
'status': {
|
|
214
|
+
type: 'select';
|
|
215
|
+
isPrivate: true;
|
|
216
|
+
defaultValue: "pending";
|
|
217
|
+
options: {
|
|
218
|
+
choices: [{
|
|
219
|
+
"value": "pending";
|
|
220
|
+
"label": "Pending";
|
|
221
|
+
}, {
|
|
222
|
+
"value": "processing";
|
|
223
|
+
"label": "Processing";
|
|
224
|
+
}, {
|
|
225
|
+
"value": "sent";
|
|
226
|
+
"label": "Sent";
|
|
227
|
+
}, {
|
|
228
|
+
"value": "failed";
|
|
229
|
+
"label": "Failed";
|
|
230
|
+
}, {
|
|
231
|
+
"value": "ignored";
|
|
232
|
+
"label": "Ignored";
|
|
233
|
+
}];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
/** . */
|
|
237
|
+
'body': {
|
|
238
|
+
type: 'text';
|
|
239
|
+
isRequired: true;
|
|
240
|
+
options: undefined;
|
|
241
|
+
};
|
|
242
|
+
/** . */
|
|
243
|
+
'context': {
|
|
244
|
+
type: 'raw';
|
|
245
|
+
isPrivate: true;
|
|
246
|
+
options: {
|
|
247
|
+
valueType: `Record<string, any>`;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
/** . */
|
|
251
|
+
'topicId': {
|
|
252
|
+
type: 'id';
|
|
253
|
+
options: undefined;
|
|
254
|
+
};
|
|
255
|
+
/** . */
|
|
256
|
+
'links': {
|
|
257
|
+
type: 'schema';
|
|
258
|
+
isArray: true;
|
|
259
|
+
minArrayLength: 0;
|
|
260
|
+
options: {
|
|
261
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
/** . */
|
|
265
|
+
'choices': {
|
|
266
|
+
type: 'schema';
|
|
267
|
+
isArray: true;
|
|
268
|
+
options: {
|
|
269
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
275
|
+
}
|
|
136
276
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
137
277
|
/** Every role in Spruce inherits from 5 bases. Anon, Logged in (person not associated with any org), Org Owner, Group Manager, Manager, Teammate, and Guest. */
|
|
138
278
|
interface Role {
|
|
@@ -743,171 +883,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
743
883
|
}
|
|
744
884
|
type MessageTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema>;
|
|
745
885
|
}
|
|
746
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
747
|
-
/** A discrete communication between two humans or a human and a machine. */
|
|
748
|
-
interface Message {
|
|
749
|
-
'id': string;
|
|
750
|
-
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
751
|
-
'trackingId'?: string | undefined | null;
|
|
752
|
-
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
753
|
-
'inReplyToMessageId'?: string | undefined | null;
|
|
754
|
-
'dateCreated': number;
|
|
755
|
-
'dateSent'?: number | undefined | null;
|
|
756
|
-
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
757
|
-
'source': SpruceSchemas.Spruce.v2020_07_22.MessageSource;
|
|
758
|
-
'errors'?: string[] | undefined | null;
|
|
759
|
-
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
760
|
-
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
761
|
-
'body': string;
|
|
762
|
-
'context'?: (Record<string, any>) | undefined | null;
|
|
763
|
-
'topicId'?: string | undefined | null;
|
|
764
|
-
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
765
|
-
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
766
|
-
}
|
|
767
|
-
interface MessageSchema extends SpruceSchema.Schema {
|
|
768
|
-
id: 'message';
|
|
769
|
-
version: 'v2020_07_22';
|
|
770
|
-
namespace: 'Spruce';
|
|
771
|
-
name: '';
|
|
772
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
773
|
-
description: 'A discrete communication between two humans or a human and a machine.';
|
|
774
|
-
fields: {
|
|
775
|
-
/** . */
|
|
776
|
-
'id': {
|
|
777
|
-
type: 'id';
|
|
778
|
-
isRequired: true;
|
|
779
|
-
options: undefined;
|
|
780
|
-
};
|
|
781
|
-
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
782
|
-
'trackingId': {
|
|
783
|
-
type: 'id';
|
|
784
|
-
hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.';
|
|
785
|
-
options: undefined;
|
|
786
|
-
};
|
|
787
|
-
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
788
|
-
'inReplyToMessageId': {
|
|
789
|
-
type: 'id';
|
|
790
|
-
hint: 'If this message is a reply to another message, this is the id of that original message.';
|
|
791
|
-
options: undefined;
|
|
792
|
-
};
|
|
793
|
-
/** . */
|
|
794
|
-
'dateCreated': {
|
|
795
|
-
type: 'number';
|
|
796
|
-
isRequired: true;
|
|
797
|
-
options: undefined;
|
|
798
|
-
};
|
|
799
|
-
/** . */
|
|
800
|
-
'dateSent': {
|
|
801
|
-
type: 'number';
|
|
802
|
-
options: undefined;
|
|
803
|
-
};
|
|
804
|
-
/** . */
|
|
805
|
-
'target': {
|
|
806
|
-
type: 'schema';
|
|
807
|
-
isRequired: true;
|
|
808
|
-
options: {
|
|
809
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
810
|
-
};
|
|
811
|
-
};
|
|
812
|
-
/** . */
|
|
813
|
-
'source': {
|
|
814
|
-
type: 'schema';
|
|
815
|
-
isRequired: true;
|
|
816
|
-
options: {
|
|
817
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.MessageSourceSchema;
|
|
818
|
-
};
|
|
819
|
-
};
|
|
820
|
-
/** . */
|
|
821
|
-
'errors': {
|
|
822
|
-
type: 'text';
|
|
823
|
-
isPrivate: true;
|
|
824
|
-
isArray: true;
|
|
825
|
-
options: undefined;
|
|
826
|
-
};
|
|
827
|
-
/** . */
|
|
828
|
-
'classification': {
|
|
829
|
-
type: 'select';
|
|
830
|
-
isRequired: true;
|
|
831
|
-
options: {
|
|
832
|
-
choices: [{
|
|
833
|
-
"value": "auth";
|
|
834
|
-
"label": "Auth";
|
|
835
|
-
}, {
|
|
836
|
-
"value": "transactional";
|
|
837
|
-
"label": "transactional";
|
|
838
|
-
}, {
|
|
839
|
-
"value": "promotional";
|
|
840
|
-
"label": "Promotional";
|
|
841
|
-
}, {
|
|
842
|
-
"value": "incoming";
|
|
843
|
-
"label": "incoming";
|
|
844
|
-
}];
|
|
845
|
-
};
|
|
846
|
-
};
|
|
847
|
-
/** . */
|
|
848
|
-
'status': {
|
|
849
|
-
type: 'select';
|
|
850
|
-
isPrivate: true;
|
|
851
|
-
defaultValue: "pending";
|
|
852
|
-
options: {
|
|
853
|
-
choices: [{
|
|
854
|
-
"value": "pending";
|
|
855
|
-
"label": "Pending";
|
|
856
|
-
}, {
|
|
857
|
-
"value": "processing";
|
|
858
|
-
"label": "Processing";
|
|
859
|
-
}, {
|
|
860
|
-
"value": "sent";
|
|
861
|
-
"label": "Sent";
|
|
862
|
-
}, {
|
|
863
|
-
"value": "failed";
|
|
864
|
-
"label": "Failed";
|
|
865
|
-
}, {
|
|
866
|
-
"value": "ignored";
|
|
867
|
-
"label": "Ignored";
|
|
868
|
-
}];
|
|
869
|
-
};
|
|
870
|
-
};
|
|
871
|
-
/** . */
|
|
872
|
-
'body': {
|
|
873
|
-
type: 'text';
|
|
874
|
-
isRequired: true;
|
|
875
|
-
options: undefined;
|
|
876
|
-
};
|
|
877
|
-
/** . */
|
|
878
|
-
'context': {
|
|
879
|
-
type: 'raw';
|
|
880
|
-
isPrivate: true;
|
|
881
|
-
options: {
|
|
882
|
-
valueType: `Record<string, any>`;
|
|
883
|
-
};
|
|
884
|
-
};
|
|
885
|
-
/** . */
|
|
886
|
-
'topicId': {
|
|
887
|
-
type: 'id';
|
|
888
|
-
options: undefined;
|
|
889
|
-
};
|
|
890
|
-
/** . */
|
|
891
|
-
'links': {
|
|
892
|
-
type: 'schema';
|
|
893
|
-
isArray: true;
|
|
894
|
-
minArrayLength: 0;
|
|
895
|
-
options: {
|
|
896
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
897
|
-
};
|
|
898
|
-
};
|
|
899
|
-
/** . */
|
|
900
|
-
'choices': {
|
|
901
|
-
type: 'schema';
|
|
902
|
-
isArray: true;
|
|
903
|
-
options: {
|
|
904
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
|
|
905
|
-
};
|
|
906
|
-
};
|
|
907
|
-
};
|
|
908
|
-
}
|
|
909
|
-
type MessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageSchema>;
|
|
910
|
-
}
|
|
911
886
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
912
887
|
/** A physical location where people meet. An organization has at least one of them. */
|
|
913
888
|
interface Location {
|
|
@@ -1260,13 +1235,17 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1260
1235
|
type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
|
|
1261
1236
|
}
|
|
1262
1237
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1263
|
-
|
|
1238
|
+
/** A discrete communication between two humans or a human and a machine. */
|
|
1239
|
+
interface Message {
|
|
1240
|
+
'id': string;
|
|
1264
1241
|
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
1265
1242
|
'trackingId'?: string | undefined | null;
|
|
1266
1243
|
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
1267
1244
|
'inReplyToMessageId'?: string | undefined | null;
|
|
1245
|
+
'dateCreated': number;
|
|
1268
1246
|
'dateSent'?: number | undefined | null;
|
|
1269
1247
|
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
1248
|
+
'source': SpruceSchemas.Spruce.v2020_07_22.MessageSource;
|
|
1270
1249
|
'errors'?: string[] | undefined | null;
|
|
1271
1250
|
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
1272
1251
|
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
@@ -1276,13 +1255,20 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1276
1255
|
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
1277
1256
|
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
1278
1257
|
}
|
|
1279
|
-
interface
|
|
1280
|
-
id: '
|
|
1258
|
+
interface MessageSchema extends SpruceSchema.Schema {
|
|
1259
|
+
id: 'message';
|
|
1281
1260
|
version: 'v2020_07_22';
|
|
1282
1261
|
namespace: 'Spruce';
|
|
1283
1262
|
name: '';
|
|
1284
1263
|
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1264
|
+
description: 'A discrete communication between two humans or a human and a machine.';
|
|
1285
1265
|
fields: {
|
|
1266
|
+
/** . */
|
|
1267
|
+
'id': {
|
|
1268
|
+
type: 'id';
|
|
1269
|
+
isRequired: true;
|
|
1270
|
+
options: undefined;
|
|
1271
|
+
};
|
|
1286
1272
|
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
1287
1273
|
'trackingId': {
|
|
1288
1274
|
type: 'id';
|
|
@@ -1296,6 +1282,12 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1296
1282
|
options: undefined;
|
|
1297
1283
|
};
|
|
1298
1284
|
/** . */
|
|
1285
|
+
'dateCreated': {
|
|
1286
|
+
type: 'number';
|
|
1287
|
+
isRequired: true;
|
|
1288
|
+
options: undefined;
|
|
1289
|
+
};
|
|
1290
|
+
/** . */
|
|
1299
1291
|
'dateSent': {
|
|
1300
1292
|
type: 'number';
|
|
1301
1293
|
options: undefined;
|
|
@@ -1309,6 +1301,14 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1309
1301
|
};
|
|
1310
1302
|
};
|
|
1311
1303
|
/** . */
|
|
1304
|
+
'source': {
|
|
1305
|
+
type: 'schema';
|
|
1306
|
+
isRequired: true;
|
|
1307
|
+
options: {
|
|
1308
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.MessageSourceSchema;
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
/** . */
|
|
1312
1312
|
'errors': {
|
|
1313
1313
|
type: 'text';
|
|
1314
1314
|
isPrivate: true;
|
|
@@ -1397,7 +1397,7 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1397
1397
|
};
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
type
|
|
1400
|
+
type MessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageSchema>;
|
|
1401
1401
|
}
|
|
1402
1402
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1403
1403
|
interface FeedItem {
|
|
@@ -1485,3 +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 Agent {
|
|
1490
|
+
'id': string;
|
|
1491
|
+
'name': string;
|
|
1492
|
+
'systemPrompt': string;
|
|
1493
|
+
}
|
|
1494
|
+
interface AgentSchema extends SpruceSchema.Schema {
|
|
1495
|
+
id: 'agent';
|
|
1496
|
+
version: 'v2020_07_22';
|
|
1497
|
+
namespace: 'Spruce';
|
|
1498
|
+
name: 'Agent';
|
|
1499
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1500
|
+
fields: {
|
|
1501
|
+
/** . */
|
|
1502
|
+
'id': {
|
|
1503
|
+
type: 'id';
|
|
1504
|
+
isRequired: true;
|
|
1505
|
+
options: undefined;
|
|
1506
|
+
};
|
|
1507
|
+
/** . */
|
|
1508
|
+
'name': {
|
|
1509
|
+
type: 'text';
|
|
1510
|
+
isRequired: true;
|
|
1511
|
+
options: undefined;
|
|
1512
|
+
};
|
|
1513
|
+
/** . */
|
|
1514
|
+
'systemPrompt': {
|
|
1515
|
+
type: 'text';
|
|
1516
|
+
isRequired: true;
|
|
1517
|
+
options: undefined;
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
type AgentEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.AgentSchema>;
|
|
1522
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const agentSchema = {
|
|
5
|
+
id: 'agent',
|
|
6
|
+
version: 'v2020_07_22',
|
|
7
|
+
namespace: 'Spruce',
|
|
8
|
+
name: 'Agent',
|
|
9
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
|
|
10
|
+
fields: {
|
|
11
|
+
/** . */
|
|
12
|
+
'id': {
|
|
13
|
+
type: 'id',
|
|
14
|
+
isRequired: true,
|
|
15
|
+
options: undefined
|
|
16
|
+
},
|
|
17
|
+
/** . */
|
|
18
|
+
'name': {
|
|
19
|
+
type: 'text',
|
|
20
|
+
isRequired: true,
|
|
21
|
+
options: undefined
|
|
22
|
+
},
|
|
23
|
+
/** . */
|
|
24
|
+
'systemPrompt': {
|
|
25
|
+
type: 'text',
|
|
26
|
+
isRequired: true,
|
|
27
|
+
options: undefined
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(agentSchema);
|
|
32
|
+
exports.default = agentSchema;
|
|
@@ -133,6 +133,146 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
133
133
|
}
|
|
134
134
|
type SkillEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SkillSchema>;
|
|
135
135
|
}
|
|
136
|
+
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
137
|
+
interface SendMessage {
|
|
138
|
+
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
139
|
+
'trackingId'?: string | undefined | null;
|
|
140
|
+
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
141
|
+
'inReplyToMessageId'?: string | undefined | null;
|
|
142
|
+
'dateSent'?: number | undefined | null;
|
|
143
|
+
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
144
|
+
'errors'?: string[] | undefined | null;
|
|
145
|
+
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
146
|
+
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
147
|
+
'body': string;
|
|
148
|
+
'context'?: (Record<string, any>) | undefined | null;
|
|
149
|
+
'topicId'?: string | undefined | null;
|
|
150
|
+
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
151
|
+
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
152
|
+
}
|
|
153
|
+
interface SendMessageSchema extends SpruceSchema.Schema {
|
|
154
|
+
id: 'sendMessage';
|
|
155
|
+
version: 'v2020_07_22';
|
|
156
|
+
namespace: 'Spruce';
|
|
157
|
+
name: '';
|
|
158
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
159
|
+
fields: {
|
|
160
|
+
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
161
|
+
'trackingId': {
|
|
162
|
+
type: 'id';
|
|
163
|
+
hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.';
|
|
164
|
+
options: undefined;
|
|
165
|
+
};
|
|
166
|
+
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
167
|
+
'inReplyToMessageId': {
|
|
168
|
+
type: 'id';
|
|
169
|
+
hint: 'If this message is a reply to another message, this is the id of that original message.';
|
|
170
|
+
options: undefined;
|
|
171
|
+
};
|
|
172
|
+
/** . */
|
|
173
|
+
'dateSent': {
|
|
174
|
+
type: 'number';
|
|
175
|
+
options: undefined;
|
|
176
|
+
};
|
|
177
|
+
/** . */
|
|
178
|
+
'target': {
|
|
179
|
+
type: 'schema';
|
|
180
|
+
isRequired: true;
|
|
181
|
+
options: {
|
|
182
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
/** . */
|
|
186
|
+
'errors': {
|
|
187
|
+
type: 'text';
|
|
188
|
+
isPrivate: true;
|
|
189
|
+
isArray: true;
|
|
190
|
+
options: undefined;
|
|
191
|
+
};
|
|
192
|
+
/** . */
|
|
193
|
+
'classification': {
|
|
194
|
+
type: 'select';
|
|
195
|
+
isRequired: true;
|
|
196
|
+
options: {
|
|
197
|
+
choices: [{
|
|
198
|
+
"value": "auth";
|
|
199
|
+
"label": "Auth";
|
|
200
|
+
}, {
|
|
201
|
+
"value": "transactional";
|
|
202
|
+
"label": "transactional";
|
|
203
|
+
}, {
|
|
204
|
+
"value": "promotional";
|
|
205
|
+
"label": "Promotional";
|
|
206
|
+
}, {
|
|
207
|
+
"value": "incoming";
|
|
208
|
+
"label": "incoming";
|
|
209
|
+
}];
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
/** . */
|
|
213
|
+
'status': {
|
|
214
|
+
type: 'select';
|
|
215
|
+
isPrivate: true;
|
|
216
|
+
defaultValue: "pending";
|
|
217
|
+
options: {
|
|
218
|
+
choices: [{
|
|
219
|
+
"value": "pending";
|
|
220
|
+
"label": "Pending";
|
|
221
|
+
}, {
|
|
222
|
+
"value": "processing";
|
|
223
|
+
"label": "Processing";
|
|
224
|
+
}, {
|
|
225
|
+
"value": "sent";
|
|
226
|
+
"label": "Sent";
|
|
227
|
+
}, {
|
|
228
|
+
"value": "failed";
|
|
229
|
+
"label": "Failed";
|
|
230
|
+
}, {
|
|
231
|
+
"value": "ignored";
|
|
232
|
+
"label": "Ignored";
|
|
233
|
+
}];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
/** . */
|
|
237
|
+
'body': {
|
|
238
|
+
type: 'text';
|
|
239
|
+
isRequired: true;
|
|
240
|
+
options: undefined;
|
|
241
|
+
};
|
|
242
|
+
/** . */
|
|
243
|
+
'context': {
|
|
244
|
+
type: 'raw';
|
|
245
|
+
isPrivate: true;
|
|
246
|
+
options: {
|
|
247
|
+
valueType: `Record<string, any>`;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
/** . */
|
|
251
|
+
'topicId': {
|
|
252
|
+
type: 'id';
|
|
253
|
+
options: undefined;
|
|
254
|
+
};
|
|
255
|
+
/** . */
|
|
256
|
+
'links': {
|
|
257
|
+
type: 'schema';
|
|
258
|
+
isArray: true;
|
|
259
|
+
minArrayLength: 0;
|
|
260
|
+
options: {
|
|
261
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
/** . */
|
|
265
|
+
'choices': {
|
|
266
|
+
type: 'schema';
|
|
267
|
+
isArray: true;
|
|
268
|
+
options: {
|
|
269
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
type SendMessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.SendMessageSchema>;
|
|
275
|
+
}
|
|
136
276
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
137
277
|
/** Every role in Spruce inherits from 5 bases. Anon, Logged in (person not associated with any org), Org Owner, Group Manager, Manager, Teammate, and Guest. */
|
|
138
278
|
interface Role {
|
|
@@ -743,171 +883,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
743
883
|
}
|
|
744
884
|
type MessageTargetEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema>;
|
|
745
885
|
}
|
|
746
|
-
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
747
|
-
/** A discrete communication between two humans or a human and a machine. */
|
|
748
|
-
interface Message {
|
|
749
|
-
'id': string;
|
|
750
|
-
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
751
|
-
'trackingId'?: string | undefined | null;
|
|
752
|
-
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
753
|
-
'inReplyToMessageId'?: string | undefined | null;
|
|
754
|
-
'dateCreated': number;
|
|
755
|
-
'dateSent'?: number | undefined | null;
|
|
756
|
-
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
757
|
-
'source': SpruceSchemas.Spruce.v2020_07_22.MessageSource;
|
|
758
|
-
'errors'?: string[] | undefined | null;
|
|
759
|
-
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
760
|
-
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
761
|
-
'body': string;
|
|
762
|
-
'context'?: (Record<string, any>) | undefined | null;
|
|
763
|
-
'topicId'?: string | undefined | null;
|
|
764
|
-
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
765
|
-
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
766
|
-
}
|
|
767
|
-
interface MessageSchema extends SpruceSchema.Schema {
|
|
768
|
-
id: 'message';
|
|
769
|
-
version: 'v2020_07_22';
|
|
770
|
-
namespace: 'Spruce';
|
|
771
|
-
name: '';
|
|
772
|
-
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
773
|
-
description: 'A discrete communication between two humans or a human and a machine.';
|
|
774
|
-
fields: {
|
|
775
|
-
/** . */
|
|
776
|
-
'id': {
|
|
777
|
-
type: 'id';
|
|
778
|
-
isRequired: true;
|
|
779
|
-
options: undefined;
|
|
780
|
-
};
|
|
781
|
-
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
782
|
-
'trackingId': {
|
|
783
|
-
type: 'id';
|
|
784
|
-
hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.';
|
|
785
|
-
options: undefined;
|
|
786
|
-
};
|
|
787
|
-
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
788
|
-
'inReplyToMessageId': {
|
|
789
|
-
type: 'id';
|
|
790
|
-
hint: 'If this message is a reply to another message, this is the id of that original message.';
|
|
791
|
-
options: undefined;
|
|
792
|
-
};
|
|
793
|
-
/** . */
|
|
794
|
-
'dateCreated': {
|
|
795
|
-
type: 'number';
|
|
796
|
-
isRequired: true;
|
|
797
|
-
options: undefined;
|
|
798
|
-
};
|
|
799
|
-
/** . */
|
|
800
|
-
'dateSent': {
|
|
801
|
-
type: 'number';
|
|
802
|
-
options: undefined;
|
|
803
|
-
};
|
|
804
|
-
/** . */
|
|
805
|
-
'target': {
|
|
806
|
-
type: 'schema';
|
|
807
|
-
isRequired: true;
|
|
808
|
-
options: {
|
|
809
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
|
|
810
|
-
};
|
|
811
|
-
};
|
|
812
|
-
/** . */
|
|
813
|
-
'source': {
|
|
814
|
-
type: 'schema';
|
|
815
|
-
isRequired: true;
|
|
816
|
-
options: {
|
|
817
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.MessageSourceSchema;
|
|
818
|
-
};
|
|
819
|
-
};
|
|
820
|
-
/** . */
|
|
821
|
-
'errors': {
|
|
822
|
-
type: 'text';
|
|
823
|
-
isPrivate: true;
|
|
824
|
-
isArray: true;
|
|
825
|
-
options: undefined;
|
|
826
|
-
};
|
|
827
|
-
/** . */
|
|
828
|
-
'classification': {
|
|
829
|
-
type: 'select';
|
|
830
|
-
isRequired: true;
|
|
831
|
-
options: {
|
|
832
|
-
choices: [{
|
|
833
|
-
"value": "auth";
|
|
834
|
-
"label": "Auth";
|
|
835
|
-
}, {
|
|
836
|
-
"value": "transactional";
|
|
837
|
-
"label": "transactional";
|
|
838
|
-
}, {
|
|
839
|
-
"value": "promotional";
|
|
840
|
-
"label": "Promotional";
|
|
841
|
-
}, {
|
|
842
|
-
"value": "incoming";
|
|
843
|
-
"label": "incoming";
|
|
844
|
-
}];
|
|
845
|
-
};
|
|
846
|
-
};
|
|
847
|
-
/** . */
|
|
848
|
-
'status': {
|
|
849
|
-
type: 'select';
|
|
850
|
-
isPrivate: true;
|
|
851
|
-
defaultValue: "pending";
|
|
852
|
-
options: {
|
|
853
|
-
choices: [{
|
|
854
|
-
"value": "pending";
|
|
855
|
-
"label": "Pending";
|
|
856
|
-
}, {
|
|
857
|
-
"value": "processing";
|
|
858
|
-
"label": "Processing";
|
|
859
|
-
}, {
|
|
860
|
-
"value": "sent";
|
|
861
|
-
"label": "Sent";
|
|
862
|
-
}, {
|
|
863
|
-
"value": "failed";
|
|
864
|
-
"label": "Failed";
|
|
865
|
-
}, {
|
|
866
|
-
"value": "ignored";
|
|
867
|
-
"label": "Ignored";
|
|
868
|
-
}];
|
|
869
|
-
};
|
|
870
|
-
};
|
|
871
|
-
/** . */
|
|
872
|
-
'body': {
|
|
873
|
-
type: 'text';
|
|
874
|
-
isRequired: true;
|
|
875
|
-
options: undefined;
|
|
876
|
-
};
|
|
877
|
-
/** . */
|
|
878
|
-
'context': {
|
|
879
|
-
type: 'raw';
|
|
880
|
-
isPrivate: true;
|
|
881
|
-
options: {
|
|
882
|
-
valueType: `Record<string, any>`;
|
|
883
|
-
};
|
|
884
|
-
};
|
|
885
|
-
/** . */
|
|
886
|
-
'topicId': {
|
|
887
|
-
type: 'id';
|
|
888
|
-
options: undefined;
|
|
889
|
-
};
|
|
890
|
-
/** . */
|
|
891
|
-
'links': {
|
|
892
|
-
type: 'schema';
|
|
893
|
-
isArray: true;
|
|
894
|
-
minArrayLength: 0;
|
|
895
|
-
options: {
|
|
896
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
|
|
897
|
-
};
|
|
898
|
-
};
|
|
899
|
-
/** . */
|
|
900
|
-
'choices': {
|
|
901
|
-
type: 'schema';
|
|
902
|
-
isArray: true;
|
|
903
|
-
options: {
|
|
904
|
-
schema: SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema;
|
|
905
|
-
};
|
|
906
|
-
};
|
|
907
|
-
};
|
|
908
|
-
}
|
|
909
|
-
type MessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageSchema>;
|
|
910
|
-
}
|
|
911
886
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
912
887
|
/** A physical location where people meet. An organization has at least one of them. */
|
|
913
888
|
interface Location {
|
|
@@ -1260,13 +1235,17 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1260
1235
|
type ChoiceEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ChoiceSchema>;
|
|
1261
1236
|
}
|
|
1262
1237
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1263
|
-
|
|
1238
|
+
/** A discrete communication between two humans or a human and a machine. */
|
|
1239
|
+
interface Message {
|
|
1240
|
+
'id': string;
|
|
1264
1241
|
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
1265
1242
|
'trackingId'?: string | undefined | null;
|
|
1266
1243
|
/** . If this message is a reply to another message, this is the id of that original message. */
|
|
1267
1244
|
'inReplyToMessageId'?: string | undefined | null;
|
|
1245
|
+
'dateCreated': number;
|
|
1268
1246
|
'dateSent'?: number | undefined | null;
|
|
1269
1247
|
'target': SpruceSchemas.Spruce.v2020_07_22.MessageTarget;
|
|
1248
|
+
'source': SpruceSchemas.Spruce.v2020_07_22.MessageSource;
|
|
1270
1249
|
'errors'?: string[] | undefined | null;
|
|
1271
1250
|
'classification': ("auth" | "transactional" | "promotional" | "incoming");
|
|
1272
1251
|
'status'?: ("pending" | "processing" | "sent" | "failed" | "ignored") | undefined | null;
|
|
@@ -1276,13 +1255,20 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1276
1255
|
'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
|
|
1277
1256
|
'choices'?: SpruceSchemas.Spruce.v2020_07_22.Choice[] | undefined | null;
|
|
1278
1257
|
}
|
|
1279
|
-
interface
|
|
1280
|
-
id: '
|
|
1258
|
+
interface MessageSchema extends SpruceSchema.Schema {
|
|
1259
|
+
id: 'message';
|
|
1281
1260
|
version: 'v2020_07_22';
|
|
1282
1261
|
namespace: 'Spruce';
|
|
1283
1262
|
name: '';
|
|
1284
1263
|
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1264
|
+
description: 'A discrete communication between two humans or a human and a machine.';
|
|
1285
1265
|
fields: {
|
|
1266
|
+
/** . */
|
|
1267
|
+
'id': {
|
|
1268
|
+
type: 'id';
|
|
1269
|
+
isRequired: true;
|
|
1270
|
+
options: undefined;
|
|
1271
|
+
};
|
|
1286
1272
|
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
1287
1273
|
'trackingId': {
|
|
1288
1274
|
type: 'id';
|
|
@@ -1296,6 +1282,12 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1296
1282
|
options: undefined;
|
|
1297
1283
|
};
|
|
1298
1284
|
/** . */
|
|
1285
|
+
'dateCreated': {
|
|
1286
|
+
type: 'number';
|
|
1287
|
+
isRequired: true;
|
|
1288
|
+
options: undefined;
|
|
1289
|
+
};
|
|
1290
|
+
/** . */
|
|
1299
1291
|
'dateSent': {
|
|
1300
1292
|
type: 'number';
|
|
1301
1293
|
options: undefined;
|
|
@@ -1309,6 +1301,14 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1309
1301
|
};
|
|
1310
1302
|
};
|
|
1311
1303
|
/** . */
|
|
1304
|
+
'source': {
|
|
1305
|
+
type: 'schema';
|
|
1306
|
+
isRequired: true;
|
|
1307
|
+
options: {
|
|
1308
|
+
schema: SpruceSchemas.Spruce.v2020_07_22.MessageSourceSchema;
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
/** . */
|
|
1312
1312
|
'errors': {
|
|
1313
1313
|
type: 'text';
|
|
1314
1314
|
isPrivate: true;
|
|
@@ -1397,7 +1397,7 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
|
1397
1397
|
};
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
type
|
|
1400
|
+
type MessageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.MessageSchema>;
|
|
1401
1401
|
}
|
|
1402
1402
|
export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
|
|
1403
1403
|
interface FeedItem {
|
|
@@ -1485,3 +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 Agent {
|
|
1490
|
+
'id': string;
|
|
1491
|
+
'name': string;
|
|
1492
|
+
'systemPrompt': string;
|
|
1493
|
+
}
|
|
1494
|
+
interface AgentSchema extends SpruceSchema.Schema {
|
|
1495
|
+
id: 'agent';
|
|
1496
|
+
version: 'v2020_07_22';
|
|
1497
|
+
namespace: 'Spruce';
|
|
1498
|
+
name: 'Agent';
|
|
1499
|
+
moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
|
|
1500
|
+
fields: {
|
|
1501
|
+
/** . */
|
|
1502
|
+
'id': {
|
|
1503
|
+
type: 'id';
|
|
1504
|
+
isRequired: true;
|
|
1505
|
+
options: undefined;
|
|
1506
|
+
};
|
|
1507
|
+
/** . */
|
|
1508
|
+
'name': {
|
|
1509
|
+
type: 'text';
|
|
1510
|
+
isRequired: true;
|
|
1511
|
+
options: undefined;
|
|
1512
|
+
};
|
|
1513
|
+
/** . */
|
|
1514
|
+
'systemPrompt': {
|
|
1515
|
+
type: 'text';
|
|
1516
|
+
isRequired: true;
|
|
1517
|
+
options: undefined;
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
type AgentEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.AgentSchema>;
|
|
1522
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
fields: {
|
|
5
|
+
id: {
|
|
6
|
+
type: "id";
|
|
7
|
+
isRequired: true;
|
|
8
|
+
};
|
|
9
|
+
name: {
|
|
10
|
+
type: "text";
|
|
11
|
+
isRequired: true;
|
|
12
|
+
};
|
|
13
|
+
systemPrompt: {
|
|
14
|
+
type: "text";
|
|
15
|
+
isRequired: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { buildSchema } from '@sprucelabs/schema';
|
|
2
|
+
export default buildSchema({
|
|
3
|
+
id: 'agent',
|
|
4
|
+
name: 'Agent',
|
|
5
|
+
fields: {
|
|
6
|
+
id: {
|
|
7
|
+
type: 'id',
|
|
8
|
+
isRequired: true,
|
|
9
|
+
},
|
|
10
|
+
name: {
|
|
11
|
+
type: 'text',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
},
|
|
14
|
+
systemPrompt: {
|
|
15
|
+
type: 'text',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
fields: {
|
|
5
|
+
id: {
|
|
6
|
+
type: "id";
|
|
7
|
+
isRequired: true;
|
|
8
|
+
};
|
|
9
|
+
name: {
|
|
10
|
+
type: "text";
|
|
11
|
+
isRequired: true;
|
|
12
|
+
};
|
|
13
|
+
systemPrompt: {
|
|
14
|
+
type: "text";
|
|
15
|
+
isRequired: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
exports.default = (0, schema_1.buildSchema)({
|
|
5
|
+
id: 'agent',
|
|
6
|
+
name: 'Agent',
|
|
7
|
+
fields: {
|
|
8
|
+
id: {
|
|
9
|
+
type: 'id',
|
|
10
|
+
isRequired: true,
|
|
11
|
+
},
|
|
12
|
+
name: {
|
|
13
|
+
type: 'text',
|
|
14
|
+
isRequired: true,
|
|
15
|
+
},
|
|
16
|
+
systemPrompt: {
|
|
17
|
+
type: 'text',
|
|
18
|
+
isRequired: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "41.
|
|
6
|
+
"version": "41.3.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/**/*",
|
|
9
9
|
"tsconfig.json"
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"@sprucelabs/spruce-core-schemas",
|
|
23
23
|
"@sprucelabs/spruce-skill-utils",
|
|
24
24
|
"@sprucelabs/spruce-test-fixtures"
|
|
25
|
-
]
|
|
25
|
+
],
|
|
26
|
+
"version": "v2020_07_22"
|
|
26
27
|
},
|
|
27
28
|
"description": "The schemas that Mercury and all skills use. 🤝",
|
|
28
29
|
"keywords": [
|
|
@@ -60,16 +61,16 @@
|
|
|
60
61
|
"watch.rebuild": "yarn run clean.all && yarn install && yarn run watch.build.dev"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
|
-
"@sprucelabs/schema": "^32.1.
|
|
64
|
+
"@sprucelabs/schema": "^32.1.57"
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
|
-
"@sprucelabs/esm-postbuild": "^7.0.
|
|
67
|
-
"@sprucelabs/jest-json-reporter": "^9.0.
|
|
68
|
-
"@sprucelabs/resolve-path-aliases": "^3.0.
|
|
67
|
+
"@sprucelabs/esm-postbuild": "^7.0.39",
|
|
68
|
+
"@sprucelabs/jest-json-reporter": "^9.0.59",
|
|
69
|
+
"@sprucelabs/resolve-path-aliases": "^3.0.27",
|
|
69
70
|
"@sprucelabs/semantic-release": "^5.0.2",
|
|
70
71
|
"@sprucelabs/test": "^10.0.23",
|
|
71
|
-
"@sprucelabs/test-utils": "^6.0.
|
|
72
|
-
"@types/node": "^24.6.
|
|
72
|
+
"@sprucelabs/test-utils": "^6.0.92",
|
|
73
|
+
"@types/node": "^24.6.2",
|
|
73
74
|
"chokidar-cli": "^3.0.0",
|
|
74
75
|
"date-fns": "^4.1.0",
|
|
75
76
|
"date-fns-tz": "^3.2.0",
|