diff --git a/main.js b/main.js index b7c81f0..b13e32f 100644 --- a/main.js +++ b/main.js @@ -2885,10 +2885,10 @@ var require_runtime = __commonJS({ }).filter((part) => part.length > 0).join("&"); } exports.querystring = querystring3; - function mapValues1038(data, fn) { + function mapValues1058(data, fn) { return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {}); } - exports.mapValues = mapValues1038; + exports.mapValues = mapValues1058; function canConsumeForm2(consumes) { for (const consume of consumes) { if ("multipart/form-data" === consume.contentType) { @@ -2971,7 +2971,7 @@ var require_Accessor = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AccessorToJSON = exports.AccessorFromJSONTyped = exports.AccessorFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AccessorFromJSON4(json) { return AccessorFromJSONTyped6(json, false); } @@ -2981,12 +2981,12 @@ var require_Accessor = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "os": json["os"], "share": json["share"], "count": json["count"], - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.FlattenedUserProfileFromJSON)(json["user"]) + "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.FlattenedUserProfileFromJSON)(json["user"]) }; } exports.AccessorFromJSONTyped = AccessorFromJSONTyped6; @@ -2998,12 +2998,12 @@ var require_Accessor = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "os": value.os, "share": value.share, "count": value.count, - "user": (0, index_1.FlattenedUserProfileToJSON)(value.user) + "user": (0, _1.FlattenedUserProfileToJSON)(value.user) }; } exports.AccessorToJSON = AccessorToJSON4; @@ -3017,7 +3017,7 @@ var require_Accessors = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AccessorsToJSON = exports.AccessorsFromJSONTyped = exports.AccessorsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AccessorsFromJSON4(json) { return AccessorsFromJSONTyped9(json, false); } @@ -3027,8 +3027,8 @@ var require_Accessors = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.AccessorFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.AccessorFromJSON) }; } exports.AccessorsFromJSONTyped = AccessorsFromJSONTyped9; @@ -3040,8 +3040,8 @@ var require_Accessors = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.AccessorToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.AccessorToJSON) }; } exports.AccessorsToJSON = AccessorsToJSON4; @@ -3055,7 +3055,7 @@ var require_Activities = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ActivitiesToJSON = exports.ActivitiesFromJSONTyped = exports.ActivitiesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ActivitiesFromJSON4(json) { return ActivitiesFromJSONTyped9(json, false); } @@ -3065,12 +3065,12 @@ var require_Activities = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ActivityFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ActivityFromJSON) }; } exports.ActivitiesFromJSONTyped = ActivitiesFromJSONTyped9; - function ActivitiesToJSON5(value) { + function ActivitiesToJSON6(value) { if (value === void 0) { return void 0; } @@ -3078,11 +3078,11 @@ var require_Activities = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ActivityToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ActivityToJSON) }; } - exports.ActivitiesToJSON = ActivitiesToJSON5; + exports.ActivitiesToJSON = ActivitiesToJSON6; } }); @@ -3093,7 +3093,7 @@ var require_Activity = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ActivityToJSON = exports.ActivityFromJSONTyped = exports.ActivityFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ActivityFromJSON4(json) { return ActivityFromJSONTyped6(json, false); } @@ -3103,17 +3103,17 @@ var require_Activity = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "event": (0, index_1.SeededConnectorTrackingFromJSON)(json["event"]), - "application": (0, index_1.ApplicationFromJSON)(json["application"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.FlattenedAssetFromJSON)(json["asset"]), - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.FlattenedUserProfileFromJSON)(json["user"]), - "format": !(0, runtime_1.exists)(json, "format") ? void 0 : (0, index_1.FlattenedFormatFromJSON)(json["format"]), - "mechanism": (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "event": (0, _1.SeededConnectorTrackingFromJSON)(json["event"]), + "application": (0, _1.ApplicationFromJSON)(json["application"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.FlattenedAssetFromJSON)(json["asset"]), + "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.FlattenedUserProfileFromJSON)(json["user"]), + "format": !(0, runtime_1.exists)(json, "format") ? void 0 : (0, _1.FlattenedFormatFromJSON)(json["format"]), + "mechanism": (0, _1.MechanismEnumFromJSON)(json["mechanism"]), "rank": !(0, runtime_1.exists)(json, "rank") ? void 0 : json["rank"] }; } @@ -3126,17 +3126,17 @@ var require_Activity = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "event": (0, index_1.SeededConnectorTrackingToJSON)(value.event), - "application": (0, index_1.ApplicationToJSON)(value.application), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "asset": (0, index_1.FlattenedAssetToJSON)(value.asset), - "user": (0, index_1.FlattenedUserProfileToJSON)(value.user), - "format": (0, index_1.FlattenedFormatToJSON)(value.format), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "event": (0, _1.SeededConnectorTrackingToJSON)(value.event), + "application": (0, _1.ApplicationToJSON)(value.application), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "asset": (0, _1.FlattenedAssetToJSON)(value.asset), + "user": (0, _1.FlattenedUserProfileToJSON)(value.user), + "format": (0, _1.FlattenedFormatToJSON)(value.format), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), "rank": value.rank }; } @@ -3151,7 +3151,7 @@ var require_Aesthetics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AestheticsToJSON = exports.AestheticsFromJSONTyped = exports.AestheticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AestheticsFromJSON4(json) { return AestheticsFromJSONTyped6(json, false); } @@ -3161,9 +3161,9 @@ var require_Aesthetics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "theme": (0, index_1.ThemeFromJSON)(json["theme"]), - "font": (0, index_1.FontFromJSON)(json["font"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "theme": (0, _1.ThemeFromJSON)(json["theme"]), + "font": (0, _1.FontFromJSON)(json["font"]) }; } exports.AestheticsFromJSONTyped = AestheticsFromJSONTyped6; @@ -3175,9 +3175,9 @@ var require_Aesthetics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "theme": (0, index_1.ThemeToJSON)(value.theme), - "font": (0, index_1.FontToJSON)(value.font) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "theme": (0, _1.ThemeToJSON)(value.theme), + "font": (0, _1.FontToJSON)(value.font) }; } exports.AestheticsToJSON = AestheticsToJSON4; @@ -3191,7 +3191,7 @@ var require_AllocationCloud = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AllocationCloudToJSON = exports.AllocationCloudFromJSONTyped = exports.AllocationCloudFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AllocationCloudFromJSON4(json) { return AllocationCloudFromJSONTyped8(json, false); } @@ -3201,13 +3201,13 @@ var require_AllocationCloud = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "user": json["user"], - "urls": (0, index_1.AllocationCloudUrlsFromJSON)(json["urls"]), - "status": (0, index_1.AllocationCloudStatusFromJSON)(json["status"]), + "urls": (0, _1.AllocationCloudUrlsFromJSON)(json["urls"]), + "status": (0, _1.AllocationCloudStatusFromJSON)(json["status"]), "project": json["project"], - "updated": !(0, runtime_1.exists)(json, "updated") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["updated"]), + "updated": !(0, runtime_1.exists)(json, "updated") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["updated"]), "version": !(0, runtime_1.exists)(json, "version") ? void 0 : json["version"], "region": !(0, runtime_1.exists)(json, "region") ? void 0 : json["region"] }; @@ -3221,13 +3221,13 @@ var require_AllocationCloud = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "user": value.user, - "urls": (0, index_1.AllocationCloudUrlsToJSON)(value.urls), - "status": (0, index_1.AllocationCloudStatusToJSON)(value.status), + "urls": (0, _1.AllocationCloudUrlsToJSON)(value.urls), + "status": (0, _1.AllocationCloudStatusToJSON)(value.status), "project": value.project, - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), "version": value.version, "region": value.region }; @@ -3243,7 +3243,7 @@ var require_AllocationCloudStatus = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AllocationCloudStatusToJSON = exports.AllocationCloudStatusFromJSONTyped = exports.AllocationCloudStatusFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AllocationCloudStatusFromJSON4(json) { return AllocationCloudStatusFromJSONTyped6(json, false); } @@ -3253,8 +3253,8 @@ var require_AllocationCloudStatus = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "cloud": (0, index_1.AllocationStatusEnumFromJSON)(json["cloud"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "cloud": (0, _1.AllocationStatusEnumFromJSON)(json["cloud"]) }; } exports.AllocationCloudStatusFromJSONTyped = AllocationCloudStatusFromJSONTyped6; @@ -3266,8 +3266,8 @@ var require_AllocationCloudStatus = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "cloud": (0, index_1.AllocationStatusEnumToJSON)(value.cloud) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "cloud": (0, _1.AllocationStatusEnumToJSON)(value.cloud) }; } exports.AllocationCloudStatusToJSON = AllocationCloudStatusToJSON4; @@ -3281,7 +3281,7 @@ var require_AllocationCloudUrl = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AllocationCloudUrlToJSON = exports.AllocationCloudUrlFromJSONTyped = exports.AllocationCloudUrlFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AllocationCloudUrlFromJSON4(json) { return AllocationCloudUrlFromJSONTyped6(json, false); } @@ -3291,8 +3291,8 @@ var require_AllocationCloudUrl = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "status": (0, index_1.AllocationStatusEnumFromJSON)(json["status"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "status": (0, _1.AllocationStatusEnumFromJSON)(json["status"]), "url": json["url"] }; } @@ -3305,8 +3305,8 @@ var require_AllocationCloudUrl = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "status": (0, index_1.AllocationStatusEnumToJSON)(value.status), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "status": (0, _1.AllocationStatusEnumToJSON)(value.status), "url": value.url }; } @@ -3321,7 +3321,7 @@ var require_AllocationCloudUrls = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AllocationCloudUrlsToJSON = exports.AllocationCloudUrlsFromJSONTyped = exports.AllocationCloudUrlsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AllocationCloudUrlsFromJSON4(json) { return AllocationCloudUrlsFromJSONTyped6(json, false); } @@ -3331,10 +3331,10 @@ var require_AllocationCloudUrls = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "base": (0, index_1.AllocationCloudUrlFromJSON)(json["base"]), - "id": (0, index_1.AllocationCloudUrlFromJSON)(json["id"]), - "vanity": !(0, runtime_1.exists)(json, "vanity") ? void 0 : (0, index_1.AllocationCloudUrlFromJSON)(json["vanity"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "base": (0, _1.AllocationCloudUrlFromJSON)(json["base"]), + "id": (0, _1.AllocationCloudUrlFromJSON)(json["id"]), + "vanity": !(0, runtime_1.exists)(json, "vanity") ? void 0 : (0, _1.AllocationCloudUrlFromJSON)(json["vanity"]) }; } exports.AllocationCloudUrlsFromJSONTyped = AllocationCloudUrlsFromJSONTyped6; @@ -3346,10 +3346,10 @@ var require_AllocationCloudUrls = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "base": (0, index_1.AllocationCloudUrlToJSON)(value.base), - "id": (0, index_1.AllocationCloudUrlToJSON)(value.id), - "vanity": (0, index_1.AllocationCloudUrlToJSON)(value.vanity) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "base": (0, _1.AllocationCloudUrlToJSON)(value.base), + "id": (0, _1.AllocationCloudUrlToJSON)(value.id), + "vanity": (0, _1.AllocationCloudUrlToJSON)(value.vanity) }; } exports.AllocationCloudUrlsToJSON = AllocationCloudUrlsToJSON4; @@ -3392,7 +3392,7 @@ var require_Allocations = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AllocationsToJSON = exports.AllocationsFromJSONTyped = exports.AllocationsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AllocationsFromJSON2(json) { return AllocationsFromJSONTyped2(json, false); } @@ -3402,8 +3402,8 @@ var require_Allocations = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.AllocationCloudFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.AllocationCloudFromJSON) }; } exports.AllocationsFromJSONTyped = AllocationsFromJSONTyped2; @@ -3415,8 +3415,8 @@ var require_Allocations = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.AllocationCloudToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.AllocationCloudToJSON) }; } exports.AllocationsToJSON = AllocationsToJSON2; @@ -3430,7 +3430,7 @@ var require_Analyses = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnalysesToJSON = exports.AnalysesFromJSONTyped = exports.AnalysesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AnalysesFromJSON2(json) { return AnalysesFromJSONTyped(json, false); } @@ -3440,8 +3440,8 @@ var require_Analyses = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.AnalysisFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.AnalysisFromJSON) }; } exports.AnalysesFromJSONTyped = AnalysesFromJSONTyped; @@ -3453,8 +3453,8 @@ var require_Analyses = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.AnalysisToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.AnalysisToJSON) }; } exports.AnalysesToJSON = AnalysesToJSON2; @@ -3468,7 +3468,7 @@ var require_Analysis = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnalysisToJSON = exports.AnalysisFromJSONTyped = exports.AnalysisFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AnalysisFromJSON4(json) { return AnalysisFromJSONTyped8(json, false); } @@ -3478,11 +3478,11 @@ var require_Analysis = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "code": !(0, runtime_1.exists)(json, "code") ? void 0 : (0, index_1.CodeAnalysisFromJSON)(json["code"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "code": !(0, runtime_1.exists)(json, "code") ? void 0 : (0, _1.CodeAnalysisFromJSON)(json["code"]), "id": json["id"], "format": json["format"], - "image": !(0, runtime_1.exists)(json, "image") ? void 0 : (0, index_1.ImageAnalysisFromJSON)(json["image"]) + "image": !(0, runtime_1.exists)(json, "image") ? void 0 : (0, _1.ImageAnalysisFromJSON)(json["image"]) }; } exports.AnalysisFromJSONTyped = AnalysisFromJSONTyped8; @@ -3494,11 +3494,11 @@ var require_Analysis = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "code": (0, index_1.CodeAnalysisToJSON)(value.code), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "code": (0, _1.CodeAnalysisToJSON)(value.code), "id": value.id, "format": value.format, - "image": (0, index_1.ImageAnalysisToJSON)(value.image) + "image": (0, _1.ImageAnalysisToJSON)(value.image) }; } exports.AnalysisToJSON = AnalysisToJSON5; @@ -3512,7 +3512,7 @@ var require_AnalyticsTrackedAdoptionEventIdentifierDescriptionPairs = __commonJS Object.defineProperty(exports, "__esModule", { value: true }); exports.AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsToJSON = exports.AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsFromJSONTyped = exports.AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsFromJSON = exports.AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsAdoptionUninstallEnum = exports.AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsAdoptionInstallEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsAdoptionInstallEnum2; (function(AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsAdoptionInstallEnum3) { AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsAdoptionInstallEnum3["TheUserHasInstalledAPiecesApplication"] = "the_user_has_installed_a_pieces_application"; @@ -3530,7 +3530,7 @@ var require_AnalyticsTrackedAdoptionEventIdentifierDescriptionPairs = __commonJS return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "adoptionInstall": !(0, runtime_1.exists)(json, "adoption_install") ? void 0 : json["adoption_install"], "adoptionUninstall": !(0, runtime_1.exists)(json, "adoption_uninstall") ? void 0 : json["adoption_uninstall"] }; @@ -3544,7 +3544,7 @@ var require_AnalyticsTrackedAdoptionEventIdentifierDescriptionPairs = __commonJS return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "adoption_install": value.adoptionInstall, "adoption_uninstall": value.adoptionUninstall }; @@ -3560,7 +3560,7 @@ var require_Anchor = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnchorToJSON = exports.AnchorFromJSONTyped = exports.AnchorFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AnchorFromJSON4(json) { return AnchorFromJSONTyped6(json, false); } @@ -3570,19 +3570,19 @@ var require_Anchor = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], - "type": (0, index_1.AnchorTypeEnumFromJSON)(json["type"]), + "type": (0, _1.AnchorTypeEnumFromJSON)(json["type"]), "watch": !(0, runtime_1.exists)(json, "watch") ? void 0 : json["watch"], - "points": (0, index_1.FlattenedAnchorPointsFromJSON)(json["points"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.FlattenedAnnotationsFromJSON)(json["annotations"]), - "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, index_1.FlattenedConversationsFromJSON)(json["conversations"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "points": (0, _1.FlattenedAnchorPointsFromJSON)(json["points"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.FlattenedAnnotationsFromJSON)(json["annotations"]), + "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"]) }; } exports.AnchorFromJSONTyped = AnchorFromJSONTyped6; @@ -3594,19 +3594,19 @@ var require_Anchor = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "name": value.name, - "type": (0, index_1.AnchorTypeEnumToJSON)(value.type), + "type": (0, _1.AnchorTypeEnumToJSON)(value.type), "watch": value.watch, - "points": (0, index_1.FlattenedAnchorPointsToJSON)(value.points), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "annotations": (0, index_1.FlattenedAnnotationsToJSON)(value.annotations), - "conversations": (0, index_1.FlattenedConversationsToJSON)(value.conversations), - "score": (0, index_1.ScoreToJSON)(value.score) + "points": (0, _1.FlattenedAnchorPointsToJSON)(value.points), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations), + "conversations": (0, _1.FlattenedConversationsToJSON)(value.conversations), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.AnchorToJSON = AnchorToJSON5; @@ -3620,7 +3620,7 @@ var require_AnchorPoint = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnchorPointToJSON = exports.AnchorPointFromJSONTyped = exports.AnchorPointFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AnchorPointFromJSON3(json) { return AnchorPointFromJSONTyped4(json, false); } @@ -3630,16 +3630,16 @@ var require_AnchorPoint = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "verified": !(0, runtime_1.exists)(json, "verified") ? void 0 : json["verified"], "fullpath": json["fullpath"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, index_1.PlatformEnumFromJSON)(json["platform"]), - "anchor": (0, index_1.ReferencedAnchorFromJSON)(json["anchor"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, _1.PlatformEnumFromJSON)(json["platform"]), + "anchor": (0, _1.ReferencedAnchorFromJSON)(json["anchor"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.AnchorPointFromJSONTyped = AnchorPointFromJSONTyped4; @@ -3651,16 +3651,16 @@ var require_AnchorPoint = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "verified": value.verified, "fullpath": value.fullpath, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "platform": (0, index_1.PlatformEnumToJSON)(value.platform), - "anchor": (0, index_1.ReferencedAnchorToJSON)(value.anchor), - "score": (0, index_1.ScoreToJSON)(value.score) + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "platform": (0, _1.PlatformEnumToJSON)(value.platform), + "anchor": (0, _1.ReferencedAnchorToJSON)(value.anchor), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.AnchorPointToJSON = AnchorPointToJSON4; @@ -3674,7 +3674,7 @@ var require_AnchorPoints = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnchorPointsToJSON = exports.AnchorPointsFromJSONTyped = exports.AnchorPointsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AnchorPointsFromJSON2(json) { return AnchorPointsFromJSONTyped(json, false); } @@ -3684,10 +3684,10 @@ var require_AnchorPoints = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.AnchorPointFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.AnchorPointFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.AnchorPointsFromJSONTyped = AnchorPointsFromJSONTyped; @@ -3699,10 +3699,10 @@ var require_AnchorPoints = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.AnchorPointToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.AnchorPointToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.AnchorPointsToJSON = AnchorPointsToJSON2; @@ -3742,7 +3742,7 @@ var require_Anchors = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnchorsToJSON = exports.AnchorsFromJSONTyped = exports.AnchorsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AnchorsFromJSON4(json) { return AnchorsFromJSONTyped6(json, false); } @@ -3752,10 +3752,10 @@ var require_Anchors = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.AnchorFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.AnchorFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.AnchorsFromJSONTyped = AnchorsFromJSONTyped6; @@ -3767,10 +3767,10 @@ var require_Anchors = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.AnchorToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.AnchorToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.AnchorsToJSON = AnchorsToJSON5; @@ -3784,7 +3784,7 @@ var require_Annotation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnnotationToJSON = exports.AnnotationFromJSONTyped = exports.AnnotationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AnnotationFromJSON4(json) { return AnnotationFromJSONTyped6(json, false); } @@ -3794,23 +3794,23 @@ var require_Annotation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.ReferencedAssetFromJSON)(json["asset"]), - "person": !(0, runtime_1.exists)(json, "person") ? void 0 : (0, index_1.ReferencedPersonFromJSON)(json["person"]), - "type": (0, index_1.AnnotationTypeEnumFromJSON)(json["type"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.ReferencedAssetFromJSON)(json["asset"]), + "person": !(0, runtime_1.exists)(json, "person") ? void 0 : (0, _1.ReferencedPersonFromJSON)(json["person"]), + "type": (0, _1.AnnotationTypeEnumFromJSON)(json["type"]), "text": json["text"], - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ReferencedModelFromJSON)(json["model"]), + "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ReferencedModelFromJSON)(json["model"]), "pseudo": !(0, runtime_1.exists)(json, "pseudo") ? void 0 : json["pseudo"], "favorited": !(0, runtime_1.exists)(json, "favorited") ? void 0 : json["favorited"], - "anchor": !(0, runtime_1.exists)(json, "anchor") ? void 0 : (0, index_1.ReferencedAnchorFromJSON)(json["anchor"]), - "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, index_1.ReferencedConversationFromJSON)(json["conversation"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]), - "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, index_1.FlattenedConversationMessagesFromJSON)(json["messages"]) + "anchor": !(0, runtime_1.exists)(json, "anchor") ? void 0 : (0, _1.ReferencedAnchorFromJSON)(json["anchor"]), + "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, _1.ReferencedConversationFromJSON)(json["conversation"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]), + "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]) }; } exports.AnnotationFromJSONTyped = AnnotationFromJSONTyped6; @@ -3822,23 +3822,23 @@ var require_Annotation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), - "person": (0, index_1.ReferencedPersonToJSON)(value.person), - "type": (0, index_1.AnnotationTypeEnumToJSON)(value.type), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), + "person": (0, _1.ReferencedPersonToJSON)(value.person), + "type": (0, _1.AnnotationTypeEnumToJSON)(value.type), "text": value.text, - "model": (0, index_1.ReferencedModelToJSON)(value.model), + "model": (0, _1.ReferencedModelToJSON)(value.model), "pseudo": value.pseudo, "favorited": value.favorited, - "anchor": (0, index_1.ReferencedAnchorToJSON)(value.anchor), - "conversation": (0, index_1.ReferencedConversationToJSON)(value.conversation), - "score": (0, index_1.ScoreToJSON)(value.score), - "messages": (0, index_1.FlattenedConversationMessagesToJSON)(value.messages) + "anchor": (0, _1.ReferencedAnchorToJSON)(value.anchor), + "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation), + "score": (0, _1.ScoreToJSON)(value.score), + "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages) }; } exports.AnnotationToJSON = AnnotationToJSON5; @@ -3882,7 +3882,7 @@ var require_Annotations = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnnotationsToJSON = exports.AnnotationsFromJSONTyped = exports.AnnotationsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AnnotationsFromJSON4(json) { return AnnotationsFromJSONTyped6(json, false); } @@ -3892,10 +3892,10 @@ var require_Annotations = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.AnnotationFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.AnnotationFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.AnnotationsFromJSONTyped = AnnotationsFromJSONTyped6; @@ -3907,10 +3907,10 @@ var require_Annotations = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.AnnotationToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.AnnotationToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.AnnotationsToJSON = AnnotationsToJSON5; @@ -3924,7 +3924,7 @@ var require_Application = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ApplicationToJSON = exports.ApplicationFromJSONTyped = exports.ApplicationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ApplicationFromJSON4(json) { return ApplicationFromJSONTyped34(json, false); } @@ -3934,15 +3934,15 @@ var require_Application = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "name": (0, index_1.ApplicationNameEnumFromJSON)(json["name"]), + "name": (0, _1.ApplicationNameEnumFromJSON)(json["name"]), "version": json["version"], - "platform": (0, index_1.PlatformEnumFromJSON)(json["platform"]), + "platform": (0, _1.PlatformEnumFromJSON)(json["platform"]), "onboarded": json["onboarded"], - "privacy": (0, index_1.PrivacyEnumFromJSON)(json["privacy"]), - "capabilities": !(0, runtime_1.exists)(json, "capabilities") ? void 0 : (0, index_1.CapabilitiesEnumFromJSON)(json["capabilities"]), - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), + "privacy": (0, _1.PrivacyEnumFromJSON)(json["privacy"]), + "capabilities": !(0, runtime_1.exists)(json, "capabilities") ? void 0 : (0, _1.CapabilitiesEnumFromJSON)(json["capabilities"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), "automaticUnload": !(0, runtime_1.exists)(json, "automaticUnload") ? void 0 : json["automaticUnload"] }; } @@ -3955,15 +3955,15 @@ var require_Application = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "name": (0, index_1.ApplicationNameEnumToJSON)(value.name), + "name": (0, _1.ApplicationNameEnumToJSON)(value.name), "version": value.version, - "platform": (0, index_1.PlatformEnumToJSON)(value.platform), + "platform": (0, _1.PlatformEnumToJSON)(value.platform), "onboarded": value.onboarded, - "privacy": (0, index_1.PrivacyEnumToJSON)(value.privacy), - "capabilities": (0, index_1.CapabilitiesEnumToJSON)(value.capabilities), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), + "privacy": (0, _1.PrivacyEnumToJSON)(value.privacy), + "capabilities": (0, _1.CapabilitiesEnumToJSON)(value.capabilities), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), "automaticUnload": value.automaticUnload }; } @@ -4029,7 +4029,7 @@ var require_Applications = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ApplicationsToJSON = exports.ApplicationsFromJSONTyped = exports.ApplicationsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ApplicationsFromJSON3(json) { return ApplicationsFromJSONTyped2(json, false); } @@ -4039,8 +4039,8 @@ var require_Applications = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ApplicationFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ApplicationFromJSON) }; } exports.ApplicationsFromJSONTyped = ApplicationsFromJSONTyped2; @@ -4052,8 +4052,8 @@ var require_Applications = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ApplicationToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ApplicationToJSON) }; } exports.ApplicationsToJSON = ApplicationsToJSON3; @@ -4067,7 +4067,7 @@ var require_Asset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetToJSON = exports.AssetFromJSONTyped = exports.AssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetFromJSON5(json) { return AssetFromJSONTyped15(json, false); } @@ -4077,34 +4077,34 @@ var require_Asset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], "creator": json["creator"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "synced": !(0, runtime_1.exists)(json, "synced") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["synced"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "formats": (0, index_1.FormatsFromJSON)(json["formats"]), - "preview": (0, index_1.PreviewFromJSON)(json["preview"]), - "original": (0, index_1.ReferencedFormatFromJSON)(json["original"]), - "shares": !(0, runtime_1.exists)(json, "shares") ? void 0 : (0, index_1.SharesFromJSON)(json["shares"]), - "mechanism": (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, index_1.WebsitesFromJSON)(json["websites"]), - "interacted": !(0, runtime_1.exists)(json, "interacted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["interacted"]), - "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, index_1.TagsFromJSON)(json["tags"]), - "sensitives": !(0, runtime_1.exists)(json, "sensitives") ? void 0 : (0, index_1.SensitivesFromJSON)(json["sensitives"]), - "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, index_1.PersonsFromJSON)(json["persons"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "synced": !(0, runtime_1.exists)(json, "synced") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["synced"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "formats": (0, _1.FormatsFromJSON)(json["formats"]), + "preview": (0, _1.PreviewFromJSON)(json["preview"]), + "original": (0, _1.ReferencedFormatFromJSON)(json["original"]), + "shares": !(0, runtime_1.exists)(json, "shares") ? void 0 : (0, _1.SharesFromJSON)(json["shares"]), + "mechanism": (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, _1.WebsitesFromJSON)(json["websites"]), + "interacted": !(0, runtime_1.exists)(json, "interacted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["interacted"]), + "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, _1.TagsFromJSON)(json["tags"]), + "sensitives": !(0, runtime_1.exists)(json, "sensitives") ? void 0 : (0, _1.SensitivesFromJSON)(json["sensitives"]), + "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, _1.PersonsFromJSON)(json["persons"]), "curated": !(0, runtime_1.exists)(json, "curated") ? void 0 : json["curated"], "discovered": !(0, runtime_1.exists)(json, "discovered") ? void 0 : json["discovered"], - "activities": !(0, runtime_1.exists)(json, "activities") ? void 0 : (0, index_1.ActivitiesFromJSON)(json["activities"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]), + "activities": !(0, runtime_1.exists)(json, "activities") ? void 0 : (0, _1.ActivitiesFromJSON)(json["activities"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]), "favorited": !(0, runtime_1.exists)(json, "favorited") ? void 0 : json["favorited"], "pseudo": !(0, runtime_1.exists)(json, "pseudo") ? void 0 : json["pseudo"], - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.AnnotationsFromJSON)(json["annotations"]), - "hints": !(0, runtime_1.exists)(json, "hints") ? void 0 : (0, index_1.HintsFromJSON)(json["hints"]), - "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, index_1.AnchorsFromJSON)(json["anchors"]), - "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, index_1.ConversationsFromJSON)(json["conversations"]) + "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"]) }; } exports.AssetFromJSONTyped = AssetFromJSONTyped15; @@ -4116,34 +4116,34 @@ var require_Asset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "name": value.name, "creator": value.creator, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "synced": (0, index_1.GroupedTimestampToJSON)(value.synced), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "formats": (0, index_1.FormatsToJSON)(value.formats), - "preview": (0, index_1.PreviewToJSON)(value.preview), - "original": (0, index_1.ReferencedFormatToJSON)(value.original), - "shares": (0, index_1.SharesToJSON)(value.shares), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "websites": (0, index_1.WebsitesToJSON)(value.websites), - "interacted": (0, index_1.GroupedTimestampToJSON)(value.interacted), - "tags": (0, index_1.TagsToJSON)(value.tags), - "sensitives": (0, index_1.SensitivesToJSON)(value.sensitives), - "persons": (0, index_1.PersonsToJSON)(value.persons), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "synced": (0, _1.GroupedTimestampToJSON)(value.synced), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "formats": (0, _1.FormatsToJSON)(value.formats), + "preview": (0, _1.PreviewToJSON)(value.preview), + "original": (0, _1.ReferencedFormatToJSON)(value.original), + "shares": (0, _1.SharesToJSON)(value.shares), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "websites": (0, _1.WebsitesToJSON)(value.websites), + "interacted": (0, _1.GroupedTimestampToJSON)(value.interacted), + "tags": (0, _1.TagsToJSON)(value.tags), + "sensitives": (0, _1.SensitivesToJSON)(value.sensitives), + "persons": (0, _1.PersonsToJSON)(value.persons), "curated": value.curated, "discovered": value.discovered, - "activities": (0, index_1.ActivitiesToJSON)(value.activities), - "score": (0, index_1.ScoreToJSON)(value.score), + "activities": (0, _1.ActivitiesToJSON)(value.activities), + "score": (0, _1.ScoreToJSON)(value.score), "favorited": value.favorited, "pseudo": value.pseudo, - "annotations": (0, index_1.AnnotationsToJSON)(value.annotations), - "hints": (0, index_1.HintsToJSON)(value.hints), - "anchors": (0, index_1.AnchorsToJSON)(value.anchors), - "conversations": (0, index_1.ConversationsToJSON)(value.conversations) + "annotations": (0, _1.AnnotationsToJSON)(value.annotations), + "hints": (0, _1.HintsToJSON)(value.hints), + "anchors": (0, _1.AnchorsToJSON)(value.anchors), + "conversations": (0, _1.ConversationsToJSON)(value.conversations) }; } exports.AssetToJSON = AssetToJSON7; @@ -4157,7 +4157,7 @@ var require_AssetFilter = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetFilterToJSON = exports.AssetFilterFromJSONTyped = exports.AssetFilterFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetFilterFromJSON3(json) { return AssetFilterFromJSONTyped3(json, false); } @@ -4167,15 +4167,15 @@ var require_AssetFilter = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "classification": !(0, runtime_1.exists)(json, "classification") ? void 0 : (0, index_1.ClassificationSpecificEnumFromJSON)(json["classification"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "classification": !(0, runtime_1.exists)(json, "classification") ? void 0 : (0, _1.ClassificationSpecificEnumFromJSON)(json["classification"]), "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"], - "phrase": !(0, runtime_1.exists)(json, "phrase") ? void 0 : (0, index_1.AssetFilterPhraseFromJSON)(json["phrase"]), - "created": !(0, runtime_1.exists)(json, "created") ? void 0 : (0, index_1.AssetFilterTimestampFromJSON)(json["created"]), - "updated": !(0, runtime_1.exists)(json, "updated") ? void 0 : (0, index_1.AssetFilterTimestampFromJSON)(json["updated"]), - "operations": !(0, runtime_1.exists)(json, "operations") ? void 0 : (0, index_1.AssetFiltersFromJSON)(json["operations"]) + "phrase": !(0, runtime_1.exists)(json, "phrase") ? void 0 : (0, _1.AssetFilterPhraseFromJSON)(json["phrase"]), + "created": !(0, runtime_1.exists)(json, "created") ? void 0 : (0, _1.AssetFilterTimestampFromJSON)(json["created"]), + "updated": !(0, runtime_1.exists)(json, "updated") ? void 0 : (0, _1.AssetFilterTimestampFromJSON)(json["updated"]), + "operations": !(0, runtime_1.exists)(json, "operations") ? void 0 : (0, _1.AssetFiltersFromJSON)(json["operations"]) }; } exports.AssetFilterFromJSONTyped = AssetFilterFromJSONTyped3; @@ -4187,15 +4187,15 @@ var require_AssetFilter = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "classification": (0, index_1.ClassificationSpecificEnumToJSON)(value.classification), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "classification": (0, _1.ClassificationSpecificEnumToJSON)(value.classification), "tags": value.tags, "websites": value.websites, "persons": value.persons, - "phrase": (0, index_1.AssetFilterPhraseToJSON)(value.phrase), - "created": (0, index_1.AssetFilterTimestampToJSON)(value.created), - "updated": (0, index_1.AssetFilterTimestampToJSON)(value.updated), - "operations": (0, index_1.AssetFiltersToJSON)(value.operations) + "phrase": (0, _1.AssetFilterPhraseToJSON)(value.phrase), + "created": (0, _1.AssetFilterTimestampToJSON)(value.created), + "updated": (0, _1.AssetFilterTimestampToJSON)(value.updated), + "operations": (0, _1.AssetFiltersToJSON)(value.operations) }; } exports.AssetFilterToJSON = AssetFilterToJSON3; @@ -4209,7 +4209,7 @@ var require_AssetFilterPhrase = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetFilterPhraseToJSON = exports.AssetFilterPhraseFromJSONTyped = exports.AssetFilterPhraseFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetFilterPhraseFromJSON3(json) { return AssetFilterPhraseFromJSONTyped3(json, false); } @@ -4219,12 +4219,12 @@ var require_AssetFilterPhrase = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "value": !(0, runtime_1.exists)(json, "value") ? void 0 : json["value"], "annotation": !(0, runtime_1.exists)(json, "annotation") ? void 0 : json["annotation"], "title": !(0, runtime_1.exists)(json, "title") ? void 0 : json["title"], "content": !(0, runtime_1.exists)(json, "content") ? void 0 : json["content"], - "options": !(0, runtime_1.exists)(json, "options") ? void 0 : (0, index_1.AssetFilterPhraseOptionsFromJSON)(json["options"]) + "options": !(0, runtime_1.exists)(json, "options") ? void 0 : (0, _1.AssetFilterPhraseOptionsFromJSON)(json["options"]) }; } exports.AssetFilterPhraseFromJSONTyped = AssetFilterPhraseFromJSONTyped3; @@ -4236,12 +4236,12 @@ var require_AssetFilterPhrase = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "value": value.value, "annotation": value.annotation, "title": value.title, "content": value.content, - "options": (0, index_1.AssetFilterPhraseOptionsToJSON)(value.options) + "options": (0, _1.AssetFilterPhraseOptionsToJSON)(value.options) }; } exports.AssetFilterPhraseToJSON = AssetFilterPhraseToJSON3; @@ -4255,7 +4255,7 @@ var require_AssetFilterPhraseOptions = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetFilterPhraseOptionsToJSON = exports.AssetFilterPhraseOptionsFromJSONTyped = exports.AssetFilterPhraseOptionsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetFilterPhraseOptionsFromJSON3(json) { return AssetFilterPhraseOptionsFromJSONTyped3(json, false); } @@ -4265,8 +4265,8 @@ var require_AssetFilterPhraseOptions = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "annotation": !(0, runtime_1.exists)(json, "annotation") ? void 0 : (0, index_1.AnnotationTypeEnumFromJSON)(json["annotation"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "annotation": !(0, runtime_1.exists)(json, "annotation") ? void 0 : (0, _1.AnnotationTypeEnumFromJSON)(json["annotation"]) }; } exports.AssetFilterPhraseOptionsFromJSONTyped = AssetFilterPhraseOptionsFromJSONTyped3; @@ -4278,8 +4278,8 @@ var require_AssetFilterPhraseOptions = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "annotation": (0, index_1.AnnotationTypeEnumToJSON)(value.annotation) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "annotation": (0, _1.AnnotationTypeEnumToJSON)(value.annotation) }; } exports.AssetFilterPhraseOptionsToJSON = AssetFilterPhraseOptionsToJSON3; @@ -4293,7 +4293,7 @@ var require_AssetFilterTimestamp = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetFilterTimestampToJSON = exports.AssetFilterTimestampFromJSONTyped = exports.AssetFilterTimestampFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetFilterTimestampFromJSON3(json) { return AssetFilterTimestampFromJSONTyped3(json, false); } @@ -4303,9 +4303,9 @@ var require_AssetFilterTimestamp = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "from": !(0, runtime_1.exists)(json, "from") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["from"]), - "to": !(0, runtime_1.exists)(json, "to") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["to"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "from": !(0, runtime_1.exists)(json, "from") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["from"]), + "to": !(0, runtime_1.exists)(json, "to") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["to"]), "between": !(0, runtime_1.exists)(json, "between") ? void 0 : json["between"] }; } @@ -4318,9 +4318,9 @@ var require_AssetFilterTimestamp = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "from": (0, index_1.GroupedTimestampToJSON)(value.from), - "to": (0, index_1.GroupedTimestampToJSON)(value.to), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "from": (0, _1.GroupedTimestampToJSON)(value.from), + "to": (0, _1.GroupedTimestampToJSON)(value.to), "between": value.between }; } @@ -4335,7 +4335,7 @@ var require_AssetFilters = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetFiltersToJSON = exports.AssetFiltersFromJSONTyped = exports.AssetFiltersFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetFiltersFromJSON3(json) { return AssetFiltersFromJSONTyped5(json, false); } @@ -4345,9 +4345,9 @@ var require_AssetFilters = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.AssetFilterFromJSON), - "type": !(0, runtime_1.exists)(json, "type") ? void 0 : (0, index_1.FilterOperationTypeEnumFromJSON)(json["type"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.AssetFilterFromJSON), + "type": !(0, runtime_1.exists)(json, "type") ? void 0 : (0, _1.FilterOperationTypeEnumFromJSON)(json["type"]) }; } exports.AssetFiltersFromJSONTyped = AssetFiltersFromJSONTyped5; @@ -4359,9 +4359,9 @@ var require_AssetFilters = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.AssetFilterToJSON), - "type": (0, index_1.FilterOperationTypeEnumToJSON)(value.type) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.AssetFilterToJSON), + "type": (0, _1.FilterOperationTypeEnumToJSON)(value.type) }; } exports.AssetFiltersToJSON = AssetFiltersToJSON3; @@ -4375,7 +4375,7 @@ var require_AssetReclassification = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetReclassificationToJSON = exports.AssetReclassificationFromJSONTyped = exports.AssetReclassificationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetReclassificationFromJSON2(json) { return AssetReclassificationFromJSONTyped(json, false); } @@ -4385,9 +4385,9 @@ var require_AssetReclassification = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "ext": (0, index_1.ClassificationSpecificEnumFromJSON)(json["ext"]), - "asset": (0, index_1.AssetFromJSON)(json["asset"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "ext": (0, _1.ClassificationSpecificEnumFromJSON)(json["ext"]), + "asset": (0, _1.AssetFromJSON)(json["asset"]) }; } exports.AssetReclassificationFromJSONTyped = AssetReclassificationFromJSONTyped; @@ -4399,9 +4399,9 @@ var require_AssetReclassification = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "ext": (0, index_1.ClassificationSpecificEnumToJSON)(value.ext), - "asset": (0, index_1.AssetToJSON)(value.asset) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "ext": (0, _1.ClassificationSpecificEnumToJSON)(value.ext), + "asset": (0, _1.AssetToJSON)(value.asset) }; } exports.AssetReclassificationToJSON = AssetReclassificationToJSON2; @@ -4415,7 +4415,7 @@ var require_AssetSearchSpace = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetSearchSpaceToJSON = exports.AssetSearchSpaceFromJSONTyped = exports.AssetSearchSpaceFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetSearchSpaceFromJSON3(json) { return AssetSearchSpaceFromJSONTyped3(json, false); } @@ -4425,8 +4425,8 @@ var require_AssetSearchSpace = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "identifers": (0, index_1.FlattenedAssetsFromJSON)(json["identifers"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "identifers": (0, _1.FlattenedAssetsFromJSON)(json["identifers"]) }; } exports.AssetSearchSpaceFromJSONTyped = AssetSearchSpaceFromJSONTyped3; @@ -4438,8 +4438,8 @@ var require_AssetSearchSpace = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "identifers": (0, index_1.FlattenedAssetsToJSON)(value.identifers) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "identifers": (0, _1.FlattenedAssetsToJSON)(value.identifers) }; } exports.AssetSearchSpaceToJSON = AssetSearchSpaceToJSON3; @@ -4453,7 +4453,7 @@ var require_Assets = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetsToJSON = exports.AssetsFromJSONTyped = exports.AssetsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetsFromJSON5(json) { return AssetsFromJSONTyped15(json, false); } @@ -4463,10 +4463,10 @@ var require_Assets = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.AssetFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.AssetFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.AssetsFromJSONTyped = AssetsFromJSONTyped15; @@ -4478,10 +4478,10 @@ var require_Assets = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.AssetToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.AssetToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.AssetsToJSON = AssetsToJSON4; @@ -4495,7 +4495,7 @@ var require_AssetsSearchWithFiltersInput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetsSearchWithFiltersInputToJSON = exports.AssetsSearchWithFiltersInputFromJSONTyped = exports.AssetsSearchWithFiltersInputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetsSearchWithFiltersInputFromJSON2(json) { return AssetsSearchWithFiltersInputFromJSONTyped(json, false); } @@ -4505,10 +4505,10 @@ var require_AssetsSearchWithFiltersInput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "query": !(0, runtime_1.exists)(json, "query") ? void 0 : json["query"], - "space": !(0, runtime_1.exists)(json, "space") ? void 0 : (0, index_1.AssetSearchSpaceFromJSON)(json["space"]), - "filters": !(0, runtime_1.exists)(json, "filters") ? void 0 : (0, index_1.AssetFiltersFromJSON)(json["filters"]), + "space": !(0, runtime_1.exists)(json, "space") ? void 0 : (0, _1.AssetSearchSpaceFromJSON)(json["space"]), + "filters": !(0, runtime_1.exists)(json, "filters") ? void 0 : (0, _1.AssetFiltersFromJSON)(json["filters"]), "casing": !(0, runtime_1.exists)(json, "casing") ? void 0 : json["casing"] }; } @@ -4521,10 +4521,10 @@ var require_AssetsSearchWithFiltersInput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "query": value.query, - "space": (0, index_1.AssetSearchSpaceToJSON)(value.space), - "filters": (0, index_1.AssetFiltersToJSON)(value.filters), + "space": (0, _1.AssetSearchSpaceToJSON)(value.space), + "filters": (0, _1.AssetFiltersToJSON)(value.filters), "casing": value.casing }; } @@ -4539,7 +4539,7 @@ var require_AssetsSearchWithFiltersOutput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetsSearchWithFiltersOutputToJSON = exports.AssetsSearchWithFiltersOutputFromJSONTyped = exports.AssetsSearchWithFiltersOutputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AssetsSearchWithFiltersOutputFromJSON2(json) { return AssetsSearchWithFiltersOutputFromJSONTyped2(json, false); } @@ -4549,8 +4549,8 @@ var require_AssetsSearchWithFiltersOutput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "results": (0, index_1.SearchedAssetsFromJSON)(json["results"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "results": (0, _1.SearchedAssetsFromJSON)(json["results"]) }; } exports.AssetsSearchWithFiltersOutputFromJSONTyped = AssetsSearchWithFiltersOutputFromJSONTyped2; @@ -4562,8 +4562,8 @@ var require_AssetsSearchWithFiltersOutput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "results": (0, index_1.SearchedAssetsToJSON)(value.results) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "results": (0, _1.SearchedAssetsToJSON)(value.results) }; } exports.AssetsSearchWithFiltersOutputToJSON = AssetsSearchWithFiltersOutputToJSON2; @@ -4577,7 +4577,7 @@ var require_Auth0 = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.Auth0ToJSON = exports.Auth0FromJSONTyped = exports.Auth0FromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function Auth0FromJSON3(json) { return Auth0FromJSONTyped3(json, false); } @@ -4587,14 +4587,14 @@ var require_Auth0 = __commonJS({ return json; } return { - "identity": !(0, runtime_1.exists)(json, "identity") ? void 0 : (0, index_1.Auth0IdentityFromJSON)(json["identity"]), - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.Auth0UserFromJSON)(json["user"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.Auth0UserMetadataFromJSON)(json["metadata"]), + "identity": !(0, runtime_1.exists)(json, "identity") ? void 0 : (0, _1.Auth0IdentityFromJSON)(json["identity"]), + "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.Auth0UserFromJSON)(json["user"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.Auth0UserMetadataFromJSON)(json["metadata"]), "domain": json["domain"], "client": json["client"], "audience": json["audience"], - "redirects": (0, index_1.Auth0RedirectsFromJSON)(json["redirects"]), - "oAuth": (0, index_1.OAuthGroupFromJSON)(json["oAuth"]), + "redirects": (0, _1.Auth0RedirectsFromJSON)(json["redirects"]), + "oAuth": (0, _1.OAuthGroupFromJSON)(json["oAuth"]), "namespace": !(0, runtime_1.exists)(json, "namespace") ? void 0 : json["namespace"] }; } @@ -4607,14 +4607,14 @@ var require_Auth0 = __commonJS({ return null; } return { - "identity": (0, index_1.Auth0IdentityToJSON)(value.identity), - "user": (0, index_1.Auth0UserToJSON)(value.user), - "metadata": (0, index_1.Auth0UserMetadataToJSON)(value.metadata), + "identity": (0, _1.Auth0IdentityToJSON)(value.identity), + "user": (0, _1.Auth0UserToJSON)(value.user), + "metadata": (0, _1.Auth0UserMetadataToJSON)(value.metadata), "domain": value.domain, "client": value.client, "audience": value.audience, - "redirects": (0, index_1.Auth0RedirectsToJSON)(value.redirects), - "oAuth": (0, index_1.OAuthGroupToJSON)(value.oAuth), + "redirects": (0, _1.Auth0RedirectsToJSON)(value.redirects), + "oAuth": (0, _1.OAuthGroupToJSON)(value.oAuth), "namespace": value.namespace }; } @@ -4667,6 +4667,48 @@ var require_Auth0Identity = __commonJS({ } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Auth0OpenAIUserMetadata.js +var require_Auth0OpenAIUserMetadata = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Auth0OpenAIUserMetadata.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Auth0OpenAIUserMetadataToJSON = exports.Auth0OpenAIUserMetadataFromJSONTyped = exports.Auth0OpenAIUserMetadataFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function Auth0OpenAIUserMetadataFromJSON4(json) { + return Auth0OpenAIUserMetadataFromJSONTyped10(json, false); + } + exports.Auth0OpenAIUserMetadataFromJSON = Auth0OpenAIUserMetadataFromJSON4; + function Auth0OpenAIUserMetadataFromJSONTyped10(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"]), + "apiKey": !(0, runtime_1.exists)(json, "api_key") ? void 0 : json["api_key"], + "apiKeyName": !(0, runtime_1.exists)(json, "api_key_name") ? void 0 : json["api_key_name"], + "organizationKey": !(0, runtime_1.exists)(json, "organization_key") ? void 0 : json["organization_key"] + }; + } + exports.Auth0OpenAIUserMetadataFromJSONTyped = Auth0OpenAIUserMetadataFromJSONTyped10; + function Auth0OpenAIUserMetadataToJSON4(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "api_key": value.apiKey, + "api_key_name": value.apiKeyName, + "organization_key": value.organizationKey + }; + } + exports.Auth0OpenAIUserMetadataToJSON = Auth0OpenAIUserMetadataToJSON4; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Auth0Redirects.js var require_Auth0Redirects = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Auth0Redirects.js"(exports) { @@ -4711,7 +4753,7 @@ var require_Auth0User = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.Auth0UserToJSON = exports.Auth0UserFromJSONTyped = exports.Auth0UserFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function Auth0UserFromJSON4(json) { return Auth0UserFromJSONTyped3(json, false); } @@ -4728,11 +4770,11 @@ var require_Auth0User = __commonJS({ "emailVerified": !(0, runtime_1.exists)(json, "email_verified") ? void 0 : json["email_verified"], "familyName": !(0, runtime_1.exists)(json, "family_name") ? void 0 : json["family_name"], "givenName": !(0, runtime_1.exists)(json, "given_name") ? void 0 : json["given_name"], - "identities": !(0, runtime_1.exists)(json, "identities") ? void 0 : json["identities"].map(index_1.Auth0IdentityFromJSON), + "identities": !(0, runtime_1.exists)(json, "identities") ? void 0 : json["identities"].map(_1.Auth0IdentityFromJSON), "nickname": !(0, runtime_1.exists)(json, "nickname") ? void 0 : json["nickname"], "updatedAt": !(0, runtime_1.exists)(json, "updated_at") ? void 0 : new Date(json["updated_at"]), "username": !(0, runtime_1.exists)(json, "username") ? void 0 : json["username"], - "userMetadata": !(0, runtime_1.exists)(json, "user_metadata") ? void 0 : (0, index_1.Auth0UserMetadataFromJSON)(json["user_metadata"]), + "userMetadata": !(0, runtime_1.exists)(json, "user_metadata") ? void 0 : (0, _1.Auth0UserMetadataFromJSON)(json["user_metadata"]), "locale": !(0, runtime_1.exists)(json, "locale") ? void 0 : json["locale"], "userId": !(0, runtime_1.exists)(json, "user_id") ? void 0 : json["user_id"], "lastIp": !(0, runtime_1.exists)(json, "last_ip") ? void 0 : json["last_ip"], @@ -4758,11 +4800,11 @@ var require_Auth0User = __commonJS({ "email_verified": value.emailVerified, "family_name": value.familyName, "given_name": value.givenName, - "identities": value.identities === void 0 ? void 0 : value.identities.map(index_1.Auth0IdentityToJSON), + "identities": value.identities === void 0 ? void 0 : value.identities.map(_1.Auth0IdentityToJSON), "nickname": value.nickname, "updated_at": value.updatedAt === void 0 ? void 0 : value.updatedAt.toISOString(), "username": value.username, - "user_metadata": (0, index_1.Auth0UserMetadataToJSON)(value.userMetadata), + "user_metadata": (0, _1.Auth0UserMetadataToJSON)(value.userMetadata), "locale": value.locale, "user_id": value.userId, "last_ip": value.lastIp, @@ -4819,7 +4861,7 @@ var require_Auth0UserMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.Auth0UserMetadataToJSON = exports.Auth0UserMetadataFromJSONTyped = exports.Auth0UserMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function Auth0UserMetadataFromJSON4(json) { return Auth0UserMetadataFromJSONTyped16(json, false); } @@ -4829,12 +4871,13 @@ var require_Auth0UserMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "globalId": json["global_id"], "cloudKey": !(0, runtime_1.exists)(json, "cloud_key") ? void 0 : json["cloud_key"], "stripeCustomerId": !(0, runtime_1.exists)(json, "stripe_customer_id") ? void 0 : json["stripe_customer_id"], "vanityname": !(0, runtime_1.exists)(json, "vanityname") ? void 0 : json["vanityname"], - "allocation": !(0, runtime_1.exists)(json, "allocation") ? void 0 : (0, index_1.Auth0UserAllocationMetadataFromJSON)(json["allocation"]) + "allocation": !(0, runtime_1.exists)(json, "allocation") ? void 0 : (0, _1.Auth0UserAllocationMetadataFromJSON)(json["allocation"]), + "openAI": !(0, runtime_1.exists)(json, "open_AI") ? void 0 : (0, _1.Auth0OpenAIUserMetadataFromJSON)(json["open_AI"]) }; } exports.Auth0UserMetadataFromJSONTyped = Auth0UserMetadataFromJSONTyped16; @@ -4846,12 +4889,13 @@ var require_Auth0UserMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "global_id": value.globalId, "cloud_key": value.cloudKey, "stripe_customer_id": value.stripeCustomerId, "vanityname": value.vanityname, - "allocation": (0, index_1.Auth0UserAllocationMetadataToJSON)(value.allocation) + "allocation": (0, _1.Auth0UserAllocationMetadataToJSON)(value.allocation), + "open_AI": (0, _1.Auth0OpenAIUserMetadataToJSON)(value.openAI) }; } exports.Auth0UserMetadataToJSON = Auth0UserMetadataToJSON4; @@ -4865,7 +4909,7 @@ var require_AvailableFormats = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.AvailableFormatsToJSON = exports.AvailableFormatsFromJSONTyped = exports.AvailableFormatsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function AvailableFormatsFromJSON3(json) { return AvailableFormatsFromJSONTyped4(json, false); } @@ -4875,8 +4919,8 @@ var require_AvailableFormats = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ClassificationFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ClassificationFromJSON) }; } exports.AvailableFormatsFromJSONTyped = AvailableFormatsFromJSONTyped4; @@ -4888,8 +4932,8 @@ var require_AvailableFormats = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ClassificationToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ClassificationToJSON) }; } exports.AvailableFormatsToJSON = AvailableFormatsToJSON3; @@ -4903,7 +4947,7 @@ var require_ByteDescriptor = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ByteDescriptorToJSON = exports.ByteDescriptorFromJSONTyped = exports.ByteDescriptorFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ByteDescriptorFromJSON4(json) { return ByteDescriptorFromJSONTyped14(json, false); } @@ -4913,7 +4957,7 @@ var require_ByteDescriptor = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "value": json["value"], "readable": json["readable"] }; @@ -4927,7 +4971,7 @@ var require_ByteDescriptor = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "value": value.value, "readable": value.readable }; @@ -4970,7 +5014,7 @@ var require_ChallengedPKCE = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ChallengedPKCEToJSON = exports.ChallengedPKCEFromJSONTyped = exports.ChallengedPKCEFromJSON = exports.ChallengedPKCEMethodEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var ChallengedPKCEMethodEnum; (function(ChallengedPKCEMethodEnum2) { ChallengedPKCEMethodEnum2["S256"] = "S256"; @@ -4984,7 +5028,7 @@ var require_ChallengedPKCE = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "state": json["state"], "nonce": json["nonce"], "challenge": json["challenge"], @@ -5001,7 +5045,7 @@ var require_ChallengedPKCE = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "state": value.state, "nonce": value.nonce, "challenge": value.challenge, @@ -5013,6 +5057,44 @@ var require_ChallengedPKCE = __commonJS({ } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/CheckedOSUpdate.js +var require_CheckedOSUpdate = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/CheckedOSUpdate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CheckedOSUpdateToJSON = exports.CheckedOSUpdateFromJSONTyped = exports.CheckedOSUpdateFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function CheckedOSUpdateFromJSON2(json) { + return CheckedOSUpdateFromJSONTyped2(json, false); + } + exports.CheckedOSUpdateFromJSON = CheckedOSUpdateFromJSON2; + function CheckedOSUpdateFromJSONTyped2(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"]), + "status": (0, _1.UpdatingStatusEnumFromJSON)(json["status"]) + }; + } + exports.CheckedOSUpdateFromJSONTyped = CheckedOSUpdateFromJSONTyped2; + function CheckedOSUpdateToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "status": (0, _1.UpdatingStatusEnumToJSON)(value.status) + }; + } + exports.CheckedOSUpdateToJSON = CheckedOSUpdateToJSON2; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Classification.js var require_Classification = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Classification.js"(exports) { @@ -5020,7 +5102,7 @@ var require_Classification = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ClassificationToJSON = exports.ClassificationFromJSONTyped = exports.ClassificationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ClassificationFromJSON4(json) { return ClassificationFromJSONTyped24(json, false); } @@ -5030,10 +5112,10 @@ var require_Classification = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "generic": (0, index_1.ClassificationGenericEnumFromJSON)(json["generic"]), - "specific": (0, index_1.ClassificationSpecificEnumFromJSON)(json["specific"]), - "rendering": !(0, runtime_1.exists)(json, "rendering") ? void 0 : (0, index_1.ClassificationRenderingEnumFromJSON)(json["rendering"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "generic": (0, _1.ClassificationGenericEnumFromJSON)(json["generic"]), + "specific": (0, _1.ClassificationSpecificEnumFromJSON)(json["specific"]), + "rendering": !(0, runtime_1.exists)(json, "rendering") ? void 0 : (0, _1.ClassificationRenderingEnumFromJSON)(json["rendering"]) }; } exports.ClassificationFromJSONTyped = ClassificationFromJSONTyped24; @@ -5045,10 +5127,10 @@ var require_Classification = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "generic": (0, index_1.ClassificationGenericEnumToJSON)(value.generic), - "specific": (0, index_1.ClassificationSpecificEnumToJSON)(value.specific), - "rendering": (0, index_1.ClassificationRenderingEnumToJSON)(value.rendering) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "generic": (0, _1.ClassificationGenericEnumToJSON)(value.generic), + "specific": (0, _1.ClassificationSpecificEnumToJSON)(value.specific), + "rendering": (0, _1.ClassificationRenderingEnumToJSON)(value.rendering) }; } exports.ClassificationToJSON = ClassificationToJSON4; @@ -5636,7 +5718,7 @@ var require_CodeAnalyses = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.CodeAnalysesToJSON = exports.CodeAnalysesFromJSONTyped = exports.CodeAnalysesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function CodeAnalysesFromJSON2(json) { return CodeAnalysesFromJSONTyped(json, false); } @@ -5646,8 +5728,8 @@ var require_CodeAnalyses = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.CodeAnalysisFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.CodeAnalysisFromJSON) }; } exports.CodeAnalysesFromJSONTyped = CodeAnalysesFromJSONTyped; @@ -5659,8 +5741,8 @@ var require_CodeAnalyses = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.CodeAnalysisToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.CodeAnalysisToJSON) }; } exports.CodeAnalysesToJSON = CodeAnalysesToJSON2; @@ -5674,7 +5756,7 @@ var require_CodeAnalysis = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.CodeAnalysisToJSON = exports.CodeAnalysisFromJSONTyped = exports.CodeAnalysisFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function CodeAnalysisFromJSON4(json) { return CodeAnalysisFromJSONTyped11(json, false); } @@ -5684,17 +5766,17 @@ var require_CodeAnalysis = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "tokenized": !(0, runtime_1.exists)(json, "tokenized") ? void 0 : json["tokenized"], "language": !(0, runtime_1.exists)(json, "language") ? void 0 : json["language"], - "type": (0, index_1.ClassificationGenericEnumFromJSON)(json["type"]), + "type": (0, _1.ClassificationGenericEnumFromJSON)(json["type"]), "prediction": !(0, runtime_1.exists)(json, "prediction") ? void 0 : json["prediction"], "similarity": !(0, runtime_1.exists)(json, "similarity") ? void 0 : json["similarity"], "top5Colors": !(0, runtime_1.exists)(json, "top5Colors") ? void 0 : json["top5Colors"], "top5Sorted": !(0, runtime_1.exists)(json, "top5Sorted") ? void 0 : json["top5Sorted"], "id": json["id"], "analysis": json["analysis"], - "model": (0, index_1.ModelFromJSON)(json["model"]) + "model": (0, _1.ModelFromJSON)(json["model"]) }; } exports.CodeAnalysisFromJSONTyped = CodeAnalysisFromJSONTyped11; @@ -5706,17 +5788,17 @@ var require_CodeAnalysis = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "tokenized": value.tokenized, "language": value.language, - "type": (0, index_1.ClassificationGenericEnumToJSON)(value.type), + "type": (0, _1.ClassificationGenericEnumToJSON)(value.type), "prediction": value.prediction, "similarity": value.similarity, "top5Colors": value.top5Colors, "top5Sorted": value.top5Sorted, "id": value.id, "analysis": value.analysis, - "model": (0, index_1.ModelToJSON)(value.model) + "model": (0, _1.ModelToJSON)(value.model) }; } exports.CodeAnalysisToJSON = CodeAnalysisToJSON4; @@ -5730,7 +5812,7 @@ var require_Context = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ContextToJSON = exports.ContextFromJSONTyped = exports.ContextFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ContextFromJSON4(json) { return ContextFromJSONTyped4(json, false); } @@ -5740,11 +5822,11 @@ var require_Context = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "os": json["os"], - "application": (0, index_1.ApplicationFromJSON)(json["application"]), - "health": (0, index_1.HealthFromJSON)(json["health"]), - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.UserProfileFromJSON)(json["user"]) + "application": (0, _1.ApplicationFromJSON)(json["application"]), + "health": (0, _1.HealthFromJSON)(json["health"]), + "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.UserProfileFromJSON)(json["user"]) }; } exports.ContextFromJSONTyped = ContextFromJSONTyped4; @@ -5756,11 +5838,11 @@ var require_Context = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "os": value.os, - "application": (0, index_1.ApplicationToJSON)(value.application), - "health": (0, index_1.HealthToJSON)(value.health), - "user": (0, index_1.UserProfileToJSON)(value.user) + "application": (0, _1.ApplicationToJSON)(value.application), + "health": (0, _1.HealthToJSON)(value.health), + "user": (0, _1.UserProfileToJSON)(value.user) }; } exports.ContextToJSON = ContextToJSON5; @@ -5774,7 +5856,7 @@ var require_Conversation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ConversationToJSON = exports.ConversationFromJSONTyped = exports.ConversationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ConversationFromJSON4(json) { return ConversationFromJSONTyped6(json, false); } @@ -5784,22 +5866,22 @@ var require_Conversation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), "favorited": !(0, runtime_1.exists)(json, "favorited") ? void 0 : json["favorited"], - "application": !(0, runtime_1.exists)(json, "application") ? void 0 : (0, index_1.ApplicationFromJSON)(json["application"]), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.FlattenedAnnotationsFromJSON)(json["annotations"]), - "messages": (0, index_1.FlattenedConversationMessagesFromJSON)(json["messages"]), - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ReferencedModelFromJSON)(json["model"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, index_1.FlattenedAnchorsFromJSON)(json["anchors"]), - "type": (0, index_1.ConversationTypeEnumFromJSON)(json["type"]), - "grounding": !(0, runtime_1.exists)(json, "grounding") ? void 0 : (0, index_1.ConversationGroundingFromJSON)(json["grounding"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "application": !(0, runtime_1.exists)(json, "application") ? void 0 : (0, _1.ApplicationFromJSON)(json["application"]), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.FlattenedAnnotationsFromJSON)(json["annotations"]), + "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"]), + "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"]) }; } exports.ConversationFromJSONTyped = ConversationFromJSONTyped6; @@ -5811,22 +5893,22 @@ var require_Conversation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "name": value.name, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), "favorited": value.favorited, - "application": (0, index_1.ApplicationToJSON)(value.application), - "annotations": (0, index_1.FlattenedAnnotationsToJSON)(value.annotations), - "messages": (0, index_1.FlattenedConversationMessagesToJSON)(value.messages), - "model": (0, index_1.ReferencedModelToJSON)(value.model), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "anchors": (0, index_1.FlattenedAnchorsToJSON)(value.anchors), - "type": (0, index_1.ConversationTypeEnumToJSON)(value.type), - "grounding": (0, index_1.ConversationGroundingToJSON)(value.grounding), - "score": (0, index_1.ScoreToJSON)(value.score) + "application": (0, _1.ApplicationToJSON)(value.application), + "annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations), + "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages), + "model": (0, _1.ReferencedModelToJSON)(value.model), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "anchors": (0, _1.FlattenedAnchorsToJSON)(value.anchors), + "type": (0, _1.ConversationTypeEnumToJSON)(value.type), + "grounding": (0, _1.ConversationGroundingToJSON)(value.grounding), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.ConversationToJSON = ConversationToJSON5; @@ -5840,7 +5922,7 @@ var require_ConversationGrounding = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ConversationGroundingToJSON = exports.ConversationGroundingFromJSONTyped = exports.ConversationGroundingFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ConversationGroundingFromJSON4(json) { return ConversationGroundingFromJSONTyped9(json, false); } @@ -5850,8 +5932,8 @@ var require_ConversationGrounding = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, index_1.FlattenedConversationMessagesFromJSON)(json["messages"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]) }; } exports.ConversationGroundingFromJSONTyped = ConversationGroundingFromJSONTyped9; @@ -5863,8 +5945,8 @@ var require_ConversationGrounding = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "messages": (0, index_1.FlattenedConversationMessagesToJSON)(value.messages) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages) }; } exports.ConversationGroundingToJSON = ConversationGroundingToJSON4; @@ -5878,7 +5960,7 @@ var require_ConversationMessage = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ConversationMessageToJSON = exports.ConversationMessageFromJSONTyped = exports.ConversationMessageFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ConversationMessageFromJSON3(json) { return ConversationMessageFromJSONTyped4(json, false); } @@ -5888,18 +5970,18 @@ var require_ConversationMessage = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ModelFromJSON)(json["model"]), - "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, index_1.FragmentFormatFromJSON)(json["fragment"]), - "conversation": (0, index_1.ReferencedConversationFromJSON)(json["conversation"]), - "sentiment": !(0, runtime_1.exists)(json, "sentiment") ? void 0 : (0, index_1.ConversationMessageSentimentEnumFromJSON)(json["sentiment"]), - "role": (0, index_1.QGPTConversationMessageRoleEnumFromJSON)(json["role"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.FlattenedAnnotationsFromJSON)(json["annotations"]) + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ModelFromJSON)(json["model"]), + "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, _1.FragmentFormatFromJSON)(json["fragment"]), + "conversation": (0, _1.ReferencedConversationFromJSON)(json["conversation"]), + "sentiment": !(0, runtime_1.exists)(json, "sentiment") ? void 0 : (0, _1.ConversationMessageSentimentEnumFromJSON)(json["sentiment"]), + "role": (0, _1.QGPTConversationMessageRoleEnumFromJSON)(json["role"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.FlattenedAnnotationsFromJSON)(json["annotations"]) }; } exports.ConversationMessageFromJSONTyped = ConversationMessageFromJSONTyped4; @@ -5911,18 +5993,18 @@ var require_ConversationMessage = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "model": (0, index_1.ModelToJSON)(value.model), - "fragment": (0, index_1.FragmentFormatToJSON)(value.fragment), - "conversation": (0, index_1.ReferencedConversationToJSON)(value.conversation), - "sentiment": (0, index_1.ConversationMessageSentimentEnumToJSON)(value.sentiment), - "role": (0, index_1.QGPTConversationMessageRoleEnumToJSON)(value.role), - "score": (0, index_1.ScoreToJSON)(value.score), - "annotations": (0, index_1.FlattenedAnnotationsToJSON)(value.annotations) + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "model": (0, _1.ModelToJSON)(value.model), + "fragment": (0, _1.FragmentFormatToJSON)(value.fragment), + "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation), + "sentiment": (0, _1.ConversationMessageSentimentEnumToJSON)(value.sentiment), + "role": (0, _1.QGPTConversationMessageRoleEnumToJSON)(value.role), + "score": (0, _1.ScoreToJSON)(value.score), + "annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations) }; } exports.ConversationMessageToJSON = ConversationMessageToJSON4; @@ -5963,7 +6045,7 @@ var require_ConversationMessages = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ConversationMessagesToJSON = exports.ConversationMessagesFromJSONTyped = exports.ConversationMessagesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ConversationMessagesFromJSON2(json) { return ConversationMessagesFromJSONTyped2(json, false); } @@ -5973,10 +6055,10 @@ var require_ConversationMessages = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ConversationMessageFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ConversationMessageFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.ConversationMessagesFromJSONTyped = ConversationMessagesFromJSONTyped2; @@ -5988,10 +6070,10 @@ var require_ConversationMessages = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ConversationMessageToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ConversationMessageToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.ConversationMessagesToJSON = ConversationMessagesToJSON3; @@ -6005,7 +6087,7 @@ var require_ConversationSummarizeInput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ConversationSummarizeInputToJSON = exports.ConversationSummarizeInputFromJSONTyped = exports.ConversationSummarizeInputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ConversationSummarizeInputFromJSON2(json) { return ConversationSummarizeInputFromJSONTyped(json, false); } @@ -6015,8 +6097,8 @@ var require_ConversationSummarizeInput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, index_1.FlattenedConversationMessagesFromJSON)(json["messages"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]) }; } exports.ConversationSummarizeInputFromJSONTyped = ConversationSummarizeInputFromJSONTyped; @@ -6028,8 +6110,8 @@ var require_ConversationSummarizeInput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "messages": (0, index_1.FlattenedConversationMessagesToJSON)(value.messages) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages) }; } exports.ConversationSummarizeInputToJSON = ConversationSummarizeInputToJSON2; @@ -6043,7 +6125,7 @@ var require_ConversationSummarizeOutput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ConversationSummarizeOutputToJSON = exports.ConversationSummarizeOutputFromJSONTyped = exports.ConversationSummarizeOutputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ConversationSummarizeOutputFromJSON2(json) { return ConversationSummarizeOutputFromJSONTyped2(json, false); } @@ -6053,9 +6135,9 @@ var require_ConversationSummarizeOutput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "conversation": (0, index_1.ReferencedConversationFromJSON)(json["conversation"]), - "annotation": (0, index_1.ReferencedAnnotationFromJSON)(json["annotation"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "conversation": (0, _1.ReferencedConversationFromJSON)(json["conversation"]), + "annotation": (0, _1.ReferencedAnnotationFromJSON)(json["annotation"]) }; } exports.ConversationSummarizeOutputFromJSONTyped = ConversationSummarizeOutputFromJSONTyped2; @@ -6067,9 +6149,9 @@ var require_ConversationSummarizeOutput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "conversation": (0, index_1.ReferencedConversationToJSON)(value.conversation), - "annotation": (0, index_1.ReferencedAnnotationToJSON)(value.annotation) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation), + "annotation": (0, _1.ReferencedAnnotationToJSON)(value.annotation) }; } exports.ConversationSummarizeOutputToJSON = ConversationSummarizeOutputToJSON2; @@ -6108,7 +6190,7 @@ var require_Conversations = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ConversationsToJSON = exports.ConversationsFromJSONTyped = exports.ConversationsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ConversationsFromJSON4(json) { return ConversationsFromJSONTyped6(json, false); } @@ -6118,10 +6200,10 @@ var require_Conversations = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ConversationFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ConversationFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.ConversationsFromJSONTyped = ConversationsFromJSONTyped6; @@ -6133,10 +6215,10 @@ var require_Conversations = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ConversationToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ConversationToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.ConversationsToJSON = ConversationsToJSON6; @@ -6150,7 +6232,7 @@ var require_ConversationsCreateFromAssetOutput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ConversationsCreateFromAssetOutputToJSON = exports.ConversationsCreateFromAssetOutputFromJSONTyped = exports.ConversationsCreateFromAssetOutputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ConversationsCreateFromAssetOutputFromJSON2(json) { return ConversationsCreateFromAssetOutputFromJSONTyped2(json, false); } @@ -6160,8 +6242,8 @@ var require_ConversationsCreateFromAssetOutput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "conversation": (0, index_1.ReferencedConversationFromJSON)(json["conversation"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "conversation": (0, _1.ReferencedConversationFromJSON)(json["conversation"]) }; } exports.ConversationsCreateFromAssetOutputFromJSONTyped = ConversationsCreateFromAssetOutputFromJSONTyped2; @@ -6173,14 +6255,90 @@ var require_ConversationsCreateFromAssetOutput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "conversation": (0, index_1.ReferencedConversationToJSON)(value.conversation) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation) }; } exports.ConversationsCreateFromAssetOutputToJSON = ConversationsCreateFromAssetOutputToJSON2; } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/CreatedExternalProviderApiKey.js +var require_CreatedExternalProviderApiKey = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/CreatedExternalProviderApiKey.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CreatedExternalProviderApiKeyToJSON = exports.CreatedExternalProviderApiKeyFromJSONTyped = exports.CreatedExternalProviderApiKeyFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function CreatedExternalProviderApiKeyFromJSON2(json) { + return CreatedExternalProviderApiKeyFromJSONTyped(json, false); + } + exports.CreatedExternalProviderApiKeyFromJSON = CreatedExternalProviderApiKeyFromJSON2; + function CreatedExternalProviderApiKeyFromJSONTyped(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"]), + "metadata": (0, _1.Auth0UserMetadataFromJSON)(json["metadata"]) + }; + } + exports.CreatedExternalProviderApiKeyFromJSONTyped = CreatedExternalProviderApiKeyFromJSONTyped; + function CreatedExternalProviderApiKeyToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "metadata": (0, _1.Auth0UserMetadataToJSON)(value.metadata) + }; + } + exports.CreatedExternalProviderApiKeyToJSON = CreatedExternalProviderApiKeyToJSON2; + } +}); + +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/DeletedExternalProviderApiKey.js +var require_DeletedExternalProviderApiKey = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/DeletedExternalProviderApiKey.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeletedExternalProviderApiKeyToJSON = exports.DeletedExternalProviderApiKeyFromJSONTyped = exports.DeletedExternalProviderApiKeyFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function DeletedExternalProviderApiKeyFromJSON2(json) { + return DeletedExternalProviderApiKeyFromJSONTyped(json, false); + } + exports.DeletedExternalProviderApiKeyFromJSON = DeletedExternalProviderApiKeyFromJSON2; + function DeletedExternalProviderApiKeyFromJSONTyped(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"]), + "metadata": (0, _1.Auth0UserMetadataFromJSON)(json["metadata"]) + }; + } + exports.DeletedExternalProviderApiKeyFromJSONTyped = DeletedExternalProviderApiKeyFromJSONTyped; + function DeletedExternalProviderApiKeyToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "metadata": (0, _1.Auth0UserMetadataToJSON)(value.metadata) + }; + } + exports.DeletedExternalProviderApiKeyToJSON = DeletedExternalProviderApiKeyToJSON2; + } +}); + // ../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) { @@ -6188,7 +6346,7 @@ var require_DiscoveredAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DiscoveredAssetToJSON = exports.DiscoveredAssetFromJSONTyped = exports.DiscoveredAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DiscoveredAssetFromJSON3(json) { return DiscoveredAssetFromJSONTyped4(json, false); } @@ -6198,12 +6356,12 @@ var require_DiscoveredAsset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, index_1.SeededFileFromJSON)(json["file"]), - "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, index_1.SeededFragmentFromJSON)(json["fragment"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, _1.SeededFileFromJSON)(json["file"]), + "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, _1.SeededFragmentFromJSON)(json["fragment"]), "directory": !(0, runtime_1.exists)(json, "directory") ? void 0 : json["directory"], - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.SeededAssetMetadataFromJSON)(json["metadata"]), - "filters": !(0, runtime_1.exists)(json, "filters") ? void 0 : (0, index_1.TLPDirectedDiscoveryFiltersFromJSON)(json["filters"]) + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.SeededAssetMetadataFromJSON)(json["metadata"]), + "filters": !(0, runtime_1.exists)(json, "filters") ? void 0 : (0, _1.TLPDirectedDiscoveryFiltersFromJSON)(json["filters"]) }; } exports.DiscoveredAssetFromJSONTyped = DiscoveredAssetFromJSONTyped4; @@ -6215,12 +6373,12 @@ var require_DiscoveredAsset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "file": (0, index_1.SeededFileToJSON)(value.file), - "fragment": (0, index_1.SeededFragmentToJSON)(value.fragment), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "file": (0, _1.SeededFileToJSON)(value.file), + "fragment": (0, _1.SeededFragmentToJSON)(value.fragment), "directory": value.directory, - "metadata": (0, index_1.SeededAssetMetadataToJSON)(value.metadata), - "filters": (0, index_1.TLPDirectedDiscoveryFiltersToJSON)(value.filters) + "metadata": (0, _1.SeededAssetMetadataToJSON)(value.metadata), + "filters": (0, _1.TLPDirectedDiscoveryFiltersToJSON)(value.filters) }; } exports.DiscoveredAssetToJSON = DiscoveredAssetToJSON3; @@ -6234,7 +6392,7 @@ var require_DiscoveredAssets = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DiscoveredAssetsToJSON = exports.DiscoveredAssetsFromJSONTyped = exports.DiscoveredAssetsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DiscoveredAssetsFromJSON3(json) { return DiscoveredAssetsFromJSONTyped4(json, false); } @@ -6244,9 +6402,9 @@ var require_DiscoveredAssets = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "application": json["application"], - "iterable": json["iterable"].map(index_1.DiscoveredAssetFromJSON) + "iterable": json["iterable"].map(_1.DiscoveredAssetFromJSON) }; } exports.DiscoveredAssetsFromJSONTyped = DiscoveredAssetsFromJSONTyped4; @@ -6258,9 +6416,9 @@ var require_DiscoveredAssets = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "application": value.application, - "iterable": value.iterable.map(index_1.DiscoveredAssetToJSON) + "iterable": value.iterable.map(_1.DiscoveredAssetToJSON) }; } exports.DiscoveredAssetsToJSON = DiscoveredAssetsToJSON4; @@ -6274,7 +6432,7 @@ var require_DiscoveredHtmlWebpage = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DiscoveredHtmlWebpageToJSON = exports.DiscoveredHtmlWebpageFromJSONTyped = exports.DiscoveredHtmlWebpageFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DiscoveredHtmlWebpageFromJSON3(json) { return DiscoveredHtmlWebpageFromJSONTyped4(json, false); } @@ -6284,8 +6442,8 @@ var require_DiscoveredHtmlWebpage = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "assets": (0, index_1.DiscoveredAssetsFromJSON)(json["assets"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "assets": (0, _1.DiscoveredAssetsFromJSON)(json["assets"]), "url": json["url"] }; } @@ -6298,8 +6456,8 @@ var require_DiscoveredHtmlWebpage = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "assets": (0, index_1.DiscoveredAssetsToJSON)(value.assets), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "assets": (0, _1.DiscoveredAssetsToJSON)(value.assets), "url": value.url }; } @@ -6314,7 +6472,7 @@ var require_DiscoveredHtmlWebpages = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DiscoveredHtmlWebpagesToJSON = exports.DiscoveredHtmlWebpagesFromJSONTyped = exports.DiscoveredHtmlWebpagesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DiscoveredHtmlWebpagesFromJSON2(json) { return DiscoveredHtmlWebpagesFromJSONTyped2(json, false); } @@ -6324,8 +6482,8 @@ var require_DiscoveredHtmlWebpages = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.DiscoveredHtmlWebpageFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.DiscoveredHtmlWebpageFromJSON), "application": json["application"] }; } @@ -6338,8 +6496,8 @@ var require_DiscoveredHtmlWebpages = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.DiscoveredHtmlWebpageToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.DiscoveredHtmlWebpageToJSON), "application": value.application }; } @@ -6354,7 +6512,7 @@ var require_DiscoveredRelatedTag = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DiscoveredRelatedTagToJSON = exports.DiscoveredRelatedTagFromJSONTyped = exports.DiscoveredRelatedTagFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DiscoveredRelatedTagFromJSON3(json) { return DiscoveredRelatedTagFromJSONTyped4(json, false); } @@ -6364,8 +6522,8 @@ var require_DiscoveredRelatedTag = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "seed": (0, index_1.SeededTagFromJSON)(json["seed"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "seed": (0, _1.SeededTagFromJSON)(json["seed"]) }; } exports.DiscoveredRelatedTagFromJSONTyped = DiscoveredRelatedTagFromJSONTyped4; @@ -6377,8 +6535,8 @@ var require_DiscoveredRelatedTag = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "seed": (0, index_1.SeededTagToJSON)(value.seed) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "seed": (0, _1.SeededTagToJSON)(value.seed) }; } exports.DiscoveredRelatedTagToJSON = DiscoveredRelatedTagToJSON3; @@ -6392,7 +6550,7 @@ var require_DiscoveredRelatedTags = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DiscoveredRelatedTagsToJSON = exports.DiscoveredRelatedTagsFromJSONTyped = exports.DiscoveredRelatedTagsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DiscoveredRelatedTagsFromJSON2(json) { return DiscoveredRelatedTagsFromJSONTyped2(json, false); } @@ -6402,9 +6560,9 @@ var require_DiscoveredRelatedTags = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "application": json["application"], - "iterable": json["iterable"].map(index_1.DiscoveredRelatedTagFromJSON) + "iterable": json["iterable"].map(_1.DiscoveredRelatedTagFromJSON) }; } exports.DiscoveredRelatedTagsFromJSONTyped = DiscoveredRelatedTagsFromJSONTyped2; @@ -6416,9 +6574,9 @@ var require_DiscoveredRelatedTags = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "application": value.application, - "iterable": value.iterable.map(index_1.DiscoveredRelatedTagToJSON) + "iterable": value.iterable.map(_1.DiscoveredRelatedTagToJSON) }; } exports.DiscoveredRelatedTagsToJSON = DiscoveredRelatedTagsToJSON2; @@ -6432,7 +6590,7 @@ var require_DiscoveredSensitive = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DiscoveredSensitiveToJSON = exports.DiscoveredSensitiveFromJSONTyped = exports.DiscoveredSensitiveFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DiscoveredSensitiveFromJSON3(json) { return DiscoveredSensitiveFromJSONTyped4(json, false); } @@ -6442,8 +6600,8 @@ var require_DiscoveredSensitive = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "seed": (0, index_1.SeededSensitiveFromJSON)(json["seed"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "seed": (0, _1.SeededSensitiveFromJSON)(json["seed"]), "text": json["text"] }; } @@ -6456,8 +6614,8 @@ var require_DiscoveredSensitive = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "seed": (0, index_1.SeededSensitiveToJSON)(value.seed), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "seed": (0, _1.SeededSensitiveToJSON)(value.seed), "text": value.text }; } @@ -6472,7 +6630,7 @@ var require_DiscoveredSensitives = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DiscoveredSensitivesToJSON = exports.DiscoveredSensitivesFromJSONTyped = exports.DiscoveredSensitivesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DiscoveredSensitivesFromJSON2(json) { return DiscoveredSensitivesFromJSONTyped2(json, false); } @@ -6482,8 +6640,8 @@ var require_DiscoveredSensitives = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.DiscoveredSensitiveFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.DiscoveredSensitiveFromJSON), "application": json["application"] }; } @@ -6496,8 +6654,8 @@ var require_DiscoveredSensitives = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.DiscoveredSensitiveToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.DiscoveredSensitiveToJSON), "application": value.application }; } @@ -6512,7 +6670,7 @@ var require_Distribution = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DistributionToJSON = exports.DistributionFromJSONTyped = exports.DistributionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DistributionFromJSON4(json) { return DistributionFromJSONTyped6(json, false); } @@ -6522,14 +6680,14 @@ var require_Distribution = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "share": (0, index_1.FlattenedShareFromJSON)(json["share"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "mailgun": !(0, runtime_1.exists)(json, "mailgun") ? void 0 : (0, index_1.MailgunDistributionFromJSON)(json["mailgun"]), - "github": !(0, runtime_1.exists)(json, "github") ? void 0 : (0, index_1.GitHubDistributionFromJSON)(json["github"]) + "share": (0, _1.FlattenedShareFromJSON)(json["share"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "mailgun": !(0, runtime_1.exists)(json, "mailgun") ? void 0 : (0, _1.MailgunDistributionFromJSON)(json["mailgun"]), + "github": !(0, runtime_1.exists)(json, "github") ? void 0 : (0, _1.GitHubDistributionFromJSON)(json["github"]) }; } exports.DistributionFromJSONTyped = DistributionFromJSONTyped6; @@ -6541,14 +6699,14 @@ var require_Distribution = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "share": (0, index_1.FlattenedShareToJSON)(value.share), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "mailgun": (0, index_1.MailgunDistributionToJSON)(value.mailgun), - "github": (0, index_1.GitHubDistributionToJSON)(value.github) + "share": (0, _1.FlattenedShareToJSON)(value.share), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "mailgun": (0, _1.MailgunDistributionToJSON)(value.mailgun), + "github": (0, _1.GitHubDistributionToJSON)(value.github) }; } exports.DistributionToJSON = DistributionToJSON5; @@ -6562,7 +6720,7 @@ var require_Distributions = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.DistributionsToJSON = exports.DistributionsFromJSONTyped = exports.DistributionsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function DistributionsFromJSON4(json) { return DistributionsFromJSONTyped6(json, false); } @@ -6572,8 +6730,8 @@ var require_Distributions = __commonJS({ return json; } return { - "iterable": json["iterable"].map(index_1.DistributionFromJSON), - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]) + "iterable": json["iterable"].map(_1.DistributionFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]) }; } exports.DistributionsFromJSONTyped = DistributionsFromJSONTyped6; @@ -6585,8 +6743,8 @@ var require_Distributions = __commonJS({ return null; } return { - "iterable": value.iterable.map(index_1.DistributionToJSON), - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema) + "iterable": value.iterable.map(_1.DistributionToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema) }; } exports.DistributionsToJSON = DistributionsToJSON5; @@ -6599,7 +6757,7 @@ var require_Edges = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EdgesToJSON = exports.EdgesFromJSONTyped = exports.EdgesFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function EdgesFromJSON4(json) { return EdgesFromJSONTyped6(json, false); } @@ -6609,7 +6767,7 @@ var require_Edges = __commonJS({ return json; } return { - "iterable": json["iterable"].map(index_1.NodeFromJSON) + "iterable": json["iterable"].map(_1.NodeFromJSON) }; } exports.EdgesFromJSONTyped = EdgesFromJSONTyped6; @@ -6621,7 +6779,7 @@ var require_Edges = __commonJS({ return null; } return { - "iterable": value.iterable.map(index_1.NodeToJSON) + "iterable": value.iterable.map(_1.NodeToJSON) }; } exports.EdgesToJSON = EdgesToJSON4; @@ -6634,21 +6792,21 @@ var require_EmbeddedModelSchema = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EmbeddedModelSchemaToJSON = exports.EmbeddedModelSchemaFromJSONTyped = exports.EmbeddedModelSchemaFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function EmbeddedModelSchemaFromJSON6(json) { - return EmbeddedModelSchemaFromJSONTyped884(json, false); + return EmbeddedModelSchemaFromJSONTyped904(json, false); } exports.EmbeddedModelSchemaFromJSON = EmbeddedModelSchemaFromJSON6; - function EmbeddedModelSchemaFromJSONTyped884(json, ignoreDiscriminator) { + function EmbeddedModelSchemaFromJSONTyped904(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "migration": json["migration"], - "semantic": (0, index_1.EmbeddedModelSchemaSemanticVersionEnumFromJSON)(json["semantic"]) + "semantic": (0, _1.EmbeddedModelSchemaSemanticVersionEnumFromJSON)(json["semantic"]) }; } - exports.EmbeddedModelSchemaFromJSONTyped = EmbeddedModelSchemaFromJSONTyped884; + exports.EmbeddedModelSchemaFromJSONTyped = EmbeddedModelSchemaFromJSONTyped904; function EmbeddedModelSchemaToJSON4(value) { if (value === void 0) { return void 0; @@ -6658,7 +6816,7 @@ var require_EmbeddedModelSchema = __commonJS({ } return { "migration": value.migration, - "semantic": (0, index_1.EmbeddedModelSchemaSemanticVersionEnumToJSON)(value.semantic) + "semantic": (0, _1.EmbeddedModelSchemaSemanticVersionEnumToJSON)(value.semantic) }; } exports.EmbeddedModelSchemaToJSON = EmbeddedModelSchemaToJSON4; @@ -6697,7 +6855,7 @@ var require_Embedding = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.EmbeddingToJSON = exports.EmbeddingFromJSONTyped = exports.EmbeddingFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function EmbeddingFromJSON4(json) { return EmbeddingFromJSONTyped7(json, false); } @@ -6708,10 +6866,10 @@ var require_Embedding = __commonJS({ } return { "raw": json["raw"], - "model": (0, index_1.ModelFromJSON)(json["model"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]) + "model": (0, _1.ModelFromJSON)(json["model"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]) }; } exports.EmbeddingFromJSONTyped = EmbeddingFromJSONTyped7; @@ -6724,10 +6882,10 @@ var require_Embedding = __commonJS({ } return { "raw": value.raw, - "model": (0, index_1.ModelToJSON)(value.model), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted) + "model": (0, _1.ModelToJSON)(value.model), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted) }; } exports.EmbeddingToJSON = EmbeddingToJSON4; @@ -6740,7 +6898,7 @@ var require_Embeddings = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EmbeddingsToJSON = exports.EmbeddingsFromJSONTyped = exports.EmbeddingsFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function EmbeddingsFromJSON4(json) { return EmbeddingsFromJSONTyped6(json, false); } @@ -6750,7 +6908,7 @@ var require_Embeddings = __commonJS({ return json; } return { - "iterable": json["iterable"].map(index_1.EmbeddingFromJSON) + "iterable": json["iterable"].map(_1.EmbeddingFromJSON) }; } exports.EmbeddingsFromJSONTyped = EmbeddingsFromJSONTyped6; @@ -6762,7 +6920,7 @@ var require_Embeddings = __commonJS({ return null; } return { - "iterable": value.iterable.map(index_1.EmbeddingToJSON) + "iterable": value.iterable.map(_1.EmbeddingToJSON) }; } exports.EmbeddingsToJSON = EmbeddingsToJSON4; @@ -6776,7 +6934,7 @@ var require_ExistentMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ExistentMetadataToJSON = exports.ExistentMetadataFromJSONTyped = exports.ExistentMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ExistentMetadataFromJSON3(json) { return ExistentMetadataFromJSONTyped(json, false); } @@ -6786,7 +6944,7 @@ var require_ExistentMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "value": json["value"] }; } @@ -6799,7 +6957,7 @@ var require_ExistentMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "value": value.value }; } @@ -6814,7 +6972,7 @@ var require_ExistingMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ExistingMetadataToJSON = exports.ExistingMetadataFromJSONTyped = exports.ExistingMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ExistingMetadataFromJSON2(json) { return ExistingMetadataFromJSONTyped(json, false); } @@ -6824,9 +6982,9 @@ var require_ExistingMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "website": !(0, runtime_1.exists)(json, "website") ? void 0 : (0, index_1.ReferencedWebsiteFromJSON)(json["website"]), - "tag": !(0, runtime_1.exists)(json, "tag") ? void 0 : (0, index_1.ReferencedTagFromJSON)(json["tag"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "website": !(0, runtime_1.exists)(json, "website") ? void 0 : (0, _1.ReferencedWebsiteFromJSON)(json["website"]), + "tag": !(0, runtime_1.exists)(json, "tag") ? void 0 : (0, _1.ReferencedTagFromJSON)(json["tag"]) }; } exports.ExistingMetadataFromJSONTyped = ExistingMetadataFromJSONTyped; @@ -6838,9 +6996,9 @@ var require_ExistingMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "website": (0, index_1.ReferencedWebsiteToJSON)(value.website), - "tag": (0, index_1.ReferencedTagToJSON)(value.tag) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "website": (0, _1.ReferencedWebsiteToJSON)(value.website), + "tag": (0, _1.ReferencedTagToJSON)(value.tag) }; } exports.ExistingMetadataToJSON = ExistingMetadataToJSON3; @@ -6853,7 +7011,7 @@ var require_ExportedAsset = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExportedAssetToJSON = exports.ExportedAssetFromJSONTyped = exports.ExportedAssetFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function ExportedAssetFromJSON2(json) { return ExportedAssetFromJSONTyped2(json, false); } @@ -6865,8 +7023,8 @@ var require_ExportedAsset = __commonJS({ return { "name": json["name"], "description": json["description"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "raw": (0, index_1.FileFormatFromJSON)(json["raw"]) + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "raw": (0, _1.FileFormatFromJSON)(json["raw"]) }; } exports.ExportedAssetFromJSONTyped = ExportedAssetFromJSONTyped2; @@ -6880,8 +7038,8 @@ var require_ExportedAsset = __commonJS({ return { "name": value.name, "description": value.description, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "raw": (0, index_1.FileFormatToJSON)(value.raw) + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "raw": (0, _1.FileFormatToJSON)(value.raw) }; } exports.ExportedAssetToJSON = ExportedAssetToJSON2; @@ -6895,7 +7053,7 @@ var require_ExportedDatabase = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ExportedDatabaseToJSON = exports.ExportedDatabaseFromJSONTyped = exports.ExportedDatabaseFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ExportedDatabaseFromJSON2(json) { return ExportedDatabaseFromJSONTyped(json, false); } @@ -6920,9 +7078,9 @@ var require_ExportedDatabase = __commonJS({ "sensitives": json["sensitives"], "tags": json["tags"], "websites": json["websites"], - "values": (0, index_1.ExportedDatabaseFormatsFromJSON)(json["values"]), + "values": (0, _1.ExportedDatabaseFormatsFromJSON)(json["values"]), "version": json["version"], - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "relationships": !(0, runtime_1.exists)(json, "relationships") ? void 0 : json["relationships"], "activities": !(0, runtime_1.exists)(json, "activities") ? void 0 : json["activities"], "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : json["annotations"], @@ -6931,7 +7089,7 @@ var require_ExportedDatabase = __commonJS({ "anchorPoints": !(0, runtime_1.exists)(json, "anchorPoints") ? void 0 : json["anchorPoints"], "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : json["conversations"], "conversationMessages": !(0, runtime_1.exists)(json, "conversationMessages") ? void 0 : json["conversationMessages"], - "messageValues": !(0, runtime_1.exists)(json, "messageValues") ? void 0 : (0, index_1.ExportedDatabaseFormatsFromJSON)(json["messageValues"]) + "messageValues": !(0, runtime_1.exists)(json, "messageValues") ? void 0 : (0, _1.ExportedDatabaseFormatsFromJSON)(json["messageValues"]) }; } exports.ExportedDatabaseFromJSONTyped = ExportedDatabaseFromJSONTyped; @@ -6958,9 +7116,9 @@ var require_ExportedDatabase = __commonJS({ "sensitives": value.sensitives, "tags": value.tags, "websites": value.websites, - "values": (0, index_1.ExportedDatabaseFormatsToJSON)(value.values), + "values": (0, _1.ExportedDatabaseFormatsToJSON)(value.values), "version": value.version, - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "relationships": value.relationships, "activities": value.activities, "annotations": value.annotations, @@ -6969,7 +7127,7 @@ var require_ExportedDatabase = __commonJS({ "anchorPoints": value.anchorPoints, "conversations": value.conversations, "conversationMessages": value.conversationMessages, - "messageValues": (0, index_1.ExportedDatabaseFormatsToJSON)(value.messageValues) + "messageValues": (0, _1.ExportedDatabaseFormatsToJSON)(value.messageValues) }; } exports.ExportedDatabaseToJSON = ExportedDatabaseToJSON2; @@ -6983,7 +7141,7 @@ var require_ExportedDatabaseFormat = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ExportedDatabaseFormatToJSON = exports.ExportedDatabaseFormatFromJSONTyped = exports.ExportedDatabaseFormatFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ExportedDatabaseFormatFromJSON3(json) { return ExportedDatabaseFormatFromJSONTyped3(json, false); } @@ -6993,7 +7151,7 @@ var require_ExportedDatabaseFormat = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "raw": json["raw"] }; @@ -7007,7 +7165,7 @@ var require_ExportedDatabaseFormat = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "raw": value.raw }; @@ -7023,7 +7181,7 @@ var require_ExportedDatabaseFormats = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ExportedDatabaseFormatsToJSON = exports.ExportedDatabaseFormatsFromJSONTyped = exports.ExportedDatabaseFormatsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ExportedDatabaseFormatsFromJSON3(json) { return ExportedDatabaseFormatsFromJSONTyped3(json, false); } @@ -7033,8 +7191,8 @@ var require_ExportedDatabaseFormats = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ExportedDatabaseFormatFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ExportedDatabaseFormatFromJSON) }; } exports.ExportedDatabaseFormatsFromJSONTyped = ExportedDatabaseFormatsFromJSONTyped3; @@ -7046,8 +7204,8 @@ var require_ExportedDatabaseFormats = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ExportedDatabaseFormatToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ExportedDatabaseFormatToJSON) }; } exports.ExportedDatabaseFormatsToJSON = ExportedDatabaseFormatsToJSON3; @@ -7108,7 +7266,7 @@ var require_ExternalProvider = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ExternalProviderToJSON = exports.ExternalProviderFromJSONTyped = exports.ExternalProviderFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ExternalProviderFromJSON4(json) { return ExternalProviderFromJSONTyped6(json, false); } @@ -7118,14 +7276,14 @@ var require_ExternalProvider = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "type": (0, index_1.ExternalProviderTypeEnumFromJSON)(json["type"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "type": (0, _1.ExternalProviderTypeEnumFromJSON)(json["type"]), "userId": json["user_id"], "accessToken": !(0, runtime_1.exists)(json, "access_token") ? void 0 : json["access_token"], "expiresIn": !(0, runtime_1.exists)(json, "expires_in") ? void 0 : json["expires_in"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "profileData": !(0, runtime_1.exists)(json, "profileData") ? void 0 : (0, index_1.ExternalProviderProfileDataFromJSON)(json["profileData"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "profileData": !(0, runtime_1.exists)(json, "profileData") ? void 0 : (0, _1.ExternalProviderProfileDataFromJSON)(json["profileData"]), "connection": !(0, runtime_1.exists)(json, "connection") ? void 0 : json["connection"], "isSocial": !(0, runtime_1.exists)(json, "isSocial") ? void 0 : json["isSocial"] }; @@ -7139,14 +7297,14 @@ var require_ExternalProvider = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "type": (0, index_1.ExternalProviderTypeEnumToJSON)(value.type), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "type": (0, _1.ExternalProviderTypeEnumToJSON)(value.type), "user_id": value.userId, "access_token": value.accessToken, "expires_in": value.expiresIn, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "profileData": (0, index_1.ExternalProviderProfileDataToJSON)(value.profileData), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "profileData": (0, _1.ExternalProviderProfileDataToJSON)(value.profileData), "connection": value.connection, "isSocial": value.isSocial }; @@ -7303,7 +7461,7 @@ var require_ExternalProviders = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ExternalProvidersToJSON = exports.ExternalProvidersFromJSONTyped = exports.ExternalProvidersFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ExternalProvidersFromJSON4(json) { return ExternalProvidersFromJSONTyped6(json, false); } @@ -7313,8 +7471,8 @@ var require_ExternalProviders = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ExternalProviderFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ExternalProviderFromJSON) }; } exports.ExternalProvidersFromJSONTyped = ExternalProvidersFromJSONTyped6; @@ -7326,8 +7484,8 @@ var require_ExternalProviders = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ExternalProviderToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ExternalProviderToJSON) }; } exports.ExternalProvidersToJSON = ExternalProvidersToJSON4; @@ -7377,7 +7535,7 @@ var require_FileFormat = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FileFormatToJSON = exports.FileFormatFromJSONTyped = exports.FileFormatFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FileFormatFromJSON4(json) { return FileFormatFromJSONTyped11(json, false); } @@ -7387,9 +7545,9 @@ var require_FileFormat = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, index_1.TransferableBytesFromJSON)(json["bytes"]), - "string": !(0, runtime_1.exists)(json, "string") ? void 0 : (0, index_1.TransferableStringFromJSON)(json["string"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, _1.TransferableBytesFromJSON)(json["bytes"]), + "string": !(0, runtime_1.exists)(json, "string") ? void 0 : (0, _1.TransferableStringFromJSON)(json["string"]) }; } exports.FileFormatFromJSONTyped = FileFormatFromJSONTyped11; @@ -7401,9 +7559,9 @@ var require_FileFormat = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "bytes": (0, index_1.TransferableBytesToJSON)(value.bytes), - "string": (0, index_1.TransferableStringToJSON)(value.string) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "bytes": (0, _1.TransferableBytesToJSON)(value.bytes), + "string": (0, _1.TransferableStringToJSON)(value.string) }; } exports.FileFormatToJSON = FileFormatToJSON4; @@ -7417,7 +7575,7 @@ var require_FileMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FileMetadataToJSON = exports.FileMetadataFromJSONTyped = exports.FileMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FileMetadataFromJSON4(json) { return FileMetadataFromJSONTyped6(json, false); } @@ -7427,9 +7585,9 @@ var require_FileMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "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"], - "ext": !(0, runtime_1.exists)(json, "ext") ? void 0 : (0, index_1.ClassificationSpecificEnumFromJSON)(json["ext"]), + "ext": !(0, runtime_1.exists)(json, "ext") ? void 0 : (0, _1.ClassificationSpecificEnumFromJSON)(json["ext"]), "size": !(0, runtime_1.exists)(json, "size") ? void 0 : json["size"] }; } @@ -7442,9 +7600,9 @@ var require_FileMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "name": value.name, - "ext": (0, index_1.ClassificationSpecificEnumToJSON)(value.ext), + "ext": (0, _1.ClassificationSpecificEnumToJSON)(value.ext), "size": value.size }; } @@ -7459,7 +7617,7 @@ var require_FilePickerInput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FilePickerInputToJSON = exports.FilePickerInputFromJSONTyped = exports.FilePickerInputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FilePickerInputFromJSON2(json) { return FilePickerInputFromJSONTyped(json, false); } @@ -7469,7 +7627,7 @@ var require_FilePickerInput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "allowedExtensions": !(0, runtime_1.exists)(json, "allowedExtensions") ? void 0 : json["allowedExtensions"] }; } @@ -7482,7 +7640,7 @@ var require_FilePickerInput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "allowedExtensions": value.allowedExtensions }; } @@ -7523,7 +7681,7 @@ var require_FlattenedActivities = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedActivitiesToJSON = exports.FlattenedActivitiesFromJSONTyped = exports.FlattenedActivitiesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedActivitiesFromJSON4(json) { return FlattenedActivitiesFromJSONTyped9(json, false); } @@ -7533,8 +7691,8 @@ var require_FlattenedActivities = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedActivityFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedActivityFromJSON) }; } exports.FlattenedActivitiesFromJSONTyped = FlattenedActivitiesFromJSONTyped9; @@ -7546,8 +7704,8 @@ var require_FlattenedActivities = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedActivityToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedActivityToJSON) }; } exports.FlattenedActivitiesToJSON = FlattenedActivitiesToJSON5; @@ -7561,7 +7719,7 @@ var require_FlattenedActivity = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedActivityToJSON = exports.FlattenedActivityFromJSONTyped = exports.FlattenedActivityFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedActivityFromJSON4(json) { return FlattenedActivityFromJSONTyped6(json, false); } @@ -7571,17 +7729,17 @@ var require_FlattenedActivity = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "event": (0, index_1.SeededConnectorTrackingFromJSON)(json["event"]), - "application": (0, index_1.ApplicationFromJSON)(json["application"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.ReferencedAssetFromJSON)(json["asset"]), - "format": !(0, runtime_1.exists)(json, "format") ? void 0 : (0, index_1.ReferencedFormatFromJSON)(json["format"]), - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.FlattenedUserProfileFromJSON)(json["user"]), - "mechanism": (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "event": (0, _1.SeededConnectorTrackingFromJSON)(json["event"]), + "application": (0, _1.ApplicationFromJSON)(json["application"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.ReferencedAssetFromJSON)(json["asset"]), + "format": !(0, runtime_1.exists)(json, "format") ? void 0 : (0, _1.ReferencedFormatFromJSON)(json["format"]), + "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.FlattenedUserProfileFromJSON)(json["user"]), + "mechanism": (0, _1.MechanismEnumFromJSON)(json["mechanism"]), "rank": !(0, runtime_1.exists)(json, "rank") ? void 0 : json["rank"] }; } @@ -7594,17 +7752,17 @@ var require_FlattenedActivity = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "event": (0, index_1.SeededConnectorTrackingToJSON)(value.event), - "application": (0, index_1.ApplicationToJSON)(value.application), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), - "format": (0, index_1.ReferencedFormatToJSON)(value.format), - "user": (0, index_1.FlattenedUserProfileToJSON)(value.user), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "event": (0, _1.SeededConnectorTrackingToJSON)(value.event), + "application": (0, _1.ApplicationToJSON)(value.application), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), + "format": (0, _1.ReferencedFormatToJSON)(value.format), + "user": (0, _1.FlattenedUserProfileToJSON)(value.user), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), "rank": value.rank }; } @@ -7619,7 +7777,7 @@ var require_FlattenedAnalysis = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedAnalysisToJSON = exports.FlattenedAnalysisFromJSONTyped = exports.FlattenedAnalysisFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedAnalysisFromJSON4(json) { return FlattenedAnalysisFromJSONTyped6(json, false); } @@ -7629,11 +7787,11 @@ var require_FlattenedAnalysis = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "code": !(0, runtime_1.exists)(json, "code") ? void 0 : (0, index_1.CodeAnalysisFromJSON)(json["code"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "code": !(0, runtime_1.exists)(json, "code") ? void 0 : (0, _1.CodeAnalysisFromJSON)(json["code"]), "id": json["id"], "format": json["format"], - "image": !(0, runtime_1.exists)(json, "image") ? void 0 : (0, index_1.FlattenedImageAnalysisFromJSON)(json["image"]) + "image": !(0, runtime_1.exists)(json, "image") ? void 0 : (0, _1.FlattenedImageAnalysisFromJSON)(json["image"]) }; } exports.FlattenedAnalysisFromJSONTyped = FlattenedAnalysisFromJSONTyped6; @@ -7645,11 +7803,11 @@ var require_FlattenedAnalysis = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "code": (0, index_1.CodeAnalysisToJSON)(value.code), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "code": (0, _1.CodeAnalysisToJSON)(value.code), "id": value.id, "format": value.format, - "image": (0, index_1.FlattenedImageAnalysisToJSON)(value.image) + "image": (0, _1.FlattenedImageAnalysisToJSON)(value.image) }; } exports.FlattenedAnalysisToJSON = FlattenedAnalysisToJSON4; @@ -7663,7 +7821,7 @@ var require_FlattenedAnchor = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedAnchorToJSON = exports.FlattenedAnchorFromJSONTyped = exports.FlattenedAnchorFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedAnchorFromJSON4(json) { return FlattenedAnchorFromJSONTyped6(json, false); } @@ -7673,19 +7831,19 @@ var require_FlattenedAnchor = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "type": (0, index_1.AnchorTypeEnumFromJSON)(json["type"]), + "type": (0, _1.AnchorTypeEnumFromJSON)(json["type"]), "watch": !(0, runtime_1.exists)(json, "watch") ? void 0 : json["watch"], - "points": (0, index_1.FlattenedAnchorPointsFromJSON)(json["points"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), + "points": (0, _1.FlattenedAnchorPointsFromJSON)(json["points"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.FlattenedAnnotationsFromJSON)(json["annotations"]), - "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, index_1.FlattenedConversationsFromJSON)(json["conversations"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.FlattenedAnnotationsFromJSON)(json["annotations"]), + "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"]) }; } exports.FlattenedAnchorFromJSONTyped = FlattenedAnchorFromJSONTyped6; @@ -7697,19 +7855,19 @@ var require_FlattenedAnchor = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "type": (0, index_1.AnchorTypeEnumToJSON)(value.type), + "type": (0, _1.AnchorTypeEnumToJSON)(value.type), "watch": value.watch, - "points": (0, index_1.FlattenedAnchorPointsToJSON)(value.points), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), + "points": (0, _1.FlattenedAnchorPointsToJSON)(value.points), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), "name": value.name, - "annotations": (0, index_1.FlattenedAnnotationsToJSON)(value.annotations), - "conversations": (0, index_1.FlattenedConversationsToJSON)(value.conversations), - "score": (0, index_1.ScoreToJSON)(value.score) + "annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations), + "conversations": (0, _1.FlattenedConversationsToJSON)(value.conversations), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedAnchorToJSON = FlattenedAnchorToJSON4; @@ -7723,7 +7881,7 @@ var require_FlattenedAnchorPoint = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedAnchorPointToJSON = exports.FlattenedAnchorPointFromJSONTyped = exports.FlattenedAnchorPointFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedAnchorPointFromJSON4(json) { return FlattenedAnchorPointFromJSONTyped6(json, false); } @@ -7733,16 +7891,16 @@ var require_FlattenedAnchorPoint = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "verified": !(0, runtime_1.exists)(json, "verified") ? void 0 : json["verified"], "fullpath": json["fullpath"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, index_1.PlatformEnumFromJSON)(json["platform"]), - "anchor": (0, index_1.ReferencedAnchorFromJSON)(json["anchor"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, _1.PlatformEnumFromJSON)(json["platform"]), + "anchor": (0, _1.ReferencedAnchorFromJSON)(json["anchor"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedAnchorPointFromJSONTyped = FlattenedAnchorPointFromJSONTyped6; @@ -7754,16 +7912,16 @@ var require_FlattenedAnchorPoint = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "verified": value.verified, "fullpath": value.fullpath, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "platform": (0, index_1.PlatformEnumToJSON)(value.platform), - "anchor": (0, index_1.ReferencedAnchorToJSON)(value.anchor), - "score": (0, index_1.ScoreToJSON)(value.score) + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "platform": (0, _1.PlatformEnumToJSON)(value.platform), + "anchor": (0, _1.ReferencedAnchorToJSON)(value.anchor), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedAnchorPointToJSON = FlattenedAnchorPointToJSON4; @@ -7777,7 +7935,7 @@ var require_FlattenedAnchorPoints = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedAnchorPointsToJSON = exports.FlattenedAnchorPointsFromJSONTyped = exports.FlattenedAnchorPointsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedAnchorPointsFromJSON4(json) { return FlattenedAnchorPointsFromJSONTyped9(json, false); } @@ -7787,10 +7945,10 @@ var require_FlattenedAnchorPoints = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedAnchorPointFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedAnchorPointFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedAnchorPointsFromJSONTyped = FlattenedAnchorPointsFromJSONTyped9; @@ -7802,10 +7960,10 @@ var require_FlattenedAnchorPoints = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedAnchorPointToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedAnchorPointToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedAnchorPointsToJSON = FlattenedAnchorPointsToJSON4; @@ -7819,7 +7977,7 @@ var require_FlattenedAnchors = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedAnchorsToJSON = exports.FlattenedAnchorsFromJSONTyped = exports.FlattenedAnchorsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedAnchorsFromJSON4(json) { return FlattenedAnchorsFromJSONTyped12(json, false); } @@ -7829,10 +7987,10 @@ var require_FlattenedAnchors = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedAnchorFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedAnchorFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedAnchorsFromJSONTyped = FlattenedAnchorsFromJSONTyped12; @@ -7844,10 +8002,10 @@ var require_FlattenedAnchors = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedAnchorToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedAnchorToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedAnchorsToJSON = FlattenedAnchorsToJSON4; @@ -7861,7 +8019,7 @@ var require_FlattenedAnnotation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedAnnotationToJSON = exports.FlattenedAnnotationFromJSONTyped = exports.FlattenedAnnotationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedAnnotationFromJSON4(json) { return FlattenedAnnotationFromJSONTyped6(json, false); } @@ -7871,23 +8029,23 @@ var require_FlattenedAnnotation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.ReferencedAssetFromJSON)(json["asset"]), - "person": !(0, runtime_1.exists)(json, "person") ? void 0 : (0, index_1.ReferencedPersonFromJSON)(json["person"]), - "type": (0, index_1.AnnotationTypeEnumFromJSON)(json["type"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.ReferencedAssetFromJSON)(json["asset"]), + "person": !(0, runtime_1.exists)(json, "person") ? void 0 : (0, _1.ReferencedPersonFromJSON)(json["person"]), + "type": (0, _1.AnnotationTypeEnumFromJSON)(json["type"]), "text": json["text"], - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ReferencedModelFromJSON)(json["model"]), + "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ReferencedModelFromJSON)(json["model"]), "pseudo": !(0, runtime_1.exists)(json, "pseudo") ? void 0 : json["pseudo"], "favorited": !(0, runtime_1.exists)(json, "favorited") ? void 0 : json["favorited"], - "anchor": !(0, runtime_1.exists)(json, "anchor") ? void 0 : (0, index_1.ReferencedAnchorFromJSON)(json["anchor"]), - "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, index_1.ReferencedConversationFromJSON)(json["conversation"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]), - "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, index_1.FlattenedConversationMessagesFromJSON)(json["messages"]) + "anchor": !(0, runtime_1.exists)(json, "anchor") ? void 0 : (0, _1.ReferencedAnchorFromJSON)(json["anchor"]), + "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, _1.ReferencedConversationFromJSON)(json["conversation"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]), + "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]) }; } exports.FlattenedAnnotationFromJSONTyped = FlattenedAnnotationFromJSONTyped6; @@ -7899,23 +8057,23 @@ var require_FlattenedAnnotation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), - "person": (0, index_1.ReferencedPersonToJSON)(value.person), - "type": (0, index_1.AnnotationTypeEnumToJSON)(value.type), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), + "person": (0, _1.ReferencedPersonToJSON)(value.person), + "type": (0, _1.AnnotationTypeEnumToJSON)(value.type), "text": value.text, - "model": (0, index_1.ReferencedModelToJSON)(value.model), + "model": (0, _1.ReferencedModelToJSON)(value.model), "pseudo": value.pseudo, "favorited": value.favorited, - "anchor": (0, index_1.ReferencedAnchorToJSON)(value.anchor), - "conversation": (0, index_1.ReferencedConversationToJSON)(value.conversation), - "score": (0, index_1.ScoreToJSON)(value.score), - "messages": (0, index_1.FlattenedConversationMessagesToJSON)(value.messages) + "anchor": (0, _1.ReferencedAnchorToJSON)(value.anchor), + "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation), + "score": (0, _1.ScoreToJSON)(value.score), + "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages) }; } exports.FlattenedAnnotationToJSON = FlattenedAnnotationToJSON4; @@ -7929,7 +8087,7 @@ var require_FlattenedAnnotations = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedAnnotationsToJSON = exports.FlattenedAnnotationsFromJSONTyped = exports.FlattenedAnnotationsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedAnnotationsFromJSON4(json) { return FlattenedAnnotationsFromJSONTyped29(json, false); } @@ -7939,10 +8097,10 @@ var require_FlattenedAnnotations = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedAnnotationFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedAnnotationFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedAnnotationsFromJSONTyped = FlattenedAnnotationsFromJSONTyped29; @@ -7954,10 +8112,10 @@ var require_FlattenedAnnotations = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedAnnotationToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedAnnotationToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedAnnotationsToJSON = FlattenedAnnotationsToJSON4; @@ -7971,7 +8129,7 @@ var require_FlattenedAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedAssetToJSON = exports.FlattenedAssetFromJSONTyped = exports.FlattenedAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedAssetFromJSON4(json) { return FlattenedAssetFromJSONTyped18(json, false); } @@ -7981,34 +8139,34 @@ var require_FlattenedAsset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], "creator": json["creator"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "synced": !(0, runtime_1.exists)(json, "synced") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["synced"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "formats": (0, index_1.FlattenedFormatsFromJSON)(json["formats"]), - "preview": (0, index_1.FlattenedPreviewFromJSON)(json["preview"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "synced": !(0, runtime_1.exists)(json, "synced") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["synced"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "formats": (0, _1.FlattenedFormatsFromJSON)(json["formats"]), + "preview": (0, _1.FlattenedPreviewFromJSON)(json["preview"]), "original": json["original"], - "shares": !(0, runtime_1.exists)(json, "shares") ? void 0 : (0, index_1.FlattenedSharesFromJSON)(json["shares"]), - "mechanism": (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, index_1.FlattenedWebsitesFromJSON)(json["websites"]), - "interacted": !(0, runtime_1.exists)(json, "interacted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["interacted"]), - "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, index_1.FlattenedTagsFromJSON)(json["tags"]), - "sensitives": !(0, runtime_1.exists)(json, "sensitives") ? void 0 : (0, index_1.FlattenedSensitivesFromJSON)(json["sensitives"]), - "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, index_1.FlattenedPersonsFromJSON)(json["persons"]), + "shares": !(0, runtime_1.exists)(json, "shares") ? void 0 : (0, _1.FlattenedSharesFromJSON)(json["shares"]), + "mechanism": (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, _1.FlattenedWebsitesFromJSON)(json["websites"]), + "interacted": !(0, runtime_1.exists)(json, "interacted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["interacted"]), + "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, _1.FlattenedTagsFromJSON)(json["tags"]), + "sensitives": !(0, runtime_1.exists)(json, "sensitives") ? void 0 : (0, _1.FlattenedSensitivesFromJSON)(json["sensitives"]), + "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, _1.FlattenedPersonsFromJSON)(json["persons"]), "curated": !(0, runtime_1.exists)(json, "curated") ? void 0 : json["curated"], "discovered": !(0, runtime_1.exists)(json, "discovered") ? void 0 : json["discovered"], - "activities": !(0, runtime_1.exists)(json, "activities") ? void 0 : (0, index_1.FlattenedActivitiesFromJSON)(json["activities"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]), + "activities": !(0, runtime_1.exists)(json, "activities") ? void 0 : (0, _1.FlattenedActivitiesFromJSON)(json["activities"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]), "favorited": !(0, runtime_1.exists)(json, "favorited") ? void 0 : json["favorited"], "pseudo": !(0, runtime_1.exists)(json, "pseudo") ? void 0 : json["pseudo"], - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.FlattenedAnnotationsFromJSON)(json["annotations"]), - "hints": !(0, runtime_1.exists)(json, "hints") ? void 0 : (0, index_1.FlattenedHintsFromJSON)(json["hints"]), - "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, index_1.FlattenedAnchorsFromJSON)(json["anchors"]), - "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, index_1.FlattenedConversationsFromJSON)(json["conversations"]) + "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"]) }; } exports.FlattenedAssetFromJSONTyped = FlattenedAssetFromJSONTyped18; @@ -8020,34 +8178,34 @@ var require_FlattenedAsset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "name": value.name, "creator": value.creator, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "synced": (0, index_1.GroupedTimestampToJSON)(value.synced), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "formats": (0, index_1.FlattenedFormatsToJSON)(value.formats), - "preview": (0, index_1.FlattenedPreviewToJSON)(value.preview), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "synced": (0, _1.GroupedTimestampToJSON)(value.synced), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "formats": (0, _1.FlattenedFormatsToJSON)(value.formats), + "preview": (0, _1.FlattenedPreviewToJSON)(value.preview), "original": value.original, - "shares": (0, index_1.FlattenedSharesToJSON)(value.shares), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "websites": (0, index_1.FlattenedWebsitesToJSON)(value.websites), - "interacted": (0, index_1.GroupedTimestampToJSON)(value.interacted), - "tags": (0, index_1.FlattenedTagsToJSON)(value.tags), - "sensitives": (0, index_1.FlattenedSensitivesToJSON)(value.sensitives), - "persons": (0, index_1.FlattenedPersonsToJSON)(value.persons), + "shares": (0, _1.FlattenedSharesToJSON)(value.shares), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "websites": (0, _1.FlattenedWebsitesToJSON)(value.websites), + "interacted": (0, _1.GroupedTimestampToJSON)(value.interacted), + "tags": (0, _1.FlattenedTagsToJSON)(value.tags), + "sensitives": (0, _1.FlattenedSensitivesToJSON)(value.sensitives), + "persons": (0, _1.FlattenedPersonsToJSON)(value.persons), "curated": value.curated, "discovered": value.discovered, - "activities": (0, index_1.FlattenedActivitiesToJSON)(value.activities), - "score": (0, index_1.ScoreToJSON)(value.score), + "activities": (0, _1.FlattenedActivitiesToJSON)(value.activities), + "score": (0, _1.ScoreToJSON)(value.score), "favorited": value.favorited, "pseudo": value.pseudo, - "annotations": (0, index_1.FlattenedAnnotationsToJSON)(value.annotations), - "hints": (0, index_1.FlattenedHintsToJSON)(value.hints), - "anchors": (0, index_1.FlattenedAnchorsToJSON)(value.anchors), - "conversations": (0, index_1.FlattenedConversationsToJSON)(value.conversations) + "annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations), + "hints": (0, _1.FlattenedHintsToJSON)(value.hints), + "anchors": (0, _1.FlattenedAnchorsToJSON)(value.anchors), + "conversations": (0, _1.FlattenedConversationsToJSON)(value.conversations) }; } exports.FlattenedAssetToJSON = FlattenedAssetToJSON4; @@ -8061,7 +8219,7 @@ var require_FlattenedAssets = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedAssetsToJSON = exports.FlattenedAssetsFromJSONTyped = exports.FlattenedAssetsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedAssetsFromJSON4(json) { return FlattenedAssetsFromJSONTyped50(json, false); } @@ -8071,10 +8229,10 @@ var require_FlattenedAssets = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": !(0, runtime_1.exists)(json, "iterable") ? void 0 : json["iterable"].map(index_1.ReferencedAssetFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": !(0, runtime_1.exists)(json, "iterable") ? void 0 : json["iterable"].map(_1.ReferencedAssetFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedAssetsFromJSONTyped = FlattenedAssetsFromJSONTyped50; @@ -8086,10 +8244,10 @@ var require_FlattenedAssets = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable === void 0 ? void 0 : value.iterable.map(index_1.ReferencedAssetToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable === void 0 ? void 0 : value.iterable.map(_1.ReferencedAssetToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedAssetsToJSON = FlattenedAssetsToJSON5; @@ -8103,7 +8261,7 @@ var require_FlattenedConversation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedConversationToJSON = exports.FlattenedConversationFromJSONTyped = exports.FlattenedConversationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedConversationFromJSON4(json) { return FlattenedConversationFromJSONTyped6(json, false); } @@ -8113,22 +8271,22 @@ var require_FlattenedConversation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), "favorited": !(0, runtime_1.exists)(json, "favorited") ? void 0 : json["favorited"], - "application": !(0, runtime_1.exists)(json, "application") ? void 0 : (0, index_1.ApplicationFromJSON)(json["application"]), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.FlattenedAnnotationsFromJSON)(json["annotations"]), - "messages": (0, index_1.FlattenedConversationMessagesFromJSON)(json["messages"]), - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ReferencedModelFromJSON)(json["model"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, index_1.FlattenedAnchorsFromJSON)(json["anchors"]), - "type": (0, index_1.ConversationTypeEnumFromJSON)(json["type"]), - "grounding": !(0, runtime_1.exists)(json, "grounding") ? void 0 : (0, index_1.ConversationGroundingFromJSON)(json["grounding"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "application": !(0, runtime_1.exists)(json, "application") ? void 0 : (0, _1.ApplicationFromJSON)(json["application"]), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.FlattenedAnnotationsFromJSON)(json["annotations"]), + "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"]), + "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"]) }; } exports.FlattenedConversationFromJSONTyped = FlattenedConversationFromJSONTyped6; @@ -8140,22 +8298,22 @@ var require_FlattenedConversation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "name": value.name, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), "favorited": value.favorited, - "application": (0, index_1.ApplicationToJSON)(value.application), - "annotations": (0, index_1.FlattenedAnnotationsToJSON)(value.annotations), - "messages": (0, index_1.FlattenedConversationMessagesToJSON)(value.messages), - "model": (0, index_1.ReferencedModelToJSON)(value.model), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "anchors": (0, index_1.FlattenedAnchorsToJSON)(value.anchors), - "type": (0, index_1.ConversationTypeEnumToJSON)(value.type), - "grounding": (0, index_1.ConversationGroundingToJSON)(value.grounding), - "score": (0, index_1.ScoreToJSON)(value.score) + "application": (0, _1.ApplicationToJSON)(value.application), + "annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations), + "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages), + "model": (0, _1.ReferencedModelToJSON)(value.model), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "anchors": (0, _1.FlattenedAnchorsToJSON)(value.anchors), + "type": (0, _1.ConversationTypeEnumToJSON)(value.type), + "grounding": (0, _1.ConversationGroundingToJSON)(value.grounding), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedConversationToJSON = FlattenedConversationToJSON4; @@ -8169,7 +8327,7 @@ var require_FlattenedConversationMessage = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedConversationMessageToJSON = exports.FlattenedConversationMessageFromJSONTyped = exports.FlattenedConversationMessageFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedConversationMessageFromJSON4(json) { return FlattenedConversationMessageFromJSONTyped6(json, false); } @@ -8179,18 +8337,18 @@ var require_FlattenedConversationMessage = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ModelFromJSON)(json["model"]), - "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, index_1.FragmentFormatFromJSON)(json["fragment"]), - "conversation": (0, index_1.ReferencedConversationFromJSON)(json["conversation"]), - "sentiment": !(0, runtime_1.exists)(json, "sentiment") ? void 0 : (0, index_1.ConversationMessageSentimentEnumFromJSON)(json["sentiment"]), - "role": (0, index_1.QGPTConversationMessageRoleEnumFromJSON)(json["role"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.FlattenedAnnotationsFromJSON)(json["annotations"]) + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ModelFromJSON)(json["model"]), + "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, _1.FragmentFormatFromJSON)(json["fragment"]), + "conversation": (0, _1.ReferencedConversationFromJSON)(json["conversation"]), + "sentiment": !(0, runtime_1.exists)(json, "sentiment") ? void 0 : (0, _1.ConversationMessageSentimentEnumFromJSON)(json["sentiment"]), + "role": (0, _1.QGPTConversationMessageRoleEnumFromJSON)(json["role"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.FlattenedAnnotationsFromJSON)(json["annotations"]) }; } exports.FlattenedConversationMessageFromJSONTyped = FlattenedConversationMessageFromJSONTyped6; @@ -8202,18 +8360,18 @@ var require_FlattenedConversationMessage = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "model": (0, index_1.ModelToJSON)(value.model), - "fragment": (0, index_1.FragmentFormatToJSON)(value.fragment), - "conversation": (0, index_1.ReferencedConversationToJSON)(value.conversation), - "sentiment": (0, index_1.ConversationMessageSentimentEnumToJSON)(value.sentiment), - "role": (0, index_1.QGPTConversationMessageRoleEnumToJSON)(value.role), - "score": (0, index_1.ScoreToJSON)(value.score), - "annotations": (0, index_1.FlattenedAnnotationsToJSON)(value.annotations) + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "model": (0, _1.ModelToJSON)(value.model), + "fragment": (0, _1.FragmentFormatToJSON)(value.fragment), + "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation), + "sentiment": (0, _1.ConversationMessageSentimentEnumToJSON)(value.sentiment), + "role": (0, _1.QGPTConversationMessageRoleEnumToJSON)(value.role), + "score": (0, _1.ScoreToJSON)(value.score), + "annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations) }; } exports.FlattenedConversationMessageToJSON = FlattenedConversationMessageToJSON4; @@ -8227,7 +8385,7 @@ var require_FlattenedConversationMessages = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedConversationMessagesToJSON = exports.FlattenedConversationMessagesFromJSONTyped = exports.FlattenedConversationMessagesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedConversationMessagesFromJSON4(json) { return FlattenedConversationMessagesFromJSONTyped27(json, false); } @@ -8237,10 +8395,10 @@ var require_FlattenedConversationMessages = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedConversationMessageFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedConversationMessageFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedConversationMessagesFromJSONTyped = FlattenedConversationMessagesFromJSONTyped27; @@ -8252,10 +8410,10 @@ var require_FlattenedConversationMessages = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedConversationMessageToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedConversationMessageToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedConversationMessagesToJSON = FlattenedConversationMessagesToJSON4; @@ -8269,23 +8427,23 @@ var require_FlattenedConversations = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedConversationsToJSON = exports.FlattenedConversationsFromJSONTyped = exports.FlattenedConversationsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedConversationsFromJSON4(json) { - return FlattenedConversationsFromJSONTyped12(json, false); + return FlattenedConversationsFromJSONTyped18(json, false); } exports.FlattenedConversationsFromJSON = FlattenedConversationsFromJSON4; - function FlattenedConversationsFromJSONTyped12(json, ignoreDiscriminator) { + function FlattenedConversationsFromJSONTyped18(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedConversationFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedConversationFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } - exports.FlattenedConversationsFromJSONTyped = FlattenedConversationsFromJSONTyped12; + exports.FlattenedConversationsFromJSONTyped = FlattenedConversationsFromJSONTyped18; function FlattenedConversationsToJSON5(value) { if (value === void 0) { return void 0; @@ -8294,10 +8452,10 @@ var require_FlattenedConversations = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedConversationToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedConversationToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedConversationsToJSON = FlattenedConversationsToJSON5; @@ -8311,7 +8469,7 @@ var require_FlattenedDistribution = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedDistributionToJSON = exports.FlattenedDistributionFromJSONTyped = exports.FlattenedDistributionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedDistributionFromJSON4(json) { return FlattenedDistributionFromJSONTyped6(json, false); } @@ -8321,14 +8479,14 @@ var require_FlattenedDistribution = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "share": json["share"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "mailgun": !(0, runtime_1.exists)(json, "mailgun") ? void 0 : (0, index_1.MailgunDistributionFromJSON)(json["mailgun"]), - "github": !(0, runtime_1.exists)(json, "github") ? void 0 : (0, index_1.GitHubDistributionFromJSON)(json["github"]) + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "mailgun": !(0, runtime_1.exists)(json, "mailgun") ? void 0 : (0, _1.MailgunDistributionFromJSON)(json["mailgun"]), + "github": !(0, runtime_1.exists)(json, "github") ? void 0 : (0, _1.GitHubDistributionFromJSON)(json["github"]) }; } exports.FlattenedDistributionFromJSONTyped = FlattenedDistributionFromJSONTyped6; @@ -8340,14 +8498,14 @@ var require_FlattenedDistribution = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "share": value.share, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "mailgun": (0, index_1.MailgunDistributionToJSON)(value.mailgun), - "github": (0, index_1.GitHubDistributionToJSON)(value.github) + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "mailgun": (0, _1.MailgunDistributionToJSON)(value.mailgun), + "github": (0, _1.GitHubDistributionToJSON)(value.github) }; } exports.FlattenedDistributionToJSON = FlattenedDistributionToJSON4; @@ -8361,7 +8519,7 @@ var require_FlattenedDistributions = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedDistributionsToJSON = exports.FlattenedDistributionsFromJSONTyped = exports.FlattenedDistributionsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedDistributionsFromJSON4(json) { return FlattenedDistributionsFromJSONTyped6(json, false); } @@ -8371,8 +8529,8 @@ var require_FlattenedDistributions = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedDistributionFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedDistributionFromJSON) }; } exports.FlattenedDistributionsFromJSONTyped = FlattenedDistributionsFromJSONTyped6; @@ -8384,8 +8542,8 @@ var require_FlattenedDistributions = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedDistributionToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedDistributionToJSON) }; } exports.FlattenedDistributionsToJSON = FlattenedDistributionsToJSON4; @@ -8399,7 +8557,7 @@ var require_FlattenedFormat = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedFormatToJSON = exports.FlattenedFormatFromJSONTyped = exports.FlattenedFormatFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedFormatFromJSON4(json) { return FlattenedFormatFromJSONTyped9(json, false); } @@ -8409,25 +8567,25 @@ var require_FlattenedFormat = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "creator": json["creator"], - "classification": (0, index_1.ClassificationFromJSON)(json["classification"]), + "classification": (0, _1.ClassificationFromJSON)(json["classification"]), "icon": !(0, runtime_1.exists)(json, "icon") ? void 0 : json["icon"], - "role": (0, index_1.RoleFromJSON)(json["role"]), - "application": (0, index_1.ApplicationFromJSON)(json["application"]), + "role": (0, _1.RoleFromJSON)(json["role"]), + "application": (0, _1.ApplicationFromJSON)(json["application"]), "asset": json["asset"], - "bytes": (0, index_1.ByteDescriptorFromJSON)(json["bytes"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "synced": !(0, runtime_1.exists)(json, "synced") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["synced"]), + "bytes": (0, _1.ByteDescriptorFromJSON)(json["bytes"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "synced": !(0, runtime_1.exists)(json, "synced") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["synced"]), "cloud": !(0, runtime_1.exists)(json, "cloud") ? void 0 : json["cloud"], - "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, index_1.FragmentFormatFromJSON)(json["fragment"]), - "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, index_1.FileFormatFromJSON)(json["file"]), - "analysis": !(0, runtime_1.exists)(json, "analysis") ? void 0 : (0, index_1.FlattenedAnalysisFromJSON)(json["analysis"]), - "relationship": !(0, runtime_1.exists)(json, "relationship") ? void 0 : (0, index_1.RelationshipFromJSON)(json["relationship"]), - "activities": !(0, runtime_1.exists)(json, "activities") ? void 0 : (0, index_1.FlattenedActivitiesFromJSON)(json["activities"]) + "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, _1.FragmentFormatFromJSON)(json["fragment"]), + "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, _1.FileFormatFromJSON)(json["file"]), + "analysis": !(0, runtime_1.exists)(json, "analysis") ? void 0 : (0, _1.FlattenedAnalysisFromJSON)(json["analysis"]), + "relationship": !(0, runtime_1.exists)(json, "relationship") ? void 0 : (0, _1.RelationshipFromJSON)(json["relationship"]), + "activities": !(0, runtime_1.exists)(json, "activities") ? void 0 : (0, _1.FlattenedActivitiesFromJSON)(json["activities"]) }; } exports.FlattenedFormatFromJSONTyped = FlattenedFormatFromJSONTyped9; @@ -8439,25 +8597,25 @@ var require_FlattenedFormat = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "creator": value.creator, - "classification": (0, index_1.ClassificationToJSON)(value.classification), + "classification": (0, _1.ClassificationToJSON)(value.classification), "icon": value.icon, - "role": (0, index_1.RoleToJSON)(value.role), - "application": (0, index_1.ApplicationToJSON)(value.application), + "role": (0, _1.RoleToJSON)(value.role), + "application": (0, _1.ApplicationToJSON)(value.application), "asset": value.asset, - "bytes": (0, index_1.ByteDescriptorToJSON)(value.bytes), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "synced": (0, index_1.GroupedTimestampToJSON)(value.synced), + "bytes": (0, _1.ByteDescriptorToJSON)(value.bytes), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "synced": (0, _1.GroupedTimestampToJSON)(value.synced), "cloud": value.cloud, - "fragment": (0, index_1.FragmentFormatToJSON)(value.fragment), - "file": (0, index_1.FileFormatToJSON)(value.file), - "analysis": (0, index_1.FlattenedAnalysisToJSON)(value.analysis), - "relationship": (0, index_1.RelationshipToJSON)(value.relationship), - "activities": (0, index_1.FlattenedActivitiesToJSON)(value.activities) + "fragment": (0, _1.FragmentFormatToJSON)(value.fragment), + "file": (0, _1.FileFormatToJSON)(value.file), + "analysis": (0, _1.FlattenedAnalysisToJSON)(value.analysis), + "relationship": (0, _1.RelationshipToJSON)(value.relationship), + "activities": (0, _1.FlattenedActivitiesToJSON)(value.activities) }; } exports.FlattenedFormatToJSON = FlattenedFormatToJSON4; @@ -8471,7 +8629,7 @@ var require_FlattenedFormats = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedFormatsToJSON = exports.FlattenedFormatsFromJSONTyped = exports.FlattenedFormatsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedFormatsFromJSON4(json) { return FlattenedFormatsFromJSONTyped6(json, false); } @@ -8481,8 +8639,8 @@ var require_FlattenedFormats = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedFormatFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedFormatFromJSON) }; } exports.FlattenedFormatsFromJSONTyped = FlattenedFormatsFromJSONTyped6; @@ -8494,8 +8652,8 @@ var require_FlattenedFormats = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedFormatToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedFormatToJSON) }; } exports.FlattenedFormatsToJSON = FlattenedFormatsToJSON4; @@ -8509,7 +8667,7 @@ var require_FlattenedHint = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedHintToJSON = exports.FlattenedHintFromJSONTyped = exports.FlattenedHintFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedHintFromJSON4(json) { return FlattenedHintFromJSONTyped6(json, false); } @@ -8519,17 +8677,17 @@ var require_FlattenedHint = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.ReferencedAssetFromJSON)(json["asset"]), - "type": (0, index_1.HintTypeEnumFromJSON)(json["type"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.ReferencedAssetFromJSON)(json["asset"]), + "type": (0, _1.HintTypeEnumFromJSON)(json["type"]), "text": json["text"], - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ReferencedModelFromJSON)(json["model"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ReferencedModelFromJSON)(json["model"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedHintFromJSONTyped = FlattenedHintFromJSONTyped6; @@ -8541,17 +8699,17 @@ var require_FlattenedHint = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), - "type": (0, index_1.HintTypeEnumToJSON)(value.type), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), + "type": (0, _1.HintTypeEnumToJSON)(value.type), "text": value.text, - "model": (0, index_1.ReferencedModelToJSON)(value.model), - "score": (0, index_1.ScoreToJSON)(value.score) + "model": (0, _1.ReferencedModelToJSON)(value.model), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedHintToJSON = FlattenedHintToJSON4; @@ -8565,7 +8723,7 @@ var require_FlattenedHints = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedHintsToJSON = exports.FlattenedHintsFromJSONTyped = exports.FlattenedHintsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedHintsFromJSON4(json) { return FlattenedHintsFromJSONTyped6(json, false); } @@ -8575,10 +8733,10 @@ var require_FlattenedHints = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedHintFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedHintFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedHintsFromJSONTyped = FlattenedHintsFromJSONTyped6; @@ -8590,10 +8748,10 @@ var require_FlattenedHints = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedHintToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedHintToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedHintsToJSON = FlattenedHintsToJSON4; @@ -8607,7 +8765,7 @@ var require_FlattenedImageAnalysis = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedImageAnalysisToJSON = exports.FlattenedImageAnalysisFromJSONTyped = exports.FlattenedImageAnalysisFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedImageAnalysisFromJSON4(json) { return FlattenedImageAnalysisFromJSONTyped6(json, false); } @@ -8617,9 +8775,9 @@ var require_FlattenedImageAnalysis = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "ocr": !(0, runtime_1.exists)(json, "ocr") ? void 0 : (0, index_1.FlattenedOCRAnalysisFromJSON)(json["ocr"]), + "ocr": !(0, runtime_1.exists)(json, "ocr") ? void 0 : (0, _1.FlattenedOCRAnalysisFromJSON)(json["ocr"]), "analysis": json["analysis"] }; } @@ -8632,9 +8790,9 @@ var require_FlattenedImageAnalysis = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "ocr": (0, index_1.FlattenedOCRAnalysisToJSON)(value.ocr), + "ocr": (0, _1.FlattenedOCRAnalysisToJSON)(value.ocr), "analysis": value.analysis }; } @@ -8649,7 +8807,7 @@ var require_FlattenedOCRAnalysis = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedOCRAnalysisToJSON = exports.FlattenedOCRAnalysisFromJSONTyped = exports.FlattenedOCRAnalysisFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedOCRAnalysisFromJSON4(json) { return FlattenedOCRAnalysisFromJSONTyped6(json, false); } @@ -8659,11 +8817,11 @@ var require_FlattenedOCRAnalysis = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "raw": (0, index_1.ReferencedFormatFromJSON)(json["raw"]), - "hocr": (0, index_1.ReferencedFormatFromJSON)(json["hocr"]), - "model": (0, index_1.ModelFromJSON)(json["model"]), + "raw": (0, _1.ReferencedFormatFromJSON)(json["raw"]), + "hocr": (0, _1.ReferencedFormatFromJSON)(json["hocr"]), + "model": (0, _1.ModelFromJSON)(json["model"]), "image": json["image"] }; } @@ -8676,11 +8834,11 @@ var require_FlattenedOCRAnalysis = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "raw": (0, index_1.ReferencedFormatToJSON)(value.raw), - "hocr": (0, index_1.ReferencedFormatToJSON)(value.hocr), - "model": (0, index_1.ModelToJSON)(value.model), + "raw": (0, _1.ReferencedFormatToJSON)(value.raw), + "hocr": (0, _1.ReferencedFormatToJSON)(value.hocr), + "model": (0, _1.ModelToJSON)(value.model), "image": value.image }; } @@ -8695,7 +8853,7 @@ var require_FlattenedPerson = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedPersonToJSON = exports.FlattenedPersonFromJSONTyped = exports.FlattenedPersonFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedPersonFromJSON4(json) { return FlattenedPersonFromJSONTyped6(json, false); } @@ -8705,21 +8863,21 @@ var require_FlattenedPerson = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "type": (0, index_1.PersonTypeFromJSON)(json["type"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], index_1.MechanismEnumFromJSON), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "type": (0, _1.PersonTypeFromJSON)(json["type"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), + "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"], - "access": !(0, runtime_1.exists)(json, "access") ? void 0 : (0, runtime_1.mapValues)(json["access"], index_1.PersonAccessFromJSON), - "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, index_1.FlattenedTagsFromJSON)(json["tags"]), - "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, index_1.FlattenedWebsitesFromJSON)(json["websites"]), - "models": !(0, runtime_1.exists)(json, "models") ? void 0 : (0, runtime_1.mapValues)(json["models"], index_1.PersonModelFromJSON), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.FlattenedAnnotationsFromJSON)(json["annotations"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "access": !(0, runtime_1.exists)(json, "access") ? void 0 : (0, runtime_1.mapValues)(json["access"], _1.PersonAccessFromJSON), + "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, _1.FlattenedTagsFromJSON)(json["tags"]), + "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, _1.FlattenedWebsitesFromJSON)(json["websites"]), + "models": !(0, runtime_1.exists)(json, "models") ? void 0 : (0, runtime_1.mapValues)(json["models"], _1.PersonModelFromJSON), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.FlattenedAnnotationsFromJSON)(json["annotations"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedPersonFromJSONTyped = FlattenedPersonFromJSONTyped6; @@ -8731,21 +8889,21 @@ var require_FlattenedPerson = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "type": (0, index_1.PersonTypeToJSON)(value.type), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, index_1.MechanismEnumToJSON), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "type": (0, _1.PersonTypeToJSON)(value.type), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, _1.MechanismEnumToJSON), "interactions": value.interactions, - "access": value.access === void 0 ? void 0 : (0, runtime_1.mapValues)(value.access, index_1.PersonAccessToJSON), - "tags": (0, index_1.FlattenedTagsToJSON)(value.tags), - "websites": (0, index_1.FlattenedWebsitesToJSON)(value.websites), - "models": value.models === void 0 ? void 0 : (0, runtime_1.mapValues)(value.models, index_1.PersonModelToJSON), - "annotations": (0, index_1.FlattenedAnnotationsToJSON)(value.annotations), - "score": (0, index_1.ScoreToJSON)(value.score) + "access": value.access === void 0 ? void 0 : (0, runtime_1.mapValues)(value.access, _1.PersonAccessToJSON), + "tags": (0, _1.FlattenedTagsToJSON)(value.tags), + "websites": (0, _1.FlattenedWebsitesToJSON)(value.websites), + "models": value.models === void 0 ? void 0 : (0, runtime_1.mapValues)(value.models, _1.PersonModelToJSON), + "annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedPersonToJSON = FlattenedPersonToJSON4; @@ -8759,7 +8917,7 @@ var require_FlattenedPersons = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedPersonsToJSON = exports.FlattenedPersonsFromJSONTyped = exports.FlattenedPersonsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedPersonsFromJSON4(json) { return FlattenedPersonsFromJSONTyped18(json, false); } @@ -8769,10 +8927,10 @@ var require_FlattenedPersons = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedPersonFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedPersonFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedPersonsFromJSONTyped = FlattenedPersonsFromJSONTyped18; @@ -8784,10 +8942,10 @@ var require_FlattenedPersons = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedPersonToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedPersonToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedPersonsToJSON = FlattenedPersonsToJSON4; @@ -8801,7 +8959,7 @@ var require_FlattenedPreview = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedPreviewToJSON = exports.FlattenedPreviewFromJSONTyped = exports.FlattenedPreviewFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedPreviewFromJSON4(json) { return FlattenedPreviewFromJSONTyped6(json, false); } @@ -8811,7 +8969,7 @@ var require_FlattenedPreview = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "base": json["base"], "overlay": !(0, runtime_1.exists)(json, "overlay") ? void 0 : json["overlay"] }; @@ -8825,7 +8983,7 @@ var require_FlattenedPreview = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "base": value.base, "overlay": value.overlay }; @@ -8841,7 +8999,7 @@ var require_FlattenedSensitive = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedSensitiveToJSON = exports.FlattenedSensitiveFromJSONTyped = exports.FlattenedSensitiveFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedSensitiveFromJSON4(json) { return FlattenedSensitiveFromJSONTyped6(json, false); } @@ -8851,21 +9009,21 @@ var require_FlattenedSensitive = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "asset": (0, index_1.ReferencedAssetFromJSON)(json["asset"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "asset": (0, _1.ReferencedAssetFromJSON)(json["asset"]), "text": json["text"], - "mechanism": (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "category": (0, index_1.SensitiveCategoryEnumFromJSON)(json["category"]), - "severity": (0, index_1.SensitiveSeverityEnumFromJSON)(json["severity"]), + "mechanism": (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "category": (0, _1.SensitiveCategoryEnumFromJSON)(json["category"]), + "severity": (0, _1.SensitiveSeverityEnumFromJSON)(json["severity"]), "name": json["name"], "description": json["description"], - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.SensitiveMetadataFromJSON)(json["metadata"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.SensitiveMetadataFromJSON)(json["metadata"]), "interactions": !(0, runtime_1.exists)(json, "interactions") ? void 0 : json["interactions"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedSensitiveFromJSONTyped = FlattenedSensitiveFromJSONTyped6; @@ -8877,21 +9035,21 @@ var require_FlattenedSensitive = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), "text": value.text, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "category": (0, index_1.SensitiveCategoryEnumToJSON)(value.category), - "severity": (0, index_1.SensitiveSeverityEnumToJSON)(value.severity), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "category": (0, _1.SensitiveCategoryEnumToJSON)(value.category), + "severity": (0, _1.SensitiveSeverityEnumToJSON)(value.severity), "name": value.name, "description": value.description, - "metadata": (0, index_1.SensitiveMetadataToJSON)(value.metadata), + "metadata": (0, _1.SensitiveMetadataToJSON)(value.metadata), "interactions": value.interactions, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedSensitiveToJSON = FlattenedSensitiveToJSON4; @@ -8905,7 +9063,7 @@ var require_FlattenedSensitives = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedSensitivesToJSON = exports.FlattenedSensitivesFromJSONTyped = exports.FlattenedSensitivesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedSensitivesFromJSON4(json) { return FlattenedSensitivesFromJSONTyped6(json, false); } @@ -8915,9 +9073,9 @@ var require_FlattenedSensitives = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedSensitiveFromJSON), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedSensitiveFromJSON), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedSensitivesFromJSONTyped = FlattenedSensitivesFromJSONTyped6; @@ -8929,9 +9087,9 @@ var require_FlattenedSensitives = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedSensitiveToJSON), - "score": (0, index_1.ScoreToJSON)(value.score) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedSensitiveToJSON), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedSensitivesToJSON = FlattenedSensitivesToJSON4; @@ -8945,7 +9103,7 @@ var require_FlattenedShare = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedShareToJSON = exports.FlattenedShareFromJSONTyped = exports.FlattenedShareFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedShareFromJSON4(json) { return FlattenedShareFromJSONTyped12(json, false); } @@ -8955,19 +9113,19 @@ var require_FlattenedShare = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : json["asset"], "user": !(0, runtime_1.exists)(json, "user") ? void 0 : json["user"], "link": json["link"], - "access": (0, index_1.AccessEnumFromJSON)(json["access"]), - "accessors": (0, index_1.AccessorsFromJSON)(json["accessors"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), + "access": (0, _1.AccessEnumFromJSON)(json["access"]), + "accessors": (0, _1.AccessorsFromJSON)(json["accessors"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), "_short": json["short"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "distributions": !(0, runtime_1.exists)(json, "distributions") ? void 0 : (0, index_1.FlattenedDistributionsFromJSON)(json["distributions"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), + "distributions": !(0, runtime_1.exists)(json, "distributions") ? void 0 : (0, _1.FlattenedDistributionsFromJSON)(json["distributions"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedShareFromJSONTyped = FlattenedShareFromJSONTyped12; @@ -8979,19 +9137,19 @@ var require_FlattenedShare = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "asset": value.asset, "user": value.user, "link": value.link, - "access": (0, index_1.AccessEnumToJSON)(value.access), - "accessors": (0, index_1.AccessorsToJSON)(value.accessors), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), + "access": (0, _1.AccessEnumToJSON)(value.access), + "accessors": (0, _1.AccessorsToJSON)(value.accessors), + "created": (0, _1.GroupedTimestampToJSON)(value.created), "short": value._short, "name": value.name, - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "distributions": (0, index_1.FlattenedDistributionsToJSON)(value.distributions), - "score": (0, index_1.ScoreToJSON)(value.score) + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "distributions": (0, _1.FlattenedDistributionsToJSON)(value.distributions), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedShareToJSON = FlattenedShareToJSON4; @@ -9005,7 +9163,7 @@ var require_FlattenedShares = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedSharesToJSON = exports.FlattenedSharesFromJSONTyped = exports.FlattenedSharesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedSharesFromJSON4(json) { return FlattenedSharesFromJSONTyped6(json, false); } @@ -9015,9 +9173,9 @@ var require_FlattenedShares = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.FlattenedShareFromJSON), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.FlattenedShareFromJSON), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedSharesFromJSONTyped = FlattenedSharesFromJSONTyped6; @@ -9029,9 +9187,9 @@ var require_FlattenedShares = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.FlattenedShareToJSON), - "score": (0, index_1.ScoreToJSON)(value.score) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.FlattenedShareToJSON), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedSharesToJSON = FlattenedSharesToJSON4; @@ -9045,7 +9203,7 @@ var require_FlattenedTag = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedTagToJSON = exports.FlattenedTagFromJSONTyped = exports.FlattenedTagFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedTagFromJSON4(json) { return FlattenedTagFromJSONTyped6(json, false); } @@ -9055,19 +9213,19 @@ var require_FlattenedTag = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "text": json["text"], - "mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], index_1.MechanismEnumFromJSON), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "category": (0, index_1.TagCategoryEnumFromJSON)(json["category"]), - "relationship": !(0, runtime_1.exists)(json, "relationship") ? void 0 : (0, index_1.RelationshipFromJSON)(json["relationship"]), + "mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], _1.MechanismEnumFromJSON), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "category": (0, _1.TagCategoryEnumFromJSON)(json["category"]), + "relationship": !(0, runtime_1.exists)(json, "relationship") ? void 0 : (0, _1.RelationshipFromJSON)(json["relationship"]), "interactions": !(0, runtime_1.exists)(json, "interactions") ? void 0 : json["interactions"], - "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, index_1.FlattenedPersonsFromJSON)(json["persons"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, _1.FlattenedPersonsFromJSON)(json["persons"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedTagFromJSONTyped = FlattenedTagFromJSONTyped6; @@ -9079,19 +9237,19 @@ var require_FlattenedTag = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "text": value.text, - "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, index_1.MechanismEnumToJSON), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "category": (0, index_1.TagCategoryEnumToJSON)(value.category), - "relationship": (0, index_1.RelationshipToJSON)(value.relationship), + "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, _1.MechanismEnumToJSON), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "category": (0, _1.TagCategoryEnumToJSON)(value.category), + "relationship": (0, _1.RelationshipToJSON)(value.relationship), "interactions": value.interactions, - "persons": (0, index_1.FlattenedPersonsToJSON)(value.persons), - "score": (0, index_1.ScoreToJSON)(value.score) + "persons": (0, _1.FlattenedPersonsToJSON)(value.persons), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedTagToJSON = FlattenedTagToJSON4; @@ -9105,7 +9263,7 @@ var require_FlattenedTags = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedTagsToJSON = exports.FlattenedTagsFromJSONTyped = exports.FlattenedTagsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedTagsFromJSON4(json) { return FlattenedTagsFromJSONTyped12(json, false); } @@ -9115,10 +9273,10 @@ var require_FlattenedTags = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedTagFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedTagFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedTagsFromJSONTyped = FlattenedTagsFromJSONTyped12; @@ -9130,10 +9288,10 @@ var require_FlattenedTags = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedTagToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedTagToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedTagsToJSON = FlattenedTagsToJSON4; @@ -9147,7 +9305,7 @@ var require_FlattenedUserProfile = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedUserProfileToJSON = exports.FlattenedUserProfileFromJSONTyped = exports.FlattenedUserProfileFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedUserProfileFromJSON4(json) { return FlattenedUserProfileFromJSONTyped16(json, false); } @@ -9157,7 +9315,7 @@ var require_FlattenedUserProfile = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "email": !(0, runtime_1.exists)(json, "email") ? void 0 : json["email"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], @@ -9175,7 +9333,7 @@ var require_FlattenedUserProfile = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "email": value.email, "name": value.name, @@ -9195,7 +9353,7 @@ var require_FlattenedWebsite = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedWebsiteToJSON = exports.FlattenedWebsiteFromJSONTyped = exports.FlattenedWebsiteFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedWebsiteFromJSON4(json) { return FlattenedWebsiteFromJSONTyped6(json, false); } @@ -9205,18 +9363,18 @@ var require_FlattenedWebsite = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), "name": json["name"], "url": json["url"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], index_1.MechanismEnumFromJSON), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "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, index_1.FlattenedPersonsFromJSON)(json["persons"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, _1.FlattenedPersonsFromJSON)(json["persons"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.FlattenedWebsiteFromJSONTyped = FlattenedWebsiteFromJSONTyped6; @@ -9228,18 +9386,18 @@ var require_FlattenedWebsite = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), "name": value.name, "url": value.url, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, index_1.MechanismEnumToJSON), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, _1.MechanismEnumToJSON), "interactions": value.interactions, - "persons": (0, index_1.FlattenedPersonsToJSON)(value.persons), - "score": (0, index_1.ScoreToJSON)(value.score) + "persons": (0, _1.FlattenedPersonsToJSON)(value.persons), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedWebsiteToJSON = FlattenedWebsiteToJSON4; @@ -9253,23 +9411,23 @@ var require_FlattenedWebsites = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FlattenedWebsitesToJSON = exports.FlattenedWebsitesFromJSONTyped = exports.FlattenedWebsitesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FlattenedWebsitesFromJSON4(json) { - return FlattenedWebsitesFromJSONTyped12(json, false); + return FlattenedWebsitesFromJSONTyped20(json, false); } exports.FlattenedWebsitesFromJSON = FlattenedWebsitesFromJSON4; - function FlattenedWebsitesFromJSONTyped12(json, ignoreDiscriminator) { + function FlattenedWebsitesFromJSONTyped20(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ReferencedWebsiteFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ReferencedWebsiteFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } - exports.FlattenedWebsitesFromJSONTyped = FlattenedWebsitesFromJSONTyped12; + exports.FlattenedWebsitesFromJSONTyped = FlattenedWebsitesFromJSONTyped20; function FlattenedWebsitesToJSON4(value) { if (value === void 0) { return void 0; @@ -9278,10 +9436,10 @@ var require_FlattenedWebsites = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ReferencedWebsiteToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ReferencedWebsiteToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.FlattenedWebsitesToJSON = FlattenedWebsitesToJSON4; @@ -9295,7 +9453,7 @@ var require_Font = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FontToJSON = exports.FontFromJSONTyped = exports.FontFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FontFromJSON4(json) { return FontFromJSONTyped6(json, false); } @@ -9305,7 +9463,7 @@ var require_Font = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "size": json["size"] }; } @@ -9318,7 +9476,7 @@ var require_Font = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "size": value.size }; } @@ -9333,7 +9491,7 @@ var require_Format = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FormatToJSON = exports.FormatFromJSONTyped = exports.FormatFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FormatFromJSON4(json) { return FormatFromJSONTyped11(json, false); } @@ -9343,25 +9501,25 @@ var require_Format = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "creator": json["creator"], - "classification": (0, index_1.ClassificationFromJSON)(json["classification"]), + "classification": (0, _1.ClassificationFromJSON)(json["classification"]), "icon": !(0, runtime_1.exists)(json, "icon") ? void 0 : json["icon"], - "role": (0, index_1.RoleFromJSON)(json["role"]), - "application": (0, index_1.ApplicationFromJSON)(json["application"]), - "asset": (0, index_1.FlattenedAssetFromJSON)(json["asset"]), - "bytes": (0, index_1.ByteDescriptorFromJSON)(json["bytes"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "synced": !(0, runtime_1.exists)(json, "synced") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["synced"]), + "role": (0, _1.RoleFromJSON)(json["role"]), + "application": (0, _1.ApplicationFromJSON)(json["application"]), + "asset": (0, _1.FlattenedAssetFromJSON)(json["asset"]), + "bytes": (0, _1.ByteDescriptorFromJSON)(json["bytes"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "synced": !(0, runtime_1.exists)(json, "synced") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["synced"]), "cloud": !(0, runtime_1.exists)(json, "cloud") ? void 0 : json["cloud"], - "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, index_1.FragmentFormatFromJSON)(json["fragment"]), - "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, index_1.FileFormatFromJSON)(json["file"]), - "analysis": !(0, runtime_1.exists)(json, "analysis") ? void 0 : (0, index_1.AnalysisFromJSON)(json["analysis"]), - "relationship": !(0, runtime_1.exists)(json, "relationship") ? void 0 : (0, index_1.RelationshipFromJSON)(json["relationship"]), - "activities": !(0, runtime_1.exists)(json, "activities") ? void 0 : (0, index_1.ActivitiesFromJSON)(json["activities"]) + "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, _1.FragmentFormatFromJSON)(json["fragment"]), + "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, _1.FileFormatFromJSON)(json["file"]), + "analysis": !(0, runtime_1.exists)(json, "analysis") ? void 0 : (0, _1.AnalysisFromJSON)(json["analysis"]), + "relationship": !(0, runtime_1.exists)(json, "relationship") ? void 0 : (0, _1.RelationshipFromJSON)(json["relationship"]), + "activities": !(0, runtime_1.exists)(json, "activities") ? void 0 : (0, _1.ActivitiesFromJSON)(json["activities"]) }; } exports.FormatFromJSONTyped = FormatFromJSONTyped11; @@ -9373,25 +9531,25 @@ var require_Format = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "creator": value.creator, - "classification": (0, index_1.ClassificationToJSON)(value.classification), + "classification": (0, _1.ClassificationToJSON)(value.classification), "icon": value.icon, - "role": (0, index_1.RoleToJSON)(value.role), - "application": (0, index_1.ApplicationToJSON)(value.application), - "asset": (0, index_1.FlattenedAssetToJSON)(value.asset), - "bytes": (0, index_1.ByteDescriptorToJSON)(value.bytes), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "synced": (0, index_1.GroupedTimestampToJSON)(value.synced), + "role": (0, _1.RoleToJSON)(value.role), + "application": (0, _1.ApplicationToJSON)(value.application), + "asset": (0, _1.FlattenedAssetToJSON)(value.asset), + "bytes": (0, _1.ByteDescriptorToJSON)(value.bytes), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "synced": (0, _1.GroupedTimestampToJSON)(value.synced), "cloud": value.cloud, - "fragment": (0, index_1.FragmentFormatToJSON)(value.fragment), - "file": (0, index_1.FileFormatToJSON)(value.file), - "analysis": (0, index_1.AnalysisToJSON)(value.analysis), - "relationship": (0, index_1.RelationshipToJSON)(value.relationship), - "activities": (0, index_1.ActivitiesToJSON)(value.activities) + "fragment": (0, _1.FragmentFormatToJSON)(value.fragment), + "file": (0, _1.FileFormatToJSON)(value.file), + "analysis": (0, _1.AnalysisToJSON)(value.analysis), + "relationship": (0, _1.RelationshipToJSON)(value.relationship), + "activities": (0, _1.ActivitiesToJSON)(value.activities) }; } exports.FormatToJSON = FormatToJSON5; @@ -9405,7 +9563,7 @@ var require_FormatMetric = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FormatMetricToJSON = exports.FormatMetricFromJSONTyped = exports.FormatMetricFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FormatMetricFromJSON3(json) { return FormatMetricFromJSONTyped3(json, false); } @@ -9415,9 +9573,9 @@ var require_FormatMetric = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "generic": (0, index_1.ClassificationGenericEnumFromJSON)(json["generic"]), - "specific": (0, index_1.ClassificationSpecificEnumFromJSON)(json["specific"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "generic": (0, _1.ClassificationGenericEnumFromJSON)(json["generic"]), + "specific": (0, _1.ClassificationSpecificEnumFromJSON)(json["specific"]), "identifiers": json["identifiers"] }; } @@ -9430,9 +9588,9 @@ var require_FormatMetric = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "generic": (0, index_1.ClassificationGenericEnumToJSON)(value.generic), - "specific": (0, index_1.ClassificationSpecificEnumToJSON)(value.specific), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "generic": (0, _1.ClassificationGenericEnumToJSON)(value.generic), + "specific": (0, _1.ClassificationSpecificEnumToJSON)(value.specific), "identifiers": value.identifiers }; } @@ -9447,7 +9605,7 @@ var require_FormatReclassification = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FormatReclassificationToJSON = exports.FormatReclassificationFromJSONTyped = exports.FormatReclassificationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FormatReclassificationFromJSON2(json) { return FormatReclassificationFromJSONTyped(json, false); } @@ -9457,9 +9615,9 @@ var require_FormatReclassification = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "ext": (0, index_1.ClassificationSpecificEnumFromJSON)(json["ext"]), - "format": (0, index_1.FormatFromJSON)(json["format"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "ext": (0, _1.ClassificationSpecificEnumFromJSON)(json["ext"]), + "format": (0, _1.FormatFromJSON)(json["format"]) }; } exports.FormatReclassificationFromJSONTyped = FormatReclassificationFromJSONTyped; @@ -9471,9 +9629,9 @@ var require_FormatReclassification = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "ext": (0, index_1.ClassificationSpecificEnumToJSON)(value.ext), - "format": (0, index_1.FormatToJSON)(value.format) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "ext": (0, _1.ClassificationSpecificEnumToJSON)(value.ext), + "format": (0, _1.FormatToJSON)(value.format) }; } exports.FormatReclassificationToJSON = FormatReclassificationToJSON2; @@ -9487,7 +9645,7 @@ var require_Formats = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FormatsToJSON = exports.FormatsFromJSONTyped = exports.FormatsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FormatsFromJSON4(json) { return FormatsFromJSONTyped6(json, false); } @@ -9497,8 +9655,8 @@ var require_Formats = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.FormatFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.FormatFromJSON) }; } exports.FormatsFromJSONTyped = FormatsFromJSONTyped6; @@ -9510,8 +9668,8 @@ var require_Formats = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.FormatToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.FormatToJSON) }; } exports.FormatsToJSON = FormatsToJSON7; @@ -9525,7 +9683,7 @@ var require_FormatsMetrics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FormatsMetricsToJSON = exports.FormatsMetricsFromJSONTyped = exports.FormatsMetricsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FormatsMetricsFromJSON2(json) { return FormatsMetricsFromJSONTyped(json, false); } @@ -9535,8 +9693,8 @@ var require_FormatsMetrics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.FormatMetricFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.FormatMetricFromJSON) }; } exports.FormatsMetricsFromJSONTyped = FormatsMetricsFromJSONTyped; @@ -9548,8 +9706,8 @@ var require_FormatsMetrics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.FormatMetricToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.FormatMetricToJSON) }; } exports.FormatsMetricsToJSON = FormatsMetricsToJSON2; @@ -9563,7 +9721,7 @@ var require_FragmentFormat = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FragmentFormatToJSON = exports.FragmentFormatFromJSONTyped = exports.FragmentFormatFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FragmentFormatFromJSON4(json) { return FragmentFormatFromJSONTyped18(json, false); } @@ -9573,10 +9731,10 @@ var require_FragmentFormat = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "string": !(0, runtime_1.exists)(json, "string") ? void 0 : (0, index_1.TransferableStringFromJSON)(json["string"]), - "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, index_1.TransferableBytesFromJSON)(json["bytes"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.FragmentMetadataFromJSON)(json["metadata"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "string": !(0, runtime_1.exists)(json, "string") ? void 0 : (0, _1.TransferableStringFromJSON)(json["string"]), + "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, _1.TransferableBytesFromJSON)(json["bytes"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.FragmentMetadataFromJSON)(json["metadata"]) }; } exports.FragmentFormatFromJSONTyped = FragmentFormatFromJSONTyped18; @@ -9588,10 +9746,10 @@ var require_FragmentFormat = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "string": (0, index_1.TransferableStringToJSON)(value.string), - "bytes": (0, index_1.TransferableBytesToJSON)(value.bytes), - "metadata": (0, index_1.FragmentMetadataToJSON)(value.metadata) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "string": (0, _1.TransferableStringToJSON)(value.string), + "bytes": (0, _1.TransferableBytesToJSON)(value.bytes), + "metadata": (0, _1.FragmentMetadataToJSON)(value.metadata) }; } exports.FragmentFormatToJSON = FragmentFormatToJSON4; @@ -9605,7 +9763,7 @@ var require_FragmentMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.FragmentMetadataToJSON = exports.FragmentMetadataFromJSONTyped = exports.FragmentMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function FragmentMetadataFromJSON4(json) { return FragmentMetadataFromJSONTyped9(json, false); } @@ -9615,8 +9773,8 @@ var require_FragmentMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "ext": !(0, runtime_1.exists)(json, "ext") ? void 0 : (0, index_1.ClassificationSpecificEnumFromJSON)(json["ext"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "ext": !(0, runtime_1.exists)(json, "ext") ? void 0 : (0, _1.ClassificationSpecificEnumFromJSON)(json["ext"]) }; } exports.FragmentMetadataFromJSONTyped = FragmentMetadataFromJSONTyped9; @@ -9628,8 +9786,8 @@ var require_FragmentMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "ext": (0, index_1.ClassificationSpecificEnumToJSON)(value.ext) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "ext": (0, _1.ClassificationSpecificEnumToJSON)(value.ext) }; } exports.FragmentMetadataToJSON = FragmentMetadataToJSON4; @@ -9643,7 +9801,7 @@ var require_GitHubDistribution = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GitHubDistributionToJSON = exports.GitHubDistributionFromJSONTyped = exports.GitHubDistributionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GitHubDistributionFromJSON4(json) { return GitHubDistributionFromJSONTyped9(json, false); } @@ -9653,8 +9811,8 @@ var require_GitHubDistribution = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "gist": !(0, runtime_1.exists)(json, "gist") ? void 0 : (0, index_1.GitHubGistDistributionFromJSON)(json["gist"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "gist": !(0, runtime_1.exists)(json, "gist") ? void 0 : (0, _1.GitHubGistDistributionFromJSON)(json["gist"]) }; } exports.GitHubDistributionFromJSONTyped = GitHubDistributionFromJSONTyped9; @@ -9666,8 +9824,8 @@ var require_GitHubDistribution = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "gist": (0, index_1.GitHubGistDistributionToJSON)(value.gist) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "gist": (0, _1.GitHubGistDistributionToJSON)(value.gist) }; } exports.GitHubDistributionToJSON = GitHubDistributionToJSON4; @@ -9681,7 +9839,7 @@ var require_GitHubGistDistribution = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GitHubGistDistributionToJSON = exports.GitHubGistDistributionFromJSONTyped = exports.GitHubGistDistributionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GitHubGistDistributionFromJSON4(json) { return GitHubGistDistributionFromJSONTyped6(json, false); } @@ -9691,14 +9849,14 @@ var require_GitHubGistDistribution = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "recipients": (0, index_1.RecipientsFromJSON)(json["recipients"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "recipients": (0, _1.RecipientsFromJSON)(json["recipients"]), "_public": json["public"], "description": !(0, runtime_1.exists)(json, "description") ? void 0 : json["description"], "name": json["name"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), "githubId": json["github_id"], "url": json["url"] }; @@ -9712,14 +9870,14 @@ var require_GitHubGistDistribution = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "recipients": (0, index_1.RecipientsToJSON)(value.recipients), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "recipients": (0, _1.RecipientsToJSON)(value.recipients), "public": value._public, "description": value.description, "name": value.name, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), "github_id": value.githubId, "url": value.url }; @@ -9735,7 +9893,7 @@ var require_GraphicalImageDescriptiveStatistics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GraphicalImageDescriptiveStatisticsToJSON = exports.GraphicalImageDescriptiveStatisticsFromJSONTyped = exports.GraphicalImageDescriptiveStatisticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GraphicalImageDescriptiveStatisticsFromJSON4(json) { return GraphicalImageDescriptiveStatisticsFromJSONTyped6(json, false); } @@ -9745,7 +9903,7 @@ var require_GraphicalImageDescriptiveStatistics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "width": json["width"], "height": json["height"], "channels": json["channels"], @@ -9764,7 +9922,7 @@ var require_GraphicalImageDescriptiveStatistics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "width": value.width, "height": value.height, "channels": value.channels, @@ -9785,7 +9943,7 @@ var require_GraphicalImageProcessing = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GraphicalImageProcessingToJSON = exports.GraphicalImageProcessingFromJSONTyped = exports.GraphicalImageProcessingFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GraphicalImageProcessingFromJSON4(json) { return GraphicalImageProcessingFromJSONTyped6(json, false); } @@ -9795,8 +9953,8 @@ var require_GraphicalImageProcessing = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "statistics": !(0, runtime_1.exists)(json, "statistics") ? void 0 : (0, index_1.GraphicalImageStatisticsFromJSON)(json["statistics"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "statistics": !(0, runtime_1.exists)(json, "statistics") ? void 0 : (0, _1.GraphicalImageStatisticsFromJSON)(json["statistics"]) }; } exports.GraphicalImageProcessingFromJSONTyped = GraphicalImageProcessingFromJSONTyped6; @@ -9808,8 +9966,8 @@ var require_GraphicalImageProcessing = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "statistics": (0, index_1.GraphicalImageStatisticsToJSON)(value.statistics) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "statistics": (0, _1.GraphicalImageStatisticsToJSON)(value.statistics) }; } exports.GraphicalImageProcessingToJSON = GraphicalImageProcessingToJSON4; @@ -9823,7 +9981,7 @@ var require_GraphicalImageStatistics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GraphicalImageStatisticsToJSON = exports.GraphicalImageStatisticsFromJSONTyped = exports.GraphicalImageStatisticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GraphicalImageStatisticsFromJSON4(json) { return GraphicalImageStatisticsFromJSONTyped6(json, false); } @@ -9833,8 +9991,8 @@ var require_GraphicalImageStatistics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "descriptive": !(0, runtime_1.exists)(json, "descriptive") ? void 0 : (0, index_1.GraphicalImageDescriptiveStatisticsFromJSON)(json["descriptive"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "descriptive": !(0, runtime_1.exists)(json, "descriptive") ? void 0 : (0, _1.GraphicalImageDescriptiveStatisticsFromJSON)(json["descriptive"]) }; } exports.GraphicalImageStatisticsFromJSONTyped = GraphicalImageStatisticsFromJSONTyped6; @@ -9846,8 +10004,8 @@ var require_GraphicalImageStatistics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "descriptive": (0, index_1.GraphicalImageDescriptiveStatisticsToJSON)(value.descriptive) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "descriptive": (0, _1.GraphicalImageDescriptiveStatisticsToJSON)(value.descriptive) }; } exports.GraphicalImageStatisticsToJSON = GraphicalImageStatisticsToJSON4; @@ -9861,7 +10019,7 @@ var require_GraphicalMachineLearningProcessingEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GraphicalMachineLearningProcessingEventToJSON = exports.GraphicalMachineLearningProcessingEventFromJSONTyped = exports.GraphicalMachineLearningProcessingEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GraphicalMachineLearningProcessingEventFromJSON4(json) { return GraphicalMachineLearningProcessingEventFromJSONTyped7(json, false); } @@ -9871,10 +10029,10 @@ var require_GraphicalMachineLearningProcessingEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "ocr": !(0, runtime_1.exists)(json, "ocr") ? void 0 : (0, index_1.GraphicalOCRProcessingFromJSON)(json["ocr"]), - "image": !(0, runtime_1.exists)(json, "image") ? void 0 : (0, index_1.GraphicalImageProcessingFromJSON)(json["image"]), - "svg": !(0, runtime_1.exists)(json, "svg") ? void 0 : (0, index_1.GraphicalSVGStatisticsFromJSON)(json["svg"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "ocr": !(0, runtime_1.exists)(json, "ocr") ? void 0 : (0, _1.GraphicalOCRProcessingFromJSON)(json["ocr"]), + "image": !(0, runtime_1.exists)(json, "image") ? void 0 : (0, _1.GraphicalImageProcessingFromJSON)(json["image"]), + "svg": !(0, runtime_1.exists)(json, "svg") ? void 0 : (0, _1.GraphicalSVGStatisticsFromJSON)(json["svg"]) }; } exports.GraphicalMachineLearningProcessingEventFromJSONTyped = GraphicalMachineLearningProcessingEventFromJSONTyped7; @@ -9886,10 +10044,10 @@ var require_GraphicalMachineLearningProcessingEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "ocr": (0, index_1.GraphicalOCRProcessingToJSON)(value.ocr), - "image": (0, index_1.GraphicalImageProcessingToJSON)(value.image), - "svg": (0, index_1.GraphicalSVGStatisticsToJSON)(value.svg) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "ocr": (0, _1.GraphicalOCRProcessingToJSON)(value.ocr), + "image": (0, _1.GraphicalImageProcessingToJSON)(value.image), + "svg": (0, _1.GraphicalSVGStatisticsToJSON)(value.svg) }; } exports.GraphicalMachineLearningProcessingEventToJSON = GraphicalMachineLearningProcessingEventToJSON4; @@ -9903,7 +10061,7 @@ var require_GraphicalOCRDescriptiveStatistics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GraphicalOCRDescriptiveStatisticsToJSON = exports.GraphicalOCRDescriptiveStatisticsFromJSONTyped = exports.GraphicalOCRDescriptiveStatisticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GraphicalOCRDescriptiveStatisticsFromJSON4(json) { return GraphicalOCRDescriptiveStatisticsFromJSONTyped6(json, false); } @@ -9913,13 +10071,13 @@ var require_GraphicalOCRDescriptiveStatistics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "asset": json["asset"], "user": json["user"], "model": json["model"], "created": json["created"], "os": json["os"], - "confidence": (0, index_1.GraphicalOCRDescriptiveStatisticsConfidenceFromJSON)(json["confidence"]), + "confidence": (0, _1.GraphicalOCRDescriptiveStatisticsConfidenceFromJSON)(json["confidence"]), "duration": json["duration"] }; } @@ -9932,13 +10090,13 @@ var require_GraphicalOCRDescriptiveStatistics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset": value.asset, "user": value.user, "model": value.model, "created": value.created, "os": value.os, - "confidence": (0, index_1.GraphicalOCRDescriptiveStatisticsConfidenceToJSON)(value.confidence), + "confidence": (0, _1.GraphicalOCRDescriptiveStatisticsConfidenceToJSON)(value.confidence), "duration": value.duration }; } @@ -9987,7 +10145,7 @@ var require_GraphicalOCRProcessing = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GraphicalOCRProcessingToJSON = exports.GraphicalOCRProcessingFromJSONTyped = exports.GraphicalOCRProcessingFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GraphicalOCRProcessingFromJSON4(json) { return GraphicalOCRProcessingFromJSONTyped6(json, false); } @@ -9997,8 +10155,8 @@ var require_GraphicalOCRProcessing = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "statistics": !(0, runtime_1.exists)(json, "statistics") ? void 0 : (0, index_1.GraphicalOCRStatisticsFromJSON)(json["statistics"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "statistics": !(0, runtime_1.exists)(json, "statistics") ? void 0 : (0, _1.GraphicalOCRStatisticsFromJSON)(json["statistics"]) }; } exports.GraphicalOCRProcessingFromJSONTyped = GraphicalOCRProcessingFromJSONTyped6; @@ -10010,8 +10168,8 @@ var require_GraphicalOCRProcessing = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "statistics": (0, index_1.GraphicalOCRStatisticsToJSON)(value.statistics) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "statistics": (0, _1.GraphicalOCRStatisticsToJSON)(value.statistics) }; } exports.GraphicalOCRProcessingToJSON = GraphicalOCRProcessingToJSON4; @@ -10025,7 +10183,7 @@ var require_GraphicalOCRStatistics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GraphicalOCRStatisticsToJSON = exports.GraphicalOCRStatisticsFromJSONTyped = exports.GraphicalOCRStatisticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GraphicalOCRStatisticsFromJSON4(json) { return GraphicalOCRStatisticsFromJSONTyped6(json, false); } @@ -10035,8 +10193,8 @@ var require_GraphicalOCRStatistics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "descriptive": !(0, runtime_1.exists)(json, "descriptive") ? void 0 : (0, index_1.GraphicalOCRDescriptiveStatisticsFromJSON)(json["descriptive"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "descriptive": !(0, runtime_1.exists)(json, "descriptive") ? void 0 : (0, _1.GraphicalOCRDescriptiveStatisticsFromJSON)(json["descriptive"]) }; } exports.GraphicalOCRStatisticsFromJSONTyped = GraphicalOCRStatisticsFromJSONTyped6; @@ -10048,8 +10206,8 @@ var require_GraphicalOCRStatistics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "descriptive": (0, index_1.GraphicalOCRDescriptiveStatisticsToJSON)(value.descriptive) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "descriptive": (0, _1.GraphicalOCRDescriptiveStatisticsToJSON)(value.descriptive) }; } exports.GraphicalOCRStatisticsToJSON = GraphicalOCRStatisticsToJSON4; @@ -10063,7 +10221,7 @@ var require_GraphicalSVGStatistics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GraphicalSVGStatisticsToJSON = exports.GraphicalSVGStatisticsFromJSONTyped = exports.GraphicalSVGStatisticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GraphicalSVGStatisticsFromJSON4(json) { return GraphicalSVGStatisticsFromJSONTyped6(json, false); } @@ -10073,7 +10231,7 @@ var require_GraphicalSVGStatistics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": !(0, runtime_1.exists)(json, "id") ? void 0 : json["id"] }; } @@ -10086,7 +10244,7 @@ var require_GraphicalSVGStatistics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id }; } @@ -10101,22 +10259,22 @@ var require_GroupedTimestamp = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.GroupedTimestampToJSON = exports.GroupedTimestampFromJSONTyped = exports.GroupedTimestampFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function GroupedTimestampFromJSON4(json) { - return GroupedTimestampFromJSONTyped136(json, false); + return GroupedTimestampFromJSONTyped137(json, false); } exports.GroupedTimestampFromJSON = GroupedTimestampFromJSON4; - function GroupedTimestampFromJSONTyped136(json, ignoreDiscriminator) { + function GroupedTimestampFromJSONTyped137(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "value": new Date(json["value"]), "readable": !(0, runtime_1.exists)(json, "readable") ? void 0 : json["readable"] }; } - exports.GroupedTimestampFromJSONTyped = GroupedTimestampFromJSONTyped136; + exports.GroupedTimestampFromJSONTyped = GroupedTimestampFromJSONTyped137; function GroupedTimestampToJSON4(value) { if (value === void 0) { return void 0; @@ -10125,7 +10283,7 @@ var require_GroupedTimestamp = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "value": value.value.toISOString(), "readable": value.readable }; @@ -10141,7 +10299,7 @@ var require_Health = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.HealthToJSON = exports.HealthFromJSONTyped = exports.HealthFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function HealthFromJSON4(json) { return HealthFromJSONTyped5(json, false); } @@ -10151,8 +10309,8 @@ var require_Health = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "os": (0, index_1.OSHealthFromJSON)(json["os"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "os": (0, _1.OSHealthFromJSON)(json["os"]) }; } exports.HealthFromJSONTyped = HealthFromJSONTyped5; @@ -10164,8 +10322,8 @@ var require_Health = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "os": (0, index_1.OSHealthToJSON)(value.os) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "os": (0, _1.OSHealthToJSON)(value.os) }; } exports.HealthToJSON = HealthToJSON4; @@ -10179,7 +10337,7 @@ var require_Hint = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.HintToJSON = exports.HintFromJSONTyped = exports.HintFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function HintFromJSON4(json) { return HintFromJSONTyped6(json, false); } @@ -10189,17 +10347,17 @@ var require_Hint = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.ReferencedAssetFromJSON)(json["asset"]), - "type": (0, index_1.HintTypeEnumFromJSON)(json["type"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.ReferencedAssetFromJSON)(json["asset"]), + "type": (0, _1.HintTypeEnumFromJSON)(json["type"]), "text": json["text"], - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ReferencedModelFromJSON)(json["model"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ReferencedModelFromJSON)(json["model"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.HintFromJSONTyped = HintFromJSONTyped6; @@ -10211,17 +10369,17 @@ var require_Hint = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), - "type": (0, index_1.HintTypeEnumToJSON)(value.type), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), + "type": (0, _1.HintTypeEnumToJSON)(value.type), "text": value.text, - "model": (0, index_1.ReferencedModelToJSON)(value.model), - "score": (0, index_1.ScoreToJSON)(value.score) + "model": (0, _1.ReferencedModelToJSON)(value.model), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.HintToJSON = HintToJSON5; @@ -10261,7 +10419,7 @@ var require_Hints = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.HintsToJSON = exports.HintsFromJSONTyped = exports.HintsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function HintsFromJSON4(json) { return HintsFromJSONTyped6(json, false); } @@ -10271,10 +10429,10 @@ var require_Hints = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.HintFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.HintFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.HintsFromJSONTyped = HintsFromJSONTyped6; @@ -10286,10 +10444,10 @@ var require_Hints = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.HintToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.HintToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.HintsToJSON = HintsToJSON5; @@ -10303,7 +10461,7 @@ var require_ImageAnalyses = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ImageAnalysesToJSON = exports.ImageAnalysesFromJSONTyped = exports.ImageAnalysesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ImageAnalysesFromJSON2(json) { return ImageAnalysesFromJSONTyped(json, false); } @@ -10313,8 +10471,8 @@ var require_ImageAnalyses = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ImageAnalysisFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ImageAnalysisFromJSON) }; } exports.ImageAnalysesFromJSONTyped = ImageAnalysesFromJSONTyped; @@ -10326,8 +10484,8 @@ var require_ImageAnalyses = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ImageAnalysisToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ImageAnalysisToJSON) }; } exports.ImageAnalysesToJSON = ImageAnalysesToJSON2; @@ -10341,7 +10499,7 @@ var require_ImageAnalysis = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ImageAnalysisToJSON = exports.ImageAnalysisFromJSONTyped = exports.ImageAnalysisFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ImageAnalysisFromJSON4(json) { return ImageAnalysisFromJSONTyped8(json, false); } @@ -10351,10 +10509,10 @@ var require_ImageAnalysis = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "analysis": json["analysis"], - "ocr": !(0, runtime_1.exists)(json, "ocr") ? void 0 : (0, index_1.OCRAnalysisFromJSON)(json["ocr"]) + "ocr": !(0, runtime_1.exists)(json, "ocr") ? void 0 : (0, _1.OCRAnalysisFromJSON)(json["ocr"]) }; } exports.ImageAnalysisFromJSONTyped = ImageAnalysisFromJSONTyped8; @@ -10366,10 +10524,10 @@ var require_ImageAnalysis = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "analysis": value.analysis, - "ocr": (0, index_1.OCRAnalysisToJSON)(value.ocr) + "ocr": (0, _1.OCRAnalysisToJSON)(value.ocr) }; } exports.ImageAnalysisToJSON = ImageAnalysisToJSON4; @@ -10383,7 +10541,7 @@ var require_InteractedAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.InteractedAssetToJSON = exports.InteractedAssetFromJSONTyped = exports.InteractedAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function InteractedAssetFromJSON3(json) { return InteractedAssetFromJSONTyped3(json, false); } @@ -10394,7 +10552,7 @@ var require_InteractedAsset = __commonJS({ } return { "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : json["asset"], - "interactions": !(0, runtime_1.exists)(json, "interactions") ? void 0 : (0, index_1.InteractedAssetInteractionsFromJSON)(json["interactions"]) + "interactions": !(0, runtime_1.exists)(json, "interactions") ? void 0 : (0, _1.InteractedAssetInteractionsFromJSON)(json["interactions"]) }; } exports.InteractedAssetFromJSONTyped = InteractedAssetFromJSONTyped3; @@ -10407,7 +10565,7 @@ var require_InteractedAsset = __commonJS({ } return { "asset": value.asset, - "interactions": (0, index_1.InteractedAssetInteractionsToJSON)(value.interactions) + "interactions": (0, _1.InteractedAssetInteractionsToJSON)(value.interactions) }; } exports.InteractedAssetToJSON = InteractedAssetToJSON3; @@ -10460,7 +10618,7 @@ var require_InteractedAssets = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.InteractedAssetsToJSON = exports.InteractedAssetsFromJSONTyped = exports.InteractedAssetsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function InteractedAssetsFromJSON3(json) { return InteractedAssetsFromJSONTyped3(json, false); } @@ -10470,8 +10628,8 @@ var require_InteractedAssets = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.InteractedAssetFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.InteractedAssetFromJSON) }; } exports.InteractedAssetsFromJSONTyped = InteractedAssetsFromJSONTyped3; @@ -10483,8 +10641,8 @@ var require_InteractedAssets = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.InteractedAssetToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.InteractedAssetToJSON) }; } exports.InteractedAssetsToJSON = InteractedAssetsToJSON3; @@ -10498,7 +10656,7 @@ var require_Linkify = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.LinkifyToJSON = exports.LinkifyFromJSONTyped = exports.LinkifyFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function LinkifyFromJSON2(json) { return LinkifyFromJSONTyped(json, false); } @@ -10508,12 +10666,12 @@ var require_Linkify = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "seed": !(0, runtime_1.exists)(json, "seed") ? void 0 : (0, index_1.SeedFromJSON)(json["seed"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.AssetFromJSON)(json["asset"]), - "users": !(0, runtime_1.exists)(json, "users") ? void 0 : json["users"].map(index_1.SeededUserFromJSON), - "access": (0, index_1.AccessEnumFromJSON)(json["access"]), - "distributions": !(0, runtime_1.exists)(json, "distributions") ? void 0 : (0, index_1.SeededDistributionsFromJSON)(json["distributions"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "seed": !(0, runtime_1.exists)(json, "seed") ? void 0 : (0, _1.SeedFromJSON)(json["seed"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.AssetFromJSON)(json["asset"]), + "users": !(0, runtime_1.exists)(json, "users") ? void 0 : json["users"].map(_1.SeededUserFromJSON), + "access": (0, _1.AccessEnumFromJSON)(json["access"]), + "distributions": !(0, runtime_1.exists)(json, "distributions") ? void 0 : (0, _1.SeededDistributionsFromJSON)(json["distributions"]) }; } exports.LinkifyFromJSONTyped = LinkifyFromJSONTyped; @@ -10525,12 +10683,12 @@ var require_Linkify = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "seed": (0, index_1.SeedToJSON)(value.seed), - "asset": (0, index_1.AssetToJSON)(value.asset), - "users": value.users === void 0 ? void 0 : value.users.map(index_1.SeededUserToJSON), - "access": (0, index_1.AccessEnumToJSON)(value.access), - "distributions": (0, index_1.SeededDistributionsToJSON)(value.distributions) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "seed": (0, _1.SeedToJSON)(value.seed), + "asset": (0, _1.AssetToJSON)(value.asset), + "users": value.users === void 0 ? void 0 : value.users.map(_1.SeededUserToJSON), + "access": (0, _1.AccessEnumToJSON)(value.access), + "distributions": (0, _1.SeededDistributionsToJSON)(value.distributions) }; } exports.LinkifyToJSON = LinkifyToJSON2; @@ -10544,7 +10702,7 @@ var require_LinkifyMultiple = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.LinkifyMultipleToJSON = exports.LinkifyMultipleFromJSONTyped = exports.LinkifyMultipleFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function LinkifyMultipleFromJSON2(json) { return LinkifyMultipleFromJSONTyped(json, false); } @@ -10554,10 +10712,10 @@ var require_LinkifyMultiple = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "assets": json["assets"], - "users": !(0, runtime_1.exists)(json, "users") ? void 0 : json["users"].map(index_1.SeededUserFromJSON), - "access": (0, index_1.AccessEnumFromJSON)(json["access"]), + "users": !(0, runtime_1.exists)(json, "users") ? void 0 : json["users"].map(_1.SeededUserFromJSON), + "access": (0, _1.AccessEnumFromJSON)(json["access"]), "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"] }; } @@ -10570,10 +10728,10 @@ var require_LinkifyMultiple = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "assets": value.assets, - "users": value.users === void 0 ? void 0 : value.users.map(index_1.SeededUserToJSON), - "access": (0, index_1.AccessEnumToJSON)(value.access), + "users": value.users === void 0 ? void 0 : value.users.map(_1.SeededUserToJSON), + "access": (0, _1.AccessEnumToJSON)(value.access), "name": value.name }; } @@ -10588,7 +10746,7 @@ var require_MailgunDistribution = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.MailgunDistributionToJSON = exports.MailgunDistributionFromJSONTyped = exports.MailgunDistributionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function MailgunDistributionFromJSON4(json) { return MailgunDistributionFromJSONTyped11(json, false); } @@ -10598,8 +10756,8 @@ var require_MailgunDistribution = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "recipients": (0, index_1.RecipientsFromJSON)(json["recipients"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "recipients": (0, _1.RecipientsFromJSON)(json["recipients"]) }; } exports.MailgunDistributionFromJSONTyped = MailgunDistributionFromJSONTyped11; @@ -10611,8 +10769,8 @@ var require_MailgunDistribution = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "recipients": (0, index_1.RecipientsToJSON)(value.recipients) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "recipients": (0, _1.RecipientsToJSON)(value.recipients) }; } exports.MailgunDistributionToJSON = MailgunDistributionToJSON4; @@ -10626,7 +10784,7 @@ var require_MailgunMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.MailgunMetadataToJSON = exports.MailgunMetadataFromJSONTyped = exports.MailgunMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function MailgunMetadataFromJSON4(json) { return MailgunMetadataFromJSONTyped6(json, false); } @@ -10636,7 +10794,7 @@ var require_MailgunMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "messageId": json["messageId"] }; } @@ -10649,7 +10807,7 @@ var require_MailgunMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "messageId": value.messageId }; } @@ -10693,7 +10851,7 @@ var require_Model = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ModelToJSON = exports.ModelFromJSONTyped = exports.ModelFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ModelFromJSON4(json) { return ModelFromJSONTyped24(json, false); } @@ -10703,26 +10861,28 @@ var require_Model = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "version": json["version"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), "name": json["name"], "description": !(0, runtime_1.exists)(json, "description") ? void 0 : json["description"], "cloud": json["cloud"], - "type": (0, index_1.ModelTypeEnumFromJSON)(json["type"]), - "usage": (0, index_1.ModelUsageEnumFromJSON)(json["usage"]), - "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, index_1.ByteDescriptorFromJSON)(json["bytes"]), - "ram": !(0, runtime_1.exists)(json, "ram") ? void 0 : (0, index_1.ByteDescriptorFromJSON)(json["ram"]), + "type": (0, _1.ModelTypeEnumFromJSON)(json["type"]), + "usage": (0, _1.ModelUsageEnumFromJSON)(json["usage"]), + "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, _1.ByteDescriptorFromJSON)(json["bytes"]), + "ram": !(0, runtime_1.exists)(json, "ram") ? void 0 : (0, _1.ByteDescriptorFromJSON)(json["ram"]), "quantization": !(0, runtime_1.exists)(json, "quantization") ? void 0 : json["quantization"], - "foundation": !(0, runtime_1.exists)(json, "foundation") ? void 0 : (0, index_1.ModelFoundationEnumFromJSON)(json["foundation"]), + "foundation": !(0, runtime_1.exists)(json, "foundation") ? void 0 : (0, _1.ModelFoundationEnumFromJSON)(json["foundation"]), "downloaded": !(0, runtime_1.exists)(json, "downloaded") ? void 0 : json["downloaded"], "loaded": !(0, runtime_1.exists)(json, "loaded") ? void 0 : json["loaded"], "unique": !(0, runtime_1.exists)(json, "unique") ? void 0 : json["unique"], "parameters": !(0, runtime_1.exists)(json, "parameters") ? void 0 : json["parameters"], - "provider": !(0, runtime_1.exists)(json, "provider") ? void 0 : (0, index_1.ExternalMLProviderEnumFromJSON)(json["provider"]), + "provider": !(0, runtime_1.exists)(json, "provider") ? void 0 : (0, _1.ExternalMLProviderEnumFromJSON)(json["provider"]), "cpu": !(0, runtime_1.exists)(json, "cpu") ? void 0 : json["cpu"], - "downloading": !(0, runtime_1.exists)(json, "downloading") ? void 0 : json["downloading"] + "downloading": !(0, runtime_1.exists)(json, "downloading") ? void 0 : json["downloading"], + "maxTokens": !(0, runtime_1.exists)(json, "maxTokens") ? void 0 : (0, _1.ModelMaxTokensFromJSON)(json["maxTokens"]), + "custom": !(0, runtime_1.exists)(json, "custom") ? void 0 : json["custom"] }; } exports.ModelFromJSONTyped = ModelFromJSONTyped24; @@ -10734,32 +10894,108 @@ var require_Model = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "version": value.version, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), + "created": (0, _1.GroupedTimestampToJSON)(value.created), "name": value.name, "description": value.description, "cloud": value.cloud, - "type": (0, index_1.ModelTypeEnumToJSON)(value.type), - "usage": (0, index_1.ModelUsageEnumToJSON)(value.usage), - "bytes": (0, index_1.ByteDescriptorToJSON)(value.bytes), - "ram": (0, index_1.ByteDescriptorToJSON)(value.ram), + "type": (0, _1.ModelTypeEnumToJSON)(value.type), + "usage": (0, _1.ModelUsageEnumToJSON)(value.usage), + "bytes": (0, _1.ByteDescriptorToJSON)(value.bytes), + "ram": (0, _1.ByteDescriptorToJSON)(value.ram), "quantization": value.quantization, - "foundation": (0, index_1.ModelFoundationEnumToJSON)(value.foundation), + "foundation": (0, _1.ModelFoundationEnumToJSON)(value.foundation), "downloaded": value.downloaded, "loaded": value.loaded, "unique": value.unique, "parameters": value.parameters, - "provider": (0, index_1.ExternalMLProviderEnumToJSON)(value.provider), + "provider": (0, _1.ExternalMLProviderEnumToJSON)(value.provider), "cpu": value.cpu, - "downloading": value.downloading + "downloading": value.downloading, + "maxTokens": (0, _1.ModelMaxTokensToJSON)(value.maxTokens), + "custom": value.custom }; } exports.ModelToJSON = ModelToJSON5; } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelDeleteCacheInput.js +var require_ModelDeleteCacheInput = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelDeleteCacheInput.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ModelDeleteCacheInputToJSON = exports.ModelDeleteCacheInputFromJSONTyped = exports.ModelDeleteCacheInputFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function ModelDeleteCacheInputFromJSON2(json) { + return ModelDeleteCacheInputFromJSONTyped(json, false); + } + exports.ModelDeleteCacheInputFromJSON = ModelDeleteCacheInputFromJSON2; + function ModelDeleteCacheInputFromJSONTyped(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.ModelDeleteCacheInputFromJSONTyped = ModelDeleteCacheInputFromJSONTyped; + function ModelDeleteCacheInputToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema) + }; + } + exports.ModelDeleteCacheInputToJSON = ModelDeleteCacheInputToJSON2; + } +}); + +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelDeleteCacheOutput.js +var require_ModelDeleteCacheOutput = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelDeleteCacheOutput.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ModelDeleteCacheOutputToJSON = exports.ModelDeleteCacheOutputFromJSONTyped = exports.ModelDeleteCacheOutputFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function ModelDeleteCacheOutputFromJSON2(json) { + return ModelDeleteCacheOutputFromJSONTyped2(json, false); + } + exports.ModelDeleteCacheOutputFromJSON = ModelDeleteCacheOutputFromJSON2; + function ModelDeleteCacheOutputFromJSONTyped2(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"]), + "model": (0, _1.ReferencedModelFromJSON)(json["model"]) + }; + } + exports.ModelDeleteCacheOutputFromJSONTyped = ModelDeleteCacheOutputFromJSONTyped2; + function ModelDeleteCacheOutputToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "model": (0, _1.ReferencedModelToJSON)(value.model) + }; + } + exports.ModelDeleteCacheOutputToJSON = ModelDeleteCacheOutputToJSON2; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelDownloadProgress.js var require_ModelDownloadProgress = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelDownloadProgress.js"(exports) { @@ -10767,7 +11003,7 @@ var require_ModelDownloadProgress = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ModelDownloadProgressToJSON = exports.ModelDownloadProgressFromJSONTyped = exports.ModelDownloadProgressFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ModelDownloadProgressFromJSON2(json) { return ModelDownloadProgressFromJSONTyped2(json, false); } @@ -10777,8 +11013,9 @@ var require_ModelDownloadProgress = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "status": !(0, runtime_1.exists)(json, "status") ? void 0 : (0, index_1.ModelDownloadProgressStatusEnumFromJSON)(json["status"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "status": !(0, runtime_1.exists)(json, "status") ? void 0 : (0, _1.ModelDownloadProgressStatusEnumFromJSON)(json["status"]), + "percentage": !(0, runtime_1.exists)(json, "percentage") ? void 0 : json["percentage"] }; } exports.ModelDownloadProgressFromJSONTyped = ModelDownloadProgressFromJSONTyped2; @@ -10790,8 +11027,9 @@ var require_ModelDownloadProgress = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "status": (0, index_1.ModelDownloadProgressStatusEnumToJSON)(value.status) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "status": (0, _1.ModelDownloadProgressStatusEnumToJSON)(value.status), + "percentage": value.percentage }; } exports.ModelDownloadProgressToJSON = ModelDownloadProgressToJSON2; @@ -10927,6 +11165,48 @@ var require_ModelFoundationEnum = __commonJS({ } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelMaxTokens.js +var require_ModelMaxTokens = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelMaxTokens.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ModelMaxTokensToJSON = exports.ModelMaxTokensFromJSONTyped = exports.ModelMaxTokensFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function ModelMaxTokensFromJSON4(json) { + return ModelMaxTokensFromJSONTyped8(json, false); + } + exports.ModelMaxTokensFromJSON = ModelMaxTokensFromJSON4; + function ModelMaxTokensFromJSONTyped8(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"]), + "total": json["total"], + "input": !(0, runtime_1.exists)(json, "input") ? void 0 : json["input"], + "output": !(0, runtime_1.exists)(json, "output") ? void 0 : json["output"] + }; + } + exports.ModelMaxTokensFromJSONTyped = ModelMaxTokensFromJSONTyped8; + function ModelMaxTokensToJSON4(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "total": value.total, + "input": value.input, + "output": value.output + }; + } + exports.ModelMaxTokensToJSON = ModelMaxTokensToJSON4; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelTypeEnum.js var require_ModelTypeEnum = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/ModelTypeEnum.js"(exports) { @@ -11006,7 +11286,7 @@ var require_Models = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ModelsToJSON = exports.ModelsFromJSONTyped = exports.ModelsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ModelsFromJSON2(json) { return ModelsFromJSONTyped2(json, false); } @@ -11016,8 +11296,8 @@ var require_Models = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ModelFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ModelFromJSON) }; } exports.ModelsFromJSONTyped = ModelsFromJSONTyped2; @@ -11029,8 +11309,8 @@ var require_Models = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ModelToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ModelToJSON) }; } exports.ModelsToJSON = ModelsToJSON2; @@ -11043,7 +11323,7 @@ var require_Node = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NodeToJSON = exports.NodeFromJSONTyped = exports.NodeFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function NodeFromJSON4(json) { return NodeFromJSONTyped6(json, false); } @@ -11054,9 +11334,9 @@ var require_Node = __commonJS({ } return { "id": json["id"], - "type": (0, index_1.NodeTypeEnumFromJSON)(json["type"]), + "type": (0, _1.NodeTypeEnumFromJSON)(json["type"]), "root": json["root"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]) + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]) }; } exports.NodeFromJSONTyped = NodeFromJSONTyped6; @@ -11069,9 +11349,9 @@ var require_Node = __commonJS({ } return { "id": value.id, - "type": (0, index_1.NodeTypeEnumToJSON)(value.type), + "type": (0, _1.NodeTypeEnumToJSON)(value.type), "root": value.root, - "created": (0, index_1.GroupedTimestampToJSON)(value.created) + "created": (0, _1.GroupedTimestampToJSON)(value.created) }; } exports.NodeToJSON = NodeToJSON4; @@ -11113,7 +11393,7 @@ var require_Notification = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.NotificationToJSON = exports.NotificationFromJSONTyped = exports.NotificationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function NotificationFromJSON2(json) { return NotificationFromJSONTyped(json, false); } @@ -11123,7 +11403,7 @@ var require_Notification = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "title": !(0, runtime_1.exists)(json, "title") ? void 0 : json["title"], "message": !(0, runtime_1.exists)(json, "message") ? void 0 : json["message"], @@ -11139,7 +11419,7 @@ var require_Notification = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "title": value.title, "message": value.message, @@ -11207,7 +11487,7 @@ var require_OAuthGroup = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.OAuthGroupToJSON = exports.OAuthGroupFromJSONTyped = exports.OAuthGroupFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function OAuthGroupFromJSON3(json) { return OAuthGroupFromJSONTyped3(json, false); } @@ -11217,8 +11497,8 @@ var require_OAuthGroup = __commonJS({ return json; } return { - "token": !(0, runtime_1.exists)(json, "token") ? void 0 : (0, index_1.OAuthTokenFromJSON)(json["token"]), - "account": !(0, runtime_1.exists)(json, "account") ? void 0 : (0, index_1.OAuthAccountFromJSON)(json["account"]) + "token": !(0, runtime_1.exists)(json, "token") ? void 0 : (0, _1.OAuthTokenFromJSON)(json["token"]), + "account": !(0, runtime_1.exists)(json, "account") ? void 0 : (0, _1.OAuthAccountFromJSON)(json["account"]) }; } exports.OAuthGroupFromJSONTyped = OAuthGroupFromJSONTyped3; @@ -11230,8 +11510,8 @@ var require_OAuthGroup = __commonJS({ return null; } return { - "token": (0, index_1.OAuthTokenToJSON)(value.token), - "account": (0, index_1.OAuthAccountToJSON)(value.account) + "token": (0, _1.OAuthTokenToJSON)(value.token), + "account": (0, _1.OAuthAccountToJSON)(value.account) }; } exports.OAuthGroupToJSON = OAuthGroupToJSON3; @@ -11245,7 +11525,7 @@ var require_OAuthToken = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.OAuthTokenToJSON = exports.OAuthTokenFromJSONTyped = exports.OAuthTokenFromJSON = exports.OAuthTokenTokenTypeEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var OAuthTokenTokenTypeEnum; (function(OAuthTokenTokenTypeEnum2) { OAuthTokenTokenTypeEnum2["Bearer"] = "Bearer"; @@ -11259,7 +11539,7 @@ var require_OAuthToken = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "accessToken": json["access_token"], "tokenType": json["token_type"], "expiresIn": json["expires_in"], @@ -11277,7 +11557,7 @@ var require_OAuthToken = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "access_token": value.accessToken, "token_type": value.tokenType, "expires_in": value.expiresIn, @@ -11297,7 +11577,7 @@ var require_OCRAnalyses = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.OCRAnalysesToJSON = exports.OCRAnalysesFromJSONTyped = exports.OCRAnalysesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function OCRAnalysesFromJSON2(json) { return OCRAnalysesFromJSONTyped(json, false); } @@ -11307,8 +11587,8 @@ var require_OCRAnalyses = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.OCRAnalysisFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.OCRAnalysisFromJSON) }; } exports.OCRAnalysesFromJSONTyped = OCRAnalysesFromJSONTyped; @@ -11320,8 +11600,8 @@ var require_OCRAnalyses = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.OCRAnalysisToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.OCRAnalysisToJSON) }; } exports.OCRAnalysesToJSON = OCRAnalysesToJSON2; @@ -11335,7 +11615,7 @@ var require_OCRAnalysis = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.OCRAnalysisToJSON = exports.OCRAnalysisFromJSONTyped = exports.OCRAnalysisFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function OCRAnalysisFromJSON4(json) { return OCRAnalysisFromJSONTyped8(json, false); } @@ -11345,12 +11625,12 @@ var require_OCRAnalysis = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "raw": (0, index_1.FormatFromJSON)(json["raw"]), - "hocr": (0, index_1.FormatFromJSON)(json["hocr"]), + "raw": (0, _1.FormatFromJSON)(json["raw"]), + "hocr": (0, _1.FormatFromJSON)(json["hocr"]), "image": json["image"], - "model": (0, index_1.ModelFromJSON)(json["model"]) + "model": (0, _1.ModelFromJSON)(json["model"]) }; } exports.OCRAnalysisFromJSONTyped = OCRAnalysisFromJSONTyped8; @@ -11362,12 +11642,12 @@ var require_OCRAnalysis = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "raw": (0, index_1.FormatToJSON)(value.raw), - "hocr": (0, index_1.FormatToJSON)(value.hocr), + "raw": (0, _1.FormatToJSON)(value.raw), + "hocr": (0, _1.FormatToJSON)(value.hocr), "image": value.image, - "model": (0, index_1.ModelToJSON)(value.model) + "model": (0, _1.ModelToJSON)(value.model) }; } exports.OCRAnalysisToJSON = OCRAnalysisToJSON4; @@ -11381,7 +11661,7 @@ var require_OSHealth = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.OSHealthToJSON = exports.OSHealthFromJSONTyped = exports.OSHealthFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function OSHealthFromJSON4(json) { return OSHealthFromJSONTyped5(json, false); } @@ -11391,7 +11671,7 @@ var require_OSHealth = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "version": json["version"] }; @@ -11405,7 +11685,7 @@ var require_OSHealth = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "version": value.version }; @@ -11414,6 +11694,82 @@ var require_OSHealth = __commonJS({ } }); +// ../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) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.OpenAIModelsListInputToJSON = exports.OpenAIModelsListInputFromJSONTyped = exports.OpenAIModelsListInputFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function OpenAIModelsListInputFromJSON2(json) { + return OpenAIModelsListInputFromJSONTyped(json, false); + } + exports.OpenAIModelsListInputFromJSON = OpenAIModelsListInputFromJSON2; + function OpenAIModelsListInputFromJSONTyped(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"]), + "user": json["user"] + }; + } + exports.OpenAIModelsListInputFromJSONTyped = OpenAIModelsListInputFromJSONTyped; + function OpenAIModelsListInputToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "user": value.user + }; + } + exports.OpenAIModelsListInputToJSON = OpenAIModelsListInputToJSON2; + } +}); + +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OpenAIModelsListOutput.js +var require_OpenAIModelsListOutput = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OpenAIModelsListOutput.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.OpenAIModelsListOutputToJSON = exports.OpenAIModelsListOutputFromJSONTyped = exports.OpenAIModelsListOutputFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function OpenAIModelsListOutputFromJSON2(json) { + return OpenAIModelsListOutputFromJSONTyped(json, false); + } + exports.OpenAIModelsListOutputFromJSON = OpenAIModelsListOutputFromJSON2; + function OpenAIModelsListOutputFromJSONTyped(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"]), + "models": (0, _1.SeededModelsFromJSON)(json["models"]) + }; + } + exports.OpenAIModelsListOutputFromJSONTyped = OpenAIModelsListOutputFromJSONTyped; + function OpenAIModelsListOutputToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "models": (0, _1.SeededModelsToJSON)(value.models) + }; + } + exports.OpenAIModelsListOutputToJSON = OpenAIModelsListOutputToJSON2; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OrderedMetrics.js var require_OrderedMetrics = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/OrderedMetrics.js"(exports) { @@ -11421,7 +11777,7 @@ var require_OrderedMetrics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.OrderedMetricsToJSON = exports.OrderedMetricsFromJSONTyped = exports.OrderedMetricsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function OrderedMetricsFromJSON2(json) { return OrderedMetricsFromJSONTyped(json, false); } @@ -11431,7 +11787,7 @@ var require_OrderedMetrics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "ordered": json["ordered"] }; } @@ -11444,7 +11800,7 @@ var require_OrderedMetrics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "ordered": value.ordered }; } @@ -11459,7 +11815,7 @@ var require_PKCE = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.PKCEToJSON = exports.PKCEFromJSONTyped = exports.PKCEFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function PKCEFromJSON2(json) { return PKCEFromJSONTyped(json, false); } @@ -11469,13 +11825,13 @@ var require_PKCE = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "result": !(0, runtime_1.exists)(json, "result") ? void 0 : (0, index_1.ResultedPKCEFromJSON)(json["result"]), - "challenge": !(0, runtime_1.exists)(json, "challenge") ? void 0 : (0, index_1.ChallengedPKCEFromJSON)(json["challenge"]), - "revocation": !(0, runtime_1.exists)(json, "revocation") ? void 0 : (0, index_1.RevokedPKCEFromJSON)(json["revocation"]), - "seed": !(0, runtime_1.exists)(json, "seed") ? void 0 : (0, index_1.SeededPKCEFromJSON)(json["seed"]), - "token": !(0, runtime_1.exists)(json, "token") ? void 0 : (0, index_1.TokenizedPKCEFromJSON)(json["token"]), - "auth0": !(0, runtime_1.exists)(json, "auth0") ? void 0 : (0, index_1.Auth0FromJSON)(json["auth0"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "result": !(0, runtime_1.exists)(json, "result") ? void 0 : (0, _1.ResultedPKCEFromJSON)(json["result"]), + "challenge": !(0, runtime_1.exists)(json, "challenge") ? void 0 : (0, _1.ChallengedPKCEFromJSON)(json["challenge"]), + "revocation": !(0, runtime_1.exists)(json, "revocation") ? void 0 : (0, _1.RevokedPKCEFromJSON)(json["revocation"]), + "seed": !(0, runtime_1.exists)(json, "seed") ? void 0 : (0, _1.SeededPKCEFromJSON)(json["seed"]), + "token": !(0, runtime_1.exists)(json, "token") ? void 0 : (0, _1.TokenizedPKCEFromJSON)(json["token"]), + "auth0": !(0, runtime_1.exists)(json, "auth0") ? void 0 : (0, _1.Auth0FromJSON)(json["auth0"]) }; } exports.PKCEFromJSONTyped = PKCEFromJSONTyped; @@ -11487,13 +11843,13 @@ var require_PKCE = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "result": (0, index_1.ResultedPKCEToJSON)(value.result), - "challenge": (0, index_1.ChallengedPKCEToJSON)(value.challenge), - "revocation": (0, index_1.RevokedPKCEToJSON)(value.revocation), - "seed": (0, index_1.SeededPKCEToJSON)(value.seed), - "token": (0, index_1.TokenizedPKCEToJSON)(value.token), - "auth0": (0, index_1.Auth0ToJSON)(value.auth0) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "result": (0, _1.ResultedPKCEToJSON)(value.result), + "challenge": (0, _1.ChallengedPKCEToJSON)(value.challenge), + "revocation": (0, _1.RevokedPKCEToJSON)(value.revocation), + "seed": (0, _1.SeededPKCEToJSON)(value.seed), + "token": (0, _1.TokenizedPKCEToJSON)(value.token), + "auth0": (0, _1.Auth0ToJSON)(value.auth0) }; } exports.PKCEToJSON = PKCEToJSON2; @@ -11507,7 +11863,7 @@ var require_Person = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.PersonToJSON = exports.PersonFromJSONTyped = exports.PersonFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function PersonFromJSON4(json) { return PersonFromJSONTyped6(json, false); } @@ -11517,21 +11873,21 @@ var require_Person = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "type": (0, index_1.PersonTypeFromJSON)(json["type"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], index_1.MechanismEnumFromJSON), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "type": (0, _1.PersonTypeFromJSON)(json["type"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), + "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"], - "access": !(0, runtime_1.exists)(json, "access") ? void 0 : (0, runtime_1.mapValues)(json["access"], index_1.PersonAccessFromJSON), - "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, index_1.FlattenedTagsFromJSON)(json["tags"]), - "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, index_1.FlattenedWebsitesFromJSON)(json["websites"]), - "models": !(0, runtime_1.exists)(json, "models") ? void 0 : (0, runtime_1.mapValues)(json["models"], index_1.PersonModelFromJSON), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.FlattenedAnnotationsFromJSON)(json["annotations"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "access": !(0, runtime_1.exists)(json, "access") ? void 0 : (0, runtime_1.mapValues)(json["access"], _1.PersonAccessFromJSON), + "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, _1.FlattenedTagsFromJSON)(json["tags"]), + "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, _1.FlattenedWebsitesFromJSON)(json["websites"]), + "models": !(0, runtime_1.exists)(json, "models") ? void 0 : (0, runtime_1.mapValues)(json["models"], _1.PersonModelFromJSON), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.FlattenedAnnotationsFromJSON)(json["annotations"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.PersonFromJSONTyped = PersonFromJSONTyped6; @@ -11543,21 +11899,21 @@ var require_Person = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "type": (0, index_1.PersonTypeToJSON)(value.type), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, index_1.MechanismEnumToJSON), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "type": (0, _1.PersonTypeToJSON)(value.type), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, _1.MechanismEnumToJSON), "interactions": value.interactions, - "access": value.access === void 0 ? void 0 : (0, runtime_1.mapValues)(value.access, index_1.PersonAccessToJSON), - "tags": (0, index_1.FlattenedTagsToJSON)(value.tags), - "websites": (0, index_1.FlattenedWebsitesToJSON)(value.websites), - "models": value.models === void 0 ? void 0 : (0, runtime_1.mapValues)(value.models, index_1.PersonModelToJSON), - "annotations": (0, index_1.FlattenedAnnotationsToJSON)(value.annotations), - "score": (0, index_1.ScoreToJSON)(value.score) + "access": value.access === void 0 ? void 0 : (0, runtime_1.mapValues)(value.access, _1.PersonAccessToJSON), + "tags": (0, _1.FlattenedTagsToJSON)(value.tags), + "websites": (0, _1.FlattenedWebsitesToJSON)(value.websites), + "models": value.models === void 0 ? void 0 : (0, runtime_1.mapValues)(value.models, _1.PersonModelToJSON), + "annotations": (0, _1.FlattenedAnnotationsToJSON)(value.annotations), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.PersonToJSON = PersonToJSON5; @@ -11571,7 +11927,7 @@ var require_PersonAccess = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.PersonAccessToJSON = exports.PersonAccessFromJSONTyped = exports.PersonAccessFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function PersonAccessFromJSON4(json) { return PersonAccessFromJSONTyped12(json, false); } @@ -11581,9 +11937,9 @@ var require_PersonAccess = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "scoped": !(0, runtime_1.exists)(json, "scoped") ? void 0 : (0, index_1.PersonAccessScopedEnumFromJSON)(json["scoped"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "scoped": !(0, runtime_1.exists)(json, "scoped") ? void 0 : (0, _1.PersonAccessScopedEnumFromJSON)(json["scoped"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]) }; } exports.PersonAccessFromJSONTyped = PersonAccessFromJSONTyped12; @@ -11595,9 +11951,9 @@ var require_PersonAccess = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "scoped": (0, index_1.PersonAccessScopedEnumToJSON)(value.scoped), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "scoped": (0, _1.PersonAccessScopedEnumToJSON)(value.scoped), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted) }; } exports.PersonAccessToJSON = PersonAccessToJSON4; @@ -11639,7 +11995,7 @@ var require_PersonBasicType = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.PersonBasicTypeToJSON = exports.PersonBasicTypeFromJSONTyped = exports.PersonBasicTypeFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function PersonBasicTypeFromJSON4(json) { return PersonBasicTypeFromJSONTyped9(json, false); } @@ -11649,14 +12005,14 @@ var require_PersonBasicType = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "username": !(0, runtime_1.exists)(json, "username") ? void 0 : json["username"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], "picture": !(0, runtime_1.exists)(json, "picture") ? void 0 : json["picture"], "email": !(0, runtime_1.exists)(json, "email") ? void 0 : json["email"], - "sourced": !(0, runtime_1.exists)(json, "sourced") ? void 0 : (0, index_1.ExternallySourcedEnumFromJSON)(json["sourced"]), + "sourced": !(0, runtime_1.exists)(json, "sourced") ? void 0 : (0, _1.ExternallySourcedEnumFromJSON)(json["sourced"]), "url": !(0, runtime_1.exists)(json, "url") ? void 0 : json["url"], - "mailgun": !(0, runtime_1.exists)(json, "mailgun") ? void 0 : (0, index_1.MailgunMetadataFromJSON)(json["mailgun"]) + "mailgun": !(0, runtime_1.exists)(json, "mailgun") ? void 0 : (0, _1.MailgunMetadataFromJSON)(json["mailgun"]) }; } exports.PersonBasicTypeFromJSONTyped = PersonBasicTypeFromJSONTyped9; @@ -11668,14 +12024,14 @@ var require_PersonBasicType = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "username": value.username, "name": value.name, "picture": value.picture, "email": value.email, - "sourced": (0, index_1.ExternallySourcedEnumToJSON)(value.sourced), + "sourced": (0, _1.ExternallySourcedEnumToJSON)(value.sourced), "url": value.url, - "mailgun": (0, index_1.MailgunMetadataToJSON)(value.mailgun) + "mailgun": (0, _1.MailgunMetadataToJSON)(value.mailgun) }; } exports.PersonBasicTypeToJSON = PersonBasicTypeToJSON4; @@ -11689,7 +12045,7 @@ var require_PersonModel = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.PersonModelToJSON = exports.PersonModelFromJSONTyped = exports.PersonModelFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function PersonModelFromJSON4(json) { return PersonModelFromJSONTyped12(json, false); } @@ -11699,10 +12055,10 @@ var require_PersonModel = __commonJS({ return json; } return { - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.ReferencedAssetFromJSON)(json["asset"]), - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ReferencedModelFromJSON)(json["model"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "explanation": !(0, runtime_1.exists)(json, "explanation") ? void 0 : (0, index_1.ReferencedAnnotationFromJSON)(json["explanation"]) + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.ReferencedAssetFromJSON)(json["asset"]), + "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ReferencedModelFromJSON)(json["model"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "explanation": !(0, runtime_1.exists)(json, "explanation") ? void 0 : (0, _1.ReferencedAnnotationFromJSON)(json["explanation"]) }; } exports.PersonModelFromJSONTyped = PersonModelFromJSONTyped12; @@ -11714,10 +12070,10 @@ var require_PersonModel = __commonJS({ return null; } return { - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), - "model": (0, index_1.ReferencedModelToJSON)(value.model), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "explanation": (0, index_1.ReferencedAnnotationToJSON)(value.explanation) + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), + "model": (0, _1.ReferencedModelToJSON)(value.model), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "explanation": (0, _1.ReferencedAnnotationToJSON)(value.explanation) }; } exports.PersonModelToJSON = PersonModelToJSON4; @@ -11731,7 +12087,7 @@ var require_PersonType = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.PersonTypeToJSON = exports.PersonTypeFromJSONTyped = exports.PersonTypeFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function PersonTypeFromJSON4(json) { return PersonTypeFromJSONTyped12(json, false); } @@ -11741,9 +12097,9 @@ var require_PersonType = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "basic": !(0, runtime_1.exists)(json, "basic") ? void 0 : (0, index_1.PersonBasicTypeFromJSON)(json["basic"]), - "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, index_1.UserProfileFromJSON)(json["platform"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "basic": !(0, runtime_1.exists)(json, "basic") ? void 0 : (0, _1.PersonBasicTypeFromJSON)(json["basic"]), + "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, _1.UserProfileFromJSON)(json["platform"]) }; } exports.PersonTypeFromJSONTyped = PersonTypeFromJSONTyped12; @@ -11755,9 +12111,9 @@ var require_PersonType = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "basic": (0, index_1.PersonBasicTypeToJSON)(value.basic), - "platform": (0, index_1.UserProfileToJSON)(value.platform) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "basic": (0, _1.PersonBasicTypeToJSON)(value.basic), + "platform": (0, _1.UserProfileToJSON)(value.platform) }; } exports.PersonTypeToJSON = PersonTypeToJSON4; @@ -11771,7 +12127,7 @@ var require_Persons = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.PersonsToJSON = exports.PersonsFromJSONTyped = exports.PersonsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function PersonsFromJSON4(json) { return PersonsFromJSONTyped8(json, false); } @@ -11781,10 +12137,10 @@ var require_Persons = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.PersonFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.PersonFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.PersonsFromJSONTyped = PersonsFromJSONTyped8; @@ -11796,10 +12152,10 @@ var require_Persons = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.PersonToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.PersonToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.PersonsToJSON = PersonsToJSON5; @@ -11838,6 +12194,126 @@ var require_PlatformEnum = __commonJS({ } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/PrecreatedExternalProviderApiKey.js +var require_PrecreatedExternalProviderApiKey = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/PrecreatedExternalProviderApiKey.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.PrecreatedExternalProviderApiKeyToJSON = exports.PrecreatedExternalProviderApiKeyFromJSONTyped = exports.PrecreatedExternalProviderApiKeyFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function PrecreatedExternalProviderApiKeyFromJSON2(json) { + return PrecreatedExternalProviderApiKeyFromJSONTyped(json, false); + } + exports.PrecreatedExternalProviderApiKeyFromJSON = PrecreatedExternalProviderApiKeyFromJSON2; + function PrecreatedExternalProviderApiKeyFromJSONTyped(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"]), + "user": json["user"], + "openAI": !(0, runtime_1.exists)(json, "open_AI") ? void 0 : (0, _1.Auth0OpenAIUserMetadataFromJSON)(json["open_AI"]) + }; + } + exports.PrecreatedExternalProviderApiKeyFromJSONTyped = PrecreatedExternalProviderApiKeyFromJSONTyped; + function PrecreatedExternalProviderApiKeyToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "user": value.user, + "open_AI": (0, _1.Auth0OpenAIUserMetadataToJSON)(value.openAI) + }; + } + exports.PrecreatedExternalProviderApiKeyToJSON = PrecreatedExternalProviderApiKeyToJSON2; + } +}); + +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/PredeletedExternalProviderApiKey.js +var require_PredeletedExternalProviderApiKey = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/PredeletedExternalProviderApiKey.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.PredeletedExternalProviderApiKeyToJSON = exports.PredeletedExternalProviderApiKeyFromJSONTyped = exports.PredeletedExternalProviderApiKeyFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function PredeletedExternalProviderApiKeyFromJSON2(json) { + return PredeletedExternalProviderApiKeyFromJSONTyped(json, false); + } + exports.PredeletedExternalProviderApiKeyFromJSON = PredeletedExternalProviderApiKeyFromJSON2; + function PredeletedExternalProviderApiKeyFromJSONTyped(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"]), + "user": json["user"], + "openAI": !(0, runtime_1.exists)(json, "open_AI") ? void 0 : json["open_AI"] + }; + } + exports.PredeletedExternalProviderApiKeyFromJSONTyped = PredeletedExternalProviderApiKeyFromJSONTyped; + function PredeletedExternalProviderApiKeyToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "user": value.user, + "open_AI": value.openAI + }; + } + exports.PredeletedExternalProviderApiKeyToJSON = PredeletedExternalProviderApiKeyToJSON2; + } +}); + +// ../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) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.PreupdatedExternalProviderApiKeyToJSON = exports.PreupdatedExternalProviderApiKeyFromJSONTyped = exports.PreupdatedExternalProviderApiKeyFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function PreupdatedExternalProviderApiKeyFromJSON2(json) { + return PreupdatedExternalProviderApiKeyFromJSONTyped(json, false); + } + exports.PreupdatedExternalProviderApiKeyFromJSON = PreupdatedExternalProviderApiKeyFromJSON2; + function PreupdatedExternalProviderApiKeyFromJSONTyped(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"]), + "user": json["user"], + "openAI": !(0, runtime_1.exists)(json, "open_AI") ? void 0 : (0, _1.Auth0OpenAIUserMetadataFromJSON)(json["open_AI"]) + }; + } + exports.PreupdatedExternalProviderApiKeyFromJSONTyped = PreupdatedExternalProviderApiKeyFromJSONTyped; + function PreupdatedExternalProviderApiKeyToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "user": value.user, + "open_AI": (0, _1.Auth0OpenAIUserMetadataToJSON)(value.openAI) + }; + } + exports.PreupdatedExternalProviderApiKeyToJSON = PreupdatedExternalProviderApiKeyToJSON2; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Preview.js var require_Preview = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Preview.js"(exports) { @@ -11845,7 +12321,7 @@ var require_Preview = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.PreviewToJSON = exports.PreviewFromJSONTyped = exports.PreviewFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function PreviewFromJSON4(json) { return PreviewFromJSONTyped6(json, false); } @@ -11855,9 +12331,9 @@ var require_Preview = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "base": (0, index_1.ReferencedFormatFromJSON)(json["base"]), - "overlay": !(0, runtime_1.exists)(json, "overlay") ? void 0 : (0, index_1.ReferencedFormatFromJSON)(json["overlay"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "base": (0, _1.ReferencedFormatFromJSON)(json["base"]), + "overlay": !(0, runtime_1.exists)(json, "overlay") ? void 0 : (0, _1.ReferencedFormatFromJSON)(json["overlay"]) }; } exports.PreviewFromJSONTyped = PreviewFromJSONTyped6; @@ -11869,9 +12345,9 @@ var require_Preview = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "base": (0, index_1.ReferencedFormatToJSON)(value.base), - "overlay": (0, index_1.ReferencedFormatToJSON)(value.overlay) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "base": (0, _1.ReferencedFormatToJSON)(value.base), + "overlay": (0, _1.ReferencedFormatToJSON)(value.overlay) }; } exports.PreviewToJSON = PreviewToJSON4; @@ -11912,7 +12388,7 @@ var require_PseudoAssets = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.PseudoAssetsToJSON = exports.PseudoAssetsFromJSONTyped = exports.PseudoAssetsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function PseudoAssetsFromJSON2(json) { return PseudoAssetsFromJSONTyped2(json, false); } @@ -11922,8 +12398,8 @@ var require_PseudoAssets = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "identifiers": !(0, runtime_1.exists)(json, "identifiers") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["identifiers"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "identifiers": !(0, runtime_1.exists)(json, "identifiers") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["identifiers"]) }; } exports.PseudoAssetsFromJSONTyped = PseudoAssetsFromJSONTyped2; @@ -11935,8 +12411,8 @@ var require_PseudoAssets = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "identifiers": (0, index_1.FlattenedAssetsToJSON)(value.identifiers) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "identifiers": (0, _1.FlattenedAssetsToJSON)(value.identifiers) }; } exports.PseudoAssetsToJSON = PseudoAssetsToJSON2; @@ -11950,7 +12426,7 @@ var require_QGPTConversation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTConversationToJSON = exports.QGPTConversationFromJSONTyped = exports.QGPTConversationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTConversationFromJSON3(json) { return QGPTConversationFromJSONTyped5(json, false); } @@ -11960,8 +12436,8 @@ var require_QGPTConversation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": !(0, runtime_1.exists)(json, "iterable") ? void 0 : json["iterable"].map(index_1.QGPTConversationMessageFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": !(0, runtime_1.exists)(json, "iterable") ? void 0 : json["iterable"].map(_1.QGPTConversationMessageFromJSON) }; } exports.QGPTConversationFromJSONTyped = QGPTConversationFromJSONTyped5; @@ -11973,8 +12449,8 @@ var require_QGPTConversation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable === void 0 ? void 0 : value.iterable.map(index_1.QGPTConversationMessageToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable === void 0 ? void 0 : value.iterable.map(_1.QGPTConversationMessageToJSON) }; } exports.QGPTConversationToJSON = QGPTConversationToJSON3; @@ -11988,7 +12464,7 @@ var require_QGPTConversationMessage = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTConversationMessageToJSON = exports.QGPTConversationMessageFromJSONTyped = exports.QGPTConversationMessageFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTConversationMessageFromJSON3(json) { return QGPTConversationMessageFromJSONTyped3(json, false); } @@ -11998,10 +12474,10 @@ var require_QGPTConversationMessage = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "text": json["text"], - "role": (0, index_1.QGPTConversationMessageRoleEnumFromJSON)(json["role"]), - "timestamp": (0, index_1.GroupedTimestampFromJSON)(json["timestamp"]) + "role": (0, _1.QGPTConversationMessageRoleEnumFromJSON)(json["role"]), + "timestamp": (0, _1.GroupedTimestampFromJSON)(json["timestamp"]) }; } exports.QGPTConversationMessageFromJSONTyped = QGPTConversationMessageFromJSONTyped3; @@ -12013,10 +12489,10 @@ var require_QGPTConversationMessage = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "text": value.text, - "role": (0, index_1.QGPTConversationMessageRoleEnumToJSON)(value.role), - "timestamp": (0, index_1.GroupedTimestampToJSON)(value.timestamp) + "role": (0, _1.QGPTConversationMessageRoleEnumToJSON)(value.role), + "timestamp": (0, _1.GroupedTimestampToJSON)(value.timestamp) }; } exports.QGPTConversationMessageToJSON = QGPTConversationMessageToJSON3; @@ -12057,7 +12533,7 @@ var require_QGPTHintsInput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTHintsInputToJSON = exports.QGPTHintsInputFromJSONTyped = exports.QGPTHintsInputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTHintsInputFromJSON2(json) { return QGPTHintsInputFromJSONTyped(json, false); } @@ -12068,8 +12544,8 @@ var require_QGPTHintsInput = __commonJS({ } return { "query": !(0, runtime_1.exists)(json, "query") ? void 0 : json["query"], - "answer": !(0, runtime_1.exists)(json, "answer") ? void 0 : (0, index_1.QGPTQuestionAnswerFromJSON)(json["answer"]), - "relevant": (0, index_1.RelevantQGPTSeedsFromJSON)(json["relevant"]), + "answer": !(0, runtime_1.exists)(json, "answer") ? void 0 : (0, _1.QGPTQuestionAnswerFromJSON)(json["answer"]), + "relevant": (0, _1.RelevantQGPTSeedsFromJSON)(json["relevant"]), "application": !(0, runtime_1.exists)(json, "application") ? void 0 : json["application"], "model": !(0, runtime_1.exists)(json, "model") ? void 0 : json["model"] }; @@ -12084,8 +12560,8 @@ var require_QGPTHintsInput = __commonJS({ } return { "query": value.query, - "answer": (0, index_1.QGPTQuestionAnswerToJSON)(value.answer), - "relevant": (0, index_1.RelevantQGPTSeedsToJSON)(value.relevant), + "answer": (0, _1.QGPTQuestionAnswerToJSON)(value.answer), + "relevant": (0, _1.RelevantQGPTSeedsToJSON)(value.relevant), "application": value.application, "model": value.model }; @@ -12101,7 +12577,7 @@ var require_QGPTPersonsRelatedInput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTPersonsRelatedInputToJSON = exports.QGPTPersonsRelatedInputFromJSONTyped = exports.QGPTPersonsRelatedInputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTPersonsRelatedInputFromJSON2(json) { return QGPTPersonsRelatedInputFromJSONTyped(json, false); } @@ -12111,9 +12587,9 @@ var require_QGPTPersonsRelatedInput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "seed": !(0, runtime_1.exists)(json, "seed") ? void 0 : (0, index_1.SeedFromJSON)(json["seed"]), - "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, index_1.QGPTConversationFromJSON)(json["conversation"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "seed": !(0, runtime_1.exists)(json, "seed") ? void 0 : (0, _1.SeedFromJSON)(json["seed"]), + "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (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"] }; @@ -12127,9 +12603,9 @@ var require_QGPTPersonsRelatedInput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "seed": (0, index_1.SeedToJSON)(value.seed), - "conversation": (0, index_1.QGPTConversationToJSON)(value.conversation), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "seed": (0, _1.SeedToJSON)(value.seed), + "conversation": (0, _1.QGPTConversationToJSON)(value.conversation), "application": value.application, "model": value.model }; @@ -12145,7 +12621,7 @@ var require_QGPTPersonsRelatedOutput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTPersonsRelatedOutputToJSON = exports.QGPTPersonsRelatedOutputFromJSONTyped = exports.QGPTPersonsRelatedOutputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTPersonsRelatedOutputFromJSON2(json) { return QGPTPersonsRelatedOutputFromJSONTyped2(json, false); } @@ -12155,8 +12631,8 @@ var require_QGPTPersonsRelatedOutput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "persons": (0, index_1.PersonsFromJSON)(json["persons"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "persons": (0, _1.PersonsFromJSON)(json["persons"]), "explanations": !(0, runtime_1.exists)(json, "explanations") ? void 0 : json["explanations"] }; } @@ -12169,8 +12645,8 @@ var require_QGPTPersonsRelatedOutput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "persons": (0, index_1.PersonsToJSON)(value.persons), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "persons": (0, _1.PersonsToJSON)(value.persons), "explanations": value.explanations }; } @@ -12185,7 +12661,7 @@ var require_QGPTQuestionAnswer = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTQuestionAnswerToJSON = exports.QGPTQuestionAnswerFromJSONTyped = exports.QGPTQuestionAnswerFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTQuestionAnswerFromJSON3(json) { return QGPTQuestionAnswerFromJSONTyped6(json, false); } @@ -12195,7 +12671,7 @@ var require_QGPTQuestionAnswer = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "score": json["score"], "text": json["text"] }; @@ -12209,7 +12685,7 @@ var require_QGPTQuestionAnswer = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "score": value.score, "text": value.text }; @@ -12225,7 +12701,7 @@ var require_QGPTQuestionAnswers = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTQuestionAnswersToJSON = exports.QGPTQuestionAnswersFromJSONTyped = exports.QGPTQuestionAnswersFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTQuestionAnswersFromJSON3(json) { return QGPTQuestionAnswersFromJSONTyped4(json, false); } @@ -12235,8 +12711,8 @@ var require_QGPTQuestionAnswers = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.QGPTQuestionAnswerFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.QGPTQuestionAnswerFromJSON) }; } exports.QGPTQuestionAnswersFromJSONTyped = QGPTQuestionAnswersFromJSONTyped4; @@ -12248,8 +12724,8 @@ var require_QGPTQuestionAnswers = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.QGPTQuestionAnswerToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.QGPTQuestionAnswerToJSON) }; } exports.QGPTQuestionAnswersToJSON = QGPTQuestionAnswersToJSON3; @@ -12263,7 +12739,7 @@ var require_QGPTQuestionInput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTQuestionInputToJSON = exports.QGPTQuestionInputFromJSONTyped = exports.QGPTQuestionInputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTQuestionInputFromJSON4(json) { return QGPTQuestionInputFromJSONTyped3(json, false); } @@ -12273,12 +12749,12 @@ var require_QGPTQuestionInput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "relevant": (0, index_1.RelevantQGPTSeedsFromJSON)(json["relevant"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "relevant": (0, _1.RelevantQGPTSeedsFromJSON)(json["relevant"]), "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, index_1.FlattenedConversationMessagesFromJSON)(json["messages"]) + "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]) }; } exports.QGPTQuestionInputFromJSONTyped = QGPTQuestionInputFromJSONTyped3; @@ -12290,12 +12766,12 @@ var require_QGPTQuestionInput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "relevant": (0, index_1.RelevantQGPTSeedsToJSON)(value.relevant), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "relevant": (0, _1.RelevantQGPTSeedsToJSON)(value.relevant), "query": value.query, "application": value.application, "model": value.model, - "messages": (0, index_1.FlattenedConversationMessagesToJSON)(value.messages) + "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages) }; } exports.QGPTQuestionInputToJSON = QGPTQuestionInputToJSON3; @@ -12309,7 +12785,7 @@ var require_QGPTQuestionOutput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTQuestionOutputToJSON = exports.QGPTQuestionOutputFromJSONTyped = exports.QGPTQuestionOutputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTQuestionOutputFromJSON3(json) { return QGPTQuestionOutputFromJSONTyped6(json, false); } @@ -12319,8 +12795,8 @@ var require_QGPTQuestionOutput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "answers": (0, index_1.QGPTQuestionAnswersFromJSON)(json["answers"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "answers": (0, _1.QGPTQuestionAnswersFromJSON)(json["answers"]) }; } exports.QGPTQuestionOutputFromJSONTyped = QGPTQuestionOutputFromJSONTyped6; @@ -12332,8 +12808,8 @@ var require_QGPTQuestionOutput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "answers": (0, index_1.QGPTQuestionAnswersToJSON)(value.answers) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "answers": (0, _1.QGPTQuestionAnswersToJSON)(value.answers) }; } exports.QGPTQuestionOutputToJSON = QGPTQuestionOutputToJSON4; @@ -12347,7 +12823,7 @@ var require_QGPTRelevanceInput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTRelevanceInputToJSON = exports.QGPTRelevanceInputFromJSONTyped = exports.QGPTRelevanceInputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTRelevanceInputFromJSON4(json) { return QGPTRelevanceInputFromJSONTyped3(json, false); } @@ -12357,13 +12833,13 @@ var require_QGPTRelevanceInput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "query": json["query"], "paths": !(0, runtime_1.exists)(json, "paths") ? void 0 : json["paths"], - "seeds": !(0, runtime_1.exists)(json, "seeds") ? void 0 : (0, index_1.SeedsFromJSON)(json["seeds"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, index_1.FlattenedConversationMessagesFromJSON)(json["messages"]), - "options": !(0, runtime_1.exists)(json, "options") ? void 0 : (0, index_1.QGPTRelevanceInputOptionsFromJSON)(json["options"]), + "seeds": !(0, runtime_1.exists)(json, "seeds") ? void 0 : (0, _1.SeedsFromJSON)(json["seeds"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), + "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]), + "options": !(0, runtime_1.exists)(json, "options") ? void 0 : (0, _1.QGPTRelevanceInputOptionsFromJSON)(json["options"]), "application": !(0, runtime_1.exists)(json, "application") ? void 0 : json["application"], "model": !(0, runtime_1.exists)(json, "model") ? void 0 : json["model"] }; @@ -12377,13 +12853,13 @@ var require_QGPTRelevanceInput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "query": value.query, "paths": value.paths, - "seeds": (0, index_1.SeedsToJSON)(value.seeds), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "messages": (0, index_1.FlattenedConversationMessagesToJSON)(value.messages), - "options": (0, index_1.QGPTRelevanceInputOptionsToJSON)(value.options), + "seeds": (0, _1.SeedsToJSON)(value.seeds), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages), + "options": (0, _1.QGPTRelevanceInputOptionsToJSON)(value.options), "application": value.application, "model": value.model }; @@ -12399,7 +12875,7 @@ var require_QGPTRelevanceInputOptions = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTRelevanceInputOptionsToJSON = exports.QGPTRelevanceInputOptionsFromJSONTyped = exports.QGPTRelevanceInputOptionsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTRelevanceInputOptionsFromJSON3(json) { return QGPTRelevanceInputOptionsFromJSONTyped3(json, false); } @@ -12409,7 +12885,7 @@ var require_QGPTRelevanceInputOptions = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "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"] }; @@ -12423,7 +12899,7 @@ var require_QGPTRelevanceInputOptions = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "database": value.database, "question": value.question }; @@ -12439,7 +12915,7 @@ var require_QGPTRelevanceOutput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTRelevanceOutputToJSON = exports.QGPTRelevanceOutputFromJSONTyped = exports.QGPTRelevanceOutputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTRelevanceOutputFromJSON3(json) { return QGPTRelevanceOutputFromJSONTyped4(json, false); } @@ -12449,9 +12925,9 @@ var require_QGPTRelevanceOutput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "answer": !(0, runtime_1.exists)(json, "answer") ? void 0 : (0, index_1.QGPTQuestionOutputFromJSON)(json["answer"]), - "relevant": (0, index_1.RelevantQGPTSeedsFromJSON)(json["relevant"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "answer": !(0, runtime_1.exists)(json, "answer") ? void 0 : (0, _1.QGPTQuestionOutputFromJSON)(json["answer"]), + "relevant": (0, _1.RelevantQGPTSeedsFromJSON)(json["relevant"]) }; } exports.QGPTRelevanceOutputFromJSONTyped = QGPTRelevanceOutputFromJSONTyped4; @@ -12463,9 +12939,9 @@ var require_QGPTRelevanceOutput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "answer": (0, index_1.QGPTQuestionOutputToJSON)(value.answer), - "relevant": (0, index_1.RelevantQGPTSeedsToJSON)(value.relevant) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "answer": (0, _1.QGPTQuestionOutputToJSON)(value.answer), + "relevant": (0, _1.RelevantQGPTSeedsToJSON)(value.relevant) }; } exports.QGPTRelevanceOutputToJSON = QGPTRelevanceOutputToJSON4; @@ -12479,7 +12955,7 @@ var require_QGPTRepromptInput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTRepromptInputToJSON = exports.QGPTRepromptInputFromJSONTyped = exports.QGPTRepromptInputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTRepromptInputFromJSON2(json) { return QGPTRepromptInputFromJSONTyped(json, false); } @@ -12489,9 +12965,9 @@ var require_QGPTRepromptInput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "query": json["query"], - "conversation": (0, index_1.QGPTConversationFromJSON)(json["conversation"]), + "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"] }; @@ -12505,9 +12981,9 @@ var require_QGPTRepromptInput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "query": value.query, - "conversation": (0, index_1.QGPTConversationToJSON)(value.conversation), + "conversation": (0, _1.QGPTConversationToJSON)(value.conversation), "application": value.application, "model": value.model }; @@ -12523,7 +12999,7 @@ var require_QGPTRepromptOutput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTRepromptOutputToJSON = exports.QGPTRepromptOutputFromJSONTyped = exports.QGPTRepromptOutputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTRepromptOutputFromJSON2(json) { return QGPTRepromptOutputFromJSONTyped2(json, false); } @@ -12533,7 +13009,7 @@ var require_QGPTRepromptOutput = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "query": json["query"] }; } @@ -12546,7 +13022,7 @@ var require_QGPTRepromptOutput = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "query": value.query }; } @@ -12593,7 +13069,7 @@ var require_QGPTStreamInput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTStreamInputToJSON = exports.QGPTStreamInputFromJSONTyped = exports.QGPTStreamInputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTStreamInputFromJSON2(json) { return QGPTStreamInputFromJSONTyped(json, false); } @@ -12603,8 +13079,8 @@ var require_QGPTStreamInput = __commonJS({ return json; } return { - "relevance": !(0, runtime_1.exists)(json, "relevance") ? void 0 : (0, index_1.QGPTRelevanceInputFromJSON)(json["relevance"]), - "question": !(0, runtime_1.exists)(json, "question") ? void 0 : (0, index_1.QGPTQuestionInputFromJSON)(json["question"]), + "relevance": !(0, runtime_1.exists)(json, "relevance") ? void 0 : (0, _1.QGPTRelevanceInputFromJSON)(json["relevance"]), + "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"] @@ -12619,8 +13095,8 @@ var require_QGPTStreamInput = __commonJS({ return null; } return { - "relevance": (0, index_1.QGPTRelevanceInputToJSON)(value.relevance), - "question": (0, index_1.QGPTQuestionInputToJSON)(value.question), + "relevance": (0, _1.QGPTRelevanceInputToJSON)(value.relevance), + "question": (0, _1.QGPTQuestionInputToJSON)(value.question), "request": value.request, "conversation": value.conversation, "stop": value.stop @@ -12637,7 +13113,7 @@ var require_QGPTStreamOutput = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.QGPTStreamOutputToJSON = exports.QGPTStreamOutputFromJSONTyped = exports.QGPTStreamOutputFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function QGPTStreamOutputFromJSON2(json) { return QGPTStreamOutputFromJSONTyped2(json, false); } @@ -12648,10 +13124,12 @@ var require_QGPTStreamOutput = __commonJS({ } return { "request": !(0, runtime_1.exists)(json, "request") ? void 0 : json["request"], - "relevance": !(0, runtime_1.exists)(json, "relevance") ? void 0 : (0, index_1.QGPTRelevanceOutputFromJSON)(json["relevance"]), - "question": !(0, runtime_1.exists)(json, "question") ? void 0 : (0, index_1.QGPTQuestionOutputFromJSON)(json["question"]), - "status": !(0, runtime_1.exists)(json, "status") ? void 0 : (0, index_1.QGPTStreamEnumFromJSON)(json["status"]), - "conversation": json["conversation"] + "relevance": !(0, runtime_1.exists)(json, "relevance") ? void 0 : (0, _1.QGPTRelevanceOutputFromJSON)(json["relevance"]), + "question": !(0, runtime_1.exists)(json, "question") ? void 0 : (0, _1.QGPTQuestionOutputFromJSON)(json["question"]), + "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"] }; } exports.QGPTStreamOutputFromJSONTyped = QGPTStreamOutputFromJSONTyped2; @@ -12664,10 +13142,12 @@ var require_QGPTStreamOutput = __commonJS({ } return { "request": value.request, - "relevance": (0, index_1.QGPTRelevanceOutputToJSON)(value.relevance), - "question": (0, index_1.QGPTQuestionOutputToJSON)(value.question), - "status": (0, index_1.QGPTStreamEnumToJSON)(value.status), - "conversation": value.conversation + "relevance": (0, _1.QGPTRelevanceOutputToJSON)(value.relevance), + "question": (0, _1.QGPTQuestionOutputToJSON)(value.question), + "status": (0, _1.QGPTStreamEnumToJSON)(value.status), + "conversation": value.conversation, + "statusCode": value.statusCode, + "errorMessage": value.errorMessage }; } exports.QGPTStreamOutputToJSON = QGPTStreamOutputToJSON2; @@ -12681,7 +13161,7 @@ var require_Reaction = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReactionToJSON = exports.ReactionFromJSONTyped = exports.ReactionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReactionFromJSON3(json) { return ReactionFromJSONTyped(json, false); } @@ -12691,10 +13171,10 @@ var require_Reaction = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "save": json["save"], - "reuse": !(0, runtime_1.exists)(json, "reuse") ? void 0 : (0, index_1.ReuseReactionFromJSON)(json["reuse"]), - "seed": (0, index_1.SeededConnectorCreationFromJSON)(json["seed"]) + "reuse": !(0, runtime_1.exists)(json, "reuse") ? void 0 : (0, _1.ReuseReactionFromJSON)(json["reuse"]), + "seed": (0, _1.SeededConnectorCreationFromJSON)(json["seed"]) }; } exports.ReactionFromJSONTyped = ReactionFromJSONTyped; @@ -12706,10 +13186,10 @@ var require_Reaction = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "save": value.save, - "reuse": (0, index_1.ReuseReactionToJSON)(value.reuse), - "seed": (0, index_1.SeededConnectorCreationToJSON)(value.seed) + "reuse": (0, _1.ReuseReactionToJSON)(value.reuse), + "seed": (0, _1.SeededConnectorCreationToJSON)(value.seed) }; } exports.ReactionToJSON = ReactionToJSON3; @@ -12723,7 +13203,7 @@ var require_Recipients = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.RecipientsToJSON = exports.RecipientsFromJSONTyped = exports.RecipientsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function RecipientsFromJSON4(json) { return RecipientsFromJSONTyped11(json, false); } @@ -12733,8 +13213,8 @@ var require_Recipients = __commonJS({ return json; } return { - "iterable": json["iterable"].map(index_1.PersonBasicTypeFromJSON), - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]) + "iterable": json["iterable"].map(_1.PersonBasicTypeFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]) }; } exports.RecipientsFromJSONTyped = RecipientsFromJSONTyped11; @@ -12746,8 +13226,8 @@ var require_Recipients = __commonJS({ return null; } return { - "iterable": value.iterable.map(index_1.PersonBasicTypeToJSON), - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema) + "iterable": value.iterable.map(_1.PersonBasicTypeToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema) }; } exports.RecipientsToJSON = RecipientsToJSON4; @@ -12761,7 +13241,7 @@ var require_ReferencedActivity = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedActivityToJSON = exports.ReferencedActivityFromJSONTyped = exports.ReferencedActivityFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedActivityFromJSON4(json) { return ReferencedActivityFromJSONTyped6(json, false); } @@ -12771,9 +13251,9 @@ var require_ReferencedActivity = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedActivityFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedActivityFromJSON)(json["reference"]) }; } exports.ReferencedActivityFromJSONTyped = ReferencedActivityFromJSONTyped6; @@ -12785,9 +13265,9 @@ var require_ReferencedActivity = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedActivityToJSON)(value.reference) + "reference": (0, _1.FlattenedActivityToJSON)(value.reference) }; } exports.ReferencedActivityToJSON = ReferencedActivityToJSON4; @@ -12801,7 +13281,7 @@ var require_ReferencedAnchor = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedAnchorToJSON = exports.ReferencedAnchorFromJSONTyped = exports.ReferencedAnchorFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedAnchorFromJSON4(json) { return ReferencedAnchorFromJSONTyped20(json, false); } @@ -12811,9 +13291,9 @@ var require_ReferencedAnchor = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedAnchorFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedAnchorFromJSON)(json["reference"]) }; } exports.ReferencedAnchorFromJSONTyped = ReferencedAnchorFromJSONTyped20; @@ -12825,9 +13305,9 @@ var require_ReferencedAnchor = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedAnchorToJSON)(value.reference) + "reference": (0, _1.FlattenedAnchorToJSON)(value.reference) }; } exports.ReferencedAnchorToJSON = ReferencedAnchorToJSON4; @@ -12841,7 +13321,7 @@ var require_ReferencedAnchorPoint = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedAnchorPointToJSON = exports.ReferencedAnchorPointFromJSONTyped = exports.ReferencedAnchorPointFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedAnchorPointFromJSON4(json) { return ReferencedAnchorPointFromJSONTyped6(json, false); } @@ -12851,9 +13331,9 @@ var require_ReferencedAnchorPoint = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedAnchorPointFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedAnchorPointFromJSON)(json["reference"]) }; } exports.ReferencedAnchorPointFromJSONTyped = ReferencedAnchorPointFromJSONTyped6; @@ -12865,9 +13345,9 @@ var require_ReferencedAnchorPoint = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedAnchorPointToJSON)(value.reference) + "reference": (0, _1.FlattenedAnchorPointToJSON)(value.reference) }; } exports.ReferencedAnchorPointToJSON = ReferencedAnchorPointToJSON4; @@ -12881,7 +13361,7 @@ var require_ReferencedAnnotation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedAnnotationToJSON = exports.ReferencedAnnotationFromJSONTyped = exports.ReferencedAnnotationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedAnnotationFromJSON4(json) { return ReferencedAnnotationFromJSONTyped14(json, false); } @@ -12891,9 +13371,9 @@ var require_ReferencedAnnotation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedAnnotationFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedAnnotationFromJSON)(json["reference"]) }; } exports.ReferencedAnnotationFromJSONTyped = ReferencedAnnotationFromJSONTyped14; @@ -12905,9 +13385,9 @@ var require_ReferencedAnnotation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedAnnotationToJSON)(value.reference) + "reference": (0, _1.FlattenedAnnotationToJSON)(value.reference) }; } exports.ReferencedAnnotationToJSON = ReferencedAnnotationToJSON4; @@ -12921,7 +13401,7 @@ var require_ReferencedAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedAssetToJSON = exports.ReferencedAssetFromJSONTyped = exports.ReferencedAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedAssetFromJSON4(json) { return ReferencedAssetFromJSONTyped38(json, false); } @@ -12931,9 +13411,9 @@ var require_ReferencedAsset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedAssetFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedAssetFromJSON)(json["reference"]) }; } exports.ReferencedAssetFromJSONTyped = ReferencedAssetFromJSONTyped38; @@ -12945,9 +13425,9 @@ var require_ReferencedAsset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedAssetToJSON)(value.reference) + "reference": (0, _1.FlattenedAssetToJSON)(value.reference) }; } exports.ReferencedAssetToJSON = ReferencedAssetToJSON4; @@ -12961,22 +13441,22 @@ var require_ReferencedConversation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedConversationToJSON = exports.ReferencedConversationFromJSONTyped = exports.ReferencedConversationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedConversationFromJSON4(json) { - return ReferencedConversationFromJSONTyped25(json, false); + return ReferencedConversationFromJSONTyped30(json, false); } exports.ReferencedConversationFromJSON = ReferencedConversationFromJSON4; - function ReferencedConversationFromJSONTyped25(json, ignoreDiscriminator) { + function ReferencedConversationFromJSONTyped30(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedConversationFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedConversationFromJSON)(json["reference"]) }; } - exports.ReferencedConversationFromJSONTyped = ReferencedConversationFromJSONTyped25; + exports.ReferencedConversationFromJSONTyped = ReferencedConversationFromJSONTyped30; function ReferencedConversationToJSON4(value) { if (value === void 0) { return void 0; @@ -12985,9 +13465,9 @@ var require_ReferencedConversation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedConversationToJSON)(value.reference) + "reference": (0, _1.FlattenedConversationToJSON)(value.reference) }; } exports.ReferencedConversationToJSON = ReferencedConversationToJSON4; @@ -13001,7 +13481,7 @@ var require_ReferencedConversationMessage = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedConversationMessageToJSON = exports.ReferencedConversationMessageFromJSONTyped = exports.ReferencedConversationMessageFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedConversationMessageFromJSON4(json) { return ReferencedConversationMessageFromJSONTyped6(json, false); } @@ -13011,9 +13491,9 @@ var require_ReferencedConversationMessage = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedConversationMessageFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedConversationMessageFromJSON)(json["reference"]) }; } exports.ReferencedConversationMessageFromJSONTyped = ReferencedConversationMessageFromJSONTyped6; @@ -13025,9 +13505,9 @@ var require_ReferencedConversationMessage = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedConversationMessageToJSON)(value.reference) + "reference": (0, _1.FlattenedConversationMessageToJSON)(value.reference) }; } exports.ReferencedConversationMessageToJSON = ReferencedConversationMessageToJSON4; @@ -13041,7 +13521,7 @@ var require_ReferencedDistribution = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedDistributionToJSON = exports.ReferencedDistributionFromJSONTyped = exports.ReferencedDistributionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedDistributionFromJSON4(json) { return ReferencedDistributionFromJSONTyped6(json, false); } @@ -13051,9 +13531,9 @@ var require_ReferencedDistribution = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedDistributionFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedDistributionFromJSON)(json["reference"]) }; } exports.ReferencedDistributionFromJSONTyped = ReferencedDistributionFromJSONTyped6; @@ -13065,9 +13545,9 @@ var require_ReferencedDistribution = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedDistributionToJSON)(value.reference) + "reference": (0, _1.FlattenedDistributionToJSON)(value.reference) }; } exports.ReferencedDistributionToJSON = ReferencedDistributionToJSON4; @@ -13081,7 +13561,7 @@ var require_ReferencedFormat = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedFormatToJSON = exports.ReferencedFormatFromJSONTyped = exports.ReferencedFormatFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedFormatFromJSON4(json) { return ReferencedFormatFromJSONTyped24(json, false); } @@ -13091,9 +13571,9 @@ var require_ReferencedFormat = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedFormatFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedFormatFromJSON)(json["reference"]) }; } exports.ReferencedFormatFromJSONTyped = ReferencedFormatFromJSONTyped24; @@ -13105,9 +13585,9 @@ var require_ReferencedFormat = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedFormatToJSON)(value.reference) + "reference": (0, _1.FlattenedFormatToJSON)(value.reference) }; } exports.ReferencedFormatToJSON = ReferencedFormatToJSON4; @@ -13121,7 +13601,7 @@ var require_ReferencedHint = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedHintToJSON = exports.ReferencedHintFromJSONTyped = exports.ReferencedHintFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedHintFromJSON4(json) { return ReferencedHintFromJSONTyped9(json, false); } @@ -13131,9 +13611,9 @@ var require_ReferencedHint = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedHintFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedHintFromJSON)(json["reference"]) }; } exports.ReferencedHintFromJSONTyped = ReferencedHintFromJSONTyped9; @@ -13145,9 +13625,9 @@ var require_ReferencedHint = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedHintToJSON)(value.reference) + "reference": (0, _1.FlattenedHintToJSON)(value.reference) }; } exports.ReferencedHintToJSON = ReferencedHintToJSON4; @@ -13161,7 +13641,7 @@ var require_ReferencedModel = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedModelToJSON = exports.ReferencedModelFromJSONTyped = exports.ReferencedModelFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedModelFromJSON4(json) { return ReferencedModelFromJSONTyped28(json, false); } @@ -13171,7 +13651,7 @@ var require_ReferencedModel = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"] }; } @@ -13184,7 +13664,7 @@ var require_ReferencedModel = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id }; } @@ -13199,7 +13679,7 @@ var require_ReferencedPerson = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedPersonToJSON = exports.ReferencedPersonFromJSONTyped = exports.ReferencedPersonFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedPersonFromJSON4(json) { return ReferencedPersonFromJSONTyped15(json, false); } @@ -13209,9 +13689,9 @@ var require_ReferencedPerson = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedPersonFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedPersonFromJSON)(json["reference"]) }; } exports.ReferencedPersonFromJSONTyped = ReferencedPersonFromJSONTyped15; @@ -13223,9 +13703,9 @@ var require_ReferencedPerson = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedPersonToJSON)(value.reference) + "reference": (0, _1.FlattenedPersonToJSON)(value.reference) }; } exports.ReferencedPersonToJSON = ReferencedPersonToJSON4; @@ -13239,7 +13719,7 @@ var require_ReferencedSensitive = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedSensitiveToJSON = exports.ReferencedSensitiveFromJSONTyped = exports.ReferencedSensitiveFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedSensitiveFromJSON4(json) { return ReferencedSensitiveFromJSONTyped9(json, false); } @@ -13249,9 +13729,9 @@ var require_ReferencedSensitive = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedSensitiveFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedSensitiveFromJSON)(json["reference"]) }; } exports.ReferencedSensitiveFromJSONTyped = ReferencedSensitiveFromJSONTyped9; @@ -13263,9 +13743,9 @@ var require_ReferencedSensitive = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedSensitiveToJSON)(value.reference) + "reference": (0, _1.FlattenedSensitiveToJSON)(value.reference) }; } exports.ReferencedSensitiveToJSON = ReferencedSensitiveToJSON4; @@ -13279,7 +13759,7 @@ var require_ReferencedShare = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedShareToJSON = exports.ReferencedShareFromJSONTyped = exports.ReferencedShareFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedShareFromJSON4(json) { return ReferencedShareFromJSONTyped6(json, false); } @@ -13289,9 +13769,9 @@ var require_ReferencedShare = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedShareFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedShareFromJSON)(json["reference"]) }; } exports.ReferencedShareFromJSONTyped = ReferencedShareFromJSONTyped6; @@ -13303,9 +13783,9 @@ var require_ReferencedShare = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedShareToJSON)(value.reference) + "reference": (0, _1.FlattenedShareToJSON)(value.reference) }; } exports.ReferencedShareToJSON = ReferencedShareToJSON4; @@ -13319,7 +13799,7 @@ var require_ReferencedTag = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedTagToJSON = exports.ReferencedTagFromJSONTyped = exports.ReferencedTagFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedTagFromJSON4(json) { return ReferencedTagFromJSONTyped11(json, false); } @@ -13329,9 +13809,9 @@ var require_ReferencedTag = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedTagFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedTagFromJSON)(json["reference"]) }; } exports.ReferencedTagFromJSONTyped = ReferencedTagFromJSONTyped11; @@ -13343,9 +13823,9 @@ var require_ReferencedTag = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedTagToJSON)(value.reference) + "reference": (0, _1.FlattenedTagToJSON)(value.reference) }; } exports.ReferencedTagToJSON = ReferencedTagToJSON4; @@ -13359,7 +13839,7 @@ var require_ReferencedUser = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedUserToJSON = exports.ReferencedUserFromJSONTyped = exports.ReferencedUserFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedUserFromJSON3(json) { return ReferencedUserFromJSONTyped3(json, false); } @@ -13369,9 +13849,9 @@ var require_ReferencedUser = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedUserProfileFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedUserProfileFromJSON)(json["reference"]) }; } exports.ReferencedUserFromJSONTyped = ReferencedUserFromJSONTyped3; @@ -13383,9 +13863,9 @@ var require_ReferencedUser = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedUserProfileToJSON)(value.reference) + "reference": (0, _1.FlattenedUserProfileToJSON)(value.reference) }; } exports.ReferencedUserToJSON = ReferencedUserToJSON3; @@ -13399,7 +13879,7 @@ var require_ReferencedWebsite = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferencedWebsiteToJSON = exports.ReferencedWebsiteFromJSONTyped = exports.ReferencedWebsiteFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReferencedWebsiteFromJSON4(json) { return ReferencedWebsiteFromJSONTyped11(json, false); } @@ -13409,9 +13889,9 @@ var require_ReferencedWebsite = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, index_1.FlattenedWebsiteFromJSON)(json["reference"]) + "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : (0, _1.FlattenedWebsiteFromJSON)(json["reference"]) }; } exports.ReferencedWebsiteFromJSONTyped = ReferencedWebsiteFromJSONTyped11; @@ -13423,9 +13903,9 @@ var require_ReferencedWebsite = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "reference": (0, index_1.FlattenedWebsiteToJSON)(value.reference) + "reference": (0, _1.FlattenedWebsiteToJSON)(value.reference) }; } exports.ReferencedWebsiteToJSON = ReferencedWebsiteToJSON4; @@ -13439,7 +13919,7 @@ var require_Relationship = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.RelationshipToJSON = exports.RelationshipFromJSONTyped = exports.RelationshipFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function RelationshipFromJSON4(json) { return RelationshipFromJSONTyped17(json, false); } @@ -13450,12 +13930,12 @@ var require_Relationship = __commonJS({ } return { "id": json["id"], - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "embeddings": (0, index_1.EmbeddingsFromJSON)(json["embeddings"]), - "edges": (0, index_1.EdgesFromJSON)(json["edges"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "embeddings": (0, _1.EmbeddingsFromJSON)(json["embeddings"]), + "edges": (0, _1.EdgesFromJSON)(json["edges"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]) }; } exports.RelationshipFromJSONTyped = RelationshipFromJSONTyped17; @@ -13468,12 +13948,12 @@ var require_Relationship = __commonJS({ } return { "id": value.id, - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "embeddings": (0, index_1.EmbeddingsToJSON)(value.embeddings), - "edges": (0, index_1.EdgesToJSON)(value.edges), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "embeddings": (0, _1.EmbeddingsToJSON)(value.embeddings), + "edges": (0, _1.EdgesToJSON)(value.edges), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted) }; } exports.RelationshipToJSON = RelationshipToJSON5; @@ -13486,7 +13966,7 @@ var require_Relationships = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RelationshipsToJSON = exports.RelationshipsFromJSONTyped = exports.RelationshipsFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function RelationshipsFromJSON2(json) { return RelationshipsFromJSONTyped(json, false); } @@ -13496,7 +13976,7 @@ var require_Relationships = __commonJS({ return json; } return { - "iterable": json["iterable"].map(index_1.RelationshipFromJSON) + "iterable": json["iterable"].map(_1.RelationshipFromJSON) }; } exports.RelationshipsFromJSONTyped = RelationshipsFromJSONTyped; @@ -13508,7 +13988,7 @@ var require_Relationships = __commonJS({ return null; } return { - "iterable": value.iterable.map(index_1.RelationshipToJSON) + "iterable": value.iterable.map(_1.RelationshipToJSON) }; } exports.RelationshipsToJSON = RelationshipsToJSON2; @@ -13522,7 +14002,7 @@ var require_RelevantQGPTSeed = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.RelevantQGPTSeedToJSON = exports.RelevantQGPTSeedFromJSONTyped = exports.RelevantQGPTSeedFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function RelevantQGPTSeedFromJSON3(json) { return RelevantQGPTSeedFromJSONTyped4(json, false); } @@ -13532,11 +14012,11 @@ var require_RelevantQGPTSeed = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": !(0, runtime_1.exists)(json, "id") ? void 0 : json["id"], - "seed": !(0, runtime_1.exists)(json, "seed") ? void 0 : (0, index_1.SeedFromJSON)(json["seed"]), + "seed": !(0, runtime_1.exists)(json, "seed") ? void 0 : (0, _1.SeedFromJSON)(json["seed"]), "path": !(0, runtime_1.exists)(json, "path") ? void 0 : json["path"], - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.ReferencedAssetFromJSON)(json["asset"]) + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.ReferencedAssetFromJSON)(json["asset"]) }; } exports.RelevantQGPTSeedFromJSONTyped = RelevantQGPTSeedFromJSONTyped4; @@ -13548,11 +14028,11 @@ var require_RelevantQGPTSeed = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "seed": (0, index_1.SeedToJSON)(value.seed), + "seed": (0, _1.SeedToJSON)(value.seed), "path": value.path, - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset) + "asset": (0, _1.ReferencedAssetToJSON)(value.asset) }; } exports.RelevantQGPTSeedToJSON = RelevantQGPTSeedToJSON3; @@ -13566,7 +14046,7 @@ var require_RelevantQGPTSeeds = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.RelevantQGPTSeedsToJSON = exports.RelevantQGPTSeedsFromJSONTyped = exports.RelevantQGPTSeedsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function RelevantQGPTSeedsFromJSON3(json) { return RelevantQGPTSeedsFromJSONTyped8(json, false); } @@ -13576,8 +14056,8 @@ var require_RelevantQGPTSeeds = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.RelevantQGPTSeedFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.RelevantQGPTSeedFromJSON) }; } exports.RelevantQGPTSeedsFromJSONTyped = RelevantQGPTSeedsFromJSONTyped8; @@ -13589,8 +14069,8 @@ var require_RelevantQGPTSeeds = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.RelevantQGPTSeedToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.RelevantQGPTSeedToJSON) }; } exports.RelevantQGPTSeedsToJSON = RelevantQGPTSeedsToJSON3; @@ -13604,7 +14084,7 @@ var require_ResultedPKCE = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ResultedPKCEToJSON = exports.ResultedPKCEFromJSONTyped = exports.ResultedPKCEFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ResultedPKCEFromJSON3(json) { return ResultedPKCEFromJSONTyped3(json, false); } @@ -13614,7 +14094,7 @@ var require_ResultedPKCE = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "code": json["code"], "state": json["state"] }; @@ -13628,7 +14108,7 @@ var require_ResultedPKCE = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "code": value.code, "state": value.state }; @@ -13644,7 +14124,7 @@ var require_ReturnedUserProfile = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReturnedUserProfileToJSON = exports.ReturnedUserProfileFromJSONTyped = exports.ReturnedUserProfileFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReturnedUserProfileFromJSON2(json) { return ReturnedUserProfileFromJSONTyped2(json, false); } @@ -13654,8 +14134,8 @@ var require_ReturnedUserProfile = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.UserProfileFromJSON)(json["user"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.UserProfileFromJSON)(json["user"]) }; } exports.ReturnedUserProfileFromJSONTyped = ReturnedUserProfileFromJSONTyped2; @@ -13667,8 +14147,8 @@ var require_ReturnedUserProfile = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "user": (0, index_1.UserProfileToJSON)(value.user) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "user": (0, _1.UserProfileToJSON)(value.user) }; } exports.ReturnedUserProfileToJSON = ReturnedUserProfileToJSON3; @@ -13682,7 +14162,7 @@ var require_ReuseReaction = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReuseReactionToJSON = exports.ReuseReactionFromJSONTyped = exports.ReuseReactionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReuseReactionFromJSON4(json) { return ReuseReactionFromJSONTyped4(json, false); } @@ -13692,7 +14172,7 @@ var require_ReuseReaction = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "asset": json["asset"] }; } @@ -13705,7 +14185,7 @@ var require_ReuseReaction = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset": value.asset }; } @@ -13720,7 +14200,7 @@ var require_ReuseSuggestion = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReuseSuggestionToJSON = exports.ReuseSuggestionFromJSONTyped = exports.ReuseSuggestionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ReuseSuggestionFromJSON4(json) { return ReuseSuggestionFromJSONTyped5(json, false); } @@ -13730,9 +14210,9 @@ var require_ReuseSuggestion = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "suggested": json["suggested"], - "assets": (0, index_1.AssetsFromJSON)(json["assets"]) + "assets": (0, _1.AssetsFromJSON)(json["assets"]) }; } exports.ReuseSuggestionFromJSONTyped = ReuseSuggestionFromJSONTyped5; @@ -13744,9 +14224,9 @@ var require_ReuseSuggestion = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "suggested": value.suggested, - "assets": (0, index_1.AssetsToJSON)(value.assets) + "assets": (0, _1.AssetsToJSON)(value.assets) }; } exports.ReuseSuggestionToJSON = ReuseSuggestionToJSON4; @@ -13760,7 +14240,7 @@ var require_RevokedPKCE = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.RevokedPKCEToJSON = exports.RevokedPKCEFromJSONTyped = exports.RevokedPKCEFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function RevokedPKCEFromJSON3(json) { return RevokedPKCEFromJSONTyped3(json, false); } @@ -13770,7 +14250,7 @@ var require_RevokedPKCE = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "clientId": json["client_id"], "token": json["token"] }; @@ -13784,7 +14264,7 @@ var require_RevokedPKCE = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "client_id": value.clientId, "token": value.token }; @@ -13828,7 +14308,7 @@ var require_SaveSuggestion = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SaveSuggestionToJSON = exports.SaveSuggestionFromJSONTyped = exports.SaveSuggestionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SaveSuggestionFromJSON4(json) { return SaveSuggestionFromJSONTyped5(json, false); } @@ -13838,7 +14318,7 @@ var require_SaveSuggestion = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "suggested": json["suggested"] }; } @@ -13851,7 +14331,7 @@ var require_SaveSuggestion = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "suggested": value.suggested }; } @@ -13866,7 +14346,7 @@ var require_Score = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ScoreToJSON = exports.ScoreFromJSONTyped = exports.ScoreFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ScoreFromJSON4(json) { return ScoreFromJSONTyped143(json, false); } @@ -13876,7 +14356,7 @@ var require_Score = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "manual": json["manual"], "automatic": json["automatic"], "priority": !(0, runtime_1.exists)(json, "priority") ? void 0 : json["priority"], @@ -13894,7 +14374,7 @@ var require_Score = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "manual": value.manual, "automatic": value.automatic, "priority": value.priority, @@ -13914,7 +14394,7 @@ var require_SearchedAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SearchedAssetToJSON = exports.SearchedAssetFromJSONTyped = exports.SearchedAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SearchedAssetFromJSON4(json) { return SearchedAssetFromJSONTyped6(json, false); } @@ -13924,11 +14404,11 @@ var require_SearchedAsset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.AssetFromJSON)(json["asset"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.AssetFromJSON)(json["asset"]), "exact": json["exact"], "score": json["score"], - "match": (0, index_1.SearchedMatchEnumFromJSON)(json["match"]), + "match": (0, _1.SearchedMatchEnumFromJSON)(json["match"]), "identifier": json["identifier"], "pseudo": !(0, runtime_1.exists)(json, "pseudo") ? void 0 : json["pseudo"] }; @@ -13942,11 +14422,11 @@ var require_SearchedAsset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "asset": (0, index_1.AssetToJSON)(value.asset), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "asset": (0, _1.AssetToJSON)(value.asset), "exact": value.exact, "score": value.score, - "match": (0, index_1.SearchedMatchEnumToJSON)(value.match), + "match": (0, _1.SearchedMatchEnumToJSON)(value.match), "identifier": value.identifier, "pseudo": value.pseudo }; @@ -13962,7 +14442,7 @@ var require_SearchedAssets = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SearchedAssetsToJSON = exports.SearchedAssetsFromJSONTyped = exports.SearchedAssetsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SearchedAssetsFromJSON4(json) { return SearchedAssetsFromJSONTyped7(json, false); } @@ -13972,8 +14452,8 @@ var require_SearchedAssets = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.SearchedAssetFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.SearchedAssetFromJSON), "suggested": json["suggested"], "exact": json["exact"] }; @@ -13987,8 +14467,8 @@ var require_SearchedAssets = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.SearchedAssetToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.SearchedAssetToJSON), "suggested": value.suggested, "exact": value.exact }; @@ -14037,7 +14517,7 @@ var require_Seed = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeedToJSON = exports.SeedFromJSONTyped = exports.SeedFromJSON = exports.SeedTypeEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var SeedTypeEnum2; (function(SeedTypeEnum3) { SeedTypeEnum3["Format"] = "SEEDED_FORMAT"; @@ -14052,8 +14532,8 @@ var require_Seed = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.SeededAssetFromJSON)(json["asset"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.SeededAssetFromJSON)(json["asset"]), "type": json["type"] }; } @@ -14066,8 +14546,8 @@ var require_Seed = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "asset": (0, index_1.SeededAssetToJSON)(value.asset), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "asset": (0, _1.SeededAssetToJSON)(value.asset), "type": value.type }; } @@ -14082,7 +14562,7 @@ var require_SeededAccessor = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAccessorToJSON = exports.SeededAccessorFromJSONTyped = exports.SeededAccessorFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAccessorFromJSON2(json) { return SeededAccessorFromJSONTyped(json, false); } @@ -14092,9 +14572,9 @@ var require_SeededAccessor = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "os": json["os"], - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.FlattenedUserProfileFromJSON)(json["user"]), + "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.FlattenedUserProfileFromJSON)(json["user"]), "share": json["share"] }; } @@ -14107,9 +14587,9 @@ var require_SeededAccessor = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "os": value.os, - "user": (0, index_1.FlattenedUserProfileToJSON)(value.user), + "user": (0, _1.FlattenedUserProfileToJSON)(value.user), "share": value.share }; } @@ -14124,7 +14604,7 @@ var require_SeededActivity = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededActivityToJSON = exports.SeededActivityFromJSONTyped = exports.SeededActivityFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededActivityFromJSON2(json) { return SeededActivityFromJSONTyped(json, false); } @@ -14134,12 +14614,12 @@ var require_SeededActivity = __commonJS({ return json; } return { - "event": (0, index_1.SeededConnectorTrackingFromJSON)(json["event"]), - "application": (0, index_1.ApplicationFromJSON)(json["application"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.ReferencedAssetFromJSON)(json["asset"]), - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.ReferencedUserFromJSON)(json["user"]), - "format": !(0, runtime_1.exists)(json, "format") ? void 0 : (0, index_1.ReferencedFormatFromJSON)(json["format"]), - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]) + "event": (0, _1.SeededConnectorTrackingFromJSON)(json["event"]), + "application": (0, _1.ApplicationFromJSON)(json["application"]), + "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"]) }; } exports.SeededActivityFromJSONTyped = SeededActivityFromJSONTyped; @@ -14151,12 +14631,12 @@ var require_SeededActivity = __commonJS({ return null; } return { - "event": (0, index_1.SeededConnectorTrackingToJSON)(value.event), - "application": (0, index_1.ApplicationToJSON)(value.application), - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), - "user": (0, index_1.ReferencedUserToJSON)(value.user), - "format": (0, index_1.ReferencedFormatToJSON)(value.format), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism) + "event": (0, _1.SeededConnectorTrackingToJSON)(value.event), + "application": (0, _1.ApplicationToJSON)(value.application), + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), + "user": (0, _1.ReferencedUserToJSON)(value.user), + "format": (0, _1.ReferencedFormatToJSON)(value.format), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism) }; } exports.SeededActivityToJSON = SeededActivityToJSON2; @@ -14170,7 +14650,7 @@ var require_SeededAnchor = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAnchorToJSON = exports.SeededAnchorFromJSONTyped = exports.SeededAnchorFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAnchorFromJSON5(json) { return SeededAnchorFromJSONTyped8(json, false); } @@ -14180,14 +14660,14 @@ var require_SeededAnchor = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "type": (0, index_1.AnchorTypeEnumFromJSON)(json["type"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "type": (0, _1.AnchorTypeEnumFromJSON)(json["type"]), "watch": !(0, runtime_1.exists)(json, "watch") ? void 0 : json["watch"], "fullpath": json["fullpath"], "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : json["asset"], - "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, index_1.PlatformEnumFromJSON)(json["platform"]), + "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, _1.PlatformEnumFromJSON)(json["platform"]), "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : json["annotations"].map(index_1.SeededAnnotationFromJSON), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : json["annotations"].map(_1.SeededAnnotationFromJSON), "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : json["conversation"] }; } @@ -14200,14 +14680,14 @@ var require_SeededAnchor = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "type": (0, index_1.AnchorTypeEnumToJSON)(value.type), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "type": (0, _1.AnchorTypeEnumToJSON)(value.type), "watch": value.watch, "fullpath": value.fullpath, "asset": value.asset, - "platform": (0, index_1.PlatformEnumToJSON)(value.platform), + "platform": (0, _1.PlatformEnumToJSON)(value.platform), "name": value.name, - "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(index_1.SeededAnnotationToJSON), + "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(_1.SeededAnnotationToJSON), "conversation": value.conversation }; } @@ -14222,7 +14702,7 @@ var require_SeededAnchorPoint = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAnchorPointToJSON = exports.SeededAnchorPointFromJSONTyped = exports.SeededAnchorPointFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAnchorPointFromJSON2(json) { return SeededAnchorPointFromJSONTyped(json, false); } @@ -14232,12 +14712,12 @@ var require_SeededAnchorPoint = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "type": (0, index_1.AnchorTypeEnumFromJSON)(json["type"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "type": (0, _1.AnchorTypeEnumFromJSON)(json["type"]), "watch": !(0, runtime_1.exists)(json, "watch") ? void 0 : json["watch"], "fullpath": json["fullpath"], "anchor": json["anchor"], - "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, index_1.PlatformEnumFromJSON)(json["platform"]) + "platform": !(0, runtime_1.exists)(json, "platform") ? void 0 : (0, _1.PlatformEnumFromJSON)(json["platform"]) }; } exports.SeededAnchorPointFromJSONTyped = SeededAnchorPointFromJSONTyped; @@ -14249,12 +14729,12 @@ var require_SeededAnchorPoint = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "type": (0, index_1.AnchorTypeEnumToJSON)(value.type), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "type": (0, _1.AnchorTypeEnumToJSON)(value.type), "watch": value.watch, "fullpath": value.fullpath, "anchor": value.anchor, - "platform": (0, index_1.PlatformEnumToJSON)(value.platform) + "platform": (0, _1.PlatformEnumToJSON)(value.platform) }; } exports.SeededAnchorPointToJSON = SeededAnchorPointToJSON2; @@ -14268,7 +14748,7 @@ var require_SeededAnnotation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAnnotationToJSON = exports.SeededAnnotationFromJSONTyped = exports.SeededAnnotationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAnnotationFromJSON5(json) { return SeededAnnotationFromJSONTyped14(json, false); } @@ -14278,18 +14758,18 @@ var require_SeededAnnotation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : json["asset"], "person": !(0, runtime_1.exists)(json, "person") ? void 0 : json["person"], - "type": (0, index_1.AnnotationTypeEnumFromJSON)(json["type"]), + "type": (0, _1.AnnotationTypeEnumFromJSON)(json["type"]), "text": json["text"], "model": !(0, runtime_1.exists)(json, "model") ? void 0 : json["model"], "pseudo": !(0, runtime_1.exists)(json, "pseudo") ? void 0 : json["pseudo"], "favorited": !(0, runtime_1.exists)(json, "favorited") ? void 0 : json["favorited"], "anchor": !(0, runtime_1.exists)(json, "anchor") ? void 0 : json["anchor"], "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : json["conversation"], - "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, index_1.FlattenedConversationMessagesFromJSON)(json["messages"]) + "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : (0, _1.FlattenedConversationMessagesFromJSON)(json["messages"]) }; } exports.SeededAnnotationFromJSONTyped = SeededAnnotationFromJSONTyped14; @@ -14301,18 +14781,18 @@ var require_SeededAnnotation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), "asset": value.asset, "person": value.person, - "type": (0, index_1.AnnotationTypeEnumToJSON)(value.type), + "type": (0, _1.AnnotationTypeEnumToJSON)(value.type), "text": value.text, "model": value.model, "pseudo": value.pseudo, "favorited": value.favorited, "anchor": value.anchor, "conversation": value.conversation, - "messages": (0, index_1.FlattenedConversationMessagesToJSON)(value.messages) + "messages": (0, _1.FlattenedConversationMessagesToJSON)(value.messages) }; } exports.SeededAnnotationToJSON = SeededAnnotationToJSON4; @@ -14326,7 +14806,7 @@ var require_SeededAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAssetToJSON = exports.SeededAssetFromJSONTyped = exports.SeededAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAssetFromJSON3(json) { return SeededAssetFromJSONTyped5(json, false); } @@ -14336,12 +14816,12 @@ var require_SeededAsset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.SeededAssetMetadataFromJSON)(json["metadata"]), - "application": (0, index_1.ApplicationFromJSON)(json["application"]), - "format": (0, index_1.SeededFormatFromJSON)(json["format"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.SeededAssetMetadataFromJSON)(json["metadata"]), + "application": (0, _1.ApplicationFromJSON)(json["application"]), + "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, index_1.AvailableFormatsFromJSON)(json["available"]), + "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"] }; } @@ -14354,12 +14834,12 @@ var require_SeededAsset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "metadata": (0, index_1.SeededAssetMetadataToJSON)(value.metadata), - "application": (0, index_1.ApplicationToJSON)(value.application), - "format": (0, index_1.SeededFormatToJSON)(value.format), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "metadata": (0, _1.SeededAssetMetadataToJSON)(value.metadata), + "application": (0, _1.ApplicationToJSON)(value.application), + "format": (0, _1.SeededFormatToJSON)(value.format), "discovered": value.discovered, - "available": (0, index_1.AvailableFormatsToJSON)(value.available), + "available": (0, _1.AvailableFormatsToJSON)(value.available), "pseudo": value.pseudo }; } @@ -14374,7 +14854,7 @@ var require_SeededAssetMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAssetMetadataToJSON = exports.SeededAssetMetadataFromJSONTyped = exports.SeededAssetMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAssetMetadataFromJSON4(json) { return SeededAssetMetadataFromJSONTyped10(json, false); } @@ -14384,16 +14864,16 @@ var require_SeededAssetMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "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"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : json["tags"].map(index_1.SeededAssetTagFromJSON), - "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : json["websites"].map(index_1.SeededAssetWebsiteFromJSON), - "sensitives": !(0, runtime_1.exists)(json, "sensitives") ? void 0 : json["sensitives"].map(index_1.SeededAssetSensitiveFromJSON), - "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : json["persons"].map(index_1.SeededPersonFromJSON), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : json["annotations"].map(index_1.SeededAnnotationFromJSON), - "hints": !(0, runtime_1.exists)(json, "hints") ? void 0 : json["hints"].map(index_1.SeededHintFromJSON), - "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : json["anchors"].map(index_1.SeededAnchorFromJSON) + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : json["tags"].map(_1.SeededAssetTagFromJSON), + "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : json["websites"].map(_1.SeededAssetWebsiteFromJSON), + "sensitives": !(0, runtime_1.exists)(json, "sensitives") ? void 0 : json["sensitives"].map(_1.SeededAssetSensitiveFromJSON), + "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : json["persons"].map(_1.SeededPersonFromJSON), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : json["annotations"].map(_1.SeededAnnotationFromJSON), + "hints": !(0, runtime_1.exists)(json, "hints") ? void 0 : json["hints"].map(_1.SeededHintFromJSON), + "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : json["anchors"].map(_1.SeededAnchorFromJSON) }; } exports.SeededAssetMetadataFromJSONTyped = SeededAssetMetadataFromJSONTyped10; @@ -14405,16 +14885,16 @@ var require_SeededAssetMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "name": value.name, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "tags": value.tags === void 0 ? void 0 : value.tags.map(index_1.SeededAssetTagToJSON), - "websites": value.websites === void 0 ? void 0 : value.websites.map(index_1.SeededAssetWebsiteToJSON), - "sensitives": value.sensitives === void 0 ? void 0 : value.sensitives.map(index_1.SeededAssetSensitiveToJSON), - "persons": value.persons === void 0 ? void 0 : value.persons.map(index_1.SeededPersonToJSON), - "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(index_1.SeededAnnotationToJSON), - "hints": value.hints === void 0 ? void 0 : value.hints.map(index_1.SeededHintToJSON), - "anchors": value.anchors === void 0 ? void 0 : value.anchors.map(index_1.SeededAnchorToJSON) + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "tags": value.tags === void 0 ? void 0 : value.tags.map(_1.SeededAssetTagToJSON), + "websites": value.websites === void 0 ? void 0 : value.websites.map(_1.SeededAssetWebsiteToJSON), + "sensitives": value.sensitives === void 0 ? void 0 : value.sensitives.map(_1.SeededAssetSensitiveToJSON), + "persons": value.persons === void 0 ? void 0 : value.persons.map(_1.SeededPersonToJSON), + "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(_1.SeededAnnotationToJSON), + "hints": value.hints === void 0 ? void 0 : value.hints.map(_1.SeededHintToJSON), + "anchors": value.anchors === void 0 ? void 0 : value.anchors.map(_1.SeededAnchorToJSON) }; } exports.SeededAssetMetadataToJSON = SeededAssetMetadataToJSON4; @@ -14428,7 +14908,7 @@ var require_SeededAssetSensitive = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAssetSensitiveToJSON = exports.SeededAssetSensitiveFromJSONTyped = exports.SeededAssetSensitiveFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAssetSensitiveFromJSON4(json) { return SeededAssetSensitiveFromJSONTyped6(json, false); } @@ -14438,14 +14918,14 @@ var require_SeededAssetSensitive = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "text": json["text"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "category": (0, index_1.SensitiveCategoryEnumFromJSON)(json["category"]), - "severity": (0, index_1.SensitiveSeverityEnumFromJSON)(json["severity"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "category": (0, _1.SensitiveCategoryEnumFromJSON)(json["category"]), + "severity": (0, _1.SensitiveSeverityEnumFromJSON)(json["severity"]), "name": json["name"], "description": json["description"], - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.SensitiveMetadataFromJSON)(json["metadata"]) + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.SensitiveMetadataFromJSON)(json["metadata"]) }; } exports.SeededAssetSensitiveFromJSONTyped = SeededAssetSensitiveFromJSONTyped6; @@ -14457,14 +14937,14 @@ var require_SeededAssetSensitive = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "text": value.text, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "category": (0, index_1.SensitiveCategoryEnumToJSON)(value.category), - "severity": (0, index_1.SensitiveSeverityEnumToJSON)(value.severity), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "category": (0, _1.SensitiveCategoryEnumToJSON)(value.category), + "severity": (0, _1.SensitiveSeverityEnumToJSON)(value.severity), "name": value.name, "description": value.description, - "metadata": (0, index_1.SensitiveMetadataToJSON)(value.metadata) + "metadata": (0, _1.SensitiveMetadataToJSON)(value.metadata) }; } exports.SeededAssetSensitiveToJSON = SeededAssetSensitiveToJSON4; @@ -14478,7 +14958,7 @@ var require_SeededAssetTag = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAssetTagToJSON = exports.SeededAssetTagFromJSONTyped = exports.SeededAssetTagFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAssetTagFromJSON4(json) { return SeededAssetTagFromJSONTyped8(json, false); } @@ -14488,10 +14968,10 @@ var require_SeededAssetTag = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "text": json["text"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "category": !(0, runtime_1.exists)(json, "category") ? void 0 : (0, index_1.TagCategoryEnumFromJSON)(json["category"]) + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "category": !(0, runtime_1.exists)(json, "category") ? void 0 : (0, _1.TagCategoryEnumFromJSON)(json["category"]) }; } exports.SeededAssetTagFromJSONTyped = SeededAssetTagFromJSONTyped8; @@ -14503,10 +14983,10 @@ var require_SeededAssetTag = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "text": value.text, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "category": (0, index_1.TagCategoryEnumToJSON)(value.category) + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "category": (0, _1.TagCategoryEnumToJSON)(value.category) }; } exports.SeededAssetTagToJSON = SeededAssetTagToJSON4; @@ -14519,7 +14999,7 @@ var require_SeededAssetTags = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAssetTagsToJSON = exports.SeededAssetTagsFromJSONTyped = exports.SeededAssetTagsFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function SeededAssetTagsFromJSON2(json) { return SeededAssetTagsFromJSONTyped(json, false); } @@ -14529,7 +15009,7 @@ var require_SeededAssetTags = __commonJS({ return json; } return { - "iterable": json["iterable"].map(index_1.SeededAssetTagFromJSON) + "iterable": json["iterable"].map(_1.SeededAssetTagFromJSON) }; } exports.SeededAssetTagsFromJSONTyped = SeededAssetTagsFromJSONTyped; @@ -14541,7 +15021,7 @@ var require_SeededAssetTags = __commonJS({ return null; } return { - "iterable": value.iterable.map(index_1.SeededAssetTagToJSON) + "iterable": value.iterable.map(_1.SeededAssetTagToJSON) }; } exports.SeededAssetTagsToJSON = SeededAssetTagsToJSON2; @@ -14555,7 +15035,7 @@ var require_SeededAssetWebsite = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAssetWebsiteToJSON = exports.SeededAssetWebsiteFromJSONTyped = exports.SeededAssetWebsiteFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAssetWebsiteFromJSON4(json) { return SeededAssetWebsiteFromJSONTyped6(json, false); } @@ -14565,10 +15045,10 @@ var require_SeededAssetWebsite = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "url": json["url"], "name": json["name"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]) + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]) }; } exports.SeededAssetWebsiteFromJSONTyped = SeededAssetWebsiteFromJSONTyped6; @@ -14580,10 +15060,10 @@ var require_SeededAssetWebsite = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "url": value.url, "name": value.name, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism) + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism) }; } exports.SeededAssetWebsiteToJSON = SeededAssetWebsiteToJSON4; @@ -14597,7 +15077,7 @@ var require_SeededAssetsRecommendation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededAssetsRecommendationToJSON = exports.SeededAssetsRecommendationFromJSONTyped = exports.SeededAssetsRecommendationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededAssetsRecommendationFromJSON2(json) { return SeededAssetsRecommendationFromJSONTyped(json, false); } @@ -14607,9 +15087,9 @@ var require_SeededAssetsRecommendation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "assets": (0, index_1.AssetsFromJSON)(json["assets"]), - "interactions": (0, index_1.InteractedAssetsFromJSON)(json["interactions"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "assets": (0, _1.AssetsFromJSON)(json["assets"]), + "interactions": (0, _1.InteractedAssetsFromJSON)(json["interactions"]) }; } exports.SeededAssetsRecommendationFromJSONTyped = SeededAssetsRecommendationFromJSONTyped; @@ -14621,9 +15101,9 @@ var require_SeededAssetsRecommendation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "assets": (0, index_1.AssetsToJSON)(value.assets), - "interactions": (0, index_1.InteractedAssetsToJSON)(value.interactions) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "assets": (0, _1.AssetsToJSON)(value.assets), + "interactions": (0, _1.InteractedAssetsToJSON)(value.interactions) }; } exports.SeededAssetsRecommendationToJSON = SeededAssetsRecommendationToJSON2; @@ -14637,7 +15117,7 @@ var require_SeededClassification = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededClassificationToJSON = exports.SeededClassificationFromJSONTyped = exports.SeededClassificationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededClassificationFromJSON4(json) { return SeededClassificationFromJSONTyped6(json, false); } @@ -14647,10 +15127,10 @@ var require_SeededClassification = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "generic": !(0, runtime_1.exists)(json, "generic") ? void 0 : (0, index_1.ClassificationGenericEnumFromJSON)(json["generic"]), - "specific": !(0, runtime_1.exists)(json, "specific") ? void 0 : (0, index_1.ClassificationSpecificEnumFromJSON)(json["specific"]), - "rendering": !(0, runtime_1.exists)(json, "rendering") ? void 0 : (0, index_1.ClassificationRenderingEnumFromJSON)(json["rendering"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "generic": !(0, runtime_1.exists)(json, "generic") ? void 0 : (0, _1.ClassificationGenericEnumFromJSON)(json["generic"]), + "specific": !(0, runtime_1.exists)(json, "specific") ? void 0 : (0, _1.ClassificationSpecificEnumFromJSON)(json["specific"]), + "rendering": !(0, runtime_1.exists)(json, "rendering") ? void 0 : (0, _1.ClassificationRenderingEnumFromJSON)(json["rendering"]) }; } exports.SeededClassificationFromJSONTyped = SeededClassificationFromJSONTyped6; @@ -14662,10 +15142,10 @@ var require_SeededClassification = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "generic": (0, index_1.ClassificationGenericEnumToJSON)(value.generic), - "specific": (0, index_1.ClassificationSpecificEnumToJSON)(value.specific), - "rendering": (0, index_1.ClassificationRenderingEnumToJSON)(value.rendering) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "generic": (0, _1.ClassificationGenericEnumToJSON)(value.generic), + "specific": (0, _1.ClassificationSpecificEnumToJSON)(value.specific), + "rendering": (0, _1.ClassificationRenderingEnumToJSON)(value.rendering) }; } exports.SeededClassificationToJSON = SeededClassificationToJSON4; @@ -14679,7 +15159,7 @@ var require_SeededConnectorAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededConnectorAssetToJSON = exports.SeededConnectorAssetFromJSONTyped = exports.SeededConnectorAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededConnectorAssetFromJSON6(json) { return SeededConnectorAssetFromJSONTyped5(json, false); } @@ -14689,9 +15169,9 @@ var require_SeededConnectorAsset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.SeededAssetMetadataFromJSON)(json["metadata"]), - "format": (0, index_1.SeededFormatFromJSON)(json["format"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.SeededAssetMetadataFromJSON)(json["metadata"]), + "format": (0, _1.SeededFormatFromJSON)(json["format"]) }; } exports.SeededConnectorAssetFromJSONTyped = SeededConnectorAssetFromJSONTyped5; @@ -14703,9 +15183,9 @@ var require_SeededConnectorAsset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "metadata": (0, index_1.SeededAssetMetadataToJSON)(value.metadata), - "format": (0, index_1.SeededFormatToJSON)(value.format) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "metadata": (0, _1.SeededAssetMetadataToJSON)(value.metadata), + "format": (0, _1.SeededFormatToJSON)(value.format) }; } exports.SeededConnectorAssetToJSON = SeededConnectorAssetToJSON4; @@ -14719,7 +15199,7 @@ var require_SeededConnectorConnection = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededConnectorConnectionToJSON = exports.SeededConnectorConnectionFromJSONTyped = exports.SeededConnectorConnectionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededConnectorConnectionFromJSON3(json) { return SeededConnectorConnectionFromJSONTyped(json, false); } @@ -14729,8 +15209,8 @@ var require_SeededConnectorConnection = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "application": (0, index_1.SeededTrackedApplicationFromJSON)(json["application"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "application": (0, _1.SeededTrackedApplicationFromJSON)(json["application"]) }; } exports.SeededConnectorConnectionFromJSONTyped = SeededConnectorConnectionFromJSONTyped; @@ -14742,8 +15222,8 @@ var require_SeededConnectorConnection = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "application": (0, index_1.SeededTrackedApplicationToJSON)(value.application) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "application": (0, _1.SeededTrackedApplicationToJSON)(value.application) }; } exports.SeededConnectorConnectionToJSON = SeededConnectorConnectionToJSON3; @@ -14757,7 +15237,7 @@ var require_SeededConnectorCreation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededConnectorCreationToJSON = exports.SeededConnectorCreationFromJSONTyped = exports.SeededConnectorCreationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededConnectorCreationFromJSON6(json) { return SeededConnectorCreationFromJSONTyped8(json, false); } @@ -14767,8 +15247,8 @@ var require_SeededConnectorCreation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.SeededConnectorAssetFromJSON)(json["asset"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.SeededConnectorAssetFromJSON)(json["asset"]) }; } exports.SeededConnectorCreationFromJSONTyped = SeededConnectorCreationFromJSONTyped8; @@ -14780,8 +15260,8 @@ var require_SeededConnectorCreation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "asset": (0, index_1.SeededConnectorAssetToJSON)(value.asset) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "asset": (0, _1.SeededConnectorAssetToJSON)(value.asset) }; } exports.SeededConnectorCreationToJSON = SeededConnectorCreationToJSON4; @@ -14795,7 +15275,7 @@ var require_SeededConnectorTracking = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededConnectorTrackingToJSON = exports.SeededConnectorTrackingFromJSONTyped = exports.SeededConnectorTrackingFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededConnectorTrackingFromJSON6(json) { return SeededConnectorTrackingFromJSONTyped11(json, false); } @@ -14805,15 +15285,15 @@ var require_SeededConnectorTracking = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "format": !(0, runtime_1.exists)(json, "format") ? void 0 : (0, index_1.SeededTrackedFormatEventFromJSON)(json["format"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.SeededTrackedAssetEventFromJSON)(json["asset"]), - "interaction": !(0, runtime_1.exists)(json, "interaction") ? void 0 : (0, index_1.SeededTrackedInteractionEventFromJSON)(json["interaction"]), - "keyboard": !(0, runtime_1.exists)(json, "keyboard") ? void 0 : (0, index_1.SeededTrackedKeyboardEventFromJSON)(json["keyboard"]), - "session": !(0, runtime_1.exists)(json, "session") ? void 0 : (0, index_1.SeededTrackedSessionEventFromJSON)(json["session"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.SeededTrackedAssetsEventFromJSON)(json["assets"]), - "ml": !(0, runtime_1.exists)(json, "ml") ? void 0 : (0, index_1.SeededTrackedMachineLearningEventFromJSON)(json["ml"]), - "adoption": !(0, runtime_1.exists)(json, "adoption") ? void 0 : (0, index_1.SeededTrackedAdoptionEventFromJSON)(json["adoption"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "format": !(0, runtime_1.exists)(json, "format") ? void 0 : (0, _1.SeededTrackedFormatEventFromJSON)(json["format"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.SeededTrackedAssetEventFromJSON)(json["asset"]), + "interaction": !(0, runtime_1.exists)(json, "interaction") ? void 0 : (0, _1.SeededTrackedInteractionEventFromJSON)(json["interaction"]), + "keyboard": !(0, runtime_1.exists)(json, "keyboard") ? void 0 : (0, _1.SeededTrackedKeyboardEventFromJSON)(json["keyboard"]), + "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"]) }; } exports.SeededConnectorTrackingFromJSONTyped = SeededConnectorTrackingFromJSONTyped11; @@ -14825,15 +15305,15 @@ var require_SeededConnectorTracking = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "format": (0, index_1.SeededTrackedFormatEventToJSON)(value.format), - "asset": (0, index_1.SeededTrackedAssetEventToJSON)(value.asset), - "interaction": (0, index_1.SeededTrackedInteractionEventToJSON)(value.interaction), - "keyboard": (0, index_1.SeededTrackedKeyboardEventToJSON)(value.keyboard), - "session": (0, index_1.SeededTrackedSessionEventToJSON)(value.session), - "assets": (0, index_1.SeededTrackedAssetsEventToJSON)(value.assets), - "ml": (0, index_1.SeededTrackedMachineLearningEventToJSON)(value.ml), - "adoption": (0, index_1.SeededTrackedAdoptionEventToJSON)(value.adoption) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "format": (0, _1.SeededTrackedFormatEventToJSON)(value.format), + "asset": (0, _1.SeededTrackedAssetEventToJSON)(value.asset), + "interaction": (0, _1.SeededTrackedInteractionEventToJSON)(value.interaction), + "keyboard": (0, _1.SeededTrackedKeyboardEventToJSON)(value.keyboard), + "session": (0, _1.SeededTrackedSessionEventToJSON)(value.session), + "assets": (0, _1.SeededTrackedAssetsEventToJSON)(value.assets), + "ml": (0, _1.SeededTrackedMachineLearningEventToJSON)(value.ml), + "adoption": (0, _1.SeededTrackedAdoptionEventToJSON)(value.adoption) }; } exports.SeededConnectorTrackingToJSON = SeededConnectorTrackingToJSON4; @@ -14847,7 +15327,7 @@ var require_SeededConversation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededConversationToJSON = exports.SeededConversationFromJSONTyped = exports.SeededConversationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededConversationFromJSON2(json) { return SeededConversationFromJSONTyped(json, false); } @@ -14857,16 +15337,16 @@ var require_SeededConversation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "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"], "favorited": !(0, runtime_1.exists)(json, "favorited") ? void 0 : json["favorited"], - "application": !(0, runtime_1.exists)(json, "application") ? void 0 : (0, index_1.ApplicationFromJSON)(json["application"]), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : json["annotations"].map(index_1.SeededAnnotationFromJSON), - "messages": !(0, runtime_1.exists)(json, "messages") ? void 0 : json["messages"].map(index_1.SeededConversationMessageFromJSON), - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ReferencedModelFromJSON)(json["model"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : json["anchors"].map(index_1.SeededAnchorFromJSON), - "type": (0, index_1.ConversationTypeEnumFromJSON)(json["type"]) + "application": !(0, runtime_1.exists)(json, "application") ? void 0 : (0, _1.ApplicationFromJSON)(json["application"]), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : json["annotations"].map(_1.SeededAnnotationFromJSON), + "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"]), + "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : json["anchors"].map(_1.SeededAnchorFromJSON), + "type": (0, _1.ConversationTypeEnumFromJSON)(json["type"]) }; } exports.SeededConversationFromJSONTyped = SeededConversationFromJSONTyped; @@ -14878,16 +15358,16 @@ var require_SeededConversation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "name": value.name, "favorited": value.favorited, - "application": (0, index_1.ApplicationToJSON)(value.application), - "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(index_1.SeededAnnotationToJSON), - "messages": value.messages === void 0 ? void 0 : value.messages.map(index_1.SeededConversationMessageToJSON), - "model": (0, index_1.ReferencedModelToJSON)(value.model), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "anchors": value.anchors === void 0 ? void 0 : value.anchors.map(index_1.SeededAnchorToJSON), - "type": (0, index_1.ConversationTypeEnumToJSON)(value.type) + "application": (0, _1.ApplicationToJSON)(value.application), + "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(_1.SeededAnnotationToJSON), + "messages": value.messages === void 0 ? void 0 : value.messages.map(_1.SeededConversationMessageToJSON), + "model": (0, _1.ReferencedModelToJSON)(value.model), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "anchors": value.anchors === void 0 ? void 0 : value.anchors.map(_1.SeededAnchorToJSON), + "type": (0, _1.ConversationTypeEnumToJSON)(value.type) }; } exports.SeededConversationToJSON = SeededConversationToJSON2; @@ -14901,7 +15381,7 @@ var require_SeededConversationMessage = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededConversationMessageToJSON = exports.SeededConversationMessageFromJSONTyped = exports.SeededConversationMessageFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededConversationMessageFromJSON4(json) { return SeededConversationMessageFromJSONTyped3(json, false); } @@ -14911,13 +15391,13 @@ var require_SeededConversationMessage = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "created": !(0, runtime_1.exists)(json, "created") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.ModelFromJSON)(json["model"]), - "fragment": (0, index_1.FragmentFormatFromJSON)(json["fragment"]), - "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, index_1.ReferencedConversationFromJSON)(json["conversation"]), - "sentiment": !(0, runtime_1.exists)(json, "sentiment") ? void 0 : (0, index_1.ConversationMessageSentimentEnumFromJSON)(json["sentiment"]), - "role": (0, index_1.QGPTConversationMessageRoleEnumFromJSON)(json["role"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "created": !(0, runtime_1.exists)(json, "created") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["created"]), + "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.ModelFromJSON)(json["model"]), + "fragment": (0, _1.FragmentFormatFromJSON)(json["fragment"]), + "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, _1.ReferencedConversationFromJSON)(json["conversation"]), + "sentiment": !(0, runtime_1.exists)(json, "sentiment") ? void 0 : (0, _1.ConversationMessageSentimentEnumFromJSON)(json["sentiment"]), + "role": (0, _1.QGPTConversationMessageRoleEnumFromJSON)(json["role"]) }; } exports.SeededConversationMessageFromJSONTyped = SeededConversationMessageFromJSONTyped3; @@ -14929,13 +15409,13 @@ var require_SeededConversationMessage = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "model": (0, index_1.ModelToJSON)(value.model), - "fragment": (0, index_1.FragmentFormatToJSON)(value.fragment), - "conversation": (0, index_1.ReferencedConversationToJSON)(value.conversation), - "sentiment": (0, index_1.ConversationMessageSentimentEnumToJSON)(value.sentiment), - "role": (0, index_1.QGPTConversationMessageRoleEnumToJSON)(value.role) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "model": (0, _1.ModelToJSON)(value.model), + "fragment": (0, _1.FragmentFormatToJSON)(value.fragment), + "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation), + "sentiment": (0, _1.ConversationMessageSentimentEnumToJSON)(value.sentiment), + "role": (0, _1.QGPTConversationMessageRoleEnumToJSON)(value.role) }; } exports.SeededConversationMessageToJSON = SeededConversationMessageToJSON3; @@ -14949,7 +15429,7 @@ var require_SeededDiscoverableAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDiscoverableAssetToJSON = exports.SeededDiscoverableAssetFromJSONTyped = exports.SeededDiscoverableAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDiscoverableAssetFromJSON3(json) { return SeededDiscoverableAssetFromJSONTyped3(json, false); } @@ -14959,11 +15439,11 @@ var require_SeededDiscoverableAsset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, index_1.SeededFileFromJSON)(json["file"]), - "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, index_1.SeededFragmentFromJSON)(json["fragment"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, _1.SeededFileFromJSON)(json["file"]), + "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, _1.SeededFragmentFromJSON)(json["fragment"]), "directory": !(0, runtime_1.exists)(json, "directory") ? void 0 : json["directory"], - "filters": !(0, runtime_1.exists)(json, "filters") ? void 0 : (0, index_1.TLPDirectedDiscoveryFiltersFromJSON)(json["filters"]) + "filters": !(0, runtime_1.exists)(json, "filters") ? void 0 : (0, _1.TLPDirectedDiscoveryFiltersFromJSON)(json["filters"]) }; } exports.SeededDiscoverableAssetFromJSONTyped = SeededDiscoverableAssetFromJSONTyped3; @@ -14975,11 +15455,11 @@ var require_SeededDiscoverableAsset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "file": (0, index_1.SeededFileToJSON)(value.file), - "fragment": (0, index_1.SeededFragmentToJSON)(value.fragment), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "file": (0, _1.SeededFileToJSON)(value.file), + "fragment": (0, _1.SeededFragmentToJSON)(value.fragment), "directory": value.directory, - "filters": (0, index_1.TLPDirectedDiscoveryFiltersToJSON)(value.filters) + "filters": (0, _1.TLPDirectedDiscoveryFiltersToJSON)(value.filters) }; } exports.SeededDiscoverableAssetToJSON = SeededDiscoverableAssetToJSON3; @@ -14993,7 +15473,7 @@ var require_SeededDiscoverableAssets = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDiscoverableAssetsToJSON = exports.SeededDiscoverableAssetsFromJSONTyped = exports.SeededDiscoverableAssetsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDiscoverableAssetsFromJSON2(json) { return SeededDiscoverableAssetsFromJSONTyped(json, false); } @@ -15003,10 +15483,10 @@ var require_SeededDiscoverableAssets = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "application": json["application"], - "iterable": json["iterable"].map(index_1.SeededDiscoverableAssetFromJSON), - "filters": !(0, runtime_1.exists)(json, "filters") ? void 0 : (0, index_1.TLPDirectedDiscoveryFiltersFromJSON)(json["filters"]) + "iterable": json["iterable"].map(_1.SeededDiscoverableAssetFromJSON), + "filters": !(0, runtime_1.exists)(json, "filters") ? void 0 : (0, _1.TLPDirectedDiscoveryFiltersFromJSON)(json["filters"]) }; } exports.SeededDiscoverableAssetsFromJSONTyped = SeededDiscoverableAssetsFromJSONTyped; @@ -15018,10 +15498,10 @@ var require_SeededDiscoverableAssets = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "application": value.application, - "iterable": value.iterable.map(index_1.SeededDiscoverableAssetToJSON), - "filters": (0, index_1.TLPDirectedDiscoveryFiltersToJSON)(value.filters) + "iterable": value.iterable.map(_1.SeededDiscoverableAssetToJSON), + "filters": (0, _1.TLPDirectedDiscoveryFiltersToJSON)(value.filters) }; } exports.SeededDiscoverableAssetsToJSON = SeededDiscoverableAssetsToJSON2; @@ -15035,7 +15515,7 @@ var require_SeededDiscoverableHtmlWebpage = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDiscoverableHtmlWebpageToJSON = exports.SeededDiscoverableHtmlWebpageFromJSONTyped = exports.SeededDiscoverableHtmlWebpageFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDiscoverableHtmlWebpageFromJSON3(json) { return SeededDiscoverableHtmlWebpageFromJSONTyped3(json, false); } @@ -15045,7 +15525,7 @@ var require_SeededDiscoverableHtmlWebpage = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "url": json["url"], "page": json["page"] }; @@ -15059,7 +15539,7 @@ var require_SeededDiscoverableHtmlWebpage = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "url": value.url, "page": value.page }; @@ -15075,7 +15555,7 @@ var require_SeededDiscoverableHtmlWebpages = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDiscoverableHtmlWebpagesToJSON = exports.SeededDiscoverableHtmlWebpagesFromJSONTyped = exports.SeededDiscoverableHtmlWebpagesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDiscoverableHtmlWebpagesFromJSON2(json) { return SeededDiscoverableHtmlWebpagesFromJSONTyped(json, false); } @@ -15085,8 +15565,8 @@ var require_SeededDiscoverableHtmlWebpages = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.SeededDiscoverableHtmlWebpageFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.SeededDiscoverableHtmlWebpageFromJSON), "application": json["application"] }; } @@ -15099,8 +15579,8 @@ var require_SeededDiscoverableHtmlWebpages = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.SeededDiscoverableHtmlWebpageToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.SeededDiscoverableHtmlWebpageToJSON), "application": value.application }; } @@ -15115,7 +15595,7 @@ var require_SeededDiscoverableRelatedTag = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDiscoverableRelatedTagToJSON = exports.SeededDiscoverableRelatedTagFromJSONTyped = exports.SeededDiscoverableRelatedTagFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDiscoverableRelatedTagFromJSON3(json) { return SeededDiscoverableRelatedTagFromJSONTyped3(json, false); } @@ -15125,12 +15605,12 @@ var require_SeededDiscoverableRelatedTag = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "text": json["text"], "asset": json["asset"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), "format": !(0, runtime_1.exists)(json, "format") ? void 0 : json["format"], - "category": !(0, runtime_1.exists)(json, "category") ? void 0 : (0, index_1.TagCategoryEnumFromJSON)(json["category"]) + "category": !(0, runtime_1.exists)(json, "category") ? void 0 : (0, _1.TagCategoryEnumFromJSON)(json["category"]) }; } exports.SeededDiscoverableRelatedTagFromJSONTyped = SeededDiscoverableRelatedTagFromJSONTyped3; @@ -15142,12 +15622,12 @@ var require_SeededDiscoverableRelatedTag = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "text": value.text, "asset": value.asset, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), "format": value.format, - "category": (0, index_1.TagCategoryEnumToJSON)(value.category) + "category": (0, _1.TagCategoryEnumToJSON)(value.category) }; } exports.SeededDiscoverableRelatedTagToJSON = SeededDiscoverableRelatedTagToJSON3; @@ -15161,7 +15641,7 @@ var require_SeededDiscoverableRelatedTags = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDiscoverableRelatedTagsToJSON = exports.SeededDiscoverableRelatedTagsFromJSONTyped = exports.SeededDiscoverableRelatedTagsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDiscoverableRelatedTagsFromJSON2(json) { return SeededDiscoverableRelatedTagsFromJSONTyped(json, false); } @@ -15171,8 +15651,8 @@ var require_SeededDiscoverableRelatedTags = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.SeededDiscoverableRelatedTagFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.SeededDiscoverableRelatedTagFromJSON), "application": json["application"] }; } @@ -15185,8 +15665,8 @@ var require_SeededDiscoverableRelatedTags = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.SeededDiscoverableRelatedTagToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.SeededDiscoverableRelatedTagToJSON), "application": value.application }; } @@ -15201,7 +15681,7 @@ var require_SeededDiscoverableSensitive = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDiscoverableSensitiveToJSON = exports.SeededDiscoverableSensitiveFromJSONTyped = exports.SeededDiscoverableSensitiveFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDiscoverableSensitiveFromJSON3(json) { return SeededDiscoverableSensitiveFromJSONTyped3(json, false); } @@ -15211,15 +15691,15 @@ var require_SeededDiscoverableSensitive = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "asset": json["asset"], "text": json["text"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "category": !(0, runtime_1.exists)(json, "category") ? void 0 : (0, index_1.SensitiveCategoryEnumFromJSON)(json["category"]), - "severity": !(0, runtime_1.exists)(json, "severity") ? void 0 : (0, index_1.SensitiveSeverityEnumFromJSON)(json["severity"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "category": !(0, runtime_1.exists)(json, "category") ? void 0 : (0, _1.SensitiveCategoryEnumFromJSON)(json["category"]), + "severity": !(0, runtime_1.exists)(json, "severity") ? void 0 : (0, _1.SensitiveSeverityEnumFromJSON)(json["severity"]), "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], "description": !(0, runtime_1.exists)(json, "description") ? void 0 : json["description"], - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.SensitiveMetadataFromJSON)(json["metadata"]) + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.SensitiveMetadataFromJSON)(json["metadata"]) }; } exports.SeededDiscoverableSensitiveFromJSONTyped = SeededDiscoverableSensitiveFromJSONTyped3; @@ -15231,15 +15711,15 @@ var require_SeededDiscoverableSensitive = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset": value.asset, "text": value.text, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "category": (0, index_1.SensitiveCategoryEnumToJSON)(value.category), - "severity": (0, index_1.SensitiveSeverityEnumToJSON)(value.severity), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "category": (0, _1.SensitiveCategoryEnumToJSON)(value.category), + "severity": (0, _1.SensitiveSeverityEnumToJSON)(value.severity), "name": value.name, "description": value.description, - "metadata": (0, index_1.SensitiveMetadataToJSON)(value.metadata) + "metadata": (0, _1.SensitiveMetadataToJSON)(value.metadata) }; } exports.SeededDiscoverableSensitiveToJSON = SeededDiscoverableSensitiveToJSON3; @@ -15253,7 +15733,7 @@ var require_SeededDiscoverableSensitives = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDiscoverableSensitivesToJSON = exports.SeededDiscoverableSensitivesFromJSONTyped = exports.SeededDiscoverableSensitivesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDiscoverableSensitivesFromJSON2(json) { return SeededDiscoverableSensitivesFromJSONTyped(json, false); } @@ -15263,8 +15743,8 @@ var require_SeededDiscoverableSensitives = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.SeededDiscoverableSensitiveFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.SeededDiscoverableSensitiveFromJSON), "application": json["application"] }; } @@ -15277,8 +15757,8 @@ var require_SeededDiscoverableSensitives = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.SeededDiscoverableSensitiveToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.SeededDiscoverableSensitiveToJSON), "application": value.application }; } @@ -15293,7 +15773,7 @@ var require_SeededDistribution = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDistributionToJSON = exports.SeededDistributionFromJSONTyped = exports.SeededDistributionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDistributionFromJSON4(json) { return SeededDistributionFromJSONTyped3(json, false); } @@ -15303,9 +15783,9 @@ var require_SeededDistribution = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "mailgun": !(0, runtime_1.exists)(json, "mailgun") ? void 0 : (0, index_1.MailgunDistributionFromJSON)(json["mailgun"]), - "github": !(0, runtime_1.exists)(json, "github") ? void 0 : (0, index_1.SeededGitHubDistributionFromJSON)(json["github"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "mailgun": !(0, runtime_1.exists)(json, "mailgun") ? void 0 : (0, _1.MailgunDistributionFromJSON)(json["mailgun"]), + "github": !(0, runtime_1.exists)(json, "github") ? void 0 : (0, _1.SeededGitHubDistributionFromJSON)(json["github"]) }; } exports.SeededDistributionFromJSONTyped = SeededDistributionFromJSONTyped3; @@ -15317,9 +15797,9 @@ var require_SeededDistribution = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "mailgun": (0, index_1.MailgunDistributionToJSON)(value.mailgun), - "github": (0, index_1.SeededGitHubDistributionToJSON)(value.github) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "mailgun": (0, _1.MailgunDistributionToJSON)(value.mailgun), + "github": (0, _1.SeededGitHubDistributionToJSON)(value.github) }; } exports.SeededDistributionToJSON = SeededDistributionToJSON3; @@ -15333,7 +15813,7 @@ var require_SeededDistributions = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededDistributionsToJSON = exports.SeededDistributionsFromJSONTyped = exports.SeededDistributionsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededDistributionsFromJSON3(json) { return SeededDistributionsFromJSONTyped3(json, false); } @@ -15343,8 +15823,8 @@ var require_SeededDistributions = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.SeededDistributionFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.SeededDistributionFromJSON) }; } exports.SeededDistributionsFromJSONTyped = SeededDistributionsFromJSONTyped3; @@ -15356,8 +15836,8 @@ var require_SeededDistributions = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.SeededDistributionToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.SeededDistributionToJSON) }; } exports.SeededDistributionsToJSON = SeededDistributionsToJSON3; @@ -15370,7 +15850,7 @@ var require_SeededExternalProvider = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededExternalProviderToJSON = exports.SeededExternalProviderFromJSONTyped = exports.SeededExternalProviderFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function SeededExternalProviderFromJSON2(json) { return SeededExternalProviderFromJSONTyped(json, false); } @@ -15380,7 +15860,7 @@ var require_SeededExternalProvider = __commonJS({ return json; } return { - "type": (0, index_1.ExternalProviderTypeEnumFromJSON)(json["type"]) + "type": (0, _1.ExternalProviderTypeEnumFromJSON)(json["type"]) }; } exports.SeededExternalProviderFromJSONTyped = SeededExternalProviderFromJSONTyped; @@ -15392,7 +15872,7 @@ var require_SeededExternalProvider = __commonJS({ return null; } return { - "type": (0, index_1.ExternalProviderTypeEnumToJSON)(value.type) + "type": (0, _1.ExternalProviderTypeEnumToJSON)(value.type) }; } exports.SeededExternalProviderToJSON = SeededExternalProviderToJSON2; @@ -15406,7 +15886,7 @@ var require_SeededFile = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededFileToJSON = exports.SeededFileFromJSONTyped = exports.SeededFileFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededFileFromJSON4(json) { return SeededFileFromJSONTyped10(json, false); } @@ -15416,10 +15896,10 @@ var require_SeededFile = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, index_1.TransferableBytesFromJSON)(json["bytes"]), - "string": !(0, runtime_1.exists)(json, "string") ? void 0 : (0, index_1.TransferableStringFromJSON)(json["string"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.FileMetadataFromJSON)(json["metadata"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, _1.TransferableBytesFromJSON)(json["bytes"]), + "string": !(0, runtime_1.exists)(json, "string") ? void 0 : (0, _1.TransferableStringFromJSON)(json["string"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.FileMetadataFromJSON)(json["metadata"]) }; } exports.SeededFileFromJSONTyped = SeededFileFromJSONTyped10; @@ -15431,10 +15911,10 @@ var require_SeededFile = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "bytes": (0, index_1.TransferableBytesToJSON)(value.bytes), - "string": (0, index_1.TransferableStringToJSON)(value.string), - "metadata": (0, index_1.FileMetadataToJSON)(value.metadata) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "bytes": (0, _1.TransferableBytesToJSON)(value.bytes), + "string": (0, _1.TransferableStringToJSON)(value.string), + "metadata": (0, _1.FileMetadataToJSON)(value.metadata) }; } exports.SeededFileToJSON = SeededFileToJSON4; @@ -15448,7 +15928,7 @@ var require_SeededFormat = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededFormatToJSON = exports.SeededFormatFromJSONTyped = exports.SeededFormatFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededFormatFromJSON4(json) { return SeededFormatFromJSONTyped10(json, false); } @@ -15458,10 +15938,10 @@ var require_SeededFormat = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, index_1.SeededFileFromJSON)(json["file"]), - "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, index_1.SeededFragmentFromJSON)(json["fragment"]), - "classification": !(0, runtime_1.exists)(json, "classification") ? void 0 : (0, index_1.SeededClassificationFromJSON)(json["classification"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, _1.SeededFileFromJSON)(json["file"]), + "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, _1.SeededFragmentFromJSON)(json["fragment"]), + "classification": !(0, runtime_1.exists)(json, "classification") ? void 0 : (0, _1.SeededClassificationFromJSON)(json["classification"]) }; } exports.SeededFormatFromJSONTyped = SeededFormatFromJSONTyped10; @@ -15473,10 +15953,10 @@ var require_SeededFormat = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "file": (0, index_1.SeededFileToJSON)(value.file), - "fragment": (0, index_1.SeededFragmentToJSON)(value.fragment), - "classification": (0, index_1.SeededClassificationToJSON)(value.classification) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "file": (0, _1.SeededFileToJSON)(value.file), + "fragment": (0, _1.SeededFragmentToJSON)(value.fragment), + "classification": (0, _1.SeededClassificationToJSON)(value.classification) }; } exports.SeededFormatToJSON = SeededFormatToJSON4; @@ -15490,7 +15970,7 @@ var require_SeededFragment = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededFragmentToJSON = exports.SeededFragmentFromJSONTyped = exports.SeededFragmentFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededFragmentFromJSON4(json) { return SeededFragmentFromJSONTyped10(json, false); } @@ -15500,10 +15980,10 @@ var require_SeededFragment = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "string": !(0, runtime_1.exists)(json, "string") ? void 0 : (0, index_1.TransferableStringFromJSON)(json["string"]), - "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, index_1.TransferableBytesFromJSON)(json["bytes"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.FragmentMetadataFromJSON)(json["metadata"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "string": !(0, runtime_1.exists)(json, "string") ? void 0 : (0, _1.TransferableStringFromJSON)(json["string"]), + "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, _1.TransferableBytesFromJSON)(json["bytes"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.FragmentMetadataFromJSON)(json["metadata"]) }; } exports.SeededFragmentFromJSONTyped = SeededFragmentFromJSONTyped10; @@ -15515,10 +15995,10 @@ var require_SeededFragment = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "string": (0, index_1.TransferableStringToJSON)(value.string), - "bytes": (0, index_1.TransferableBytesToJSON)(value.bytes), - "metadata": (0, index_1.FragmentMetadataToJSON)(value.metadata) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "string": (0, _1.TransferableStringToJSON)(value.string), + "bytes": (0, _1.TransferableBytesToJSON)(value.bytes), + "metadata": (0, _1.FragmentMetadataToJSON)(value.metadata) }; } exports.SeededFragmentToJSON = SeededFragmentToJSON4; @@ -15532,7 +16012,7 @@ var require_SeededGitHubDistribution = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededGitHubDistributionToJSON = exports.SeededGitHubDistributionFromJSONTyped = exports.SeededGitHubDistributionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededGitHubDistributionFromJSON3(json) { return SeededGitHubDistributionFromJSONTyped3(json, false); } @@ -15542,8 +16022,8 @@ var require_SeededGitHubDistribution = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "gist": !(0, runtime_1.exists)(json, "gist") ? void 0 : (0, index_1.SeededGitHubGistDistributionFromJSON)(json["gist"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "gist": !(0, runtime_1.exists)(json, "gist") ? void 0 : (0, _1.SeededGitHubGistDistributionFromJSON)(json["gist"]) }; } exports.SeededGitHubDistributionFromJSONTyped = SeededGitHubDistributionFromJSONTyped3; @@ -15555,8 +16035,8 @@ var require_SeededGitHubDistribution = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "gist": (0, index_1.SeededGitHubGistDistributionToJSON)(value.gist) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "gist": (0, _1.SeededGitHubGistDistributionToJSON)(value.gist) }; } exports.SeededGitHubDistributionToJSON = SeededGitHubDistributionToJSON3; @@ -15570,7 +16050,7 @@ var require_SeededGitHubGistDistribution = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededGitHubGistDistributionToJSON = exports.SeededGitHubGistDistributionFromJSONTyped = exports.SeededGitHubGistDistributionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededGitHubGistDistributionFromJSON3(json) { return SeededGitHubGistDistributionFromJSONTyped3(json, false); } @@ -15580,8 +16060,8 @@ var require_SeededGitHubGistDistribution = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "recipients": !(0, runtime_1.exists)(json, "recipients") ? void 0 : (0, index_1.RecipientsFromJSON)(json["recipients"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "recipients": !(0, runtime_1.exists)(json, "recipients") ? void 0 : (0, _1.RecipientsFromJSON)(json["recipients"]), "_public": !(0, runtime_1.exists)(json, "public") ? void 0 : json["public"], "description": !(0, runtime_1.exists)(json, "description") ? void 0 : json["description"], "name": json["name"] @@ -15596,8 +16076,8 @@ var require_SeededGitHubGistDistribution = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "recipients": (0, index_1.RecipientsToJSON)(value.recipients), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "recipients": (0, _1.RecipientsToJSON)(value.recipients), "public": value._public, "description": value.description, "name": value.name @@ -15614,7 +16094,7 @@ var require_SeededGithubGistsImport = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededGithubGistsImportToJSON = exports.SeededGithubGistsImportFromJSONTyped = exports.SeededGithubGistsImportFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededGithubGistsImportFromJSON2(json) { return SeededGithubGistsImportFromJSONTyped(json, false); } @@ -15624,7 +16104,7 @@ var require_SeededGithubGistsImport = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "application": json["application"], "_public": !(0, runtime_1.exists)(json, "public") ? void 0 : json["public"] }; @@ -15638,7 +16118,7 @@ var require_SeededGithubGistsImport = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "application": value.application, "public": value._public }; @@ -15654,7 +16134,7 @@ var require_SeededHint = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededHintToJSON = exports.SeededHintFromJSONTyped = exports.SeededHintFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededHintFromJSON5(json) { return SeededHintFromJSONTyped6(json, false); } @@ -15664,10 +16144,10 @@ var require_SeededHint = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : json["asset"], - "type": (0, index_1.HintTypeEnumFromJSON)(json["type"]), + "type": (0, _1.HintTypeEnumFromJSON)(json["type"]), "text": json["text"], "model": !(0, runtime_1.exists)(json, "model") ? void 0 : json["model"] }; @@ -15681,10 +16161,10 @@ var require_SeededHint = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), "asset": value.asset, - "type": (0, index_1.HintTypeEnumToJSON)(value.type), + "type": (0, _1.HintTypeEnumToJSON)(value.type), "text": value.text, "model": value.model }; @@ -15700,7 +16180,7 @@ var require_SeededMacOSAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededMacOSAssetToJSON = exports.SeededMacOSAssetFromJSONTyped = exports.SeededMacOSAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededMacOSAssetFromJSON2(json) { return SeededMacOSAssetFromJSONTyped(json, false); } @@ -15710,8 +16190,8 @@ var require_SeededMacOSAsset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "application": !(0, runtime_1.exists)(json, "application") ? void 0 : (0, index_1.ApplicationFromJSON)(json["application"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "application": !(0, runtime_1.exists)(json, "application") ? void 0 : (0, _1.ApplicationFromJSON)(json["application"]), "value": json["value"] }; } @@ -15724,8 +16204,8 @@ var require_SeededMacOSAsset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "application": (0, index_1.ApplicationToJSON)(value.application), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "application": (0, _1.ApplicationToJSON)(value.application), "value": value.value }; } @@ -15740,7 +16220,7 @@ var require_SeededModel = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededModelToJSON = exports.SeededModelFromJSONTyped = exports.SeededModelFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededModelFromJSON4(json) { return SeededModelFromJSONTyped3(json, false); } @@ -15750,23 +16230,25 @@ var require_SeededModel = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "version": json["version"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), "name": json["name"], "description": !(0, runtime_1.exists)(json, "description") ? void 0 : json["description"], "cloud": json["cloud"], - "type": (0, index_1.ModelTypeEnumFromJSON)(json["type"]), - "usage": (0, index_1.ModelUsageEnumFromJSON)(json["usage"]), - "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, index_1.ByteDescriptorFromJSON)(json["bytes"]), - "ram": !(0, runtime_1.exists)(json, "ram") ? void 0 : (0, index_1.ByteDescriptorFromJSON)(json["ram"]), + "type": (0, _1.ModelTypeEnumFromJSON)(json["type"]), + "usage": (0, _1.ModelUsageEnumFromJSON)(json["usage"]), + "bytes": !(0, runtime_1.exists)(json, "bytes") ? void 0 : (0, _1.ByteDescriptorFromJSON)(json["bytes"]), + "ram": !(0, runtime_1.exists)(json, "ram") ? void 0 : (0, _1.ByteDescriptorFromJSON)(json["ram"]), "quantization": !(0, runtime_1.exists)(json, "quantization") ? void 0 : json["quantization"], - "foundation": !(0, runtime_1.exists)(json, "foundation") ? void 0 : (0, index_1.ModelFoundationEnumFromJSON)(json["foundation"]), + "foundation": !(0, runtime_1.exists)(json, "foundation") ? void 0 : (0, _1.ModelFoundationEnumFromJSON)(json["foundation"]), "downloaded": !(0, runtime_1.exists)(json, "downloaded") ? void 0 : json["downloaded"], "unique": !(0, runtime_1.exists)(json, "unique") ? void 0 : json["unique"], "parameters": !(0, runtime_1.exists)(json, "parameters") ? void 0 : json["parameters"], - "provider": !(0, runtime_1.exists)(json, "provider") ? void 0 : (0, index_1.ExternalMLProviderEnumFromJSON)(json["provider"]), - "cpu": !(0, runtime_1.exists)(json, "cpu") ? void 0 : json["cpu"] + "provider": !(0, runtime_1.exists)(json, "provider") ? void 0 : (0, _1.ExternalMLProviderEnumFromJSON)(json["provider"]), + "cpu": !(0, runtime_1.exists)(json, "cpu") ? void 0 : json["cpu"], + "maxTokens": !(0, runtime_1.exists)(json, "maxTokens") ? void 0 : (0, _1.ModelMaxTokensFromJSON)(json["maxTokens"]), + "custom": !(0, runtime_1.exists)(json, "custom") ? void 0 : json["custom"] }; } exports.SeededModelFromJSONTyped = SeededModelFromJSONTyped3; @@ -15778,29 +16260,69 @@ var require_SeededModel = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "version": value.version, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), + "created": (0, _1.GroupedTimestampToJSON)(value.created), "name": value.name, "description": value.description, "cloud": value.cloud, - "type": (0, index_1.ModelTypeEnumToJSON)(value.type), - "usage": (0, index_1.ModelUsageEnumToJSON)(value.usage), - "bytes": (0, index_1.ByteDescriptorToJSON)(value.bytes), - "ram": (0, index_1.ByteDescriptorToJSON)(value.ram), + "type": (0, _1.ModelTypeEnumToJSON)(value.type), + "usage": (0, _1.ModelUsageEnumToJSON)(value.usage), + "bytes": (0, _1.ByteDescriptorToJSON)(value.bytes), + "ram": (0, _1.ByteDescriptorToJSON)(value.ram), "quantization": value.quantization, - "foundation": (0, index_1.ModelFoundationEnumToJSON)(value.foundation), + "foundation": (0, _1.ModelFoundationEnumToJSON)(value.foundation), "downloaded": value.downloaded, "unique": value.unique, "parameters": value.parameters, - "provider": (0, index_1.ExternalMLProviderEnumToJSON)(value.provider), - "cpu": value.cpu + "provider": (0, _1.ExternalMLProviderEnumToJSON)(value.provider), + "cpu": value.cpu, + "maxTokens": (0, _1.ModelMaxTokensToJSON)(value.maxTokens), + "custom": value.custom }; } exports.SeededModelToJSON = SeededModelToJSON3; } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededModels.js +var require_SeededModels = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededModels.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SeededModelsToJSON = exports.SeededModelsFromJSONTyped = exports.SeededModelsFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function SeededModelsFromJSON3(json) { + return SeededModelsFromJSONTyped3(json, false); + } + exports.SeededModelsFromJSON = SeededModelsFromJSON3; + function SeededModelsFromJSONTyped3(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.SeededModelFromJSON) + }; + } + exports.SeededModelsFromJSONTyped = SeededModelsFromJSONTyped3; + function SeededModelsToJSON3(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.SeededModelToJSON) + }; + } + exports.SeededModelsToJSON = SeededModelsToJSON3; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededPKCE.js var require_SeededPKCE = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SeededPKCE.js"(exports) { @@ -15808,7 +16330,7 @@ var require_SeededPKCE = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededPKCEToJSON = exports.SeededPKCEFromJSONTyped = exports.SeededPKCEFromJSON = exports.SeededPKCEResponseModeEnum = exports.SeededPKCEScopeEnum = exports.SeededPKCEPromptEnum = exports.SeededPKCEScreenHintEnum = exports.SeededPKCECodeChallengeMethodEnum = exports.SeededPKCEResponseTypeEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var SeededPKCEResponseTypeEnum; (function(SeededPKCEResponseTypeEnum2) { SeededPKCEResponseTypeEnum2["Code"] = "code"; @@ -15851,7 +16373,7 @@ var require_SeededPKCE = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "responseType": json["response_type"], "state": json["state"], "nonce": json["nonce"], @@ -15866,7 +16388,7 @@ var require_SeededPKCE = __commonJS({ "invitation": !(0, runtime_1.exists)(json, "invitation") ? void 0 : json["invitation"], "scope": json["scope"], "clientId": json["client_id"], - "aDDITIONALPARAMETERS": !(0, runtime_1.exists)(json, "ADDITIONAL_PARAMETERS") ? void 0 : (0, index_1.SeededPKCEADDITIONALPARAMETERSFromJSON)(json["ADDITIONAL_PARAMETERS"]), + "aDDITIONALPARAMETERS": !(0, runtime_1.exists)(json, "ADDITIONAL_PARAMETERS") ? void 0 : (0, _1.SeededPKCEADDITIONALPARAMETERSFromJSON)(json["ADDITIONAL_PARAMETERS"]), "responseMode": !(0, runtime_1.exists)(json, "response_mode") ? void 0 : json["response_mode"] }; } @@ -15879,7 +16401,7 @@ var require_SeededPKCE = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "response_type": value.responseType, "state": value.state, "nonce": value.nonce, @@ -15894,7 +16416,7 @@ var require_SeededPKCE = __commonJS({ "invitation": value.invitation, "scope": value.scope, "client_id": value.clientId, - "ADDITIONAL_PARAMETERS": (0, index_1.SeededPKCEADDITIONALPARAMETERSToJSON)(value.aDDITIONALPARAMETERS), + "ADDITIONAL_PARAMETERS": (0, _1.SeededPKCEADDITIONALPARAMETERSToJSON)(value.aDDITIONALPARAMETERS), "response_mode": value.responseMode }; } @@ -15954,7 +16476,7 @@ var require_SeededPerson = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededPersonToJSON = exports.SeededPersonFromJSONTyped = exports.SeededPersonFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededPersonFromJSON5(json) { return SeededPersonFromJSONTyped6(json, false); } @@ -15964,13 +16486,13 @@ var require_SeededPerson = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "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"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "access": !(0, runtime_1.exists)(json, "access") ? void 0 : (0, index_1.PersonAccessFromJSON)(json["access"]), - "type": (0, index_1.PersonTypeFromJSON)(json["type"]), - "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, index_1.PersonModelFromJSON)(json["model"]), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : json["annotations"].map(index_1.SeededAnnotationFromJSON) + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "access": !(0, runtime_1.exists)(json, "access") ? void 0 : (0, _1.PersonAccessFromJSON)(json["access"]), + "type": (0, _1.PersonTypeFromJSON)(json["type"]), + "model": !(0, runtime_1.exists)(json, "model") ? void 0 : (0, _1.PersonModelFromJSON)(json["model"]), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : json["annotations"].map(_1.SeededAnnotationFromJSON) }; } exports.SeededPersonFromJSONTyped = SeededPersonFromJSONTyped6; @@ -15982,13 +16504,13 @@ var require_SeededPerson = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset": value.asset, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "access": (0, index_1.PersonAccessToJSON)(value.access), - "type": (0, index_1.PersonTypeToJSON)(value.type), - "model": (0, index_1.PersonModelToJSON)(value.model), - "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(index_1.SeededAnnotationToJSON) + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "access": (0, _1.PersonAccessToJSON)(value.access), + "type": (0, _1.PersonTypeToJSON)(value.type), + "model": (0, _1.PersonModelToJSON)(value.model), + "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(_1.SeededAnnotationToJSON) }; } exports.SeededPersonToJSON = SeededPersonToJSON4; @@ -16002,7 +16524,7 @@ var require_SeededScore = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededScoreToJSON = exports.SeededScoreFromJSONTyped = exports.SeededScoreFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededScoreFromJSON3(json) { return SeededScoreFromJSONTyped3(json, false); } @@ -16012,7 +16534,7 @@ var require_SeededScore = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "reuse": !(0, runtime_1.exists)(json, "reuse") ? void 0 : json["reuse"], "update": !(0, runtime_1.exists)(json, "update") ? void 0 : json["update"], "reference": !(0, runtime_1.exists)(json, "reference") ? void 0 : json["reference"], @@ -16028,7 +16550,7 @@ var require_SeededScore = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "reuse": value.reuse, "update": value.update, "reference": value.reference, @@ -16046,7 +16568,7 @@ var require_SeededScoreIncrement = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededScoreIncrementToJSON = exports.SeededScoreIncrementFromJSONTyped = exports.SeededScoreIncrementFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededScoreIncrementFromJSON13(json) { return SeededScoreIncrementFromJSONTyped(json, false); } @@ -16056,31 +16578,31 @@ var require_SeededScoreIncrement = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["asset"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["assets"]), - "website": !(0, runtime_1.exists)(json, "website") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["website"]), - "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["websites"]), - "anchor": !(0, runtime_1.exists)(json, "anchor") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["anchor"]), - "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["anchors"]), - "anchorPoint": !(0, runtime_1.exists)(json, "anchorPoint") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["anchorPoint"]), - "anchorPoints": !(0, runtime_1.exists)(json, "anchorPoints") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["anchorPoints"]), - "annotation": !(0, runtime_1.exists)(json, "annotation") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["annotation"]), - "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["annotations"]), - "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["conversation"]), - "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["conversations"]), - "conversationMessage": !(0, runtime_1.exists)(json, "conversationMessage") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["conversationMessage"]), - "conversationMessages": !(0, runtime_1.exists)(json, "conversationMessages") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["conversationMessages"]), - "share": !(0, runtime_1.exists)(json, "share") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["share"]), - "shares": !(0, runtime_1.exists)(json, "shares") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["shares"]), - "sensitive": !(0, runtime_1.exists)(json, "sensitive") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["sensitive"]), - "sensitives": !(0, runtime_1.exists)(json, "sensitives") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["sensitives"]), - "hint": !(0, runtime_1.exists)(json, "hint") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["hint"]), - "hints": !(0, runtime_1.exists)(json, "hints") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["hints"]), - "person": !(0, runtime_1.exists)(json, "person") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["person"]), - "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["persons"]), - "tag": !(0, runtime_1.exists)(json, "tag") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["tag"]), - "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, index_1.SeededScoreFromJSON)(json["tags"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.SeededScoreFromJSON)(json["asset"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.SeededScoreFromJSON)(json["assets"]), + "website": !(0, runtime_1.exists)(json, "website") ? void 0 : (0, _1.SeededScoreFromJSON)(json["website"]), + "websites": !(0, runtime_1.exists)(json, "websites") ? void 0 : (0, _1.SeededScoreFromJSON)(json["websites"]), + "anchor": !(0, runtime_1.exists)(json, "anchor") ? void 0 : (0, _1.SeededScoreFromJSON)(json["anchor"]), + "anchors": !(0, runtime_1.exists)(json, "anchors") ? void 0 : (0, _1.SeededScoreFromJSON)(json["anchors"]), + "anchorPoint": !(0, runtime_1.exists)(json, "anchorPoint") ? void 0 : (0, _1.SeededScoreFromJSON)(json["anchorPoint"]), + "anchorPoints": !(0, runtime_1.exists)(json, "anchorPoints") ? void 0 : (0, _1.SeededScoreFromJSON)(json["anchorPoints"]), + "annotation": !(0, runtime_1.exists)(json, "annotation") ? void 0 : (0, _1.SeededScoreFromJSON)(json["annotation"]), + "annotations": !(0, runtime_1.exists)(json, "annotations") ? void 0 : (0, _1.SeededScoreFromJSON)(json["annotations"]), + "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, _1.SeededScoreFromJSON)(json["conversation"]), + "conversations": !(0, runtime_1.exists)(json, "conversations") ? void 0 : (0, _1.SeededScoreFromJSON)(json["conversations"]), + "conversationMessage": !(0, runtime_1.exists)(json, "conversationMessage") ? void 0 : (0, _1.SeededScoreFromJSON)(json["conversationMessage"]), + "conversationMessages": !(0, runtime_1.exists)(json, "conversationMessages") ? void 0 : (0, _1.SeededScoreFromJSON)(json["conversationMessages"]), + "share": !(0, runtime_1.exists)(json, "share") ? void 0 : (0, _1.SeededScoreFromJSON)(json["share"]), + "shares": !(0, runtime_1.exists)(json, "shares") ? void 0 : (0, _1.SeededScoreFromJSON)(json["shares"]), + "sensitive": !(0, runtime_1.exists)(json, "sensitive") ? void 0 : (0, _1.SeededScoreFromJSON)(json["sensitive"]), + "sensitives": !(0, runtime_1.exists)(json, "sensitives") ? void 0 : (0, _1.SeededScoreFromJSON)(json["sensitives"]), + "hint": !(0, runtime_1.exists)(json, "hint") ? void 0 : (0, _1.SeededScoreFromJSON)(json["hint"]), + "hints": !(0, runtime_1.exists)(json, "hints") ? void 0 : (0, _1.SeededScoreFromJSON)(json["hints"]), + "person": !(0, runtime_1.exists)(json, "person") ? void 0 : (0, _1.SeededScoreFromJSON)(json["person"]), + "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, _1.SeededScoreFromJSON)(json["persons"]), + "tag": !(0, runtime_1.exists)(json, "tag") ? void 0 : (0, _1.SeededScoreFromJSON)(json["tag"]), + "tags": !(0, runtime_1.exists)(json, "tags") ? void 0 : (0, _1.SeededScoreFromJSON)(json["tags"]) }; } exports.SeededScoreIncrementFromJSONTyped = SeededScoreIncrementFromJSONTyped; @@ -16092,31 +16614,31 @@ var require_SeededScoreIncrement = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "asset": (0, index_1.SeededScoreToJSON)(value.asset), - "assets": (0, index_1.SeededScoreToJSON)(value.assets), - "website": (0, index_1.SeededScoreToJSON)(value.website), - "websites": (0, index_1.SeededScoreToJSON)(value.websites), - "anchor": (0, index_1.SeededScoreToJSON)(value.anchor), - "anchors": (0, index_1.SeededScoreToJSON)(value.anchors), - "anchorPoint": (0, index_1.SeededScoreToJSON)(value.anchorPoint), - "anchorPoints": (0, index_1.SeededScoreToJSON)(value.anchorPoints), - "annotation": (0, index_1.SeededScoreToJSON)(value.annotation), - "annotations": (0, index_1.SeededScoreToJSON)(value.annotations), - "conversation": (0, index_1.SeededScoreToJSON)(value.conversation), - "conversations": (0, index_1.SeededScoreToJSON)(value.conversations), - "conversationMessage": (0, index_1.SeededScoreToJSON)(value.conversationMessage), - "conversationMessages": (0, index_1.SeededScoreToJSON)(value.conversationMessages), - "share": (0, index_1.SeededScoreToJSON)(value.share), - "shares": (0, index_1.SeededScoreToJSON)(value.shares), - "sensitive": (0, index_1.SeededScoreToJSON)(value.sensitive), - "sensitives": (0, index_1.SeededScoreToJSON)(value.sensitives), - "hint": (0, index_1.SeededScoreToJSON)(value.hint), - "hints": (0, index_1.SeededScoreToJSON)(value.hints), - "person": (0, index_1.SeededScoreToJSON)(value.person), - "persons": (0, index_1.SeededScoreToJSON)(value.persons), - "tag": (0, index_1.SeededScoreToJSON)(value.tag), - "tags": (0, index_1.SeededScoreToJSON)(value.tags) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "asset": (0, _1.SeededScoreToJSON)(value.asset), + "assets": (0, _1.SeededScoreToJSON)(value.assets), + "website": (0, _1.SeededScoreToJSON)(value.website), + "websites": (0, _1.SeededScoreToJSON)(value.websites), + "anchor": (0, _1.SeededScoreToJSON)(value.anchor), + "anchors": (0, _1.SeededScoreToJSON)(value.anchors), + "anchorPoint": (0, _1.SeededScoreToJSON)(value.anchorPoint), + "anchorPoints": (0, _1.SeededScoreToJSON)(value.anchorPoints), + "annotation": (0, _1.SeededScoreToJSON)(value.annotation), + "annotations": (0, _1.SeededScoreToJSON)(value.annotations), + "conversation": (0, _1.SeededScoreToJSON)(value.conversation), + "conversations": (0, _1.SeededScoreToJSON)(value.conversations), + "conversationMessage": (0, _1.SeededScoreToJSON)(value.conversationMessage), + "conversationMessages": (0, _1.SeededScoreToJSON)(value.conversationMessages), + "share": (0, _1.SeededScoreToJSON)(value.share), + "shares": (0, _1.SeededScoreToJSON)(value.shares), + "sensitive": (0, _1.SeededScoreToJSON)(value.sensitive), + "sensitives": (0, _1.SeededScoreToJSON)(value.sensitives), + "hint": (0, _1.SeededScoreToJSON)(value.hint), + "hints": (0, _1.SeededScoreToJSON)(value.hints), + "person": (0, _1.SeededScoreToJSON)(value.person), + "persons": (0, _1.SeededScoreToJSON)(value.persons), + "tag": (0, _1.SeededScoreToJSON)(value.tag), + "tags": (0, _1.SeededScoreToJSON)(value.tags) }; } exports.SeededScoreIncrementToJSON = SeededScoreIncrementToJSON2; @@ -16130,7 +16652,7 @@ var require_SeededSensitive = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededSensitiveToJSON = exports.SeededSensitiveFromJSONTyped = exports.SeededSensitiveFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededSensitiveFromJSON4(json) { return SeededSensitiveFromJSONTyped4(json, false); } @@ -16140,15 +16662,15 @@ var require_SeededSensitive = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "asset": json["asset"], "text": json["text"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "category": (0, index_1.SensitiveCategoryEnumFromJSON)(json["category"]), - "severity": (0, index_1.SensitiveSeverityEnumFromJSON)(json["severity"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "category": (0, _1.SensitiveCategoryEnumFromJSON)(json["category"]), + "severity": (0, _1.SensitiveSeverityEnumFromJSON)(json["severity"]), "name": json["name"], "description": json["description"], - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.SensitiveMetadataFromJSON)(json["metadata"]) + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.SensitiveMetadataFromJSON)(json["metadata"]) }; } exports.SeededSensitiveFromJSONTyped = SeededSensitiveFromJSONTyped4; @@ -16160,15 +16682,15 @@ var require_SeededSensitive = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset": value.asset, "text": value.text, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "category": (0, index_1.SensitiveCategoryEnumToJSON)(value.category), - "severity": (0, index_1.SensitiveSeverityEnumToJSON)(value.severity), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "category": (0, _1.SensitiveCategoryEnumToJSON)(value.category), + "severity": (0, _1.SensitiveSeverityEnumToJSON)(value.severity), "name": value.name, "description": value.description, - "metadata": (0, index_1.SensitiveMetadataToJSON)(value.metadata) + "metadata": (0, _1.SensitiveMetadataToJSON)(value.metadata) }; } exports.SeededSensitiveToJSON = SeededSensitiveToJSON3; @@ -16182,7 +16704,7 @@ var require_SeededShare = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededShareToJSON = exports.SeededShareFromJSONTyped = exports.SeededShareFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededShareFromJSON2(json) { return SeededShareFromJSONTyped(json, false); } @@ -16192,11 +16714,11 @@ var require_SeededShare = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.AssetFromJSON)(json["asset"]), - "users": !(0, runtime_1.exists)(json, "users") ? void 0 : json["users"].map(index_1.SeededUserFromJSON), - "access": (0, index_1.AccessEnumFromJSON)(json["access"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.AssetsFromJSON)(json["assets"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.AssetFromJSON)(json["asset"]), + "users": !(0, runtime_1.exists)(json, "users") ? void 0 : json["users"].map(_1.SeededUserFromJSON), + "access": (0, _1.AccessEnumFromJSON)(json["access"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.AssetsFromJSON)(json["assets"]), "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"] }; } @@ -16209,11 +16731,11 @@ var require_SeededShare = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "asset": (0, index_1.AssetToJSON)(value.asset), - "users": value.users === void 0 ? void 0 : value.users.map(index_1.SeededUserToJSON), - "access": (0, index_1.AccessEnumToJSON)(value.access), - "assets": (0, index_1.AssetsToJSON)(value.assets), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "asset": (0, _1.AssetToJSON)(value.asset), + "users": value.users === void 0 ? void 0 : value.users.map(_1.SeededUserToJSON), + "access": (0, _1.AccessEnumToJSON)(value.access), + "assets": (0, _1.AssetsToJSON)(value.assets), "name": value.name }; } @@ -16228,7 +16750,7 @@ var require_SeededTag = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTagToJSON = exports.SeededTagFromJSONTyped = exports.SeededTagFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTagFromJSON4(json) { return SeededTagFromJSONTyped4(json, false); } @@ -16238,11 +16760,11 @@ var require_SeededTag = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "text": json["text"], "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : json["asset"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "category": !(0, runtime_1.exists)(json, "category") ? void 0 : (0, index_1.TagCategoryEnumFromJSON)(json["category"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "category": !(0, runtime_1.exists)(json, "category") ? void 0 : (0, _1.TagCategoryEnumFromJSON)(json["category"]), "person": !(0, runtime_1.exists)(json, "person") ? void 0 : json["person"] }; } @@ -16255,11 +16777,11 @@ var require_SeededTag = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "text": value.text, "asset": value.asset, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "category": (0, index_1.TagCategoryEnumToJSON)(value.category), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "category": (0, _1.TagCategoryEnumToJSON)(value.category), "person": value.person }; } @@ -16274,7 +16796,7 @@ var require_SeededTrackedAdoptionEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedAdoptionEventToJSON = exports.SeededTrackedAdoptionEventFromJSONTyped = exports.SeededTrackedAdoptionEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedAdoptionEventFromJSON4(json) { return SeededTrackedAdoptionEventFromJSONTyped6(json, false); } @@ -16284,8 +16806,8 @@ var require_SeededTrackedAdoptionEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "identifierDescriptionPair": !(0, runtime_1.exists)(json, "identifier_description_pair") ? void 0 : (0, index_1.AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "identifierDescriptionPair": !(0, runtime_1.exists)(json, "identifier_description_pair") ? void 0 : (0, _1.AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]) }; } exports.SeededTrackedAdoptionEventFromJSONTyped = SeededTrackedAdoptionEventFromJSONTyped6; @@ -16297,8 +16819,8 @@ var require_SeededTrackedAdoptionEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "identifier_description_pair": (0, index_1.AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "identifier_description_pair": (0, _1.AnalyticsTrackedAdoptionEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair) }; } exports.SeededTrackedAdoptionEventToJSON = SeededTrackedAdoptionEventToJSON4; @@ -16312,7 +16834,7 @@ var require_SeededTrackedApplication = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedApplicationToJSON = exports.SeededTrackedApplicationFromJSONTyped = exports.SeededTrackedApplicationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedApplicationFromJSON4(json) { return SeededTrackedApplicationFromJSONTyped4(json, false); } @@ -16322,12 +16844,12 @@ var require_SeededTrackedApplication = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "name": (0, index_1.ApplicationNameEnumFromJSON)(json["name"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "name": (0, _1.ApplicationNameEnumFromJSON)(json["name"]), "version": json["version"], - "platform": (0, index_1.PlatformEnumFromJSON)(json["platform"]), - "capabilities": !(0, runtime_1.exists)(json, "capabilities") ? void 0 : (0, index_1.CapabilitiesEnumFromJSON)(json["capabilities"]), - "privacy": !(0, runtime_1.exists)(json, "privacy") ? void 0 : (0, index_1.PrivacyEnumFromJSON)(json["privacy"]), + "platform": (0, _1.PlatformEnumFromJSON)(json["platform"]), + "capabilities": !(0, runtime_1.exists)(json, "capabilities") ? void 0 : (0, _1.CapabilitiesEnumFromJSON)(json["capabilities"]), + "privacy": !(0, runtime_1.exists)(json, "privacy") ? void 0 : (0, _1.PrivacyEnumFromJSON)(json["privacy"]), "automaticUnload": !(0, runtime_1.exists)(json, "automaticUnload") ? void 0 : json["automaticUnload"] }; } @@ -16340,12 +16862,12 @@ var require_SeededTrackedApplication = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "name": (0, index_1.ApplicationNameEnumToJSON)(value.name), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "name": (0, _1.ApplicationNameEnumToJSON)(value.name), "version": value.version, - "platform": (0, index_1.PlatformEnumToJSON)(value.platform), - "capabilities": (0, index_1.CapabilitiesEnumToJSON)(value.capabilities), - "privacy": (0, index_1.PrivacyEnumToJSON)(value.privacy), + "platform": (0, _1.PlatformEnumToJSON)(value.platform), + "capabilities": (0, _1.CapabilitiesEnumToJSON)(value.capabilities), + "privacy": (0, _1.PrivacyEnumToJSON)(value.privacy), "automaticUnload": value.automaticUnload }; } @@ -16360,7 +16882,7 @@ var require_SeededTrackedAssetEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedAssetEventToJSON = exports.SeededTrackedAssetEventFromJSONTyped = exports.SeededTrackedAssetEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedAssetEventFromJSON4(json) { return SeededTrackedAssetEventFromJSONTyped6(json, false); } @@ -16370,10 +16892,10 @@ var require_SeededTrackedAssetEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "asset": (0, index_1.ReferencedAssetFromJSON)(json["asset"]), - "identifierDescriptionPair": (0, index_1.TrackedAssetEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.TrackedAssetEventMetadataFromJSON)(json["metadata"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "asset": (0, _1.ReferencedAssetFromJSON)(json["asset"]), + "identifierDescriptionPair": (0, _1.TrackedAssetEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.TrackedAssetEventMetadataFromJSON)(json["metadata"]) }; } exports.SeededTrackedAssetEventFromJSONTyped = SeededTrackedAssetEventFromJSONTyped6; @@ -16385,10 +16907,10 @@ var require_SeededTrackedAssetEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), - "identifier_description_pair": (0, index_1.TrackedAssetEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair), - "metadata": (0, index_1.TrackedAssetEventMetadataToJSON)(value.metadata) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), + "identifier_description_pair": (0, _1.TrackedAssetEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair), + "metadata": (0, _1.TrackedAssetEventMetadataToJSON)(value.metadata) }; } exports.SeededTrackedAssetEventToJSON = SeededTrackedAssetEventToJSON4; @@ -16402,7 +16924,7 @@ var require_SeededTrackedAssetsEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedAssetsEventToJSON = exports.SeededTrackedAssetsEventFromJSONTyped = exports.SeededTrackedAssetsEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedAssetsEventFromJSON4(json) { return SeededTrackedAssetsEventFromJSONTyped6(json, false); } @@ -16412,9 +16934,9 @@ var require_SeededTrackedAssetsEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "identifierDescriptionPair": !(0, runtime_1.exists)(json, "identifier_description_pair") ? void 0 : (0, index_1.TrackedAssetsEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.SeededTrackedAssetsEventMetadataFromJSON)(json["metadata"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "identifierDescriptionPair": !(0, runtime_1.exists)(json, "identifier_description_pair") ? void 0 : (0, _1.TrackedAssetsEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.SeededTrackedAssetsEventMetadataFromJSON)(json["metadata"]) }; } exports.SeededTrackedAssetsEventFromJSONTyped = SeededTrackedAssetsEventFromJSONTyped6; @@ -16426,9 +16948,9 @@ var require_SeededTrackedAssetsEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "identifier_description_pair": (0, index_1.TrackedAssetsEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair), - "metadata": (0, index_1.SeededTrackedAssetsEventMetadataToJSON)(value.metadata) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "identifier_description_pair": (0, _1.TrackedAssetsEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair), + "metadata": (0, _1.SeededTrackedAssetsEventMetadataToJSON)(value.metadata) }; } exports.SeededTrackedAssetsEventToJSON = SeededTrackedAssetsEventToJSON4; @@ -16442,7 +16964,7 @@ var require_SeededTrackedAssetsEventMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedAssetsEventMetadataToJSON = exports.SeededTrackedAssetsEventMetadataFromJSONTyped = exports.SeededTrackedAssetsEventMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedAssetsEventMetadataFromJSON4(json) { return SeededTrackedAssetsEventMetadataFromJSONTyped6(json, false); } @@ -16452,7 +16974,7 @@ var require_SeededTrackedAssetsEventMetadata = __commonJS({ return json; } return { - "search": !(0, runtime_1.exists)(json, "search") ? void 0 : (0, index_1.TrackedAssetsEventSearchMetadataFromJSON)(json["search"]) + "search": !(0, runtime_1.exists)(json, "search") ? void 0 : (0, _1.TrackedAssetsEventSearchMetadataFromJSON)(json["search"]) }; } exports.SeededTrackedAssetsEventMetadataFromJSONTyped = SeededTrackedAssetsEventMetadataFromJSONTyped6; @@ -16464,7 +16986,7 @@ var require_SeededTrackedAssetsEventMetadata = __commonJS({ return null; } return { - "search": (0, index_1.TrackedAssetsEventSearchMetadataToJSON)(value.search) + "search": (0, _1.TrackedAssetsEventSearchMetadataToJSON)(value.search) }; } exports.SeededTrackedAssetsEventMetadataToJSON = SeededTrackedAssetsEventMetadataToJSON4; @@ -16478,7 +17000,7 @@ var require_SeededTrackedFormatEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedFormatEventToJSON = exports.SeededTrackedFormatEventFromJSONTyped = exports.SeededTrackedFormatEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedFormatEventFromJSON5(json) { return SeededTrackedFormatEventFromJSONTyped6(json, false); } @@ -16488,10 +17010,10 @@ var require_SeededTrackedFormatEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "identifierDescriptionPair": (0, index_1.TrackedFormatEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]), - "format": (0, index_1.ReferencedFormatFromJSON)(json["format"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.TrackedFormatEventMetadataFromJSON)(json["metadata"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "identifierDescriptionPair": (0, _1.TrackedFormatEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]), + "format": (0, _1.ReferencedFormatFromJSON)(json["format"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.TrackedFormatEventMetadataFromJSON)(json["metadata"]) }; } exports.SeededTrackedFormatEventFromJSONTyped = SeededTrackedFormatEventFromJSONTyped6; @@ -16503,10 +17025,10 @@ var require_SeededTrackedFormatEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "identifier_description_pair": (0, index_1.TrackedFormatEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair), - "format": (0, index_1.ReferencedFormatToJSON)(value.format), - "metadata": (0, index_1.TrackedFormatEventMetadataToJSON)(value.metadata) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "identifier_description_pair": (0, _1.TrackedFormatEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair), + "format": (0, _1.ReferencedFormatToJSON)(value.format), + "metadata": (0, _1.TrackedFormatEventMetadataToJSON)(value.metadata) }; } exports.SeededTrackedFormatEventToJSON = SeededTrackedFormatEventToJSON4; @@ -16520,7 +17042,7 @@ var require_SeededTrackedInteractionEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedInteractionEventToJSON = exports.SeededTrackedInteractionEventFromJSONTyped = exports.SeededTrackedInteractionEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedInteractionEventFromJSON5(json) { return SeededTrackedInteractionEventFromJSONTyped6(json, false); } @@ -16530,10 +17052,10 @@ var require_SeededTrackedInteractionEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "description": json["description"], "element": !(0, runtime_1.exists)(json, "element") ? void 0 : json["element"], - "identifierDescriptionPair": !(0, runtime_1.exists)(json, "identifier_description_pair") ? void 0 : (0, index_1.SeededTrackedInteractionEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]) + "identifierDescriptionPair": !(0, runtime_1.exists)(json, "identifier_description_pair") ? void 0 : (0, _1.SeededTrackedInteractionEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]) }; } exports.SeededTrackedInteractionEventFromJSONTyped = SeededTrackedInteractionEventFromJSONTyped6; @@ -16545,10 +17067,10 @@ var require_SeededTrackedInteractionEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "description": value.description, "element": value.element, - "identifier_description_pair": (0, index_1.SeededTrackedInteractionEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair) + "identifier_description_pair": (0, _1.SeededTrackedInteractionEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair) }; } exports.SeededTrackedInteractionEventToJSON = SeededTrackedInteractionEventToJSON4; @@ -16562,7 +17084,7 @@ var require_SeededTrackedInteractionEventIdentifierDescriptionPairs = __commonJS Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedInteractionEventIdentifierDescriptionPairsToJSON = exports.SeededTrackedInteractionEventIdentifierDescriptionPairsFromJSONTyped = exports.SeededTrackedInteractionEventIdentifierDescriptionPairsFromJSON = exports.SeededTrackedInteractionEventIdentifierDescriptionPairsAssetsListRefreshedEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var SeededTrackedInteractionEventIdentifierDescriptionPairsAssetsListRefreshedEnum; (function(SeededTrackedInteractionEventIdentifierDescriptionPairsAssetsListRefreshedEnum2) { SeededTrackedInteractionEventIdentifierDescriptionPairsAssetsListRefreshedEnum2["TheAssetsListWasRefreshedThroughUiElement"] = "the_assets_list_was_refreshed_through_ui_element"; @@ -16576,7 +17098,7 @@ var require_SeededTrackedInteractionEventIdentifierDescriptionPairs = __commonJS return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "assetsListRefreshed": !(0, runtime_1.exists)(json, "assets_list_refreshed") ? void 0 : json["assets_list_refreshed"] }; } @@ -16589,7 +17111,7 @@ var require_SeededTrackedInteractionEventIdentifierDescriptionPairs = __commonJS return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "assets_list_refreshed": value.assetsListRefreshed }; } @@ -16604,7 +17126,7 @@ var require_SeededTrackedKeyboardEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedKeyboardEventToJSON = exports.SeededTrackedKeyboardEventFromJSONTyped = exports.SeededTrackedKeyboardEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedKeyboardEventFromJSON5(json) { return SeededTrackedKeyboardEventFromJSONTyped6(json, false); } @@ -16614,10 +17136,10 @@ var require_SeededTrackedKeyboardEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "description": json["description"], "shortcut": json["shortcut"], - "identifierDescriptionPair": !(0, runtime_1.exists)(json, "identifier_description_pair") ? void 0 : (0, index_1.SeededTrackedKeyboardEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]) + "identifierDescriptionPair": !(0, runtime_1.exists)(json, "identifier_description_pair") ? void 0 : (0, _1.SeededTrackedKeyboardEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]) }; } exports.SeededTrackedKeyboardEventFromJSONTyped = SeededTrackedKeyboardEventFromJSONTyped6; @@ -16629,10 +17151,10 @@ var require_SeededTrackedKeyboardEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "description": value.description, "shortcut": value.shortcut, - "identifier_description_pair": (0, index_1.SeededTrackedKeyboardEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair) + "identifier_description_pair": (0, _1.SeededTrackedKeyboardEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair) }; } exports.SeededTrackedKeyboardEventToJSON = SeededTrackedKeyboardEventToJSON4; @@ -16646,7 +17168,7 @@ var require_SeededTrackedKeyboardEventIdentifierDescriptionPairs = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedKeyboardEventIdentifierDescriptionPairsToJSON = exports.SeededTrackedKeyboardEventIdentifierDescriptionPairsFromJSONTyped = exports.SeededTrackedKeyboardEventIdentifierDescriptionPairsFromJSON = exports.SeededTrackedKeyboardEventIdentifierDescriptionPairsAssetsListRefreshedEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var SeededTrackedKeyboardEventIdentifierDescriptionPairsAssetsListRefreshedEnum; (function(SeededTrackedKeyboardEventIdentifierDescriptionPairsAssetsListRefreshedEnum2) { SeededTrackedKeyboardEventIdentifierDescriptionPairsAssetsListRefreshedEnum2["TheAssetsListWasRefreshedThroughAKeyboardShortcut"] = "the_assets_list_was_refreshed_through_a_keyboard_shortcut"; @@ -16660,7 +17182,7 @@ var require_SeededTrackedKeyboardEventIdentifierDescriptionPairs = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "assetsListRefreshed": !(0, runtime_1.exists)(json, "assets_list_refreshed") ? void 0 : json["assets_list_refreshed"] }; } @@ -16673,7 +17195,7 @@ var require_SeededTrackedKeyboardEventIdentifierDescriptionPairs = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "assets_list_refreshed": value.assetsListRefreshed }; } @@ -16688,7 +17210,7 @@ var require_SeededTrackedMachineLearningEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedMachineLearningEventToJSON = exports.SeededTrackedMachineLearningEventFromJSONTyped = exports.SeededTrackedMachineLearningEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedMachineLearningEventFromJSON4(json) { return SeededTrackedMachineLearningEventFromJSONTyped6(json, false); } @@ -16698,9 +17220,9 @@ var require_SeededTrackedMachineLearningEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "tlp": !(0, runtime_1.exists)(json, "tlp") ? void 0 : (0, index_1.TLPMachineLearningProcessingEventFromJSON)(json["tlp"]), - "graphical": !(0, runtime_1.exists)(json, "graphical") ? void 0 : (0, index_1.GraphicalMachineLearningProcessingEventFromJSON)(json["graphical"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "tlp": !(0, runtime_1.exists)(json, "tlp") ? void 0 : (0, _1.TLPMachineLearningProcessingEventFromJSON)(json["tlp"]), + "graphical": !(0, runtime_1.exists)(json, "graphical") ? void 0 : (0, _1.GraphicalMachineLearningProcessingEventFromJSON)(json["graphical"]) }; } exports.SeededTrackedMachineLearningEventFromJSONTyped = SeededTrackedMachineLearningEventFromJSONTyped6; @@ -16712,9 +17234,9 @@ var require_SeededTrackedMachineLearningEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "tlp": (0, index_1.TLPMachineLearningProcessingEventToJSON)(value.tlp), - "graphical": (0, index_1.GraphicalMachineLearningProcessingEventToJSON)(value.graphical) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "tlp": (0, _1.TLPMachineLearningProcessingEventToJSON)(value.tlp), + "graphical": (0, _1.GraphicalMachineLearningProcessingEventToJSON)(value.graphical) }; } exports.SeededTrackedMachineLearningEventToJSON = SeededTrackedMachineLearningEventToJSON4; @@ -16728,7 +17250,7 @@ var require_SeededTrackedSessionEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededTrackedSessionEventToJSON = exports.SeededTrackedSessionEventFromJSONTyped = exports.SeededTrackedSessionEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededTrackedSessionEventFromJSON4(json) { return SeededTrackedSessionEventFromJSONTyped6(json, false); } @@ -16738,8 +17260,8 @@ var require_SeededTrackedSessionEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "identifierDescriptionPair": (0, index_1.TrackedSessionEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "identifierDescriptionPair": (0, _1.TrackedSessionEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]) }; } exports.SeededTrackedSessionEventFromJSONTyped = SeededTrackedSessionEventFromJSONTyped6; @@ -16751,8 +17273,8 @@ var require_SeededTrackedSessionEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "identifier_description_pair": (0, index_1.TrackedSessionEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "identifier_description_pair": (0, _1.TrackedSessionEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair) }; } exports.SeededTrackedSessionEventToJSON = SeededTrackedSessionEventToJSON4; @@ -16766,7 +17288,7 @@ var require_SeededUltraSuiteAsset = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededUltraSuiteAssetToJSON = exports.SeededUltraSuiteAssetFromJSONTyped = exports.SeededUltraSuiteAssetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededUltraSuiteAssetFromJSON2(json) { return SeededUltraSuiteAssetFromJSONTyped(json, false); } @@ -16776,10 +17298,10 @@ var require_SeededUltraSuiteAsset = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "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"], - "ext": !(0, runtime_1.exists)(json, "ext") ? void 0 : (0, index_1.ClassificationSpecificEnumFromJSON)(json["ext"]), - "format": (0, index_1.SeededFormatFromJSON)(json["format"]), + "ext": !(0, runtime_1.exists)(json, "ext") ? void 0 : (0, _1.ClassificationSpecificEnumFromJSON)(json["ext"]), + "format": (0, _1.SeededFormatFromJSON)(json["format"]), "description": !(0, runtime_1.exists)(json, "description") ? void 0 : json["description"] }; } @@ -16792,10 +17314,10 @@ var require_SeededUltraSuiteAsset = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "name": value.name, - "ext": (0, index_1.ClassificationSpecificEnumToJSON)(value.ext), - "format": (0, index_1.SeededFormatToJSON)(value.format), + "ext": (0, _1.ClassificationSpecificEnumToJSON)(value.ext), + "format": (0, _1.SeededFormatToJSON)(value.format), "description": value.description }; } @@ -16810,7 +17332,7 @@ var require_SeededUser = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededUserToJSON = exports.SeededUserFromJSONTyped = exports.SeededUserFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededUserFromJSON3(json) { return SeededUserFromJSONTyped7(json, false); } @@ -16820,7 +17342,7 @@ var require_SeededUser = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "emails": json["emails"] }; } @@ -16833,7 +17355,7 @@ var require_SeededUser = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "emails": value.emails }; } @@ -16848,7 +17370,7 @@ var require_SeededWebsite = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeededWebsiteToJSON = exports.SeededWebsiteFromJSONTyped = exports.SeededWebsiteFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeededWebsiteFromJSON2(json) { return SeededWebsiteFromJSONTyped(json, false); } @@ -16858,11 +17380,11 @@ var require_SeededWebsite = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "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"], "url": json["url"], "name": json["name"], - "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), + "mechanism": !(0, runtime_1.exists)(json, "mechanism") ? void 0 : (0, _1.MechanismEnumFromJSON)(json["mechanism"]), "person": !(0, runtime_1.exists)(json, "person") ? void 0 : json["person"] }; } @@ -16875,11 +17397,11 @@ var require_SeededWebsite = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset": value.asset, "url": value.url, "name": value.name, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), "person": value.person }; } @@ -16894,7 +17416,7 @@ var require_Seeds = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SeedsToJSON = exports.SeedsFromJSONTyped = exports.SeedsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SeedsFromJSON3(json) { return SeedsFromJSONTyped3(json, false); } @@ -16904,8 +17426,8 @@ var require_Seeds = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.SeedFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.SeedFromJSON) }; } exports.SeedsFromJSONTyped = SeedsFromJSONTyped3; @@ -16917,14 +17439,94 @@ var require_Seeds = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.SeedToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.SeedToJSON) }; } exports.SeedsToJSON = SeedsToJSON4; } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SegmentedTechnicalLanguage.js +var require_SegmentedTechnicalLanguage = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SegmentedTechnicalLanguage.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SegmentedTechnicalLanguageToJSON = exports.SegmentedTechnicalLanguageFromJSONTyped = exports.SegmentedTechnicalLanguageFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function SegmentedTechnicalLanguageFromJSON2(json) { + return SegmentedTechnicalLanguageFromJSONTyped(json, false); + } + exports.SegmentedTechnicalLanguageFromJSON = SegmentedTechnicalLanguageFromJSON2; + function SegmentedTechnicalLanguageFromJSONTyped(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.SegmentedTechnicalLanguageFragmentFromJSON) + }; + } + exports.SegmentedTechnicalLanguageFromJSONTyped = SegmentedTechnicalLanguageFromJSONTyped; + function SegmentedTechnicalLanguageToJSON2(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.SegmentedTechnicalLanguageFragmentToJSON) + }; + } + exports.SegmentedTechnicalLanguageToJSON = SegmentedTechnicalLanguageToJSON2; + } +}); + +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SegmentedTechnicalLanguageFragment.js +var require_SegmentedTechnicalLanguageFragment = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/SegmentedTechnicalLanguageFragment.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SegmentedTechnicalLanguageFragmentToJSON = exports.SegmentedTechnicalLanguageFragmentFromJSONTyped = exports.SegmentedTechnicalLanguageFragmentFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function SegmentedTechnicalLanguageFragmentFromJSON3(json) { + return SegmentedTechnicalLanguageFragmentFromJSONTyped3(json, false); + } + exports.SegmentedTechnicalLanguageFragmentFromJSON = SegmentedTechnicalLanguageFragmentFromJSON3; + function SegmentedTechnicalLanguageFragmentFromJSONTyped3(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"]), + "generic": (0, _1.ClassificationGenericEnumFromJSON)(json["generic"]), + "specific": !(0, runtime_1.exists)(json, "specific") ? void 0 : (0, _1.ClassificationSpecificEnumFromJSON)(json["specific"]), + "fragment": (0, _1.FragmentFormatFromJSON)(json["fragment"]) + }; + } + exports.SegmentedTechnicalLanguageFragmentFromJSONTyped = SegmentedTechnicalLanguageFragmentFromJSONTyped3; + function SegmentedTechnicalLanguageFragmentToJSON3(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "generic": (0, _1.ClassificationGenericEnumToJSON)(value.generic), + "specific": (0, _1.ClassificationSpecificEnumToJSON)(value.specific), + "fragment": (0, _1.FragmentFormatToJSON)(value.fragment) + }; + } + exports.SegmentedTechnicalLanguageFragmentToJSON = SegmentedTechnicalLanguageFragmentToJSON3; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Sensitive.js var require_Sensitive = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/Sensitive.js"(exports) { @@ -16932,7 +17534,7 @@ var require_Sensitive = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SensitiveToJSON = exports.SensitiveFromJSONTyped = exports.SensitiveFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SensitiveFromJSON4(json) { return SensitiveFromJSONTyped6(json, false); } @@ -16942,21 +17544,21 @@ var require_Sensitive = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "asset": (0, index_1.FlattenedAssetFromJSON)(json["asset"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "asset": (0, _1.FlattenedAssetFromJSON)(json["asset"]), "text": json["text"], - "mechanism": (0, index_1.MechanismEnumFromJSON)(json["mechanism"]), - "category": (0, index_1.SensitiveCategoryEnumFromJSON)(json["category"]), - "severity": (0, index_1.SensitiveSeverityEnumFromJSON)(json["severity"]), + "mechanism": (0, _1.MechanismEnumFromJSON)(json["mechanism"]), + "category": (0, _1.SensitiveCategoryEnumFromJSON)(json["category"]), + "severity": (0, _1.SensitiveSeverityEnumFromJSON)(json["severity"]), "name": json["name"], "description": json["description"], - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.SensitiveMetadataFromJSON)(json["metadata"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.SensitiveMetadataFromJSON)(json["metadata"]), "interactions": !(0, runtime_1.exists)(json, "interactions") ? void 0 : json["interactions"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.SensitiveFromJSONTyped = SensitiveFromJSONTyped6; @@ -16968,21 +17570,21 @@ var require_Sensitive = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "asset": (0, index_1.FlattenedAssetToJSON)(value.asset), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "asset": (0, _1.FlattenedAssetToJSON)(value.asset), "text": value.text, - "mechanism": (0, index_1.MechanismEnumToJSON)(value.mechanism), - "category": (0, index_1.SensitiveCategoryEnumToJSON)(value.category), - "severity": (0, index_1.SensitiveSeverityEnumToJSON)(value.severity), + "mechanism": (0, _1.MechanismEnumToJSON)(value.mechanism), + "category": (0, _1.SensitiveCategoryEnumToJSON)(value.category), + "severity": (0, _1.SensitiveSeverityEnumToJSON)(value.severity), "name": value.name, "description": value.description, - "metadata": (0, index_1.SensitiveMetadataToJSON)(value.metadata), + "metadata": (0, _1.SensitiveMetadataToJSON)(value.metadata), "interactions": value.interactions, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.SensitiveToJSON = SensitiveToJSON5; @@ -17033,7 +17635,7 @@ var require_SensitiveMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SensitiveMetadataToJSON = exports.SensitiveMetadataFromJSONTyped = exports.SensitiveMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SensitiveMetadataFromJSON4(json) { return SensitiveMetadataFromJSONTyped16(json, false); } @@ -17043,8 +17645,8 @@ var require_SensitiveMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "match": !(0, runtime_1.exists)(json, "match") ? void 0 : (0, index_1.TextMatchFromJSON)(json["match"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "match": !(0, runtime_1.exists)(json, "match") ? void 0 : (0, _1.TextMatchFromJSON)(json["match"]), "entropy": !(0, runtime_1.exists)(json, "entropy") ? void 0 : json["entropy"] }; } @@ -17057,8 +17659,8 @@ var require_SensitiveMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "match": (0, index_1.TextMatchToJSON)(value.match), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "match": (0, _1.TextMatchToJSON)(value.match), "entropy": value.entropy }; } @@ -17100,7 +17702,7 @@ var require_Sensitives = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SensitivesToJSON = exports.SensitivesFromJSONTyped = exports.SensitivesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SensitivesFromJSON4(json) { return SensitivesFromJSONTyped6(json, false); } @@ -17110,9 +17712,9 @@ var require_Sensitives = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.SensitiveFromJSON), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.SensitiveFromJSON), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.SensitivesFromJSONTyped = SensitivesFromJSONTyped6; @@ -17124,9 +17726,9 @@ var require_Sensitives = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.SensitiveToJSON), - "score": (0, index_1.ScoreToJSON)(value.score) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.SensitiveToJSON), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.SensitivesToJSON = SensitivesToJSON5; @@ -17140,7 +17742,7 @@ var require_Session = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SessionToJSON = exports.SessionFromJSONTyped = exports.SessionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SessionFromJSON2(json) { return SessionFromJSONTyped(json, false); } @@ -17151,8 +17753,8 @@ var require_Session = __commonJS({ } return { "id": json["id"], - "opened": (0, index_1.GroupedTimestampFromJSON)(json["opened"]), - "closed": !(0, runtime_1.exists)(json, "closed") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["closed"]) + "opened": (0, _1.GroupedTimestampFromJSON)(json["opened"]), + "closed": !(0, runtime_1.exists)(json, "closed") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["closed"]) }; } exports.SessionFromJSONTyped = SessionFromJSONTyped; @@ -17165,8 +17767,8 @@ var require_Session = __commonJS({ } return { "id": value.id, - "opened": (0, index_1.GroupedTimestampToJSON)(value.opened), - "closed": (0, index_1.GroupedTimestampToJSON)(value.closed) + "opened": (0, _1.GroupedTimestampToJSON)(value.opened), + "closed": (0, _1.GroupedTimestampToJSON)(value.closed) }; } exports.SessionToJSON = SessionToJSON2; @@ -17180,7 +17782,7 @@ var require_Share = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ShareToJSON = exports.ShareFromJSONTyped = exports.ShareFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ShareFromJSON4(json) { return ShareFromJSONTyped6(json, false); } @@ -17190,19 +17792,19 @@ var require_Share = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "user": !(0, runtime_1.exists)(json, "user") ? void 0 : json["user"], - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.FlattenedAssetFromJSON)(json["asset"]), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.FlattenedAssetFromJSON)(json["asset"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), "link": json["link"], - "access": (0, index_1.AccessEnumFromJSON)(json["access"]), - "accessors": (0, index_1.AccessorsFromJSON)(json["accessors"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), + "access": (0, _1.AccessEnumFromJSON)(json["access"]), + "accessors": (0, _1.AccessorsFromJSON)(json["accessors"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), "_short": json["short"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], - "distributions": !(0, runtime_1.exists)(json, "distributions") ? void 0 : (0, index_1.DistributionsFromJSON)(json["distributions"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "distributions": !(0, runtime_1.exists)(json, "distributions") ? void 0 : (0, _1.DistributionsFromJSON)(json["distributions"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.ShareFromJSONTyped = ShareFromJSONTyped6; @@ -17214,19 +17816,19 @@ var require_Share = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "user": value.user, - "asset": (0, index_1.FlattenedAssetToJSON)(value.asset), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), + "asset": (0, _1.FlattenedAssetToJSON)(value.asset), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), "link": value.link, - "access": (0, index_1.AccessEnumToJSON)(value.access), - "accessors": (0, index_1.AccessorsToJSON)(value.accessors), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), + "access": (0, _1.AccessEnumToJSON)(value.access), + "accessors": (0, _1.AccessorsToJSON)(value.accessors), + "created": (0, _1.GroupedTimestampToJSON)(value.created), "short": value._short, "name": value.name, - "distributions": (0, index_1.DistributionsToJSON)(value.distributions), - "score": (0, index_1.ScoreToJSON)(value.score) + "distributions": (0, _1.DistributionsToJSON)(value.distributions), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.ShareToJSON = ShareToJSON5; @@ -17240,7 +17842,7 @@ var require_Shares = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SharesToJSON = exports.SharesFromJSONTyped = exports.SharesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SharesFromJSON4(json) { return SharesFromJSONTyped6(json, false); } @@ -17250,9 +17852,9 @@ var require_Shares = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.ShareFromJSON), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.ShareFromJSON), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.SharesFromJSONTyped = SharesFromJSONTyped6; @@ -17264,9 +17866,9 @@ var require_Shares = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.ShareToJSON), - "score": (0, index_1.ScoreToJSON)(value.score) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.ShareToJSON), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.SharesToJSON = SharesToJSON6; @@ -17317,7 +17919,7 @@ var require_StreamedIdentifier = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.StreamedIdentifierToJSON = exports.StreamedIdentifierFromJSONTyped = exports.StreamedIdentifierFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function StreamedIdentifierFromJSON3(json) { return StreamedIdentifierFromJSONTyped4(json, false); } @@ -17327,8 +17929,8 @@ var require_StreamedIdentifier = __commonJS({ return json; } return { - "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, index_1.ReferencedAssetFromJSON)(json["asset"]), - "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, index_1.ReferencedConversationFromJSON)(json["conversation"]), + "asset": !(0, runtime_1.exists)(json, "asset") ? void 0 : (0, _1.ReferencedAssetFromJSON)(json["asset"]), + "conversation": !(0, runtime_1.exists)(json, "conversation") ? void 0 : (0, _1.ReferencedConversationFromJSON)(json["conversation"]), "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : json["deleted"] }; } @@ -17341,8 +17943,8 @@ var require_StreamedIdentifier = __commonJS({ return null; } return { - "asset": (0, index_1.ReferencedAssetToJSON)(value.asset), - "conversation": (0, index_1.ReferencedConversationToJSON)(value.conversation), + "asset": (0, _1.ReferencedAssetToJSON)(value.asset), + "conversation": (0, _1.ReferencedConversationToJSON)(value.conversation), "deleted": value.deleted }; } @@ -17357,7 +17959,7 @@ var require_StreamedIdentifiers = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.StreamedIdentifiersToJSON = exports.StreamedIdentifiersFromJSONTyped = exports.StreamedIdentifiersFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function StreamedIdentifiersFromJSON2(json) { return StreamedIdentifiersFromJSONTyped2(json, false); } @@ -17367,8 +17969,8 @@ var require_StreamedIdentifiers = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.StreamedIdentifierFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.StreamedIdentifierFromJSON) }; } exports.StreamedIdentifiersFromJSONTyped = StreamedIdentifiersFromJSONTyped2; @@ -17380,8 +17982,8 @@ var require_StreamedIdentifiers = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.StreamedIdentifierToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.StreamedIdentifierToJSON) }; } exports.StreamedIdentifiersToJSON = StreamedIdentifiersToJSON2; @@ -17395,7 +17997,7 @@ var require_Suggestion = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SuggestionToJSON = exports.SuggestionFromJSONTyped = exports.SuggestionFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SuggestionFromJSON3(json) { return SuggestionFromJSONTyped2(json, false); } @@ -17405,11 +18007,11 @@ var require_Suggestion = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "reuse": (0, index_1.ReuseSuggestionFromJSON)(json["reuse"]), - "save": (0, index_1.SaveSuggestionFromJSON)(json["save"]), - "target": (0, index_1.SuggestionTargetFromJSON)(json["target"]), - "assets": (0, index_1.AssetsFromJSON)(json["assets"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "reuse": (0, _1.ReuseSuggestionFromJSON)(json["reuse"]), + "save": (0, _1.SaveSuggestionFromJSON)(json["save"]), + "target": (0, _1.SuggestionTargetFromJSON)(json["target"]), + "assets": (0, _1.AssetsFromJSON)(json["assets"]), "distribution": !(0, runtime_1.exists)(json, "distribution") ? void 0 : json["distribution"] }; } @@ -17422,11 +18024,11 @@ var require_Suggestion = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "reuse": (0, index_1.ReuseSuggestionToJSON)(value.reuse), - "save": (0, index_1.SaveSuggestionToJSON)(value.save), - "target": (0, index_1.SuggestionTargetToJSON)(value.target), - "assets": (0, index_1.AssetsToJSON)(value.assets), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "reuse": (0, _1.ReuseSuggestionToJSON)(value.reuse), + "save": (0, _1.SaveSuggestionToJSON)(value.save), + "target": (0, _1.SuggestionTargetToJSON)(value.target), + "assets": (0, _1.AssetsToJSON)(value.assets), "distribution": value.distribution }; } @@ -17441,7 +18043,7 @@ var require_SuggestionTarget = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SuggestionTargetToJSON = exports.SuggestionTargetFromJSONTyped = exports.SuggestionTargetFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function SuggestionTargetFromJSON4(json) { return SuggestionTargetFromJSONTyped5(json, false); } @@ -17451,8 +18053,8 @@ var require_SuggestionTarget = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "seed": (0, index_1.SeededConnectorCreationFromJSON)(json["seed"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "seed": (0, _1.SeededConnectorCreationFromJSON)(json["seed"]), "vector": json["vector"] }; } @@ -17465,8 +18067,8 @@ var require_SuggestionTarget = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "seed": (0, index_1.SeededConnectorCreationToJSON)(value.seed), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "seed": (0, _1.SeededConnectorCreationToJSON)(value.seed), "vector": value.vector }; } @@ -17518,7 +18120,7 @@ var require_SystemExecutionInformation = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SystemExecutionInformationToJSON = exports.SystemExecutionInformationFromJSONTyped = exports.SystemExecutionInformationFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function SystemExecutionInformationFromJSON4(json) { return SystemExecutionInformationFromJSONTyped6(json, false); } @@ -17531,7 +18133,7 @@ var require_SystemExecutionInformation = __commonJS({ "memory": json["memory"], "os": json["os"], "kernel": json["kernel"], - "cpu": (0, index_1.SystemExecutionCpuInformationFromJSON)(json["cpu"]) + "cpu": (0, _1.SystemExecutionCpuInformationFromJSON)(json["cpu"]) }; } exports.SystemExecutionInformationFromJSONTyped = SystemExecutionInformationFromJSONTyped6; @@ -17546,7 +18148,7 @@ var require_SystemExecutionInformation = __commonJS({ "memory": value.memory, "os": value.os, "kernel": value.kernel, - "cpu": (0, index_1.SystemExecutionCpuInformationToJSON)(value.cpu) + "cpu": (0, _1.SystemExecutionCpuInformationToJSON)(value.cpu) }; } exports.SystemExecutionInformationToJSON = SystemExecutionInformationToJSON4; @@ -17560,7 +18162,7 @@ var require_TLPCodeDirectoryAnalytics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeDirectoryAnalyticsToJSON = exports.TLPCodeDirectoryAnalyticsFromJSONTyped = exports.TLPCodeDirectoryAnalyticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeDirectoryAnalyticsFromJSON4(json) { return TLPCodeDirectoryAnalyticsFromJSONTyped6(json, false); } @@ -17570,7 +18172,7 @@ var require_TLPCodeDirectoryAnalytics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": !(0, runtime_1.exists)(json, "id") ? void 0 : json["id"] }; } @@ -17583,7 +18185,7 @@ var require_TLPCodeDirectoryAnalytics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id }; } @@ -17598,7 +18200,7 @@ var require_TLPCodeFileAnalytics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFileAnalyticsToJSON = exports.TLPCodeFileAnalyticsFromJSONTyped = exports.TLPCodeFileAnalyticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFileAnalyticsFromJSON4(json) { return TLPCodeFileAnalyticsFromJSONTyped6(json, false); } @@ -17608,7 +18210,7 @@ var require_TLPCodeFileAnalytics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": !(0, runtime_1.exists)(json, "id") ? void 0 : json["id"] }; } @@ -17621,7 +18223,7 @@ var require_TLPCodeFileAnalytics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id }; } @@ -17636,7 +18238,7 @@ var require_TLPCodeFragmentClassification = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFragmentClassificationToJSON = exports.TLPCodeFragmentClassificationFromJSONTyped = exports.TLPCodeFragmentClassificationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFragmentClassificationFromJSON4(json) { return TLPCodeFragmentClassificationFromJSONTyped6(json, false); } @@ -17646,7 +18248,7 @@ var require_TLPCodeFragmentClassification = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "asset": json["asset"], "model": json["model"], "created": json["created"], @@ -17654,10 +18256,10 @@ var require_TLPCodeFragmentClassification = __commonJS({ "probability": json["probability"], "context": json["context"], "distribution": !(0, runtime_1.exists)(json, "distribution") ? void 0 : json["distribution"], - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.TLPCodeFragmentClassificationMetadataFromJSON)(json["metadata"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.TLPCodeFragmentClassificationMetadataFromJSON)(json["metadata"]), "user": json["user"], "latency": !(0, runtime_1.exists)(json, "latency") ? void 0 : json["latency"], - "system": !(0, runtime_1.exists)(json, "system") ? void 0 : (0, index_1.SystemExecutionInformationFromJSON)(json["system"]) + "system": !(0, runtime_1.exists)(json, "system") ? void 0 : (0, _1.SystemExecutionInformationFromJSON)(json["system"]) }; } exports.TLPCodeFragmentClassificationFromJSONTyped = TLPCodeFragmentClassificationFromJSONTyped6; @@ -17669,7 +18271,7 @@ var require_TLPCodeFragmentClassification = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset": value.asset, "model": value.model, "created": value.created, @@ -17677,10 +18279,10 @@ var require_TLPCodeFragmentClassification = __commonJS({ "probability": value.probability, "context": value.context, "distribution": value.distribution, - "metadata": (0, index_1.TLPCodeFragmentClassificationMetadataToJSON)(value.metadata), + "metadata": (0, _1.TLPCodeFragmentClassificationMetadataToJSON)(value.metadata), "user": value.user, "latency": value.latency, - "system": (0, index_1.SystemExecutionInformationToJSON)(value.system) + "system": (0, _1.SystemExecutionInformationToJSON)(value.system) }; } exports.TLPCodeFragmentClassificationToJSON = TLPCodeFragmentClassificationToJSON4; @@ -17694,7 +18296,7 @@ var require_TLPCodeFragmentClassificationMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFragmentClassificationMetadataToJSON = exports.TLPCodeFragmentClassificationMetadataFromJSONTyped = exports.TLPCodeFragmentClassificationMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFragmentClassificationMetadataFromJSON4(json) { return TLPCodeFragmentClassificationMetadataFromJSONTyped6(json, false); } @@ -17704,9 +18306,9 @@ var require_TLPCodeFragmentClassificationMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "context": !(0, runtime_1.exists)(json, "context") ? void 0 : (0, index_1.ClassificationFromJSON)(json["context"]), - "prior": !(0, runtime_1.exists)(json, "prior") ? void 0 : (0, index_1.ClassificationFromJSON)(json["prior"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "context": !(0, runtime_1.exists)(json, "context") ? void 0 : (0, _1.ClassificationFromJSON)(json["context"]), + "prior": !(0, runtime_1.exists)(json, "prior") ? void 0 : (0, _1.ClassificationFromJSON)(json["prior"]) }; } exports.TLPCodeFragmentClassificationMetadataFromJSONTyped = TLPCodeFragmentClassificationMetadataFromJSONTyped6; @@ -17718,9 +18320,9 @@ var require_TLPCodeFragmentClassificationMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "context": (0, index_1.ClassificationToJSON)(value.context), - "prior": (0, index_1.ClassificationToJSON)(value.prior) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "context": (0, _1.ClassificationToJSON)(value.context), + "prior": (0, _1.ClassificationToJSON)(value.prior) }; } exports.TLPCodeFragmentClassificationMetadataToJSON = TLPCodeFragmentClassificationMetadataToJSON4; @@ -17783,7 +18385,7 @@ var require_TLPCodeFragmentDescriptiveStatistics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFragmentDescriptiveStatisticsToJSON = exports.TLPCodeFragmentDescriptiveStatisticsFromJSONTyped = exports.TLPCodeFragmentDescriptiveStatisticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFragmentDescriptiveStatisticsFromJSON4(json) { return TLPCodeFragmentDescriptiveStatisticsFromJSONTyped6(json, false); } @@ -17793,7 +18395,7 @@ var require_TLPCodeFragmentDescriptiveStatistics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "user": json["user"], "os": json["os"], "language": json["language"], @@ -17814,7 +18416,7 @@ var require_TLPCodeFragmentDescriptiveStatistics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "user": value.user, "os": value.os, "language": value.language, @@ -17837,7 +18439,7 @@ var require_TLPCodeFragmentReclassification = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFragmentReclassificationToJSON = exports.TLPCodeFragmentReclassificationFromJSONTyped = exports.TLPCodeFragmentReclassificationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFragmentReclassificationFromJSON4(json) { return TLPCodeFragmentReclassificationFromJSONTyped6(json, false); } @@ -17847,11 +18449,11 @@ var require_TLPCodeFragmentReclassification = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "asset": json["asset"], "model": json["model"], "created": json["created"], - "updates": (0, index_1.TLPCodeFragmentReclassificationUpdatesFromJSON)(json["updates"]), + "updates": (0, _1.TLPCodeFragmentReclassificationUpdatesFromJSON)(json["updates"]), "user": json["user"], "context": json["context"] }; @@ -17865,11 +18467,11 @@ var require_TLPCodeFragmentReclassification = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset": value.asset, "model": value.model, "created": value.created, - "updates": (0, index_1.TLPCodeFragmentReclassificationUpdatesToJSON)(value.updates), + "updates": (0, _1.TLPCodeFragmentReclassificationUpdatesToJSON)(value.updates), "user": value.user, "context": value.context }; @@ -17885,7 +18487,7 @@ var require_TLPCodeFragmentReclassificationUpdates = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFragmentReclassificationUpdatesToJSON = exports.TLPCodeFragmentReclassificationUpdatesFromJSONTyped = exports.TLPCodeFragmentReclassificationUpdatesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFragmentReclassificationUpdatesFromJSON4(json) { return TLPCodeFragmentReclassificationUpdatesFromJSONTyped6(json, false); } @@ -17895,9 +18497,9 @@ var require_TLPCodeFragmentReclassificationUpdates = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "previous": (0, index_1.ClassificationFromJSON)(json["previous"]), - "current": (0, index_1.ClassificationFromJSON)(json["current"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "previous": (0, _1.ClassificationFromJSON)(json["previous"]), + "current": (0, _1.ClassificationFromJSON)(json["current"]) }; } exports.TLPCodeFragmentReclassificationUpdatesFromJSONTyped = TLPCodeFragmentReclassificationUpdatesFromJSONTyped6; @@ -17909,9 +18511,9 @@ var require_TLPCodeFragmentReclassificationUpdates = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "previous": (0, index_1.ClassificationToJSON)(value.previous), - "current": (0, index_1.ClassificationToJSON)(value.current) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "previous": (0, _1.ClassificationToJSON)(value.previous), + "current": (0, _1.ClassificationToJSON)(value.current) }; } exports.TLPCodeFragmentReclassificationUpdatesToJSON = TLPCodeFragmentReclassificationUpdatesToJSON4; @@ -17925,7 +18527,7 @@ var require_TLPCodeFragmentStatistics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFragmentStatisticsToJSON = exports.TLPCodeFragmentStatisticsFromJSONTyped = exports.TLPCodeFragmentStatisticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFragmentStatisticsFromJSON4(json) { return TLPCodeFragmentStatisticsFromJSONTyped6(json, false); } @@ -17935,8 +18537,8 @@ var require_TLPCodeFragmentStatistics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "descriptive": !(0, runtime_1.exists)(json, "descriptive") ? void 0 : (0, index_1.TLPCodeFragmentDescriptiveStatisticsFromJSON)(json["descriptive"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "descriptive": !(0, runtime_1.exists)(json, "descriptive") ? void 0 : (0, _1.TLPCodeFragmentDescriptiveStatisticsFromJSON)(json["descriptive"]) }; } exports.TLPCodeFragmentStatisticsFromJSONTyped = TLPCodeFragmentStatisticsFromJSONTyped6; @@ -17948,8 +18550,8 @@ var require_TLPCodeFragmentStatistics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "descriptive": (0, index_1.TLPCodeFragmentDescriptiveStatisticsToJSON)(value.descriptive) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "descriptive": (0, _1.TLPCodeFragmentDescriptiveStatisticsToJSON)(value.descriptive) }; } exports.TLPCodeFragmentStatisticsToJSON = TLPCodeFragmentStatisticsToJSON4; @@ -17963,7 +18565,7 @@ var require_TLPCodeFragmentSuggestedReuse = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFragmentSuggestedReuseToJSON = exports.TLPCodeFragmentSuggestedReuseFromJSONTyped = exports.TLPCodeFragmentSuggestedReuseFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFragmentSuggestedReuseFromJSON4(json) { return TLPCodeFragmentSuggestedReuseFromJSONTyped6(json, false); } @@ -17973,7 +18575,7 @@ var require_TLPCodeFragmentSuggestedReuse = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": !(0, runtime_1.exists)(json, "id") ? void 0 : json["id"] }; } @@ -17986,7 +18588,7 @@ var require_TLPCodeFragmentSuggestedReuse = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id }; } @@ -18001,7 +18603,7 @@ var require_TLPCodeFragmentSuggestedSave = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFragmentSuggestedSaveToJSON = exports.TLPCodeFragmentSuggestedSaveFromJSONTyped = exports.TLPCodeFragmentSuggestedSaveFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFragmentSuggestedSaveFromJSON4(json) { return TLPCodeFragmentSuggestedSaveFromJSONTyped6(json, false); } @@ -18011,7 +18613,7 @@ var require_TLPCodeFragmentSuggestedSave = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "asset": json["asset"], "user": json["user"], "model": json["model"], @@ -18031,7 +18633,7 @@ var require_TLPCodeFragmentSuggestedSave = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset": value.asset, "user": value.user, "model": value.model, @@ -18053,7 +18655,7 @@ var require_TLPCodeFragmentTagify = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeFragmentTagifyToJSON = exports.TLPCodeFragmentTagifyFromJSONTyped = exports.TLPCodeFragmentTagifyFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeFragmentTagifyFromJSON4(json) { return TLPCodeFragmentTagifyFromJSONTyped6(json, false); } @@ -18063,8 +18665,8 @@ var require_TLPCodeFragmentTagify = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "code": !(0, runtime_1.exists)(json, "code") ? void 0 : (0, index_1.TLPCodeSnippetTagifyCodeFromJSON)(json["code"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "code": !(0, runtime_1.exists)(json, "code") ? void 0 : (0, _1.TLPCodeSnippetTagifyCodeFromJSON)(json["code"]) }; } exports.TLPCodeFragmentTagifyFromJSONTyped = TLPCodeFragmentTagifyFromJSONTyped6; @@ -18076,8 +18678,8 @@ var require_TLPCodeFragmentTagify = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "code": (0, index_1.TLPCodeSnippetTagifyCodeToJSON)(value.code) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "code": (0, _1.TLPCodeSnippetTagifyCodeToJSON)(value.code) }; } exports.TLPCodeFragmentTagifyToJSON = TLPCodeFragmentTagifyToJSON4; @@ -18091,7 +18693,7 @@ var require_TLPCodeProcessing = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeProcessingToJSON = exports.TLPCodeProcessingFromJSONTyped = exports.TLPCodeProcessingFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeProcessingFromJSON4(json) { return TLPCodeProcessingFromJSONTyped6(json, false); } @@ -18101,11 +18703,11 @@ var require_TLPCodeProcessing = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, index_1.TLPCodeSnippetAnalyticsFromJSON)(json["fragment"]), - "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, index_1.TLPCodeFileAnalyticsFromJSON)(json["file"]), - "directory": !(0, runtime_1.exists)(json, "directory") ? void 0 : (0, index_1.TLPCodeDirectoryAnalyticsFromJSON)(json["directory"]), - "repository": !(0, runtime_1.exists)(json, "repository") ? void 0 : (0, index_1.TLPCodeRepositoryAnalyticsFromJSON)(json["repository"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "fragment": !(0, runtime_1.exists)(json, "fragment") ? void 0 : (0, _1.TLPCodeSnippetAnalyticsFromJSON)(json["fragment"]), + "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, _1.TLPCodeFileAnalyticsFromJSON)(json["file"]), + "directory": !(0, runtime_1.exists)(json, "directory") ? void 0 : (0, _1.TLPCodeDirectoryAnalyticsFromJSON)(json["directory"]), + "repository": !(0, runtime_1.exists)(json, "repository") ? void 0 : (0, _1.TLPCodeRepositoryAnalyticsFromJSON)(json["repository"]) }; } exports.TLPCodeProcessingFromJSONTyped = TLPCodeProcessingFromJSONTyped6; @@ -18117,11 +18719,11 @@ var require_TLPCodeProcessing = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "fragment": (0, index_1.TLPCodeSnippetAnalyticsToJSON)(value.fragment), - "file": (0, index_1.TLPCodeFileAnalyticsToJSON)(value.file), - "directory": (0, index_1.TLPCodeDirectoryAnalyticsToJSON)(value.directory), - "repository": (0, index_1.TLPCodeRepositoryAnalyticsToJSON)(value.repository) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "fragment": (0, _1.TLPCodeSnippetAnalyticsToJSON)(value.fragment), + "file": (0, _1.TLPCodeFileAnalyticsToJSON)(value.file), + "directory": (0, _1.TLPCodeDirectoryAnalyticsToJSON)(value.directory), + "repository": (0, _1.TLPCodeRepositoryAnalyticsToJSON)(value.repository) }; } exports.TLPCodeProcessingToJSON = TLPCodeProcessingToJSON4; @@ -18135,7 +18737,7 @@ var require_TLPCodeRepositoryAnalytics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeRepositoryAnalyticsToJSON = exports.TLPCodeRepositoryAnalyticsFromJSONTyped = exports.TLPCodeRepositoryAnalyticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeRepositoryAnalyticsFromJSON4(json) { return TLPCodeRepositoryAnalyticsFromJSONTyped6(json, false); } @@ -18145,7 +18747,7 @@ var require_TLPCodeRepositoryAnalytics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": !(0, runtime_1.exists)(json, "id") ? void 0 : json["id"] }; } @@ -18158,7 +18760,7 @@ var require_TLPCodeRepositoryAnalytics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id }; } @@ -18173,7 +18775,7 @@ var require_TLPCodeSnippetAnalytics = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeSnippetAnalyticsToJSON = exports.TLPCodeSnippetAnalyticsFromJSONTyped = exports.TLPCodeSnippetAnalyticsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeSnippetAnalyticsFromJSON4(json) { return TLPCodeSnippetAnalyticsFromJSONTyped6(json, false); } @@ -18183,13 +18785,13 @@ var require_TLPCodeSnippetAnalytics = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "statistics": !(0, runtime_1.exists)(json, "statistics") ? void 0 : (0, index_1.TLPCodeFragmentStatisticsFromJSON)(json["statistics"]), - "classification": !(0, runtime_1.exists)(json, "classification") ? void 0 : (0, index_1.TLPCodeFragmentClassificationFromJSON)(json["classification"]), - "reclassification": !(0, runtime_1.exists)(json, "reclassification") ? void 0 : (0, index_1.TLPCodeFragmentReclassificationFromJSON)(json["reclassification"]), - "suggested": !(0, runtime_1.exists)(json, "suggested") ? void 0 : (0, index_1.TLPCodeSnippetSuggestedInteractionsFromJSON)(json["suggested"]), - "tagify": !(0, runtime_1.exists)(json, "tagify") ? void 0 : (0, index_1.TLPCodeFragmentTagifyFromJSON)(json["tagify"]), - "description": !(0, runtime_1.exists)(json, "description") ? void 0 : (0, index_1.TLPCodeFragmentDescriptionFromJSON)(json["description"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "statistics": !(0, runtime_1.exists)(json, "statistics") ? void 0 : (0, _1.TLPCodeFragmentStatisticsFromJSON)(json["statistics"]), + "classification": !(0, runtime_1.exists)(json, "classification") ? void 0 : (0, _1.TLPCodeFragmentClassificationFromJSON)(json["classification"]), + "reclassification": !(0, runtime_1.exists)(json, "reclassification") ? void 0 : (0, _1.TLPCodeFragmentReclassificationFromJSON)(json["reclassification"]), + "suggested": !(0, runtime_1.exists)(json, "suggested") ? void 0 : (0, _1.TLPCodeSnippetSuggestedInteractionsFromJSON)(json["suggested"]), + "tagify": !(0, runtime_1.exists)(json, "tagify") ? void 0 : (0, _1.TLPCodeFragmentTagifyFromJSON)(json["tagify"]), + "description": !(0, runtime_1.exists)(json, "description") ? void 0 : (0, _1.TLPCodeFragmentDescriptionFromJSON)(json["description"]) }; } exports.TLPCodeSnippetAnalyticsFromJSONTyped = TLPCodeSnippetAnalyticsFromJSONTyped6; @@ -18201,13 +18803,13 @@ var require_TLPCodeSnippetAnalytics = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "statistics": (0, index_1.TLPCodeFragmentStatisticsToJSON)(value.statistics), - "classification": (0, index_1.TLPCodeFragmentClassificationToJSON)(value.classification), - "reclassification": (0, index_1.TLPCodeFragmentReclassificationToJSON)(value.reclassification), - "suggested": (0, index_1.TLPCodeSnippetSuggestedInteractionsToJSON)(value.suggested), - "tagify": (0, index_1.TLPCodeFragmentTagifyToJSON)(value.tagify), - "description": (0, index_1.TLPCodeFragmentDescriptionToJSON)(value.description) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "statistics": (0, _1.TLPCodeFragmentStatisticsToJSON)(value.statistics), + "classification": (0, _1.TLPCodeFragmentClassificationToJSON)(value.classification), + "reclassification": (0, _1.TLPCodeFragmentReclassificationToJSON)(value.reclassification), + "suggested": (0, _1.TLPCodeSnippetSuggestedInteractionsToJSON)(value.suggested), + "tagify": (0, _1.TLPCodeFragmentTagifyToJSON)(value.tagify), + "description": (0, _1.TLPCodeFragmentDescriptionToJSON)(value.description) }; } exports.TLPCodeSnippetAnalyticsToJSON = TLPCodeSnippetAnalyticsToJSON4; @@ -18221,7 +18823,7 @@ var require_TLPCodeSnippetSuggestedInteractions = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeSnippetSuggestedInteractionsToJSON = exports.TLPCodeSnippetSuggestedInteractionsFromJSONTyped = exports.TLPCodeSnippetSuggestedInteractionsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeSnippetSuggestedInteractionsFromJSON4(json) { return TLPCodeSnippetSuggestedInteractionsFromJSONTyped6(json, false); } @@ -18231,9 +18833,9 @@ var require_TLPCodeSnippetSuggestedInteractions = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "save": !(0, runtime_1.exists)(json, "save") ? void 0 : (0, index_1.TLPCodeFragmentSuggestedSaveFromJSON)(json["save"]), - "reuse": !(0, runtime_1.exists)(json, "reuse") ? void 0 : (0, index_1.TLPCodeFragmentSuggestedReuseFromJSON)(json["reuse"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "save": !(0, runtime_1.exists)(json, "save") ? void 0 : (0, _1.TLPCodeFragmentSuggestedSaveFromJSON)(json["save"]), + "reuse": !(0, runtime_1.exists)(json, "reuse") ? void 0 : (0, _1.TLPCodeFragmentSuggestedReuseFromJSON)(json["reuse"]) }; } exports.TLPCodeSnippetSuggestedInteractionsFromJSONTyped = TLPCodeSnippetSuggestedInteractionsFromJSONTyped6; @@ -18245,9 +18847,9 @@ var require_TLPCodeSnippetSuggestedInteractions = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "save": (0, index_1.TLPCodeFragmentSuggestedSaveToJSON)(value.save), - "reuse": (0, index_1.TLPCodeFragmentSuggestedReuseToJSON)(value.reuse) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "save": (0, _1.TLPCodeFragmentSuggestedSaveToJSON)(value.save), + "reuse": (0, _1.TLPCodeFragmentSuggestedReuseToJSON)(value.reuse) }; } exports.TLPCodeSnippetSuggestedInteractionsToJSON = TLPCodeSnippetSuggestedInteractionsToJSON4; @@ -18261,7 +18863,7 @@ var require_TLPCodeSnippetTagifyCode = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPCodeSnippetTagifyCodeToJSON = exports.TLPCodeSnippetTagifyCodeFromJSONTyped = exports.TLPCodeSnippetTagifyCodeFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPCodeSnippetTagifyCodeFromJSON4(json) { return TLPCodeSnippetTagifyCodeFromJSONTyped6(json, false); } @@ -18271,7 +18873,7 @@ var require_TLPCodeSnippetTagifyCode = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "distribution": json["distribution"], "inferredDistribution": json["inferred_distribution"], "tags": json["tags"], @@ -18293,7 +18895,7 @@ var require_TLPCodeSnippetTagifyCode = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "distribution": value.distribution, "inferred_distribution": value.inferredDistribution, "tags": value.tags, @@ -18316,7 +18918,7 @@ var require_TLPDirectedDiscoveryFilter = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPDirectedDiscoveryFilterToJSON = exports.TLPDirectedDiscoveryFilterFromJSONTyped = exports.TLPDirectedDiscoveryFilterFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function TLPDirectedDiscoveryFilterFromJSON3(json) { return TLPDirectedDiscoveryFilterFromJSONTyped4(json, false); } @@ -18326,7 +18928,7 @@ var require_TLPDirectedDiscoveryFilter = __commonJS({ return json; } return { - "name": (0, index_1.TLPDirectedDiscoveryFilterEnumFromJSON)(json["name"]) + "name": (0, _1.TLPDirectedDiscoveryFilterEnumFromJSON)(json["name"]) }; } exports.TLPDirectedDiscoveryFilterFromJSONTyped = TLPDirectedDiscoveryFilterFromJSONTyped4; @@ -18338,7 +18940,7 @@ var require_TLPDirectedDiscoveryFilter = __commonJS({ return null; } return { - "name": (0, index_1.TLPDirectedDiscoveryFilterEnumToJSON)(value.name) + "name": (0, _1.TLPDirectedDiscoveryFilterEnumToJSON)(value.name) }; } exports.TLPDirectedDiscoveryFilterToJSON = TLPDirectedDiscoveryFilterToJSON3; @@ -18385,7 +18987,7 @@ var require_TLPDirectedDiscoveryFilters = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPDirectedDiscoveryFiltersToJSON = exports.TLPDirectedDiscoveryFiltersFromJSONTyped = exports.TLPDirectedDiscoveryFiltersFromJSON = void 0; - var index_1 = require_models(); + var _1 = require_models(); function TLPDirectedDiscoveryFiltersFromJSON3(json) { return TLPDirectedDiscoveryFiltersFromJSONTyped8(json, false); } @@ -18395,7 +18997,7 @@ var require_TLPDirectedDiscoveryFilters = __commonJS({ return json; } return { - "iterable": json["iterable"].map(index_1.TLPDirectedDiscoveryFilterFromJSON) + "iterable": json["iterable"].map(_1.TLPDirectedDiscoveryFilterFromJSON) }; } exports.TLPDirectedDiscoveryFiltersFromJSONTyped = TLPDirectedDiscoveryFiltersFromJSONTyped8; @@ -18407,7 +19009,7 @@ var require_TLPDirectedDiscoveryFilters = __commonJS({ return null; } return { - "iterable": value.iterable.map(index_1.TLPDirectedDiscoveryFilterToJSON) + "iterable": value.iterable.map(_1.TLPDirectedDiscoveryFilterToJSON) }; } exports.TLPDirectedDiscoveryFiltersToJSON = TLPDirectedDiscoveryFiltersToJSON3; @@ -18421,7 +19023,7 @@ var require_TLPMachineLearningProcessingEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TLPMachineLearningProcessingEventToJSON = exports.TLPMachineLearningProcessingEventFromJSONTyped = exports.TLPMachineLearningProcessingEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TLPMachineLearningProcessingEventFromJSON4(json) { return TLPMachineLearningProcessingEventFromJSONTyped7(json, false); } @@ -18431,8 +19033,8 @@ var require_TLPMachineLearningProcessingEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "code": !(0, runtime_1.exists)(json, "code") ? void 0 : (0, index_1.TLPCodeProcessingFromJSON)(json["code"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "code": !(0, runtime_1.exists)(json, "code") ? void 0 : (0, _1.TLPCodeProcessingFromJSON)(json["code"]) }; } exports.TLPMachineLearningProcessingEventFromJSONTyped = TLPMachineLearningProcessingEventFromJSONTyped7; @@ -18444,8 +19046,8 @@ var require_TLPMachineLearningProcessingEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "code": (0, index_1.TLPCodeProcessingToJSON)(value.code) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "code": (0, _1.TLPCodeProcessingToJSON)(value.code) }; } exports.TLPMachineLearningProcessingEventToJSON = TLPMachineLearningProcessingEventToJSON4; @@ -18459,7 +19061,7 @@ var require_Tag = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TagToJSON = exports.TagFromJSONTyped = exports.TagFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TagFromJSON4(json) { return TagFromJSONTyped6(json, false); } @@ -18469,19 +19071,19 @@ var require_Tag = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "text": json["text"], - "mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], index_1.MechanismEnumFromJSON), - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "category": (0, index_1.TagCategoryEnumFromJSON)(json["category"]), - "relationship": !(0, runtime_1.exists)(json, "relationship") ? void 0 : (0, index_1.RelationshipFromJSON)(json["relationship"]), + "mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], _1.MechanismEnumFromJSON), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "category": (0, _1.TagCategoryEnumFromJSON)(json["category"]), + "relationship": !(0, runtime_1.exists)(json, "relationship") ? void 0 : (0, _1.RelationshipFromJSON)(json["relationship"]), "interactions": !(0, runtime_1.exists)(json, "interactions") ? void 0 : json["interactions"], - "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, index_1.FlattenedPersonsFromJSON)(json["persons"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, _1.FlattenedPersonsFromJSON)(json["persons"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.TagFromJSONTyped = TagFromJSONTyped6; @@ -18493,19 +19095,19 @@ var require_Tag = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "text": value.text, - "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, index_1.MechanismEnumToJSON), - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "category": (0, index_1.TagCategoryEnumToJSON)(value.category), - "relationship": (0, index_1.RelationshipToJSON)(value.relationship), + "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, _1.MechanismEnumToJSON), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "category": (0, _1.TagCategoryEnumToJSON)(value.category), + "relationship": (0, _1.RelationshipToJSON)(value.relationship), "interactions": value.interactions, - "persons": (0, index_1.FlattenedPersonsToJSON)(value.persons), - "score": (0, index_1.ScoreToJSON)(value.score) + "persons": (0, _1.FlattenedPersonsToJSON)(value.persons), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.TagToJSON = TagToJSON5; @@ -18546,7 +19148,7 @@ var require_Tags = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TagsToJSON = exports.TagsFromJSONTyped = exports.TagsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TagsFromJSON4(json) { return TagsFromJSONTyped6(json, false); } @@ -18556,10 +19158,10 @@ var require_Tags = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.TagFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.TagFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.TagsFromJSONTyped = TagsFromJSONTyped6; @@ -18571,10 +19173,10 @@ var require_Tags = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.TagToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.TagToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.TagsToJSON = TagsToJSON5; @@ -18588,7 +19190,7 @@ var require_TextLocation = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TextLocationToJSON = exports.TextLocationFromJSONTyped = exports.TextLocationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TextLocationFromJSON4(json) { return TextLocationFromJSONTyped7(json, false); } @@ -18598,7 +19200,7 @@ var require_TextLocation = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "text": json["text"], "start": json["start"], "end": json["end"] @@ -18613,7 +19215,7 @@ var require_TextLocation = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "text": value.text, "start": value.start, "end": value.end @@ -18630,7 +19232,7 @@ var require_TextMatch = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TextMatchToJSON = exports.TextMatchFromJSONTyped = exports.TextMatchFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TextMatchFromJSON4(json) { return TextMatchFromJSONTyped7(json, false); } @@ -18640,9 +19242,9 @@ var require_TextMatch = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "group": (0, index_1.TextLocationFromJSON)(json["group"]), - "subgroup": !(0, runtime_1.exists)(json, "subgroup") ? void 0 : (0, index_1.TextLocationFromJSON)(json["subgroup"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "group": (0, _1.TextLocationFromJSON)(json["group"]), + "subgroup": !(0, runtime_1.exists)(json, "subgroup") ? void 0 : (0, _1.TextLocationFromJSON)(json["subgroup"]) }; } exports.TextMatchFromJSONTyped = TextMatchFromJSONTyped7; @@ -18654,9 +19256,9 @@ var require_TextMatch = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "group": (0, index_1.TextLocationToJSON)(value.group), - "subgroup": (0, index_1.TextLocationToJSON)(value.subgroup) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "group": (0, _1.TextLocationToJSON)(value.group), + "subgroup": (0, _1.TextLocationToJSON)(value.subgroup) }; } exports.TextMatchToJSON = TextMatchToJSON4; @@ -18670,7 +19272,7 @@ var require_Theme = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.ThemeToJSON = exports.ThemeFromJSONTyped = exports.ThemeFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function ThemeFromJSON4(json) { return ThemeFromJSONTyped6(json, false); } @@ -18680,7 +19282,7 @@ var require_Theme = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "dark": json["dark"] }; } @@ -18693,7 +19295,7 @@ var require_Theme = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "dark": value.dark }; } @@ -18708,7 +19310,7 @@ var require_TokenizedPKCE = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TokenizedPKCEToJSON = exports.TokenizedPKCEFromJSONTyped = exports.TokenizedPKCEFromJSON = exports.TokenizedPKCEGrantTypeEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var TokenizedPKCEGrantTypeEnum; (function(TokenizedPKCEGrantTypeEnum2) { TokenizedPKCEGrantTypeEnum2["RefreshToken"] = "refresh_token"; @@ -18723,7 +19325,7 @@ var require_TokenizedPKCE = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "grantType": json["grant_type"], "clientId": json["client_id"], "code": json["code"], @@ -18741,7 +19343,7 @@ var require_TokenizedPKCE = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "grant_type": value.grantType, "client_id": value.clientId, "code": value.code, @@ -18761,7 +19363,7 @@ var require_TrackedApplication = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedApplicationToJSON = exports.TrackedApplicationFromJSONTyped = exports.TrackedApplicationFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedApplicationFromJSON3(json) { return TrackedApplicationFromJSONTyped7(json, false); } @@ -18771,11 +19373,11 @@ var require_TrackedApplication = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "name": (0, index_1.ApplicationNameEnumFromJSON)(json["name"]), + "name": (0, _1.ApplicationNameEnumFromJSON)(json["name"]), "version": json["version"], - "platform": (0, index_1.PlatformEnumFromJSON)(json["platform"]), + "platform": (0, _1.PlatformEnumFromJSON)(json["platform"]), "automaticUnload": !(0, runtime_1.exists)(json, "automaticUnload") ? void 0 : json["automaticUnload"] }; } @@ -18788,11 +19390,11 @@ var require_TrackedApplication = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "name": (0, index_1.ApplicationNameEnumToJSON)(value.name), + "name": (0, _1.ApplicationNameEnumToJSON)(value.name), "version": value.version, - "platform": (0, index_1.PlatformEnumToJSON)(value.platform), + "platform": (0, _1.PlatformEnumToJSON)(value.platform), "automaticUnload": value.automaticUnload }; } @@ -18807,7 +19409,7 @@ var require_TrackedApplicationInstall = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedApplicationInstallToJSON = exports.TrackedApplicationInstallFromJSONTyped = exports.TrackedApplicationInstallFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedApplicationInstallFromJSON2(json) { return TrackedApplicationInstallFromJSONTyped(json, false); } @@ -18817,9 +19419,9 @@ var require_TrackedApplicationInstall = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "application": (0, index_1.TrackedApplicationFromJSON)(json["application"]), - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.TrackedUserProfileFromJSON)(json["user"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "application": (0, _1.TrackedApplicationFromJSON)(json["application"]), + "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.TrackedUserProfileFromJSON)(json["user"]) }; } exports.TrackedApplicationInstallFromJSONTyped = TrackedApplicationInstallFromJSONTyped; @@ -18831,9 +19433,9 @@ var require_TrackedApplicationInstall = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "application": (0, index_1.TrackedApplicationToJSON)(value.application), - "user": (0, index_1.TrackedUserProfileToJSON)(value.user) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "application": (0, _1.TrackedApplicationToJSON)(value.application), + "user": (0, _1.TrackedUserProfileToJSON)(value.user) }; } exports.TrackedApplicationInstallToJSON = TrackedApplicationInstallToJSON2; @@ -18847,7 +19449,7 @@ var require_TrackedApplicationUpdate = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedApplicationUpdateToJSON = exports.TrackedApplicationUpdateFromJSONTyped = exports.TrackedApplicationUpdateFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedApplicationUpdateFromJSON2(json) { return TrackedApplicationUpdateFromJSONTyped(json, false); } @@ -18857,10 +19459,10 @@ var require_TrackedApplicationUpdate = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "current": (0, index_1.TrackedApplicationFromJSON)(json["current"]), - "previous": !(0, runtime_1.exists)(json, "previous") ? void 0 : (0, index_1.TrackedApplicationFromJSON)(json["previous"]), - "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, index_1.TrackedUserProfileFromJSON)(json["user"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "current": (0, _1.TrackedApplicationFromJSON)(json["current"]), + "previous": !(0, runtime_1.exists)(json, "previous") ? void 0 : (0, _1.TrackedApplicationFromJSON)(json["previous"]), + "user": !(0, runtime_1.exists)(json, "user") ? void 0 : (0, _1.TrackedUserProfileFromJSON)(json["user"]) }; } exports.TrackedApplicationUpdateFromJSONTyped = TrackedApplicationUpdateFromJSONTyped; @@ -18872,10 +19474,10 @@ var require_TrackedApplicationUpdate = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "current": (0, index_1.TrackedApplicationToJSON)(value.current), - "previous": (0, index_1.TrackedApplicationToJSON)(value.previous), - "user": (0, index_1.TrackedUserProfileToJSON)(value.user) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "current": (0, _1.TrackedApplicationToJSON)(value.current), + "previous": (0, _1.TrackedApplicationToJSON)(value.previous), + "user": (0, _1.TrackedUserProfileToJSON)(value.user) }; } exports.TrackedApplicationUpdateToJSON = TrackedApplicationUpdateToJSON2; @@ -18889,7 +19491,7 @@ var require_TrackedAssetEventCreationMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedAssetEventCreationMetadataToJSON = exports.TrackedAssetEventCreationMetadataFromJSONTyped = exports.TrackedAssetEventCreationMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedAssetEventCreationMetadataFromJSON4(json) { return TrackedAssetEventCreationMetadataFromJSONTyped6(json, false); } @@ -18899,9 +19501,9 @@ var require_TrackedAssetEventCreationMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "clipboard": !(0, runtime_1.exists)(json, "clipboard") ? void 0 : (0, index_1.TrackedAssetEventCreationMetadataClipboardFromJSON)(json["clipboard"]), - "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, index_1.TrackedAssetEventCreationMetadataFileFromJSON)(json["file"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "clipboard": !(0, runtime_1.exists)(json, "clipboard") ? void 0 : (0, _1.TrackedAssetEventCreationMetadataClipboardFromJSON)(json["clipboard"]), + "file": !(0, runtime_1.exists)(json, "file") ? void 0 : (0, _1.TrackedAssetEventCreationMetadataFileFromJSON)(json["file"]) }; } exports.TrackedAssetEventCreationMetadataFromJSONTyped = TrackedAssetEventCreationMetadataFromJSONTyped6; @@ -18913,9 +19515,9 @@ var require_TrackedAssetEventCreationMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "clipboard": (0, index_1.TrackedAssetEventCreationMetadataClipboardToJSON)(value.clipboard), - "file": (0, index_1.TrackedAssetEventCreationMetadataFileToJSON)(value.file) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "clipboard": (0, _1.TrackedAssetEventCreationMetadataClipboardToJSON)(value.clipboard), + "file": (0, _1.TrackedAssetEventCreationMetadataFileToJSON)(value.file) }; } exports.TrackedAssetEventCreationMetadataToJSON = TrackedAssetEventCreationMetadataToJSON4; @@ -18929,7 +19531,7 @@ var require_TrackedAssetEventCreationMetadataClipboard = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedAssetEventCreationMetadataClipboardToJSON = exports.TrackedAssetEventCreationMetadataClipboardFromJSONTyped = exports.TrackedAssetEventCreationMetadataClipboardFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedAssetEventCreationMetadataClipboardFromJSON4(json) { return TrackedAssetEventCreationMetadataClipboardFromJSONTyped6(json, false); } @@ -18939,7 +19541,7 @@ var require_TrackedAssetEventCreationMetadataClipboard = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "keyboard": !(0, runtime_1.exists)(json, "keyboard") ? void 0 : json["keyboard"], "interaction": !(0, runtime_1.exists)(json, "interaction") ? void 0 : json["interaction"] }; @@ -18953,7 +19555,7 @@ var require_TrackedAssetEventCreationMetadataClipboard = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "keyboard": value.keyboard, "interaction": value.interaction }; @@ -19008,7 +19610,7 @@ var require_TrackedAssetEventFormatReclassificationMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedAssetEventFormatReclassificationMetadataToJSON = exports.TrackedAssetEventFormatReclassificationMetadataFromJSONTyped = exports.TrackedAssetEventFormatReclassificationMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedAssetEventFormatReclassificationMetadataFromJSON4(json) { return TrackedAssetEventFormatReclassificationMetadataFromJSONTyped9(json, false); } @@ -19018,9 +19620,9 @@ var require_TrackedAssetEventFormatReclassificationMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "previous": !(0, runtime_1.exists)(json, "previous") ? void 0 : (0, index_1.ClassificationFromJSON)(json["previous"]), - "current": !(0, runtime_1.exists)(json, "current") ? void 0 : (0, index_1.ClassificationFromJSON)(json["current"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "previous": !(0, runtime_1.exists)(json, "previous") ? void 0 : (0, _1.ClassificationFromJSON)(json["previous"]), + "current": !(0, runtime_1.exists)(json, "current") ? void 0 : (0, _1.ClassificationFromJSON)(json["current"]) }; } exports.TrackedAssetEventFormatReclassificationMetadataFromJSONTyped = TrackedAssetEventFormatReclassificationMetadataFromJSONTyped9; @@ -19032,9 +19634,9 @@ var require_TrackedAssetEventFormatReclassificationMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "previous": (0, index_1.ClassificationToJSON)(value.previous), - "current": (0, index_1.ClassificationToJSON)(value.current) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "previous": (0, _1.ClassificationToJSON)(value.previous), + "current": (0, _1.ClassificationToJSON)(value.current) }; } exports.TrackedAssetEventFormatReclassificationMetadataToJSON = TrackedAssetEventFormatReclassificationMetadataToJSON4; @@ -19048,7 +19650,7 @@ var require_TrackedAssetEventIdentifierDescriptionPairs = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedAssetEventIdentifierDescriptionPairsToJSON = exports.TrackedAssetEventIdentifierDescriptionPairsFromJSONTyped = exports.TrackedAssetEventIdentifierDescriptionPairsFromJSON = exports.TrackedAssetEventIdentifierDescriptionPairsAssetAnchorUpdatedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetAnchorDeletedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetAnchorAddedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetHintUpdatedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetHintDeletedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetHintAddedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetAnnotationUpdatedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetAnnotationDeletedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetAnnotationAddedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsActivityAssetReferencedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetReferencedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsSearchedAssetReferencedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsSuggestedAssetReferencedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetSensitiveDeletedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetSensitiveAddedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetPersonDeletedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetPersonAddedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetLinkRevokedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetFormatUpdatedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetFormatValueEditedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetUpdatedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetTagDeletedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetLinkDeletedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetLinkGeneratedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetLinkAddedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetTagAddedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetCreationFailedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetFormatSpecificClassificationUpdatedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetFormatGenericClassificationUpdatedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetNameUpdatedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetDescriptionUpdatedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetDeletedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetFormatDownloadedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetFormatCopiedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetViewedEnum = exports.TrackedAssetEventIdentifierDescriptionPairsAssetCreatedEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var TrackedAssetEventIdentifierDescriptionPairsAssetCreatedEnum; (function(TrackedAssetEventIdentifierDescriptionPairsAssetCreatedEnum2) { TrackedAssetEventIdentifierDescriptionPairsAssetCreatedEnum2["AnAssetWasCreated"] = "an_asset_was_created"; @@ -19194,15 +19796,15 @@ var require_TrackedAssetEventIdentifierDescriptionPairs = __commonJS({ TrackedAssetEventIdentifierDescriptionPairsAssetAnchorUpdatedEnum2["AAnchorWasUpdatedByTheUser"] = "a_anchor_was_updated_by_the_user"; })(TrackedAssetEventIdentifierDescriptionPairsAssetAnchorUpdatedEnum || (exports.TrackedAssetEventIdentifierDescriptionPairsAssetAnchorUpdatedEnum = TrackedAssetEventIdentifierDescriptionPairsAssetAnchorUpdatedEnum = {})); function TrackedAssetEventIdentifierDescriptionPairsFromJSON4(json) { - return TrackedAssetEventIdentifierDescriptionPairsFromJSONTyped7(json, false); + return TrackedAssetEventIdentifierDescriptionPairsFromJSONTyped8(json, false); } exports.TrackedAssetEventIdentifierDescriptionPairsFromJSON = TrackedAssetEventIdentifierDescriptionPairsFromJSON4; - function TrackedAssetEventIdentifierDescriptionPairsFromJSONTyped7(json, ignoreDiscriminator) { + function TrackedAssetEventIdentifierDescriptionPairsFromJSONTyped8(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "assetCreated": !(0, runtime_1.exists)(json, "asset_created") ? void 0 : json["asset_created"], "assetViewed": !(0, runtime_1.exists)(json, "asset_viewed") ? void 0 : json["asset_viewed"], "assetFormatCopied": !(0, runtime_1.exists)(json, "asset_format_copied") ? void 0 : json["asset_format_copied"], @@ -19241,7 +19843,7 @@ var require_TrackedAssetEventIdentifierDescriptionPairs = __commonJS({ "assetAnchorUpdated": !(0, runtime_1.exists)(json, "asset_anchor_updated") ? void 0 : json["asset_anchor_updated"] }; } - exports.TrackedAssetEventIdentifierDescriptionPairsFromJSONTyped = TrackedAssetEventIdentifierDescriptionPairsFromJSONTyped7; + exports.TrackedAssetEventIdentifierDescriptionPairsFromJSONTyped = TrackedAssetEventIdentifierDescriptionPairsFromJSONTyped8; function TrackedAssetEventIdentifierDescriptionPairsToJSON4(value) { if (value === void 0) { return void 0; @@ -19250,7 +19852,7 @@ var require_TrackedAssetEventIdentifierDescriptionPairs = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "asset_created": value.assetCreated, "asset_viewed": value.assetViewed, "asset_format_copied": value.assetFormatCopied, @@ -19300,7 +19902,7 @@ var require_TrackedAssetEventMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedAssetEventMetadataToJSON = exports.TrackedAssetEventMetadataFromJSONTyped = exports.TrackedAssetEventMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedAssetEventMetadataFromJSON4(json) { return TrackedAssetEventMetadataFromJSONTyped7(json, false); } @@ -19310,18 +19912,18 @@ var require_TrackedAssetEventMetadata = __commonJS({ return json; } return { - "reclassification": !(0, runtime_1.exists)(json, "reclassification") ? void 0 : (0, index_1.TrackedAssetEventFormatReclassificationMetadataFromJSON)(json["reclassification"]), - "creation": !(0, runtime_1.exists)(json, "creation") ? void 0 : (0, index_1.TrackedAssetEventCreationMetadataFromJSON)(json["creation"]), - "rename": !(0, runtime_1.exists)(json, "rename") ? void 0 : (0, index_1.TrackedAssetEventRenameMetadataFromJSON)(json["rename"]), - "tag": !(0, runtime_1.exists)(json, "tag") ? void 0 : (0, index_1.ReferencedTagFromJSON)(json["tag"]), - "website": !(0, runtime_1.exists)(json, "website") ? void 0 : (0, index_1.ReferencedWebsiteFromJSON)(json["website"]), - "person": !(0, runtime_1.exists)(json, "person") ? void 0 : (0, index_1.ReferencedPersonFromJSON)(json["person"]), - "sensitive": !(0, runtime_1.exists)(json, "sensitive") ? void 0 : (0, index_1.ReferencedSensitiveFromJSON)(json["sensitive"]), - "share": !(0, runtime_1.exists)(json, "share") ? void 0 : (0, index_1.ReferencedShareFromJSON)(json["share"]), - "search": !(0, runtime_1.exists)(json, "search") ? void 0 : (0, index_1.TrackedAssetsEventSearchMetadataFromJSON)(json["search"]), - "annotation": !(0, runtime_1.exists)(json, "annotation") ? void 0 : (0, index_1.ReferencedAnnotationFromJSON)(json["annotation"]), - "hint": !(0, runtime_1.exists)(json, "hint") ? void 0 : (0, index_1.ReferencedHintFromJSON)(json["hint"]), - "anchor": !(0, runtime_1.exists)(json, "anchor") ? void 0 : (0, index_1.ReferencedAnchorFromJSON)(json["anchor"]) + "reclassification": !(0, runtime_1.exists)(json, "reclassification") ? void 0 : (0, _1.TrackedAssetEventFormatReclassificationMetadataFromJSON)(json["reclassification"]), + "creation": !(0, runtime_1.exists)(json, "creation") ? void 0 : (0, _1.TrackedAssetEventCreationMetadataFromJSON)(json["creation"]), + "rename": !(0, runtime_1.exists)(json, "rename") ? void 0 : (0, _1.TrackedAssetEventRenameMetadataFromJSON)(json["rename"]), + "tag": !(0, runtime_1.exists)(json, "tag") ? void 0 : (0, _1.ReferencedTagFromJSON)(json["tag"]), + "website": !(0, runtime_1.exists)(json, "website") ? void 0 : (0, _1.ReferencedWebsiteFromJSON)(json["website"]), + "person": !(0, runtime_1.exists)(json, "person") ? void 0 : (0, _1.ReferencedPersonFromJSON)(json["person"]), + "sensitive": !(0, runtime_1.exists)(json, "sensitive") ? void 0 : (0, _1.ReferencedSensitiveFromJSON)(json["sensitive"]), + "share": !(0, runtime_1.exists)(json, "share") ? void 0 : (0, _1.ReferencedShareFromJSON)(json["share"]), + "search": !(0, runtime_1.exists)(json, "search") ? void 0 : (0, _1.TrackedAssetsEventSearchMetadataFromJSON)(json["search"]), + "annotation": !(0, runtime_1.exists)(json, "annotation") ? void 0 : (0, _1.ReferencedAnnotationFromJSON)(json["annotation"]), + "hint": !(0, runtime_1.exists)(json, "hint") ? void 0 : (0, _1.ReferencedHintFromJSON)(json["hint"]), + "anchor": !(0, runtime_1.exists)(json, "anchor") ? void 0 : (0, _1.ReferencedAnchorFromJSON)(json["anchor"]) }; } exports.TrackedAssetEventMetadataFromJSONTyped = TrackedAssetEventMetadataFromJSONTyped7; @@ -19333,18 +19935,18 @@ var require_TrackedAssetEventMetadata = __commonJS({ return null; } return { - "reclassification": (0, index_1.TrackedAssetEventFormatReclassificationMetadataToJSON)(value.reclassification), - "creation": (0, index_1.TrackedAssetEventCreationMetadataToJSON)(value.creation), - "rename": (0, index_1.TrackedAssetEventRenameMetadataToJSON)(value.rename), - "tag": (0, index_1.ReferencedTagToJSON)(value.tag), - "website": (0, index_1.ReferencedWebsiteToJSON)(value.website), - "person": (0, index_1.ReferencedPersonToJSON)(value.person), - "sensitive": (0, index_1.ReferencedSensitiveToJSON)(value.sensitive), - "share": (0, index_1.ReferencedShareToJSON)(value.share), - "search": (0, index_1.TrackedAssetsEventSearchMetadataToJSON)(value.search), - "annotation": (0, index_1.ReferencedAnnotationToJSON)(value.annotation), - "hint": (0, index_1.ReferencedHintToJSON)(value.hint), - "anchor": (0, index_1.ReferencedAnchorToJSON)(value.anchor) + "reclassification": (0, _1.TrackedAssetEventFormatReclassificationMetadataToJSON)(value.reclassification), + "creation": (0, _1.TrackedAssetEventCreationMetadataToJSON)(value.creation), + "rename": (0, _1.TrackedAssetEventRenameMetadataToJSON)(value.rename), + "tag": (0, _1.ReferencedTagToJSON)(value.tag), + "website": (0, _1.ReferencedWebsiteToJSON)(value.website), + "person": (0, _1.ReferencedPersonToJSON)(value.person), + "sensitive": (0, _1.ReferencedSensitiveToJSON)(value.sensitive), + "share": (0, _1.ReferencedShareToJSON)(value.share), + "search": (0, _1.TrackedAssetsEventSearchMetadataToJSON)(value.search), + "annotation": (0, _1.ReferencedAnnotationToJSON)(value.annotation), + "hint": (0, _1.ReferencedHintToJSON)(value.hint), + "anchor": (0, _1.ReferencedAnchorToJSON)(value.anchor) }; } exports.TrackedAssetEventMetadataToJSON = TrackedAssetEventMetadataToJSON4; @@ -19358,7 +19960,7 @@ var require_TrackedAssetEventRenameMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedAssetEventRenameMetadataToJSON = exports.TrackedAssetEventRenameMetadataFromJSONTyped = exports.TrackedAssetEventRenameMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedAssetEventRenameMetadataFromJSON4(json) { return TrackedAssetEventRenameMetadataFromJSONTyped6(json, false); } @@ -19368,7 +19970,7 @@ var require_TrackedAssetEventRenameMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "previous": json["previous"], "current": json["current"] }; @@ -19382,7 +19984,7 @@ var require_TrackedAssetEventRenameMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "previous": value.previous, "current": value.current }; @@ -19398,7 +20000,7 @@ var require_TrackedAssetsEventIdentifierDescriptionPairs = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedAssetsEventIdentifierDescriptionPairsToJSON = exports.TrackedAssetsEventIdentifierDescriptionPairsFromJSONTyped = exports.TrackedAssetsEventIdentifierDescriptionPairsFromJSON = exports.TrackedAssetsEventIdentifierDescriptionPairsAssetsSearchedEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var TrackedAssetsEventIdentifierDescriptionPairsAssetsSearchedEnum; (function(TrackedAssetsEventIdentifierDescriptionPairsAssetsSearchedEnum2) { TrackedAssetsEventIdentifierDescriptionPairsAssetsSearchedEnum2["AssetsWereSearched"] = "assets_were_searched"; @@ -19412,7 +20014,7 @@ var require_TrackedAssetsEventIdentifierDescriptionPairs = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "assetsSearched": !(0, runtime_1.exists)(json, "assets_searched") ? void 0 : json["assets_searched"] }; } @@ -19425,7 +20027,7 @@ var require_TrackedAssetsEventIdentifierDescriptionPairs = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "assets_searched": value.assetsSearched }; } @@ -19440,7 +20042,7 @@ var require_TrackedAssetsEventSearchMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedAssetsEventSearchMetadataToJSON = exports.TrackedAssetsEventSearchMetadataFromJSONTyped = exports.TrackedAssetsEventSearchMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedAssetsEventSearchMetadataFromJSON4(json) { return TrackedAssetsEventSearchMetadataFromJSONTyped10(json, false); } @@ -19450,9 +20052,9 @@ var require_TrackedAssetsEventSearchMetadata = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "query": !(0, runtime_1.exists)(json, "query") ? void 0 : json["query"], - "results": !(0, runtime_1.exists)(json, "results") ? void 0 : (0, index_1.TrackedAssetsEventSearchMetadataResultsFromJSON)(json["results"]) + "results": !(0, runtime_1.exists)(json, "results") ? void 0 : (0, _1.TrackedAssetsEventSearchMetadataResultsFromJSON)(json["results"]) }; } exports.TrackedAssetsEventSearchMetadataFromJSONTyped = TrackedAssetsEventSearchMetadataFromJSONTyped10; @@ -19464,9 +20066,9 @@ var require_TrackedAssetsEventSearchMetadata = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "query": value.query, - "results": (0, index_1.TrackedAssetsEventSearchMetadataResultsToJSON)(value.results) + "results": (0, _1.TrackedAssetsEventSearchMetadataResultsToJSON)(value.results) }; } exports.TrackedAssetsEventSearchMetadataToJSON = TrackedAssetsEventSearchMetadataToJSON4; @@ -19480,7 +20082,7 @@ var require_TrackedAssetsEventSearchMetadataResults = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedAssetsEventSearchMetadataResultsToJSON = exports.TrackedAssetsEventSearchMetadataResultsFromJSONTyped = exports.TrackedAssetsEventSearchMetadataResultsFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedAssetsEventSearchMetadataResultsFromJSON4(json) { return TrackedAssetsEventSearchMetadataResultsFromJSONTyped7(json, false); } @@ -19492,8 +20094,8 @@ var require_TrackedAssetsEventSearchMetadataResults = __commonJS({ return { "fuzzy": !(0, runtime_1.exists)(json, "fuzzy") ? void 0 : json["fuzzy"], "exact": !(0, runtime_1.exists)(json, "exact") ? void 0 : json["exact"], - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), - "space": !(0, runtime_1.exists)(json, "space") ? void 0 : (0, index_1.SpaceFromJSON)(json["space"]) + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), + "space": !(0, runtime_1.exists)(json, "space") ? void 0 : (0, _1.SpaceFromJSON)(json["space"]) }; } exports.TrackedAssetsEventSearchMetadataResultsFromJSONTyped = TrackedAssetsEventSearchMetadataResultsFromJSONTyped7; @@ -19507,8 +20109,8 @@ var require_TrackedAssetsEventSearchMetadataResults = __commonJS({ return { "fuzzy": value.fuzzy, "exact": value.exact, - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), - "space": (0, index_1.SpaceToJSON)(value.space) + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), + "space": (0, _1.SpaceToJSON)(value.space) }; } exports.TrackedAssetsEventSearchMetadataResultsToJSON = TrackedAssetsEventSearchMetadataResultsToJSON4; @@ -19522,7 +20124,7 @@ var require_TrackedFormat = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedFormatToJSON = exports.TrackedFormatFromJSONTyped = exports.TrackedFormatFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedFormatFromJSON3(json) { return TrackedFormatFromJSONTyped5(json, false); } @@ -19532,10 +20134,10 @@ var require_TrackedFormat = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "classification": (0, index_1.ClassificationFromJSON)(json["classification"]), - "role": (0, index_1.RoleFromJSON)(json["role"]), + "classification": (0, _1.ClassificationFromJSON)(json["classification"]), + "role": (0, _1.RoleFromJSON)(json["role"]), "asset": json["asset"], "fragment": json["fragment"], "file": json["file"] @@ -19550,10 +20152,10 @@ var require_TrackedFormat = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "classification": (0, index_1.ClassificationToJSON)(value.classification), - "role": (0, index_1.RoleToJSON)(value.role), + "classification": (0, _1.ClassificationToJSON)(value.classification), + "role": (0, _1.RoleToJSON)(value.role), "asset": value.asset, "fragment": value.fragment, "file": value.file @@ -19570,7 +20172,7 @@ var require_TrackedFormatEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedFormatEventToJSON = exports.TrackedFormatEventFromJSONTyped = exports.TrackedFormatEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedFormatEventFromJSON3(json) { return TrackedFormatEventFromJSONTyped3(json, false); } @@ -19580,10 +20182,10 @@ var require_TrackedFormatEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "format": (0, index_1.TrackedFormatFromJSON)(json[" format"]), - "identifierDescriptionPair": (0, index_1.TrackedFormatEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]), - "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, index_1.TrackedFormatEventMetadataFromJSON)(json["metadata"]) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "format": (0, _1.TrackedFormatFromJSON)(json[" format"]), + "identifierDescriptionPair": (0, _1.TrackedFormatEventIdentifierDescriptionPairsFromJSON)(json["identifier_description_pair"]), + "metadata": !(0, runtime_1.exists)(json, "metadata") ? void 0 : (0, _1.TrackedFormatEventMetadataFromJSON)(json["metadata"]) }; } exports.TrackedFormatEventFromJSONTyped = TrackedFormatEventFromJSONTyped3; @@ -19595,10 +20197,10 @@ var require_TrackedFormatEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - " format": (0, index_1.TrackedFormatToJSON)(value.format), - "identifier_description_pair": (0, index_1.TrackedFormatEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair), - "metadata": (0, index_1.TrackedFormatEventMetadataToJSON)(value.metadata) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + " format": (0, _1.TrackedFormatToJSON)(value.format), + "identifier_description_pair": (0, _1.TrackedFormatEventIdentifierDescriptionPairsToJSON)(value.identifierDescriptionPair), + "metadata": (0, _1.TrackedFormatEventMetadataToJSON)(value.metadata) }; } exports.TrackedFormatEventToJSON = TrackedFormatEventToJSON3; @@ -19612,7 +20214,7 @@ var require_TrackedFormatEventIdentifierDescriptionPairs = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedFormatEventIdentifierDescriptionPairsToJSON = exports.TrackedFormatEventIdentifierDescriptionPairsFromJSONTyped = exports.TrackedFormatEventIdentifierDescriptionPairsFromJSON = exports.TrackedFormatEventIdentifierDescriptionPairsFormatValueEditedEnum = exports.TrackedFormatEventIdentifierDescriptionPairsFormatInsertedEnum = exports.TrackedFormatEventIdentifierDescriptionPairsFormatUpdatedEnum = exports.TrackedFormatEventIdentifierDescriptionPairsFormatSpecificClassificationUpdatedEnum = exports.TrackedFormatEventIdentifierDescriptionPairsFormatGenericClassificationUpdatedEnum = exports.TrackedFormatEventIdentifierDescriptionPairsFormatDeletedEnum = exports.TrackedFormatEventIdentifierDescriptionPairsFormatDownloadedEnum = exports.TrackedFormatEventIdentifierDescriptionPairsFormatPartiallyCopiedEnum = exports.TrackedFormatEventIdentifierDescriptionPairsFormatCopiedEnum = exports.TrackedFormatEventIdentifierDescriptionPairsFormatCreatedEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var TrackedFormatEventIdentifierDescriptionPairsFormatCreatedEnum; (function(TrackedFormatEventIdentifierDescriptionPairsFormatCreatedEnum2) { TrackedFormatEventIdentifierDescriptionPairsFormatCreatedEnum2["AFormatWasCreated"] = "a_format_was_created"; @@ -19662,7 +20264,7 @@ var require_TrackedFormatEventIdentifierDescriptionPairs = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "formatCreated": !(0, runtime_1.exists)(json, "format_created") ? void 0 : json["format_created"], "formatCopied": !(0, runtime_1.exists)(json, "format_copied") ? void 0 : json["format_copied"], "formatPartiallyCopied": !(0, runtime_1.exists)(json, "format_partially_copied") ? void 0 : json["format_partially_copied"], @@ -19684,7 +20286,7 @@ var require_TrackedFormatEventIdentifierDescriptionPairs = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "format_created": value.formatCreated, "format_copied": value.formatCopied, "format_partially_copied": value.formatPartiallyCopied, @@ -19708,7 +20310,7 @@ var require_TrackedFormatEventMetadata = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedFormatEventMetadataToJSON = exports.TrackedFormatEventMetadataFromJSONTyped = exports.TrackedFormatEventMetadataFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedFormatEventMetadataFromJSON4(json) { return TrackedFormatEventMetadataFromJSONTyped8(json, false); } @@ -19718,7 +20320,7 @@ var require_TrackedFormatEventMetadata = __commonJS({ return json; } return { - "reclassification": !(0, runtime_1.exists)(json, "reclassification") ? void 0 : (0, index_1.TrackedAssetEventFormatReclassificationMetadataFromJSON)(json["reclassification"]) + "reclassification": !(0, runtime_1.exists)(json, "reclassification") ? void 0 : (0, _1.TrackedAssetEventFormatReclassificationMetadataFromJSON)(json["reclassification"]) }; } exports.TrackedFormatEventMetadataFromJSONTyped = TrackedFormatEventMetadataFromJSONTyped8; @@ -19730,7 +20332,7 @@ var require_TrackedFormatEventMetadata = __commonJS({ return null; } return { - "reclassification": (0, index_1.TrackedAssetEventFormatReclassificationMetadataToJSON)(value.reclassification) + "reclassification": (0, _1.TrackedAssetEventFormatReclassificationMetadataToJSON)(value.reclassification) }; } exports.TrackedFormatEventMetadataToJSON = TrackedFormatEventMetadataToJSON4; @@ -19744,7 +20346,7 @@ var require_TrackedInteractionEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedInteractionEventToJSON = exports.TrackedInteractionEventFromJSONTyped = exports.TrackedInteractionEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedInteractionEventFromJSON3(json) { return TrackedInteractionEventFromJSONTyped2(json, false); } @@ -19754,7 +20356,7 @@ var require_TrackedInteractionEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "description": json["description"], "element": !(0, runtime_1.exists)(json, "element") ? void 0 : json["element"] }; @@ -19768,7 +20370,7 @@ var require_TrackedInteractionEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "description": value.description, "element": value.element }; @@ -19784,7 +20386,7 @@ var require_TrackedKeyboardEvent = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedKeyboardEventToJSON = exports.TrackedKeyboardEventFromJSONTyped = exports.TrackedKeyboardEventFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TrackedKeyboardEventFromJSON3(json) { return TrackedKeyboardEventFromJSONTyped2(json, false); } @@ -19794,7 +20396,7 @@ var require_TrackedKeyboardEvent = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "description": json["description"], "shortcut": json["shortcut"] }; @@ -19808,7 +20410,7 @@ var require_TrackedKeyboardEvent = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "description": value.description, "shortcut": value.shortcut }; @@ -19824,7 +20426,7 @@ var require_TrackedSessionEventIdentifierDescriptionPairs = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedSessionEventIdentifierDescriptionPairsToJSON = exports.TrackedSessionEventIdentifierDescriptionPairsFromJSONTyped = exports.TrackedSessionEventIdentifierDescriptionPairsFromJSON = exports.TrackedSessionEventIdentifierDescriptionPairsSessionOnboardingCompletedEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionOnboardingInitializedEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionUnauthenticatedWithRemindEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionUnauthenticatedWithDismissEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionUnauthenticatedWithSignOutEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionAuthenticatedWithSignInEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionTerminatedEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionActiveEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionInactiveEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionLocalConnectionFailedEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionLocalConnectionSucceededEnum = exports.TrackedSessionEventIdentifierDescriptionPairsSessionInitializedEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var TrackedSessionEventIdentifierDescriptionPairsSessionInitializedEnum; (function(TrackedSessionEventIdentifierDescriptionPairsSessionInitializedEnum2) { TrackedSessionEventIdentifierDescriptionPairsSessionInitializedEnum2["ASessionHasBeenInitializedAndTheApplicationHasBeenOpened"] = "a_session_has_been_initialized_and_the_application_has_been_opened"; @@ -19882,7 +20484,7 @@ var require_TrackedSessionEventIdentifierDescriptionPairs = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "sessionInitialized": !(0, runtime_1.exists)(json, "session_initialized") ? void 0 : json["session_initialized"], "sessionLocalConnectionSucceeded": !(0, runtime_1.exists)(json, "session_local_connection_succeeded") ? void 0 : json["session_local_connection_succeeded"], "sessionLocalConnectionFailed": !(0, runtime_1.exists)(json, "session_local_connection_failed") ? void 0 : json["session_local_connection_failed"], @@ -19906,7 +20508,7 @@ var require_TrackedSessionEventIdentifierDescriptionPairs = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "session_initialized": value.sessionInitialized, "session_local_connection_succeeded": value.sessionLocalConnectionSucceeded, "session_local_connection_failed": value.sessionLocalConnectionFailed, @@ -19932,7 +20534,7 @@ var require_TrackedUserProfile = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TrackedUserProfileToJSON = exports.TrackedUserProfileFromJSONTyped = exports.TrackedUserProfileFromJSON = exports.TrackedUserProfileGranularityEnum = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); var TrackedUserProfileGranularityEnum; (function(TrackedUserProfileGranularityEnum2) { TrackedUserProfileGranularityEnum2["Device"] = "DEVICE"; @@ -19948,7 +20550,7 @@ var require_TrackedUserProfile = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], "username": json["username"], "email": !(0, runtime_1.exists)(json, "email") ? void 0 : json["email"], @@ -19964,7 +20566,7 @@ var require_TrackedUserProfile = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, "username": value.username, "email": value.email, @@ -19982,7 +20584,7 @@ var require_TransferableBytes = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TransferableBytesToJSON = exports.TransferableBytesFromJSONTyped = exports.TransferableBytesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TransferableBytesFromJSON4(json) { return TransferableBytesFromJSONTyped15(json, false); } @@ -19992,7 +20594,7 @@ var require_TransferableBytes = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "raw": !(0, runtime_1.exists)(json, "raw") ? void 0 : json["raw"], "base64": !(0, runtime_1.exists)(json, "base64") ? void 0 : json["base64"], "base64Url": !(0, runtime_1.exists)(json, "base64_url") ? void 0 : json["base64_url"], @@ -20008,7 +20610,7 @@ var require_TransferableBytes = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "raw": value.raw, "base64": value.base64, "base64_url": value.base64Url, @@ -20026,7 +20628,7 @@ var require_TransferableString = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.TransferableStringToJSON = exports.TransferableStringFromJSONTyped = exports.TransferableStringFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function TransferableStringFromJSON4(json) { return TransferableStringFromJSONTyped15(json, false); } @@ -20036,7 +20638,7 @@ var require_TransferableString = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "raw": !(0, runtime_1.exists)(json, "raw") ? void 0 : json["raw"], "base64": !(0, runtime_1.exists)(json, "base64") ? void 0 : json["base64"], "base64Url": !(0, runtime_1.exists)(json, "base64_url") ? void 0 : json["base64_url"], @@ -20052,7 +20654,7 @@ var require_TransferableString = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "raw": value.raw, "base64": value.base64, "base64_url": value.base64Url, @@ -20063,6 +20665,149 @@ var require_TransferableString = __commonJS({ } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UncheckedOSUpdate.js +var require_UncheckedOSUpdate = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UncheckedOSUpdate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UncheckedOSUpdateToJSON = exports.UncheckedOSUpdateFromJSONTyped = exports.UncheckedOSUpdateFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function UncheckedOSUpdateFromJSON2(json) { + return UncheckedOSUpdateFromJSONTyped(json, false); + } + exports.UncheckedOSUpdateFromJSON = UncheckedOSUpdateFromJSON2; + function UncheckedOSUpdateFromJSONTyped(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.UncheckedOSUpdateFromJSONTyped = UncheckedOSUpdateFromJSONTyped; + function UncheckedOSUpdateToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema) + }; + } + exports.UncheckedOSUpdateToJSON = UncheckedOSUpdateToJSON2; + } +}); + +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UnsegmentedTechnicalLanguage.js +var require_UnsegmentedTechnicalLanguage = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UnsegmentedTechnicalLanguage.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UnsegmentedTechnicalLanguageToJSON = exports.UnsegmentedTechnicalLanguageFromJSONTyped = exports.UnsegmentedTechnicalLanguageFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function UnsegmentedTechnicalLanguageFromJSON2(json) { + return UnsegmentedTechnicalLanguageFromJSONTyped(json, false); + } + exports.UnsegmentedTechnicalLanguageFromJSON = UnsegmentedTechnicalLanguageFromJSON2; + function UnsegmentedTechnicalLanguageFromJSONTyped(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"]), + "value": json["value"] + }; + } + exports.UnsegmentedTechnicalLanguageFromJSONTyped = UnsegmentedTechnicalLanguageFromJSONTyped; + function UnsegmentedTechnicalLanguageToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "value": value.value + }; + } + exports.UnsegmentedTechnicalLanguageToJSON = UnsegmentedTechnicalLanguageToJSON2; + } +}); + +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UpdatedExternalProviderApiKey.js +var require_UpdatedExternalProviderApiKey = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UpdatedExternalProviderApiKey.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UpdatedExternalProviderApiKeyToJSON = exports.UpdatedExternalProviderApiKeyFromJSONTyped = exports.UpdatedExternalProviderApiKeyFromJSON = void 0; + var runtime_1 = require_runtime(); + var _1 = require_models(); + function UpdatedExternalProviderApiKeyFromJSON2(json) { + return UpdatedExternalProviderApiKeyFromJSONTyped(json, false); + } + exports.UpdatedExternalProviderApiKeyFromJSON = UpdatedExternalProviderApiKeyFromJSON2; + function UpdatedExternalProviderApiKeyFromJSONTyped(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"]), + "metadata": (0, _1.Auth0UserMetadataFromJSON)(json["metadata"]) + }; + } + exports.UpdatedExternalProviderApiKeyFromJSONTyped = UpdatedExternalProviderApiKeyFromJSONTyped; + function UpdatedExternalProviderApiKeyToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "metadata": (0, _1.Auth0UserMetadataToJSON)(value.metadata) + }; + } + exports.UpdatedExternalProviderApiKeyToJSON = UpdatedExternalProviderApiKeyToJSON2; + } +}); + +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UpdatingStatusEnum.js +var require_UpdatingStatusEnum = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UpdatingStatusEnum.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UpdatingStatusEnumToJSON = exports.UpdatingStatusEnumFromJSONTyped = exports.UpdatingStatusEnumFromJSON = exports.UpdatingStatusEnum = void 0; + var UpdatingStatusEnum3; + (function(UpdatingStatusEnum4) { + UpdatingStatusEnum4["ReadyToRestart"] = "READY_TO_RESTART"; + UpdatingStatusEnum4["Available"] = "AVAILABLE"; + UpdatingStatusEnum4["Downloading"] = "DOWNLOADING"; + UpdatingStatusEnum4["Unknown"] = "UNKNOWN"; + UpdatingStatusEnum4["UpToDate"] = "UP_TO_DATE"; + UpdatingStatusEnum4["ReinstallRequired"] = "REINSTALL_REQUIRED"; + UpdatingStatusEnum4["ContactSupport"] = "CONTACT_SUPPORT"; + })(UpdatingStatusEnum3 || (exports.UpdatingStatusEnum = UpdatingStatusEnum3 = {})); + function UpdatingStatusEnumFromJSON3(json) { + return UpdatingStatusEnumFromJSONTyped4(json, false); + } + exports.UpdatingStatusEnumFromJSON = UpdatingStatusEnumFromJSON3; + function UpdatingStatusEnumFromJSONTyped4(json, ignoreDiscriminator) { + return json; + } + exports.UpdatingStatusEnumFromJSONTyped = UpdatingStatusEnumFromJSONTyped4; + function UpdatingStatusEnumToJSON3(value) { + return value; + } + exports.UpdatingStatusEnumToJSON = UpdatingStatusEnumToJSON3; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UserProfile.js var require_UserProfile = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/models/UserProfile.js"(exports) { @@ -20070,7 +20815,7 @@ var require_UserProfile = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.UserProfileToJSON = exports.UserProfileFromJSONTyped = exports.UserProfileFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function UserProfileFromJSON5(json) { return UserProfileFromJSONTyped14(json, false); } @@ -20080,19 +20825,19 @@ var require_UserProfile = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "picture": !(0, runtime_1.exists)(json, "picture") ? void 0 : json["picture"], "email": !(0, runtime_1.exists)(json, "email") ? void 0 : json["email"], - "created": !(0, runtime_1.exists)(json, "created") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": !(0, runtime_1.exists)(json, "updated") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["updated"]), + "created": !(0, runtime_1.exists)(json, "created") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": !(0, runtime_1.exists)(json, "updated") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["updated"]), "username": !(0, runtime_1.exists)(json, "username") ? void 0 : json["username"], "id": json["id"], "name": !(0, runtime_1.exists)(json, "name") ? void 0 : json["name"], - "aesthetics": (0, index_1.AestheticsFromJSON)(json["aesthetics"]), + "aesthetics": (0, _1.AestheticsFromJSON)(json["aesthetics"]), "vanityname": !(0, runtime_1.exists)(json, "vanityname") ? void 0 : json["vanityname"], - "allocation": !(0, runtime_1.exists)(json, "allocation") ? void 0 : (0, index_1.AllocationCloudFromJSON)(json["allocation"]), - "providers": !(0, runtime_1.exists)(json, "providers") ? void 0 : (0, index_1.ExternalProvidersFromJSON)(json["providers"]), - "auth0": !(0, runtime_1.exists)(json, "auth0") ? void 0 : (0, index_1.Auth0UserMetadataFromJSON)(json["auth0"]) + "allocation": !(0, runtime_1.exists)(json, "allocation") ? void 0 : (0, _1.AllocationCloudFromJSON)(json["allocation"]), + "providers": !(0, runtime_1.exists)(json, "providers") ? void 0 : (0, _1.ExternalProvidersFromJSON)(json["providers"]), + "auth0": !(0, runtime_1.exists)(json, "auth0") ? void 0 : (0, _1.Auth0UserMetadataFromJSON)(json["auth0"]) }; } exports.UserProfileFromJSONTyped = UserProfileFromJSONTyped14; @@ -20104,19 +20849,19 @@ var require_UserProfile = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "picture": value.picture, "email": value.email, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), "username": value.username, "id": value.id, "name": value.name, - "aesthetics": (0, index_1.AestheticsToJSON)(value.aesthetics), + "aesthetics": (0, _1.AestheticsToJSON)(value.aesthetics), "vanityname": value.vanityname, - "allocation": (0, index_1.AllocationCloudToJSON)(value.allocation), - "providers": (0, index_1.ExternalProvidersToJSON)(value.providers), - "auth0": (0, index_1.Auth0UserMetadataToJSON)(value.auth0) + "allocation": (0, _1.AllocationCloudToJSON)(value.allocation), + "providers": (0, _1.ExternalProvidersToJSON)(value.providers), + "auth0": (0, _1.Auth0UserMetadataToJSON)(value.auth0) }; } exports.UserProfileToJSON = UserProfileToJSON6; @@ -20130,7 +20875,7 @@ var require_Users = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.UsersToJSON = exports.UsersFromJSONTyped = exports.UsersFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function UsersFromJSON2(json) { return UsersFromJSONTyped2(json, false); } @@ -20140,8 +20885,8 @@ var require_Users = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": !(0, runtime_1.exists)(json, "iterable") ? void 0 : json["iterable"].map(index_1.UserProfileFromJSON) + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": !(0, runtime_1.exists)(json, "iterable") ? void 0 : json["iterable"].map(_1.UserProfileFromJSON) }; } exports.UsersFromJSONTyped = UsersFromJSONTyped2; @@ -20153,8 +20898,8 @@ var require_Users = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable === void 0 ? void 0 : value.iterable.map(index_1.UserProfileToJSON) + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable === void 0 ? void 0 : value.iterable.map(_1.UserProfileToJSON) }; } exports.UsersToJSON = UsersToJSON3; @@ -20168,7 +20913,7 @@ var require_Website = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.WebsiteToJSON = exports.WebsiteFromJSONTyped = exports.WebsiteFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function WebsiteFromJSON4(json) { return WebsiteFromJSONTyped6(json, false); } @@ -20178,18 +20923,18 @@ var require_Website = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), "id": json["id"], - "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, index_1.FlattenedAssetsFromJSON)(json["assets"]), + "assets": !(0, runtime_1.exists)(json, "assets") ? void 0 : (0, _1.FlattenedAssetsFromJSON)(json["assets"]), "url": json["url"], "name": json["name"], - "created": (0, index_1.GroupedTimestampFromJSON)(json["created"]), - "updated": (0, index_1.GroupedTimestampFromJSON)(json["updated"]), - "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, index_1.GroupedTimestampFromJSON)(json["deleted"]), - "mechanisms": !(0, runtime_1.exists)(json, "mechanisms") ? void 0 : (0, runtime_1.mapValues)(json["mechanisms"], index_1.MechanismEnumFromJSON), + "created": (0, _1.GroupedTimestampFromJSON)(json["created"]), + "updated": (0, _1.GroupedTimestampFromJSON)(json["updated"]), + "deleted": !(0, runtime_1.exists)(json, "deleted") ? void 0 : (0, _1.GroupedTimestampFromJSON)(json["deleted"]), + "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, index_1.FlattenedPersonsFromJSON)(json["persons"]), - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "persons": !(0, runtime_1.exists)(json, "persons") ? void 0 : (0, _1.FlattenedPersonsFromJSON)(json["persons"]), + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.WebsiteFromJSONTyped = WebsiteFromJSONTyped6; @@ -20201,18 +20946,18 @@ var require_Website = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), "id": value.id, - "assets": (0, index_1.FlattenedAssetsToJSON)(value.assets), + "assets": (0, _1.FlattenedAssetsToJSON)(value.assets), "url": value.url, "name": value.name, - "created": (0, index_1.GroupedTimestampToJSON)(value.created), - "updated": (0, index_1.GroupedTimestampToJSON)(value.updated), - "deleted": (0, index_1.GroupedTimestampToJSON)(value.deleted), - "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, index_1.MechanismEnumToJSON), + "created": (0, _1.GroupedTimestampToJSON)(value.created), + "updated": (0, _1.GroupedTimestampToJSON)(value.updated), + "deleted": (0, _1.GroupedTimestampToJSON)(value.deleted), + "mechanisms": value.mechanisms === void 0 ? void 0 : (0, runtime_1.mapValues)(value.mechanisms, _1.MechanismEnumToJSON), "interactions": value.interactions, - "persons": (0, index_1.FlattenedPersonsToJSON)(value.persons), - "score": (0, index_1.ScoreToJSON)(value.score) + "persons": (0, _1.FlattenedPersonsToJSON)(value.persons), + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.WebsiteToJSON = WebsiteToJSON5; @@ -20226,7 +20971,7 @@ var require_Websites = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.WebsitesToJSON = exports.WebsitesFromJSONTyped = exports.WebsitesFromJSON = void 0; var runtime_1 = require_runtime(); - var index_1 = require_models(); + var _1 = require_models(); function WebsitesFromJSON4(json) { return WebsitesFromJSONTyped6(json, false); } @@ -20236,10 +20981,10 @@ var require_Websites = __commonJS({ return json; } return { - "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, index_1.EmbeddedModelSchemaFromJSON)(json["schema"]), - "iterable": json["iterable"].map(index_1.WebsiteFromJSON), + "schema": !(0, runtime_1.exists)(json, "schema") ? void 0 : (0, _1.EmbeddedModelSchemaFromJSON)(json["schema"]), + "iterable": json["iterable"].map(_1.WebsiteFromJSON), "indices": !(0, runtime_1.exists)(json, "indices") ? void 0 : json["indices"], - "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, index_1.ScoreFromJSON)(json["score"]) + "score": !(0, runtime_1.exists)(json, "score") ? void 0 : (0, _1.ScoreFromJSON)(json["score"]) }; } exports.WebsitesFromJSONTyped = WebsitesFromJSONTyped6; @@ -20251,10 +20996,10 @@ var require_Websites = __commonJS({ return null; } return { - "schema": (0, index_1.EmbeddedModelSchemaToJSON)(value.schema), - "iterable": value.iterable.map(index_1.WebsiteToJSON), + "schema": (0, _1.EmbeddedModelSchemaToJSON)(value.schema), + "iterable": value.iterable.map(_1.WebsiteToJSON), "indices": value.indices, - "score": (0, index_1.ScoreToJSON)(value.score) + "score": (0, _1.ScoreToJSON)(value.score) }; } exports.WebsitesToJSON = WebsitesToJSON5; @@ -20325,6 +21070,7 @@ var require_models = __commonJS({ __exportStar(require_AssetsSearchWithFiltersOutput(), exports); __exportStar(require_Auth0(), exports); __exportStar(require_Auth0Identity(), exports); + __exportStar(require_Auth0OpenAIUserMetadata(), exports); __exportStar(require_Auth0Redirects(), exports); __exportStar(require_Auth0User(), exports); __exportStar(require_Auth0UserAllocationMetadata(), exports); @@ -20333,6 +21079,7 @@ var require_models = __commonJS({ __exportStar(require_ByteDescriptor(), exports); __exportStar(require_CapabilitiesEnum(), exports); __exportStar(require_ChallengedPKCE(), exports); + __exportStar(require_CheckedOSUpdate(), exports); __exportStar(require_Classification(), exports); __exportStar(require_ClassificationGenericEnum(), exports); __exportStar(require_ClassificationRenderingEnum(), exports); @@ -20350,6 +21097,8 @@ var require_models = __commonJS({ __exportStar(require_ConversationTypeEnum(), exports); __exportStar(require_Conversations(), exports); __exportStar(require_ConversationsCreateFromAssetOutput(), exports); + __exportStar(require_CreatedExternalProviderApiKey(), exports); + __exportStar(require_DeletedExternalProviderApiKey(), exports); __exportStar(require_DiscoveredAsset(), exports); __exportStar(require_DiscoveredAssets(), exports); __exportStar(require_DiscoveredHtmlWebpage(), exports); @@ -20451,9 +21200,12 @@ var require_models = __commonJS({ __exportStar(require_MailgunMetadata(), exports); __exportStar(require_MechanismEnum(), exports); __exportStar(require_Model(), exports); + __exportStar(require_ModelDeleteCacheInput(), exports); + __exportStar(require_ModelDeleteCacheOutput(), exports); __exportStar(require_ModelDownloadProgress(), exports); __exportStar(require_ModelDownloadProgressStatusEnum(), exports); __exportStar(require_ModelFoundationEnum(), exports); + __exportStar(require_ModelMaxTokens(), exports); __exportStar(require_ModelTypeEnum(), exports); __exportStar(require_ModelUsageEnum(), exports); __exportStar(require_Models(), exports); @@ -20466,6 +21218,8 @@ var require_models = __commonJS({ __exportStar(require_OCRAnalyses(), exports); __exportStar(require_OCRAnalysis(), exports); __exportStar(require_OSHealth(), exports); + __exportStar(require_OpenAIModelsListInput(), exports); + __exportStar(require_OpenAIModelsListOutput(), exports); __exportStar(require_OrderedMetrics(), exports); __exportStar(require_PKCE(), exports); __exportStar(require_Person(), exports); @@ -20476,6 +21230,9 @@ var require_models = __commonJS({ __exportStar(require_PersonType(), exports); __exportStar(require_Persons(), exports); __exportStar(require_PlatformEnum(), exports); + __exportStar(require_PrecreatedExternalProviderApiKey(), exports); + __exportStar(require_PredeletedExternalProviderApiKey(), exports); + __exportStar(require_PreupdatedExternalProviderApiKey(), exports); __exportStar(require_Preview(), exports); __exportStar(require_PrivacyEnum(), exports); __exportStar(require_PseudoAssets(), exports); @@ -20571,6 +21328,7 @@ var require_models = __commonJS({ __exportStar(require_SeededHint(), exports); __exportStar(require_SeededMacOSAsset(), exports); __exportStar(require_SeededModel(), exports); + __exportStar(require_SeededModels(), exports); __exportStar(require_SeededPKCE(), exports); __exportStar(require_SeededPKCEADDITIONALPARAMETERS(), exports); __exportStar(require_SeededPerson(), exports); @@ -20595,6 +21353,8 @@ var require_models = __commonJS({ __exportStar(require_SeededUser(), exports); __exportStar(require_SeededWebsite(), exports); __exportStar(require_Seeds(), exports); + __exportStar(require_SegmentedTechnicalLanguage(), exports); + __exportStar(require_SegmentedTechnicalLanguageFragment(), exports); __exportStar(require_Sensitive(), exports); __exportStar(require_SensitiveCategoryEnum(), exports); __exportStar(require_SensitiveMetadata(), exports); @@ -20661,6 +21421,10 @@ var require_models = __commonJS({ __exportStar(require_TrackedUserProfile(), exports); __exportStar(require_TransferableBytes(), exports); __exportStar(require_TransferableString(), exports); + __exportStar(require_UncheckedOSUpdate(), exports); + __exportStar(require_UnsegmentedTechnicalLanguage(), exports); + __exportStar(require_UpdatedExternalProviderApiKey(), exports); + __exportStar(require_UpdatingStatusEnum(), exports); __exportStar(require_UserProfile(), exports); __exportStar(require_Users(), exports); __exportStar(require_Website(), exports); @@ -21753,6 +22517,34 @@ var require_AnchorsApi = __commonJS({ var runtime = __importStar(require_runtime()); var models_1 = require_models(); var AnchorsApi2 = class extends runtime.BaseAPI { + /** + * This will update both the asset and the anchor reference, that will remove a anchor from an asset(only the references). This will NOT remove the anchor. This will NOT remove the asset. This will only update the references so that they are disconnected from one another. + * /anchors/{anchor}/assets/delete/{asset} [POST] + */ + async anchorDisassociateAssetRaw(requestParameters) { + if (requestParameters.anchor === null || requestParameters.anchor === void 0) { + throw new runtime.RequiredError("anchor", "Required parameter requestParameters.anchor was null or undefined when calling anchorDisassociateAsset."); + } + if (requestParameters.asset === null || requestParameters.asset === void 0) { + throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling anchorDisassociateAsset."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/anchors/{anchor}/assets/delete/{asset}`.replace(`{${"anchor"}}`, encodeURIComponent(String(requestParameters.anchor))).replace(`{${"asset"}}`, encodeURIComponent(String(requestParameters.asset))), + method: "POST", + headers: headerParameters, + query: queryParameters + }); + return new runtime.VoidApiResponse(response); + } + /** + * This will update both the asset and the anchor reference, that will remove a anchor from an asset(only the references). This will NOT remove the anchor. This will NOT remove the asset. This will only update the references so that they are disconnected from one another. + * /anchors/{anchor}/assets/delete/{asset} [POST] + */ + async anchorDisassociateAsset(requestParameters) { + await this.anchorDisassociateAssetRaw(requestParameters); + } /** * This will create a anchor and attach it to a specific asset(s) This will also ensure the anchor is normalized. * /anchors/create [POST] @@ -21832,34 +22624,6 @@ var require_AnchorsApi = __commonJS({ const response = await this.anchorsSnapshotRaw(requestParameters); return await response.value(); } - /** - * This will update both the asset and the anchor reference, that will remove a anchor from an asset(only the references). This will NOT remove the anchor. This will NOT remove the asset. This will only update the references so that they are disconnected from one another. - * /anchors/{anchor}/assets/delete/{asset} [POST] - */ - async removeAnchorReferenceFromAssetRaw(requestParameters) { - if (requestParameters.anchor === null || requestParameters.anchor === void 0) { - throw new runtime.RequiredError("anchor", "Required parameter requestParameters.anchor was null or undefined when calling removeAnchorReferenceFromAsset."); - } - if (requestParameters.asset === null || requestParameters.asset === void 0) { - throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling removeAnchorReferenceFromAsset."); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/anchors/{anchor}/assets/delete/{asset}`.replace(`{${"anchor"}}`, encodeURIComponent(String(requestParameters.anchor))).replace(`{${"asset"}}`, encodeURIComponent(String(requestParameters.asset))), - method: "POST", - headers: headerParameters, - query: queryParameters - }); - return new runtime.VoidApiResponse(response); - } - /** - * This will update both the asset and the anchor reference, that will remove a anchor from an asset(only the references). This will NOT remove the anchor. This will NOT remove the asset. This will only update the references so that they are disconnected from one another. - * /anchors/{anchor}/assets/delete/{asset} [POST] - */ - async removeAnchorReferenceFromAsset(requestParameters) { - await this.removeAnchorReferenceFromAssetRaw(requestParameters); - } }; exports.AnchorsApi = AnchorsApi2; } @@ -22552,6 +23316,34 @@ var require_AssetApi = __commonJS({ async assetAssociateTag(requestParameters) { await this.assetAssociateTagRaw(requestParameters); } + /** + * This will associate a website with a asset. This will do the same thing as the website equivilant. + * /asset/{asset}/websites/associate/{website} [POST] + */ + async assetAssociateWebsiteRaw(requestParameters) { + if (requestParameters.asset === null || requestParameters.asset === void 0) { + throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling assetAssociateWebsite."); + } + if (requestParameters.website === null || requestParameters.website === void 0) { + throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling assetAssociateWebsite."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/asset/{asset}/websites/associate/{website}`.replace(`{${"asset"}}`, encodeURIComponent(String(requestParameters.asset))).replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))), + method: "POST", + headers: headerParameters, + query: queryParameters + }); + return new runtime.VoidApiResponse(response); + } + /** + * This will associate a website with a asset. This will do the same thing as the website equivilant. + * /asset/{asset}/websites/associate/{website} [POST] + */ + async assetAssociateWebsite(requestParameters) { + await this.assetAssociateWebsiteRaw(requestParameters); + } /** * This will enable us to dissassociate a tag from a asset. This will do the same thing as the tag equivilant. * /asset/{asset}/tags/disassociate/{tag} [POST] @@ -22580,6 +23372,34 @@ var require_AssetApi = __commonJS({ async assetDisassociateTag(requestParameters) { await this.assetDisassociateTagRaw(requestParameters); } + /** + * This will enable us to dissassociate a website from a asset. This will do the same thing as the website equivilant. + * /asset/{asset}/websites/disassociate/{website} [POST] + */ + async assetDisassociateWebsiteRaw(requestParameters) { + if (requestParameters.website === null || requestParameters.website === void 0) { + throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling assetDisassociateWebsite."); + } + if (requestParameters.asset === null || requestParameters.asset === void 0) { + throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling assetDisassociateWebsite."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/asset/{asset}/websites/disassociate/{website}`.replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))).replace(`{${"asset"}}`, encodeURIComponent(String(requestParameters.asset))), + method: "POST", + headers: headerParameters, + query: queryParameters + }); + return new runtime.VoidApiResponse(response); + } + /** + * This will enable us to dissassociate a website from a asset. This will do the same thing as the website equivilant. + * /asset/{asset}/websites/disassociate/{website} [POST] + */ + async assetDisassociateWebsite(requestParameters) { + await this.assetDisassociateWebsiteRaw(requestParameters); + } /** * Get the formats for a given asset. * /asset/{asset}/formats [GET] Scoped To Asset @@ -22813,62 +23633,6 @@ var require_AssetApi = __commonJS({ const response = await this.assetUpdateRaw(requestParameters); return await response.value(); } - /** - * This will associate a website with a asset. This will do the same thing as the website equivilant. - * /asset/{asset}/websites/associate/{website} [POST] - */ - async associateWebsiteRaw(requestParameters) { - if (requestParameters.asset === null || requestParameters.asset === void 0) { - throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling associateWebsite."); - } - if (requestParameters.website === null || requestParameters.website === void 0) { - throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling associateWebsite."); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/asset/{asset}/websites/associate/{website}`.replace(`{${"asset"}}`, encodeURIComponent(String(requestParameters.asset))).replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))), - method: "POST", - headers: headerParameters, - query: queryParameters - }); - return new runtime.VoidApiResponse(response); - } - /** - * This will associate a website with a asset. This will do the same thing as the website equivilant. - * /asset/{asset}/websites/associate/{website} [POST] - */ - async associateWebsite(requestParameters) { - await this.associateWebsiteRaw(requestParameters); - } - /** - * This will enable us to dissassociate a website from a asset. This will do the same thing as the website equivilant. - * /asset/{asset}/websites/disassociate/{website} [POST] - */ - async disassociateWebsiteRaw(requestParameters) { - if (requestParameters.website === null || requestParameters.website === void 0) { - throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling disassociateWebsite."); - } - if (requestParameters.asset === null || requestParameters.asset === void 0) { - throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling disassociateWebsite."); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/asset/{asset}/websites/disassociate/{website}`.replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))).replace(`{${"asset"}}`, encodeURIComponent(String(requestParameters.asset))), - method: "POST", - headers: headerParameters, - query: queryParameters - }); - return new runtime.VoidApiResponse(response); - } - /** - * This will enable us to dissassociate a website from a asset. This will do the same thing as the website equivilant. - * /asset/{asset}/websites/disassociate/{website} [POST] - */ - async disassociateWebsite(requestParameters) { - await this.disassociateWebsiteRaw(requestParameters); - } }; exports.AssetApi = AssetApi2; var AssetSpecificAssetExportExportTypeEnum2; @@ -23221,7 +23985,7 @@ var require_AssetsApi = __commonJS({ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FormatsFromJSON)(jsonValue)); } /** - * This will query the formats for a given asset when provided that asset\'s id. + * This will query the formats for agiven asset when provided that asset\'s id. * /assets/{asset}/formats [GET] Scoped To Assets */ async assetsSpecificAssetFormatsSnapshot(requestParameters) { @@ -24495,12 +25259,12 @@ var require_ConversationMessageApi = __commonJS({ * This will associate a message with an annotation. * /message/{message}/annotations/associate/{annotation} [POST] */ - async associateAnnotationRaw(requestParameters) { + async messageAssociateAnnotationRaw(requestParameters) { if (requestParameters.annotation === null || requestParameters.annotation === void 0) { - throw new runtime.RequiredError("annotation", "Required parameter requestParameters.annotation was null or undefined when calling associateAnnotation."); + throw new runtime.RequiredError("annotation", "Required parameter requestParameters.annotation was null or undefined when calling messageAssociateAnnotation."); } if (requestParameters.message === null || requestParameters.message === void 0) { - throw new runtime.RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling associateAnnotation."); + throw new runtime.RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling messageAssociateAnnotation."); } const queryParameters = {}; const headerParameters = {}; @@ -24516,19 +25280,19 @@ var require_ConversationMessageApi = __commonJS({ * This will associate a message with an annotation. * /message/{message}/annotations/associate/{annotation} [POST] */ - async associateAnnotation(requestParameters) { - await this.associateAnnotationRaw(requestParameters); + async messageAssociateAnnotation(requestParameters) { + await this.messageAssociateAnnotationRaw(requestParameters); } /** * This will enable us to dissassociate a message from an annotation. * /message/{message}/annotations/disassociate/{annotation} [POST] */ - async disassociateAnnotationRaw(requestParameters) { + async messageDisassociateAnnotationRaw(requestParameters) { if (requestParameters.annotation === null || requestParameters.annotation === void 0) { - throw new runtime.RequiredError("annotation", "Required parameter requestParameters.annotation was null or undefined when calling disassociateAnnotation."); + throw new runtime.RequiredError("annotation", "Required parameter requestParameters.annotation was null or undefined when calling messageDisassociateAnnotation."); } if (requestParameters.message === null || requestParameters.message === void 0) { - throw new runtime.RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling disassociateAnnotation."); + throw new runtime.RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling messageDisassociateAnnotation."); } const queryParameters = {}; const headerParameters = {}; @@ -24544,8 +25308,8 @@ var require_ConversationMessageApi = __commonJS({ * This will enable us to dissassociate a message from an annotation. * /message/{message}/annotations/disassociate/{annotation} [POST] */ - async disassociateAnnotation(requestParameters) { - await this.disassociateAnnotationRaw(requestParameters); + async messageDisassociateAnnotation(requestParameters) { + await this.messageDisassociateAnnotationRaw(requestParameters); } /** * This will take in a SeededScoreIncrement and will increment the material relative to the incoming body. @@ -25424,6 +26188,127 @@ var require_DistributionsApi = __commonJS({ } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/ExternalProviderApi.js +var require_ExternalProviderApi = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/ExternalProviderApi.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) + __createBinding(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ExternalProviderApi = void 0; + var runtime = __importStar(require_runtime()); + var models_1 = require_models(); + var ExternalProviderApi = class extends runtime.BaseAPI { + /** + * This will create a specific external_provider api_key from a specific user Auth0UserMetadata + * /external_provider/api_key/create [POST] + */ + async externalProviderApiKeyCreateRaw(requestParameters) { + const queryParameters = {}; + const headerParameters = {}; + headerParameters["Content-Type"] = "application/json"; + const response = await this.request({ + path: `/external_provider/api_key/create`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: (0, models_1.PrecreatedExternalProviderApiKeyToJSON)(requestParameters.precreatedExternalProviderApiKey) + }); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CreatedExternalProviderApiKeyFromJSON)(jsonValue)); + } + /** + * This will create a specific external_provider api_key from a specific user Auth0UserMetadata + * /external_provider/api_key/create [POST] + */ + async externalProviderApiKeyCreate(requestParameters) { + const response = await this.externalProviderApiKeyCreateRaw(requestParameters); + return await response.value(); + } + /** + * This will remove a specific external_provider api_key from a specific user Auth0UserMetadata + * /external_provider/api_key/delete [POST] + */ + async externalProviderApiKeyDeleteRaw(requestParameters) { + const queryParameters = {}; + const headerParameters = {}; + headerParameters["Content-Type"] = "application/json"; + const response = await this.request({ + path: `/external_provider/api_key/delete`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: (0, models_1.PredeletedExternalProviderApiKeyToJSON)(requestParameters.predeletedExternalProviderApiKey) + }); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DeletedExternalProviderApiKeyFromJSON)(jsonValue)); + } + /** + * This will remove a specific external_provider api_key from a specific user Auth0UserMetadata + * /external_provider/api_key/delete [POST] + */ + async externalProviderApiKeyDelete(requestParameters) { + const response = await this.externalProviderApiKeyDeleteRaw(requestParameters); + return await response.value(); + } + /** + * This will update a specific external_provider api_key from a specific user Auth0UserMetadata + * /external_provider/api_key/update [POST] + */ + async externalProviderApiKeyUpdateRaw(requestParameters) { + const queryParameters = {}; + const headerParameters = {}; + headerParameters["Content-Type"] = "application/json"; + const response = await this.request({ + path: `/external_provider/api_key/update`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: (0, models_1.PreupdatedExternalProviderApiKeyToJSON)(requestParameters.preupdatedExternalProviderApiKey) + }); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UpdatedExternalProviderApiKeyFromJSON)(jsonValue)); + } + /** + * This will update a specific external_provider api_key from a specific user Auth0UserMetadata + * /external_provider/api_key/update [POST] + */ + async externalProviderApiKeyUpdate(requestParameters) { + const response = await this.externalProviderApiKeyUpdateRaw(requestParameters); + return await response.value(); + } + }; + exports.ExternalProviderApi = ExternalProviderApi; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/FormatApi.js var require_FormatApi = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/FormatApi.js"(exports) { @@ -26287,6 +27172,80 @@ var require_MacOSApi = __commonJS({ } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/MachineLearningApi.js +var require_MachineLearningApi = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/MachineLearningApi.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) + __createBinding(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.MachineLearningApi = void 0; + var runtime = __importStar(require_runtime()); + var models_1 = require_models(); + var MachineLearningApi = class extends runtime.BaseAPI { + /** + * 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] + */ + async segmentTechnicalLanguageRaw(requestParameters) { + const queryParameters = {}; + if (requestParameters.classify !== void 0) { + queryParameters["classify"] = requestParameters.classify; + } + const headerParameters = {}; + headerParameters["Content-Type"] = "application/json"; + const response = await this.request({ + path: `/machine_learning/text/technical_language/parsers/segmentation`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: (0, models_1.UnsegmentedTechnicalLanguageToJSON)(requestParameters.unsegmentedTechnicalLanguage) + }); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SegmentedTechnicalLanguageFromJSON)(jsonValue)); + } + /** + * 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] + */ + async segmentTechnicalLanguage(requestParameters) { + const response = await this.segmentTechnicalLanguageRaw(requestParameters); + return await response.value(); + } + }; + exports.MachineLearningApi = MachineLearningApi; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/MetricsApi.js var require_MetricsApi = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/MetricsApi.js"(exports) { @@ -26551,6 +27510,7 @@ var require_ModelApi = __commonJS({ return await response.value(); } /** + * This will update Machinelearning Model, this is only available for \"custom:true\" models. * /model/update [POST] */ async modelUpdateRaw(requestParameters) { @@ -26567,6 +27527,7 @@ var require_ModelApi = __commonJS({ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ModelFromJSON)(jsonValue)); } /** + * This will update Machinelearning Model, this is only available for \"custom:true\" models. * /model/update [POST] */ async modelUpdate(requestParameters) { @@ -26644,6 +27605,7 @@ var require_ModelsApi = __commonJS({ var models_1 = require_models(); var ModelsApi2 = class extends runtime.BaseAPI { /** + * This will create a ml model, this is aloud however all models will be set to custom: true. && we will verify we dont have a model that matches this model. * /models/create [POST] */ async modelsCreateNewModelRaw(requestParameters) { @@ -26660,6 +27622,7 @@ var require_ModelsApi = __commonJS({ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ModelFromJSON)(jsonValue)); } /** + * This will create a ml model, this is aloud however all models will be set to custom: true. && we will verify we dont have a model that matches this model. * /models/create [POST] */ async modelsCreateNewModel(requestParameters) { @@ -26667,6 +27630,7 @@ var require_ModelsApi = __commonJS({ return await response.value(); } /** + * This will delete a model, This is only available for custom: true models. * /models/{model}/delete [POST] */ async modelsDeleteSpecificModelRaw(requestParameters) { @@ -26684,11 +27648,40 @@ var require_ModelsApi = __commonJS({ return new runtime.VoidApiResponse(response); } /** + * This will delete a model, This is only available for custom: true models. * /models/{model}/delete [POST] */ async modelsDeleteSpecificModel(requestParameters) { await this.modelsDeleteSpecificModelRaw(requestParameters); } + /** + * This is going to delete and sort of data that is associated with the Model itself IE the Assets/Libraries downloaded specifically for this model. This is only available for the LLLM models for now. + * /models/{model}/delete/cache [POST] + */ + async modelsDeleteSpecificModelCacheRaw(requestParameters) { + if (requestParameters.model === null || requestParameters.model === void 0) { + throw new runtime.RequiredError("model", "Required parameter requestParameters.model was null or undefined when calling modelsDeleteSpecificModelCache."); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters["Content-Type"] = "application/json"; + const response = await this.request({ + path: `/models/{model}/delete/cache`.replace(`{${"model"}}`, encodeURIComponent(String(requestParameters.model))), + method: "POST", + headers: headerParameters, + query: queryParameters, + body: (0, models_1.ModelDeleteCacheInputToJSON)(requestParameters.modelDeleteCacheInput) + }); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ModelDeleteCacheOutputFromJSON)(jsonValue)); + } + /** + * This is going to delete and sort of data that is associated with the Model itself IE the Assets/Libraries downloaded specifically for this model. This is only available for the LLLM models for now. + * /models/{model}/delete/cache [POST] + */ + async modelsDeleteSpecificModelCache(requestParameters) { + const response = await this.modelsDeleteSpecificModelCacheRaw(requestParameters); + return await response.value(); + } /** * This will get a snapshot of all of your models. * /models [GET] @@ -26713,7 +27706,7 @@ var require_ModelsApi = __commonJS({ return await response.value(); } /** - * This will unload all of the ml models. + * This will unload all of the ml models.(that are unloadable) * /models/unload [POST] */ async unloadModelsRaw() { @@ -26728,7 +27721,7 @@ var require_ModelsApi = __commonJS({ return new runtime.VoidApiResponse(response); } /** - * This will unload all of the ml models. + * This will unload all of the ml models.(that are unloadable) * /models/unload [POST] */ async unloadModels() { @@ -26969,6 +27962,31 @@ var require_OSApi = __commonJS({ async osRestart() { await this.osRestartRaw(); } + /** + * This is a helper endpoint that will check the status of an update for PiecesOS. IE if there is an update downloading, if there is one available, but the downloading has not started... etc + * /os/update/check [POST] + */ + async osUpdateCheckRaw(requestParameters) { + const queryParameters = {}; + const headerParameters = {}; + headerParameters["Content-Type"] = "application/json"; + const response = await this.request({ + path: `/os/update/check`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: (0, models_1.UncheckedOSUpdateToJSON)(requestParameters.uncheckedOSUpdate) + }); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.CheckedOSUpdateFromJSON)(jsonValue)); + } + /** + * This is a helper endpoint that will check the status of an update for PiecesOS. IE if there is an update downloading, if there is one available, but the downloading has not started... etc + * /os/update/check [POST] + */ + async osUpdateCheck(requestParameters) { + const response = await this.osUpdateCheckRaw(requestParameters); + return await response.value(); + } /** * This will trigger a filer picker and return the string paths of the files that were selected. * /os/files/pick [POST] @@ -27066,6 +28084,77 @@ var require_OSApi = __commonJS({ } }); +// ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/OpenAIApi.js +var require_OpenAIApi = __commonJS({ + "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/OpenAIApi.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar = exports && exports.__importStar || function(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) + __createBinding(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.OpenAIApi = void 0; + var runtime = __importStar(require_runtime()); + var models_1 = require_models(); + var OpenAIApi = class extends runtime.BaseAPI { + /** + * This will get a list of all of your Models from OpenAI w/ you user.auth0.openAI.apiKey. if the user is unauthenticated or if the openAI key doesnt exist or if it is invalid we will return a 401. Requires internet as this will ping out to OpenAI\'s server to get the models. + * /open_ai/models/list [POST] + */ + async openAiModelsListRaw(requestParameters) { + const queryParameters = {}; + const headerParameters = {}; + headerParameters["Content-Type"] = "application/json"; + const response = await this.request({ + path: `/open_ai/models/list`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: (0, models_1.OpenAIModelsListInputToJSON)(requestParameters.openAIModelsListInput) + }); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OpenAIModelsListOutputFromJSON)(jsonValue)); + } + /** + * This will get a list of all of your Models from OpenAI w/ you user.auth0.openAI.apiKey. if the user is unauthenticated or if the openAI key doesnt exist or if it is invalid we will return a 401. Requires internet as this will ping out to OpenAI\'s server to get the models. + * /open_ai/models/list [POST] + */ + async openAiModelsList(requestParameters) { + const response = await this.openAiModelsListRaw(requestParameters); + return await response.value(); + } + }; + exports.OpenAIApi = OpenAIApi; + } +}); + // ../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/PKCEApi.js var require_PKCEApi = __commonJS({ "../copilot-ts/node_modules/@pieces.app/pieces-os-client/dist/apis/PKCEApi.js"(exports) { @@ -27428,6 +28517,34 @@ var require_PersonsApi = __commonJS({ var runtime = __importStar(require_runtime()); var models_1 = require_models(); var PersonsApi = class extends runtime.BaseAPI { + /** + * This will update both the asset and the person reference, that will remove a person from an asset(only the references). This will NOT remove the person. This will NOT remove the asset. This will only update the references so that they are disconnected from one another. + * /persons/{person}/assets/delete/{asset} [POST] + */ + async personDisassociateAssetRaw(requestParameters) { + if (requestParameters.person === null || requestParameters.person === void 0) { + throw new runtime.RequiredError("person", "Required parameter requestParameters.person was null or undefined when calling personDisassociateAsset."); + } + if (requestParameters.asset === null || requestParameters.asset === void 0) { + throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling personDisassociateAsset."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/persons/{person}/assets/delete/{asset}`.replace(`{${"person"}}`, encodeURIComponent(String(requestParameters.person))).replace(`{${"asset"}}`, encodeURIComponent(String(requestParameters.asset))), + method: "POST", + headers: headerParameters, + query: queryParameters + }); + return new runtime.VoidApiResponse(response); + } + /** + * This will update both the asset and the person reference, that will remove a person from an asset(only the references). This will NOT remove the person. This will NOT remove the asset. This will only update the references so that they are disconnected from one another. + * /persons/{person}/assets/delete/{asset} [POST] + */ + async personDisassociateAsset(requestParameters) { + await this.personDisassociateAssetRaw(requestParameters); + } /** * This will create a new person. * /persons/create [POST] @@ -27507,34 +28624,6 @@ var require_PersonsApi = __commonJS({ const response = await this.personsSnapshotRaw(requestParameters); return await response.value(); } - /** - * This will update both the asset and the person reference, that will remove a person from an asset(only the references). This will NOT remove the person. This will NOT remove the asset. This will only update the references so that they are disconnected from one another. - * /persons/{person}/assets/delete/{asset} [POST] - */ - async removePersonReferenceFromAssetRaw(requestParameters) { - if (requestParameters.person === null || requestParameters.person === void 0) { - throw new runtime.RequiredError("person", "Required parameter requestParameters.person was null or undefined when calling removePersonReferenceFromAsset."); - } - if (requestParameters.asset === null || requestParameters.asset === void 0) { - throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling removePersonReferenceFromAsset."); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/persons/{person}/assets/delete/{asset}`.replace(`{${"person"}}`, encodeURIComponent(String(requestParameters.person))).replace(`{${"asset"}}`, encodeURIComponent(String(requestParameters.asset))), - method: "POST", - headers: headerParameters, - query: queryParameters - }); - return new runtime.VoidApiResponse(response); - } - /** - * This will update both the asset and the person reference, that will remove a person from an asset(only the references). This will NOT remove the person. This will NOT remove the asset. This will only update the references so that they are disconnected from one another. - * /persons/{person}/assets/delete/{asset} [POST] - */ - async removePersonReferenceFromAsset(requestParameters) { - await this.removePersonReferenceFromAssetRaw(requestParameters); - } }; exports.PersonsApi = PersonsApi; } @@ -27709,7 +28798,7 @@ var require_QGPTApi = __commonJS({ return await response.value(); } /** - * This is a version of qGPT stream that will stream the inputs. This will handle relevance. This will handle question. This will throw an error if both are passed in. That being said if you want to utalize question && relevant, you can get stream results by passing in relevance with options.question:true. This will handle multiple conversations. This is a Websocket. + * This is a version of qGPT stream that will stream the inputs. This will handle relevance. This will handle question. This will throw an error if both are passed in. That being said if you want to utalize question && relevant, you can get stream results by passing in relevance with options.question:true. This will handle multiple conversations. This is a Websocket. StatusCodes of the output of this will be on the output of the websocket: 200: success 401: invalid authentication/api key 429: Rate limit/Quota exceeded 500: server had an error 503: the engine is currently overloaded * /qgpt/stream [GET] */ async qgptStreamRaw(requestParameters) { @@ -27726,7 +28815,7 @@ var require_QGPTApi = __commonJS({ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.QGPTStreamOutputFromJSON)(jsonValue)); } /** - * This is a version of qGPT stream that will stream the inputs. This will handle relevance. This will handle question. This will throw an error if both are passed in. That being said if you want to utalize question && relevant, you can get stream results by passing in relevance with options.question:true. This will handle multiple conversations. This is a Websocket. + * This is a version of qGPT stream that will stream the inputs. This will handle relevance. This will handle question. This will throw an error if both are passed in. That being said if you want to utalize question && relevant, you can get stream results by passing in relevance with options.question:true. This will handle multiple conversations. This is a Websocket. StatusCodes of the output of this will be on the output of the websocket: 200: success 401: invalid authentication/api key 429: Rate limit/Quota exceeded 500: server had an error 503: the engine is currently overloaded * /qgpt/stream [GET] */ async qgptStream(requestParameters) { @@ -27734,7 +28823,7 @@ var require_QGPTApi = __commonJS({ return await response.value(); } /** - * This is going to accept, relevant code snippets or uuids returned from the /qgpt/relevance endpoint, as well as a question query and we will return possible results to answer your question. NOTE: - The relevant seeds, must require either an id, that was used within the /qgpt/relevance endpoint or a seed with afragment/string. or else we will throw and error. This endpoint will take your query and your relevant snippets and use them to answer your question, returning multiple answers to your question all of which with scores. + * This is going to accept, relevant code snippets or uuids returned from the /qgpt/relevance endpoint, as well as a question query and we will return possible results to answer your question. NOTE: - The relevant seeds, must require either an id, that was used within the /qgpt/relevance endpoint or a seed with afragment/string. or else we will throw and error. This endpoint will take your query and your relevant snippets and use them to answer your question, returning multiple answers to your question all of which with scores. 200: success 401: invalid authentication/api key 429: Rate limit/Quota exceeded 500: server had an error 503: the engine is currently overloaded * /qgpt/question [POST] */ async questionRaw(requestParameters) { @@ -27751,7 +28840,7 @@ var require_QGPTApi = __commonJS({ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.QGPTQuestionOutputFromJSON)(jsonValue)); } /** - * This is going to accept, relevant code snippets or uuids returned from the /qgpt/relevance endpoint, as well as a question query and we will return possible results to answer your question. NOTE: - The relevant seeds, must require either an id, that was used within the /qgpt/relevance endpoint or a seed with afragment/string. or else we will throw and error. This endpoint will take your query and your relevant snippets and use them to answer your question, returning multiple answers to your question all of which with scores. + * This is going to accept, relevant code snippets or uuids returned from the /qgpt/relevance endpoint, as well as a question query and we will return possible results to answer your question. NOTE: - The relevant seeds, must require either an id, that was used within the /qgpt/relevance endpoint or a seed with afragment/string. or else we will throw and error. This endpoint will take your query and your relevant snippets and use them to answer your question, returning multiple answers to your question all of which with scores. 200: success 401: invalid authentication/api key 429: Rate limit/Quota exceeded 500: server had an error 503: the engine is currently overloaded * /qgpt/question [POST] */ async question(requestParameters) { @@ -29522,12 +30611,12 @@ var require_WebsiteApi = __commonJS({ * This will associate a website with a asset. * /website/{website}/assets/associate/{asset} [POST] */ - async associateAssetRaw(requestParameters) { + async websiteAssociateAssetRaw(requestParameters) { if (requestParameters.asset === null || requestParameters.asset === void 0) { - throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling associateAsset."); + throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling websiteAssociateAsset."); } if (requestParameters.website === null || requestParameters.website === void 0) { - throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling associateAsset."); + throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling websiteAssociateAsset."); } const queryParameters = {}; const headerParameters = {}; @@ -29543,19 +30632,19 @@ var require_WebsiteApi = __commonJS({ * This will associate a website with a asset. * /website/{website}/assets/associate/{asset} [POST] */ - async associateAsset(requestParameters) { - await this.associateAssetRaw(requestParameters); + async websiteAssociateAsset(requestParameters) { + await this.websiteAssociateAssetRaw(requestParameters); } /** * This will associate a website with a person. * /website/{website}/persons/associate/{person} [POST] */ - async associatePersonRaw(requestParameters) { + async websiteAssociatePersonRaw(requestParameters) { if (requestParameters.website === null || requestParameters.website === void 0) { - throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling associatePerson."); + throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling websiteAssociatePerson."); } if (requestParameters.person === null || requestParameters.person === void 0) { - throw new runtime.RequiredError("person", "Required parameter requestParameters.person was null or undefined when calling associatePerson."); + throw new runtime.RequiredError("person", "Required parameter requestParameters.person was null or undefined when calling websiteAssociatePerson."); } const queryParameters = {}; const headerParameters = {}; @@ -29571,19 +30660,19 @@ var require_WebsiteApi = __commonJS({ * This will associate a website with a person. * /website/{website}/persons/associate/{person} [POST] */ - async associatePerson(requestParameters) { - await this.associatePersonRaw(requestParameters); + async websiteAssociatePerson(requestParameters) { + await this.websiteAssociatePersonRaw(requestParameters); } /** * This will enable us to dissassociate a website from a asset. * /website/{website}/assets/disassociate/{asset} [POST] */ - async disassociateAssetRaw(requestParameters) { + async websiteDisassociateAssetRaw(requestParameters) { if (requestParameters.website === null || requestParameters.website === void 0) { - throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling disassociateAsset."); + throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling websiteDisassociateAsset."); } if (requestParameters.asset === null || requestParameters.asset === void 0) { - throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling disassociateAsset."); + throw new runtime.RequiredError("asset", "Required parameter requestParameters.asset was null or undefined when calling websiteDisassociateAsset."); } const queryParameters = {}; const headerParameters = {}; @@ -29599,19 +30688,19 @@ var require_WebsiteApi = __commonJS({ * This will enable us to dissassociate a website from a asset. * /website/{website}/assets/disassociate/{asset} [POST] */ - async disassociateAsset(requestParameters) { - await this.disassociateAssetRaw(requestParameters); + async websiteDisassociateAsset(requestParameters) { + await this.websiteDisassociateAssetRaw(requestParameters); } /** * This will enable us to dissassociate a website from a person. * /website/{website}/persons/disassociate/{person} [POST] */ - async disassociatePersonRaw(requestParameters) { + async websiteDisassociatePersonRaw(requestParameters) { if (requestParameters.website === null || requestParameters.website === void 0) { - throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling disassociatePerson."); + throw new runtime.RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling websiteDisassociatePerson."); } if (requestParameters.person === null || requestParameters.person === void 0) { - throw new runtime.RequiredError("person", "Required parameter requestParameters.person was null or undefined when calling disassociatePerson."); + throw new runtime.RequiredError("person", "Required parameter requestParameters.person was null or undefined when calling websiteDisassociatePerson."); } const queryParameters = {}; const headerParameters = {}; @@ -29627,8 +30716,8 @@ var require_WebsiteApi = __commonJS({ * This will enable us to dissassociate a website from a person. * /website/{website}/persons/disassociate/{person} [POST] */ - async disassociatePerson(requestParameters) { - await this.disassociatePersonRaw(requestParameters); + async websiteDisassociatePerson(requestParameters) { + await this.websiteDisassociatePersonRaw(requestParameters); } /** * This will take in a SeededScoreIncrement and will increment the material relative to the incoming body. @@ -30013,6 +31102,7 @@ var require_apis = __commonJS({ __exportStar(require_DiscoveryApi(), exports); __exportStar(require_DistributionApi(), exports); __exportStar(require_DistributionsApi(), exports); + __exportStar(require_ExternalProviderApi(), exports); __exportStar(require_FormatApi(), exports); __exportStar(require_FormatsApi(), exports); __exportStar(require_GithubApi(), exports); @@ -30021,12 +31111,14 @@ var require_apis = __commonJS({ __exportStar(require_ImageAnalysesApi(), exports); __exportStar(require_LinkifyApi(), exports); __exportStar(require_MacOSApi(), exports); + __exportStar(require_MachineLearningApi(), exports); __exportStar(require_MetricsApi(), exports); __exportStar(require_ModelApi(), exports); __exportStar(require_ModelsApi(), exports); __exportStar(require_NotificationsApi(), exports); __exportStar(require_OCRAnalysesApi(), exports); __exportStar(require_OSApi(), exports); + __exportStar(require_OpenAIApi(), exports); __exportStar(require_PKCEApi(), exports); __exportStar(require_PersonApi(), exports); __exportStar(require_PersonsApi(), exports); @@ -30108,6 +31200,7 @@ var require_ConnectorSingleton = __commonJS({ this.conversationApi = new pieces_os_client_1.ConversationApi(new pieces_os_client_1.Configuration({ fetchApi: fetch, basePath: this.parameters.basePath })); this.modelApi = new pieces_os_client_1.ModelApi(new pieces_os_client_1.Configuration({ fetchApi: fetch, basePath: this.parameters.basePath })); this.modelsApi = new pieces_os_client_1.ModelsApi(new pieces_os_client_1.Configuration({ fetchApi: fetch, basePath: this.parameters.basePath })); + this.externalProviderApi = new pieces_os_client_1.ExternalProviderApi(new pieces_os_client_1.Configuration({ fetchApi: fetch, basePath: this.parameters.basePath })); this.searchApi = new pieces_os_client_1.SearchApi(new pieces_os_client_1.Configuration({ fetchApi: fetch, basePath: this.parameters.basePath })); this.allocationsApi = new pieces_os_client_1.AllocationsApi(new pieces_os_client_1.Configuration({ fetchApi: fetch, basePath: this.parameters.basePath })); this.applicationApi = new pieces_os_client_1.ApplicationApi(new pieces_os_client_1.Configuration({ fetchApi: fetch, basePath: this.parameters.basePath })); @@ -30201,6 +31294,7 @@ var require_const = __commonJS({ Constants2.LAPTOP_SVG = ``; Constants2.CLOUD_SVG = ``; Constants2.CHECK_SVG = ``; + Constants2.GEMINI_SVG = ``; Constants2.PALM2_SVG = ` `; Constants2.CHEVRON_UP_SVG = ``; Constants2.TERMINAL_SVG = ``; + Constants2.STOP_SVG = ``; Constants2.COPILOT_HELP_TEXT = `**Hello!** I'm the Pieces for Developers Copilot. I'm here to answer questions about the snippets, files, or folders you are working with. I can use various different LLM runtimes to answer your questions, including local runtimes powered by Llama2 (**you can use them without WiFi**). In order to **add files, folders, or snippets as context**, click on the _'Manage Context'_ button in the bottom right of the Copilot view, select one of the tabs, and click on the 'Add' button to personalize your context. @@ -30417,21 +31512,47 @@ var require_CopilotAnalytics_enum = __commonJS({ CopilotAnalytics2["LOADED"] = "copilot_chat_loaded"; CopilotAnalytics2["UNLOADED"] = "copilot_chat_unloaded"; CopilotAnalytics2["CONTEXT_SELECTION_BUTTON"] = "copilot_chat_context_selection_button"; - CopilotAnalytics2["CONTEXT_SELECTION_CARET"] = "copilot_chat_context_selection_caret"; - CopilotAnalytics2["CONTEXT_SELECTION_CHECKBOX"] = "copilot_chat_context_selection_checkbox"; - CopilotAnalytics2["CONTEXT_SELECTION_OPEN_FILE"] = "copilot_chat_context_selection_open_file"; + CopilotAnalytics2["CONTEXT_SELECTION_ADD_SNIPPET"] = "copilot_chat_add_snippet_as_context"; + CopilotAnalytics2["CONTEXT_SELECTION_ADD_FILE"] = "copilot_chat_add_file_as_context"; + CopilotAnalytics2["CONTEXT_SELECTION_ADD_FOLDER"] = "copilot_chat_add_folder_as_context"; CopilotAnalytics2["ASK_ABOUT_CODE"] = "copilot_chat_ask_about_code"; CopilotAnalytics2["ASK_ABOUT_FILE"] = "copilot_chat_ask_about_file"; + CopilotAnalytics2["ASK_ABOUT_TERMINAL"] = "copilot_chat_ask_about_terminal"; CopilotAnalytics2["ASK_ABOUT_FILE_DETAILS"] = "copilot_chat_ask_about_file_details"; CopilotAnalytics2["RELEVANT_FILE_BUTTON"] = "copilot_chat_relevant_file_button"; CopilotAnalytics2["LLM_CONFIG_BUTTON"] = "copilot_chat_llm_config_button"; CopilotAnalytics2["LLM_CANCEL_DOWNLOAD"] = "copilot_chat_cancel_llm_download"; CopilotAnalytics2["LLM_START_DOWNLOAD"] = "copilot_chat_start_llm_download"; + CopilotAnalytics2["LLM_DELETE"] = "copilot_chat_llm_deleted"; CopilotAnalytics2["SELECT_LLM"] = "copilot_chat_select_llm"; CopilotAnalytics2["DIRECTIVE_USED"] = "copilot_chat_directive_used"; CopilotAnalytics2["DIRECTIVE_CREATED_SUCCESS"] = "copilot_chat_directive_created_success"; CopilotAnalytics2["DIRECTIVE_CREATED_INITIALIZED"] = "copilot_chat_directive_created_initialized"; CopilotAnalytics2["DIRECTIVE_DELETED"] = "copilot_chat_directive_deleted"; + CopilotAnalytics2["WHO_COMMAND_USED"] = "copilot_chat_who_command_used"; + CopilotAnalytics2["HELP_COMMAND_USED"] = "copilot_chat_help_command_used"; + CopilotAnalytics2["SAVE_COMMAND_USED"] = "copilot_chat_save_command_used"; + CopilotAnalytics2["SAVEALL_COMMAND_USED"] = "copilot_chat_saveall_command_used"; + CopilotAnalytics2["MODIFY_COMMAND_USED"] = "copilot_chat_modify_command_used"; + CopilotAnalytics2["EXPLAIN_COMMAND_USED"] = "copilot_chat_explain_command_used"; + CopilotAnalytics2["COMMENT_COMMAND_USED"] = "copilot_chat_comment_command_used"; + CopilotAnalytics2["ASK_ABOUT_SNIPPET"] = "copilot_chat_ask_about_snippet_used"; + CopilotAnalytics2["RECENT_DIRECTIVE_USED"] = "copilot_chat_recent_directive_used"; + CopilotAnalytics2["WORKSPACE_DIRECTIVE_USED"] = "copilot_chat_workspace_directive_used"; + CopilotAnalytics2["SCROLL_TO_BOTTOM_BUTTON"] = "copilot_chat_scroll_to_bottom_buttom"; + CopilotAnalytics2["INSERT_CODE_BUTTON"] = "copilot_chat_insert_code_at_cursor_button"; + CopilotAnalytics2["RUN_IN_TERMINAL_BUTTON"] = "copilot_chat_run_in_terminal_button"; + CopilotAnalytics2["MESSAGE_LIKED"] = "copilot_chat_message_liked"; + CopilotAnalytics2["MESSAGE_DISLIKED"] = "copilot_chat_message_disliked"; + CopilotAnalytics2["MESSAGE_COPIED"] = "copilot_chat_message_copied"; + CopilotAnalytics2["MESSAGE_DELETED"] = "copilot_chat_message_deleted"; + CopilotAnalytics2["MESSAGE_GROUNDING_ADDED"] = "copilot_chat_added_message_as_context"; + CopilotAnalytics2["MESSAGE_GROUNDING_REMOVED"] = "copilot_chat_removed_message_as_context"; + CopilotAnalytics2["OCR_PASTE"] = "copilot_chat_ocr_paste"; + CopilotAnalytics2["OCR_PICKER"] = "copilot_chat_ocr_file_picker"; + CopilotAnalytics2["CODE_LENS_COMMENT"] = "copilot_chat_code_lens_comment"; + CopilotAnalytics2["CODE_LENS_EXPLAIN"] = "copilot_chat_code_lens_explain"; + CopilotAnalytics2["CODE_ACTION_FIX"] = "copilot_chat_code_action_fix"; })(CopilotAnalytics || (exports.CopilotAnalytics = CopilotAnalytics = {})); } }); @@ -30621,12 +31742,14 @@ var require_ModelProgressController = __commonJS({ var view_1 = require_view(); var ConnectorSingleton_1 = __importDefault(require_ConnectorSingleton()); var LLMConfigModal_1 = __importDefault(require_LLMConfigModal()); + var QGPTView_1 = __importDefault(require_QGPTView()); var ModelProgressController = class { /** * Initializes the sockets */ constructor() { this.modelDownloadStatus = /* @__PURE__ */ new Map(); + this.modelToDownloadPct = /* @__PURE__ */ new Map(); this.callbacks = new Array(); this.sockets = {}; this.models = ConnectorSingleton_1.default.getInstance().modelsApi.modelsSnapshot(); @@ -30704,6 +31827,19 @@ var require_ModelProgressController = __commonJS({ const event = (0, pieces_os_client_1.ModelDownloadProgressFromJSON)(JSON.parse(evt.data)); const oldStatus = this.modelDownloadStatus.get(model.id); this.modelDownloadStatus.set(model.id, (_a = event.status) !== null && _a !== void 0 ? _a : pieces_os_client_1.ModelDownloadProgressStatusEnum.Failed); + if (event.percentage) { + this.modelToDownloadPct.set(model.id, event.percentage); + const progressBar = QGPTView_1.default.LLMConfigModal.modelToProgressBar.get(model.id); + if (!progressBar) + return; + progressBar.show(); + progressBar.update({ value: event.percentage }); + const downloadPct = document.getElementById(`${model.id}-download-pct`); + if (downloadPct) { + downloadPct.innerText = `${event.percentage}% complete`; + } + QGPTView_1.default.LLMConfigModal.calculateTimeRemaining(model.id, event.percentage); + } if (oldStatus === event.status || !oldStatus) return; if (event.status === "COMPLETED") { @@ -30754,15 +31890,18 @@ var require_ProgressBar = __commonJS({ this.end = end; this.contentEl = contentEl; this.bounceDirection = 1; - this.barEl = (0, globals_1.createDiv)(this.contentEl); - this.barEl.classList.add("h-2", "bg-[var(--text-accent)]", "rounded"); + const barContainer = (0, globals_1.createDiv)(this.contentEl); + barContainer.classList.add("h-2", "rounded", "w-full", "border", "border-solid", "border-[var(--background-modifier-border)]", "hidden"); + this.barContainer = barContainer; + this.barEl = (0, globals_1.createDiv)(barContainer); + this.barEl.classList.add("bg-[var(--text-accent)]", "rounded", "h-full"); this.barEl.style.width = `${current / end * 100}%`; } hide() { - this.barEl.style.display = "none"; + this.barContainer.classList.add("hidden"); } show() { - this.barEl.style.display = "flex"; + this.barContainer.classList.remove("hidden"); } resetEnd(end) { if (this.current >= end) { @@ -30777,7 +31916,7 @@ var require_ProgressBar = __commonJS({ this.current = this.end; } this.barEl.style.width = `${this.current / this.end * 100}%`; - this.barEl.title = `Loaded ${this.current} of ${this.end}`; + this.barEl.title = `${Number(this.current / this.end * 100).toFixed(0)}% complete`; } getCurrent() { return this.current; @@ -34240,6 +35379,7 @@ var require_QGPTComponentBuilder = __commonJS({ saveButton.title = "Save code"; saveButton.onclick = () => __awaiter(void 0, void 0, void 0, function* () { var _c, _d; + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.SAVE_TO_PIECES_BUTTON); const application = yield (0, view_1.getApplication)(); if (!application) { const_1.Constants.sendErrorNotification("save to pieces"); @@ -34288,6 +35428,7 @@ var require_QGPTComponentBuilder = __commonJS({ shareButton.title = "Share code"; shareButton.onclick = () => __awaiter(void 0, void 0, void 0, function* () { var _e; + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.SHARE_VIA_PIECES_BUTTON); const similarity = yield similarityPromise; if (similarity && (similarity === null || similarity === void 0 ? void 0 : similarity.score) > 0.97) { (0, view_1.generateShareableLink)({ id: similarity.identifier }); @@ -34306,6 +35447,7 @@ var require_QGPTComponentBuilder = __commonJS({ runCodeButton.onclick = () => { var _b2; view_1.runInTerminal((_b2 = snippetData.textContent) !== null && _b2 !== void 0 ? _b2 : ""); + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.RUN_IN_TERMINAL_BUTTON); }; } const copyButton = (0, globals_1.createDiv)(visibleButtonRow); @@ -34315,6 +35457,7 @@ var require_QGPTComponentBuilder = __commonJS({ copyButton.onclick = () => { var _b2; (0, view_1.copyToClipboard)((_b2 = snippetData.textContent) !== null && _b2 !== void 0 ? _b2 : ""); + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.COPY_CODE_BUTTON); }; const insertCodeButton = (0, globals_1.createDiv)(visibleButtonRow); insertCodeButton.classList.add(..._a.buttonClasses); @@ -34322,6 +35465,7 @@ var require_QGPTComponentBuilder = __commonJS({ insertCodeButton.title = "Insert at cursor"; insertCodeButton.onclick = () => { var _b2; + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.INSERT_CODE_BUTTON); (0, view_1.insertAtCursor)((_b2 = snippetData.textContent) !== null && _b2 !== void 0 ? _b2 : ""); }; similarityPromise.then((similarity) => { @@ -41924,7 +43068,7 @@ var require_CopilotStreamController = __commonJS({ var CopilotStreamController = class { //@TODO implement socket unloading constructor() { - this.hasScrolled = false; + this.isGenerating = false; this.ws = null; this.answerEl = null; this.messageResolver = null; @@ -41945,7 +43089,7 @@ var require_CopilotStreamController = __commonJS({ * @returns a promise which is resolved when we get a 'COMPLETED' status from the socket, or rejected on a socket error. */ askQGPT({ query, answerEl }) { - var _a, _b, _c; + var _a, _b, _c, _d; return __awaiter(this, void 0, void 0, function* () { if (!this.ws) { this.connect(); @@ -41966,24 +43110,10 @@ var require_CopilotStreamController = __commonJS({ }; const relevanceOutput = yield ConnectorSingleton_1.default.getInstance().QGPTApi.relevance(relevanceInput); if (QGPTView_1.default.relevant) { - relevanceOutput.relevant.iterable.push({ - seed: { - type: pieces_os_client_2.SeedTypeEnum.Asset, - asset: { - application, - format: { - fragment: { - string: { - raw: QGPTView_1.default.relevant.text - }, - metadata: { - ext: QGPTView_1.default.relevant.extension - } - } - } - } - } - }); + query += ` +\`\`\`${(_a = QGPTView_1.default.relevant.extension) !== null && _a !== void 0 ? _a : ""} +${QGPTView_1.default.relevant.text} +\`\`\``; } for (const codeBlock of QGPTView_1.default.codeBlocks) { relevanceOutput.relevant.iterable.push({ @@ -42011,7 +43141,7 @@ var require_CopilotStreamController = __commonJS({ }); if (relevantEl) { const isAtBottom = this.isAtBottom(answerEl); - (_c = (_b = (_a = answerEl.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement) === null || _c === void 0 ? void 0 : _c.appendChild(relevantEl); + (_d = (_c = (_b = answerEl.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.appendChild(relevantEl); if (isAtBottom) this.forceScroll(answerEl); } @@ -42035,9 +43165,6 @@ var require_CopilotStreamController = __commonJS({ var _a, _b; if (!((_b = (_a = answerEl.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement)) throw new Error("Change in dom structure broke our autoscroll behavior in the Copilot Stream Controller"); - answerEl.parentElement.parentElement.parentElement.onscroll = () => { - this.hasScrolled = true; - }; answerEl.parentElement.parentElement.parentElement.scrollTop = answerEl.parentElement.parentElement.parentElement.scrollHeight; } isAtBottom(answerEl) { @@ -42053,6 +43180,19 @@ var require_CopilotStreamController = __commonJS({ } return scrollTop >= scrollHeight - offsetHeight - 1; } + get generating() { + return this.isGenerating; + } + stopGenerating() { + var _a; + if (!this.isGenerating) + return; + const input = { + stop: true + }; + (_a = this.ws) === null || _a === void 0 ? void 0 : _a.send(JSON.stringify(input)); + this.isGenerating = false; + } /** * Connects the websocket, handles all message callbacks, error handling, and rendering. */ @@ -42061,6 +43201,7 @@ var require_CopilotStreamController = __commonJS({ let totalMessage = ""; let relevantSnippets = []; this.ws.onmessage = (msg) => { + this.isGenerating = true; const json = JSON.parse(msg.data); const result = (0, pieces_os_client_1.QGPTStreamOutputFromJSON)(json); let answer; @@ -42078,7 +43219,7 @@ var require_CopilotStreamController = __commonJS({ if (result.question) { answer = result.question.answers.iterable[0]; } else { - if (result.status === "COMPLETED") { + if (result.status === "COMPLETED" || result.status === "STOPPED") { QGPTView_1.default.lastConversationMessage = new Date(); if (!totalMessage) { this.answerEl.innerHTML = "I'm sorry, it seems I don't have any relevant context to that question. Please try again \u{1F603}"; @@ -42114,6 +43255,7 @@ var require_CopilotStreamController = __commonJS({ relevantSnippets = []; }); } else if (result.status === "FAILED" || result.status === "UNKNOWN") { + this.isGenerating = false; if (this.messageRejector) this.messageRejector(result); totalMessage = ""; @@ -42160,7 +43302,6 @@ var require_CopilotStreamController = __commonJS({ yield this.connectionPromise; this.answerEl = answerEl; answerEl.parentElement.parentElement.scrollTop = answerEl.parentElement.parentElement.scrollHeight; - this.hasScrolled = false; const promise = new Promise((res, rej) => { this.messageResolver = res; this.messageRejector = rej; @@ -42446,12 +43587,14 @@ ${text} setTimeout(() => { copyMessageButton.innerHTML = const_1.Constants.COPY_SVG; }, 1500); + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.MESSAGE_COPIED); }); const deleteMessageButton = (0, globals_1.createDiv)(actionContainer); deleteMessageButton.classList.add("svg-box", "h-4", "hover:text-[var(--text-error)]", "cursor-pointer"); deleteMessageButton.innerHTML = const_1.Constants.TRASH_SVG; deleteMessageButton.onclick = () => { var _a; + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.MESSAGE_DELETED); QGPTView_1.default.lastConversationMessage = new Date(); ConnectorSingleton_1.default.getInstance().conversationMessagesApi.messagesDeleteSpecificMessage({ message: messageId @@ -42475,6 +43618,7 @@ ${text} thumbsUpButton.classList.add("svg-box", "h-4", "hover:text-[var(--text-accent)]", "cursor-pointer"); thumbsUpButton.innerHTML = const_1.Constants.THUMBS_UP_SVG; thumbsUpButton.onclick = () => { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.MESSAGE_LIKED); message.sentiment = pieces_os_client_1.ConversationMessageSentimentEnum.Like; QGPTView_1.default.lastConversationMessage = new Date(); ConnectorSingleton_1.default.getInstance().conversationMessageApi.messageSpecificMessageUpdate({ @@ -42494,6 +43638,7 @@ ${text} thumbsDownButton.classList.add("svg-box", "h-4", "hover:text-[var(--text-accent)]", "cursor-pointer"); thumbsDownButton.innerHTML = const_1.Constants.THUMBS_DOWN_SVG; thumbsDownButton.onclick = () => { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.MESSAGE_DISLIKED); message.sentiment = pieces_os_client_1.ConversationMessageSentimentEnum.Dislike; QGPTView_1.default.lastConversationMessage = new Date(); ConnectorSingleton_1.default.getInstance().conversationMessageApi.messageSpecificMessageUpdate({ @@ -42525,6 +43670,7 @@ ${text} messageInContextButton.title = messageInContext ? "Remove message from context" : "Add message to context"; messageInContextButton.onclick = () => { if (messageInContext) { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.MESSAGE_GROUNDING_REMOVED); QGPTView_1.default.lastConversationMessage = new Date(); ConnectorSingleton_1.default.getInstance().conversationApi.conversationGroundingMessagesDisassociateMessage({ conversation: conversation.id, @@ -42544,6 +43690,7 @@ ${text} }); }); } else { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.MESSAGE_GROUNDING_ADDED); QGPTView_1.default.lastConversationMessage = new Date(); ConnectorSingleton_1.default.getInstance().conversationApi.conversationGroundingMessagesAssociateMessage({ conversation: conversation.id, @@ -43081,7 +44228,6 @@ var require_Directives = __commonJS({ */ executeDirective(prompt) { return __awaiter(this, void 0, void 0, function* () { - (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.DIRECTIVE_USED); const directive = this.parseDirective(prompt); if (directive) { return this.createAndAssociate(directive, prompt); @@ -43103,7 +44249,9 @@ var require_Directives = __commonJS({ CopilotStreamController_1.default.getInstance().forceScroll(answerEl.answerText); return { executed: false, prompt }; } + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.DIRECTIVE_USED); if (directive === "workspace") { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.WORKSPACE_DIRECTIVE_USED); const workspacePaths = yield (0, view_1.getWorkspacePaths)(); seededAnchors = workspacePaths.paths.map((el) => ({ fullpath: el, @@ -43111,6 +44259,7 @@ var require_Directives = __commonJS({ })); } if (directive === "recent") { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.RECENT_DIRECTIVE_USED); const recentPaths = yield (0, view_1.getRecentFiles)(); seededAnchors = recentPaths.paths.map((el) => ({ fullpath: el, @@ -43147,6 +44296,152 @@ var require_Directives = __commonJS({ } }); +// ../copilot-ts/dist/modals/BYOMRegistryModal.js +var require_BYOMRegistryModal = __commonJS({ + "../copilot-ts/dist/modals/BYOMRegistryModal.js"(exports) { + "use strict"; + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + var globals_1 = require_globals(); + var Modal_1 = __importDefault(require_Modal()); + var ConnectorSingleton_1 = __importDefault(require_ConnectorSingleton()); + var view_1 = require_view(); + var QGPTView_1 = __importDefault(require_QGPTView()); + var inputClasses = [ + "flex", + "rounded", + "bg-[var(--background-primary)]", + "no-edit-border", + "p-1", + "border", + "border-solid", + "border-[var(--background-modifier-border)]" + ]; + var BYOMRegistryModal = class extends Modal_1.default { + constructor(user) { + super(); + this.user = user; + this.titleEl.classList.add("gap-1"); + const titleText = (0, globals_1.createDiv)(this.titleEl); + titleText.classList.add("text-lg", "font-semibold"); + titleText.innerText = "OpenAI API Key"; + const titleDesc = (0, globals_1.createDiv)(this.titleEl); + titleDesc.classList.add("text-xs", "text-[var(--text-muted)]"); + titleDesc.innerText = "This key wil be used to power existing OpenAI Models in the Copilot Chat. In the future, key(s) will enable you to use your exclusive models."; + this.contentEl.classList.add("pt-4"); + this.buildKeyEl(this.contentEl); + } + buildKeyEl(containerEl) { + var _a, _b, _c, _d, _e, _f, _g; + const keyFormContainer = (0, globals_1.createDiv)(containerEl); + keyFormContainer.classList.add("flex", "flex-row", "gap-2"); + const keyNameInput = (0, globals_1.createEl)(keyFormContainer, "input"); + keyNameInput.classList.add(...inputClasses, "w-1/3"); + keyNameInput.contentEditable = "true"; + keyNameInput.placeholder = "Key name"; + keyNameInput.value = (_c = (_b = (_a = this.user.auth0) === null || _a === void 0 ? void 0 : _a.openAI) === null || _b === void 0 ? void 0 : _b.apiKeyName) !== null && _c !== void 0 ? _c : ""; + const keyValueInput = (0, globals_1.createEl)(keyFormContainer, "input"); + keyValueInput.classList.add(...inputClasses, "flex-1"); + keyValueInput.contentEditable = "true"; + keyValueInput.placeholder = "Enter key..."; + const openAIKey = (_e = (_d = this.user.auth0) === null || _d === void 0 ? void 0 : _d.openAI) === null || _e === void 0 ? void 0 : _e.apiKey; + const sanitizedKey = (openAIKey === null || openAIKey === void 0 ? void 0 : openAIKey.slice(0, 5)) + "..." + (openAIKey === null || openAIKey === void 0 ? void 0 : openAIKey.slice(40)); + keyValueInput.value = openAIKey ? sanitizedKey : ""; + if ((_f = this.user.auth0) === null || _f === void 0 ? void 0 : _f.openAI) { + keyValueInput.readOnly = true; + keyNameInput.readOnly = true; + } + const saveButtonContainer = (0, globals_1.createDiv)(this.contentEl); + saveButtonContainer.classList.add("pt-4", "flex", "justify-center", "items-center"); + const saveButton = (0, globals_1.createDiv)(saveButtonContainer); + saveButton.classList.add("bg-[var(--background-secondary)]", "p-2", "cursor-pointer", "hover:bg-[var(--background-modifier-border-hover)]", "rounded"); + saveButton.innerText = ((_g = this.user.auth0) === null || _g === void 0 ? void 0 : _g.openAI) ? "Delete" : "Save"; + saveButton.onclick = () => { + var _a2; + ((_a2 = this.user.auth0) === null || _a2 === void 0 ? void 0 : _a2.openAI) ? ConnectorSingleton_1.default.getInstance().externalProviderApi.externalProviderApiKeyDelete({ + predeletedExternalProviderApiKey: { + user: this.user.id, + openAI: true + } + }).then(() => { + var _a3; + (0, view_1.sendNotification)({ + type: "info", + message: "Successfully unlinked account from OpenAI API key." + }); + this.close(); + (_a3 = QGPTView_1.default.LLMConfigModal) === null || _a3 === void 0 ? void 0 : _a3.open(); + }).catch(() => { + const failedText = document.createElement("div"); + failedText.classList.add("text-[var(--text-error)]", "text-xs", "pt-2"); + failedText.innerText = "Failed to unlink account"; + saveButtonContainer.insertAdjacentElement("beforebegin", failedText); + }) : ConnectorSingleton_1.default.getInstance().externalProviderApi.externalProviderApiKeyCreate({ + precreatedExternalProviderApiKey: { + user: this.user.id, + openAI: { + apiKeyName: keyNameInput.value, + apiKey: keyValueInput.value + } + } + }).then(() => { + var _a3; + (0, view_1.sendNotification)({ + type: "info", + message: "Successfully linked account to OpenAI API key." + }); + this.close(); + (_a3 = QGPTView_1.default.LLMConfigModal) === null || _a3 === void 0 ? void 0 : _a3.open(); + }).catch(() => { + const failedText = document.createElement("div"); + failedText.classList.add("text-[var(--text-error)]", "text-xs", "pt-2"); + failedText.innerText = "OpenAI API Key or Organization Key is invalid."; + saveButtonContainer.insertAdjacentElement("beforebegin", failedText); + }); + }; + } + onOpen() { + return __awaiter(this, void 0, void 0, function* () { + return; + }); + } + onClose() { + this.containerEl.remove(); + } + }; + exports.default = BYOMRegistryModal; + } +}); + // ../copilot-ts/dist/modals/LLMConfigModal.js var require_LLMConfigModal = __commonJS({ "../copilot-ts/dist/modals/LLMConfigModal.js"(exports) { @@ -43195,17 +44490,21 @@ var require_LLMConfigModal = __commonJS({ var QGPTView_1 = __importDefault(require_QGPTView()); var timeoutPromise_1 = require_timeoutPromise(); var Directives_1 = __importDefault(require_Directives()); + var BYOMRegistryModal_1 = __importDefault(require_BYOMRegistryModal()); var ModelBoxEnum; (function(ModelBoxEnum2) { ModelBoxEnum2["LLaMa2"] = "Llama2"; ModelBoxEnum2["CodeLlaMa"] = "CodeLlama"; ModelBoxEnum2["OpenAi"] = "Open AI"; ModelBoxEnum2["Palm2"] = "PaLM 2"; + ModelBoxEnum2["Gemini"] = "Gemini"; })(ModelBoxEnum || (ModelBoxEnum = {})); var CopilotLLMConfigModal = class extends Modal_1.default { constructor() { super(...arguments); this.activeModelPills = []; + this.modelToProgressBar = /* @__PURE__ */ new Map(); + this.modelToDownloadStart = /* @__PURE__ */ new Map(); this.modelButtons = []; this.createModelBox = (type, container, models) => { var _a; @@ -43232,7 +44531,7 @@ var require_LLMConfigModal = __commonJS({ const modelElementsText = (0, globals_1.createEl)(modelElements, "p"); modelElementsText.classList.add("font-light", "text-xs", "text-[var(--text-faint)]", "pt-1"); modelElementsText.innerText = "SELECT MODEL"; - this.buildModelElements(modelElements, models); + this.buildModelElements(modelElements, models, type === ModelBoxEnum.OpenAi); modelBox.onclick = () => { const expanded = modelExpand.innerHTML === "\u2335"; modelExpand.innerHTML = expanded ? "×" : "\u2335"; @@ -43261,6 +44560,9 @@ var require_LLMConfigModal = __commonJS({ if (type === ModelBoxEnum.Palm2) { return "PaLM 2 has been optimized for ease of use on key developer use cases and the ability to follow instructions with precision and nuance."; } + if (type === ModelBoxEnum.Gemini) { + return "Google's long-promised, next-gen generative AI model family, developed by Google's AI research labs DeepMind and Google Research."; + } }; this.getModelRequirements = (model) => { if (model.cpu && model.foundation === pieces_os_client_1.ModelFoundationEnum.Llama27B) @@ -43284,6 +44586,8 @@ var require_LLMConfigModal = __commonJS({ return "GPT 3.5 16k"; if (model.foundation === pieces_os_client_1.ModelFoundationEnum.ChatBison) return "Chat Bison"; + if (model.foundation === pieces_os_client_1.ModelFoundationEnum.Gemini) + return "Pro Chat Model"; if (model.foundation === pieces_os_client_1.ModelFoundationEnum.CodechatBison) return "Code Chat Bison"; return "GPT 3.5 Turbo"; @@ -43333,6 +44637,11 @@ var require_LLMConfigModal = __commonJS({ textBox.innerText = "Code Chat Bison"; return svgBox.outerHTML + textBox.outerHTML; } + if (model.foundation === pieces_os_client_1.ModelFoundationEnum.Gemini) { + svgBox.innerHTML = const_1.Constants.GEMINI_SVG; + textBox.innerText = "Gemini Pro"; + return svgBox.outerHTML + textBox.outerHTML; + } svgBox.innerHTML = const_1.Constants.OPENAI_SVG; textBox.innerText = "GPT 3.5 Turbo"; return svgBox.outerHTML + textBox.outerHTML; @@ -43353,7 +44662,7 @@ var require_LLMConfigModal = __commonJS({ this.modelButtons = []; const modelProgress = ModelProgressController_1.default.getInstance(); modelProgress.registerCallback(this.refresh); - const models = yield modelProgress.models; + const models = yield ConnectorSingleton_1.default.getInstance().modelsApi.modelsSnapshot(); modelProgress.openSockets(models.iterable.filter( // this will open any socket for a model id that is not currently open (el) => el.foundation === pieces_os_client_1.ModelFoundationEnum.Llama27B && el.unique !== "llama-2-7b-chat.ggmlv3.q4_K_M" @@ -43410,6 +44719,7 @@ var require_LLMConfigModal = __commonJS({ this.createModelBox(ModelBoxEnum.CodeLlaMa, localModels, models.iterable.filter((el) => el.name.includes("CodeLlama"))); this.createModelBox(ModelBoxEnum.OpenAi, cloudModels, models.iterable.filter((el) => el.foundation === pieces_os_client_1.ModelFoundationEnum.Gpt35 || el.foundation === pieces_os_client_1.ModelFoundationEnum.Gpt4)); this.createModelBox(ModelBoxEnum.Palm2, cloudModels, models.iterable.filter((el) => el.foundation === pieces_os_client_1.ModelFoundationEnum.CodechatBison || el.foundation === pieces_os_client_1.ModelFoundationEnum.ChatBison)); + this.createModelBox(ModelBoxEnum.Gemini, cloudModels, models.iterable.filter((el) => el.foundation === pieces_os_client_1.ModelFoundationEnum.Gemini)); const localTab = (0, globals_1.createDiv)(tabs); const cloudTab = (0, globals_1.createDiv)(tabs); const localSvgBox = (0, globals_1.createDiv)(localTab); @@ -43466,15 +44776,44 @@ var require_LLMConfigModal = __commonJS({ this.activeModelPills.push(activeModelPill); return activeModelPill; } - buildModelElements(containerEl, models) { + buildModelElements(containerEl, models, openai = false) { return __awaiter(this, void 0, void 0, function* () { for (let i = 0; i < models.length; i++) { this.buildModelElement(models[i], containerEl); } + if (openai) { + yield this.buildBYOMElement(containerEl); + } + }); + } + buildBYOMElement(containerEl) { + var _a, _b; + return __awaiter(this, void 0, void 0, function* () { + let user = yield ConnectorSingleton_1.default.getInstance().userApi.userSnapshot(); + const byomContainer = (0, globals_1.createDiv)(containerEl); + byomContainer.classList.add("flex", "rounded-md", "p-2", "bg-[var(--background-secondary)]", "gap-2", "flex-col", "hover:bg-[var(--background-modifier-border-hover)]"); + byomContainer.onclick = (e) => __awaiter(this, void 0, void 0, function* () { + e.stopPropagation(); + if (!user.user) { + user = yield ConnectorSingleton_1.default.getInstance().osApi.signIntoOS(); + } + if (!user.user) + return; + new BYOMRegistryModal_1.default(user.user).open(); + this.close(); + }); + const titleRow = (0, globals_1.createDiv)(byomContainer); + titleRow.classList.add("flex", "flex-row", "gap-2", "items-center"); + const titleText = (0, globals_1.createDiv)(titleRow); + titleText.innerText = ((_b = (_a = user.user) === null || _a === void 0 ? void 0 : _a.auth0) === null || _b === void 0 ? void 0 : _b.openAI) ? "Manage Custom API Key" : "Register Custom API Key"; + const descEl = (0, globals_1.createDiv)(byomContainer); + descEl.classList.add("text-xs", "text-[var(--text-muted)]"); + descEl.innerText = "Get the most out of your OpenAI API key"; }); } // builds the element for each individual model buildModelElement(model, containerEl) { + var _a; if (model.cloud) model.downloaded = true; const modelElement = (0, globals_1.createDiv)(containerEl); @@ -43484,7 +44823,56 @@ var require_LLMConfigModal = __commonJS({ const modelTitle = (0, globals_1.createEl)(modelTitleRow, "p"); modelTitle.innerText = this.getModelTitle(model); modelTitle.classList.add("m-0"); - const modelButton = (0, globals_1.createDiv)(modelTitleRow); + const modelActionsDiv = (0, globals_1.createDiv)(modelTitleRow); + modelActionsDiv.classList.add("flex", "flex-row", "gap-1"); + if (model.downloaded && !model.cloud) { + const deleteButton = (0, globals_1.createDiv)(modelActionsDiv); + deleteButton.innerHTML = const_1.Constants.TRASH_SVG; + deleteButton.classList.add("cursor-pointer", "hover:text-[var(--text-error)]", "svg-box", "h-5"); + deleteButton.title = "Delete downloaded LLM"; + deleteButton.onclick = (event) => { + event.stopPropagation(); + const confirmationDiv = document.createElement("div"); + confirmationDiv.classList.add("flex", "flex-row", "gap-1"); + const yesButton = (0, globals_1.createDiv)(confirmationDiv); + yesButton.innerHTML = "✓"; + yesButton.classList.add("cursor-pointer", "hover:text-[var(--text-accent)]", "text-lg", "leading-[1]"); + yesButton.onclick = (event2) => { + event2.stopPropagation(); + confirmationDiv.remove(); + ConnectorSingleton_1.default.getInstance().modelsApi.modelsDeleteSpecificModelCache({ + model: model.id, + modelDeleteCacheInput: {} + }).then(() => { + var _a2; + model.downloaded = false; + (0, view_1.sendNotification)({ + type: "info", + message: `Successfully deleted ${(_a2 = model.name) !== null && _a2 !== void 0 ? _a2 : model.foundation}` + }); + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.LLM_DELETE); + this.refresh(); + }).catch(() => { + var _a2; + const_1.Constants.sendErrorNotification(`delete ${(_a2 = model.name) !== null && _a2 !== void 0 ? _a2 : model.foundation}`); + }); + deleteButton.classList.remove("hidden"); + }; + yesButton.title = "Confirm model deletion"; + const noButton = (0, globals_1.createDiv)(confirmationDiv); + noButton.innerHTML = "×"; + noButton.classList.add("cursor-pointer", "hover:text-[var(--text-error)]", "text-lg", "leading-[1]"); + noButton.onclick = (event2) => { + event2.stopPropagation(); + confirmationDiv.remove(); + deleteButton.classList.remove("hidden"); + }; + noButton.title = "Cancel model deletion"; + deleteButton.classList.add("hidden"); + deleteButton.insertAdjacentElement("afterend", confirmationDiv); + }; + } + const modelButton = (0, globals_1.createDiv)(modelActionsDiv); this.modelButtons.push({ btn: modelButton, selected: CopilotLLMConfigModal.selectedModel === model.id, @@ -43524,8 +44912,22 @@ var require_LLMConfigModal = __commonJS({ end: 100, contentEl: modelElement }); + this.modelToProgressBar.set(model.id, progressBar); + const downloadStats = (0, globals_1.createDiv)(modelElement); + downloadStats.classList.add("flex", "flex-row", "justify-between", "hidden"); + const downloadPct = (0, globals_1.createDiv)(downloadStats); + downloadPct.id = `${model.id}-download-pct`; + downloadPct.classList.add("text-xs"); + const timeRemaining = (0, globals_1.createDiv)(downloadStats); + timeRemaining.classList.add("text-xs"); + timeRemaining.id = `${model.id}-time-remaining`; if (status === pieces_os_client_2.ModelDownloadProgressStatusEnum.InProgress || status === pieces_os_client_2.ModelDownloadProgressStatusEnum.Initialized) { - progressBar.bounce(); + const downloadPctValue = (_a = ModelProgressController_1.default.getInstance().modelToDownloadPct.get(model.id)) !== null && _a !== void 0 ? _a : 0; + progressBar.update({ value: downloadPctValue }); + progressBar.show(); + downloadStats.classList.remove("hidden"); + downloadPct.innerText = `${downloadPctValue}% complete`; + this.calculateTimeRemaining(model.id, downloadPctValue); } else { progressBar.hide(); } @@ -43555,7 +44957,7 @@ var require_LLMConfigModal = __commonJS({ modelButton.innerHTML = "×"; modelButton.title = `Cancel ${modelTitle.innerText} download`; progressBar.show(); - progressBar.bounce(); + progressBar.update({ value: 0 }); (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.LLM_START_DOWNLOAD); } else { modelButton.innerHTML = const_1.Constants.DOWNLOAD_SVG; @@ -43571,9 +44973,12 @@ var require_LLMConfigModal = __commonJS({ return const_1.Constants.META_SVG; if (type === ModelBoxEnum.Palm2) return const_1.Constants.PALM2_SVG; + if (type === ModelBoxEnum.Gemini) + return const_1.Constants.GEMINI_SVG; return const_1.Constants.OPENAI_SVG; } handleDownloadSelectCancel(model) { + var _a, _b; this.lastUserAction = new Date(); ModelProgressController_1.default.getInstance().openSockets([model]); const status = ModelProgressController_1.default.getInstance().modelDownloadStatus.get(model.id); @@ -43589,6 +44994,11 @@ var require_LLMConfigModal = __commonJS({ type: "error" }); }); + const downloadPct = document.getElementById(`${model.id}-download-pct`); + if (downloadPct) { + downloadPct.innerText = "0% complete"; + (_a = downloadPct.parentElement) === null || _a === void 0 ? void 0 : _a.classList.add("hidden"); + } } else if (model.downloaded) { CopilotLLMConfigModal.selectedModel = model.id; CopilotLLMConfigModal.selectedRuntime = model.cloud ? "CLOUD" : model.cpu ? "CPU" : "GPU"; @@ -43605,6 +45015,7 @@ var require_LLMConfigModal = __commonJS({ message: `${model.foundation} ${model.cloud ? "CLOUD" : model.cpu ? "CPU" : "GPU"} selected!` }); } else { + this.modelToDownloadStart.set(model.id, new Date()); ConnectorSingleton_1.default.getInstance().modelApi.modelSpecificModelDownload({ model: model.id }).catch(() => { (0, view_1.sendNotification)({ message: "Failed to initiate model download, please make sure that Pieces OS is installed, running, and updated. If the issue persists, please contact support@pieces.app", @@ -43612,8 +45023,42 @@ var require_LLMConfigModal = __commonJS({ }); }); ModelProgressController_1.default.getInstance().modelDownloadStatus.set(model.id, pieces_os_client_2.ModelDownloadProgressStatusEnum.InProgress); + const downloadPct = document.getElementById(`${model.id}-download-pct`); + if (downloadPct) { + downloadPct.innerText = "0% complete"; + (_b = downloadPct.parentElement) === null || _b === void 0 ? void 0 : _b.classList.remove("hidden"); + } + this.modelToDownloadStart.set(model.id, new Date()); } } + calculateTimeRemaining(model, percentage) { + const timeRemainingEl = document.getElementById(`${model}-time-remaining`); + if (!timeRemainingEl) + return; + const start = this.modelToDownloadStart.get(model); + if (!start) + return; + const now = new Date(); + const durationRemaining = (now.getTime() - start.getTime()) * ((100 - percentage) / percentage); + const seconds = Math.floor(durationRemaining / 1e3 % 60), minutes = Math.floor(durationRemaining / (1e3 * 60) % 60), hours = Math.floor(durationRemaining / (1e3 * 60 * 60) % 24), days = Math.floor(durationRemaining / (1e3 * 60 * 60 * 24)); + const daysDisplay = days > 0 ? days + "d " : ""; + const hoursDisplay = hours > 0 ? hours + "h " : ""; + const minutesDisplay = minutes > 0 ? minutes + "m " : ""; + const secondsDisplay = seconds > 0 ? seconds + "s" : ""; + let output = ""; + if (daysDisplay) { + output = `~${daysDisplay + hoursDisplay} remaining`; + } else if (hoursDisplay) { + output = `~${hoursDisplay + minutesDisplay} remaining`; + } else if (minutesDisplay) { + output = `~${minutesDisplay + secondsDisplay} remaining`; + } else if (secondsDisplay) { + output = `~${secondsDisplay} remaining`; + } else { + output = "Almost there..."; + } + timeRemainingEl.innerText = output; + } onClose() { ModelProgressController_1.default.getInstance().deregisterCallback(this.refresh); } @@ -43738,6 +45183,7 @@ var require_ContextSelectionModal = __commonJS({ var getNotDeletedIndicies_1 = __importDefault(require_getNotDeletedIndicies()); var globals_1 = require_globals(); var Directives_1 = __importDefault(require_Directives()); + var CopilotAnalytics_enum_1 = require_CopilotAnalytics_enum(); var ContextSelectionModal = class extends Modal_1.default { constructor() { super(); @@ -43852,6 +45298,13 @@ var require_ContextSelectionModal = __commonJS({ }); } (0, view_1.requestContextPicker)(type, QGPTView_1.default.conversationId); + if (type === "snippets") { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.CONTEXT_SELECTION_ADD_SNIPPET); + } else if (type === "files") { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.CONTEXT_SELECTION_ADD_FILE); + } else if (type === "folders") { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.CONTEXT_SELECTION_ADD_FOLDER); + } }); } // user switched to a new conversation @@ -44013,7 +45466,6 @@ var require_ContextSelectionModal = __commonJS({ } // builds files and folders tab content element buildAnchorEl(anchorPoints, container, type) { - var _a, _b, _c; return __awaiter(this, void 0, void 0, function* () { for (const point of anchorPoints) { const pointRow = (0, globals_1.createDiv)(container); @@ -44023,16 +45475,6 @@ var require_ContextSelectionModal = __commonJS({ const pointTitle = (0, globals_1.createDiv)(pointTitleContainer); pointTitle.classList.add("text-xs", "text-ellipsis", "line-clamp-1", "break-all"); pointTitle.innerText = `\u2022 ${point.fullpath.replace(/\\/g, "/").split("/").pop()}`; - if (type === "folders" && ((_a = yield (0, view_1.getApplication)()) === null || _a === void 0 ? void 0 : _a.name) === pieces_os_client_1.ApplicationNameEnum.VsCode) { - const verifiedCountContainer = (0, globals_1.createDiv)(pointTitleContainer); - verifiedCountContainer.classList.add("p-0.5", "rounded-lg", "flex", "flex-row", "border", "border-solid", "border-[var(--background-modifier-border)]", "text-xs", "gap-1"); - verifiedCountContainer.title = `${((_b = this.folderToFileCount[point.fullpath]) !== null && _b !== void 0 ? _b : 0).toString()} verified files`; - const verifiedCount = (0, globals_1.createDiv)(verifiedCountContainer); - verifiedCount.innerText = ((_c = this.folderToFileCount[point.fullpath]) !== null && _c !== void 0 ? _c : 0).toString(); - const shieldSvgBox = (0, globals_1.createDiv)(verifiedCountContainer); - shieldSvgBox.classList.add("svg-box", "h-4"); - shieldSvgBox.innerHTML = const_1.Constants.SHIELD_CHECK_SVG; - } const removeAnchorButton = (0, globals_1.createDiv)(pointRow); removeAnchorButton.classList.add("cursor-pointer", "text-sm", "leading-[1.13]"); removeAnchorButton.innerHTML = "×"; @@ -44138,7 +45580,7 @@ var require_ContextSelectionModal = __commonJS({ }))).catch(() => [])).filter((anchorPoint) => anchorPoint.platform === view_1.platform); this.fileTabContentEl.forEach((el) => this.buildContentEl("files", el, files)); this.snippetTabContentEl.forEach((el) => this.buildContentEl("snippets", el, assets)); - const filteredPaths = yield (0, view_1.filterFolders)(folders.map((el) => el.fullpath)); + const filteredPaths = folders.map((el) => el.fullpath); this.folderToFileCount = {}; for (const folder of folders) { for (const filePath of filteredPaths) { @@ -47410,7 +48852,7 @@ 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.0.0"; + var GPTMinVersion = "7.2.0"; var MaxVersion = "8.0.0"; exports.migration = 0; var copyToClipboard2 = (text) => __awaiter(void 0, void 0, void 0, function* () { @@ -47599,6 +49041,7 @@ var require_Commands = __commonJS({ var globals_1 = require_globals(); var QGPTViewBuilder_1 = __importDefault(require_QGPTViewBuilder()); var const_1 = require_const(); + var CopilotAnalytics_enum_1 = require_CopilotAnalytics_enum(); var SlashCommandEnum; (function(SlashCommandEnum2) { SlashCommandEnum2["SAVE"] = "save"; @@ -47808,9 +49251,12 @@ var require_Commands = __commonJS({ const ret = { commandExecuted: false, prompt: "" }; if (command === SlashCommandEnum.COMMENT) { ret.prompt = `Add comments to this code ${parsedPrompt}`; + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.COMMENT_COMMAND_USED); } else if (command === SlashCommandEnum.EXPLAIN) { ret.prompt = `Explain this code ${parsedPrompt}`; + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.EXPLAIN_COMMAND_USED); } else if (command === SlashCommandEnum.HELP) { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.HELP_COMMAND_USED); ret.commandExecuted = true; const queryEl = QGPTViewBuilder_1.default.buildQueryElement("What even is this anyways?", [], false); textAreaDiv.appendChild(queryEl.queryDiv); @@ -47818,8 +49264,10 @@ var require_Commands = __commonJS({ textAreaDiv.appendChild(answerEl.answerDiv); CopilotStreamController_1.default.getInstance().forceScroll(answerEl.answerText); } else if (command === SlashCommandEnum.MODIFY) { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.MODIFY_COMMAND_USED); ret.prompt = `Modify this code so that it adheres to the following statment: ${parsedPrompt}`; } else if (command === SlashCommandEnum.SAVE) { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.SAVE_COMMAND_USED); const queryEl = QGPTViewBuilder_1.default.buildQueryElement("Save the last code snippet", [], false); textAreaDiv.appendChild(queryEl.queryDiv); if (!QGPTView_1.default.codeBlocks.length) { @@ -47842,6 +49290,7 @@ var require_Commands = __commonJS({ }); ret.commandExecuted = true; } else if (command === SlashCommandEnum.SAVEALL) { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.SAVEALL_COMMAND_USED); const queryEl = QGPTViewBuilder_1.default.buildQueryElement("Save all the code snippets", [], false); textAreaDiv.appendChild(queryEl.queryDiv); const application = yield (0, view_1.getApplication)(); @@ -47861,6 +49310,7 @@ var require_Commands = __commonJS({ }); ret.commandExecuted = true; } else if (command === SlashCommandEnum.WHO) { + (0, view_1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.WHO_COMMAND_USED); const queryEl = QGPTViewBuilder_1.default.buildQueryElement("Who should I ask about this?", [], false); textAreaDiv.appendChild(queryEl.queryDiv); const loadingAnswerEl = QGPTViewBuilder_1.default.buildAnswerElement("Analyzing your question, please wait...", []); @@ -48139,7 +49589,8 @@ var require_QGPTView = __commonJS({ directives: Directives_1.default.getInstance().directiveList }); _a.lastConversationMessage = new Date(); - yield ConnectorSingleton_1.default.getInstance().conversationApi.conversationAssociateAsset({ conversation: conversation.id, asset: hint.asset.id }); + if (hint.asset) + yield ConnectorSingleton_1.default.getInstance().conversationApi.conversationAssociateAsset({ conversation: conversation.id, asset: hint.asset.id }); yield _a.contextSelectionModal.debouncedConversationChangeHandler(conversation.id); } inputText.innerText = hint.text; @@ -48198,6 +49649,7 @@ var require_QGPTView = __commonJS({ } }; imageButton.onclick = () => { + (0, _1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.OCR_PICKER); fileInput.click(); }; const commands = Commands_1.default.getInstance(); @@ -48218,6 +49670,7 @@ var require_QGPTView = __commonJS({ return __awaiter(this, void 0, void 0, function* () { const data = (_b2 = e.target) === null || _b2 === void 0 ? void 0 : _b2.result; _a.generatingResults = true; + (0, _1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.OCR_PASTE); yield QGPTViewBuilder_1.default.performOcrAction(data, textAreaDiv); _a.generatingResults = false; }); @@ -48290,7 +49743,7 @@ var require_QGPTView = __commonJS({ sendDiv.classList.add("hide"); return; } - if (inputText.innerText.includes(" ")) { + if (!inputText.innerText.includes("@") && !inputText.innerText.includes("/") || inputText.innerText.includes(" ")) { if (event.key !== "Enter" || event.shiftKey) { return; } @@ -48326,9 +49779,14 @@ var require_QGPTView = __commonJS({ inputText.focus(); const sendDiv = document.createElement("div"); inputDiv.appendChild(sendDiv); - sendDiv.classList.add("hide", "text-[var(--text-accent)]", "pr-3"); + sendDiv.classList.add("hide", "text-[var(--text-accent)]", "pr-3", "h-5", "cursor-pointer", "svg-box"); + sendDiv.id = "copilot-send-button"; sendDiv.innerHTML = const_1.Constants.SEND_SVG; sendDiv.onmouseup = () => __awaiter(this, void 0, void 0, function* () { + if (CopilotStreamController_1.default.getInstance().generating) { + CopilotStreamController_1.default.getInstance().stopGenerating(); + return; + } if (inputText.innerText === "") { return; } @@ -48568,6 +50026,17 @@ ${sortedPaths.map((el) => `- ${el}`).join("\n")} return; } _a.generatingResults = true; + const sendButton = document.getElementById("copilot-send-button"); + if (!sendButton) + throw new Error('No send button found, id "copilot-send-button" is expected'); + sendButton.innerHTML = const_1.Constants.STOP_SVG; + sendButton.classList.remove("text-[var(--text-accent)]"); + sendButton.classList.add("hover:text-[var(--text-error)]"); + const refreshSendButton = () => { + sendButton.innerHTML = const_1.Constants.SEND_SVG; + sendButton.classList.add("text-[var(--text-accent)]"); + sendButton.classList.remove("hover:text-[var(--text-error)]"); + }; if (currentConversation.length === 0) { textAreaDiv.innerHTML = ""; } @@ -48578,16 +50047,20 @@ ${sortedPaths.map((el) => `- ${el}`).join("\n")} const commandResult = yield Commands_1.default.getInstance().executeCommand(curQuery, textAreaDiv); if (commandResult.commandExecuted) { _a.generatingResults = false; + refreshSendButton(); return; } const directivePrompt = yield Directives_1.default.getInstance().executeDirective(curQuery); if (directivePrompt.executed && !directivePrompt.prompt) { _a.generatingResults = false; + refreshSendButton(); return; } curQuery = directivePrompt.executed ? directivePrompt.prompt : commandResult.prompt || curQuery; - if (!curQuery && !query) + if (!curQuery && !query) { + refreshSendButton(); return; + } if (query && query.files) { const pathsDiv = _a.buildFilesDetailsEl(query.files); textAreaDiv.append(pathsDiv.answerDiv); @@ -48619,6 +50092,7 @@ ${sortedPaths.map((el) => `- ${el}`).join("\n")} console.error(e); answerText.innerText = "Sorry, something went wrong with that request."; _a.generatingResults = false; + refreshSendButton(); return; } if (result) { @@ -48694,14 +50168,16 @@ ${sortedPaths.map((el) => `- ${el}`).join("\n")} } else { answerText.innerHTML = marked_1.marked.parse("I'm sorry, it seems I don't have any relevant context to that question. Please try again \u{1F603}"); } + refreshSendButton(); _a.generatingResults = false; }); QGPTView6.createScrollButton = () => { - const scrollButton = (0, globals_1.createDiv)(document.body); + const scrollButton = (0, globals_1.createDiv)(document.getElementById("gpt-tab")); scrollButton.classList.add("bottom-32", "right-2", "absolute", "hover:text-[var(--text-accent)]", "text-[var(--text-muted)]", "h-8", "hidden", "cursor-pointer"); scrollButton.innerHTML = const_1.Constants.ARROW_DOWN_CIRCLE_SVG; scrollButton.onclick = () => { _a.textAreaDiv.scrollTop = _a.textAreaDiv.scrollHeight; + (0, _1.track)(CopilotAnalytics_enum_1.CopilotAnalytics.SCROLL_TO_BOTTOM_BUTTON); }; _a.textAreaDiv.onscroll = () => { if (_a.textAreaDiv.scrollTop + _a.textAreaDiv.offsetHeight >= _a.textAreaDiv.scrollHeight - 1) { @@ -49773,6 +51249,7 @@ function ConversationFromJSONTyped(json, ignoreDiscriminator) { "messages": FlattenedConversationMessagesFromJSON(json["messages"]), "model": !exists(json, "model") ? void 0 : ReferencedModelFromJSON(json["model"]), "assets": !exists(json, "assets") ? void 0 : FlattenedAssetsFromJSON(json["assets"]), + "websites": !exists(json, "websites") ? void 0 : FlattenedWebsitesFromJSON(json["websites"]), "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), "type": ConversationTypeEnumFromJSON(json["type"]), "grounding": !exists(json, "grounding") ? void 0 : ConversationGroundingFromJSON(json["grounding"]), @@ -50721,6 +52198,7 @@ function FlattenedConversationFromJSONTyped(json, ignoreDiscriminator) { "messages": FlattenedConversationMessagesFromJSON(json["messages"]), "model": !exists(json, "model") ? void 0 : ReferencedModelFromJSON(json["model"]), "assets": !exists(json, "assets") ? void 0 : FlattenedAssetsFromJSON(json["assets"]), + "websites": !exists(json, "websites") ? void 0 : FlattenedWebsitesFromJSON(json["websites"]), "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), "type": ConversationTypeEnumFromJSON(json["type"]), "grounding": !exists(json, "grounding") ? void 0 : ConversationGroundingFromJSON(json["grounding"]), @@ -50747,6 +52225,7 @@ function FlattenedConversationToJSON(value) { "messages": FlattenedConversationMessagesToJSON(value.messages), "model": ReferencedModelToJSON(value.model), "assets": FlattenedAssetsToJSON(value.assets), + "websites": FlattenedWebsitesToJSON(value.websites), "anchors": FlattenedAnchorsToJSON(value.anchors), "type": ConversationTypeEnumToJSON(value.type), "grounding": ConversationGroundingToJSON(value.grounding), @@ -51548,6 +53027,7 @@ function FlattenedWebsiteFromJSONTyped(json, ignoreDiscriminator) { "mechanisms": !exists(json, "mechanisms") ? void 0 : mapValues(json["mechanisms"], MechanismEnumFromJSON), "interactions": !exists(json, "interactions") ? void 0 : json["interactions"], "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]), + "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]), "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) }; } @@ -51570,15 +53050,16 @@ function FlattenedWebsiteToJSON(value) { "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues(value.mechanisms, MechanismEnumToJSON), "interactions": value.interactions, "persons": FlattenedPersonsToJSON(value.persons), + "conversations": FlattenedConversationsToJSON(value.conversations), "score": ScoreToJSON(value.score) }; } // ../generated_runtime/sdk/http/typescript/connector/models/FlattenedWebsites.ts function FlattenedWebsitesFromJSON(json) { - return FlattenedWebsitesFromJSONTyped3(json, false); + return FlattenedWebsitesFromJSONTyped5(json, false); } -function FlattenedWebsitesFromJSONTyped3(json, ignoreDiscriminator) { +function FlattenedWebsitesFromJSONTyped5(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } @@ -53671,7 +55152,8 @@ function SeededConnectorTrackingFromJSONTyped3(json, ignoreDiscriminator) { "session": !exists(json, "session") ? void 0 : SeededTrackedSessionEventFromJSON(json["session"]), "assets": !exists(json, "assets") ? void 0 : SeededTrackedAssetsEventFromJSON(json["assets"]), "ml": !exists(json, "ml") ? void 0 : SeededTrackedMachineLearningEventFromJSON(json["ml"]), - "adoption": !exists(json, "adoption") ? void 0 : SeededTrackedAdoptionEventFromJSON(json["adoption"]) + "adoption": !exists(json, "adoption") ? void 0 : SeededTrackedAdoptionEventFromJSON(json["adoption"]), + "conversation": !exists(json, "conversation") ? void 0 : SeededTrackedConversationEventFromJSON(json["conversation"]) }; } function SeededConnectorTrackingToJSON(value) { @@ -53690,7 +55172,8 @@ function SeededConnectorTrackingToJSON(value) { "session": SeededTrackedSessionEventToJSON(value.session), "assets": SeededTrackedAssetsEventToJSON(value.assets), "ml": SeededTrackedMachineLearningEventToJSON(value.ml), - "adoption": SeededTrackedAdoptionEventToJSON(value.adoption) + "adoption": SeededTrackedAdoptionEventToJSON(value.adoption), + "conversation": SeededTrackedConversationEventToJSON(value.conversation) }; } @@ -53981,6 +55464,36 @@ function SeededTrackedAssetsEventMetadataToJSON(value) { }; } +// ../generated_runtime/sdk/http/typescript/connector/models/SeededTrackedConversationEvent.ts +function SeededTrackedConversationEventFromJSON(json) { + return SeededTrackedConversationEventFromJSONTyped2(json, false); +} +function SeededTrackedConversationEventFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "identifierDescriptionPair": TrackedConversationEventIdentifierDescriptionPairsFromJSON(json["identifier_description_pair"]), + "conversation": ReferencedConversationFromJSON(json["conversation"]), + "metadata": !exists(json, "metadata") ? void 0 : TrackedConversationEventMetadataFromJSON(json["metadata"]) + }; +} +function SeededTrackedConversationEventToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "identifier_description_pair": TrackedConversationEventIdentifierDescriptionPairsToJSON(value.identifierDescriptionPair), + "conversation": ReferencedConversationToJSON(value.conversation), + "metadata": TrackedConversationEventMetadataToJSON(value.metadata) + }; +} + // ../generated_runtime/sdk/http/typescript/connector/models/SeededTrackedFormatEvent.ts function SeededTrackedFormatEventFromJSON(json) { return SeededTrackedFormatEventFromJSONTyped2(json, false); @@ -55508,6 +57021,98 @@ function TrackedAssetsEventSearchMetadataResultsToJSON(value) { }; } +// ../generated_runtime/sdk/http/typescript/connector/models/TrackedConversationEventIdentifierDescriptionPairs.ts +function TrackedConversationEventIdentifierDescriptionPairsFromJSON(json) { + return TrackedConversationEventIdentifierDescriptionPairsFromJSONTyped2(json, false); +} +function TrackedConversationEventIdentifierDescriptionPairsFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "conversationCreated": !exists(json, "conversation_created") ? void 0 : json["conversation_created"], + "conversationReferenced": !exists(json, "conversation_referenced") ? void 0 : json["conversation_referenced"], + "conversationDeleted": !exists(json, "conversation_deleted") ? void 0 : json["conversation_deleted"], + "conversationSummaryAnnotationGeneratedByTheUser": !exists(json, "conversation_summary_annotation_generated_by_the_user") ? void 0 : json["conversation_summary_annotation_generated_by_the_user"], + "conversationNameUpdatedByTheSystem": !exists(json, "conversation_name_updated_by_the_system") ? void 0 : json["conversation_name_updated_by_the_system"], + "conversationNameUpdatedByTheUser": !exists(json, "conversation_name_updated_by_the_user") ? void 0 : json["conversation_name_updated_by_the_user"], + "conversationSummaryAnnotationGeneratedByTheSystem": !exists(json, "conversation_summary_annotation_generated_by_the_system") ? void 0 : json["conversation_summary_annotation_generated_by_the_system"] + }; +} +function TrackedConversationEventIdentifierDescriptionPairsToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": 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 + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/TrackedConversationEventMetadata.ts +function TrackedConversationEventMetadataFromJSON(json) { + return TrackedConversationEventMetadataFromJSONTyped2(json, false); +} +function TrackedConversationEventMetadataFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "rename": !exists(json, "rename") ? void 0 : TrackedConversationEventRenameMetadataFromJSON(json["rename"]) + }; +} +function TrackedConversationEventMetadataToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "rename": TrackedConversationEventRenameMetadataToJSON(value.rename) + }; +} + +// ../generated_runtime/sdk/http/typescript/connector/models/TrackedConversationEventRenameMetadata.ts +function TrackedConversationEventRenameMetadataFromJSON(json) { + return TrackedConversationEventRenameMetadataFromJSONTyped2(json, false); +} +function TrackedConversationEventRenameMetadataFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "previous": json["previous"], + "current": json["current"] + }; +} +function TrackedConversationEventRenameMetadataToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "previous": value.previous, + "current": value.current + }; +} + // ../generated_runtime/sdk/http/typescript/connector/models/TrackedFormatEventIdentifierDescriptionPairs.ts function TrackedFormatEventIdentifierDescriptionPairsFromJSON(json) { return TrackedFormatEventIdentifierDescriptionPairsFromJSONTyped2(json, false); @@ -55756,6 +57361,7 @@ function WebsiteFromJSONTyped(json, ignoreDiscriminator) { "mechanisms": !exists(json, "mechanisms") ? void 0 : mapValues(json["mechanisms"], MechanismEnumFromJSON), "interactions": !exists(json, "interactions") ? void 0 : json["interactions"], "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]), + "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]), "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) }; } @@ -56201,7 +57807,7 @@ function querystring2(params, prefix = "") { return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; }).filter((part) => part.length > 0).join("&"); } -function mapValues203(data, fn) { +function mapValues207(data, fn) { return Object.keys(data).reduce( (acc, key) => ({ ...acc, [key]: fn(data[key]) }), {} @@ -57503,6 +59109,7 @@ function ConversationFromJSONTyped3(json, ignoreDiscriminator) { "messages": FlattenedConversationMessagesFromJSON2(json["messages"]), "model": !exists2(json, "model") ? void 0 : ReferencedModelFromJSON2(json["model"]), "assets": !exists2(json, "assets") ? void 0 : FlattenedAssetsFromJSON2(json["assets"]), + "websites": !exists2(json, "websites") ? void 0 : FlattenedWebsitesFromJSON2(json["websites"]), "anchors": !exists2(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON2(json["anchors"]), "type": ConversationTypeEnumFromJSON2(json["type"]), "grounding": !exists2(json, "grounding") ? void 0 : ConversationGroundingFromJSON2(json["grounding"]), @@ -57529,6 +59136,7 @@ function ConversationToJSON2(value) { "messages": FlattenedConversationMessagesToJSON2(value.messages), "model": ReferencedModelToJSON2(value.model), "assets": FlattenedAssetsToJSON2(value.assets), + "websites": FlattenedWebsitesToJSON2(value.websites), "anchors": FlattenedAnchorsToJSON2(value.anchors), "type": ConversationTypeEnumToJSON2(value.type), "grounding": ConversationGroundingToJSON2(value.grounding), @@ -57931,9 +59539,9 @@ function EdgesToJSON2(value) { // ../generated_runtime/sdk/http/typescript/core/models/EmbeddedModelSchema.ts function EmbeddedModelSchemaFromJSON2(json) { - return EmbeddedModelSchemaFromJSONTyped261(json, false); + return EmbeddedModelSchemaFromJSONTyped265(json, false); } -function EmbeddedModelSchemaFromJSONTyped261(json, ignoreDiscriminator) { +function EmbeddedModelSchemaFromJSONTyped265(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } @@ -58783,6 +60391,7 @@ function FlattenedConversationFromJSONTyped3(json, ignoreDiscriminator) { "messages": FlattenedConversationMessagesFromJSON2(json["messages"]), "model": !exists2(json, "model") ? void 0 : ReferencedModelFromJSON2(json["model"]), "assets": !exists2(json, "assets") ? void 0 : FlattenedAssetsFromJSON2(json["assets"]), + "websites": !exists2(json, "websites") ? void 0 : FlattenedWebsitesFromJSON2(json["websites"]), "anchors": !exists2(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON2(json["anchors"]), "type": ConversationTypeEnumFromJSON2(json["type"]), "grounding": !exists2(json, "grounding") ? void 0 : ConversationGroundingFromJSON2(json["grounding"]), @@ -58809,6 +60418,7 @@ function FlattenedConversationToJSON2(value) { "messages": FlattenedConversationMessagesToJSON2(value.messages), "model": ReferencedModelToJSON2(value.model), "assets": FlattenedAssetsToJSON2(value.assets), + "websites": FlattenedWebsitesToJSON2(value.websites), "anchors": FlattenedAnchorsToJSON2(value.anchors), "type": ConversationTypeEnumToJSON2(value.type), "grounding": ConversationGroundingToJSON2(value.grounding), @@ -58894,9 +60504,9 @@ function FlattenedConversationMessagesToJSON2(value) { // ../generated_runtime/sdk/http/typescript/core/models/FlattenedConversations.ts function FlattenedConversationsFromJSON2(json) { - return FlattenedConversationsFromJSONTyped8(json, false); + return FlattenedConversationsFromJSONTyped10(json, false); } -function FlattenedConversationsFromJSONTyped8(json, ignoreDiscriminator) { +function FlattenedConversationsFromJSONTyped10(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } @@ -59226,12 +60836,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 : mapValues203(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), "interactions": !exists2(json, "interactions") ? void 0 : json["interactions"], - "access": !exists2(json, "access") ? void 0 : mapValues203(json["access"], PersonAccessFromJSON2), + "access": !exists2(json, "access") ? void 0 : mapValues207(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 : mapValues203(json["models"], PersonModelFromJSON2), + "models": !exists2(json, "models") ? void 0 : mapValues207(json["models"], PersonModelFromJSON2), "annotations": !exists2(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON2(json["annotations"]), "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]) }; @@ -59251,12 +60861,12 @@ function FlattenedPersonToJSON2(value) { "deleted": GroupedTimestampToJSON2(value.deleted), "type": PersonTypeToJSON2(value.type), "assets": FlattenedAssetsToJSON2(value.assets), - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues203(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), "interactions": value.interactions, - "access": value.access === void 0 ? void 0 : mapValues203(value.access, PersonAccessToJSON2), + "access": value.access === void 0 ? void 0 : mapValues207(value.access, PersonAccessToJSON2), "tags": FlattenedTagsToJSON2(value.tags), "websites": FlattenedWebsitesToJSON2(value.websites), - "models": value.models === void 0 ? void 0 : mapValues203(value.models, PersonModelToJSON2), + "models": value.models === void 0 ? void 0 : mapValues207(value.models, PersonModelToJSON2), "annotations": FlattenedAnnotationsToJSON2(value.annotations), "score": ScoreToJSON2(value.score) }; @@ -59488,7 +61098,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 : mapValues203(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), "assets": !exists2(json, "assets") ? void 0 : FlattenedAssetsFromJSON2(json["assets"]), "created": GroupedTimestampFromJSON2(json["created"]), "updated": GroupedTimestampFromJSON2(json["updated"]), @@ -59511,7 +61121,7 @@ function FlattenedTagToJSON2(value) { "schema": EmbeddedModelSchemaToJSON2(value.schema), "id": value.id, "text": value.text, - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues203(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), "assets": FlattenedAssetsToJSON2(value.assets), "created": GroupedTimestampToJSON2(value.created), "updated": GroupedTimestampToJSON2(value.updated), @@ -59607,9 +61217,10 @@ 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 : mapValues203(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(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"]), "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]) }; } @@ -59629,18 +61240,19 @@ function FlattenedWebsiteToJSON2(value) { "created": GroupedTimestampToJSON2(value.created), "updated": GroupedTimestampToJSON2(value.updated), "deleted": GroupedTimestampToJSON2(value.deleted), - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues203(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), "interactions": value.interactions, "persons": FlattenedPersonsToJSON2(value.persons), + "conversations": FlattenedConversationsToJSON2(value.conversations), "score": ScoreToJSON2(value.score) }; } // ../generated_runtime/sdk/http/typescript/core/models/FlattenedWebsites.ts function FlattenedWebsitesFromJSON2(json) { - return FlattenedWebsitesFromJSONTyped7(json, false); + return FlattenedWebsitesFromJSONTyped11(json, false); } -function FlattenedWebsitesFromJSONTyped7(json, ignoreDiscriminator) { +function FlattenedWebsitesFromJSONTyped11(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } @@ -60745,12 +62357,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 : mapValues203(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), "interactions": !exists2(json, "interactions") ? void 0 : json["interactions"], - "access": !exists2(json, "access") ? void 0 : mapValues203(json["access"], PersonAccessFromJSON2), + "access": !exists2(json, "access") ? void 0 : mapValues207(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 : mapValues203(json["models"], PersonModelFromJSON2), + "models": !exists2(json, "models") ? void 0 : mapValues207(json["models"], PersonModelFromJSON2), "annotations": !exists2(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON2(json["annotations"]), "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]) }; @@ -60770,12 +62382,12 @@ function PersonToJSON2(value) { "deleted": GroupedTimestampToJSON2(value.deleted), "type": PersonTypeToJSON2(value.type), "assets": FlattenedAssetsToJSON2(value.assets), - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues203(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), "interactions": value.interactions, - "access": value.access === void 0 ? void 0 : mapValues203(value.access, PersonAccessToJSON2), + "access": value.access === void 0 ? void 0 : mapValues207(value.access, PersonAccessToJSON2), "tags": FlattenedTagsToJSON2(value.tags), "websites": FlattenedWebsitesToJSON2(value.websites), - "models": value.models === void 0 ? void 0 : mapValues203(value.models, PersonModelToJSON2), + "models": value.models === void 0 ? void 0 : mapValues207(value.models, PersonModelToJSON2), "annotations": FlattenedAnnotationsToJSON2(value.annotations), "score": ScoreToJSON2(value.score) }; @@ -61010,6 +62622,34 @@ function PseudoAssetsFromJSONTyped(json, ignoreDiscriminator) { }; } +// ../generated_runtime/sdk/http/typescript/core/models/QGPTAgentRelatedRoutes.ts +function QGPTAgentRelatedRoutesFromJSON(json) { + return QGPTAgentRelatedRoutesFromJSONTyped(json, false); +} +function QGPTAgentRelatedRoutesFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "people": !exists2(json, "people") ? void 0 : json["people"] + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTAgentRoutes.ts +function QGPTAgentRoutesFromJSON(json) { + return QGPTAgentRoutesFromJSONTyped(json, false); +} +function QGPTAgentRoutesFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "related": !exists2(json, "related") ? void 0 : QGPTAgentRelatedRoutesFromJSON(json["related"]) + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/QGPTConversation.ts function QGPTConversationToJSON(value) { if (value === void 0) { @@ -61277,7 +62917,8 @@ function QGPTStreamInputToJSON(value) { "question": QGPTQuestionInputToJSON(value.question), "request": value.request, "conversation": value.conversation, - "stop": value.stop + "stop": value.stop, + "agent": value.agent }; } @@ -61296,7 +62937,8 @@ function QGPTStreamOutputFromJSONTyped(json, ignoreDiscriminator) { "status": !exists2(json, "status") ? void 0 : QGPTStreamEnumFromJSON(json["status"]), "conversation": json["conversation"], "statusCode": !exists2(json, "statusCode") ? void 0 : json["statusCode"], - "errorMessage": !exists2(json, "errorMessage") ? void 0 : json["errorMessage"] + "errorMessage": !exists2(json, "errorMessage") ? void 0 : json["errorMessage"], + "agentRoutes": !exists2(json, "agentRoutes") ? void 0 : QGPTAgentRoutesFromJSON(json["agentRoutes"]) }; } @@ -61468,9 +63110,9 @@ function ReferencedAssetToJSON2(value) { // ../generated_runtime/sdk/http/typescript/core/models/ReferencedConversation.ts function ReferencedConversationFromJSON2(json) { - return ReferencedConversationFromJSONTyped13(json, false); + return ReferencedConversationFromJSONTyped14(json, false); } -function ReferencedConversationFromJSONTyped13(json, ignoreDiscriminator) { +function ReferencedConversationFromJSONTyped14(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } @@ -62043,7 +63685,8 @@ function SeededActivityToJSON(value) { "asset": ReferencedAssetToJSON2(value.asset), "user": ReferencedUserToJSON(value.user), "format": ReferencedFormatToJSON2(value.format), - "mechanism": MechanismEnumToJSON2(value.mechanism) + "mechanism": MechanismEnumToJSON2(value.mechanism), + "conversation": ReferencedConversationToJSON2(value.conversation) }; } @@ -62148,7 +63791,8 @@ function SeededAssetFromJSONTyped2(json, ignoreDiscriminator) { "format": SeededFormatFromJSON2(json["format"]), "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"] + "pseudo": !exists2(json, "pseudo") ? void 0 : json["pseudo"], + "enrichment": !exists2(json, "enrichment") ? void 0 : SeededAssetEnrichmentFromJSON(json["enrichment"]) }; } function SeededAssetToJSON(value) { @@ -62165,7 +63809,40 @@ function SeededAssetToJSON(value) { "format": SeededFormatToJSON2(value.format), "discovered": value.discovered, "available": AvailableFormatsToJSON(value.available), - "pseudo": value.pseudo + "pseudo": value.pseudo, + "enrichment": SeededAssetEnrichmentToJSON(value.enrichment) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/SeededAssetEnrichment.ts +function SeededAssetEnrichmentFromJSON(json) { + return SeededAssetEnrichmentFromJSONTyped2(json, false); +} +function SeededAssetEnrichmentFromJSONTyped2(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "tags": !exists2(json, "tags") ? void 0 : json["tags"], + "websites": !exists2(json, "websites") ? void 0 : json["websites"], + "persons": !exists2(json, "persons") ? void 0 : json["persons"], + "hints": !exists2(json, "hints") ? void 0 : json["hints"] + }; +} +function SeededAssetEnrichmentToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "tags": value.tags, + "websites": value.websites, + "persons": value.persons, + "hints": value.hints }; } @@ -62384,7 +64061,8 @@ function SeededConnectorTrackingFromJSONTyped7(json, ignoreDiscriminator) { "session": !exists2(json, "session") ? void 0 : SeededTrackedSessionEventFromJSON2(json["session"]), "assets": !exists2(json, "assets") ? void 0 : SeededTrackedAssetsEventFromJSON2(json["assets"]), "ml": !exists2(json, "ml") ? void 0 : SeededTrackedMachineLearningEventFromJSON2(json["ml"]), - "adoption": !exists2(json, "adoption") ? void 0 : SeededTrackedAdoptionEventFromJSON2(json["adoption"]) + "adoption": !exists2(json, "adoption") ? void 0 : SeededTrackedAdoptionEventFromJSON2(json["adoption"]), + "conversation": !exists2(json, "conversation") ? void 0 : SeededTrackedConversationEventFromJSON2(json["conversation"]) }; } function SeededConnectorTrackingToJSON2(value) { @@ -62403,7 +64081,8 @@ function SeededConnectorTrackingToJSON2(value) { "session": SeededTrackedSessionEventToJSON2(value.session), "assets": SeededTrackedAssetsEventToJSON2(value.assets), "ml": SeededTrackedMachineLearningEventToJSON2(value.ml), - "adoption": SeededTrackedAdoptionEventToJSON2(value.adoption) + "adoption": SeededTrackedAdoptionEventToJSON2(value.adoption), + "conversation": SeededTrackedConversationEventToJSON2(value.conversation) }; } @@ -62424,6 +64103,7 @@ function SeededConversationToJSON(value) { "messages": value.messages === void 0 ? void 0 : value.messages.map(SeededConversationMessageToJSON), "model": ReferencedModelToJSON2(value.model), "assets": FlattenedAssetsToJSON2(value.assets), + "websites": FlattenedWebsitesToJSON2(value.websites), "anchors": value.anchors === void 0 ? void 0 : value.anchors.map(SeededAnchorToJSON2), "type": ConversationTypeEnumToJSON2(value.type) }; @@ -63045,6 +64725,36 @@ function SeededTrackedAssetsEventMetadataToJSON2(value) { }; } +// ../generated_runtime/sdk/http/typescript/core/models/SeededTrackedConversationEvent.ts +function SeededTrackedConversationEventFromJSON2(json) { + return SeededTrackedConversationEventFromJSONTyped4(json, false); +} +function SeededTrackedConversationEventFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "identifierDescriptionPair": TrackedConversationEventIdentifierDescriptionPairsFromJSON2(json["identifier_description_pair"]), + "conversation": ReferencedConversationFromJSON2(json["conversation"]), + "metadata": !exists2(json, "metadata") ? void 0 : TrackedConversationEventMetadataFromJSON2(json["metadata"]) + }; +} +function SeededTrackedConversationEventToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "identifier_description_pair": TrackedConversationEventIdentifierDescriptionPairsToJSON2(value.identifierDescriptionPair), + "conversation": ReferencedConversationToJSON2(value.conversation), + "metadata": TrackedConversationEventMetadataToJSON2(value.metadata) + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/SeededTrackedFormatEvent.ts function SeededTrackedFormatEventFromJSON2(json) { return SeededTrackedFormatEventFromJSONTyped4(json, false); @@ -64239,7 +65949,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 : mapValues203(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(json["mechanisms"], MechanismEnumFromJSON2), "assets": !exists2(json, "assets") ? void 0 : FlattenedAssetsFromJSON2(json["assets"]), "created": GroupedTimestampFromJSON2(json["created"]), "updated": GroupedTimestampFromJSON2(json["updated"]), @@ -64262,7 +65972,7 @@ function TagToJSON2(value) { "schema": EmbeddedModelSchemaToJSON2(value.schema), "id": value.id, "text": value.text, - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues203(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), "assets": FlattenedAssetsToJSON2(value.assets), "created": GroupedTimestampToJSON2(value.created), "updated": GroupedTimestampToJSON2(value.updated), @@ -64766,6 +66476,98 @@ function TrackedAssetsEventSearchMetadataResultsToJSON2(value) { }; } +// ../generated_runtime/sdk/http/typescript/core/models/TrackedConversationEventIdentifierDescriptionPairs.ts +function TrackedConversationEventIdentifierDescriptionPairsFromJSON2(json) { + return TrackedConversationEventIdentifierDescriptionPairsFromJSONTyped4(json, false); +} +function TrackedConversationEventIdentifierDescriptionPairsFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "conversationCreated": !exists2(json, "conversation_created") ? void 0 : json["conversation_created"], + "conversationReferenced": !exists2(json, "conversation_referenced") ? void 0 : json["conversation_referenced"], + "conversationDeleted": !exists2(json, "conversation_deleted") ? void 0 : json["conversation_deleted"], + "conversationSummaryAnnotationGeneratedByTheUser": !exists2(json, "conversation_summary_annotation_generated_by_the_user") ? void 0 : json["conversation_summary_annotation_generated_by_the_user"], + "conversationNameUpdatedByTheSystem": !exists2(json, "conversation_name_updated_by_the_system") ? void 0 : json["conversation_name_updated_by_the_system"], + "conversationNameUpdatedByTheUser": !exists2(json, "conversation_name_updated_by_the_user") ? void 0 : json["conversation_name_updated_by_the_user"], + "conversationSummaryAnnotationGeneratedByTheSystem": !exists2(json, "conversation_summary_annotation_generated_by_the_system") ? void 0 : json["conversation_summary_annotation_generated_by_the_system"] + }; +} +function TrackedConversationEventIdentifierDescriptionPairsToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(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 + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/TrackedConversationEventMetadata.ts +function TrackedConversationEventMetadataFromJSON2(json) { + return TrackedConversationEventMetadataFromJSONTyped4(json, false); +} +function TrackedConversationEventMetadataFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "rename": !exists2(json, "rename") ? void 0 : TrackedConversationEventRenameMetadataFromJSON2(json["rename"]) + }; +} +function TrackedConversationEventMetadataToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "rename": TrackedConversationEventRenameMetadataToJSON2(value.rename) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/TrackedConversationEventRenameMetadata.ts +function TrackedConversationEventRenameMetadataFromJSON2(json) { + return TrackedConversationEventRenameMetadataFromJSONTyped4(json, false); +} +function TrackedConversationEventRenameMetadataFromJSONTyped4(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists2(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON2(json["schema"]), + "previous": json["previous"], + "current": json["current"] + }; +} +function TrackedConversationEventRenameMetadataToJSON2(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON2(value.schema), + "previous": value.previous, + "current": value.current + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/TrackedFormat.ts function TrackedFormatFromJSON(json) { return TrackedFormatFromJSONTyped(json, false); @@ -65081,9 +66883,10 @@ 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 : mapValues203(json["mechanisms"], MechanismEnumFromJSON2), + "mechanisms": !exists2(json, "mechanisms") ? void 0 : mapValues207(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"]), "score": !exists2(json, "score") ? void 0 : ScoreFromJSON2(json["score"]) }; } @@ -65103,9 +66906,10 @@ function WebsiteToJSON2(value) { "created": GroupedTimestampToJSON2(value.created), "updated": GroupedTimestampToJSON2(value.updated), "deleted": GroupedTimestampToJSON2(value.deleted), - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues203(value.mechanisms, MechanismEnumToJSON2), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues207(value.mechanisms, MechanismEnumToJSON2), "interactions": value.interactions, "persons": FlattenedPersonsToJSON2(value.persons), + "conversations": FlattenedConversationsToJSON2(value.conversations), "score": ScoreToJSON2(value.score) }; } @@ -66233,6 +68037,35 @@ var AssetApi = class extends BaseAPI2 { 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 RequiredError2("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 JSONApiResponse2(response, (jsonValue) => ActivitiesFromJSON2(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] @@ -66793,15 +68626,43 @@ var ConversationApi = class extends BaseAPI2 { 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 RequiredError2("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationAssociateWebsite."); + } + if (requestParameters.website === null || requestParameters.website === void 0) { + throw new RequiredError2("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 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 RequiredError2("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDeleteAnchor."); + throw new RequiredError2("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDisassociateAnchor."); } if (requestParameters.anchor === null || requestParameters.anchor === void 0) { - throw new RequiredError2("anchor", "Required parameter requestParameters.anchor was null or undefined when calling conversationDeleteAnchor."); + throw new RequiredError2("anchor", "Required parameter requestParameters.anchor was null or undefined when calling conversationDisassociateAnchor."); } const queryParameters = {}; const headerParameters = {}; @@ -66814,22 +68675,22 @@ var ConversationApi = class extends BaseAPI2 { return new 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 RequiredError2("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDeleteAsset."); + throw new RequiredError2("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDisassociateAsset."); } if (requestParameters.asset === null || requestParameters.asset === void 0) { - throw new RequiredError2("asset", "Required parameter requestParameters.asset was null or undefined when calling conversationDeleteAsset."); + throw new RequiredError2("asset", "Required parameter requestParameters.asset was null or undefined when calling conversationDisassociateAsset."); } const queryParameters = {}; const headerParameters = {}; @@ -66842,11 +68703,39 @@ var ConversationApi = class extends BaseAPI2 { return new 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 RequiredError2("conversation", "Required parameter requestParameters.conversation was null or undefined when calling conversationDisassociateWebsite."); + } + if (requestParameters.website === null || requestParameters.website === void 0) { + throw new RequiredError2("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 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. @@ -68758,7 +70647,7 @@ var WellKnownApi = class extends BaseAPI2 { }; // package.json -var version = "1.9.0"; +var version = "1.10.0"; // src/connection/notification_handler.ts var import_obsidian = require("obsidian"); diff --git a/manifest.json b/manifest.json index 711c920..17892a9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "pieces-for-developers", "name": "Pieces for Developers", - "version": "1.8.1", + "version": "1.10.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 46e6f13..265a9ae 100644 --- a/styles.css +++ b/styles.css @@ -954,6 +954,10 @@ body.pieces { width: 50%; } +.w-1\/3 { + width: 33.333333%; +} + .w-11\/12 { width: 91.666667%; } @@ -1324,14 +1328,6 @@ body.pieces { padding: 0.5rem !important; } -.p-0 { - padding: 0px; -} - -.p-0\.5 { - padding: 0.125rem; -} - .p-1 { padding: 0.25rem; }