polyapi 0.10.1 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/src/templates/api-index.js.hbs +3 -2
- package/build/client/src/templates/index.js.hbs +2 -2
- package/build/client/src/templates/poly-custom.js.hbs +1 -0
- package/build/client/src/templates/server-index.js.hbs +7 -1
- package/build/model/src/dto/config-variable/value-types/index.d.ts +2 -1
- package/build/model/src/dto/config-variable/value-types/index.d.ts.map +1 -1
- package/build/model/src/dto/config-variable/value-types/index.js +1 -0
- package/build/model/src/dto/config-variable/value-types/index.js.map +1 -1
- package/build/model/src/dto/gptplugin/create-plugin-conversation.dto.d.ts +4 -0
- package/build/model/src/dto/gptplugin/create-plugin-conversation.dto.d.ts.map +1 -0
- package/build/model/src/dto/gptplugin/create-plugin-conversation.dto.js +21 -0
- package/build/model/src/dto/gptplugin/create-plugin-conversation.dto.js.map +1 -0
- package/build/model/src/dto/gptplugin/index.d.ts +1 -0
- package/build/model/src/dto/gptplugin/index.d.ts.map +1 -1
- package/build/model/src/dto/gptplugin/index.js +1 -0
- package/build/model/src/dto/gptplugin/index.js.map +1 -1
- package/build/model/src/dto/trigger/trigger-response.dto.d.ts +4 -0
- package/build/model/src/dto/trigger/trigger-response.dto.d.ts.map +1 -1
- package/build/model/src/dto/trigger/trigger-response.dto.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ const functions = [
|
|
|
8
8
|
{{/each}}
|
|
9
9
|
];
|
|
10
10
|
|
|
11
|
-
module.exports = (clientID) => merge(
|
|
11
|
+
module.exports = (clientID, polyCustom) => merge(
|
|
12
12
|
{},
|
|
13
13
|
functions.reduce(
|
|
14
14
|
(acc, [path, id, ...argKeys]) => set(
|
|
@@ -21,7 +21,8 @@ module.exports = (clientID) => merge(
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
headers: {
|
|
24
|
-
'x-poly-request-timestamp': Date.now().toString()
|
|
24
|
+
'x-poly-request-timestamp': Date.now().toString(),
|
|
25
|
+
'x-poly-execution-id': polyCustom.executionId,
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
).then(({ headers, data }) => {
|
|
@@ -33,9 +33,9 @@ const poly = {};
|
|
|
33
33
|
|
|
34
34
|
merge(
|
|
35
35
|
poly,
|
|
36
|
-
apiFunctions(clientID),
|
|
36
|
+
apiFunctions(clientID, polyCustom),
|
|
37
37
|
clientFunctions(poly, sendLocalErrorEvent),
|
|
38
|
-
serverFunctions(clientID),
|
|
38
|
+
serverFunctions(clientID, polyCustom),
|
|
39
39
|
authFunctions(clientID, getSocket, getApiKey),
|
|
40
40
|
webhooks(clientID, getSocket, getApiKey),
|
|
41
41
|
),
|
|
@@ -8,7 +8,7 @@ const serverFunctions = [
|
|
|
8
8
|
{{/each}}
|
|
9
9
|
];
|
|
10
10
|
|
|
11
|
-
module.exports = (clientID) => merge(
|
|
11
|
+
module.exports = (clientID, polyCustom) => merge(
|
|
12
12
|
{},
|
|
13
13
|
serverFunctions.reduce(
|
|
14
14
|
(acc, [path, id, ...argKeys]) => set(
|
|
@@ -18,6 +18,12 @@ module.exports = (clientID) => merge(
|
|
|
18
18
|
`/functions/server/${id}/execute?clientId=${clientID}`,
|
|
19
19
|
{
|
|
20
20
|
...argKeys.reduce((acc, key, index) => ({ ...acc, [key]: args[index] }), {})
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
headers: {
|
|
24
|
+
'x-poly-request-timestamp': Date.now().toString(),
|
|
25
|
+
'x-poly-execution-id': polyCustom.executionId,
|
|
26
|
+
}
|
|
21
27
|
}
|
|
22
28
|
).then(({ data }) => data)),
|
|
23
29
|
{}
|
|
@@ -16,7 +16,8 @@ export declare enum ConfigVariableName {
|
|
|
16
16
|
DefaultTier = "DefaultTier",
|
|
17
17
|
DefaultTos = "DefaultTos",
|
|
18
18
|
Jobs = "Jobs",
|
|
19
|
-
AllowTenantSignup = "AllowTenantSignup"
|
|
19
|
+
AllowTenantSignup = "AllowTenantSignup",
|
|
20
|
+
MetricsRetentionDays = "MetricsRetentionDays"
|
|
20
21
|
}
|
|
21
22
|
export declare class TrainingDataGeneration {
|
|
22
23
|
webhooks: boolean | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../model/src/dto/config-variable/value-types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAKhD,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAE5F,oBAAY,kBAAkB;IAC5B,gCAAgC,qCAAqC;IACrE,wCAAwC,6CAA6C;IACrF,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,gCAAgC,qCAAqC;IACrE,8BAA8B,mCAAmC;IACjE,gCAAgC,qCAAqC;IACrE,kBAAkB,uBAAuB;IACzC,sBAAsB,2BAA2B;IACjD,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,iBAAiB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../model/src/dto/config-variable/value-types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAKhD,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAE5F,oBAAY,kBAAkB;IAC5B,gCAAgC,qCAAqC;IACrE,wCAAwC,6CAA6C;IACrF,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,gCAAgC,qCAAqC;IACrE,8BAA8B,mCAAmC;IACjE,gCAAgC,qCAAqC;IACrE,kBAAkB,uBAAuB;IACzC,sBAAsB,2BAA2B;IACjD,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,iBAAiB,sBAAsB;IACvC,oBAAoB,yBAAyB;CAC9C;AAED,qBAAa,sBAAsB;IACjC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,eAAe,EAAE,OAAO,GAAG,IAAI,CAAC;IAChC,eAAe,EAAE,OAAO,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -17,6 +17,7 @@ var ConfigVariableName;
|
|
|
17
17
|
ConfigVariableName["DefaultTos"] = "DefaultTos";
|
|
18
18
|
ConfigVariableName["Jobs"] = "Jobs";
|
|
19
19
|
ConfigVariableName["AllowTenantSignup"] = "AllowTenantSignup";
|
|
20
|
+
ConfigVariableName["MetricsRetentionDays"] = "MetricsRetentionDays";
|
|
20
21
|
})(ConfigVariableName || (exports.ConfigVariableName = ConfigVariableName = {}));
|
|
21
22
|
class TrainingDataGeneration {
|
|
22
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../model/src/dto/config-variable/value-types/index.ts"],"names":[],"mappings":";;;AAOA,IAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../model/src/dto/config-variable/value-types/index.ts"],"names":[],"mappings":";;;AAOA,IAAY,kBAgBX;AAhBD,WAAY,kBAAkB;IAC5B,2FAAqE,CAAA;IACrE,2GAAqF,CAAA;IACrF,2EAAqD,CAAA;IACrD,2EAAqD,CAAA;IACrD,2FAAqE,CAAA;IACrE,uFAAiE,CAAA;IACjE,2FAAqE,CAAA;IACrE,+DAAyC,CAAA;IACzC,uEAAiD,CAAA;IACjD,2DAAqC,CAAA;IACrC,iDAA2B,CAAA;IAC3B,+CAAyB,CAAA;IACzB,mCAAa,CAAA;IACb,6DAAuC,CAAA;IACvC,mEAA6C,CAAA;AAC/C,CAAC,EAhBW,kBAAkB,kCAAlB,kBAAkB,QAgB7B;AAED,MAAa,sBAAsB;CAKlC;AALD,wDAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-plugin-conversation.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/gptplugin/create-plugin-conversation.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,2BAA2B;IAEtC,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreatePluginConversationDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreatePluginConversationDto {
|
|
15
|
+
}
|
|
16
|
+
exports.CreatePluginConversationDto = CreatePluginConversationDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], CreatePluginConversationDto.prototype, "message", void 0);
|
|
21
|
+
//# sourceMappingURL=create-plugin-conversation.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-plugin-conversation.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/gptplugin/create-plugin-conversation.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAE7C,MAAa,2BAA2B;CAGvC;AAHD,kEAGC;AADC;IADC,IAAA,4BAAU,GAAE;;4DACG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/gptplugin/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/gptplugin/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,cAAc,CAAC"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-plugin.dto"), exports);
|
|
18
|
+
__exportStar(require("./create-plugin-conversation.dto"), exports);
|
|
18
19
|
__exportStar(require("./whoami.dto"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/gptplugin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/gptplugin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,mEAAiD;AACjD,+CAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-response.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/trigger/trigger-response.dto.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAkB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"trigger-response.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/trigger/trigger-response.dto.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAkB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-response.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/trigger/trigger-response.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"trigger-response.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/trigger/trigger-response.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;CAW9B;AAXD,gDAWC"}
|