@scout9/app 1.0.0-alpha.0.5.8 → 1.0.0-alpha.0.6.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/dist/{dev-ccf05f24.cjs → dev-32a9a0c8.cjs} +155 -9
- package/dist/{index-b329d3e5.cjs → index-d94326d3.cjs} +7 -7
- package/dist/index.cjs +4 -4
- package/dist/{macros-f855de63.cjs → macros-621210f1.cjs} +25 -4
- package/dist/{multipart-parser-5819fcfd.cjs → multipart-parser-6ba4e92d.cjs} +4 -4
- package/dist/schemas.cjs +2 -1
- package/dist/{spirits-2ab4d673.cjs → spirits-8819b1c9.cjs} +173 -78
- package/dist/spirits.cjs +1 -1
- package/dist/testing-tools.cjs +3 -3
- package/package.json +2 -1
- package/src/core/templates/app.js +277 -178
- package/src/public.d.ts +18 -3
- package/src/runtime/schemas/message.js +10 -1
- package/src/runtime/schemas/users.js +9 -1
- package/src/runtime/schemas/workflow.js +6 -2
- package/src/testing-tools/spirits.js +59 -0
- package/types/index.d.ts +1974 -164
- package/types/index.d.ts.map +3 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var spirits = require("./spirits-
|
|
3
|
+
var spirits = require("./spirits-8819b1c9.cjs");
|
|
4
4
|
var require$$0$4 = require('util');
|
|
5
5
|
var require$$0$3 = require('stream');
|
|
6
6
|
var require$$1 = require('path');
|
|
@@ -21,7 +21,7 @@ var node_url = require('node:url');
|
|
|
21
21
|
var node_events = require('node:events');
|
|
22
22
|
var Stream = require('node:stream');
|
|
23
23
|
var node_string_decoder = require('node:string_decoder');
|
|
24
|
-
var macros = require("./macros-
|
|
24
|
+
var macros = require("./macros-621210f1.cjs");
|
|
25
25
|
var readline = require('node:readline');
|
|
26
26
|
var process$2 = require('node:process');
|
|
27
27
|
var node_os = require('node:os');
|
|
@@ -25458,7 +25458,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
25458
25458
|
Object.defineProperty(exports, "__esModule", {
|
|
25459
25459
|
value: true
|
|
25460
25460
|
});
|
|
25461
|
-
exports.Scout9Api = exports.Scout9ApiGenerated = exports.Scout9ApiFactory = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = exports.NoopApi = exports.NoopApiFactory = exports.NoopApiFp = exports.NoopApiAxiosParamCreator = exports.WorkflowResponseSlotForwardOneOfModeEnum = exports.PurposeEnum = exports.PmtConfigModelEnum = exports.PmtConfigEngineEnum = exports.MessageGetResponseInnerRoleEnum = exports.MessageCreateRequestRoleEnum = exports.MessageBaseRoleEnum = exports.MessageRoleEnum = exports.MacroResultTypeEnum = exports.MacroDoesResultTypeEnum = exports.MacroDoesInputRoleEnum = exports.MacroDidResultTypeEnum = exports.MacroContextResultTypeEnum = exports.LlmConfigOneOf2EngineEnum = exports.LlmConfigOneOf1EngineEnum = exports.LlmConfigOneOfModelEnum = exports.LlmConfigOneOfEngineEnum = exports.ListApiOperationsResponseInnerMethodEnum = exports.GetApiOperationResponseMethodEnum = exports.ForwardRequestLatestMessageRoleEnum = exports.ForwardRequestForwardOneOfModeEnum = exports.ExistenceOperator = exports.EqualityOperator = exports.ConversationEnvironment = exports.ConversationContextFieldConditionOperatorEnum = exports.ApiOperationMethodEnum = void 0;
|
|
25461
|
+
exports.Scout9Api = exports.Scout9ApiGenerated = exports.Scout9ApiFactory = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = exports.NoopApi = exports.NoopApiFactory = exports.NoopApiFp = exports.NoopApiAxiosParamCreator = exports.WorkflowResponseSlotForwardOneOfModeEnum = exports.PurposeEnum = exports.PmtTransformResponseTypeEnum = exports.PmtConfigModelEnum = exports.PmtConfigEngineEnum = exports.MessageGetResponseInnerRoleEnum = exports.MessageCreateRequestRoleEnum = exports.MessageBaseRoleEnum = exports.MessageRoleEnum = exports.MacroResultTypeEnum = exports.MacroDoesResultTypeEnum = exports.MacroDoesInputRoleEnum = exports.MacroDidResultTypeEnum = exports.MacroContextResultTypeEnum = exports.LlmConfigOneOf2EngineEnum = exports.LlmConfigOneOf1EngineEnum = exports.LlmConfigOneOfModelEnum = exports.LlmConfigOneOfEngineEnum = exports.ListApiOperationsResponseInnerMethodEnum = exports.GetApiOperationResponseMethodEnum = exports.ForwardRequestLatestMessageRoleEnum = exports.ForwardRequestForwardOneOfModeEnum = exports.ExistenceOperator = exports.EqualityOperator = exports.ConversationEnvironment = exports.ConversationContextFieldConditionOperatorEnum = exports.ApiOperationMethodEnum = void 0;
|
|
25462
25462
|
const axios_1$1 = __importDefault(axios_1);
|
|
25463
25463
|
// Some imports not used depending on template conditions
|
|
25464
25464
|
// @ts-ignore
|
|
@@ -25627,6 +25627,12 @@ common.createRequestFunction = createRequestFunction;
|
|
|
25627
25627
|
_10: 'orin-1.0',
|
|
25628
25628
|
_20Preview: 'orin-2.0-preview'
|
|
25629
25629
|
};
|
|
25630
|
+
exports.PmtTransformResponseTypeEnum = {
|
|
25631
|
+
Question: 'question',
|
|
25632
|
+
Statement: 'statement',
|
|
25633
|
+
Exclamation: 'exclamation',
|
|
25634
|
+
Other: 'other'
|
|
25635
|
+
};
|
|
25630
25636
|
/**
|
|
25631
25637
|
*
|
|
25632
25638
|
* @export
|
|
@@ -26454,7 +26460,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26454
26460
|
*
|
|
26455
26461
|
* @summary Gets a customer
|
|
26456
26462
|
* @param {string} idOrEmailOrPhone Either customers id, phone number or email
|
|
26457
|
-
* @param {boolean} [resolve] If a email or phone is provided and the
|
|
26463
|
+
* @param {boolean} [resolve] If a email or phone is provided and the customer doesn\'t exist, it will automatically create one
|
|
26458
26464
|
* @param {*} [options] Override http request option.
|
|
26459
26465
|
* @throws {RequiredError}
|
|
26460
26466
|
*/
|
|
@@ -27936,6 +27942,82 @@ common.createRequestFunction = createRequestFunction;
|
|
|
27936
27942
|
options: localVarRequestOptions
|
|
27937
27943
|
};
|
|
27938
27944
|
},
|
|
27945
|
+
/**
|
|
27946
|
+
* Trains a PMT model based on the uploaded transcripts provided (Will include the ability to add more transcripts)
|
|
27947
|
+
* @summary Trains a given or default persona\'s PMT model
|
|
27948
|
+
* @param {PmtTrainRequest} pmtTrainRequest
|
|
27949
|
+
* @param {*} [options] Override http request option.
|
|
27950
|
+
* @throws {RequiredError}
|
|
27951
|
+
*/
|
|
27952
|
+
train: async (pmtTrainRequest, options = {}) => {
|
|
27953
|
+
// verify required parameter 'pmtTrainRequest' is not null or undefined
|
|
27954
|
+
(0, common_1.assertParamExists)('train', 'pmtTrainRequest', pmtTrainRequest);
|
|
27955
|
+
const localVarPath = `/v1-pmt-train`;
|
|
27956
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27957
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27958
|
+
let baseOptions;
|
|
27959
|
+
if (configuration) {
|
|
27960
|
+
baseOptions = configuration.baseOptions;
|
|
27961
|
+
}
|
|
27962
|
+
const localVarRequestOptions = {
|
|
27963
|
+
method: 'POST',
|
|
27964
|
+
...baseOptions,
|
|
27965
|
+
...options
|
|
27966
|
+
};
|
|
27967
|
+
const localVarHeaderParameter = {};
|
|
27968
|
+
const localVarQueryParameter = {};
|
|
27969
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27970
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
27971
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27972
|
+
localVarRequestOptions.headers = {
|
|
27973
|
+
...localVarHeaderParameter,
|
|
27974
|
+
...headersFromBaseOptions,
|
|
27975
|
+
...options.headers
|
|
27976
|
+
};
|
|
27977
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(pmtTrainRequest, localVarRequestOptions, configuration);
|
|
27978
|
+
return {
|
|
27979
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
27980
|
+
options: localVarRequestOptions
|
|
27981
|
+
};
|
|
27982
|
+
},
|
|
27983
|
+
/**
|
|
27984
|
+
* Transforms a given message and context into the owners own words. Failure to transform would be a lack of transcription data or the message detected as not applicable to the owners intended use.
|
|
27985
|
+
* @summary Transforms a given message and context into the owners own words
|
|
27986
|
+
* @param {PmtTransformRequest} pmtTransformRequest
|
|
27987
|
+
* @param {*} [options] Override http request option.
|
|
27988
|
+
* @throws {RequiredError}
|
|
27989
|
+
*/
|
|
27990
|
+
transform: async (pmtTransformRequest, options = {}) => {
|
|
27991
|
+
// verify required parameter 'pmtTransformRequest' is not null or undefined
|
|
27992
|
+
(0, common_1.assertParamExists)('transform', 'pmtTransformRequest', pmtTransformRequest);
|
|
27993
|
+
const localVarPath = `/v1-pmt-transform`;
|
|
27994
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27995
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27996
|
+
let baseOptions;
|
|
27997
|
+
if (configuration) {
|
|
27998
|
+
baseOptions = configuration.baseOptions;
|
|
27999
|
+
}
|
|
28000
|
+
const localVarRequestOptions = {
|
|
28001
|
+
method: 'POST',
|
|
28002
|
+
...baseOptions,
|
|
28003
|
+
...options
|
|
28004
|
+
};
|
|
28005
|
+
const localVarHeaderParameter = {};
|
|
28006
|
+
const localVarQueryParameter = {};
|
|
28007
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28008
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
28009
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28010
|
+
localVarRequestOptions.headers = {
|
|
28011
|
+
...localVarHeaderParameter,
|
|
28012
|
+
...headersFromBaseOptions,
|
|
28013
|
+
...options.headers
|
|
28014
|
+
};
|
|
28015
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(pmtTransformRequest, localVarRequestOptions, configuration);
|
|
28016
|
+
return {
|
|
28017
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
28018
|
+
options: localVarRequestOptions
|
|
28019
|
+
};
|
|
28020
|
+
},
|
|
27939
28021
|
/**
|
|
27940
28022
|
* Updates an existing entity with the specified type and ID.
|
|
27941
28023
|
* @summary Update an existing entity
|
|
@@ -28195,7 +28277,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
28195
28277
|
*
|
|
28196
28278
|
* @summary Gets a customer
|
|
28197
28279
|
* @param {string} idOrEmailOrPhone Either customers id, phone number or email
|
|
28198
|
-
* @param {boolean} [resolve] If a email or phone is provided and the
|
|
28280
|
+
* @param {boolean} [resolve] If a email or phone is provided and the customer doesn\'t exist, it will automatically create one
|
|
28199
28281
|
* @param {*} [options] Override http request option.
|
|
28200
28282
|
* @throws {RequiredError}
|
|
28201
28283
|
*/
|
|
@@ -28618,6 +28700,28 @@ common.createRequestFunction = createRequestFunction;
|
|
|
28618
28700
|
const localVarAxiosArgs = await localVarAxiosParamCreator.temp(generateRequest, convo, options);
|
|
28619
28701
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28620
28702
|
},
|
|
28703
|
+
/**
|
|
28704
|
+
* Trains a PMT model based on the uploaded transcripts provided (Will include the ability to add more transcripts)
|
|
28705
|
+
* @summary Trains a given or default persona\'s PMT model
|
|
28706
|
+
* @param {PmtTrainRequest} pmtTrainRequest
|
|
28707
|
+
* @param {*} [options] Override http request option.
|
|
28708
|
+
* @throws {RequiredError}
|
|
28709
|
+
*/
|
|
28710
|
+
async train(pmtTrainRequest, options) {
|
|
28711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.train(pmtTrainRequest, options);
|
|
28712
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28713
|
+
},
|
|
28714
|
+
/**
|
|
28715
|
+
* Transforms a given message and context into the owners own words. Failure to transform would be a lack of transcription data or the message detected as not applicable to the owners intended use.
|
|
28716
|
+
* @summary Transforms a given message and context into the owners own words
|
|
28717
|
+
* @param {PmtTransformRequest} pmtTransformRequest
|
|
28718
|
+
* @param {*} [options] Override http request option.
|
|
28719
|
+
* @throws {RequiredError}
|
|
28720
|
+
*/
|
|
28721
|
+
async transform(pmtTransformRequest, options) {
|
|
28722
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.transform(pmtTransformRequest, options);
|
|
28723
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28724
|
+
},
|
|
28621
28725
|
/**
|
|
28622
28726
|
* Updates an existing entity with the specified type and ID.
|
|
28623
28727
|
* @summary Update an existing entity
|
|
@@ -28828,7 +28932,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
28828
28932
|
*
|
|
28829
28933
|
* @summary Gets a customer
|
|
28830
28934
|
* @param {string} idOrEmailOrPhone Either customers id, phone number or email
|
|
28831
|
-
* @param {boolean} [resolve] If a email or phone is provided and the
|
|
28935
|
+
* @param {boolean} [resolve] If a email or phone is provided and the customer doesn\'t exist, it will automatically create one
|
|
28832
28936
|
* @param {*} [options] Override http request option.
|
|
28833
28937
|
* @throws {RequiredError}
|
|
28834
28938
|
*/
|
|
@@ -29214,6 +29318,26 @@ common.createRequestFunction = createRequestFunction;
|
|
|
29214
29318
|
temp(generateRequest, convo, options) {
|
|
29215
29319
|
return localVarFp.temp(generateRequest, convo, options).then(request => request(axios, basePath));
|
|
29216
29320
|
},
|
|
29321
|
+
/**
|
|
29322
|
+
* Trains a PMT model based on the uploaded transcripts provided (Will include the ability to add more transcripts)
|
|
29323
|
+
* @summary Trains a given or default persona\'s PMT model
|
|
29324
|
+
* @param {PmtTrainRequest} pmtTrainRequest
|
|
29325
|
+
* @param {*} [options] Override http request option.
|
|
29326
|
+
* @throws {RequiredError}
|
|
29327
|
+
*/
|
|
29328
|
+
train(pmtTrainRequest, options) {
|
|
29329
|
+
return localVarFp.train(pmtTrainRequest, options).then(request => request(axios, basePath));
|
|
29330
|
+
},
|
|
29331
|
+
/**
|
|
29332
|
+
* Transforms a given message and context into the owners own words. Failure to transform would be a lack of transcription data or the message detected as not applicable to the owners intended use.
|
|
29333
|
+
* @summary Transforms a given message and context into the owners own words
|
|
29334
|
+
* @param {PmtTransformRequest} pmtTransformRequest
|
|
29335
|
+
* @param {*} [options] Override http request option.
|
|
29336
|
+
* @throws {RequiredError}
|
|
29337
|
+
*/
|
|
29338
|
+
transform(pmtTransformRequest, options) {
|
|
29339
|
+
return localVarFp.transform(pmtTransformRequest, options).then(request => request(axios, basePath));
|
|
29340
|
+
},
|
|
29217
29341
|
/**
|
|
29218
29342
|
* Updates an existing entity with the specified type and ID.
|
|
29219
29343
|
* @summary Update an existing entity
|
|
@@ -29441,7 +29565,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
29441
29565
|
*
|
|
29442
29566
|
* @summary Gets a customer
|
|
29443
29567
|
* @param {string} idOrEmailOrPhone Either customers id, phone number or email
|
|
29444
|
-
* @param {boolean} [resolve] If a email or phone is provided and the
|
|
29568
|
+
* @param {boolean} [resolve] If a email or phone is provided and the customer doesn\'t exist, it will automatically create one
|
|
29445
29569
|
* @param {*} [options] Override http request option.
|
|
29446
29570
|
* @throws {RequiredError}
|
|
29447
29571
|
* @memberof Scout9Api
|
|
@@ -29864,6 +29988,28 @@ common.createRequestFunction = createRequestFunction;
|
|
|
29864
29988
|
temp(generateRequest, convo, options) {
|
|
29865
29989
|
return (0, exports.Scout9ApiFp)(this.configuration).temp(generateRequest, convo, options).then(request => request(this.axios, this.basePath));
|
|
29866
29990
|
}
|
|
29991
|
+
/**
|
|
29992
|
+
* Trains a PMT model based on the uploaded transcripts provided (Will include the ability to add more transcripts)
|
|
29993
|
+
* @summary Trains a given or default persona\'s PMT model
|
|
29994
|
+
* @param {PmtTrainRequest} pmtTrainRequest
|
|
29995
|
+
* @param {*} [options] Override http request option.
|
|
29996
|
+
* @throws {RequiredError}
|
|
29997
|
+
* @memberof Scout9Api
|
|
29998
|
+
*/
|
|
29999
|
+
train(pmtTrainRequest, options) {
|
|
30000
|
+
return (0, exports.Scout9ApiFp)(this.configuration).train(pmtTrainRequest, options).then(request => request(this.axios, this.basePath));
|
|
30001
|
+
}
|
|
30002
|
+
/**
|
|
30003
|
+
* Transforms a given message and context into the owners own words. Failure to transform would be a lack of transcription data or the message detected as not applicable to the owners intended use.
|
|
30004
|
+
* @summary Transforms a given message and context into the owners own words
|
|
30005
|
+
* @param {PmtTransformRequest} pmtTransformRequest
|
|
30006
|
+
* @param {*} [options] Override http request option.
|
|
30007
|
+
* @throws {RequiredError}
|
|
30008
|
+
* @memberof Scout9Api
|
|
30009
|
+
*/
|
|
30010
|
+
transform(pmtTransformRequest, options) {
|
|
30011
|
+
return (0, exports.Scout9ApiFp)(this.configuration).transform(pmtTransformRequest, options).then(request => request(this.axios, this.basePath));
|
|
30012
|
+
}
|
|
29867
30013
|
/**
|
|
29868
30014
|
* Updates an existing entity with the specified type and ID.
|
|
29869
30015
|
* @summary Update an existing entity
|
|
@@ -30030,7 +30176,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
30030
30176
|
var configuration = {};
|
|
30031
30177
|
|
|
30032
30178
|
var name$1 = "@scout9/admin";
|
|
30033
|
-
var version$2 = "1.0.0-alpha.0.0.
|
|
30179
|
+
var version$2 = "1.0.0-alpha.0.0.55";
|
|
30034
30180
|
var description$1 = "";
|
|
30035
30181
|
var main$2 = "./build/index.js";
|
|
30036
30182
|
var types$1 = "./build/index.d.ts";
|
|
@@ -35095,7 +35241,7 @@ function _loadUserPackageJson() {
|
|
|
35095
35241
|
targetPkgUrl = isTest ? packageTestJsonUrl : packageJsonUrl;
|
|
35096
35242
|
_context2.t0 = JSON;
|
|
35097
35243
|
_context2.next = 10;
|
|
35098
|
-
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('dev-
|
|
35244
|
+
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('dev-32a9a0c8.js', document.baseURI).href))), 'utf-8');
|
|
35099
35245
|
case 10:
|
|
35100
35246
|
_context2.t1 = _context2.sent;
|
|
35101
35247
|
pkg = _context2.t0.parse.call(_context2.t0, _context2.t1);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var spirits = require("./spirits-
|
|
4
|
-
var dev = require("./dev-
|
|
5
|
-
var macros = require("./macros-
|
|
3
|
+
var spirits = require("./spirits-8819b1c9.cjs");
|
|
4
|
+
var dev = require("./dev-32a9a0c8.cjs");
|
|
5
|
+
var macros = require("./macros-621210f1.cjs");
|
|
6
6
|
var require$$0 = require('fs');
|
|
7
7
|
var require$$2$1 = require('events');
|
|
8
8
|
var require$$1 = require('path');
|
|
@@ -29483,7 +29483,7 @@ class Body {
|
|
|
29483
29483
|
}
|
|
29484
29484
|
const {
|
|
29485
29485
|
toFormData
|
|
29486
|
-
} = await Promise.resolve().then(function () { return require("./multipart-parser-
|
|
29486
|
+
} = await Promise.resolve().then(function () { return require("./multipart-parser-6ba4e92d.cjs"); });
|
|
29487
29487
|
return toFormData(this.body, ct);
|
|
29488
29488
|
}
|
|
29489
29489
|
|
|
@@ -41884,7 +41884,7 @@ function _loadUserPackageJson() {
|
|
|
41884
41884
|
targetPkgUrl = isTest ? packageTestJsonUrl : packageJsonUrl;
|
|
41885
41885
|
_context.t0 = JSON;
|
|
41886
41886
|
_context.next = 10;
|
|
41887
|
-
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-
|
|
41887
|
+
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-d94326d3.js', document.baseURI).href))), 'utf-8');
|
|
41888
41888
|
case 10:
|
|
41889
41889
|
_context.t1 = _context.sent;
|
|
41890
41890
|
pkg = _context.t0.parse.call(_context.t0, _context.t1);
|
|
@@ -43176,7 +43176,7 @@ var ProjectFiles = /*#__PURE__*/function () {
|
|
|
43176
43176
|
return ProjectFiles;
|
|
43177
43177
|
}();
|
|
43178
43178
|
|
|
43179
|
-
var __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-
|
|
43179
|
+
var __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-d94326d3.js', document.baseURI).href)));
|
|
43180
43180
|
var __dirname$1 = path__default["default"].dirname(__filename$1);
|
|
43181
43181
|
function zipDirectory(source, out) {
|
|
43182
43182
|
var archive = archiver$1('tar', {
|
|
@@ -43391,7 +43391,7 @@ function _buildApp() {
|
|
|
43391
43391
|
case 11:
|
|
43392
43392
|
_context4.t0 = JSON;
|
|
43393
43393
|
_context4.next = 14;
|
|
43394
|
-
return fs__default["default"].readFile(new URL(templatePackagePath, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-
|
|
43394
|
+
return fs__default["default"].readFile(new URL(templatePackagePath, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-d94326d3.js', document.baseURI).href))), 'utf-8');
|
|
43395
43395
|
case 14:
|
|
43396
43396
|
_context4.t1 = _context4.sent;
|
|
43397
43397
|
packageTemplate = _context4.t0.parse.call(_context4.t0, _context4.t1);
|
package/dist/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require("./index-
|
|
6
|
-
var dev = require("./dev-
|
|
7
|
-
require("./spirits-
|
|
8
|
-
require("./macros-
|
|
5
|
+
var index = require("./index-d94326d3.cjs");
|
|
6
|
+
var dev = require("./dev-32a9a0c8.cjs");
|
|
7
|
+
require("./spirits-8819b1c9.cjs");
|
|
8
|
+
require("./macros-621210f1.cjs");
|
|
9
9
|
require('fs');
|
|
10
10
|
require('events');
|
|
11
11
|
require('path');
|
|
@@ -4015,6 +4015,13 @@ function zId(name) {
|
|
|
4015
4015
|
});
|
|
4016
4016
|
}
|
|
4017
4017
|
|
|
4018
|
+
var MessageEntitySchema = z.object({
|
|
4019
|
+
start: z.number(),
|
|
4020
|
+
end: z.number(),
|
|
4021
|
+
type: z.string(),
|
|
4022
|
+
option: z.string().optional().nullable(),
|
|
4023
|
+
text: z.string().optional().nullable()
|
|
4024
|
+
});
|
|
4018
4025
|
var MessageSchema = z.object({
|
|
4019
4026
|
id: zId('Message ID', {
|
|
4020
4027
|
description: 'Unique ID for the message'
|
|
@@ -4039,7 +4046,8 @@ var MessageSchema = z.object({
|
|
|
4039
4046
|
}).nullable().optional(),
|
|
4040
4047
|
delayInSeconds: z.number({
|
|
4041
4048
|
description: 'How long to delay the message manually in seconds'
|
|
4042
|
-
}).nullable().optional()
|
|
4049
|
+
}).nullable().optional(),
|
|
4050
|
+
entities: z.array(MessageEntitySchema).optional().nullable()
|
|
4043
4051
|
});
|
|
4044
4052
|
|
|
4045
4053
|
var CustomerValueSchema = z.union([z["boolean"](), z.number(), z.string()]);
|
|
@@ -4113,7 +4121,15 @@ var AgentSchema = z.object({
|
|
|
4113
4121
|
})).optional(),
|
|
4114
4122
|
model: z["enum"](['Scout9', 'bard', 'openai']).optional()["default"]('openai'),
|
|
4115
4123
|
transcripts: z.array(z.array(MessageSchema)).optional(),
|
|
4116
|
-
audios: z.array(z.any()).optional()
|
|
4124
|
+
audios: z.array(z.any()).optional(),
|
|
4125
|
+
pmt: z.object({
|
|
4126
|
+
tag: z.string().optional(),
|
|
4127
|
+
ingress: z["enum"](["auto", "manual", "app", "workflow"]),
|
|
4128
|
+
llm: z.string().optional(),
|
|
4129
|
+
webhookUri: z.string().optional(),
|
|
4130
|
+
watermarkEnabled: z["boolean"]().optional(),
|
|
4131
|
+
watermark: z.string().optional()
|
|
4132
|
+
}).optional()
|
|
4117
4133
|
});
|
|
4118
4134
|
var PersonaSchema = AgentSchema;
|
|
4119
4135
|
var AgentConfigurationSchema = AgentSchema.extend({
|
|
@@ -4301,7 +4317,8 @@ var WorkflowEventSchema = z.object({
|
|
|
4301
4317
|
includedLocations: true,
|
|
4302
4318
|
excludedLocations: true,
|
|
4303
4319
|
model: true,
|
|
4304
|
-
context: true
|
|
4320
|
+
context: true,
|
|
4321
|
+
pmt: true
|
|
4305
4322
|
}),
|
|
4306
4323
|
customer: CustomerSchema,
|
|
4307
4324
|
intent: IntentWorkflowEventSchema,
|
|
@@ -4321,7 +4338,10 @@ var WorkflowResponseSlotBaseSchema = z.object({
|
|
|
4321
4338
|
}).optional(),
|
|
4322
4339
|
instructions: InstructionSchema.optional(),
|
|
4323
4340
|
removeInstructions: z.array(z.string()).optional(),
|
|
4324
|
-
message: z.string().
|
|
4341
|
+
message: z.union([z.string(), z.object({
|
|
4342
|
+
content: z.string(),
|
|
4343
|
+
transform: z["boolean"]().optional()
|
|
4344
|
+
})]).optional(),
|
|
4325
4345
|
secondsDelay: z.number().optional(),
|
|
4326
4346
|
scheduled: z.number().optional(),
|
|
4327
4347
|
contextUpsert: ConversationContext.optional(),
|
|
@@ -4576,6 +4596,7 @@ exports.ForwardSchema = ForwardSchema;
|
|
|
4576
4596
|
exports.InstructionObjectSchema = InstructionObjectSchema;
|
|
4577
4597
|
exports.InstructionSchema = InstructionSchema;
|
|
4578
4598
|
exports.IntentWorkflowEventSchema = IntentWorkflowEventSchema;
|
|
4599
|
+
exports.MessageEntitySchema = MessageEntitySchema;
|
|
4579
4600
|
exports.MessageSchema = MessageSchema;
|
|
4580
4601
|
exports.PersonaConfigurationSchema = PersonaConfigurationSchema;
|
|
4581
4602
|
exports.PersonaSchema = PersonaSchema;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
require('node:fs');
|
|
4
4
|
require('node:path');
|
|
5
|
-
var index = require("./index-
|
|
6
|
-
require("./spirits-
|
|
7
|
-
require("./dev-
|
|
5
|
+
var index = require("./index-d94326d3.cjs");
|
|
6
|
+
require("./spirits-8819b1c9.cjs");
|
|
7
|
+
require("./dev-32a9a0c8.cjs");
|
|
8
8
|
require('util');
|
|
9
9
|
require('stream');
|
|
10
10
|
require('path');
|
|
@@ -23,7 +23,7 @@ require('node:url');
|
|
|
23
23
|
require('node:events');
|
|
24
24
|
require('node:stream');
|
|
25
25
|
require('node:string_decoder');
|
|
26
|
-
require("./macros-
|
|
26
|
+
require("./macros-621210f1.cjs");
|
|
27
27
|
require('node:readline');
|
|
28
28
|
require('node:process');
|
|
29
29
|
require('node:os');
|
package/dist/schemas.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var macros = require("./macros-
|
|
5
|
+
var macros = require("./macros-621210f1.cjs");
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -30,6 +30,7 @@ exports.ForwardSchema = macros.ForwardSchema;
|
|
|
30
30
|
exports.InstructionObjectSchema = macros.InstructionObjectSchema;
|
|
31
31
|
exports.InstructionSchema = macros.InstructionSchema;
|
|
32
32
|
exports.IntentWorkflowEventSchema = macros.IntentWorkflowEventSchema;
|
|
33
|
+
exports.MessageEntitySchema = macros.MessageEntitySchema;
|
|
33
34
|
exports.MessageSchema = macros.MessageSchema;
|
|
34
35
|
exports.PersonaConfigurationSchema = macros.PersonaConfigurationSchema;
|
|
35
36
|
exports.PersonaSchema = macros.PersonaSchema;
|