diff --git a/main.js b/main.js
index a6a0b12..f616252 100644
--- a/main.js
+++ b/main.js
@@ -2741,7 +2741,6 @@ var require_runtime = __commonJS({
for (const middleware of this.middleware) {
if (middleware.pre) {
fetchParams = await middleware.pre({
- // @ts-ignore
fetch: this.fetchApi,
...fetchParams
}) || fetchParams;
@@ -2751,7 +2750,6 @@ var require_runtime = __commonJS({
for (const middleware of this.middleware) {
if (middleware.post) {
response = await middleware.post({
- // @ts-ignore
fetch: this.fetchApi,
url: fetchParams.url,
init: fetchParams.init,
@@ -2898,10 +2896,10 @@ var require_runtime = __commonJS({
}).filter((part) => part.length > 0).join("&");
}
exports.querystring = querystring3;
- function mapValues1061(data, fn) {
+ function mapValues1114(data, fn) {
return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
}
- exports.mapValues = mapValues1061;
+ exports.mapValues = mapValues1114;
function canConsumeForm2(consumes) {
for (const consume of consumes) {
if ("multipart/form-data" === consume.contentType) {
@@ -4018,6 +4016,17 @@ var require_ApplicationNameEnum = __commonJS({
ApplicationNameEnum11["Slack"] = "SLACK";
ApplicationNameEnum11["AzureDataStudio"] = "AZURE_DATA_STUDIO";
ApplicationNameEnum11["OpenSource"] = "OPEN_SOURCE";
+ ApplicationNameEnum11["RStudio"] = "R_STUDIO";
+ ApplicationNameEnum11["Vim"] = "VIM";
+ ApplicationNameEnum11["Notion"] = "NOTION";
+ ApplicationNameEnum11["GithubDesktop"] = "GITHUB_DESKTOP";
+ ApplicationNameEnum11["Raycast"] = "RAYCAST";
+ ApplicationNameEnum11["Replit"] = "REPLIT";
+ ApplicationNameEnum11["Alfred"] = "ALFRED";
+ ApplicationNameEnum11["Figma"] = "FIGMA";
+ ApplicationNameEnum11["Sketch"] = "SKETCH";
+ ApplicationNameEnum11["AdobeIllustrator"] = "ADOBE_ILLUSTRATOR";
+ ApplicationNameEnum11["NotepadPlusPlus"] = "NOTEPAD_PLUS_PLUS";
ApplicationNameEnum11["Unknown"] = "UNKNOWN";
})(ApplicationNameEnum10 || (exports.ApplicationNameEnum = ApplicationNameEnum10 = {}));
function ApplicationNameEnumFromJSON4(json) {
@@ -4117,7 +4126,8 @@ var require_Asset = __commonJS({
"annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.AnnotationsFromJSON)(json["annotations"]),
"hints": !(0, runtime_1.exists)(json, "hints") ? void 0 : (0, _1.HintsFromJSON)(json["hints"]),
"anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, _1.AnchorsFromJSON)(json["anchors"]),
- "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, _1.ConversationsFromJSON)(json["conversations"])
+ "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, _1.ConversationsFromJSON)(json["conversations"]),
+ "demo": !(0, runtime_1.exists)(json, "demo") ? void 0 : json["demo"]
};
}
exports.AssetFromJSONTyped = AssetFromJSONTyped15;
@@ -4156,7 +4166,8 @@ var require_Asset = __commonJS({
"annotations": (0, _1.AnnotationsToJSON)(value.annotations),
"hints": (0, _1.HintsToJSON)(value.hints),
"anchors": (0, _1.AnchorsToJSON)(value.anchors),
- "conversations": (0, _1.ConversationsToJSON)(value.conversations)
+ "conversations": (0, _1.ConversationsToJSON)(value.conversations),
+ "demo": value.demo
};
}
exports.AssetToJSON = AssetToJSON7;
@@ -5708,6 +5719,8 @@ var require_ClassificationSpecificEnum = __commonJS({
ClassificationSpecificEnum33["Fs"] = "fs";
ClassificationSpecificEnum33["Fsi"] = "fsi";
ClassificationSpecificEnum33["Fsx"] = "fsx";
+ ClassificationSpecificEnum33["Tf"] = "tf";
+ ClassificationSpecificEnum33["Vba"] = "vba";
})(ClassificationSpecificEnum32 || (exports.ClassificationSpecificEnum = ClassificationSpecificEnum32 = {}));
function ClassificationSpecificEnumFromJSON4(json) {
return ClassificationSpecificEnumFromJSONTyped31(json, false);
@@ -5891,10 +5904,13 @@ var require_Conversation = __commonJS({
"messages": (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]),
"model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ReferencedModelFromJSON)(json["model"]),
"assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]),
+ "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, _1.FlattenedWebsitesFromJSON)(json["websites"]),
"anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, _1.FlattenedAnchorsFromJSON)(json["anchors"]),
"type": (0, _1.ConversationTypeEnumFromJSON)(json["type"]),
"grounding": !(0, runtime_1.exists)(json, "grounding") ? void 0 : (0, _1.ConversationGroundingFromJSON)(json["grounding"]),
- "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"])
+ "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]),
+ "pipeline": !(0, runtime_1.exists)(json, "pipeline") ? void 0 : (0, _1.QGPTPromptPipelineFromJSON)(json["pipeline"]),
+ "demo": !(0, runtime_1.exists)(json, "demo") ? void 0 : json["demo"]
};
}
exports.ConversationFromJSONTyped = ConversationFromJSONTyped6;
@@ -5918,10 +5934,13 @@ var require_Conversation = __commonJS({
"messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages),
"model": (0, _1.ReferencedModelToJSON)(value.model),
"assets": (0, _1.FlattenedAssetsToJSON)(value.assets),
+ "websites": (0, _1.FlattenedWebsitesToJSON)(value.websites),
"anchors": (0, _1.FlattenedAnchorsToJSON)(value.anchors),
"type": (0, _1.ConversationTypeEnumToJSON)(value.type),
"grounding": (0, _1.ConversationGroundingToJSON)(value.grounding),
- "score": (0, _1.ScoreToJSON)(value.score)
+ "score": (0, _1.ScoreToJSON)(value.score),
+ "pipeline": (0, _1.QGPTPromptPipelineToJSON)(value.pipeline),
+ "demo": value.demo
};
}
exports.ConversationToJSON = ConversationToJSON5;
@@ -6352,6 +6371,84 @@ var require_DeletedExternalProviderApiKey = __commonJS({
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/DetectedExternalApplication.js
+var require_DetectedExternalApplication = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/DetectedExternalApplication.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.DetectedExternalApplicationToJSON = exports.DetectedExternalApplicationFromJSONTyped = exports.DetectedExternalApplicationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function DetectedExternalApplicationFromJSON3(json) {
+ return DetectedExternalApplicationFromJSONTyped3(json, false);
+ }
+ exports.DetectedExternalApplicationFromJSON = DetectedExternalApplicationFromJSON3;
+ function DetectedExternalApplicationFromJSONTyped3(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "name": json["name"],
+ "version": !(0, runtime_1.exists)(json, "version") ? void 0 : json["version"]
+ };
+ }
+ exports.DetectedExternalApplicationFromJSONTyped = DetectedExternalApplicationFromJSONTyped3;
+ function DetectedExternalApplicationToJSON3(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "name": value.name,
+ "version": value.version
+ };
+ }
+ exports.DetectedExternalApplicationToJSON = DetectedExternalApplicationToJSON3;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/DetectedExternalApplications.js
+var require_DetectedExternalApplications = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/DetectedExternalApplications.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.DetectedExternalApplicationsToJSON = exports.DetectedExternalApplicationsFromJSONTyped = exports.DetectedExternalApplicationsFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function DetectedExternalApplicationsFromJSON2(json) {
+ return DetectedExternalApplicationsFromJSONTyped(json, false);
+ }
+ exports.DetectedExternalApplicationsFromJSON = DetectedExternalApplicationsFromJSON2;
+ function DetectedExternalApplicationsFromJSONTyped(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "iterable": json["iterable"].map(_1.DetectedExternalApplicationFromJSON)
+ };
+ }
+ exports.DetectedExternalApplicationsFromJSONTyped = DetectedExternalApplicationsFromJSONTyped;
+ function DetectedExternalApplicationsToJSON2(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "iterable": value.iterable.map(_1.DetectedExternalApplicationToJSON)
+ };
+ }
+ exports.DetectedExternalApplicationsToJSON = DetectedExternalApplicationsToJSON2;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/DiscoveredAsset.js
var require_DiscoveredAsset = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/DiscoveredAsset.js"(exports) {
@@ -6807,10 +6904,10 @@ var require_EmbeddedModelSchema = __commonJS({
exports.EmbeddedModelSchemaToJSON = exports.EmbeddedModelSchemaFromJSONTyped = exports.EmbeddedModelSchemaFromJSON = void 0;
var _1 = require_models();
function EmbeddedModelSchemaFromJSON6(json) {
- return EmbeddedModelSchemaFromJSONTyped907(json, false);
+ return EmbeddedModelSchemaFromJSONTyped960(json, false);
}
exports.EmbeddedModelSchemaFromJSON = EmbeddedModelSchemaFromJSON6;
- function EmbeddedModelSchemaFromJSONTyped907(json, ignoreDiscriminator) {
+ function EmbeddedModelSchemaFromJSONTyped960(json, ignoreDiscriminator) {
if (json === void 0 || json === null) {
return json;
}
@@ -6819,7 +6916,7 @@ var require_EmbeddedModelSchema = __commonJS({
"semantic": (0, _1.EmbeddedModelSchemaSemanticVersionEnumFromJSON)(json["semantic"])
};
}
- exports.EmbeddedModelSchemaFromJSONTyped = EmbeddedModelSchemaFromJSONTyped907;
+ exports.EmbeddedModelSchemaFromJSONTyped = EmbeddedModelSchemaFromJSONTyped960;
function EmbeddedModelSchemaToJSON4(value) {
if (value === void 0) {
return void 0;
@@ -8179,7 +8276,8 @@ var require_FlattenedAsset = __commonJS({
"annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.FlattenedAnnotationsFromJSON)(json["annotations"]),
"hints": !(0, runtime_1.exists)(json, "hints") ? void 0 : (0, _1.FlattenedHintsFromJSON)(json["hints"]),
"anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, _1.FlattenedAnchorsFromJSON)(json["anchors"]),
- "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, _1.FlattenedConversationsFromJSON)(json["conversations"])
+ "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, _1.FlattenedConversationsFromJSON)(json["conversations"]),
+ "demo": !(0, runtime_1.exists)(json, "demo") ? void 0 : json["demo"]
};
}
exports.FlattenedAssetFromJSONTyped = FlattenedAssetFromJSONTyped18;
@@ -8218,7 +8316,8 @@ var require_FlattenedAsset = __commonJS({
"annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations),
"hints": (0, _1.FlattenedHintsToJSON)(value.hints),
"anchors": (0, _1.FlattenedAnchorsToJSON)(value.anchors),
- "conversations": (0, _1.FlattenedConversationsToJSON)(value.conversations)
+ "conversations": (0, _1.FlattenedConversationsToJSON)(value.conversations),
+ "demo": value.demo
};
}
exports.FlattenedAssetToJSON = FlattenedAssetToJSON4;
@@ -8296,10 +8395,13 @@ var require_FlattenedConversation = __commonJS({
"messages": (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]),
"model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ReferencedModelFromJSON)(json["model"]),
"assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]),
+ "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, _1.FlattenedWebsitesFromJSON)(json["websites"]),
"anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, _1.FlattenedAnchorsFromJSON)(json["anchors"]),
"type": (0, _1.ConversationTypeEnumFromJSON)(json["type"]),
"grounding": !(0, runtime_1.exists)(json, "grounding") ? void 0 : (0, _1.ConversationGroundingFromJSON)(json["grounding"]),
- "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"])
+ "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]),
+ "pipeline": !(0, runtime_1.exists)(json, "pipeline") ? void 0 : (0, _1.QGPTPromptPipelineFromJSON)(json["pipeline"]),
+ "demo": !(0, runtime_1.exists)(json, "demo") ? void 0 : json["demo"]
};
}
exports.FlattenedConversationFromJSONTyped = FlattenedConversationFromJSONTyped6;
@@ -8323,10 +8425,13 @@ var require_FlattenedConversation = __commonJS({
"messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages),
"model": (0, _1.ReferencedModelToJSON)(value.model),
"assets": (0, _1.FlattenedAssetsToJSON)(value.assets),
+ "websites": (0, _1.FlattenedWebsitesToJSON)(value.websites),
"anchors": (0, _1.FlattenedAnchorsToJSON)(value.anchors),
"type": (0, _1.ConversationTypeEnumToJSON)(value.type),
"grounding": (0, _1.ConversationGroundingToJSON)(value.grounding),
- "score": (0, _1.ScoreToJSON)(value.score)
+ "score": (0, _1.ScoreToJSON)(value.score),
+ "pipeline": (0, _1.QGPTPromptPipelineToJSON)(value.pipeline),
+ "demo": value.demo
};
}
exports.FlattenedConversationToJSON = FlattenedConversationToJSON4;
@@ -9387,6 +9492,7 @@ var require_FlattenedWebsite = __commonJS({
"mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], _1.MechanismEnumFromJSON),
"interactions": !(0, runtime_1.exists)(json, "interactions") ? void 0 : json["interactions"],
"persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, _1.FlattenedPersonsFromJSON)(json["persons"]),
+ "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, _1.FlattenedConversationsFromJSON)(json["conversations"]),
"score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"])
};
}
@@ -9410,6 +9516,7 @@ var require_FlattenedWebsite = __commonJS({
"mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, _1.MechanismEnumToJSON),
"interactions": value.interactions,
"persons": (0, _1.FlattenedPersonsToJSON)(value.persons),
+ "conversations": (0, _1.FlattenedConversationsToJSON)(value.conversations),
"score": (0, _1.ScoreToJSON)(value.score)
};
}
@@ -11160,8 +11267,12 @@ var require_ModelFoundationEnum = __commonJS({
ModelFoundationEnum7["Distilroberta"] = "DISTILROBERTA";
ModelFoundationEnum7["Mistral7B"] = "MISTRAL_7B";
ModelFoundationEnum7["Gemini"] = "GEMINI";
+ ModelFoundationEnum7["Gemini15"] = "GEMINI_1.5";
ModelFoundationEnum7["FastText"] = "FAST_TEXT";
ModelFoundationEnum7["Unixcoder"] = "UNIXCODER";
+ ModelFoundationEnum7["Phi15"] = "PHI_1.5";
+ ModelFoundationEnum7["Phi2"] = "PHI_2";
+ ModelFoundationEnum7["Mixtral8X7B"] = "MIXTRAL_8_x_7B";
})(ModelFoundationEnum6 || (exports.ModelFoundationEnum = ModelFoundationEnum6 = {}));
function ModelFoundationEnumFromJSON4(json) {
return ModelFoundationEnumFromJSONTyped8(json, false);
@@ -11667,6 +11778,248 @@ var require_OCRAnalysis = __commonJS({
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceCPUHardwareInformation.js
+var require_OSDeviceCPUHardwareInformation = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceCPUHardwareInformation.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.OSDeviceCPUHardwareInformationToJSON = exports.OSDeviceCPUHardwareInformationFromJSONTyped = exports.OSDeviceCPUHardwareInformationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function OSDeviceCPUHardwareInformationFromJSON3(json) {
+ return OSDeviceCPUHardwareInformationFromJSONTyped4(json, false);
+ }
+ exports.OSDeviceCPUHardwareInformationFromJSON = OSDeviceCPUHardwareInformationFromJSON3;
+ function OSDeviceCPUHardwareInformationFromJSONTyped4(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"],
+ "memory": !(0, runtime_1.exists)(json, "memory") ? void 0 : json["memory"]
+ };
+ }
+ exports.OSDeviceCPUHardwareInformationFromJSONTyped = OSDeviceCPUHardwareInformationFromJSONTyped4;
+ function OSDeviceCPUHardwareInformationToJSON3(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "name": value.name,
+ "memory": value.memory
+ };
+ }
+ exports.OSDeviceCPUHardwareInformationToJSON = OSDeviceCPUHardwareInformationToJSON3;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceDependenciesInformation.js
+var require_OSDeviceDependenciesInformation = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceDependenciesInformation.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.OSDeviceDependenciesInformationToJSON = exports.OSDeviceDependenciesInformationFromJSONTyped = exports.OSDeviceDependenciesInformationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function OSDeviceDependenciesInformationFromJSON3(json) {
+ return OSDeviceDependenciesInformationFromJSONTyped4(json, false);
+ }
+ exports.OSDeviceDependenciesInformationFromJSON = OSDeviceDependenciesInformationFromJSON3;
+ function OSDeviceDependenciesInformationFromJSONTyped4(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "vulkan": json["vulkan"]
+ };
+ }
+ exports.OSDeviceDependenciesInformationFromJSONTyped = OSDeviceDependenciesInformationFromJSONTyped4;
+ function OSDeviceDependenciesInformationToJSON3(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "vulkan": value.vulkan
+ };
+ }
+ exports.OSDeviceDependenciesInformationToJSON = OSDeviceDependenciesInformationToJSON3;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceGPUHardwareCapabilitiesInformation.js
+var require_OSDeviceGPUHardwareCapabilitiesInformation = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceGPUHardwareCapabilitiesInformation.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.OSDeviceGPUHardwareCapabilitiesInformationToJSON = exports.OSDeviceGPUHardwareCapabilitiesInformationFromJSONTyped = exports.OSDeviceGPUHardwareCapabilitiesInformationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function OSDeviceGPUHardwareCapabilitiesInformationFromJSON3(json) {
+ return OSDeviceGPUHardwareCapabilitiesInformationFromJSONTyped4(json, false);
+ }
+ exports.OSDeviceGPUHardwareCapabilitiesInformationFromJSON = OSDeviceGPUHardwareCapabilitiesInformationFromJSON3;
+ function OSDeviceGPUHardwareCapabilitiesInformationFromJSONTyped4(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "llm": !(0, runtime_1.exists)(json, "llm") ? void 0 : json["llm"]
+ };
+ }
+ exports.OSDeviceGPUHardwareCapabilitiesInformationFromJSONTyped = OSDeviceGPUHardwareCapabilitiesInformationFromJSONTyped4;
+ function OSDeviceGPUHardwareCapabilitiesInformationToJSON3(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "llm": value.llm
+ };
+ }
+ exports.OSDeviceGPUHardwareCapabilitiesInformationToJSON = OSDeviceGPUHardwareCapabilitiesInformationToJSON3;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceGPUHardwareInformation.js
+var require_OSDeviceGPUHardwareInformation = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceGPUHardwareInformation.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.OSDeviceGPUHardwareInformationToJSON = exports.OSDeviceGPUHardwareInformationFromJSONTyped = exports.OSDeviceGPUHardwareInformationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function OSDeviceGPUHardwareInformationFromJSON3(json) {
+ return OSDeviceGPUHardwareInformationFromJSONTyped4(json, false);
+ }
+ exports.OSDeviceGPUHardwareInformationFromJSON = OSDeviceGPUHardwareInformationFromJSON3;
+ function OSDeviceGPUHardwareInformationFromJSONTyped4(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"],
+ "memory": !(0, runtime_1.exists)(json, "memory") ? void 0 : json["memory"],
+ "capabilities": !(0, runtime_1.exists)(json, "capabilities") ? void 0 : (0, _1.OSDeviceGPUHardwareCapabilitiesInformationFromJSON)(json["capabilities"])
+ };
+ }
+ exports.OSDeviceGPUHardwareInformationFromJSONTyped = OSDeviceGPUHardwareInformationFromJSONTyped4;
+ function OSDeviceGPUHardwareInformationToJSON3(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "name": value.name,
+ "memory": value.memory,
+ "capabilities": (0, _1.OSDeviceGPUHardwareCapabilitiesInformationToJSON)(value.capabilities)
+ };
+ }
+ exports.OSDeviceGPUHardwareInformationToJSON = OSDeviceGPUHardwareInformationToJSON3;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceHardwareInformation.js
+var require_OSDeviceHardwareInformation = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceHardwareInformation.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.OSDeviceHardwareInformationToJSON = exports.OSDeviceHardwareInformationFromJSONTyped = exports.OSDeviceHardwareInformationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function OSDeviceHardwareInformationFromJSON3(json) {
+ return OSDeviceHardwareInformationFromJSONTyped4(json, false);
+ }
+ exports.OSDeviceHardwareInformationFromJSON = OSDeviceHardwareInformationFromJSON3;
+ function OSDeviceHardwareInformationFromJSONTyped4(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "cpu": !(0, runtime_1.exists)(json, "cpu") ? void 0 : (0, _1.OSDeviceCPUHardwareInformationFromJSON)(json["cpu"]),
+ "gpu": !(0, runtime_1.exists)(json, "gpu") ? void 0 : (0, _1.OSDeviceGPUHardwareInformationFromJSON)(json["gpu"])
+ };
+ }
+ exports.OSDeviceHardwareInformationFromJSONTyped = OSDeviceHardwareInformationFromJSONTyped4;
+ function OSDeviceHardwareInformationToJSON3(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "cpu": (0, _1.OSDeviceCPUHardwareInformationToJSON)(value.cpu),
+ "gpu": (0, _1.OSDeviceGPUHardwareInformationToJSON)(value.gpu)
+ };
+ }
+ exports.OSDeviceHardwareInformationToJSON = OSDeviceHardwareInformationToJSON3;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceInformationReturnable.js
+var require_OSDeviceInformationReturnable = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSDeviceInformationReturnable.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.OSDeviceInformationReturnableToJSON = exports.OSDeviceInformationReturnableFromJSONTyped = exports.OSDeviceInformationReturnableFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function OSDeviceInformationReturnableFromJSON2(json) {
+ return OSDeviceInformationReturnableFromJSONTyped2(json, false);
+ }
+ exports.OSDeviceInformationReturnableFromJSON = OSDeviceInformationReturnableFromJSON2;
+ function OSDeviceInformationReturnableFromJSONTyped2(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "dependencies": !(0, runtime_1.exists)(json, "dependencies") ? void 0 : (0, _1.OSDeviceDependenciesInformationFromJSON)(json["dependencies"]),
+ "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"],
+ "version": !(0, runtime_1.exists)(json, "version") ? void 0 : json["version"],
+ "hardware": !(0, runtime_1.exists)(json, "hardware") ? void 0 : (0, _1.OSDeviceHardwareInformationFromJSON)(json["hardware"])
+ };
+ }
+ exports.OSDeviceInformationReturnableFromJSONTyped = OSDeviceInformationReturnableFromJSONTyped2;
+ function OSDeviceInformationReturnableToJSON2(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "dependencies": (0, _1.OSDeviceDependenciesInformationToJSON)(value.dependencies),
+ "name": value.name,
+ "version": value.version,
+ "hardware": (0, _1.OSDeviceHardwareInformationToJSON)(value.hardware)
+ };
+ }
+ exports.OSDeviceInformationReturnableToJSON = OSDeviceInformationReturnableToJSON2;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSHealth.js
var require_OSHealth = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OSHealth.js"(exports) {
@@ -11707,6 +12060,44 @@ var require_OSHealth = __commonJS({
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OnboardedPersonaDetails.js
+var require_OnboardedPersonaDetails = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OnboardedPersonaDetails.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.OnboardedPersonaDetailsToJSON = exports.OnboardedPersonaDetailsFromJSONTyped = exports.OnboardedPersonaDetailsFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function OnboardedPersonaDetailsFromJSON2(json) {
+ return OnboardedPersonaDetailsFromJSONTyped(json, false);
+ }
+ exports.OnboardedPersonaDetailsFromJSON = OnboardedPersonaDetailsFromJSON2;
+ function OnboardedPersonaDetailsFromJSONTyped(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "seeds": (0, _1.SeedsFromJSON)(json["seeds"])
+ };
+ }
+ exports.OnboardedPersonaDetailsFromJSONTyped = OnboardedPersonaDetailsFromJSONTyped;
+ function OnboardedPersonaDetailsToJSON2(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "seeds": (0, _1.SeedsToJSON)(value.seeds)
+ };
+ }
+ exports.OnboardedPersonaDetailsToJSON = OnboardedPersonaDetailsToJSON2;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OpenAIModelsListInput.js
var require_OpenAIModelsListInput = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OpenAIModelsListInput.js"(exports) {
@@ -12287,6 +12678,46 @@ var require_PredeletedExternalProviderApiKey = __commonJS({
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/PreonboardedPersonaDetails.js
+var require_PreonboardedPersonaDetails = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/PreonboardedPersonaDetails.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.PreonboardedPersonaDetailsToJSON = exports.PreonboardedPersonaDetailsFromJSONTyped = exports.PreonboardedPersonaDetailsFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function PreonboardedPersonaDetailsFromJSON2(json) {
+ return PreonboardedPersonaDetailsFromJSONTyped(json, false);
+ }
+ exports.PreonboardedPersonaDetailsFromJSON = PreonboardedPersonaDetailsFromJSON2;
+ function PreonboardedPersonaDetailsFromJSONTyped(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "languages": !(0, runtime_1.exists)(json, "languages") ? void 0 : json["languages"],
+ "personas": !(0, runtime_1.exists)(json, "personas") ? void 0 : json["personas"]
+ };
+ }
+ exports.PreonboardedPersonaDetailsFromJSONTyped = PreonboardedPersonaDetailsFromJSONTyped;
+ function PreonboardedPersonaDetailsToJSON2(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "languages": value.languages,
+ "personas": value.personas
+ };
+ }
+ exports.PreonboardedPersonaDetailsToJSON = PreonboardedPersonaDetailsToJSON2;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/PreupdatedExternalProviderApiKey.js
var require_PreupdatedExternalProviderApiKey = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/PreupdatedExternalProviderApiKey.js"(exports) {
@@ -12432,6 +12863,82 @@ var require_PseudoAssets = __commonJS({
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTAgentRelatedRoutes.js
+var require_QGPTAgentRelatedRoutes = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTAgentRelatedRoutes.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTAgentRelatedRoutesToJSON = exports.QGPTAgentRelatedRoutesFromJSONTyped = exports.QGPTAgentRelatedRoutesFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTAgentRelatedRoutesFromJSON3(json) {
+ return QGPTAgentRelatedRoutesFromJSONTyped4(json, false);
+ }
+ exports.QGPTAgentRelatedRoutesFromJSON = QGPTAgentRelatedRoutesFromJSON3;
+ function QGPTAgentRelatedRoutesFromJSONTyped4(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "people": !(0, runtime_1.exists)(json, "people") ? void 0 : json["people"]
+ };
+ }
+ exports.QGPTAgentRelatedRoutesFromJSONTyped = QGPTAgentRelatedRoutesFromJSONTyped4;
+ function QGPTAgentRelatedRoutesToJSON3(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "people": value.people
+ };
+ }
+ exports.QGPTAgentRelatedRoutesToJSON = QGPTAgentRelatedRoutesToJSON3;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTAgentRoutes.js
+var require_QGPTAgentRoutes = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTAgentRoutes.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTAgentRoutesToJSON = exports.QGPTAgentRoutesFromJSONTyped = exports.QGPTAgentRoutesFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTAgentRoutesFromJSON3(json) {
+ return QGPTAgentRoutesFromJSONTyped4(json, false);
+ }
+ exports.QGPTAgentRoutesFromJSON = QGPTAgentRoutesFromJSON3;
+ function QGPTAgentRoutesFromJSONTyped4(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "related": !(0, runtime_1.exists)(json, "related") ? void 0 : (0, _1.QGPTAgentRelatedRoutesFromJSON)(json["related"])
+ };
+ }
+ exports.QGPTAgentRoutesFromJSONTyped = QGPTAgentRoutesFromJSONTyped4;
+ function QGPTAgentRoutesToJSON3(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "related": (0, _1.QGPTAgentRelatedRoutesToJSON)(value.related)
+ };
+ }
+ exports.QGPTAgentRoutesToJSON = QGPTAgentRoutesToJSON3;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversation.js
var require_QGPTConversation = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversation.js"(exports) {
@@ -12539,6 +13046,156 @@ var require_QGPTConversationMessageRoleEnum = __commonJS({
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversationPipeline.js
+var require_QGPTConversationPipeline = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversationPipeline.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTConversationPipelineToJSON = exports.QGPTConversationPipelineFromJSONTyped = exports.QGPTConversationPipelineFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTConversationPipelineFromJSON4(json) {
+ return QGPTConversationPipelineFromJSONTyped6(json, false);
+ }
+ exports.QGPTConversationPipelineFromJSON = QGPTConversationPipelineFromJSON4;
+ function QGPTConversationPipelineFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "contextualizedCodeGeneration": !(0, runtime_1.exists)(json, "contextualized_code_generation") ? void 0 : (0, _1.QGPTConversationPipelineForContextualizedCodeGenerationFromJSON)(json["contextualized_code_generation"]),
+ "generalizedCodeDialog": !(0, runtime_1.exists)(json, "generalized_code_dialog") ? void 0 : (0, _1.QGPTConversationPipelineForGeneralizedCodeDialogFromJSON)(json["generalized_code_dialog"]),
+ "contextualizedCodeDialog": !(0, runtime_1.exists)(json, "contextualized_code_dialog") ? void 0 : (0, _1.QGPTConversationPipelineForContextualizedCodeDialogFromJSON)(json["contextualized_code_dialog"])
+ };
+ }
+ exports.QGPTConversationPipelineFromJSONTyped = QGPTConversationPipelineFromJSONTyped6;
+ function QGPTConversationPipelineToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "contextualized_code_generation": (0, _1.QGPTConversationPipelineForContextualizedCodeGenerationToJSON)(value.contextualizedCodeGeneration),
+ "generalized_code_dialog": (0, _1.QGPTConversationPipelineForGeneralizedCodeDialogToJSON)(value.generalizedCodeDialog),
+ "contextualized_code_dialog": (0, _1.QGPTConversationPipelineForContextualizedCodeDialogToJSON)(value.contextualizedCodeDialog)
+ };
+ }
+ exports.QGPTConversationPipelineToJSON = QGPTConversationPipelineToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversationPipelineForContextualizedCodeDialog.js
+var require_QGPTConversationPipelineForContextualizedCodeDialog = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversationPipelineForContextualizedCodeDialog.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTConversationPipelineForContextualizedCodeDialogToJSON = exports.QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped = exports.QGPTConversationPipelineForContextualizedCodeDialogFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTConversationPipelineForContextualizedCodeDialogFromJSON4(json) {
+ return QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped6(json, false);
+ }
+ exports.QGPTConversationPipelineForContextualizedCodeDialogFromJSON = QGPTConversationPipelineForContextualizedCodeDialogFromJSON4;
+ function QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"])
+ };
+ }
+ exports.QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped = QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped6;
+ function QGPTConversationPipelineForContextualizedCodeDialogToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema)
+ };
+ }
+ exports.QGPTConversationPipelineForContextualizedCodeDialogToJSON = QGPTConversationPipelineForContextualizedCodeDialogToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversationPipelineForContextualizedCodeGeneration.js
+var require_QGPTConversationPipelineForContextualizedCodeGeneration = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversationPipelineForContextualizedCodeGeneration.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTConversationPipelineForContextualizedCodeGenerationToJSON = exports.QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped = exports.QGPTConversationPipelineForContextualizedCodeGenerationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTConversationPipelineForContextualizedCodeGenerationFromJSON4(json) {
+ return QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped6(json, false);
+ }
+ exports.QGPTConversationPipelineForContextualizedCodeGenerationFromJSON = QGPTConversationPipelineForContextualizedCodeGenerationFromJSON4;
+ function QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"])
+ };
+ }
+ exports.QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped = QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped6;
+ function QGPTConversationPipelineForContextualizedCodeGenerationToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema)
+ };
+ }
+ exports.QGPTConversationPipelineForContextualizedCodeGenerationToJSON = QGPTConversationPipelineForContextualizedCodeGenerationToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversationPipelineForGeneralizedCodeDialog.js
+var require_QGPTConversationPipelineForGeneralizedCodeDialog = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTConversationPipelineForGeneralizedCodeDialog.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTConversationPipelineForGeneralizedCodeDialogToJSON = exports.QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped = exports.QGPTConversationPipelineForGeneralizedCodeDialogFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTConversationPipelineForGeneralizedCodeDialogFromJSON4(json) {
+ return QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped6(json, false);
+ }
+ exports.QGPTConversationPipelineForGeneralizedCodeDialogFromJSON = QGPTConversationPipelineForGeneralizedCodeDialogFromJSON4;
+ function QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"])
+ };
+ }
+ exports.QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped = QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped6;
+ function QGPTConversationPipelineForGeneralizedCodeDialogToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema)
+ };
+ }
+ exports.QGPTConversationPipelineForGeneralizedCodeDialogToJSON = QGPTConversationPipelineForGeneralizedCodeDialogToJSON4;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTHintsInput.js
var require_QGPTHintsInput = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTHintsInput.js"(exports) {
@@ -12667,6 +13324,46 @@ var require_QGPTPersonsRelatedOutput = __commonJS({
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTPromptPipeline.js
+var require_QGPTPromptPipeline = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTPromptPipeline.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTPromptPipelineToJSON = exports.QGPTPromptPipelineFromJSONTyped = exports.QGPTPromptPipelineFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTPromptPipelineFromJSON4(json) {
+ return QGPTPromptPipelineFromJSONTyped17(json, false);
+ }
+ exports.QGPTPromptPipelineFromJSON = QGPTPromptPipelineFromJSON4;
+ function QGPTPromptPipelineFromJSONTyped17(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "task": !(0, runtime_1.exists)(json, "task") ? void 0 : (0, _1.QGPTTaskPipelineFromJSON)(json["task"]),
+ "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, _1.QGPTConversationPipelineFromJSON)(json["conversation"])
+ };
+ }
+ exports.QGPTPromptPipelineFromJSONTyped = QGPTPromptPipelineFromJSONTyped17;
+ function QGPTPromptPipelineToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "task": (0, _1.QGPTTaskPipelineToJSON)(value.task),
+ "conversation": (0, _1.QGPTConversationPipelineToJSON)(value.conversation)
+ };
+ }
+ exports.QGPTPromptPipelineToJSON = QGPTPromptPipelineToJSON4;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTQuestionAnswer.js
var require_QGPTQuestionAnswer = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTQuestionAnswer.js"(exports) {
@@ -12767,7 +13464,8 @@ var require_QGPTQuestionInput = __commonJS({
"query": json["query"],
"application": !(0, runtime_1.exists)(json, "application") ? void 0 : json["application"],
"model": !(0, runtime_1.exists)(json, "model") ? void 0 : json["model"],
- "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"])
+ "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]),
+ "pipeline": !(0, runtime_1.exists)(json, "pipeline") ? void 0 : (0, _1.QGPTPromptPipelineFromJSON)(json["pipeline"])
};
}
exports.QGPTQuestionInputFromJSONTyped = QGPTQuestionInputFromJSONTyped3;
@@ -12784,7 +13482,8 @@ var require_QGPTQuestionInput = __commonJS({
"query": value.query,
"application": value.application,
"model": value.model,
- "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages)
+ "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages),
+ "pipeline": (0, _1.QGPTPromptPipelineToJSON)(value.pipeline)
};
}
exports.QGPTQuestionInputToJSON = QGPTQuestionInputToJSON3;
@@ -12900,7 +13599,8 @@ var require_QGPTRelevanceInputOptions = __commonJS({
return {
"schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
"database": !(0, runtime_1.exists)(json, "database") ? void 0 : json["database"],
- "question": !(0, runtime_1.exists)(json, "question") ? void 0 : json["question"]
+ "question": !(0, runtime_1.exists)(json, "question") ? void 0 : json["question"],
+ "pipeline": !(0, runtime_1.exists)(json, "pipeline") ? void 0 : (0, _1.QGPTPromptPipelineFromJSON)(json["pipeline"])
};
}
exports.QGPTRelevanceInputOptionsFromJSONTyped = QGPTRelevanceInputOptionsFromJSONTyped3;
@@ -12914,7 +13614,8 @@ var require_QGPTRelevanceInputOptions = __commonJS({
return {
"schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
"database": value.database,
- "question": value.question
+ "question": value.question,
+ "pipeline": (0, _1.QGPTPromptPipelineToJSON)(value.pipeline)
};
}
exports.QGPTRelevanceInputOptionsToJSON = QGPTRelevanceInputOptionsToJSON3;
@@ -12982,7 +13683,8 @@ var require_QGPTRepromptInput = __commonJS({
"query": json["query"],
"conversation": (0, _1.QGPTConversationFromJSON)(json["conversation"]),
"application": !(0, runtime_1.exists)(json, "application") ? void 0 : json["application"],
- "model": !(0, runtime_1.exists)(json, "model") ? void 0 : json["model"]
+ "model": !(0, runtime_1.exists)(json, "model") ? void 0 : json["model"],
+ "pipeline": !(0, runtime_1.exists)(json, "pipeline") ? void 0 : (0, _1.QGPTPromptPipelineFromJSON)(json["pipeline"])
};
}
exports.QGPTRepromptInputFromJSONTyped = QGPTRepromptInputFromJSONTyped;
@@ -12998,7 +13700,8 @@ var require_QGPTRepromptInput = __commonJS({
"query": value.query,
"conversation": (0, _1.QGPTConversationToJSON)(value.conversation),
"application": value.application,
- "model": value.model
+ "model": value.model,
+ "pipeline": (0, _1.QGPTPromptPipelineToJSON)(value.pipeline)
};
}
exports.QGPTRepromptInputToJSON = QGPTRepromptInputToJSON2;
@@ -13096,7 +13799,8 @@ var require_QGPTStreamInput = __commonJS({
"question": !(0, runtime_1.exists)(json, "question") ? void 0 : (0, _1.QGPTQuestionInputFromJSON)(json["question"]),
"request": !(0, runtime_1.exists)(json, "request") ? void 0 : json["request"],
"conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : json["conversation"],
- "stop": !(0, runtime_1.exists)(json, "stop") ? void 0 : json["stop"]
+ "stop": !(0, runtime_1.exists)(json, "stop") ? void 0 : json["stop"],
+ "agent": !(0, runtime_1.exists)(json, "agent") ? void 0 : json["agent"]
};
}
exports.QGPTStreamInputFromJSONTyped = QGPTStreamInputFromJSONTyped;
@@ -13112,7 +13816,8 @@ var require_QGPTStreamInput = __commonJS({
"question": (0, _1.QGPTQuestionInputToJSON)(value.question),
"request": value.request,
"conversation": value.conversation,
- "stop": value.stop
+ "stop": value.stop,
+ "agent": value.agent
};
}
exports.QGPTStreamInputToJSON = QGPTStreamInputToJSON2;
@@ -13142,7 +13847,8 @@ var require_QGPTStreamOutput = __commonJS({
"status": !(0, runtime_1.exists)(json, "status") ? void 0 : (0, _1.QGPTStreamEnumFromJSON)(json["status"]),
"conversation": json["conversation"],
"statusCode": !(0, runtime_1.exists)(json, "statusCode") ? void 0 : json["statusCode"],
- "errorMessage": !(0, runtime_1.exists)(json, "errorMessage") ? void 0 : json["errorMessage"]
+ "errorMessage": !(0, runtime_1.exists)(json, "errorMessage") ? void 0 : json["errorMessage"],
+ "agentRoutes": !(0, runtime_1.exists)(json, "agentRoutes") ? void 0 : (0, _1.QGPTAgentRoutesFromJSON)(json["agentRoutes"])
};
}
exports.QGPTStreamOutputFromJSONTyped = QGPTStreamOutputFromJSONTyped2;
@@ -13160,13 +13866,246 @@ var require_QGPTStreamOutput = __commonJS({
"status": (0, _1.QGPTStreamEnumToJSON)(value.status),
"conversation": value.conversation,
"statusCode": value.statusCode,
- "errorMessage": value.errorMessage
+ "errorMessage": value.errorMessage,
+ "agentRoutes": (0, _1.QGPTAgentRoutesToJSON)(value.agentRoutes)
};
}
exports.QGPTStreamOutputToJSON = QGPTStreamOutputToJSON2;
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipeline.js
+var require_QGPTTaskPipeline = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipeline.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTTaskPipelineToJSON = exports.QGPTTaskPipelineFromJSONTyped = exports.QGPTTaskPipelineFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTTaskPipelineFromJSON4(json) {
+ return QGPTTaskPipelineFromJSONTyped6(json, false);
+ }
+ exports.QGPTTaskPipelineFromJSON = QGPTTaskPipelineFromJSON4;
+ function QGPTTaskPipelineFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "codeExplanation": !(0, runtime_1.exists)(json, "code_explanation") ? void 0 : (0, _1.QGPTTaskPipelineForCodeExplanationFromJSON)(json["code_explanation"]),
+ "codeCommentation": !(0, runtime_1.exists)(json, "code_commentation") ? void 0 : (0, _1.QGPTTaskPipelineForCodeCommentationFromJSON)(json["code_commentation"]),
+ "codeFix": !(0, runtime_1.exists)(json, "code_fix") ? void 0 : (0, _1.QGPTTaskPipelineForCodeFixFromJSON)(json["code_fix"]),
+ "codeModification": !(0, runtime_1.exists)(json, "code_modification") ? void 0 : (0, _1.QGPTTaskPipelineForCodeModificationFromJSON)(json["code_modification"]),
+ "codeCompletion": !(0, runtime_1.exists)(json, "code_completion") ? void 0 : (0, _1.QGPTTaskPipelineForCodeCompletionFromJSON)(json["code_completion"])
+ };
+ }
+ exports.QGPTTaskPipelineFromJSONTyped = QGPTTaskPipelineFromJSONTyped6;
+ function QGPTTaskPipelineToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "code_explanation": (0, _1.QGPTTaskPipelineForCodeExplanationToJSON)(value.codeExplanation),
+ "code_commentation": (0, _1.QGPTTaskPipelineForCodeCommentationToJSON)(value.codeCommentation),
+ "code_fix": (0, _1.QGPTTaskPipelineForCodeFixToJSON)(value.codeFix),
+ "code_modification": (0, _1.QGPTTaskPipelineForCodeModificationToJSON)(value.codeModification),
+ "code_completion": (0, _1.QGPTTaskPipelineForCodeCompletionToJSON)(value.codeCompletion)
+ };
+ }
+ exports.QGPTTaskPipelineToJSON = QGPTTaskPipelineToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeCommentation.js
+var require_QGPTTaskPipelineForCodeCommentation = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeCommentation.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTTaskPipelineForCodeCommentationToJSON = exports.QGPTTaskPipelineForCodeCommentationFromJSONTyped = exports.QGPTTaskPipelineForCodeCommentationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTTaskPipelineForCodeCommentationFromJSON4(json) {
+ return QGPTTaskPipelineForCodeCommentationFromJSONTyped6(json, false);
+ }
+ exports.QGPTTaskPipelineForCodeCommentationFromJSON = QGPTTaskPipelineForCodeCommentationFromJSON4;
+ function QGPTTaskPipelineForCodeCommentationFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"])
+ };
+ }
+ exports.QGPTTaskPipelineForCodeCommentationFromJSONTyped = QGPTTaskPipelineForCodeCommentationFromJSONTyped6;
+ function QGPTTaskPipelineForCodeCommentationToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema)
+ };
+ }
+ exports.QGPTTaskPipelineForCodeCommentationToJSON = QGPTTaskPipelineForCodeCommentationToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeCompletion.js
+var require_QGPTTaskPipelineForCodeCompletion = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeCompletion.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTTaskPipelineForCodeCompletionToJSON = exports.QGPTTaskPipelineForCodeCompletionFromJSONTyped = exports.QGPTTaskPipelineForCodeCompletionFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTTaskPipelineForCodeCompletionFromJSON4(json) {
+ return QGPTTaskPipelineForCodeCompletionFromJSONTyped6(json, false);
+ }
+ exports.QGPTTaskPipelineForCodeCompletionFromJSON = QGPTTaskPipelineForCodeCompletionFromJSON4;
+ function QGPTTaskPipelineForCodeCompletionFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "context": !(0, runtime_1.exists)(json, "context") ? void 0 : json["context"]
+ };
+ }
+ exports.QGPTTaskPipelineForCodeCompletionFromJSONTyped = QGPTTaskPipelineForCodeCompletionFromJSONTyped6;
+ function QGPTTaskPipelineForCodeCompletionToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "context": value.context
+ };
+ }
+ exports.QGPTTaskPipelineForCodeCompletionToJSON = QGPTTaskPipelineForCodeCompletionToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeExplanation.js
+var require_QGPTTaskPipelineForCodeExplanation = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeExplanation.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTTaskPipelineForCodeExplanationToJSON = exports.QGPTTaskPipelineForCodeExplanationFromJSONTyped = exports.QGPTTaskPipelineForCodeExplanationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTTaskPipelineForCodeExplanationFromJSON4(json) {
+ return QGPTTaskPipelineForCodeExplanationFromJSONTyped6(json, false);
+ }
+ exports.QGPTTaskPipelineForCodeExplanationFromJSON = QGPTTaskPipelineForCodeExplanationFromJSON4;
+ function QGPTTaskPipelineForCodeExplanationFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"])
+ };
+ }
+ exports.QGPTTaskPipelineForCodeExplanationFromJSONTyped = QGPTTaskPipelineForCodeExplanationFromJSONTyped6;
+ function QGPTTaskPipelineForCodeExplanationToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema)
+ };
+ }
+ exports.QGPTTaskPipelineForCodeExplanationToJSON = QGPTTaskPipelineForCodeExplanationToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeFix.js
+var require_QGPTTaskPipelineForCodeFix = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeFix.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTTaskPipelineForCodeFixToJSON = exports.QGPTTaskPipelineForCodeFixFromJSONTyped = exports.QGPTTaskPipelineForCodeFixFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTTaskPipelineForCodeFixFromJSON4(json) {
+ return QGPTTaskPipelineForCodeFixFromJSONTyped6(json, false);
+ }
+ exports.QGPTTaskPipelineForCodeFixFromJSON = QGPTTaskPipelineForCodeFixFromJSON4;
+ function QGPTTaskPipelineForCodeFixFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "error": !(0, runtime_1.exists)(json, "error") ? void 0 : json["error"]
+ };
+ }
+ exports.QGPTTaskPipelineForCodeFixFromJSONTyped = QGPTTaskPipelineForCodeFixFromJSONTyped6;
+ function QGPTTaskPipelineForCodeFixToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "error": value.error
+ };
+ }
+ exports.QGPTTaskPipelineForCodeFixToJSON = QGPTTaskPipelineForCodeFixToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeModification.js
+var require_QGPTTaskPipelineForCodeModification = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/QGPTTaskPipelineForCodeModification.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QGPTTaskPipelineForCodeModificationToJSON = exports.QGPTTaskPipelineForCodeModificationFromJSONTyped = exports.QGPTTaskPipelineForCodeModificationFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function QGPTTaskPipelineForCodeModificationFromJSON4(json) {
+ return QGPTTaskPipelineForCodeModificationFromJSONTyped6(json, false);
+ }
+ exports.QGPTTaskPipelineForCodeModificationFromJSON = QGPTTaskPipelineForCodeModificationFromJSON4;
+ function QGPTTaskPipelineForCodeModificationFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "instruction": !(0, runtime_1.exists)(json, "instruction") ? void 0 : json["instruction"]
+ };
+ }
+ exports.QGPTTaskPipelineForCodeModificationFromJSONTyped = QGPTTaskPipelineForCodeModificationFromJSONTyped6;
+ function QGPTTaskPipelineForCodeModificationToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "instruction": value.instruction
+ };
+ }
+ exports.QGPTTaskPipelineForCodeModificationToJSON = QGPTTaskPipelineForCodeModificationToJSON4;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Reaction.js
var require_Reaction = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Reaction.js"(exports) {
@@ -14632,7 +15571,8 @@ var require_SeededActivity = __commonJS({
"asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.ReferencedAssetFromJSON)(json["asset"]),
"user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.ReferencedUserFromJSON)(json["user"]),
"format": !(0, runtime_1.exists)(json, "format") ? void 0 : (0, _1.ReferencedFormatFromJSON)(json["format"]),
- "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"])
+ "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]),
+ "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, _1.ReferencedConversationFromJSON)(json["conversation"])
};
}
exports.SeededActivityFromJSONTyped = SeededActivityFromJSONTyped;
@@ -14649,7 +15589,8 @@ var require_SeededActivity = __commonJS({
"asset": (0, _1.ReferencedAssetToJSON)(value.asset),
"user": (0, _1.ReferencedUserToJSON)(value.user),
"format": (0, _1.ReferencedFormatToJSON)(value.format),
- "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism)
+ "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism),
+ "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation)
};
}
exports.SeededActivityToJSON = SeededActivityToJSON2;
@@ -14835,7 +15776,9 @@ var require_SeededAsset = __commonJS({
"format": (0, _1.SeededFormatFromJSON)(json["format"]),
"discovered": !(0, runtime_1.exists)(json, "discovered") ? void 0 : json["discovered"],
"available": !(0, runtime_1.exists)(json, "available") ? void 0 : (0, _1.AvailableFormatsFromJSON)(json["available"]),
- "pseudo": !(0, runtime_1.exists)(json, "pseudo") ? void 0 : json["pseudo"]
+ "pseudo": !(0, runtime_1.exists)(json, "pseudo") ? void 0 : json["pseudo"],
+ "enrichment": !(0, runtime_1.exists)(json, "enrichment") ? void 0 : (0, _1.SeededAssetEnrichmentFromJSON)(json["enrichment"]),
+ "demo": !(0, runtime_1.exists)(json, "demo") ? void 0 : json["demo"]
};
}
exports.SeededAssetFromJSONTyped = SeededAssetFromJSONTyped5;
@@ -14853,13 +15796,59 @@ var require_SeededAsset = __commonJS({
"format": (0, _1.SeededFormatToJSON)(value.format),
"discovered": value.discovered,
"available": (0, _1.AvailableFormatsToJSON)(value.available),
- "pseudo": value.pseudo
+ "pseudo": value.pseudo,
+ "enrichment": (0, _1.SeededAssetEnrichmentToJSON)(value.enrichment),
+ "demo": value.demo
};
}
exports.SeededAssetToJSON = SeededAssetToJSON3;
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededAssetEnrichment.js
+var require_SeededAssetEnrichment = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededAssetEnrichment.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.SeededAssetEnrichmentToJSON = exports.SeededAssetEnrichmentFromJSONTyped = exports.SeededAssetEnrichmentFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function SeededAssetEnrichmentFromJSON3(json) {
+ return SeededAssetEnrichmentFromJSONTyped4(json, false);
+ }
+ exports.SeededAssetEnrichmentFromJSON = SeededAssetEnrichmentFromJSON3;
+ function SeededAssetEnrichmentFromJSONTyped4(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : json["tags"],
+ "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : json["websites"],
+ "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : json["persons"],
+ "hints": !(0, runtime_1.exists)(json, "hints") ? void 0 : json["hints"]
+ };
+ }
+ exports.SeededAssetEnrichmentFromJSONTyped = SeededAssetEnrichmentFromJSONTyped4;
+ function SeededAssetEnrichmentToJSON3(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "tags": value.tags,
+ "websites": value.websites,
+ "persons": value.persons,
+ "hints": value.hints
+ };
+ }
+ exports.SeededAssetEnrichmentToJSON = SeededAssetEnrichmentToJSON3;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededAssetMetadata.js
var require_SeededAssetMetadata = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededAssetMetadata.js"(exports) {
@@ -15306,7 +16295,8 @@ var require_SeededConnectorTracking = __commonJS({
"session": !(0, runtime_1.exists)(json, "session") ? void 0 : (0, _1.SeededTrackedSessionEventFromJSON)(json["session"]),
"assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.SeededTrackedAssetsEventFromJSON)(json["assets"]),
"ml": !(0, runtime_1.exists)(json, "ml") ? void 0 : (0, _1.SeededTrackedMachineLearningEventFromJSON)(json["ml"]),
- "adoption": !(0, runtime_1.exists)(json, "adoption") ? void 0 : (0, _1.SeededTrackedAdoptionEventFromJSON)(json["adoption"])
+ "adoption": !(0, runtime_1.exists)(json, "adoption") ? void 0 : (0, _1.SeededTrackedAdoptionEventFromJSON)(json["adoption"]),
+ "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, _1.SeededTrackedConversationEventFromJSON)(json["conversation"])
};
}
exports.SeededConnectorTrackingFromJSONTyped = SeededConnectorTrackingFromJSONTyped11;
@@ -15326,7 +16316,8 @@ var require_SeededConnectorTracking = __commonJS({
"session": (0, _1.SeededTrackedSessionEventToJSON)(value.session),
"assets": (0, _1.SeededTrackedAssetsEventToJSON)(value.assets),
"ml": (0, _1.SeededTrackedMachineLearningEventToJSON)(value.ml),
- "adoption": (0, _1.SeededTrackedAdoptionEventToJSON)(value.adoption)
+ "adoption": (0, _1.SeededTrackedAdoptionEventToJSON)(value.adoption),
+ "conversation": (0, _1.SeededTrackedConversationEventToJSON)(value.conversation)
};
}
exports.SeededConnectorTrackingToJSON = SeededConnectorTrackingToJSON4;
@@ -15358,8 +16349,11 @@ var require_SeededConversation = __commonJS({
"messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : json["messages"].map(_1.SeededConversationMessageFromJSON),
"model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ReferencedModelFromJSON)(json["model"]),
"assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]),
+ "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, _1.FlattenedWebsitesFromJSON)(json["websites"]),
"anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : json["anchors"].map(_1.SeededAnchorFromJSON),
- "type": (0, _1.ConversationTypeEnumFromJSON)(json["type"])
+ "type": (0, _1.ConversationTypeEnumFromJSON)(json["type"]),
+ "pipeline": !(0, runtime_1.exists)(json, "pipeline") ? void 0 : (0, _1.QGPTPromptPipelineFromJSON)(json["pipeline"]),
+ "demo": !(0, runtime_1.exists)(json, "demo") ? void 0 : json["demo"]
};
}
exports.SeededConversationFromJSONTyped = SeededConversationFromJSONTyped;
@@ -15379,8 +16373,11 @@ var require_SeededConversation = __commonJS({
"messages": value.messages === void 0 ? void 0 : value.messages.map(_1.SeededConversationMessageToJSON),
"model": (0, _1.ReferencedModelToJSON)(value.model),
"assets": (0, _1.FlattenedAssetsToJSON)(value.assets),
+ "websites": (0, _1.FlattenedWebsitesToJSON)(value.websites),
"anchors": value.anchors === void 0 ? void 0 : value.anchors.map(_1.SeededAnchorToJSON),
- "type": (0, _1.ConversationTypeEnumToJSON)(value.type)
+ "type": (0, _1.ConversationTypeEnumToJSON)(value.type),
+ "pipeline": (0, _1.QGPTPromptPipelineToJSON)(value.pipeline),
+ "demo": value.demo
};
}
exports.SeededConversationToJSON = SeededConversationToJSON2;
@@ -17006,6 +18003,48 @@ var require_SeededTrackedAssetsEventMetadata = __commonJS({
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededTrackedConversationEvent.js
+var require_SeededTrackedConversationEvent = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededTrackedConversationEvent.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.SeededTrackedConversationEventToJSON = exports.SeededTrackedConversationEventFromJSONTyped = exports.SeededTrackedConversationEventFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function SeededTrackedConversationEventFromJSON4(json) {
+ return SeededTrackedConversationEventFromJSONTyped6(json, false);
+ }
+ exports.SeededTrackedConversationEventFromJSON = SeededTrackedConversationEventFromJSON4;
+ function SeededTrackedConversationEventFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "identifierDescriptionPair": (0, _1.TrackedConversationEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]),
+ "conversation": (0, _1.ReferencedConversationFromJSON)(json["conversation"]),
+ "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.TrackedConversationEventMetadataFromJSON)(json["metadata"])
+ };
+ }
+ exports.SeededTrackedConversationEventFromJSONTyped = SeededTrackedConversationEventFromJSONTyped6;
+ function SeededTrackedConversationEventToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "identifier_description_pair": (0, _1.TrackedConversationEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair),
+ "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation),
+ "metadata": (0, _1.TrackedConversationEventMetadataToJSON)(value.metadata)
+ };
+ }
+ exports.SeededTrackedConversationEventToJSON = SeededTrackedConversationEventToJSON4;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededTrackedFormatEvent.js
var require_SeededTrackedFormatEvent = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededTrackedFormatEvent.js"(exports) {
@@ -17395,6 +18434,7 @@ var require_SeededWebsite = __commonJS({
return {
"schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
"asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : json["asset"],
+ "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : json["conversation"],
"url": json["url"],
"name": json["name"],
"mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]),
@@ -17412,6 +18452,7 @@ var require_SeededWebsite = __commonJS({
return {
"schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
"asset": value.asset,
+ "conversation": value.conversation,
"url": value.url,
"name": value.name,
"mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism),
@@ -17431,10 +18472,10 @@ var require_Seeds = __commonJS({
var runtime_1 = require_runtime();
var _1 = require_models();
function SeedsFromJSON3(json) {
- return SeedsFromJSONTyped3(json, false);
+ return SeedsFromJSONTyped5(json, false);
}
exports.SeedsFromJSON = SeedsFromJSON3;
- function SeedsFromJSONTyped3(json, ignoreDiscriminator) {
+ function SeedsFromJSONTyped5(json, ignoreDiscriminator) {
if (json === void 0 || json === null) {
return json;
}
@@ -17443,7 +18484,7 @@ var require_Seeds = __commonJS({
"iterable": json["iterable"].map(_1.SeedFromJSON)
};
}
- exports.SeedsFromJSONTyped = SeedsFromJSONTyped3;
+ exports.SeedsFromJSONTyped = SeedsFromJSONTyped5;
function SeedsToJSON4(value) {
if (value === void 0) {
return void 0;
@@ -20130,6 +21171,162 @@ var require_TrackedAssetsEventSearchMetadataResults = __commonJS({
}
});
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/TrackedConversationEventIdentifierDescriptionPairs.js
+var require_TrackedConversationEventIdentifierDescriptionPairs = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/TrackedConversationEventIdentifierDescriptionPairs.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.TrackedConversationEventIdentifierDescriptionPairsToJSON = exports.TrackedConversationEventIdentifierDescriptionPairsFromJSONTyped = exports.TrackedConversationEventIdentifierDescriptionPairsFromJSON = exports.TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheSystemEnum = exports.TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheUserEnum = exports.TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheSystemEnum = exports.TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheUserEnum = exports.TrackedConversationEventIdentifierDescriptionPairsConversationDeletedEnum = exports.TrackedConversationEventIdentifierDescriptionPairsConversationReferencedEnum = exports.TrackedConversationEventIdentifierDescriptionPairsConversationCreatedEnum = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ var TrackedConversationEventIdentifierDescriptionPairsConversationCreatedEnum;
+ (function(TrackedConversationEventIdentifierDescriptionPairsConversationCreatedEnum2) {
+ TrackedConversationEventIdentifierDescriptionPairsConversationCreatedEnum2["AConversationWasCreated"] = "a_conversation_was_created";
+ })(TrackedConversationEventIdentifierDescriptionPairsConversationCreatedEnum || (exports.TrackedConversationEventIdentifierDescriptionPairsConversationCreatedEnum = TrackedConversationEventIdentifierDescriptionPairsConversationCreatedEnum = {}));
+ var TrackedConversationEventIdentifierDescriptionPairsConversationReferencedEnum;
+ (function(TrackedConversationEventIdentifierDescriptionPairsConversationReferencedEnum2) {
+ TrackedConversationEventIdentifierDescriptionPairsConversationReferencedEnum2["AConversationWasReferencedByTheUser"] = "a_conversation_was_referenced_by_the_user";
+ })(TrackedConversationEventIdentifierDescriptionPairsConversationReferencedEnum || (exports.TrackedConversationEventIdentifierDescriptionPairsConversationReferencedEnum = TrackedConversationEventIdentifierDescriptionPairsConversationReferencedEnum = {}));
+ var TrackedConversationEventIdentifierDescriptionPairsConversationDeletedEnum;
+ (function(TrackedConversationEventIdentifierDescriptionPairsConversationDeletedEnum2) {
+ TrackedConversationEventIdentifierDescriptionPairsConversationDeletedEnum2["AConversationWasDeleted"] = "a_conversation_was_deleted";
+ })(TrackedConversationEventIdentifierDescriptionPairsConversationDeletedEnum || (exports.TrackedConversationEventIdentifierDescriptionPairsConversationDeletedEnum = TrackedConversationEventIdentifierDescriptionPairsConversationDeletedEnum = {}));
+ var TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheUserEnum;
+ (function(TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheUserEnum2) {
+ TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheUserEnum2["AConversationSummaryAnnotationWasGeneratedByTheUser"] = "a_conversation_summary_annotation_was_generated_by_the_user";
+ })(TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheUserEnum || (exports.TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheUserEnum = TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheUserEnum = {}));
+ var TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheSystemEnum;
+ (function(TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheSystemEnum2) {
+ TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheSystemEnum2["AConversationWasRenamedByTheSystem"] = "a_conversation_was_renamed_by_the_system";
+ })(TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheSystemEnum || (exports.TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheSystemEnum = TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheSystemEnum = {}));
+ var TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheUserEnum;
+ (function(TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheUserEnum2) {
+ TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheUserEnum2["AConversationWasRenamedByTheUser"] = "a_conversation_was_renamed_by_the_user";
+ })(TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheUserEnum || (exports.TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheUserEnum = TrackedConversationEventIdentifierDescriptionPairsConversationNameUpdatedByTheUserEnum = {}));
+ var TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheSystemEnum;
+ (function(TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheSystemEnum2) {
+ TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheSystemEnum2["AConversationSummaryAnnotationWasGeneratedByTheSystem"] = "a_conversation_summary_annotation_was_generated_by_the_system";
+ })(TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheSystemEnum || (exports.TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheSystemEnum = TrackedConversationEventIdentifierDescriptionPairsConversationSummaryAnnotationGeneratedByTheSystemEnum = {}));
+ function TrackedConversationEventIdentifierDescriptionPairsFromJSON4(json) {
+ return TrackedConversationEventIdentifierDescriptionPairsFromJSONTyped7(json, false);
+ }
+ exports.TrackedConversationEventIdentifierDescriptionPairsFromJSON = TrackedConversationEventIdentifierDescriptionPairsFromJSON4;
+ function TrackedConversationEventIdentifierDescriptionPairsFromJSONTyped7(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "conversationCreated": !(0, runtime_1.exists)(json, "conversation_created") ? void 0 : json["conversation_created"],
+ "conversationReferenced": !(0, runtime_1.exists)(json, "conversation_referenced") ? void 0 : json["conversation_referenced"],
+ "conversationDeleted": !(0, runtime_1.exists)(json, "conversation_deleted") ? void 0 : json["conversation_deleted"],
+ "conversationSummaryAnnotationGeneratedByTheUser": !(0, runtime_1.exists)(json, "conversation_summary_annotation_generated_by_the_user") ? void 0 : json["conversation_summary_annotation_generated_by_the_user"],
+ "conversationNameUpdatedByTheSystem": !(0, runtime_1.exists)(json, "conversation_name_updated_by_the_system") ? void 0 : json["conversation_name_updated_by_the_system"],
+ "conversationNameUpdatedByTheUser": !(0, runtime_1.exists)(json, "conversation_name_updated_by_the_user") ? void 0 : json["conversation_name_updated_by_the_user"],
+ "conversationSummaryAnnotationGeneratedByTheSystem": !(0, runtime_1.exists)(json, "conversation_summary_annotation_generated_by_the_system") ? void 0 : json["conversation_summary_annotation_generated_by_the_system"]
+ };
+ }
+ exports.TrackedConversationEventIdentifierDescriptionPairsFromJSONTyped = TrackedConversationEventIdentifierDescriptionPairsFromJSONTyped7;
+ function TrackedConversationEventIdentifierDescriptionPairsToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "conversation_created": value.conversationCreated,
+ "conversation_referenced": value.conversationReferenced,
+ "conversation_deleted": value.conversationDeleted,
+ "conversation_summary_annotation_generated_by_the_user": value.conversationSummaryAnnotationGeneratedByTheUser,
+ "conversation_name_updated_by_the_system": value.conversationNameUpdatedByTheSystem,
+ "conversation_name_updated_by_the_user": value.conversationNameUpdatedByTheUser,
+ "conversation_summary_annotation_generated_by_the_system": value.conversationSummaryAnnotationGeneratedByTheSystem
+ };
+ }
+ exports.TrackedConversationEventIdentifierDescriptionPairsToJSON = TrackedConversationEventIdentifierDescriptionPairsToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/TrackedConversationEventMetadata.js
+var require_TrackedConversationEventMetadata = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/TrackedConversationEventMetadata.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.TrackedConversationEventMetadataToJSON = exports.TrackedConversationEventMetadataFromJSONTyped = exports.TrackedConversationEventMetadataFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function TrackedConversationEventMetadataFromJSON4(json) {
+ return TrackedConversationEventMetadataFromJSONTyped7(json, false);
+ }
+ exports.TrackedConversationEventMetadataFromJSON = TrackedConversationEventMetadataFromJSON4;
+ function TrackedConversationEventMetadataFromJSONTyped7(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "rename": !(0, runtime_1.exists)(json, "rename") ? void 0 : (0, _1.TrackedConversationEventRenameMetadataFromJSON)(json["rename"])
+ };
+ }
+ exports.TrackedConversationEventMetadataFromJSONTyped = TrackedConversationEventMetadataFromJSONTyped7;
+ function TrackedConversationEventMetadataToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "rename": (0, _1.TrackedConversationEventRenameMetadataToJSON)(value.rename)
+ };
+ }
+ exports.TrackedConversationEventMetadataToJSON = TrackedConversationEventMetadataToJSON4;
+ }
+});
+
+// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/TrackedConversationEventRenameMetadata.js
+var require_TrackedConversationEventRenameMetadata = __commonJS({
+ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/TrackedConversationEventRenameMetadata.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.TrackedConversationEventRenameMetadataToJSON = exports.TrackedConversationEventRenameMetadataFromJSONTyped = exports.TrackedConversationEventRenameMetadataFromJSON = void 0;
+ var runtime_1 = require_runtime();
+ var _1 = require_models();
+ function TrackedConversationEventRenameMetadataFromJSON4(json) {
+ return TrackedConversationEventRenameMetadataFromJSONTyped6(json, false);
+ }
+ exports.TrackedConversationEventRenameMetadataFromJSON = TrackedConversationEventRenameMetadataFromJSON4;
+ function TrackedConversationEventRenameMetadataFromJSONTyped6(json, ignoreDiscriminator) {
+ if (json === void 0 || json === null) {
+ return json;
+ }
+ return {
+ "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]),
+ "previous": json["previous"],
+ "current": json["current"]
+ };
+ }
+ exports.TrackedConversationEventRenameMetadataFromJSONTyped = TrackedConversationEventRenameMetadataFromJSONTyped6;
+ function TrackedConversationEventRenameMetadataToJSON4(value) {
+ if (value === void 0) {
+ return void 0;
+ }
+ if (value === null) {
+ return null;
+ }
+ return {
+ "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema),
+ "previous": value.previous,
+ "current": value.current
+ };
+ }
+ exports.TrackedConversationEventRenameMetadataToJSON = TrackedConversationEventRenameMetadataToJSON4;
+ }
+});
+
// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/TrackedFormat.js
var require_TrackedFormat = __commonJS({
"../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/TrackedFormat.js"(exports) {
@@ -20947,6 +22144,7 @@ var require_Website = __commonJS({
"mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], _1.MechanismEnumFromJSON),
"interactions": !(0, runtime_1.exists)(json, "interactions") ? void 0 : json["interactions"],
"persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, _1.FlattenedPersonsFromJSON)(json["persons"]),
+ "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, _1.FlattenedConversationsFromJSON)(json["conversations"]),
"score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"])
};
}
@@ -20970,6 +22168,7 @@ var require_Website = __commonJS({
"mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, _1.MechanismEnumToJSON),
"interactions": value.interactions,
"persons": (0, _1.FlattenedPersonsToJSON)(value.persons),
+ "conversations": (0, _1.FlattenedConversationsToJSON)(value.conversations),
"score": (0, _1.ScoreToJSON)(value.score)
};
}
@@ -21112,6 +22311,8 @@ var require_models = __commonJS({
__exportStar(require_ConversationsCreateFromAssetOutput(), exports);
__exportStar(require_CreatedExternalProviderApiKey(), exports);
__exportStar(require_DeletedExternalProviderApiKey(), exports);
+ __exportStar(require_DetectedExternalApplication(), exports);
+ __exportStar(require_DetectedExternalApplications(), exports);
__exportStar(require_DiscoveredAsset(), exports);
__exportStar(require_DiscoveredAssets(), exports);
__exportStar(require_DiscoveredHtmlWebpage(), exports);
@@ -21230,7 +22431,14 @@ var require_models = __commonJS({
__exportStar(require_OAuthToken(), exports);
__exportStar(require_OCRAnalyses(), exports);
__exportStar(require_OCRAnalysis(), exports);
+ __exportStar(require_OSDeviceCPUHardwareInformation(), exports);
+ __exportStar(require_OSDeviceDependenciesInformation(), exports);
+ __exportStar(require_OSDeviceGPUHardwareCapabilitiesInformation(), exports);
+ __exportStar(require_OSDeviceGPUHardwareInformation(), exports);
+ __exportStar(require_OSDeviceHardwareInformation(), exports);
+ __exportStar(require_OSDeviceInformationReturnable(), exports);
__exportStar(require_OSHealth(), exports);
+ __exportStar(require_OnboardedPersonaDetails(), exports);
__exportStar(require_OpenAIModelsListInput(), exports);
__exportStar(require_OpenAIModelsListOutput(), exports);
__exportStar(require_OrderedMetrics(), exports);
@@ -21245,16 +22453,24 @@ var require_models = __commonJS({
__exportStar(require_PlatformEnum(), exports);
__exportStar(require_PrecreatedExternalProviderApiKey(), exports);
__exportStar(require_PredeletedExternalProviderApiKey(), exports);
+ __exportStar(require_PreonboardedPersonaDetails(), exports);
__exportStar(require_PreupdatedExternalProviderApiKey(), exports);
__exportStar(require_Preview(), exports);
__exportStar(require_PrivacyEnum(), exports);
__exportStar(require_PseudoAssets(), exports);
+ __exportStar(require_QGPTAgentRelatedRoutes(), exports);
+ __exportStar(require_QGPTAgentRoutes(), exports);
__exportStar(require_QGPTConversation(), exports);
__exportStar(require_QGPTConversationMessage(), exports);
__exportStar(require_QGPTConversationMessageRoleEnum(), exports);
+ __exportStar(require_QGPTConversationPipeline(), exports);
+ __exportStar(require_QGPTConversationPipelineForContextualizedCodeDialog(), exports);
+ __exportStar(require_QGPTConversationPipelineForContextualizedCodeGeneration(), exports);
+ __exportStar(require_QGPTConversationPipelineForGeneralizedCodeDialog(), exports);
__exportStar(require_QGPTHintsInput(), exports);
__exportStar(require_QGPTPersonsRelatedInput(), exports);
__exportStar(require_QGPTPersonsRelatedOutput(), exports);
+ __exportStar(require_QGPTPromptPipeline(), exports);
__exportStar(require_QGPTQuestionAnswer(), exports);
__exportStar(require_QGPTQuestionAnswers(), exports);
__exportStar(require_QGPTQuestionInput(), exports);
@@ -21267,6 +22483,12 @@ var require_models = __commonJS({
__exportStar(require_QGPTStreamEnum(), exports);
__exportStar(require_QGPTStreamInput(), exports);
__exportStar(require_QGPTStreamOutput(), exports);
+ __exportStar(require_QGPTTaskPipeline(), exports);
+ __exportStar(require_QGPTTaskPipelineForCodeCommentation(), exports);
+ __exportStar(require_QGPTTaskPipelineForCodeCompletion(), exports);
+ __exportStar(require_QGPTTaskPipelineForCodeExplanation(), exports);
+ __exportStar(require_QGPTTaskPipelineForCodeFix(), exports);
+ __exportStar(require_QGPTTaskPipelineForCodeModification(), exports);
__exportStar(require_Reaction(), exports);
__exportStar(require_Recipients(), exports);
__exportStar(require_ReferencedActivity(), exports);
@@ -21308,6 +22530,7 @@ var require_models = __commonJS({
__exportStar(require_SeededAnchorPoint(), exports);
__exportStar(require_SeededAnnotation(), exports);
__exportStar(require_SeededAsset(), exports);
+ __exportStar(require_SeededAssetEnrichment(), exports);
__exportStar(require_SeededAssetMetadata(), exports);
__exportStar(require_SeededAssetSensitive(), exports);
__exportStar(require_SeededAssetTag(), exports);
@@ -21355,6 +22578,7 @@ var require_models = __commonJS({
__exportStar(require_SeededTrackedAssetEvent(), exports);
__exportStar(require_SeededTrackedAssetsEvent(), exports);
__exportStar(require_SeededTrackedAssetsEventMetadata(), exports);
+ __exportStar(require_SeededTrackedConversationEvent(), exports);
__exportStar(require_SeededTrackedFormatEvent(), exports);
__exportStar(require_SeededTrackedInteractionEvent(), exports);
__exportStar(require_SeededTrackedInteractionEventIdentifierDescriptionPairs(), exports);
@@ -21424,6 +22648,9 @@ var require_models = __commonJS({
__exportStar(require_TrackedAssetsEventIdentifierDescriptionPairs(), exports);
__exportStar(require_TrackedAssetsEventSearchMetadata(), exports);
__exportStar(require_TrackedAssetsEventSearchMetadataResults(), exports);
+ __exportStar(require_TrackedConversationEventIdentifierDescriptionPairs(), exports);
+ __exportStar(require_TrackedConversationEventMetadata(), exports);
+ __exportStar(require_TrackedConversationEventRenameMetadata(), exports);
__exportStar(require_TrackedFormat(), exports);
__exportStar(require_TrackedFormatEvent(), exports);
__exportStar(require_TrackedFormatEventIdentifierDescriptionPairs(), exports);
@@ -23011,6 +24238,52 @@ var require_ApplicationsApi = __commonJS({
var runtime = __importStar(require_runtime());
var models_1 = require_models();
var ApplicationsApi = class extends runtime.BaseAPI {
+ /**
+ * This will get the Applications that are currently installed on your Machine, that we have detected that we have an available Pieces integration for, however that you as a user have not installed yet. + applications that are installed where Pieces is going to be coming soon.
+ * /applications/external/related [GET]
+ */
+ async applicationsExternalRelatedRaw() {
+ const queryParameters = {};
+ const headerParameters = {};
+ const response = await this.request({
+ path: `/applications/external/related`,
+ method: "GET",
+ headers: headerParameters,
+ query: queryParameters
+ });
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DetectedExternalApplicationsFromJSON)(jsonValue));
+ }
+ /**
+ * This will get the Applications that are currently installed on your Machine, that we have detected that we have an available Pieces integration for, however that you as a user have not installed yet. + applications that are installed where Pieces is going to be coming soon.
+ * /applications/external/related [GET]
+ */
+ async applicationsExternalRelated() {
+ const response = await this.applicationsExternalRelatedRaw();
+ return await response.value();
+ }
+ /**
+ * This will get a snapshot of your installed applications on your local Machine. Applications like \"Microsoft Teams classic\", \"Google Chat\", \"Obsidian\", etc...
+ * /applications/external [GET]
+ */
+ async applicationsExternalSnapshotRaw() {
+ const queryParameters = {};
+ const headerParameters = {};
+ const response = await this.request({
+ path: `/applications/external`,
+ method: "GET",
+ headers: headerParameters,
+ query: queryParameters
+ });
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DetectedExternalApplicationsFromJSON)(jsonValue));
+ }
+ /**
+ * This will get a snapshot of your installed applications on your local Machine. Applications like \"Microsoft Teams classic\", \"Google Chat\", \"Obsidian\", etc...
+ * /applications/external [GET]
+ */
+ async applicationsExternalSnapshot() {
+ const response = await this.applicationsExternalSnapshotRaw();
+ return await response.value();
+ }
/**
* This will register a connected applicaiton.
* /applications/register [POST]
@@ -23557,6 +24830,35 @@ var require_AssetApi = __commonJS({
const response = await this.assetSnapshotPostRaw(requestParameters);
return await response.value();
}
+ /**
+ * This will get a specific asset\'s activity events
+ * /asset/{asset}/activities [GET]
+ */
+ async assetSpecificAssetActivitiesRaw(requestParameters) {
+ if (requestParameters.asset === null || requestParameters.asset === void 0) {
+ throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling assetSpecificAssetActivities.");
+ }
+ const queryParameters = {};
+ if (requestParameters.transferables !== void 0) {
+ queryParameters["transferables"] = requestParameters.transferables;
+ }
+ const headerParameters = {};
+ const response = await this.request({
+ path: `/asset/{asset}/activities`.replace(`{${"asset"}}`, encodeURIComponent(String(requestParameters.asset))),
+ method: "GET",
+ headers: headerParameters,
+ query: queryParameters
+ });
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ActivitiesFromJSON)(jsonValue));
+ }
+ /**
+ * This will get a specific asset\'s activity events
+ * /asset/{asset}/activities [GET]
+ */
+ async assetSpecificAssetActivities(requestParameters) {
+ const response = await this.assetSpecificAssetActivitiesRaw(requestParameters);
+ return await response.value();
+ }
/**
* This will get a specific asset\'s conversations
* /asset/{asset}/conversations [GET]
@@ -24941,15 +26243,43 @@ var require_ConversationApi = __commonJS({
await this.conversationAssociateAssetRaw(requestParameters);
}
/**
- * This will update both the anchor and the conversation. and delete(disacioate) the 2 together
+ * This will update both the website and the conversation. and associate the 2 together
+ * /conversation/{conversation}/websites/associate/{website} [POST]
+ */
+ async conversationAssociateWebsiteRaw(requestParameters) {
+ if (requestParameters.conversation === null || requestParameters.conversation === void 0) {
+ throw new runtime.RequiredError("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationAssociateWebsite.");
+ }
+ if (requestParameters.website === null || requestParameters.website === void 0) {
+ throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling conversationAssociateWebsite.");
+ }
+ const queryParameters = {};
+ const headerParameters = {};
+ const response = await this.request({
+ path: `/conversation/{conversation}/websites/associate/{website}`.replace(`{${"conversation"}}`, encodeURIComponent(String(requestParameters.conversation))).replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))),
+ method: "POST",
+ headers: headerParameters,
+ query: queryParameters
+ });
+ return new runtime.VoidApiResponse(response);
+ }
+ /**
+ * This will update both the website and the conversation. and associate the 2 together
+ * /conversation/{conversation}/websites/associate/{website} [POST]
+ */
+ async conversationAssociateWebsite(requestParameters) {
+ await this.conversationAssociateWebsiteRaw(requestParameters);
+ }
+ /**
+ * This will update both the anchor and the conversation. and delete(disassociate) the 2 together
* /conversation/{conversation}/anchors/delete/{anchor} [POST]
*/
- async conversationDeleteAnchorRaw(requestParameters) {
+ async conversationDisassociateAnchorRaw(requestParameters) {
if (requestParameters.conversation === null || requestParameters.conversation === void 0) {
- throw new runtime.RequiredError("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDeleteAnchor.");
+ throw new runtime.RequiredError("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDisassociateAnchor.");
}
if (requestParameters.anchor === null || requestParameters.anchor === void 0) {
- throw new runtime.RequiredError("anchor", "Required parameter requestParameters.anchor was null or undefined when calling conversationDeleteAnchor.");
+ throw new runtime.RequiredError("anchor", "Required parameter requestParameters.anchor was null or undefined when calling conversationDisassociateAnchor.");
}
const queryParameters = {};
const headerParameters = {};
@@ -24962,22 +26292,22 @@ var require_ConversationApi = __commonJS({
return new runtime.VoidApiResponse(response);
}
/**
- * This will update both the anchor and the conversation. and delete(disacioate) the 2 together
+ * This will update both the anchor and the conversation. and delete(disassociate) the 2 together
* /conversation/{conversation}/anchors/delete/{anchor} [POST]
*/
- async conversationDeleteAnchor(requestParameters) {
- await this.conversationDeleteAnchorRaw(requestParameters);
+ async conversationDisassociateAnchor(requestParameters) {
+ await this.conversationDisassociateAnchorRaw(requestParameters);
}
/**
- * This will update both the asset and the conversation. and delete(disacioate) the 2.
+ * This will update both the asset and the conversation. and delete(disassociate) the 2.
* /conversation/{conversation}/assets/delete/{asset} [POST]
*/
- async conversationDeleteAssetRaw(requestParameters) {
+ async conversationDisassociateAssetRaw(requestParameters) {
if (requestParameters.conversation === null || requestParameters.conversation === void 0) {
- throw new runtime.RequiredError("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDeleteAsset.");
+ throw new runtime.RequiredError("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDisassociateAsset.");
}
if (requestParameters.asset === null || requestParameters.asset === void 0) {
- throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling conversationDeleteAsset.");
+ throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling conversationDisassociateAsset.");
}
const queryParameters = {};
const headerParameters = {};
@@ -24990,11 +26320,39 @@ var require_ConversationApi = __commonJS({
return new runtime.VoidApiResponse(response);
}
/**
- * This will update both the asset and the conversation. and delete(disacioate) the 2.
+ * This will update both the asset and the conversation. and delete(disassociate) the 2.
* /conversation/{conversation}/assets/delete/{asset} [POST]
*/
- async conversationDeleteAsset(requestParameters) {
- await this.conversationDeleteAssetRaw(requestParameters);
+ async conversationDisassociateAsset(requestParameters) {
+ await this.conversationDisassociateAssetRaw(requestParameters);
+ }
+ /**
+ * This will enable us to dissassociate a conversation from a website.
+ * /website/{website}/websites/disassociate/{website} [POST]
+ */
+ async conversationDisassociateWebsiteRaw(requestParameters) {
+ if (requestParameters.conversation === null || requestParameters.conversation === void 0) {
+ throw new runtime.RequiredError("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDisassociateWebsite.");
+ }
+ if (requestParameters.website === null || requestParameters.website === void 0) {
+ throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling conversationDisassociateWebsite.");
+ }
+ const queryParameters = {};
+ const headerParameters = {};
+ const response = await this.request({
+ path: `/conversation/{conversation}/websites/disassociate/{website}`.replace(`{${"conversation"}}`, encodeURIComponent(String(requestParameters.conversation))).replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))),
+ method: "POST",
+ headers: headerParameters,
+ query: queryParameters
+ });
+ return new runtime.VoidApiResponse(response);
+ }
+ /**
+ * This will enable us to dissassociate a conversation from a website.
+ * /website/{website}/websites/disassociate/{website} [POST]
+ */
+ async conversationDisassociateWebsite(requestParameters) {
+ await this.conversationDisassociateWebsiteRaw(requestParameters);
}
/**
* This will get a specific conversation.
@@ -27226,6 +28584,31 @@ var require_MachineLearningApi = __commonJS({
var runtime = __importStar(require_runtime());
var models_1 = require_models();
var MachineLearningApi = class extends runtime.BaseAPI {
+ /**
+ * This is going to take in some personification details ie languages & personas. and will return generated Seeds that can be used as snippets post/pre onboarding.
+ * /machine_learning/text/technical_language/generators/personification [GET]
+ */
+ async personificationTechnicalLanguageGenerationRaw(requestParameters) {
+ const queryParameters = {};
+ const headerParameters = {};
+ headerParameters["Content-Type"] = "application/json";
+ const response = await this.request({
+ path: `/machine_learning/text/technical_language/generators/personification`,
+ method: "POST",
+ headers: headerParameters,
+ query: queryParameters,
+ body: (0, models_1.PreonboardedPersonaDetailsToJSON)(requestParameters.preonboardedPersonaDetails)
+ });
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OnboardedPersonaDetailsFromJSON)(jsonValue));
+ }
+ /**
+ * This is going to take in some personification details ie languages & personas. and will return generated Seeds that can be used as snippets post/pre onboarding.
+ * /machine_learning/text/technical_language/generators/personification [GET]
+ */
+ async personificationTechnicalLanguageGeneration(requestParameters) {
+ const response = await this.personificationTechnicalLanguageGenerationRaw(requestParameters);
+ return await response.value();
+ }
/**
* This is a functional endpoint that will parse a message or text in to text or code. if the optional query param is passed along \'classify\' then we will optionally classify the just the code that is segmented.
* /machine_learning/text/technical_language/parsers/segmentation [POST]
@@ -27953,6 +29336,29 @@ var require_OSApi = __commonJS({
const response = await this.linkProviderRaw(requestParameters);
return await response.value();
}
+ /**
+ * This will get information related to your specific device.
+ * /os/device/information [GET]
+ */
+ async osDeviceInformationRaw() {
+ const queryParameters = {};
+ const headerParameters = {};
+ const response = await this.request({
+ path: `/os/device/information`,
+ method: "GET",
+ headers: headerParameters,
+ query: queryParameters
+ });
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OSDeviceInformationReturnableFromJSON)(jsonValue));
+ }
+ /**
+ * This will get information related to your specific device.
+ * /os/device/information [GET]
+ */
+ async osDeviceInformation() {
+ const response = await this.osDeviceInformationRaw();
+ return await response.value();
+ }
/**
* This will restart PiecesOS, if successfull with return a 204. This is a LOCALOS Only Endpoint.
* Your GET endpoint
@@ -30648,6 +32054,34 @@ var require_WebsiteApi = __commonJS({
async websiteAssociateAsset(requestParameters) {
await this.websiteAssociateAssetRaw(requestParameters);
}
+ /**
+ * This will associate a website with a conversation.
+ * /website/{website}/conversations/associate/{conversation} [POST]
+ */
+ async websiteAssociateConversationRaw(requestParameters) {
+ if (requestParameters.website === null || requestParameters.website === void 0) {
+ throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling websiteAssociateConversation.");
+ }
+ if (requestParameters.conversation === null || requestParameters.conversation === void 0) {
+ throw new runtime.RequiredError("conversation", "Required parameter requestParameters.conversation was null or undefined when calling websiteAssociateConversation.");
+ }
+ const queryParameters = {};
+ const headerParameters = {};
+ const response = await this.request({
+ path: `/website/{website}/conversations/associate/{conversation}`.replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))).replace(`{${"conversation"}}`, encodeURIComponent(String(requestParameters.conversation))),
+ method: "POST",
+ headers: headerParameters,
+ query: queryParameters
+ });
+ return new runtime.VoidApiResponse(response);
+ }
+ /**
+ * This will associate a website with a conversation.
+ * /website/{website}/conversations/associate/{conversation} [POST]
+ */
+ async websiteAssociateConversation(requestParameters) {
+ await this.websiteAssociateConversationRaw(requestParameters);
+ }
/**
* This will associate a website with a person.
* /website/{website}/persons/associate/{person} [POST]
@@ -30704,6 +32138,34 @@ var require_WebsiteApi = __commonJS({
async websiteDisassociateAsset(requestParameters) {
await this.websiteDisassociateAssetRaw(requestParameters);
}
+ /**
+ * This will enable us to dissassociate a website from a conversation.
+ * /website/{website}/conversations/disassociate/{conversation} [POST]
+ */
+ async websiteDisassociateConversationRaw(requestParameters) {
+ if (requestParameters.website === null || requestParameters.website === void 0) {
+ throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling websiteDisassociateConversation.");
+ }
+ if (requestParameters.conversation === null || requestParameters.conversation === void 0) {
+ throw new runtime.RequiredError("conversation", "Required parameter requestParameters.conversation was null or undefined when calling websiteDisassociateConversation.");
+ }
+ const queryParameters = {};
+ const headerParameters = {};
+ const response = await this.request({
+ path: `/website/{website}/conversations/disassociate/{conversation}`.replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))).replace(`{${"conversation"}}`, encodeURIComponent(String(requestParameters.conversation))),
+ method: "POST",
+ headers: headerParameters,
+ query: queryParameters
+ });
+ return new runtime.VoidApiResponse(response);
+ }
+ /**
+ * This will enable us to dissassociate a website from a conversation.
+ * /website/{website}/conversations/disassociate/{conversation} [POST]
+ */
+ async websiteDisassociateConversation(requestParameters) {
+ await this.websiteDisassociateConversationRaw(requestParameters);
+ }
/**
* This will enable us to dissassociate a website from a person.
* /website/{website}/persons/disassociate/{person} [POST]
@@ -31293,6 +32755,40 @@ var require_const = __commonJS({
\u2335
'; - const modelRequirements = (0, globals_1.createEl)(modelElement, "p"); - modelRequirements.classList.add("hidden", "text-xs", "pt-1", "text-[var(--text-faint)]", "m-0"); - modelRequirements.innerText = this.getModelRequirements(model); - modelElement.onclick = (e) => { - modelRequirementsButton.innerHTML = modelRequirements.classList.contains("hidden") ? "System Requirements ×" : 'System Requirements\u2335
'; - modelRequirements.classList.toggle("hidden"); - e.stopPropagation(); - }; + if (!model.cloud) { + const modelRequirementsButton = (0, globals_1.createDiv)(modelElement); + modelRequirementsButton.classList.add("cursor-pointer", "text-xs", "text-[var(--text-faint)]", "flex", "gap-1"); + modelRequirementsButton.innerHTML = 'System Requirements\u2335
'; + const modelRequirements = (0, globals_1.createEl)(modelElement, "p"); + modelRequirements.classList.add("hidden", "text-xs", "pt-1", "text-[var(--text-faint)]", "m-0"); + modelRequirements.innerText = this.getModelRequirements(model); + modelElement.onclick = (e) => { + modelRequirementsButton.innerHTML = modelRequirements.classList.contains("hidden") ? "System Requirements ×" : 'System Requirements\u2335
'; + modelRequirements.classList.toggle("hidden"); + e.stopPropagation(); + }; + } const progressBar = new ProgressBar_1.default({ current: 0, end: 100, @@ -44997,10 +46587,14 @@ var require_LLMConfigModal = __commonJS({ getModelSvg(type) { if (type === ModelBoxEnum.CodeLlaMa || type === ModelBoxEnum.LLaMa2) return const_1.Constants.META_SVG; + if (type === ModelBoxEnum.Phi2) + return const_1.Constants.MSFT_SVG; if (type === ModelBoxEnum.Palm2) return const_1.Constants.PALM2_SVG; if (type === ModelBoxEnum.Gemini) return const_1.Constants.GEMINI_SVG; + if (type === ModelBoxEnum.Mistral) + return const_1.Constants.MISTRAL_SVG; return const_1.Constants.OPENAI_SVG; } handleDownloadSelectCancel(model) { @@ -45418,7 +47012,7 @@ var require_ContextSelectionModal = __commonJS({ // removes a snippet from a conversation removeAssetFromConversation(asset) { return __awaiter(this, void 0, void 0, function* () { - ConnectorSingleton_1.default.getInstance().conversationApi.conversationDeleteAsset({ + ConnectorSingleton_1.default.getInstance().conversationApi.conversationDisassociateAsset({ conversation: QGPTView_1.default.conversationId, asset: asset.id }).then(() => { @@ -45501,7 +47095,7 @@ var require_ContextSelectionModal = __commonJS({ // removes a file / folder from a conversation removeAnchorFromConversation(anchorPoint, type) { return __awaiter(this, void 0, void 0, function* () { - ConnectorSingleton_1.default.getInstance().conversationApi.conversationDeleteAnchor({ + ConnectorSingleton_1.default.getInstance().conversationApi.conversationDisassociateAnchor({ conversation: QGPTView_1.default.conversationId, anchor: anchorPoint.anchor.id }).then(() => { @@ -48861,7 +50455,7 @@ var require_view = __commonJS({ return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); - exports.initCopilot = exports.connectionPoller = exports.port = exports.getNextMessageId = exports.platform = exports.getWorkspacePaths = exports.getRecentFiles = exports.runInTerminal = exports.insertAtCursor = exports.copyToClipboard = exports.track = exports.openLink = exports.loadContext = exports.sendNotification = exports.getState = exports.saveState = exports.filterFolders = exports.requestContextPicker = exports.getApplication = exports.generateShareableLink = exports.openFile = exports.migration = void 0; + exports.initCopilot = exports.connectionPoller = exports.port = exports.getNextMessageId = exports.platform = exports.acceptChanges = exports.getWorkspacePaths = exports.getRecentFiles = exports.runInTerminal = exports.insertAtCursor = exports.copyToClipboard = exports.track = exports.openLink = exports.loadContext = exports.sendNotification = exports.getState = exports.saveState = exports.filterFolders = exports.requestContextPicker = exports.getApplication = exports.generateShareableLink = exports.openFile = exports.migration = void 0; var pieces_os_client_1 = require_dist(); var buffer_1 = require("buffer"); var ConnectorSingleton_1 = __importDefault(require_ConnectorSingleton()); @@ -48880,8 +50474,8 @@ var require_view = __commonJS({ var uuid_1 = require_commonjs_browser(); var ConversationBuilder_1 = __importDefault(require_ConversationBuilder()); var Directives_1 = __importDefault(require_Directives()); - var GPTMinVersion = "7.2.0"; - var MaxVersion = "8.0.0"; + var GPTMinVersion = "8.0.0"; + var MaxVersion = "9.0.0"; exports.migration = 0; var copyToClipboard2 = (text) => __awaiter(void 0, void 0, void 0, function* () { try { @@ -48899,7 +50493,7 @@ var require_view = __commonJS({ exports.port = navigator.userAgent.toLowerCase().includes("linux") ? 5323 : 1e3; var connectionState = { versionValid: true, connected: true }; var connectionPoller = () => __awaiter(void 0, void 0, void 0, function* () { - var _a, _b, _c, _d, _e, _f, _g; + var _a, _b, _c, _d, _e, _f, _g, _h, _j; let title = "Pieces OS needs to be updated!"; let connected = true; const version2 = yield fetch(`http://localhost:${exports.port}/.well-known/version`).catch(() => { @@ -48921,15 +50515,22 @@ var require_view = __commonJS({ const state = (0, exports.getState)(); connectionState.connected = true; connectionState.versionValid = true; + const models = yield ConnectorSingleton_1.default.getInstance().modelsApi.modelsSnapshot(); + const gpt3516k = models.iterable.find((el) => el.foundation === pieces_os_client_1.ModelFoundationEnum.Gpt35 && el.name.includes("16k")); if (!((_a = state === null || state === void 0 ? void 0 : state.pieces) === null || _a === void 0 ? void 0 : _a.selectedModel)) { - const models = yield ConnectorSingleton_1.default.getInstance().modelsApi.modelsSnapshot(); - const gpt3516k = models.iterable.find((el) => el.foundation === pieces_os_client_1.ModelFoundationEnum.Gpt35 && el.name.includes("16k")); - if (gpt3516k) - LLMConfigModal_1.default.selectedModel = gpt3516k.id; + LLMConfigModal_1.default.selectedModel = (_b = gpt3516k === null || gpt3516k === void 0 ? void 0 : gpt3516k.id) !== null && _b !== void 0 ? _b : ""; } else { - LLMConfigModal_1.default.selectedModel = (_b = state === null || state === void 0 ? void 0 : state.pieces) === null || _b === void 0 ? void 0 : _b.selectedModel; + const selectedModel = models.iterable.find((el) => { + var _a2; + return el.id === ((_a2 = state.pieces) === null || _a2 === void 0 ? void 0 : _a2.selectedModel); + }); + if (!selectedModel || !selectedModel.cloud && !selectedModel.downloaded) { + LLMConfigModal_1.default.selectedModel = (_c = gpt3516k === null || gpt3516k === void 0 ? void 0 : gpt3516k.id) !== null && _c !== void 0 ? _c : ""; + } else { + LLMConfigModal_1.default.selectedModel = (_d = state === null || state === void 0 ? void 0 : state.pieces) === null || _d === void 0 ? void 0 : _d.selectedModel; + } } - if ((_d = (_c = state === null || state === void 0 ? void 0 : state.pieces) === null || _c === void 0 ? void 0 : _c.conversationId) === null || _d === void 0 ? void 0 : _d.length) { + if ((_f = (_e = state === null || state === void 0 ? void 0 : state.pieces) === null || _e === void 0 ? void 0 : _e.conversationId) === null || _f === void 0 ? void 0 : _f.length) { QGPTView_1.default.conversationId = state.pieces.conversationId; ConversationBuilder_1.default.getInstance().highlightSelectedConversation(); const connector = ConnectorSingleton_1.default.getInstance(); @@ -48975,8 +50576,8 @@ var require_view = __commonJS({ CopilotStreamController_1.default.getInstance(); ModelProgressController_1.default.getInstance(); ConversationsStreamController_1.default.getInstance(); - Directives_1.default.getInstance().initDirectives((_f = (_e = state === null || state === void 0 ? void 0 : state.pieces) === null || _e === void 0 ? void 0 : _e.directives) !== null && _f !== void 0 ? _f : []); - if ((_g = LLMConfigModal_1.default.selectedModel) === null || _g === void 0 ? void 0 : _g.length) { + Directives_1.default.getInstance().initDirectives((_h = (_g = state === null || state === void 0 ? void 0 : state.pieces) === null || _g === void 0 ? void 0 : _g.directives) !== null && _h !== void 0 ? _h : []); + if ((_j = LLMConfigModal_1.default.selectedModel) === null || _j === void 0 ? void 0 : _j.length) { fetch(`http://localhost:${exports.port}/model/${LLMConfigModal_1.default.selectedModel}`).then((res) => res.json()).catch(() => LLMConfigModal_1.default.selectedModel = ""); } if (!QGPTView_1.default.contextSelectionModal) { @@ -49011,6 +50612,8 @@ var require_view = __commonJS({ exports.copyToClipboard = params.copyToClipboard; if (params.runInTerminal) exports.runInTerminal = params.runInTerminal; + if (params.acceptChanges) + exports.acceptChanges = params.acceptChanges; return (0, exports.connectionPoller)(); } exports.initCopilot = initCopilot2; @@ -49470,6 +51073,7 @@ var require_QGPTView = __commonJS({ } _a.relevant = query === null || query === void 0 ? void 0 : query.relevant; _a.codeBlocks = []; + _a.replaceable = query === null || query === void 0 ? void 0 : query.replaceable; this.onLoad(); if (!this.LLMConfigModal) { this.LLMConfigModal = new LLMConfigModal_1.default(); @@ -49548,10 +51152,10 @@ var require_QGPTView = __commonJS({ const imageHolder = document.createElement("div"); imageHolder.classList.add("flex", "justify-center", "px-2", "h-auto", "max-w-[80%]"); const copilotImg = (0, globals_1.createEl)(imageHolder, "div"); - copilotImg.classList.add("svg-box", "h-16"); + copilotImg.classList.add("svg-box", "h-12"); copilotImg.innerHTML = const_1.Constants.INTRO_SVG; introText.appendChild(imageHolder); - introText.classList.add("flex", "w-full", "flex-col", "h-full", "items-center", "justify-center", "gap-3"); + introText.classList.add("flex", "w-full", "flex-col", "items-center", "mb-auto", "mt-auto", "overflow-y-scroll", "scrollbar-hide", "gap-3"); textDiv.appendChild(introText); const titleDiv = document.createElement("div"); titleDiv.classList.add("flex", "flex-row", "px-4"); @@ -49607,7 +51211,7 @@ var require_QGPTView = __commonJS({ } hints.iterable = (0, shuffle_1.default)(hints.iterable); const introQueries = (0, globals_1.createDiv)(introText); - introQueries.classList.add("rounded-lg", "border", "border-solid", "border-[var(--background-modifier-border)]", "p-2", "text-sm", "flex", "flex-col", "w-full", "mt-3"); + introQueries.classList.add("rounded", "border", "border-solid", "border-[var(--background-modifier-border)]", "p-2", "text-sm", "flex", "flex-col", "w-full", "mt-3"); const headerRow = (0, globals_1.createDiv)(introQueries); headerRow.classList.add("flex", "flex-row", "justify-center", "px-2", "items-center", "gap-2"); const hintContainer = (0, globals_1.createDiv)(introQueries); @@ -49618,12 +51222,12 @@ var require_QGPTView = __commonJS({ let i = 0; const getNextHints = () => { (0, globals_1.emptyEl)(hintContainer); - const nextHints = hints.iterable.slice(i, i + 4); - i += 4; + const nextHints = hints.iterable.slice(i, i + 3); + i += 3; i %= hints.iterable.length; for (const hint of nextHints) { const hintButton = (0, globals_1.createDiv)(hintContainer); - hintButton.classList.add("cursor-pointer", "hover:text-[var(--text-accent)]"); + hintButton.classList.add("cursor-pointer", "hover:text-[var(--text-accent)]", "line-clamp-2"); hintButton.innerText = hint.text; hintButton.onclick = () => __awaiter(this, void 0, void 0, function* () { var _b2, _c2; @@ -49883,6 +51487,7 @@ var require_QGPTView = __commonJS({ } const contextBtn = (0, globals_1.createDiv)(actionDiv); contextBtn.classList.add("flex", "flex-row", "items-center", "justify-center", "gap-1", "hover:text-[var(--text-accent)]", "cursor-pointer", "mb-2.5"); + contextBtn.id = "pieces-context-btn"; const svgBox = (0, globals_1.createDiv)(contextBtn, "cursor-pointer"); svgBox.classList.add("flex", "items-center"); svgBox.innerHTML = const_1.Constants.SETTINGS_SVG; @@ -49993,6 +51598,7 @@ ${query.relevant.text} QGPTView6.currentConversation = []; QGPTView6.conversationId = ""; QGPTView6.relevant = void 0; + QGPTView6.replaceable = void 0; QGPTView6.codeBlocks = []; QGPTView6.generatingResults = false; QGPTView6.hideHints = false; @@ -50992,7 +52598,8 @@ function AssetFromJSONTyped(json, ignoreDiscriminator) { "annotations": !exists(json, "annotations") ? void 0 : AnnotationsFromJSON(json["annotations"]), "hints": !exists(json, "hints") ? void 0 : HintsFromJSON(json["hints"]), "anchors": !exists(json, "anchors") ? void 0 : AnchorsFromJSON(json["anchors"]), - "conversations": !exists(json, "conversations") ? void 0 : ConversationsFromJSON(json["conversations"]) + "conversations": !exists(json, "conversations") ? void 0 : ConversationsFromJSON(json["conversations"]), + "demo": !exists(json, "demo") ? void 0 : json["demo"] }; } @@ -51307,7 +52914,9 @@ function ConversationFromJSONTyped(json, ignoreDiscriminator) { "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), "type": ConversationTypeEnumFromJSON(json["type"]), "grounding": !exists(json, "grounding") ? void 0 : ConversationGroundingFromJSON(json["grounding"]), - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "pipeline": !exists(json, "pipeline") ? void 0 : QGPTPromptPipelineFromJSON(json["pipeline"]), + "demo": !exists(json, "demo") ? void 0 : json["demo"] }; } @@ -52159,7 +53768,8 @@ function FlattenedAssetFromJSONTyped2(json, ignoreDiscriminator) { "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), "hints": !exists(json, "hints") ? void 0 : FlattenedHintsFromJSON(json["hints"]), "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), - "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]) + "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]), + "demo": !exists(json, "demo") ? void 0 : json["demo"] }; } function FlattenedAssetToJSON(value) { @@ -52197,7 +53807,8 @@ function FlattenedAssetToJSON(value) { "annotations": FlattenedAnnotationsToJSON(value.annotations), "hints": FlattenedHintsToJSON(value.hints), "anchors": FlattenedAnchorsToJSON(value.anchors), - "conversations": FlattenedConversationsToJSON(value.conversations) + "conversations": FlattenedConversationsToJSON(value.conversations), + "demo": value.demo }; } @@ -52256,7 +53867,9 @@ function FlattenedConversationFromJSONTyped(json, ignoreDiscriminator) { "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), "type": ConversationTypeEnumFromJSON(json["type"]), "grounding": !exists(json, "grounding") ? void 0 : ConversationGroundingFromJSON(json["grounding"]), - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "pipeline": !exists(json, "pipeline") ? void 0 : QGPTPromptPipelineFromJSON(json["pipeline"]), + "demo": !exists(json, "demo") ? void 0 : json["demo"] }; } function FlattenedConversationToJSON(value) { @@ -52283,7 +53896,9 @@ function FlattenedConversationToJSON(value) { "anchors": FlattenedAnchorsToJSON(value.anchors), "type": ConversationTypeEnumToJSON(value.type), "grounding": ConversationGroundingToJSON(value.grounding), - "score": ScoreToJSON(value.score) + "score": ScoreToJSON(value.score), + "pipeline": QGPTPromptPipelineToJSON(value.pipeline), + "demo": value.demo }; } @@ -54194,6 +55809,296 @@ function QGPTConversationMessageRoleEnumToJSON(value) { return value; } +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTConversationPipeline.ts +function QGPTConversationPipelineFromJSON(json) { + return QGPTConversationPipelineFromJSONTyped(json, false); +} +function QGPTConversationPipelineFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "contextualizedCodeGeneration": !exists(json, "contextualized_code_generation") ? void 0 : QGPTConversationPipelineForContextualizedCodeGenerationFromJSON(json["contextualized_code_generation"]), + "generalizedCodeDialog": !exists(json, "generalized_code_dialog") ? void 0 : QGPTConversationPipelineForGeneralizedCodeDialogFromJSON(json["generalized_code_dialog"]), + "contextualizedCodeDialog": !exists(json, "contextualized_code_dialog") ? void 0 : QGPTConversationPipelineForContextualizedCodeDialogFromJSON(json["contextualized_code_dialog"]) + }; +} +function QGPTConversationPipelineToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "contextualized_code_generation": QGPTConversationPipelineForContextualizedCodeGenerationToJSON(value.contextualizedCodeGeneration), + "generalized_code_dialog": QGPTConversationPipelineForGeneralizedCodeDialogToJSON(value.generalizedCodeDialog), + "contextualized_code_dialog": QGPTConversationPipelineForContextualizedCodeDialogToJSON(value.contextualizedCodeDialog) + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTConversationPipelineForContextualizedCodeDialog.ts +function QGPTConversationPipelineForContextualizedCodeDialogFromJSON(json) { + return QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped2(json, false); +} +function QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + }; +} +function QGPTConversationPipelineForContextualizedCodeDialogToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema) + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTConversationPipelineForContextualizedCodeGeneration.ts +function QGPTConversationPipelineForContextualizedCodeGenerationFromJSON(json) { + return QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped2(json, false); +} +function QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + }; +} +function QGPTConversationPipelineForContextualizedCodeGenerationToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema) + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTConversationPipelineForGeneralizedCodeDialog.ts +function QGPTConversationPipelineForGeneralizedCodeDialogFromJSON(json) { + return QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped2(json, false); +} +function QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + }; +} +function QGPTConversationPipelineForGeneralizedCodeDialogToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema) + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTPromptPipeline.ts +function QGPTPromptPipelineFromJSON(json) { + return QGPTPromptPipelineFromJSONTyped3(json, false); +} +function QGPTPromptPipelineFromJSONTyped3(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "task": !exists(json, "task") ? void 0 : QGPTTaskPipelineFromJSON(json["task"]), + "conversation": !exists(json, "conversation") ? void 0 : QGPTConversationPipelineFromJSON(json["conversation"]) + }; +} +function QGPTPromptPipelineToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "task": QGPTTaskPipelineToJSON(value.task), + "conversation": QGPTConversationPipelineToJSON(value.conversation) + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTTaskPipeline.ts +function QGPTTaskPipelineFromJSON(json) { + return QGPTTaskPipelineFromJSONTyped2(json, false); +} +function QGPTTaskPipelineFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "codeExplanation": !exists(json, "code_explanation") ? void 0 : QGPTTaskPipelineForCodeExplanationFromJSON(json["code_explanation"]), + "codeCommentation": !exists(json, "code_commentation") ? void 0 : QGPTTaskPipelineForCodeCommentationFromJSON(json["code_commentation"]), + "codeFix": !exists(json, "code_fix") ? void 0 : QGPTTaskPipelineForCodeFixFromJSON(json["code_fix"]), + "codeModification": !exists(json, "code_modification") ? void 0 : QGPTTaskPipelineForCodeModificationFromJSON(json["code_modification"]), + "codeCompletion": !exists(json, "code_completion") ? void 0 : QGPTTaskPipelineForCodeCompletionFromJSON(json["code_completion"]) + }; +} +function QGPTTaskPipelineToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "code_explanation": QGPTTaskPipelineForCodeExplanationToJSON(value.codeExplanation), + "code_commentation": QGPTTaskPipelineForCodeCommentationToJSON(value.codeCommentation), + "code_fix": QGPTTaskPipelineForCodeFixToJSON(value.codeFix), + "code_modification": QGPTTaskPipelineForCodeModificationToJSON(value.codeModification), + "code_completion": QGPTTaskPipelineForCodeCompletionToJSON(value.codeCompletion) + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTTaskPipelineForCodeCommentation.ts +function QGPTTaskPipelineForCodeCommentationFromJSON(json) { + return QGPTTaskPipelineForCodeCommentationFromJSONTyped2(json, false); +} +function QGPTTaskPipelineForCodeCommentationFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + }; +} +function QGPTTaskPipelineForCodeCommentationToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema) + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTTaskPipelineForCodeCompletion.ts +function QGPTTaskPipelineForCodeCompletionFromJSON(json) { + return QGPTTaskPipelineForCodeCompletionFromJSONTyped2(json, false); +} +function QGPTTaskPipelineForCodeCompletionFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "context": !exists(json, "context") ? void 0 : json["context"] + }; +} +function QGPTTaskPipelineForCodeCompletionToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "context": value.context + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTTaskPipelineForCodeExplanation.ts +function QGPTTaskPipelineForCodeExplanationFromJSON(json) { + return QGPTTaskPipelineForCodeExplanationFromJSONTyped2(json, false); +} +function QGPTTaskPipelineForCodeExplanationFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + }; +} +function QGPTTaskPipelineForCodeExplanationToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema) + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTTaskPipelineForCodeFix.ts +function QGPTTaskPipelineForCodeFixFromJSON(json) { + return QGPTTaskPipelineForCodeFixFromJSONTyped2(json, false); +} +function QGPTTaskPipelineForCodeFixFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "error": !exists(json, "error") ? void 0 : json["error"] + }; +} +function QGPTTaskPipelineForCodeFixToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "error": value.error + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/QGPTTaskPipelineForCodeModification.ts +function QGPTTaskPipelineForCodeModificationFromJSON(json) { + return QGPTTaskPipelineForCodeModificationFromJSONTyped2(json, false); +} +function QGPTTaskPipelineForCodeModificationFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "instruction": !exists(json, "instruction") ? void 0 : json["instruction"] + }; +} +function QGPTTaskPipelineForCodeModificationToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "instruction": value.instruction + }; +} + // ../generated_runtime/sdk/http/typescript/connector/models/Reaction.ts function ReactionToJSON(value) { if (value === void 0) { @@ -57861,7 +59766,7 @@ function querystring2(params, prefix = "") { return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; }).filter((part) => part.length > 0).join("&"); } -function mapValues207(data, fn) { +function mapValues218(data, fn) { return Object.keys(data).reduce( (acc, key) => ({ ...acc, [key]: fn(data[key]) }), {} @@ -58599,7 +60504,8 @@ function AssetFromJSONTyped4(json, ignoreDiscriminator) { "annotations": !exists2(json, "annotations") ? void 0 : AnnotationsFromJSON2(json["annotations"]), "hints": !exists2(json, "hints") ? void 0 : HintsFromJSON2(json["hints"]), "anchors": !exists2(json, "anchors") ? void 0 : AnchorsFromJSON2(json["anchors"]), - "conversations": !exists2(json, "conversations") ? void 0 : ConversationsFromJSON2(json["conversations"]) + "conversations": !exists2(json, "conversations") ? void 0 : ConversationsFromJSON2(json["conversations"]), + "demo": !exists2(json, "demo") ? void 0 : json["demo"] }; } function AssetToJSON2(value) { @@ -58637,7 +60543,8 @@ function AssetToJSON2(value) { "annotations": AnnotationsToJSON2(value.annotations), "hints": HintsToJSON2(value.hints), "anchors": AnchorsToJSON2(value.anchors), - "conversations": ConversationsToJSON2(value.conversations) + "conversations": ConversationsToJSON2(value.conversations), + "demo": value.demo }; } @@ -59167,7 +61074,9 @@ function ConversationFromJSONTyped3(json, ignoreDiscriminator) { "anchors": !exists2(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON2(json["anchors"]), "type": ConversationTypeEnumFromJSON2(json["type"]), "grounding": !exists2(json, "grounding") ? void 0 : ConversationGroundingFromJSON2(json["grounding"]), - "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]) + "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]), + "pipeline": !exists2(json, "pipeline") ? void 0 : QGPTPromptPipelineFromJSON2(json["pipeline"]), + "demo": !exists2(json, "demo") ? void 0 : json["demo"] }; } function ConversationToJSON2(value) { @@ -59194,7 +61103,9 @@ function ConversationToJSON2(value) { "anchors": FlattenedAnchorsToJSON2(value.anchors), "type": ConversationTypeEnumToJSON2(value.type), "grounding": ConversationGroundingToJSON2(value.grounding), - "score": ScoreToJSON2(value.score) + "score": ScoreToJSON2(value.score), + "pipeline": QGPTPromptPipelineToJSON2(value.pipeline), + "demo": value.demo }; } @@ -59593,9 +61504,9 @@ function EdgesToJSON2(value) { // ../generated_runtime/sdk/http/typescript/core/models/EmbeddedModelSchema.ts function EmbeddedModelSchemaFromJSON2(json) { - return EmbeddedModelSchemaFromJSONTyped265(json, false); + return EmbeddedModelSchemaFromJSONTyped278(json, false); } -function EmbeddedModelSchemaFromJSONTyped265(json, ignoreDiscriminator) { +function EmbeddedModelSchemaFromJSONTyped278(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } @@ -60352,7 +62263,8 @@ function FlattenedAssetFromJSONTyped8(json, ignoreDiscriminator) { "annotations": !exists2(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON2(json["annotations"]), "hints": !exists2(json, "hints") ? void 0 : FlattenedHintsFromJSON2(json["hints"]), "anchors": !exists2(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON2(json["anchors"]), - "conversations": !exists2(json, "conversations") ? void 0 : FlattenedConversationsFromJSON2(json["conversations"]) + "conversations": !exists2(json, "conversations") ? void 0 : FlattenedConversationsFromJSON2(json["conversations"]), + "demo": !exists2(json, "demo") ? void 0 : json["demo"] }; } function FlattenedAssetToJSON2(value) { @@ -60390,7 +62302,8 @@ function FlattenedAssetToJSON2(value) { "annotations": FlattenedAnnotationsToJSON2(value.annotations), "hints": FlattenedHintsToJSON2(value.hints), "anchors": FlattenedAnchorsToJSON2(value.anchors), - "conversations": FlattenedConversationsToJSON2(value.conversations) + "conversations": FlattenedConversationsToJSON2(value.conversations), + "demo": value.demo }; } @@ -60449,7 +62362,9 @@ function FlattenedConversationFromJSONTyped3(json, ignoreDiscriminator) { "anchors": !exists2(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON2(json["anchors"]), "type": ConversationTypeEnumFromJSON2(json["type"]), "grounding": !exists2(json, "grounding") ? void 0 : ConversationGroundingFromJSON2(json["grounding"]), - "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]) + "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]), + "pipeline": !exists2(json, "pipeline") ? void 0 : QGPTPromptPipelineFromJSON2(json["pipeline"]), + "demo": !exists2(json, "demo") ? void 0 : json["demo"] }; } function FlattenedConversationToJSON2(value) { @@ -60476,7 +62391,9 @@ function FlattenedConversationToJSON2(value) { "anchors": FlattenedAnchorsToJSON2(value.anchors), "type": ConversationTypeEnumToJSON2(value.type), "grounding": ConversationGroundingToJSON2(value.grounding), - "score": ScoreToJSON2(value.score) + "score": ScoreToJSON2(value.score), + "pipeline": QGPTPromptPipelineToJSON2(value.pipeline), + "demo": value.demo }; } @@ -60890,12 +62807,12 @@ function FlattenedPersonFromJSONTyped3(json, ignoreDiscriminator) { "deleted": !exists2(json, "deleted") ? void 0 : GroupedTimestampFromJSON2(json["deleted"]), "type": PersonTypeFromJSON2(json["type"]), "assets": !exists2(json, "assets") ? void 0 : FlattenedAssetsFromJSON2(json["assets"]), - "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues218(json["mechanisms"], MechanismEnumFromJSON2), "interactions": !exists2(json, "interactions") ? void 0 : json["interactions"], - "access": !exists2(json, "access") ? void 0 : mapValues207(json["access"], PersonAccessFromJSON2), + "access": !exists2(json, "access") ? void 0 : mapValues218(json["access"], PersonAccessFromJSON2), "tags": !exists2(json, "tags") ? void 0 : FlattenedTagsFromJSON2(json["tags"]), "websites": !exists2(json, "websites") ? void 0 : FlattenedWebsitesFromJSON2(json["websites"]), - "models": !exists2(json, "models") ? void 0 : mapValues207(json["models"], PersonModelFromJSON2), + "models": !exists2(json, "models") ? void 0 : mapValues218(json["models"], PersonModelFromJSON2), "annotations": !exists2(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON2(json["annotations"]), "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]) }; @@ -60915,12 +62832,12 @@ function FlattenedPersonToJSON2(value) { "deleted": GroupedTimestampToJSON2(value.deleted), "type": PersonTypeToJSON2(value.type), "assets": FlattenedAssetsToJSON2(value.assets), - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues218(value.mechanisms, MechanismEnumToJSON2), "interactions": value.interactions, - "access": value.access === void 0 ? void 0 : mapValues207(value.access, PersonAccessToJSON2), + "access": value.access === void 0 ? void 0 : mapValues218(value.access, PersonAccessToJSON2), "tags": FlattenedTagsToJSON2(value.tags), "websites": FlattenedWebsitesToJSON2(value.websites), - "models": value.models === void 0 ? void 0 : mapValues207(value.models, PersonModelToJSON2), + "models": value.models === void 0 ? void 0 : mapValues218(value.models, PersonModelToJSON2), "annotations": FlattenedAnnotationsToJSON2(value.annotations), "score": ScoreToJSON2(value.score) }; @@ -61152,7 +63069,7 @@ function FlattenedTagFromJSONTyped3(json, ignoreDiscriminator) { "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), "id": json["id"], "text": json["text"], - "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues218(json["mechanisms"], MechanismEnumFromJSON2), "assets": !exists2(json, "assets") ? void 0 : FlattenedAssetsFromJSON2(json["assets"]), "created": GroupedTimestampFromJSON2(json["created"]), "updated": GroupedTimestampFromJSON2(json["updated"]), @@ -61175,7 +63092,7 @@ function FlattenedTagToJSON2(value) { "schema": EmbeddedModelSchemaToJSON2(value.schema), "id": value.id, "text": value.text, - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues218(value.mechanisms, MechanismEnumToJSON2), "assets": FlattenedAssetsToJSON2(value.assets), "created": GroupedTimestampToJSON2(value.created), "updated": GroupedTimestampToJSON2(value.updated), @@ -61271,7 +63188,7 @@ function FlattenedWebsiteFromJSONTyped3(json, ignoreDiscriminator) { "created": GroupedTimestampFromJSON2(json["created"]), "updated": GroupedTimestampFromJSON2(json["updated"]), "deleted": !exists2(json, "deleted") ? void 0 : GroupedTimestampFromJSON2(json["deleted"]), - "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues218(json["mechanisms"], MechanismEnumFromJSON2), "interactions": !exists2(json, "interactions") ? void 0 : json["interactions"], "persons": !exists2(json, "persons") ? void 0 : FlattenedPersonsFromJSON2(json["persons"]), "conversations": !exists2(json, "conversations") ? void 0 : FlattenedConversationsFromJSON2(json["conversations"]), @@ -61294,7 +63211,7 @@ function FlattenedWebsiteToJSON2(value) { "created": GroupedTimestampToJSON2(value.created), "updated": GroupedTimestampToJSON2(value.updated), "deleted": GroupedTimestampToJSON2(value.deleted), - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues218(value.mechanisms, MechanismEnumToJSON2), "interactions": value.interactions, "persons": FlattenedPersonsToJSON2(value.persons), "conversations": FlattenedConversationsToJSON2(value.conversations), @@ -62395,6 +64312,97 @@ function OCRAnalysisToJSON2(value) { }; } +// ../generated_runtime/sdk/http/typescript/core/models/OSDeviceCPUHardwareInformation.ts +function OSDeviceCPUHardwareInformationFromJSON(json) { + return OSDeviceCPUHardwareInformationFromJSONTyped(json, false); +} +function OSDeviceCPUHardwareInformationFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "name": !exists2(json, "name") ? void 0 : json["name"], + "memory": !exists2(json, "memory") ? void 0 : json["memory"] + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/OSDeviceDependenciesInformation.ts +function OSDeviceDependenciesInformationFromJSON(json) { + return OSDeviceDependenciesInformationFromJSONTyped(json, false); +} +function OSDeviceDependenciesInformationFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "vulkan": json["vulkan"] + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/OSDeviceGPUHardwareCapabilitiesInformation.ts +function OSDeviceGPUHardwareCapabilitiesInformationFromJSON(json) { + return OSDeviceGPUHardwareCapabilitiesInformationFromJSONTyped(json, false); +} +function OSDeviceGPUHardwareCapabilitiesInformationFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "llm": !exists2(json, "llm") ? void 0 : json["llm"] + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/OSDeviceGPUHardwareInformation.ts +function OSDeviceGPUHardwareInformationFromJSON(json) { + return OSDeviceGPUHardwareInformationFromJSONTyped(json, false); +} +function OSDeviceGPUHardwareInformationFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "name": !exists2(json, "name") ? void 0 : json["name"], + "memory": !exists2(json, "memory") ? void 0 : json["memory"], + "capabilities": !exists2(json, "capabilities") ? void 0 : OSDeviceGPUHardwareCapabilitiesInformationFromJSON(json["capabilities"]) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/OSDeviceHardwareInformation.ts +function OSDeviceHardwareInformationFromJSON(json) { + return OSDeviceHardwareInformationFromJSONTyped(json, false); +} +function OSDeviceHardwareInformationFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "cpu": !exists2(json, "cpu") ? void 0 : OSDeviceCPUHardwareInformationFromJSON(json["cpu"]), + "gpu": !exists2(json, "gpu") ? void 0 : OSDeviceGPUHardwareInformationFromJSON(json["gpu"]) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/OSDeviceInformationReturnable.ts +function OSDeviceInformationReturnableFromJSON(json) { + return OSDeviceInformationReturnableFromJSONTyped(json, false); +} +function OSDeviceInformationReturnableFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "dependencies": !exists2(json, "dependencies") ? void 0 : OSDeviceDependenciesInformationFromJSON(json["dependencies"]), + "name": !exists2(json, "name") ? void 0 : json["name"], + "version": !exists2(json, "version") ? void 0 : json["version"], + "hardware": !exists2(json, "hardware") ? void 0 : OSDeviceHardwareInformationFromJSON(json["hardware"]) + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/Person.ts function PersonFromJSON2(json) { return PersonFromJSONTyped3(json, false); @@ -62411,12 +64419,12 @@ function PersonFromJSONTyped3(json, ignoreDiscriminator) { "deleted": !exists2(json, "deleted") ? void 0 : GroupedTimestampFromJSON2(json["deleted"]), "type": PersonTypeFromJSON2(json["type"]), "assets": !exists2(json, "assets") ? void 0 : FlattenedAssetsFromJSON2(json["assets"]), - "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues218(json["mechanisms"], MechanismEnumFromJSON2), "interactions": !exists2(json, "interactions") ? void 0 : json["interactions"], - "access": !exists2(json, "access") ? void 0 : mapValues207(json["access"], PersonAccessFromJSON2), + "access": !exists2(json, "access") ? void 0 : mapValues218(json["access"], PersonAccessFromJSON2), "tags": !exists2(json, "tags") ? void 0 : FlattenedTagsFromJSON2(json["tags"]), "websites": !exists2(json, "websites") ? void 0 : FlattenedWebsitesFromJSON2(json["websites"]), - "models": !exists2(json, "models") ? void 0 : mapValues207(json["models"], PersonModelFromJSON2), + "models": !exists2(json, "models") ? void 0 : mapValues218(json["models"], PersonModelFromJSON2), "annotations": !exists2(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON2(json["annotations"]), "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]) }; @@ -62436,12 +64444,12 @@ function PersonToJSON2(value) { "deleted": GroupedTimestampToJSON2(value.deleted), "type": PersonTypeToJSON2(value.type), "assets": FlattenedAssetsToJSON2(value.assets), - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues218(value.mechanisms, MechanismEnumToJSON2), "interactions": value.interactions, - "access": value.access === void 0 ? void 0 : mapValues207(value.access, PersonAccessToJSON2), + "access": value.access === void 0 ? void 0 : mapValues218(value.access, PersonAccessToJSON2), "tags": FlattenedTagsToJSON2(value.tags), "websites": FlattenedWebsitesToJSON2(value.websites), - "models": value.models === void 0 ? void 0 : mapValues207(value.models, PersonModelToJSON2), + "models": value.models === void 0 ? void 0 : mapValues218(value.models, PersonModelToJSON2), "annotations": FlattenedAnnotationsToJSON2(value.annotations), "score": ScoreToJSON2(value.score) }; @@ -62745,6 +64753,108 @@ function QGPTConversationMessageRoleEnumToJSON2(value) { return value; } +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipeline.ts +function QGPTConversationPipelineFromJSON2(json) { + return QGPTConversationPipelineFromJSONTyped3(json, false); +} +function QGPTConversationPipelineFromJSONTyped3(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "contextualizedCodeGeneration": !exists2(json, "contextualized_code_generation") ? void 0 : QGPTConversationPipelineForContextualizedCodeGenerationFromJSON2(json["contextualized_code_generation"]), + "generalizedCodeDialog": !exists2(json, "generalized_code_dialog") ? void 0 : QGPTConversationPipelineForGeneralizedCodeDialogFromJSON2(json["generalized_code_dialog"]), + "contextualizedCodeDialog": !exists2(json, "contextualized_code_dialog") ? void 0 : QGPTConversationPipelineForContextualizedCodeDialogFromJSON2(json["contextualized_code_dialog"]) + }; +} +function QGPTConversationPipelineToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "contextualized_code_generation": QGPTConversationPipelineForContextualizedCodeGenerationToJSON2(value.contextualizedCodeGeneration), + "generalized_code_dialog": QGPTConversationPipelineForGeneralizedCodeDialogToJSON2(value.generalizedCodeDialog), + "contextualized_code_dialog": QGPTConversationPipelineForContextualizedCodeDialogToJSON2(value.contextualizedCodeDialog) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForContextualizedCodeDialog.ts +function QGPTConversationPipelineForContextualizedCodeDialogFromJSON2(json) { + return QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped4(json, false); +} +function QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]) + }; +} +function QGPTConversationPipelineForContextualizedCodeDialogToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForContextualizedCodeGeneration.ts +function QGPTConversationPipelineForContextualizedCodeGenerationFromJSON2(json) { + return QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped4(json, false); +} +function QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]) + }; +} +function QGPTConversationPipelineForContextualizedCodeGenerationToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForGeneralizedCodeDialog.ts +function QGPTConversationPipelineForGeneralizedCodeDialogFromJSON2(json) { + return QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped4(json, false); +} +function QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]) + }; +} +function QGPTConversationPipelineForGeneralizedCodeDialogToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema) + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/QGPTHintsInput.ts function QGPTHintsInputToJSON(value) { if (value === void 0) { @@ -62794,6 +64904,34 @@ function QGPTPersonsRelatedOutputFromJSONTyped(json, ignoreDiscriminator) { }; } +// ../generated_runtime/sdk/http/typescript/core/models/QGPTPromptPipeline.ts +function QGPTPromptPipelineFromJSON2(json) { + return QGPTPromptPipelineFromJSONTyped6(json, false); +} +function QGPTPromptPipelineFromJSONTyped6(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "task": !exists2(json, "task") ? void 0 : QGPTTaskPipelineFromJSON2(json["task"]), + "conversation": !exists2(json, "conversation") ? void 0 : QGPTConversationPipelineFromJSON2(json["conversation"]) + }; +} +function QGPTPromptPipelineToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "task": QGPTTaskPipelineToJSON2(value.task), + "conversation": QGPTConversationPipelineToJSON2(value.conversation) + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/QGPTQuestionAnswer.ts function QGPTQuestionAnswerFromJSON(json) { return QGPTQuestionAnswerFromJSONTyped2(json, false); @@ -62850,7 +64988,8 @@ function QGPTQuestionInputToJSON(value) { "query": value.query, "application": value.application, "model": value.model, - "messages": FlattenedConversationMessagesToJSON2(value.messages) + "messages": FlattenedConversationMessagesToJSON2(value.messages), + "pipeline": QGPTPromptPipelineToJSON2(value.pipeline) }; } @@ -62900,7 +65039,8 @@ function QGPTRelevanceInputOptionsToJSON(value) { return { "schema": EmbeddedModelSchemaToJSON2(value.schema), "database": value.database, - "question": value.question + "question": value.question, + "pipeline": QGPTPromptPipelineToJSON2(value.pipeline) }; } @@ -62932,7 +65072,8 @@ function QGPTRepromptInputToJSON(value) { "query": value.query, "conversation": QGPTConversationToJSON(value.conversation), "application": value.application, - "model": value.model + "model": value.model, + "pipeline": QGPTPromptPipelineToJSON2(value.pipeline) }; } @@ -62996,6 +65137,166 @@ function QGPTStreamOutputFromJSONTyped(json, ignoreDiscriminator) { }; } +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipeline.ts +function QGPTTaskPipelineFromJSON2(json) { + return QGPTTaskPipelineFromJSONTyped4(json, false); +} +function QGPTTaskPipelineFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "codeExplanation": !exists2(json, "code_explanation") ? void 0 : QGPTTaskPipelineForCodeExplanationFromJSON2(json["code_explanation"]), + "codeCommentation": !exists2(json, "code_commentation") ? void 0 : QGPTTaskPipelineForCodeCommentationFromJSON2(json["code_commentation"]), + "codeFix": !exists2(json, "code_fix") ? void 0 : QGPTTaskPipelineForCodeFixFromJSON2(json["code_fix"]), + "codeModification": !exists2(json, "code_modification") ? void 0 : QGPTTaskPipelineForCodeModificationFromJSON2(json["code_modification"]), + "codeCompletion": !exists2(json, "code_completion") ? void 0 : QGPTTaskPipelineForCodeCompletionFromJSON2(json["code_completion"]) + }; +} +function QGPTTaskPipelineToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "code_explanation": QGPTTaskPipelineForCodeExplanationToJSON2(value.codeExplanation), + "code_commentation": QGPTTaskPipelineForCodeCommentationToJSON2(value.codeCommentation), + "code_fix": QGPTTaskPipelineForCodeFixToJSON2(value.codeFix), + "code_modification": QGPTTaskPipelineForCodeModificationToJSON2(value.codeModification), + "code_completion": QGPTTaskPipelineForCodeCompletionToJSON2(value.codeCompletion) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeCommentation.ts +function QGPTTaskPipelineForCodeCommentationFromJSON2(json) { + return QGPTTaskPipelineForCodeCommentationFromJSONTyped4(json, false); +} +function QGPTTaskPipelineForCodeCommentationFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]) + }; +} +function QGPTTaskPipelineForCodeCommentationToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeCompletion.ts +function QGPTTaskPipelineForCodeCompletionFromJSON2(json) { + return QGPTTaskPipelineForCodeCompletionFromJSONTyped4(json, false); +} +function QGPTTaskPipelineForCodeCompletionFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "context": !exists2(json, "context") ? void 0 : json["context"] + }; +} +function QGPTTaskPipelineForCodeCompletionToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "context": value.context + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeExplanation.ts +function QGPTTaskPipelineForCodeExplanationFromJSON2(json) { + return QGPTTaskPipelineForCodeExplanationFromJSONTyped4(json, false); +} +function QGPTTaskPipelineForCodeExplanationFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]) + }; +} +function QGPTTaskPipelineForCodeExplanationToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeFix.ts +function QGPTTaskPipelineForCodeFixFromJSON2(json) { + return QGPTTaskPipelineForCodeFixFromJSONTyped4(json, false); +} +function QGPTTaskPipelineForCodeFixFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "error": !exists2(json, "error") ? void 0 : json["error"] + }; +} +function QGPTTaskPipelineForCodeFixToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "error": value.error + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeModification.ts +function QGPTTaskPipelineForCodeModificationFromJSON2(json) { + return QGPTTaskPipelineForCodeModificationFromJSONTyped4(json, false); +} +function QGPTTaskPipelineForCodeModificationFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "instruction": !exists2(json, "instruction") ? void 0 : json["instruction"] + }; +} +function QGPTTaskPipelineForCodeModificationToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "instruction": value.instruction + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/Recipients.ts function RecipientsFromJSON2(json) { return RecipientsFromJSONTyped6(json, false); @@ -63846,7 +66147,8 @@ function SeededAssetFromJSONTyped2(json, ignoreDiscriminator) { "discovered": !exists2(json, "discovered") ? void 0 : json["discovered"], "available": !exists2(json, "available") ? void 0 : AvailableFormatsFromJSON(json["available"]), "pseudo": !exists2(json, "pseudo") ? void 0 : json["pseudo"], - "enrichment": !exists2(json, "enrichment") ? void 0 : SeededAssetEnrichmentFromJSON(json["enrichment"]) + "enrichment": !exists2(json, "enrichment") ? void 0 : SeededAssetEnrichmentFromJSON(json["enrichment"]), + "demo": !exists2(json, "demo") ? void 0 : json["demo"] }; } function SeededAssetToJSON(value) { @@ -63864,7 +66166,8 @@ function SeededAssetToJSON(value) { "discovered": value.discovered, "available": AvailableFormatsToJSON(value.available), "pseudo": value.pseudo, - "enrichment": SeededAssetEnrichmentToJSON(value.enrichment) + "enrichment": SeededAssetEnrichmentToJSON(value.enrichment), + "demo": value.demo }; } @@ -64159,7 +66462,9 @@ function SeededConversationToJSON(value) { "assets": FlattenedAssetsToJSON2(value.assets), "websites": FlattenedWebsitesToJSON2(value.websites), "anchors": value.anchors === void 0 ? void 0 : value.anchors.map(SeededAnchorToJSON2), - "type": ConversationTypeEnumToJSON2(value.type) + "type": ConversationTypeEnumToJSON2(value.type), + "pipeline": QGPTPromptPipelineToJSON2(value.pipeline), + "demo": value.demo }; } @@ -66003,7 +68308,7 @@ function TagFromJSONTyped3(json, ignoreDiscriminator) { "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), "id": json["id"], "text": json["text"], - "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues218(json["mechanisms"], MechanismEnumFromJSON2), "assets": !exists2(json, "assets") ? void 0 : FlattenedAssetsFromJSON2(json["assets"]), "created": GroupedTimestampFromJSON2(json["created"]), "updated": GroupedTimestampFromJSON2(json["updated"]), @@ -66026,7 +68331,7 @@ function TagToJSON2(value) { "schema": EmbeddedModelSchemaToJSON2(value.schema), "id": value.id, "text": value.text, - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues218(value.mechanisms, MechanismEnumToJSON2), "assets": FlattenedAssetsToJSON2(value.assets), "created": GroupedTimestampToJSON2(value.created), "updated": GroupedTimestampToJSON2(value.updated), @@ -66937,7 +69242,7 @@ function WebsiteFromJSONTyped3(json, ignoreDiscriminator) { "created": GroupedTimestampFromJSON2(json["created"]), "updated": GroupedTimestampFromJSON2(json["updated"]), "deleted": !exists2(json, "deleted") ? void 0 : GroupedTimestampFromJSON2(json["deleted"]), - "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues218(json["mechanisms"], MechanismEnumFromJSON2), "interactions": !exists2(json, "interactions") ? void 0 : json["interactions"], "persons": !exists2(json, "persons") ? void 0 : FlattenedPersonsFromJSON2(json["persons"]), "conversations": !exists2(json, "conversations") ? void 0 : FlattenedConversationsFromJSON2(json["conversations"]), @@ -66960,7 +69265,7 @@ function WebsiteToJSON2(value) { "created": GroupedTimestampToJSON2(value.created), "updated": GroupedTimestampToJSON2(value.updated), "deleted": GroupedTimestampToJSON2(value.deleted), - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues218(value.mechanisms, MechanismEnumToJSON2), "interactions": value.interactions, "persons": FlattenedPersonsToJSON2(value.persons), "conversations": FlattenedConversationsToJSON2(value.conversations), @@ -70071,6 +72376,29 @@ var OSApi = class extends BaseAPI2 { const response = await this.linkProviderRaw(requestParameters); return await response.value(); } + /** + * This will get information related to your specific device. + * /os/device/information [GET] + */ + async osDeviceInformationRaw() { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/os/device/information`, + method: "GET", + headers: headerParameters, + query: queryParameters + }); + return new JSONApiResponse2(response, (jsonValue) => OSDeviceInformationReturnableFromJSON(jsonValue)); + } + /** + * This will get information related to your specific device. + * /os/device/information [GET] + */ + async osDeviceInformation() { + const response = await this.osDeviceInformationRaw(); + return await response.value(); + } /** * This will restart PiecesOS, if successfull with return a 204. This is a LOCALOS Only Endpoint. * Your GET endpoint @@ -70701,7 +73029,7 @@ var WellKnownApi = class extends BaseAPI2 { }; // package.json -var version = "1.10.1"; +var version = "1.11.0"; // src/connection/notification_handler.ts var import_NotificationParameters = __toESM(require_NotificationParameters()); @@ -70883,8 +73211,8 @@ var launchRuntime = async (wait) => { // src/connection/version_check.ts var config = ConnectorSingleton.getInstance(); -var currentMinVersion = "7.2.0"; -var currentMaxVersion = "8.0.0"; +var currentMinVersion = "8.0.0"; +var currentMaxVersion = "9.0.0"; var versionValid = false; var versionCheck = async ({ retry: retry2, diff --git a/manifest.json b/manifest.json index dc535f8..dd514be 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "pieces-for-developers", "name": "Pieces for Developers", - "version": "1.10.1", + "version": "1.11.0", "minAppVersion": "0.15.0", "description": "Streamline your coding workflow in Obsidian with the Pieces For Developers plugin, offering powerful features for capturing, managing, translating, and enhancing code snippets. (Closed Source) ", "author": "Pieces For Developers", diff --git a/styles.css b/styles.css index a7a9a72..06de110 100644 --- a/styles.css +++ b/styles.css @@ -656,6 +656,10 @@ body.pieces { top: -0.75rem; } +.bottom-1 { + bottom: 0.25rem; +} + .bottom-24 { bottom: 6rem; } @@ -680,6 +684,10 @@ body.pieces { left: -90%; } +.right-1 { + right: 0.25rem; +} + .right-2 { right: 0.5rem; } @@ -751,6 +759,10 @@ body.pieces { margin-bottom: 0.625rem; } +.mb-auto { + margin-bottom: auto; +} + .ml-2 { margin-left: 0.5rem; } @@ -849,10 +861,6 @@ body.pieces { height: 3rem; } -.h-16 { - height: 4rem; -} - .h-2 { height: 0.5rem; } @@ -1404,6 +1412,10 @@ body.pieces { padding-bottom: 1rem; } +.\!pb-4 { + padding-bottom: 1rem !important; +} + .pb-0 { padding-bottom: 0px; }