@transcend-io/cli 4.117.0 → 4.118.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/codecs.d.ts +29 -23
- package/build/codecs.d.ts.map +1 -1
- package/build/codecs.js +5 -15
- package/build/codecs.js.map +1 -1
- package/build/enums.d.ts +26 -0
- package/build/enums.d.ts.map +1 -1
- package/build/enums.js +20 -1
- package/build/enums.js.map +1 -1
- package/build/helpers/buildEnabledRouteType.d.ts.map +1 -1
- package/build/helpers/buildEnabledRouteType.js +3 -2
- package/build/helpers/buildEnabledRouteType.js.map +1 -1
- package/build/tsbuildinfo +1 -1
- package/package.json +2 -2
package/build/enums.d.ts
CHANGED
|
@@ -20,4 +20,30 @@ export declare enum TranscendPullResource {
|
|
|
20
20
|
PromptPartials = "promptPartials",
|
|
21
21
|
PromptGroups = "promptGroups"
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Names of built in policies for pathfinder
|
|
25
|
+
*/
|
|
26
|
+
export declare const PathfinderPolicyName: {
|
|
27
|
+
RedactEmail: "redactEmail";
|
|
28
|
+
Log: "log";
|
|
29
|
+
LogToTranscend: "logToTranscend";
|
|
30
|
+
ApplyTranscendPolicies: "applyTranscendPolicies";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Type override
|
|
34
|
+
*/
|
|
35
|
+
export type PathfinderPolicyName = typeof PathfinderPolicyName[keyof typeof PathfinderPolicyName];
|
|
36
|
+
/**
|
|
37
|
+
* The names of the OpenAI routes that we support setting policies for
|
|
38
|
+
* reference: https://platform.openai.com/docs/api-reference/introduction
|
|
39
|
+
*/
|
|
40
|
+
export declare const OpenAIRouteName: {
|
|
41
|
+
ChatCompletion: "/v1/chat/completions";
|
|
42
|
+
Embeddings: "/v1/embeddings";
|
|
43
|
+
Completions: "/v1/completions";
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Type override
|
|
47
|
+
*/
|
|
48
|
+
export type OpenAIRouteName = typeof OpenAIRouteName[keyof typeof OpenAIRouteName];
|
|
23
49
|
//# sourceMappingURL=enums.d.ts.map
|
package/build/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,OAAO,YAAY;IACnB,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;CAK/B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC9B,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;CAI1B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GACzB,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
|
package/build/enums.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TranscendPullResource = void 0;
|
|
3
|
+
exports.OpenAIRouteName = exports.PathfinderPolicyName = exports.TranscendPullResource = void 0;
|
|
4
|
+
const type_utils_1 = require("@transcend-io/type-utils");
|
|
4
5
|
/**
|
|
5
6
|
* Resources that can be pulled in
|
|
6
7
|
*/
|
|
@@ -24,4 +25,22 @@ var TranscendPullResource;
|
|
|
24
25
|
TranscendPullResource["PromptPartials"] = "promptPartials";
|
|
25
26
|
TranscendPullResource["PromptGroups"] = "promptGroups";
|
|
26
27
|
})(TranscendPullResource = exports.TranscendPullResource || (exports.TranscendPullResource = {}));
|
|
28
|
+
/**
|
|
29
|
+
* Names of built in policies for pathfinder
|
|
30
|
+
*/
|
|
31
|
+
exports.PathfinderPolicyName = (0, type_utils_1.makeEnum)({
|
|
32
|
+
RedactEmail: 'redactEmail',
|
|
33
|
+
Log: 'log',
|
|
34
|
+
LogToTranscend: 'logToTranscend',
|
|
35
|
+
ApplyTranscendPolicies: 'applyTranscendPolicies',
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* The names of the OpenAI routes that we support setting policies for
|
|
39
|
+
* reference: https://platform.openai.com/docs/api-reference/introduction
|
|
40
|
+
*/
|
|
41
|
+
exports.OpenAIRouteName = (0, type_utils_1.makeEnum)({
|
|
42
|
+
ChatCompletion: '/v1/chat/completions',
|
|
43
|
+
Embeddings: '/v1/embeddings',
|
|
44
|
+
Completions: '/v1/completions',
|
|
45
|
+
});
|
|
27
46
|
//# sourceMappingURL=enums.js.map
|
package/build/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,qBAkBX;AAlBD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,kEAAyC,CAAA;IACzC,kDAAyB,CAAA;IACzB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,8DAAqC,CAAA;IACrC,4CAAmB,CAAA;IACnB,sDAA6B,CAAA;IAC7B,oDAA2B,CAAA;IAC3B,4CAAmB,CAAA;IACnB,0DAAiC,CAAA;IACjC,4CAAmB,CAAA;IACnB,0DAAiC,CAAA;IACjC,sDAA6B,CAAA;AAC/B,CAAC,EAlBW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAkBhC"}
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AAEpD;;GAEG;AACH,IAAY,qBAkBX;AAlBD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,kEAAyC,CAAA;IACzC,kDAAyB,CAAA;IACzB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,8DAAqC,CAAA;IACrC,4CAAmB,CAAA;IACnB,sDAA6B,CAAA;IAC7B,oDAA2B,CAAA;IAC3B,4CAAmB,CAAA;IACnB,0DAAiC,CAAA;IACjC,4CAAmB,CAAA;IACnB,0DAAiC,CAAA;IACjC,sDAA6B,CAAA;AAC/B,CAAC,EAlBW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAkBhC;AAED;;GAEG;AACU,QAAA,oBAAoB,GAAG,IAAA,qBAAQ,EAAC;IAC3C,WAAW,EAAE,aAAa;IAC1B,GAAG,EAAE,KAAK;IACV,cAAc,EAAE,gBAAgB;IAChC,sBAAsB,EAAE,wBAAwB;CACjD,CAAC,CAAC;AAQH;;;GAGG;AACU,QAAA,eAAe,GAAG,IAAA,qBAAQ,EAAC;IACtC,cAAc,EAAE,sBAAsB;IACtC,UAAU,EAAE,gBAAgB;IAC5B,WAAW,EAAE,iBAAiB;CAC/B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildEnabledRouteType.d.ts","sourceRoot":"","sources":["../../src/helpers/buildEnabledRouteType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"buildEnabledRouteType.d.ts","sourceRoot":"","sources":["../../src/helpers/buildEnabledRouteType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI1C;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;IAGhC,yCAAyC;;sBAMvC,CAAC"}
|
|
@@ -25,7 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.buildEnabledRouteType = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const
|
|
28
|
+
const type_utils_1 = require("@transcend-io/type-utils");
|
|
29
|
+
const enums_1 = require("../enums");
|
|
29
30
|
/**
|
|
30
31
|
* Builds a custom io-ts type that represents a route allowed by the proxy
|
|
31
32
|
*
|
|
@@ -34,7 +35,7 @@ const codecs_1 = require("../codecs");
|
|
|
34
35
|
*/
|
|
35
36
|
const buildEnabledRouteType = ({ TRouteName, }) => t.type({
|
|
36
37
|
routeName: TRouteName,
|
|
37
|
-
enabledPolicies: t.array(
|
|
38
|
+
enabledPolicies: t.array((0, type_utils_1.valuesOf)(enums_1.PathfinderPolicyName)),
|
|
38
39
|
});
|
|
39
40
|
exports.buildEnabledRouteType = buildEnabledRouteType;
|
|
40
41
|
//# sourceMappingURL=buildEnabledRouteType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildEnabledRouteType.js","sourceRoot":"","sources":["../../src/helpers/buildEnabledRouteType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;
|
|
1
|
+
{"version":3,"file":"buildEnabledRouteType.js","sourceRoot":"","sources":["../../src/helpers/buildEnabledRouteType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,yDAAoD;AACpD,oCAAgD;AAEhD;;;;;GAKG;AACI,MAAM,qBAAqB,GAAG,CAAoB,EACvD,UAAU,GAIX,EAAoB,EAAE,CACrB,CAAC,CAAC,IAAI,CAAC;IACL,SAAS,EAAE,UAAU;IACrB,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,IAAA,qBAAQ,EAAC,4BAAoB,CAAC,CAAC;CACzD,CAAC,CAAC;AATQ,QAAA,qBAAqB,yBAS7B"}
|