diff --git a/main.js b/main.js index 9611dac..6cd482b 100644 --- a/main.js +++ b/main.js @@ -5275,7 +5275,13 @@ var _BaseAPI = class { if (response && (response.status >= 200 && response.status < 300)) { return response; } - throw new ResponseError(response, "Response returned an error code"); + let text; + try { + text = await response.text(); + } catch (e3) { + throw new ResponseError(response, `${url} returned an error code: [${response.status}]`); + } + throw new ResponseError(response, `${url} returned an error code: [${response.status}] ${text}`); } async createFetchParams(context, initOverrides) { let url = this.configuration.basePath + context.path; @@ -6527,6 +6533,44 @@ function ExternalMLProviderEnumToJSON(value) { return value; } +// ../generated_runtime/sdk/http/typescript/core/models/ModelCapabilities.ts +function ModelCapabilitiesFromJSON(json) { + return ModelCapabilitiesFromJSONTyped(json, false); +} +function ModelCapabilitiesFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "temporal": !exists(json, "temporal") ? void 0 : json["temporal"], + "images": !exists(json, "images") ? void 0 : json["images"], + "videos": !exists(json, "videos") ? void 0 : json["videos"], + "documents": !exists(json, "documents") ? void 0 : json["documents"], + "codebases": !exists(json, "codebases") ? void 0 : json["codebases"], + "assets": !exists(json, "assets") ? void 0 : json["assets"], + "websites": !exists(json, "websites") ? void 0 : json["websites"] + }; +} +function ModelCapabilitiesToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "temporal": value.temporal, + "images": value.images, + "videos": value.videos, + "documents": value.documents, + "codebases": value.codebases, + "assets": value.assets, + "websites": value.websites + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/ModelFoundationEnum.ts function ModelFoundationEnumFromJSON(json) { return ModelFoundationEnumFromJSONTyped(json, false); @@ -6620,7 +6664,8 @@ function ModelFromJSONTyped(json, ignoreDiscriminator) { "cpu": !exists(json, "cpu") ? void 0 : json["cpu"], "downloading": !exists(json, "downloading") ? void 0 : json["downloading"], "maxTokens": !exists(json, "maxTokens") ? void 0 : ModelMaxTokensFromJSON(json["maxTokens"]), - "custom": !exists(json, "custom") ? void 0 : json["custom"] + "custom": !exists(json, "custom") ? void 0 : json["custom"], + "capabilities": !exists(json, "capabilities") ? void 0 : ModelCapabilitiesFromJSON(json["capabilities"]) }; } function ModelToJSON(value) { @@ -6652,7 +6697,8 @@ function ModelToJSON(value) { "cpu": value.cpu, "downloading": value.downloading, "maxTokens": ModelMaxTokensToJSON(value.maxTokens), - "custom": value.custom + "custom": value.custom, + "capabilities": ModelCapabilitiesToJSON(value.capabilities) }; } @@ -7453,73 +7499,6 @@ function ConversationMessageSentimentEnumToJSON(value) { return value; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationMessageRoleEnum.ts -function QGPTConversationMessageRoleEnumFromJSON(json) { - return QGPTConversationMessageRoleEnumFromJSONTyped(json, false); -} -function QGPTConversationMessageRoleEnumFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function QGPTConversationMessageRoleEnumToJSON(value) { - return value; -} - -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedConversations.ts -function FlattenedConversationsFromJSON(json) { - return FlattenedConversationsFromJSONTyped(json, false); -} -function FlattenedConversationsFromJSONTyped(json, ignoreDiscriminator) { - if (json === void 0 || json === null) { - return json; - } - return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ReferencedConversationFromJSON), - "indices": !exists(json, "indices") ? void 0 : json["indices"], - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) - }; -} -function FlattenedConversationsToJSON(value) { - if (value === void 0) { - return void 0; - } - if (value === null) { - return null; - } - return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ReferencedConversationToJSON), - "indices": value.indices, - "score": ScoreToJSON(value.score) - }; -} - -// ../generated_runtime/sdk/http/typescript/core/models/Applications.ts -function ApplicationsFromJSON(json) { - return ApplicationsFromJSONTyped(json, false); -} -function ApplicationsFromJSONTyped(json, ignoreDiscriminator) { - if (json === void 0 || json === null) { - return json; - } - return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ApplicationFromJSON) - }; -} -function ApplicationsToJSON(value) { - if (value === void 0) { - return void 0; - } - if (value === null) { - return null; - } - return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ApplicationToJSON) - }; -} - // ../generated_runtime/sdk/http/typescript/core/models/FlattenedAnchors.ts function FlattenedAnchorsFromJSON(json) { return FlattenedAnchorsFromJSONTyped(json, false); @@ -7697,32 +7676,20 @@ function FlattenedTagsToJSON(value) { }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWebsite.ts -function FlattenedWebsiteFromJSON(json) { - return FlattenedWebsiteFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/Applications.ts +function ApplicationsFromJSON(json) { + return ApplicationsFromJSONTyped(json, false); } -function FlattenedWebsiteFromJSONTyped(json, ignoreDiscriminator) { +function ApplicationsFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"], - "assets": !exists(json, "assets") ? void 0 : FlattenedAssetsFromJSON(json["assets"]), - "name": json["name"], - "url": json["url"], - "created": GroupedTimestampFromJSON(json["created"]), - "updated": GroupedTimestampFromJSON(json["updated"]), - "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]), - "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"]), - "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]) + "iterable": json["iterable"].map(ApplicationFromJSON) }; } -function FlattenedWebsiteToJSON(value) { +function ApplicationsToJSON(value) { if (value === void 0) { return void 0; } @@ -7731,37 +7698,27 @@ function FlattenedWebsiteToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "id": value.id, - "assets": FlattenedAssetsToJSON(value.assets), - "name": value.name, - "url": value.url, - "created": GroupedTimestampToJSON(value.created), - "updated": GroupedTimestampToJSON(value.updated), - "deleted": GroupedTimestampToJSON(value.deleted), - "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), - "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries) + "iterable": value.iterable.map(ApplicationToJSON) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ReferencedWebsite.ts -function ReferencedWebsiteFromJSON(json) { - return ReferencedWebsiteFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/AnonymousTemporalRange.ts +function AnonymousTemporalRangeFromJSON(json) { + return AnonymousTemporalRangeFromJSONTyped(json, false); } -function ReferencedWebsiteFromJSONTyped(json, ignoreDiscriminator) { +function AnonymousTemporalRangeFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"], - "reference": !exists(json, "reference") ? void 0 : FlattenedWebsiteFromJSON(json["reference"]) + "from": !exists(json, "from") ? void 0 : GroupedTimestampFromJSON(json["from"]), + "to": !exists(json, "to") ? void 0 : GroupedTimestampFromJSON(json["to"]), + "between": !exists(json, "between") ? void 0 : json["between"], + "continuous": !exists(json, "continuous") ? void 0 : json["continuous"] }; } -function ReferencedWebsiteToJSON(value) { +function AnonymousTemporalRangeToJSON(value) { if (value === void 0) { return void 0; } @@ -7770,27 +7727,28 @@ function ReferencedWebsiteToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "id": value.id, - "reference": FlattenedWebsiteToJSON(value.reference) + "from": GroupedTimestampToJSON(value.from), + "to": GroupedTimestampToJSON(value.to), + "between": value.between, + "continuous": value.continuous }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWebsites.ts -function FlattenedWebsitesFromJSON(json) { - return FlattenedWebsitesFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/BrowserSelection.ts +function BrowserSelectionFromJSON(json) { + return BrowserSelectionFromJSONTyped(json, false); } -function FlattenedWebsitesFromJSONTyped(json, ignoreDiscriminator) { +function BrowserSelectionFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ReferencedWebsiteFromJSON), - "indices": !exists(json, "indices") ? void 0 : json["indices"], - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) + "classification": ClassificationFromJSON(json["classification"]), + "value": TransferableStringFromJSON(json["value"]) }; } -function FlattenedWebsitesToJSON(value) { +function BrowserSelectionToJSON(value) { if (value === void 0) { return void 0; } @@ -7799,38 +7757,29 @@ function FlattenedWebsitesToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ReferencedWebsiteToJSON), - "indices": value.indices, - "score": ScoreToJSON(value.score) + "classification": ClassificationToJSON(value.classification), + "value": TransferableStringToJSON(value.value) }; } -// ../generated_runtime/sdk/http/typescript/core/models/PersonAccessScopedEnum.ts -function PersonAccessScopedEnumFromJSON(json) { - return PersonAccessScopedEnumFromJSONTyped(json, false); -} -function PersonAccessScopedEnumFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function PersonAccessScopedEnumToJSON(value) { - return value; -} - -// ../generated_runtime/sdk/http/typescript/core/models/PersonAccess.ts -function PersonAccessFromJSON(json) { - return PersonAccessFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/BrowserTabValue.ts +function BrowserTabValueFromJSON(json) { + return BrowserTabValueFromJSONTyped(json, false); } -function PersonAccessFromJSONTyped(json, ignoreDiscriminator) { +function BrowserTabValueFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "scoped": !exists(json, "scoped") ? void 0 : PersonAccessScopedEnumFromJSON(json["scoped"]), - "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]) + "html": !exists(json, "html") ? void 0 : TransferableStringFromJSON(json["html"]), + "md": !exists(json, "md") ? void 0 : TransferableStringFromJSON(json["md"]), + "text": !exists(json, "text") ? void 0 : TransferableStringFromJSON(json["text"]), + "snippet": !exists(json, "snippet") ? void 0 : BrowserSelectionFromJSON(json["snippet"]), + "selection": !exists(json, "selection") ? void 0 : BrowserSelectionFromJSON(json["selection"]) }; } -function PersonAccessToJSON(value) { +function BrowserTabValueToJSON(value) { if (value === void 0) { return void 0; } @@ -7839,25 +7788,28 @@ function PersonAccessToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "scoped": PersonAccessScopedEnumToJSON(value.scoped), - "deleted": GroupedTimestampToJSON(value.deleted) + "html": TransferableStringToJSON(value.html), + "md": TransferableStringToJSON(value.md), + "text": TransferableStringToJSON(value.text), + "snippet": BrowserSelectionToJSON(value.snippet), + "selection": BrowserSelectionToJSON(value.selection) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ReferencedModel.ts -function ReferencedModelFromJSON(json) { - return ReferencedModelFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/BrowserTabValues.ts +function BrowserTabValuesFromJSON(json) { + return BrowserTabValuesFromJSONTyped(json, false); } -function ReferencedModelFromJSONTyped(json, ignoreDiscriminator) { +function BrowserTabValuesFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"] + "iterable": json["iterable"].map(BrowserTabValueFromJSON) }; } -function ReferencedModelToJSON(value) { +function BrowserTabValuesToJSON(value) { if (value === void 0) { return void 0; } @@ -7866,37 +7818,7 @@ function ReferencedModelToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "id": value.id - }; -} - -// ../generated_runtime/sdk/http/typescript/core/models/PersonModel.ts -function PersonModelFromJSON(json) { - return PersonModelFromJSONTyped(json, false); -} -function PersonModelFromJSONTyped(json, ignoreDiscriminator) { - if (json === void 0 || json === null) { - return json; - } - return { - "asset": !exists(json, "asset") ? void 0 : ReferencedAssetFromJSON(json["asset"]), - "model": !exists(json, "model") ? void 0 : ReferencedModelFromJSON(json["model"]), - "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]), - "explanation": !exists(json, "explanation") ? void 0 : ReferencedAnnotationFromJSON(json["explanation"]) - }; -} -function PersonModelToJSON(value) { - if (value === void 0) { - return void 0; - } - if (value === null) { - return null; - } - return { - "asset": ReferencedAssetToJSON(value.asset), - "model": ReferencedModelToJSON(value.model), - "deleted": GroupedTimestampToJSON(value.deleted), - "explanation": ReferencedAnnotationToJSON(value.explanation) + "iterable": value.iterable.map(BrowserTabValueToJSON) }; } @@ -7975,20 +7897,23 @@ function PersonBasicTypeToJSON(value) { }; } -// ../generated_runtime/sdk/http/typescript/core/models/Font.ts -function FontFromJSON(json) { - return FontFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/DocumentContributor.ts +function DocumentContributorFromJSON(json) { + return DocumentContributorFromJSONTyped(json, false); } -function FontFromJSONTyped(json, ignoreDiscriminator) { +function DocumentContributorFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "size": json["size"] + "classification": !exists(json, "classification") ? void 0 : ClassificationFromJSON(json["classification"]), + "value": !exists(json, "value") ? void 0 : TransferableStringFromJSON(json["value"]), + "person": PersonBasicTypeFromJSON(json["person"]), + "updated": !exists(json, "updated") ? void 0 : GroupedTimestampFromJSON(json["updated"]) }; } -function FontToJSON(value) { +function DocumentContributorToJSON(value) { if (value === void 0) { return void 0; } @@ -7997,24 +7922,27 @@ function FontToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "size": value.size + "classification": ClassificationToJSON(value.classification), + "value": TransferableStringToJSON(value.value), + "person": PersonBasicTypeToJSON(value.person), + "updated": GroupedTimestampToJSON(value.updated) }; } -// ../generated_runtime/sdk/http/typescript/core/models/Theme.ts -function ThemeFromJSON(json) { - return ThemeFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/DocumentContributors.ts +function DocumentContributorsFromJSON(json) { + return DocumentContributorsFromJSONTyped(json, false); } -function ThemeFromJSONTyped(json, ignoreDiscriminator) { +function DocumentContributorsFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "dark": json["dark"] + "iterable": json["iterable"].map(DocumentContributorFromJSON) }; } -function ThemeToJSON(value) { +function DocumentContributorsToJSON(value) { if (value === void 0) { return void 0; } @@ -8023,25 +7951,34 @@ function ThemeToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "dark": value.dark + "iterable": value.iterable.map(DocumentContributorToJSON) }; } -// ../generated_runtime/sdk/http/typescript/core/models/Aesthetics.ts -function AestheticsFromJSON(json) { - return AestheticsFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/SeededAnnotation.ts +function SeededAnnotationFromJSON(json) { + return SeededAnnotationFromJSONTyped(json, false); } -function AestheticsFromJSONTyped(json, ignoreDiscriminator) { +function SeededAnnotationFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "theme": ThemeFromJSON(json["theme"]), - "font": FontFromJSON(json["font"]) + "mechanism": !exists(json, "mechanism") ? void 0 : MechanismEnumFromJSON(json["mechanism"]), + "asset": !exists(json, "asset") ? void 0 : json["asset"], + "person": !exists(json, "person") ? void 0 : json["person"], + "type": AnnotationTypeEnumFromJSON(json["type"]), + "text": json["text"], + "model": !exists(json, "model") ? void 0 : json["model"], + "pseudo": !exists(json, "pseudo") ? void 0 : json["pseudo"], + "favorited": !exists(json, "favorited") ? void 0 : json["favorited"], + "anchor": !exists(json, "anchor") ? void 0 : json["anchor"], + "conversation": !exists(json, "conversation") ? void 0 : json["conversation"], + "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]) }; } -function AestheticsToJSON(value) { +function SeededAnnotationToJSON(value) { if (value === void 0) { return void 0; } @@ -8050,43 +7987,42 @@ function AestheticsToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "theme": ThemeToJSON(value.theme), - "font": FontToJSON(value.font) + "mechanism": MechanismEnumToJSON(value.mechanism), + "asset": value.asset, + "person": value.person, + "type": AnnotationTypeEnumToJSON(value.type), + "text": value.text, + "model": value.model, + "pseudo": value.pseudo, + "favorited": value.favorited, + "anchor": value.anchor, + "conversation": value.conversation, + "messages": FlattenedConversationMessagesToJSON(value.messages) }; } -// ../generated_runtime/sdk/http/typescript/core/models/AllocationStatusEnum.ts -var AllocationStatusEnum = { - Pending: "PENDING", - Running: "RUNNING", - Failed: "FAILED", - Succeeded: "SUCCEEDED", - Unknown: "UNKNOWN" -}; -function AllocationStatusEnumFromJSON(json) { - return AllocationStatusEnumFromJSONTyped(json, false); -} -function AllocationStatusEnumFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function AllocationStatusEnumToJSON(value) { - return value; -} - -// ../generated_runtime/sdk/http/typescript/core/models/AllocationCloudStatus.ts -function AllocationCloudStatusFromJSON(json) { - return AllocationCloudStatusFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/SeededAnchor.ts +function SeededAnchorFromJSON(json) { + return SeededAnchorFromJSONTyped(json, false); } -function AllocationCloudStatusFromJSONTyped(json, ignoreDiscriminator) { +function SeededAnchorFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "cloud": AllocationStatusEnumFromJSON(json["cloud"]) + "type": AnchorTypeEnumFromJSON(json["type"]), + "watch": !exists(json, "watch") ? void 0 : json["watch"], + "fullpath": json["fullpath"], + "asset": !exists(json, "asset") ? void 0 : json["asset"], + "platform": !exists(json, "platform") ? void 0 : PlatformEnumFromJSON(json["platform"]), + "name": !exists(json, "name") ? void 0 : json["name"], + "annotations": !exists(json, "annotations") ? void 0 : json["annotations"].map(SeededAnnotationFromJSON), + "conversation": !exists(json, "conversation") ? void 0 : json["conversation"], + "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]) }; } -function AllocationCloudStatusToJSON(value) { +function SeededAnchorToJSON(value) { if (value === void 0) { return void 0; } @@ -8095,25 +8031,37 @@ function AllocationCloudStatusToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "cloud": AllocationStatusEnumToJSON(value.cloud) + "type": AnchorTypeEnumToJSON(value.type), + "watch": value.watch, + "fullpath": value.fullpath, + "asset": value.asset, + "platform": PlatformEnumToJSON(value.platform), + "name": value.name, + "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(SeededAnnotationToJSON), + "conversation": value.conversation, + "persons": FlattenedPersonsToJSON(value.persons) }; } -// ../generated_runtime/sdk/http/typescript/core/models/AllocationCloudUrl.ts -function AllocationCloudUrlFromJSON(json) { - return AllocationCloudUrlFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/SeededWebsite.ts +function SeededWebsiteFromJSON(json) { + return SeededWebsiteFromJSONTyped(json, false); } -function AllocationCloudUrlFromJSONTyped(json, ignoreDiscriminator) { +function SeededWebsiteFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "status": AllocationStatusEnumFromJSON(json["status"]), - "url": json["url"] + "asset": !exists(json, "asset") ? void 0 : json["asset"], + "conversation": !exists(json, "conversation") ? void 0 : json["conversation"], + "url": json["url"], + "name": json["name"], + "mechanism": !exists(json, "mechanism") ? void 0 : MechanismEnumFromJSON(json["mechanism"]), + "person": !exists(json, "person") ? void 0 : json["person"] }; } -function AllocationCloudUrlToJSON(value) { +function SeededWebsiteToJSON(value) { if (value === void 0) { return void 0; } @@ -8122,27 +8070,34 @@ function AllocationCloudUrlToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "status": AllocationStatusEnumToJSON(value.status), - "url": value.url + "asset": value.asset, + "conversation": value.conversation, + "url": value.url, + "name": value.name, + "mechanism": MechanismEnumToJSON(value.mechanism), + "person": value.person }; } -// ../generated_runtime/sdk/http/typescript/core/models/AllocationCloudUrls.ts -function AllocationCloudUrlsFromJSON(json) { - return AllocationCloudUrlsFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/BrowserTab.ts +function BrowserTabFromJSON(json) { + return BrowserTabFromJSONTyped(json, false); } -function AllocationCloudUrlsFromJSONTyped(json, ignoreDiscriminator) { +function BrowserTabFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "base": AllocationCloudUrlFromJSON(json["base"]), - "id": AllocationCloudUrlFromJSON(json["id"]), - "vanity": !exists(json, "vanity") ? void 0 : AllocationCloudUrlFromJSON(json["vanity"]) + "values": !exists(json, "values") ? void 0 : BrowserTabValuesFromJSON(json["values"]), + "anchor": !exists(json, "anchor") ? void 0 : SeededAnchorFromJSON(json["anchor"]), + "website": !exists(json, "website") ? void 0 : SeededWebsiteFromJSON(json["website"]), + "range": !exists(json, "range") ? void 0 : AnonymousTemporalRangeFromJSON(json["range"]), + "current": !exists(json, "current") ? void 0 : json["current"], + "contributors": !exists(json, "contributors") ? void 0 : DocumentContributorsFromJSON(json["contributors"]) }; } -function AllocationCloudUrlsToJSON(value) { +function BrowserTabToJSON(value) { if (value === void 0) { return void 0; } @@ -8151,33 +8106,29 @@ function AllocationCloudUrlsToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "base": AllocationCloudUrlToJSON(value.base), - "id": AllocationCloudUrlToJSON(value.id), - "vanity": AllocationCloudUrlToJSON(value.vanity) + "values": BrowserTabValuesToJSON(value.values), + "anchor": SeededAnchorToJSON(value.anchor), + "website": SeededWebsiteToJSON(value.website), + "range": AnonymousTemporalRangeToJSON(value.range), + "current": value.current, + "contributors": DocumentContributorsToJSON(value.contributors) }; } -// ../generated_runtime/sdk/http/typescript/core/models/AllocationCloud.ts -function AllocationCloudFromJSON(json) { - return AllocationCloudFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/BrowserTabs.ts +function BrowserTabsFromJSON(json) { + return BrowserTabsFromJSONTyped(json, false); } -function AllocationCloudFromJSONTyped(json, ignoreDiscriminator) { +function BrowserTabsFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"], - "user": json["user"], - "urls": AllocationCloudUrlsFromJSON(json["urls"]), - "status": AllocationCloudStatusFromJSON(json["status"]), - "project": json["project"], - "updated": !exists(json, "updated") ? void 0 : GroupedTimestampFromJSON(json["updated"]), - "version": !exists(json, "version") ? void 0 : json["version"], - "region": !exists(json, "region") ? void 0 : json["region"] + "iterable": json["iterable"].map(BrowserTabFromJSON) }; } -function AllocationCloudToJSON(value) { +function BrowserTabsToJSON(value) { if (value === void 0) { return void 0; } @@ -8186,34 +8137,24 @@ function AllocationCloudToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "id": value.id, - "user": value.user, - "urls": AllocationCloudUrlsToJSON(value.urls), - "status": AllocationCloudStatusToJSON(value.status), - "project": value.project, - "updated": GroupedTimestampToJSON(value.updated), - "version": value.version, - "region": value.region + "iterable": value.iterable.map(BrowserTabToJSON) }; } -// ../generated_runtime/sdk/http/typescript/core/models/AnonymousTemporalRange.ts -function AnonymousTemporalRangeFromJSON(json) { - return AnonymousTemporalRangeFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/WorkstreamEventTriggerContextBrowser.ts +function WorkstreamEventTriggerContextBrowserFromJSON(json) { + return WorkstreamEventTriggerContextBrowserFromJSONTyped(json, false); } -function AnonymousTemporalRangeFromJSONTyped(json, ignoreDiscriminator) { +function WorkstreamEventTriggerContextBrowserFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "from": !exists(json, "from") ? void 0 : GroupedTimestampFromJSON(json["from"]), - "to": !exists(json, "to") ? void 0 : GroupedTimestampFromJSON(json["to"]), - "between": !exists(json, "between") ? void 0 : json["between"], - "continuous": !exists(json, "continuous") ? void 0 : json["continuous"] + "tabs": !exists(json, "tabs") ? void 0 : BrowserTabsFromJSON(json["tabs"]) }; } -function AnonymousTemporalRangeToJSON(value) { +function WorkstreamEventTriggerContextBrowserToJSON(value) { if (value === void 0) { return void 0; } @@ -8222,29 +8163,25 @@ function AnonymousTemporalRangeToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "from": GroupedTimestampToJSON(value.from), - "to": GroupedTimestampToJSON(value.to), - "between": value.between, - "continuous": value.continuous + "tabs": BrowserTabsToJSON(value.tabs) }; } -// ../generated_runtime/sdk/http/typescript/core/models/Auth0OpenAIUserMetadata.ts -function Auth0OpenAIUserMetadataFromJSON(json) { - return Auth0OpenAIUserMetadataFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolLocationRangePosition.ts +function LanguageServerProtocolLocationRangePositionFromJSON(json) { + return LanguageServerProtocolLocationRangePositionFromJSONTyped(json, false); } -function Auth0OpenAIUserMetadataFromJSONTyped(json, ignoreDiscriminator) { +function LanguageServerProtocolLocationRangePositionFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "apiKey": !exists(json, "api_key") ? void 0 : json["api_key"], - "apiKeyName": !exists(json, "api_key_name") ? void 0 : json["api_key_name"], - "organizationKey": !exists(json, "organization_key") ? void 0 : json["organization_key"] + "line": json["line"], + "character": json["character"] }; } -function Auth0OpenAIUserMetadataToJSON(value) { +function LanguageServerProtocolLocationRangePositionToJSON(value) { if (value === void 0) { return void 0; } @@ -8253,26 +8190,26 @@ function Auth0OpenAIUserMetadataToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "api_key": value.apiKey, - "api_key_name": value.apiKeyName, - "organization_key": value.organizationKey + "line": value.line, + "character": value.character }; } -// ../generated_runtime/sdk/http/typescript/core/models/Auth0UserAllocationMetadata.ts -function Auth0UserAllocationMetadataFromJSON(json) { - return Auth0UserAllocationMetadataFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolLocationRange.ts +function LanguageServerProtocolLocationRangeFromJSON(json) { + return LanguageServerProtocolLocationRangeFromJSONTyped(json, false); } -function Auth0UserAllocationMetadataFromJSONTyped(json, ignoreDiscriminator) { +function LanguageServerProtocolLocationRangeFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "project": json["project"], - "region": json["region"] + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "start": LanguageServerProtocolLocationRangePositionFromJSON(json["start"]), + "end": LanguageServerProtocolLocationRangePositionFromJSON(json["end"]) }; } -function Auth0UserAllocationMetadataToJSON(value) { +function LanguageServerProtocolLocationRangeToJSON(value) { if (value === void 0) { return void 0; } @@ -8280,31 +8217,27 @@ function Auth0UserAllocationMetadataToJSON(value) { return null; } return { - "project": value.project, - "region": value.region + "schema": EmbeddedModelSchemaToJSON(value.schema), + "start": LanguageServerProtocolLocationRangePositionToJSON(value.start), + "end": LanguageServerProtocolLocationRangePositionToJSON(value.end) }; } -// ../generated_runtime/sdk/http/typescript/core/models/Auth0UserMetadata.ts -function Auth0UserMetadataFromJSON(json) { - return Auth0UserMetadataFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolLocation.ts +function LanguageServerProtocolLocationFromJSON(json) { + return LanguageServerProtocolLocationFromJSONTyped(json, false); } -function Auth0UserMetadataFromJSONTyped(json, ignoreDiscriminator) { +function LanguageServerProtocolLocationFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "globalId": json["global_id"], - "cloudKey": !exists(json, "cloud_key") ? void 0 : json["cloud_key"], - "stripeCustomerId": !exists(json, "stripe_customer_id") ? void 0 : json["stripe_customer_id"], - "vanityname": !exists(json, "vanityname") ? void 0 : json["vanityname"], - "allocation": !exists(json, "allocation") ? void 0 : Auth0UserAllocationMetadataFromJSON(json["allocation"]), - "openAI": !exists(json, "open_AI") ? void 0 : Auth0OpenAIUserMetadataFromJSON(json["open_AI"]), - "beta": !exists(json, "beta") ? void 0 : AnonymousTemporalRangeFromJSON(json["beta"]) + "uri": json["uri"], + "range": LanguageServerProtocolLocationRangeFromJSON(json["range"]) }; } -function Auth0UserMetadataToJSON(value) { +function LanguageServerProtocolLocationToJSON(value) { if (value === void 0) { return void 0; } @@ -8313,66 +8246,27 @@ function Auth0UserMetadataToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "global_id": value.globalId, - "cloud_key": value.cloudKey, - "stripe_customer_id": value.stripeCustomerId, - "vanityname": value.vanityname, - "allocation": Auth0UserAllocationMetadataToJSON(value.allocation), - "open_AI": Auth0OpenAIUserMetadataToJSON(value.openAI), - "beta": AnonymousTemporalRangeToJSON(value.beta) + "uri": value.uri, + "range": LanguageServerProtocolLocationRangeToJSON(value.range) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ExternalProviderProfileData.ts -function ExternalProviderProfileDataFromJSON(json) { - return ExternalProviderProfileDataFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/IDESelection.ts +function IDESelectionFromJSON(json) { + return IDESelectionFromJSONTyped(json, false); } -function ExternalProviderProfileDataFromJSONTyped(json, ignoreDiscriminator) { +function IDESelectionFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "name": !exists(json, "name") ? void 0 : json["name"], - "picture": !exists(json, "picture") ? void 0 : json["picture"], - "nickname": !exists(json, "nickname") ? void 0 : json["nickname"], - "email": !exists(json, "email") ? void 0 : json["email"], - "emailVerified": !exists(json, "email_verified") ? void 0 : json["email_verified"], - "nodeId": !exists(json, "node_id") ? void 0 : json["node_id"], - "gravatarId": !exists(json, "gravatar_id") ? void 0 : json["gravatar_id"], - "url": !exists(json, "url") ? void 0 : json["url"], - "htmlUrl": !exists(json, "html_url") ? void 0 : json["html_url"], - "followersUrl": !exists(json, "followers_url") ? void 0 : json["followers_url"], - "followingUrl": !exists(json, "following_url") ? void 0 : json["following_url"], - "gistsUrl": !exists(json, "gists_url") ? void 0 : json["gists_url"], - "starredUrl": !exists(json, "starred_url") ? void 0 : json["starred_url"], - "subscriptionsUrl": !exists(json, "subscriptions_url") ? void 0 : json["subscriptions_url"], - "organizationsUrl": !exists(json, "organizations_url") ? void 0 : json["organizations_url"], - "reposUrl": !exists(json, "repos_url") ? void 0 : json["repos_url"], - "eventsUrl": !exists(json, "events_url") ? void 0 : json["events_url"], - "receivedEventsUrl": !exists(json, "received_events_url") ? void 0 : json["received_events_url"], - "type": !exists(json, "type") ? void 0 : json["type"], - "siteAdmin": !exists(json, "site_admin") ? void 0 : json["site_admin"], - "company": !exists(json, "company") ? void 0 : json["company"], - "blog": !exists(json, "blog") ? void 0 : json["blog"], - "anchor": !exists(json, "anchor") ? void 0 : json["anchor"], - "hireable": !exists(json, "hireable") ? void 0 : json["hireable"], - "bio": !exists(json, "bio") ? void 0 : json["bio"], - "twitterUsername": !exists(json, "twitter_username") ? void 0 : json["twitter_username"], - "publicRepos": !exists(json, "public_repos") ? void 0 : json["public_repos"], - "publicGists": !exists(json, "public_gists") ? void 0 : json["public_gists"], - "followers": !exists(json, "followers") ? void 0 : json["followers"], - "following": !exists(json, "following") ? void 0 : json["following"], - "createdAt": !exists(json, "created_at") ? void 0 : json["created_at"], - "updatedAt": !exists(json, "updated_at") ? void 0 : json["updated_at"], - "privateGists": !exists(json, "private_gists") ? void 0 : json["private_gists"], - "totalPrivateRepos": !exists(json, "total_private_repos") ? void 0 : json["total_private_repos"], - "ownedPrivateRepos": !exists(json, "owned_private_repos") ? void 0 : json["owned_private_repos"], - "diskUsage": !exists(json, "disk_usage") ? void 0 : json["disk_usage"], - "collaborators": !exists(json, "collaborators") ? void 0 : json["collaborators"], - "twoFactorAuthentication": !exists(json, "two_factor_authentication") ? void 0 : json["two_factor_authentication"] + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "location": !exists(json, "location") ? void 0 : LanguageServerProtocolLocationFromJSON(json["location"]), + "classification": !exists(json, "classification") ? void 0 : ClassificationFromJSON(json["classification"]), + "value": !exists(json, "value") ? void 0 : TransferableStringFromJSON(json["value"]) }; } -function ExternalProviderProfileDataToJSON(value) { +function IDESelectionToJSON(value) { if (value === void 0) { return void 0; } @@ -8380,80 +8274,55 @@ function ExternalProviderProfileDataToJSON(value) { return null; } return { - "name": value.name, - "picture": value.picture, - "nickname": value.nickname, - "email": value.email, - "email_verified": value.emailVerified, - "node_id": value.nodeId, - "gravatar_id": value.gravatarId, - "url": value.url, - "html_url": value.htmlUrl, - "followers_url": value.followersUrl, - "following_url": value.followingUrl, - "gists_url": value.gistsUrl, - "starred_url": value.starredUrl, - "subscriptions_url": value.subscriptionsUrl, - "organizations_url": value.organizationsUrl, - "repos_url": value.reposUrl, - "events_url": value.eventsUrl, - "received_events_url": value.receivedEventsUrl, - "type": value.type, - "site_admin": value.siteAdmin, - "company": value.company, - "blog": value.blog, - "anchor": value.anchor, - "hireable": value.hireable, - "bio": value.bio, - "twitter_username": value.twitterUsername, - "public_repos": value.publicRepos, - "public_gists": value.publicGists, - "followers": value.followers, - "following": value.following, - "created_at": value.createdAt, - "updated_at": value.updatedAt, - "private_gists": value.privateGists, - "total_private_repos": value.totalPrivateRepos, - "owned_private_repos": value.ownedPrivateRepos, - "disk_usage": value.diskUsage, - "collaborators": value.collaborators, - "two_factor_authentication": value.twoFactorAuthentication + "schema": EmbeddedModelSchemaToJSON(value.schema), + "location": LanguageServerProtocolLocationToJSON(value.location), + "classification": ClassificationToJSON(value.classification), + "value": TransferableStringToJSON(value.value) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ExternalProviderTypeEnum.ts -function ExternalProviderTypeEnumFromJSON(json) { - return ExternalProviderTypeEnumFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/IDESelections.ts +function IDESelectionsFromJSON(json) { + return IDESelectionsFromJSONTyped(json, false); } -function ExternalProviderTypeEnumFromJSONTyped(json, ignoreDiscriminator) { - return json; +function IDESelectionsFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "iterable": json["iterable"].map(IDESelectionFromJSON) + }; } -function ExternalProviderTypeEnumToJSON(value) { - return value; +function IDESelectionsToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "iterable": value.iterable.map(IDESelectionToJSON) + }; } -// ../generated_runtime/sdk/http/typescript/core/models/ExternalProvider.ts -function ExternalProviderFromJSON(json) { - return ExternalProviderFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolCode.ts +function LanguageServerProtocolCodeFromJSON(json) { + return LanguageServerProtocolCodeFromJSONTyped(json, false); } -function ExternalProviderFromJSONTyped(json, ignoreDiscriminator) { +function LanguageServerProtocolCodeFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "type": ExternalProviderTypeEnumFromJSON(json["type"]), - "userId": json["user_id"], - "accessToken": !exists(json, "access_token") ? void 0 : json["access_token"], - "expiresIn": !exists(json, "expires_in") ? void 0 : json["expires_in"], - "created": GroupedTimestampFromJSON(json["created"]), - "updated": GroupedTimestampFromJSON(json["updated"]), - "profileData": !exists(json, "profileData") ? void 0 : ExternalProviderProfileDataFromJSON(json["profileData"]), - "connection": !exists(json, "connection") ? void 0 : json["connection"], - "isSocial": !exists(json, "isSocial") ? void 0 : json["isSocial"] + "codeInteger": !exists(json, "code_integer") ? void 0 : json["code_integer"], + "codeString": !exists(json, "code_string") ? void 0 : json["code_string"], + "rawJson": !exists(json, "raw_json") ? void 0 : json["raw_json"] }; } -function ExternalProviderToJSON(value) { +function LanguageServerProtocolCodeToJSON(value) { if (value === void 0) { return void 0; } @@ -8462,32 +8331,26 @@ function ExternalProviderToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "type": ExternalProviderTypeEnumToJSON(value.type), - "user_id": value.userId, - "access_token": value.accessToken, - "expires_in": value.expiresIn, - "created": GroupedTimestampToJSON(value.created), - "updated": GroupedTimestampToJSON(value.updated), - "profileData": ExternalProviderProfileDataToJSON(value.profileData), - "connection": value.connection, - "isSocial": value.isSocial + "code_integer": value.codeInteger, + "code_string": value.codeString, + "raw_json": value.rawJson }; } -// ../generated_runtime/sdk/http/typescript/core/models/ExternalProviders.ts -function ExternalProvidersFromJSON(json) { - return ExternalProvidersFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolCodeDescription.ts +function LanguageServerProtocolCodeDescriptionFromJSON(json) { + return LanguageServerProtocolCodeDescriptionFromJSONTyped(json, false); } -function ExternalProvidersFromJSONTyped(json, ignoreDiscriminator) { +function LanguageServerProtocolCodeDescriptionFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ExternalProviderFromJSON) + "href": json["href"] }; } -function ExternalProvidersToJSON(value) { +function LanguageServerProtocolCodeDescriptionToJSON(value) { if (value === void 0) { return void 0; } @@ -8496,35 +8359,40 @@ function ExternalProvidersToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ExternalProviderToJSON) + "href": value.href }; } -// ../generated_runtime/sdk/http/typescript/core/models/UserProfile.ts -function UserProfileFromJSON(json) { - return UserProfileFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolSeverityEnum.ts +function LanguageServerProtocolSeverityEnumFromJSON(json) { + return LanguageServerProtocolSeverityEnumFromJSONTyped(json, false); } -function UserProfileFromJSONTyped(json, ignoreDiscriminator) { +function LanguageServerProtocolSeverityEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function LanguageServerProtocolSeverityEnumToJSON(value) { + return value; +} + +// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolDiagnostic.ts +function LanguageServerProtocolDiagnosticFromJSON(json) { + return LanguageServerProtocolDiagnosticFromJSONTyped(json, false); +} +function LanguageServerProtocolDiagnosticFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "picture": !exists(json, "picture") ? void 0 : json["picture"], - "email": !exists(json, "email") ? void 0 : json["email"], - "created": !exists(json, "created") ? void 0 : GroupedTimestampFromJSON(json["created"]), - "updated": !exists(json, "updated") ? void 0 : GroupedTimestampFromJSON(json["updated"]), - "username": !exists(json, "username") ? void 0 : json["username"], - "id": json["id"], - "name": !exists(json, "name") ? void 0 : json["name"], - "aesthetics": AestheticsFromJSON(json["aesthetics"]), - "vanityname": !exists(json, "vanityname") ? void 0 : json["vanityname"], - "allocation": !exists(json, "allocation") ? void 0 : AllocationCloudFromJSON(json["allocation"]), - "providers": !exists(json, "providers") ? void 0 : ExternalProvidersFromJSON(json["providers"]), - "auth0": !exists(json, "auth0") ? void 0 : Auth0UserMetadataFromJSON(json["auth0"]) + "range": LanguageServerProtocolLocationRangeFromJSON(json["range"]), + "severity": !exists(json, "severity") ? void 0 : LanguageServerProtocolSeverityEnumFromJSON(json["severity"]), + "code": !exists(json, "code") ? void 0 : LanguageServerProtocolCodeFromJSON(json["code"]), + "codeDescription": !exists(json, "codeDescription") ? void 0 : LanguageServerProtocolCodeDescriptionFromJSON(json["codeDescription"]), + "source": !exists(json, "source") ? void 0 : json["source"], + "message": json["message"] }; } -function UserProfileToJSON(value) { +function LanguageServerProtocolDiagnosticToJSON(value) { if (value === void 0) { return void 0; } @@ -8533,36 +8401,29 @@ function UserProfileToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "picture": value.picture, - "email": value.email, - "created": GroupedTimestampToJSON(value.created), - "updated": GroupedTimestampToJSON(value.updated), - "username": value.username, - "id": value.id, - "name": value.name, - "aesthetics": AestheticsToJSON(value.aesthetics), - "vanityname": value.vanityname, - "allocation": AllocationCloudToJSON(value.allocation), - "providers": ExternalProvidersToJSON(value.providers), - "auth0": Auth0UserMetadataToJSON(value.auth0) + "range": LanguageServerProtocolLocationRangeToJSON(value.range), + "severity": LanguageServerProtocolSeverityEnumToJSON(value.severity), + "code": LanguageServerProtocolCodeToJSON(value.code), + "codeDescription": LanguageServerProtocolCodeDescriptionToJSON(value.codeDescription), + "source": value.source, + "message": value.message }; } -// ../generated_runtime/sdk/http/typescript/core/models/PersonType.ts -function PersonTypeFromJSON(json) { - return PersonTypeFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolDiagnostics.ts +function LanguageServerProtocolDiagnosticsFromJSON(json) { + return LanguageServerProtocolDiagnosticsFromJSONTyped(json, false); } -function PersonTypeFromJSONTyped(json, ignoreDiscriminator) { +function LanguageServerProtocolDiagnosticsFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "basic": !exists(json, "basic") ? void 0 : PersonBasicTypeFromJSON(json["basic"]), - "platform": !exists(json, "platform") ? void 0 : UserProfileFromJSON(json["platform"]) + "iterable": json["iterable"].map(LanguageServerProtocolDiagnosticFromJSON) }; } -function PersonTypeToJSON(value) { +function LanguageServerProtocolDiagnosticsToJSON(value) { if (value === void 0) { return void 0; } @@ -8571,40 +8432,24 @@ function PersonTypeToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "basic": PersonBasicTypeToJSON(value.basic), - "platform": UserProfileToJSON(value.platform) + "iterable": value.iterable.map(LanguageServerProtocolDiagnosticToJSON) }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedPerson.ts -function FlattenedPersonFromJSON(json) { - return FlattenedPersonFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocol.ts +function LanguageServerProtocolFromJSON(json) { + return LanguageServerProtocolFromJSONTyped(json, false); } -function FlattenedPersonFromJSONTyped(json, ignoreDiscriminator) { +function LanguageServerProtocolFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"], - "created": GroupedTimestampFromJSON(json["created"]), - "updated": GroupedTimestampFromJSON(json["updated"]), - "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]), - "type": PersonTypeFromJSON(json["type"]), - "assets": !exists(json, "assets") ? void 0 : FlattenedAssetsFromJSON(json["assets"]), - "mechanisms": !exists(json, "mechanisms") ? void 0 : mapValues(json["mechanisms"], MechanismEnumFromJSON), - "interactions": !exists(json, "interactions") ? void 0 : json["interactions"], - "access": !exists(json, "access") ? void 0 : mapValues(json["access"], PersonAccessFromJSON), - "tags": !exists(json, "tags") ? void 0 : FlattenedTagsFromJSON(json["tags"]), - "websites": !exists(json, "websites") ? void 0 : FlattenedWebsitesFromJSON(json["websites"]), - "models": !exists(json, "models") ? void 0 : mapValues(json["models"], PersonModelFromJSON), - "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), - "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]), - "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]) + "diagnostics": !exists(json, "diagnostics") ? void 0 : LanguageServerProtocolDiagnosticsFromJSON(json["diagnostics"]) }; } -function FlattenedPersonToJSON(value) { +function LanguageServerProtocolToJSON(value) { if (value === void 0) { return void 0; } @@ -8613,40 +8458,31 @@ function FlattenedPersonToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "id": value.id, - "created": GroupedTimestampToJSON(value.created), - "updated": GroupedTimestampToJSON(value.updated), - "deleted": GroupedTimestampToJSON(value.deleted), - "type": PersonTypeToJSON(value.type), - "assets": FlattenedAssetsToJSON(value.assets), - "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues(value.mechanisms, MechanismEnumToJSON), - "interactions": value.interactions, - "access": value.access === void 0 ? void 0 : mapValues(value.access, PersonAccessToJSON), - "tags": FlattenedTagsToJSON(value.tags), - "websites": FlattenedWebsitesToJSON(value.websites), - "models": value.models === void 0 ? void 0 : mapValues(value.models, PersonModelToJSON), - "annotations": FlattenedAnnotationsToJSON(value.annotations), - "score": ScoreToJSON(value.score), - "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries), - "anchors": FlattenedAnchorsToJSON(value.anchors) + "diagnostics": LanguageServerProtocolDiagnosticsToJSON(value.diagnostics) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ReferencedPerson.ts -function ReferencedPersonFromJSON(json) { - return ReferencedPersonFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/IDETab.ts +function IDETabFromJSON(json) { + return IDETabFromJSONTyped(json, false); } -function ReferencedPersonFromJSONTyped(json, ignoreDiscriminator) { +function IDETabFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"], - "reference": !exists(json, "reference") ? void 0 : FlattenedPersonFromJSON(json["reference"]) + "value": !exists(json, "value") ? void 0 : TransferableStringFromJSON(json["value"]), + "classification": !exists(json, "classification") ? void 0 : ClassificationFromJSON(json["classification"]), + "selections": !exists(json, "selections") ? void 0 : IDESelectionsFromJSON(json["selections"]), + "anchor": SeededAnchorFromJSON(json["anchor"]), + "range": !exists(json, "range") ? void 0 : AnonymousTemporalRangeFromJSON(json["range"]), + "current": !exists(json, "current") ? void 0 : json["current"], + "contributors": !exists(json, "contributors") ? void 0 : DocumentContributorsFromJSON(json["contributors"]), + "lsp": !exists(json, "lsp") ? void 0 : LanguageServerProtocolFromJSON(json["lsp"]) }; } -function ReferencedPersonToJSON(value) { +function IDETabToJSON(value) { if (value === void 0) { return void 0; } @@ -8655,27 +8491,31 @@ function ReferencedPersonToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "id": value.id, - "reference": FlattenedPersonToJSON(value.reference) + "value": TransferableStringToJSON(value.value), + "classification": ClassificationToJSON(value.classification), + "selections": IDESelectionsToJSON(value.selections), + "anchor": SeededAnchorToJSON(value.anchor), + "range": AnonymousTemporalRangeToJSON(value.range), + "current": value.current, + "contributors": DocumentContributorsToJSON(value.contributors), + "lsp": LanguageServerProtocolToJSON(value.lsp) }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedPersons.ts -function FlattenedPersonsFromJSON(json) { - return FlattenedPersonsFromJSONTyped3(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/IDETabs.ts +function IDETabsFromJSON(json) { + return IDETabsFromJSONTyped(json, false); } -function FlattenedPersonsFromJSONTyped3(json, ignoreDiscriminator) { +function IDETabsFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ReferencedPersonFromJSON), - "indices": !exists(json, "indices") ? void 0 : json["indices"], - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) + "iterable": json["iterable"].map(IDETabFromJSON) }; } -function FlattenedPersonsToJSON(value) { +function IDETabsToJSON(value) { if (value === void 0) { return void 0; } @@ -8684,27 +8524,24 @@ function FlattenedPersonsToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ReferencedPersonToJSON), - "indices": value.indices, - "score": ScoreToJSON(value.score) + "iterable": value.iterable.map(IDETabToJSON) }; } -// ../generated_runtime/sdk/http/typescript/core/models/BrowserSelection.ts -function BrowserSelectionFromJSON(json) { - return BrowserSelectionFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/Classifications.ts +function ClassificationsFromJSON(json) { + return ClassificationsFromJSONTyped(json, false); } -function BrowserSelectionFromJSONTyped(json, ignoreDiscriminator) { +function ClassificationsFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "classification": ClassificationFromJSON(json["classification"]), - "value": TransferableStringFromJSON(json["value"]) + "iterable": json["iterable"].map(ClassificationFromJSON) }; } -function BrowserSelectionToJSON(value) { +function ClassificationsToJSON(value) { if (value === void 0) { return void 0; } @@ -8713,29 +8550,27 @@ function BrowserSelectionToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "classification": ClassificationToJSON(value.classification), - "value": TransferableStringToJSON(value.value) + "iterable": value.iterable.map(ClassificationToJSON) }; } -// ../generated_runtime/sdk/http/typescript/core/models/BrowserTabValue.ts -function BrowserTabValueFromJSON(json) { - return BrowserTabValueFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ProjectModule.ts +function ProjectModuleFromJSON(json) { + return ProjectModuleFromJSONTyped(json, false); } -function BrowserTabValueFromJSONTyped(json, ignoreDiscriminator) { +function ProjectModuleFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "html": !exists(json, "html") ? void 0 : TransferableStringFromJSON(json["html"]), - "md": !exists(json, "md") ? void 0 : TransferableStringFromJSON(json["md"]), - "text": !exists(json, "text") ? void 0 : TransferableStringFromJSON(json["text"]), - "snippet": !exists(json, "snippet") ? void 0 : BrowserSelectionFromJSON(json["snippet"]), - "selection": !exists(json, "selection") ? void 0 : BrowserSelectionFromJSON(json["selection"]) + "anchor": SeededAnchorFromJSON(json["anchor"]), + "range": !exists(json, "range") ? void 0 : AnonymousTemporalRangeFromJSON(json["range"]), + "contributors": !exists(json, "contributors") ? void 0 : DocumentContributorsFromJSON(json["contributors"]), + "classifications": !exists(json, "classifications") ? void 0 : ClassificationsFromJSON(json["classifications"]) }; } -function BrowserTabValueToJSON(value) { +function ProjectModuleToJSON(value) { if (value === void 0) { return void 0; } @@ -8744,28 +8579,27 @@ function BrowserTabValueToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "html": TransferableStringToJSON(value.html), - "md": TransferableStringToJSON(value.md), - "text": TransferableStringToJSON(value.text), - "snippet": BrowserSelectionToJSON(value.snippet), - "selection": BrowserSelectionToJSON(value.selection) + "anchor": SeededAnchorToJSON(value.anchor), + "range": AnonymousTemporalRangeToJSON(value.range), + "contributors": DocumentContributorsToJSON(value.contributors), + "classifications": ClassificationsToJSON(value.classifications) }; } -// ../generated_runtime/sdk/http/typescript/core/models/BrowserTabValues.ts -function BrowserTabValuesFromJSON(json) { - return BrowserTabValuesFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ProjectModules.ts +function ProjectModulesFromJSON(json) { + return ProjectModulesFromJSONTyped(json, false); } -function BrowserTabValuesFromJSONTyped(json, ignoreDiscriminator) { +function ProjectModulesFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(BrowserTabValueFromJSON) + "iterable": json["iterable"].map(ProjectModuleFromJSON) }; } -function BrowserTabValuesToJSON(value) { +function ProjectModulesToJSON(value) { if (value === void 0) { return void 0; } @@ -8774,27 +8608,26 @@ function BrowserTabValuesToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(BrowserTabValueToJSON) + "iterable": value.iterable.map(ProjectModuleToJSON) }; } -// ../generated_runtime/sdk/http/typescript/core/models/DocumentContributor.ts -function DocumentContributorFromJSON(json) { - return DocumentContributorFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/WorkstreamEventTriggerContextIDE.ts +function WorkstreamEventTriggerContextIDEFromJSON(json) { + return WorkstreamEventTriggerContextIDEFromJSONTyped(json, false); } -function DocumentContributorFromJSONTyped(json, ignoreDiscriminator) { +function WorkstreamEventTriggerContextIDEFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "classification": !exists(json, "classification") ? void 0 : ClassificationFromJSON(json["classification"]), - "value": !exists(json, "value") ? void 0 : TransferableStringFromJSON(json["value"]), - "person": PersonBasicTypeFromJSON(json["person"]), - "updated": !exists(json, "updated") ? void 0 : GroupedTimestampFromJSON(json["updated"]) + "tabs": !exists(json, "tabs") ? void 0 : IDETabsFromJSON(json["tabs"]), + "modules": !exists(json, "modules") ? void 0 : ProjectModulesFromJSON(json["modules"]), + "name": !exists(json, "name") ? void 0 : json["name"] }; } -function DocumentContributorToJSON(value) { +function WorkstreamEventTriggerContextIDEToJSON(value) { if (value === void 0) { return void 0; } @@ -8803,27 +8636,27 @@ function DocumentContributorToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "classification": ClassificationToJSON(value.classification), - "value": TransferableStringToJSON(value.value), - "person": PersonBasicTypeToJSON(value.person), - "updated": GroupedTimestampToJSON(value.updated) + "tabs": IDETabsToJSON(value.tabs), + "modules": ProjectModulesToJSON(value.modules), + "name": value.name }; } -// ../generated_runtime/sdk/http/typescript/core/models/DocumentContributors.ts -function DocumentContributorsFromJSON(json) { - return DocumentContributorsFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/WorkstreamEventContext.ts +function WorkstreamEventContextFromJSON(json) { + return WorkstreamEventContextFromJSONTyped(json, false); } -function DocumentContributorsFromJSONTyped(json, ignoreDiscriminator) { +function WorkstreamEventContextFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(DocumentContributorFromJSON) + "ide": !exists(json, "ide") ? void 0 : WorkstreamEventTriggerContextIDEFromJSON(json["ide"]), + "browser": !exists(json, "browser") ? void 0 : WorkstreamEventTriggerContextBrowserFromJSON(json["browser"]) }; } -function DocumentContributorsToJSON(value) { +function WorkstreamEventContextToJSON(value) { if (value === void 0) { return void 0; } @@ -8832,34 +8665,38 @@ function DocumentContributorsToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(DocumentContributorToJSON) + "ide": WorkstreamEventTriggerContextIDEToJSON(value.ide), + "browser": WorkstreamEventTriggerContextBrowserToJSON(value.browser) }; } -// ../generated_runtime/sdk/http/typescript/core/models/SeededAnnotation.ts -function SeededAnnotationFromJSON(json) { - return SeededAnnotationFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/WorkstreamEventTrigger.ts +function WorkstreamEventTriggerFromJSON(json) { + return WorkstreamEventTriggerFromJSONTyped(json, false); } -function SeededAnnotationFromJSONTyped(json, ignoreDiscriminator) { +function WorkstreamEventTriggerFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "mechanism": !exists(json, "mechanism") ? void 0 : MechanismEnumFromJSON(json["mechanism"]), - "asset": !exists(json, "asset") ? void 0 : json["asset"], - "person": !exists(json, "person") ? void 0 : json["person"], - "type": AnnotationTypeEnumFromJSON(json["type"]), - "text": json["text"], - "model": !exists(json, "model") ? void 0 : json["model"], - "pseudo": !exists(json, "pseudo") ? void 0 : json["pseudo"], - "favorited": !exists(json, "favorited") ? void 0 : json["favorited"], - "anchor": !exists(json, "anchor") ? void 0 : json["anchor"], - "conversation": !exists(json, "conversation") ? void 0 : json["conversation"], - "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]) + "checkIn": !exists(json, "check_in") ? void 0 : json["check_in"], + "copy": !exists(json, "copy") ? void 0 : json["copy"], + "paste": !exists(json, "paste") ? void 0 : json["paste"], + "fileOpen": !exists(json, "file_open") ? void 0 : json["file_open"], + "fileClose": !exists(json, "file_close") ? void 0 : json["file_close"], + "tabSwitch": !exists(json, "tab_switch") ? void 0 : json["tab_switch"], + "tabClose": !exists(json, "tab_close") ? void 0 : json["tab_close"], + "tabOpen": !exists(json, "tab_open") ? void 0 : json["tab_open"], + "tabEnter": !exists(json, "tab_enter") ? void 0 : json["tab_enter"], + "tabLeave": !exists(json, "tab_leave") ? void 0 : json["tab_leave"], + "urlChanged": !exists(json, "url_changed") ? void 0 : json["url_changed"], + "applicationEnter": !exists(json, "application_enter") ? void 0 : json["application_enter"], + "applicationLeave": !exists(json, "application_leave") ? void 0 : json["application_leave"], + "applicationSwitch": !exists(json, "application_switch") ? void 0 : json["application_switch"] }; } -function SeededAnnotationToJSON(value) { +function WorkstreamEventTriggerToJSON(value) { if (value === void 0) { return void 0; } @@ -8868,42 +8705,44 @@ function SeededAnnotationToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "mechanism": MechanismEnumToJSON(value.mechanism), - "asset": value.asset, - "person": value.person, - "type": AnnotationTypeEnumToJSON(value.type), - "text": value.text, - "model": value.model, - "pseudo": value.pseudo, - "favorited": value.favorited, - "anchor": value.anchor, - "conversation": value.conversation, - "messages": FlattenedConversationMessagesToJSON(value.messages) + "check_in": value.checkIn, + "copy": value.copy, + "paste": value.paste, + "file_open": value.fileOpen, + "file_close": value.fileClose, + "tab_switch": value.tabSwitch, + "tab_close": value.tabClose, + "tab_open": value.tabOpen, + "tab_enter": value.tabEnter, + "tab_leave": value.tabLeave, + "url_changed": value.urlChanged, + "application_enter": value.applicationEnter, + "application_leave": value.applicationLeave, + "application_switch": value.applicationSwitch }; } -// ../generated_runtime/sdk/http/typescript/core/models/SeededAnchor.ts -function SeededAnchorFromJSON(json) { - return SeededAnchorFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWorkstreamEvent.ts +function FlattenedWorkstreamEventFromJSON(json) { + return FlattenedWorkstreamEventFromJSONTyped(json, false); } -function SeededAnchorFromJSONTyped(json, ignoreDiscriminator) { +function FlattenedWorkstreamEventFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "type": AnchorTypeEnumFromJSON(json["type"]), - "watch": !exists(json, "watch") ? void 0 : json["watch"], - "fullpath": json["fullpath"], - "asset": !exists(json, "asset") ? void 0 : json["asset"], - "platform": !exists(json, "platform") ? void 0 : PlatformEnumFromJSON(json["platform"]), - "name": !exists(json, "name") ? void 0 : json["name"], - "annotations": !exists(json, "annotations") ? void 0 : json["annotations"].map(SeededAnnotationFromJSON), - "conversation": !exists(json, "conversation") ? void 0 : json["conversation"], - "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]) + "id": json["id"], + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "application": ApplicationFromJSON(json["application"]), + "created": GroupedTimestampFromJSON(json["created"]), + "updated": GroupedTimestampFromJSON(json["updated"]), + "trigger": WorkstreamEventTriggerFromJSON(json["trigger"]), + "context": !exists(json, "context") ? void 0 : WorkstreamEventContextFromJSON(json["context"]), + "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]) }; } -function SeededAnchorToJSON(value) { +function FlattenedWorkstreamEventToJSON(value) { if (value === void 0) { return void 0; } @@ -8912,37 +8751,61 @@ function SeededAnchorToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "type": AnchorTypeEnumToJSON(value.type), - "watch": value.watch, - "fullpath": value.fullpath, - "asset": value.asset, - "platform": PlatformEnumToJSON(value.platform), - "name": value.name, - "annotations": value.annotations === void 0 ? void 0 : value.annotations.map(SeededAnnotationToJSON), - "conversation": value.conversation, - "persons": FlattenedPersonsToJSON(value.persons) + "id": value.id, + "score": ScoreToJSON(value.score), + "application": ApplicationToJSON(value.application), + "created": GroupedTimestampToJSON(value.created), + "updated": GroupedTimestampToJSON(value.updated), + "trigger": WorkstreamEventTriggerToJSON(value.trigger), + "context": WorkstreamEventContextToJSON(value.context), + "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries) }; } -// ../generated_runtime/sdk/http/typescript/core/models/SeededWebsite.ts -function SeededWebsiteFromJSON(json) { - return SeededWebsiteFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ReferencedWorkstreamEvent.ts +function ReferencedWorkstreamEventFromJSON(json) { + return ReferencedWorkstreamEventFromJSONTyped(json, false); } -function SeededWebsiteFromJSONTyped(json, ignoreDiscriminator) { +function ReferencedWorkstreamEventFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "asset": !exists(json, "asset") ? void 0 : json["asset"], - "conversation": !exists(json, "conversation") ? void 0 : json["conversation"], - "url": json["url"], - "name": json["name"], - "mechanism": !exists(json, "mechanism") ? void 0 : MechanismEnumFromJSON(json["mechanism"]), - "person": !exists(json, "person") ? void 0 : json["person"] + "id": json["id"], + "reference": !exists(json, "reference") ? void 0 : FlattenedWorkstreamEventFromJSON(json["reference"]) + }; +} +function ReferencedWorkstreamEventToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "id": value.id, + "reference": FlattenedWorkstreamEventToJSON(value.reference) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWorkstreamEvents.ts +function FlattenedWorkstreamEventsFromJSON(json) { + return FlattenedWorkstreamEventsFromJSONTyped(json, false); +} +function FlattenedWorkstreamEventsFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "iterable": json["iterable"].map(ReferencedWorkstreamEventFromJSON), + "indices": !exists(json, "indices") ? void 0 : json["indices"], + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) }; } -function SeededWebsiteToJSON(value) { +function FlattenedWorkstreamEventsToJSON(value) { if (value === void 0) { return void 0; } @@ -8951,34 +8814,40 @@ function SeededWebsiteToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "asset": value.asset, - "conversation": value.conversation, - "url": value.url, - "name": value.name, - "mechanism": MechanismEnumToJSON(value.mechanism), - "person": value.person + "iterable": value.iterable.map(ReferencedWorkstreamEventToJSON), + "indices": value.indices, + "score": ScoreToJSON(value.score) }; } -// ../generated_runtime/sdk/http/typescript/core/models/BrowserTab.ts -function BrowserTabFromJSON(json) { - return BrowserTabFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWorkstreamSummary.ts +function FlattenedWorkstreamSummaryFromJSON(json) { + return FlattenedWorkstreamSummaryFromJSONTyped(json, false); } -function BrowserTabFromJSONTyped(json, ignoreDiscriminator) { +function FlattenedWorkstreamSummaryFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "values": !exists(json, "values") ? void 0 : BrowserTabValuesFromJSON(json["values"]), - "anchor": !exists(json, "anchor") ? void 0 : SeededAnchorFromJSON(json["anchor"]), - "website": !exists(json, "website") ? void 0 : SeededWebsiteFromJSON(json["website"]), - "range": !exists(json, "range") ? void 0 : AnonymousTemporalRangeFromJSON(json["range"]), - "current": !exists(json, "current") ? void 0 : json["current"], - "contributors": !exists(json, "contributors") ? void 0 : DocumentContributorsFromJSON(json["contributors"]) + "id": json["id"], + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "created": GroupedTimestampFromJSON(json["created"]), + "updated": GroupedTimestampFromJSON(json["updated"]), + "events": !exists(json, "events") ? void 0 : FlattenedWorkstreamEventsFromJSON(json["events"]), + "name": json["name"], + "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), + "ranges": !exists(json, "ranges") ? void 0 : FlattenedRangesFromJSON(json["ranges"]), + "model": ModelFromJSON(json["model"]), + "websites": !exists(json, "websites") ? void 0 : FlattenedWebsitesFromJSON(json["websites"]), + "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), + "assets": !exists(json, "assets") ? void 0 : FlattenedAssetsFromJSON(json["assets"]), + "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]), + "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]), + "applications": !exists(json, "applications") ? void 0 : ApplicationsFromJSON(json["applications"]) }; } -function BrowserTabToJSON(value) { +function FlattenedWorkstreamSummaryToJSON(value) { if (value === void 0) { return void 0; } @@ -8987,29 +8856,39 @@ function BrowserTabToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "values": BrowserTabValuesToJSON(value.values), - "anchor": SeededAnchorToJSON(value.anchor), - "website": SeededWebsiteToJSON(value.website), - "range": AnonymousTemporalRangeToJSON(value.range), - "current": value.current, - "contributors": DocumentContributorsToJSON(value.contributors) + "id": value.id, + "score": ScoreToJSON(value.score), + "created": GroupedTimestampToJSON(value.created), + "updated": GroupedTimestampToJSON(value.updated), + "events": FlattenedWorkstreamEventsToJSON(value.events), + "name": value.name, + "annotations": FlattenedAnnotationsToJSON(value.annotations), + "ranges": FlattenedRangesToJSON(value.ranges), + "model": ModelToJSON(value.model), + "websites": FlattenedWebsitesToJSON(value.websites), + "anchors": FlattenedAnchorsToJSON(value.anchors), + "assets": FlattenedAssetsToJSON(value.assets), + "conversations": FlattenedConversationsToJSON(value.conversations), + "persons": FlattenedPersonsToJSON(value.persons), + "applications": ApplicationsToJSON(value.applications) }; } -// ../generated_runtime/sdk/http/typescript/core/models/BrowserTabs.ts -function BrowserTabsFromJSON(json) { - return BrowserTabsFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ReferencedWorkstreamSummary.ts +function ReferencedWorkstreamSummaryFromJSON(json) { + return ReferencedWorkstreamSummaryFromJSONTyped(json, false); } -function BrowserTabsFromJSONTyped(json, ignoreDiscriminator) { +function ReferencedWorkstreamSummaryFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(BrowserTabFromJSON) + "id": json["id"], + "reference": !exists(json, "reference") ? void 0 : FlattenedWorkstreamSummaryFromJSON(json["reference"]) }; } -function BrowserTabsToJSON(value) { +function ReferencedWorkstreamSummaryToJSON(value) { if (value === void 0) { return void 0; } @@ -9018,24 +8897,27 @@ function BrowserTabsToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(BrowserTabToJSON) + "id": value.id, + "reference": FlattenedWorkstreamSummaryToJSON(value.reference) }; } -// ../generated_runtime/sdk/http/typescript/core/models/WorkstreamEventTriggerContextBrowser.ts -function WorkstreamEventTriggerContextBrowserFromJSON(json) { - return WorkstreamEventTriggerContextBrowserFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWorkstreamSummaries.ts +function FlattenedWorkstreamSummariesFromJSON(json) { + return FlattenedWorkstreamSummariesFromJSONTyped2(json, false); } -function WorkstreamEventTriggerContextBrowserFromJSONTyped(json, ignoreDiscriminator) { +function FlattenedWorkstreamSummariesFromJSONTyped2(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "tabs": !exists(json, "tabs") ? void 0 : BrowserTabsFromJSON(json["tabs"]) + "iterable": json["iterable"].map(ReferencedWorkstreamSummaryFromJSON), + "indices": !exists(json, "indices") ? void 0 : json["indices"], + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) }; } -function WorkstreamEventTriggerContextBrowserToJSON(value) { +function FlattenedWorkstreamSummariesToJSON(value) { if (value === void 0) { return void 0; } @@ -9044,25 +8926,34 @@ function WorkstreamEventTriggerContextBrowserToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "tabs": BrowserTabsToJSON(value.tabs) + "iterable": value.iterable.map(ReferencedWorkstreamSummaryToJSON), + "indices": value.indices, + "score": ScoreToJSON(value.score) }; } -// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolLocationRangePosition.ts -function LanguageServerProtocolLocationRangePositionFromJSON(json) { - return LanguageServerProtocolLocationRangePositionFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedRange.ts +function FlattenedRangeFromJSON(json) { + return FlattenedRangeFromJSONTyped(json, false); } -function LanguageServerProtocolLocationRangePositionFromJSONTyped(json, ignoreDiscriminator) { +function FlattenedRangeFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "line": json["line"], - "character": json["character"] + "id": json["id"], + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "created": GroupedTimestampFromJSON(json["created"]), + "updated": GroupedTimestampFromJSON(json["updated"]), + "to": !exists(json, "to") ? void 0 : GroupedTimestampFromJSON(json["to"]), + "from": !exists(json, "from") ? void 0 : GroupedTimestampFromJSON(json["from"]), + "between": !exists(json, "between") ? void 0 : json["between"], + "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]), + "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]) }; } -function LanguageServerProtocolLocationRangePositionToJSON(value) { +function FlattenedRangeToJSON(value) { if (value === void 0) { return void 0; } @@ -9071,26 +8962,33 @@ function LanguageServerProtocolLocationRangePositionToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "line": value.line, - "character": value.character + "id": value.id, + "score": ScoreToJSON(value.score), + "created": GroupedTimestampToJSON(value.created), + "updated": GroupedTimestampToJSON(value.updated), + "to": GroupedTimestampToJSON(value.to), + "from": GroupedTimestampToJSON(value.from), + "between": value.between, + "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries), + "conversations": FlattenedConversationsToJSON(value.conversations) }; } -// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolLocationRange.ts -function LanguageServerProtocolLocationRangeFromJSON(json) { - return LanguageServerProtocolLocationRangeFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ReferencedRange.ts +function ReferencedRangeFromJSON(json) { + return ReferencedRangeFromJSONTyped(json, false); } -function LanguageServerProtocolLocationRangeFromJSONTyped(json, ignoreDiscriminator) { +function ReferencedRangeFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "start": LanguageServerProtocolLocationRangePositionFromJSON(json["start"]), - "end": LanguageServerProtocolLocationRangePositionFromJSON(json["end"]) + "id": json["id"], + "reference": !exists(json, "reference") ? void 0 : FlattenedRangeFromJSON(json["reference"]) }; } -function LanguageServerProtocolLocationRangeToJSON(value) { +function ReferencedRangeToJSON(value) { if (value === void 0) { return void 0; } @@ -9099,26 +8997,28 @@ function LanguageServerProtocolLocationRangeToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "start": LanguageServerProtocolLocationRangePositionToJSON(value.start), - "end": LanguageServerProtocolLocationRangePositionToJSON(value.end) + "id": value.id, + "reference": FlattenedRangeToJSON(value.reference) }; } -// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolLocation.ts -function LanguageServerProtocolLocationFromJSON(json) { - return LanguageServerProtocolLocationFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedRanges.ts +function FlattenedRangesFromJSON(json) { + return FlattenedRangesFromJSONTyped2(json, false); } -function LanguageServerProtocolLocationFromJSONTyped(json, ignoreDiscriminator) { +function FlattenedRangesFromJSONTyped2(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "uri": json["uri"], - "range": LanguageServerProtocolLocationRangeFromJSON(json["range"]) + "iterable": json["iterable"].map(ReferencedRangeFromJSON), + "indices": !exists(json, "indices") ? void 0 : json["indices"], + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "continuous": !exists(json, "continuous") ? void 0 : json["continuous"] }; } -function LanguageServerProtocolLocationToJSON(value) { +function FlattenedRangesToJSON(value) { if (value === void 0) { return void 0; } @@ -9127,27 +9027,26 @@ function LanguageServerProtocolLocationToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "uri": value.uri, - "range": LanguageServerProtocolLocationRangeToJSON(value.range) + "iterable": value.iterable.map(ReferencedRangeToJSON), + "indices": value.indices, + "score": ScoreToJSON(value.score), + "continuous": value.continuous }; } -// ../generated_runtime/sdk/http/typescript/core/models/IDESelection.ts -function IDESelectionFromJSON(json) { - return IDESelectionFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/TemporalRangeGrounding.ts +function TemporalRangeGroundingFromJSON(json) { + return TemporalRangeGroundingFromJSONTyped(json, false); } -function IDESelectionFromJSONTyped(json, ignoreDiscriminator) { +function TemporalRangeGroundingFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "location": !exists(json, "location") ? void 0 : LanguageServerProtocolLocationFromJSON(json["location"]), - "classification": !exists(json, "classification") ? void 0 : ClassificationFromJSON(json["classification"]), - "value": !exists(json, "value") ? void 0 : TransferableStringFromJSON(json["value"]) + "workstreams": !exists(json, "workstreams") ? void 0 : FlattenedRangesFromJSON(json["workstreams"]) }; } -function IDESelectionToJSON(value) { +function TemporalRangeGroundingToJSON(value) { if (value === void 0) { return void 0; } @@ -9155,27 +9054,25 @@ function IDESelectionToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "location": LanguageServerProtocolLocationToJSON(value.location), - "classification": ClassificationToJSON(value.classification), - "value": TransferableStringToJSON(value.value) + "workstreams": FlattenedRangesToJSON(value.workstreams) }; } -// ../generated_runtime/sdk/http/typescript/core/models/IDESelections.ts -function IDESelectionsFromJSON(json) { - return IDESelectionsFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ConversationGrounding.ts +function ConversationGroundingFromJSON(json) { + return ConversationGroundingFromJSONTyped(json, false); } -function IDESelectionsFromJSONTyped(json, ignoreDiscriminator) { +function ConversationGroundingFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(IDESelectionFromJSON) + "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]), + "temporal": !exists(json, "temporal") ? void 0 : TemporalRangeGroundingFromJSON(json["temporal"]) }; } -function IDESelectionsToJSON(value) { +function ConversationGroundingToJSON(value) { if (value === void 0) { return void 0; } @@ -9184,26 +9081,35 @@ function IDESelectionsToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(IDESelectionToJSON) + "messages": FlattenedConversationMessagesToJSON(value.messages), + "temporal": TemporalRangeGroundingToJSON(value.temporal) }; } -// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolCode.ts -function LanguageServerProtocolCodeFromJSON(json) { - return LanguageServerProtocolCodeFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ConversationTypeEnum.ts +function ConversationTypeEnumFromJSON(json) { + return ConversationTypeEnumFromJSONTyped(json, false); } -function LanguageServerProtocolCodeFromJSONTyped(json, ignoreDiscriminator) { +function ConversationTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ConversationTypeEnumToJSON(value) { + return value; +} + +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForContextualizedCodeDialog.ts +function QGPTConversationPipelineForContextualizedCodeDialogFromJSON(json) { + return QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped(json, false); +} +function QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "codeInteger": !exists(json, "code_integer") ? void 0 : json["code_integer"], - "codeString": !exists(json, "code_string") ? void 0 : json["code_string"], - "rawJson": !exists(json, "raw_json") ? void 0 : json["raw_json"] + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) }; } -function LanguageServerProtocolCodeToJSON(value) { +function QGPTConversationPipelineForContextualizedCodeDialogToJSON(value) { if (value === void 0) { return void 0; } @@ -9211,27 +9117,23 @@ function LanguageServerProtocolCodeToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "code_integer": value.codeInteger, - "code_string": value.codeString, - "raw_json": value.rawJson + "schema": EmbeddedModelSchemaToJSON(value.schema) }; } -// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolCodeDescription.ts -function LanguageServerProtocolCodeDescriptionFromJSON(json) { - return LanguageServerProtocolCodeDescriptionFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForContextualizedCodeGeneration.ts +function QGPTConversationPipelineForContextualizedCodeGenerationFromJSON(json) { + return QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped(json, false); } -function LanguageServerProtocolCodeDescriptionFromJSONTyped(json, ignoreDiscriminator) { +function QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "href": json["href"] + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) }; } -function LanguageServerProtocolCodeDescriptionToJSON(value) { +function QGPTConversationPipelineForContextualizedCodeGenerationToJSON(value) { if (value === void 0) { return void 0; } @@ -9239,41 +9141,23 @@ function LanguageServerProtocolCodeDescriptionToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "href": value.href + "schema": EmbeddedModelSchemaToJSON(value.schema) }; } -// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolSeverityEnum.ts -function LanguageServerProtocolSeverityEnumFromJSON(json) { - return LanguageServerProtocolSeverityEnumFromJSONTyped(json, false); -} -function LanguageServerProtocolSeverityEnumFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function LanguageServerProtocolSeverityEnumToJSON(value) { - return value; -} - -// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolDiagnostic.ts -function LanguageServerProtocolDiagnosticFromJSON(json) { - return LanguageServerProtocolDiagnosticFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForContextualizedCodeWorkstreamDialog.ts +function QGPTConversationPipelineForContextualizedCodeWorkstreamDialogFromJSON(json) { + return QGPTConversationPipelineForContextualizedCodeWorkstreamDialogFromJSONTyped(json, false); } -function LanguageServerProtocolDiagnosticFromJSONTyped(json, ignoreDiscriminator) { +function QGPTConversationPipelineForContextualizedCodeWorkstreamDialogFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "range": LanguageServerProtocolLocationRangeFromJSON(json["range"]), - "severity": !exists(json, "severity") ? void 0 : LanguageServerProtocolSeverityEnumFromJSON(json["severity"]), - "code": !exists(json, "code") ? void 0 : LanguageServerProtocolCodeFromJSON(json["code"]), - "codeDescription": !exists(json, "codeDescription") ? void 0 : LanguageServerProtocolCodeDescriptionFromJSON(json["codeDescription"]), - "source": !exists(json, "source") ? void 0 : json["source"], - "message": json["message"] + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) }; } -function LanguageServerProtocolDiagnosticToJSON(value) { +function QGPTConversationPipelineForContextualizedCodeWorkstreamDialogToJSON(value) { if (value === void 0) { return void 0; } @@ -9281,30 +9165,23 @@ function LanguageServerProtocolDiagnosticToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "range": LanguageServerProtocolLocationRangeToJSON(value.range), - "severity": LanguageServerProtocolSeverityEnumToJSON(value.severity), - "code": LanguageServerProtocolCodeToJSON(value.code), - "codeDescription": LanguageServerProtocolCodeDescriptionToJSON(value.codeDescription), - "source": value.source, - "message": value.message + "schema": EmbeddedModelSchemaToJSON(value.schema) }; } -// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocolDiagnostics.ts -function LanguageServerProtocolDiagnosticsFromJSON(json) { - return LanguageServerProtocolDiagnosticsFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForGeneralizedCodeDialog.ts +function QGPTConversationPipelineForGeneralizedCodeDialogFromJSON(json) { + return QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped(json, false); } -function LanguageServerProtocolDiagnosticsFromJSONTyped(json, ignoreDiscriminator) { +function QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(LanguageServerProtocolDiagnosticFromJSON) + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) }; } -function LanguageServerProtocolDiagnosticsToJSON(value) { +function QGPTConversationPipelineForGeneralizedCodeDialogToJSON(value) { if (value === void 0) { return void 0; } @@ -9312,25 +9189,27 @@ function LanguageServerProtocolDiagnosticsToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(LanguageServerProtocolDiagnosticToJSON) + "schema": EmbeddedModelSchemaToJSON(value.schema) }; } -// ../generated_runtime/sdk/http/typescript/core/models/LanguageServerProtocol.ts -function LanguageServerProtocolFromJSON(json) { - return LanguageServerProtocolFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipeline.ts +function QGPTConversationPipelineFromJSON(json) { + return QGPTConversationPipelineFromJSONTyped(json, false); } -function LanguageServerProtocolFromJSONTyped(json, ignoreDiscriminator) { +function QGPTConversationPipelineFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "diagnostics": !exists(json, "diagnostics") ? void 0 : LanguageServerProtocolDiagnosticsFromJSON(json["diagnostics"]) + "contextualizedCodeGeneration": !exists(json, "contextualized_code_generation") ? void 0 : QGPTConversationPipelineForContextualizedCodeGenerationFromJSON(json["contextualized_code_generation"]), + "generalizedCodeDialog": !exists(json, "generalized_code_dialog") ? void 0 : QGPTConversationPipelineForGeneralizedCodeDialogFromJSON(json["generalized_code_dialog"]), + "contextualizedCodeDialog": !exists(json, "contextualized_code_dialog") ? void 0 : QGPTConversationPipelineForContextualizedCodeDialogFromJSON(json["contextualized_code_dialog"]), + "contextualizedCodeWorkstreamDialog": !exists(json, "contextualized_code_workstream_dialog") ? void 0 : QGPTConversationPipelineForContextualizedCodeWorkstreamDialogFromJSON(json["contextualized_code_workstream_dialog"]) }; } -function LanguageServerProtocolToJSON(value) { +function QGPTConversationPipelineToJSON(value) { if (value === void 0) { return void 0; } @@ -9339,31 +9218,26 @@ function LanguageServerProtocolToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "diagnostics": LanguageServerProtocolDiagnosticsToJSON(value.diagnostics) + "contextualized_code_generation": QGPTConversationPipelineForContextualizedCodeGenerationToJSON(value.contextualizedCodeGeneration), + "generalized_code_dialog": QGPTConversationPipelineForGeneralizedCodeDialogToJSON(value.generalizedCodeDialog), + "contextualized_code_dialog": QGPTConversationPipelineForContextualizedCodeDialogToJSON(value.contextualizedCodeDialog), + "contextualized_code_workstream_dialog": QGPTConversationPipelineForContextualizedCodeWorkstreamDialogToJSON(value.contextualizedCodeWorkstreamDialog) }; } -// ../generated_runtime/sdk/http/typescript/core/models/IDETab.ts -function IDETabFromJSON(json) { - return IDETabFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeCommentation.ts +function QGPTTaskPipelineForCodeCommentationFromJSON(json) { + return QGPTTaskPipelineForCodeCommentationFromJSONTyped(json, false); } -function IDETabFromJSONTyped(json, ignoreDiscriminator) { +function QGPTTaskPipelineForCodeCommentationFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "value": !exists(json, "value") ? void 0 : TransferableStringFromJSON(json["value"]), - "classification": !exists(json, "classification") ? void 0 : ClassificationFromJSON(json["classification"]), - "selections": !exists(json, "selections") ? void 0 : IDESelectionsFromJSON(json["selections"]), - "anchor": SeededAnchorFromJSON(json["anchor"]), - "range": !exists(json, "range") ? void 0 : AnonymousTemporalRangeFromJSON(json["range"]), - "current": !exists(json, "current") ? void 0 : json["current"], - "contributors": !exists(json, "contributors") ? void 0 : DocumentContributorsFromJSON(json["contributors"]), - "lsp": !exists(json, "lsp") ? void 0 : LanguageServerProtocolFromJSON(json["lsp"]) + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) }; } -function IDETabToJSON(value) { +function QGPTTaskPipelineForCodeCommentationToJSON(value) { if (value === void 0) { return void 0; } @@ -9371,32 +9245,24 @@ function IDETabToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "value": TransferableStringToJSON(value.value), - "classification": ClassificationToJSON(value.classification), - "selections": IDESelectionsToJSON(value.selections), - "anchor": SeededAnchorToJSON(value.anchor), - "range": AnonymousTemporalRangeToJSON(value.range), - "current": value.current, - "contributors": DocumentContributorsToJSON(value.contributors), - "lsp": LanguageServerProtocolToJSON(value.lsp) + "schema": EmbeddedModelSchemaToJSON(value.schema) }; } -// ../generated_runtime/sdk/http/typescript/core/models/IDETabs.ts -function IDETabsFromJSON(json) { - return IDETabsFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeCompletion.ts +function QGPTTaskPipelineForCodeCompletionFromJSON(json) { + return QGPTTaskPipelineForCodeCompletionFromJSONTyped(json, false); } -function IDETabsFromJSONTyped(json, ignoreDiscriminator) { +function QGPTTaskPipelineForCodeCompletionFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(IDETabFromJSON) + "context": !exists(json, "context") ? void 0 : json["context"] }; } -function IDETabsToJSON(value) { +function QGPTTaskPipelineForCodeCompletionToJSON(value) { if (value === void 0) { return void 0; } @@ -9405,24 +9271,23 @@ function IDETabsToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(IDETabToJSON) + "context": value.context }; } -// ../generated_runtime/sdk/http/typescript/core/models/Classifications.ts -function ClassificationsFromJSON(json) { - return ClassificationsFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeExplanation.ts +function QGPTTaskPipelineForCodeExplanationFromJSON(json) { + return QGPTTaskPipelineForCodeExplanationFromJSONTyped(json, false); } -function ClassificationsFromJSONTyped(json, ignoreDiscriminator) { +function QGPTTaskPipelineForCodeExplanationFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ClassificationFromJSON) + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) }; } -function ClassificationsToJSON(value) { +function QGPTTaskPipelineForCodeExplanationToJSON(value) { if (value === void 0) { return void 0; } @@ -9430,28 +9295,24 @@ function ClassificationsToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ClassificationToJSON) + "schema": EmbeddedModelSchemaToJSON(value.schema) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ProjectModule.ts -function ProjectModuleFromJSON(json) { - return ProjectModuleFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeFix.ts +function QGPTTaskPipelineForCodeFixFromJSON(json) { + return QGPTTaskPipelineForCodeFixFromJSONTyped(json, false); } -function ProjectModuleFromJSONTyped(json, ignoreDiscriminator) { +function QGPTTaskPipelineForCodeFixFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "anchor": SeededAnchorFromJSON(json["anchor"]), - "range": !exists(json, "range") ? void 0 : AnonymousTemporalRangeFromJSON(json["range"]), - "contributors": !exists(json, "contributors") ? void 0 : DocumentContributorsFromJSON(json["contributors"]), - "classifications": !exists(json, "classifications") ? void 0 : ClassificationsFromJSON(json["classifications"]) + "error": !exists(json, "error") ? void 0 : json["error"] }; } -function ProjectModuleToJSON(value) { +function QGPTTaskPipelineForCodeFixToJSON(value) { if (value === void 0) { return void 0; } @@ -9460,27 +9321,24 @@ function ProjectModuleToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "anchor": SeededAnchorToJSON(value.anchor), - "range": AnonymousTemporalRangeToJSON(value.range), - "contributors": DocumentContributorsToJSON(value.contributors), - "classifications": ClassificationsToJSON(value.classifications) + "error": value.error }; } -// ../generated_runtime/sdk/http/typescript/core/models/ProjectModules.ts -function ProjectModulesFromJSON(json) { - return ProjectModulesFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeModification.ts +function QGPTTaskPipelineForCodeModificationFromJSON(json) { + return QGPTTaskPipelineForCodeModificationFromJSONTyped(json, false); } -function ProjectModulesFromJSONTyped(json, ignoreDiscriminator) { +function QGPTTaskPipelineForCodeModificationFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ProjectModuleFromJSON) + "instruction": !exists(json, "instruction") ? void 0 : json["instruction"] }; } -function ProjectModulesToJSON(value) { +function QGPTTaskPipelineForCodeModificationToJSON(value) { if (value === void 0) { return void 0; } @@ -9489,26 +9347,28 @@ function ProjectModulesToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ProjectModuleToJSON) + "instruction": value.instruction }; } -// ../generated_runtime/sdk/http/typescript/core/models/WorkstreamEventTriggerContextIDE.ts -function WorkstreamEventTriggerContextIDEFromJSON(json) { - return WorkstreamEventTriggerContextIDEFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipeline.ts +function QGPTTaskPipelineFromJSON(json) { + return QGPTTaskPipelineFromJSONTyped(json, false); } -function WorkstreamEventTriggerContextIDEFromJSONTyped(json, ignoreDiscriminator) { +function QGPTTaskPipelineFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "tabs": !exists(json, "tabs") ? void 0 : IDETabsFromJSON(json["tabs"]), - "modules": !exists(json, "modules") ? void 0 : ProjectModulesFromJSON(json["modules"]), - "name": !exists(json, "name") ? void 0 : json["name"] + "codeExplanation": !exists(json, "code_explanation") ? void 0 : QGPTTaskPipelineForCodeExplanationFromJSON(json["code_explanation"]), + "codeCommentation": !exists(json, "code_commentation") ? void 0 : QGPTTaskPipelineForCodeCommentationFromJSON(json["code_commentation"]), + "codeFix": !exists(json, "code_fix") ? void 0 : QGPTTaskPipelineForCodeFixFromJSON(json["code_fix"]), + "codeModification": !exists(json, "code_modification") ? void 0 : QGPTTaskPipelineForCodeModificationFromJSON(json["code_modification"]), + "codeCompletion": !exists(json, "code_completion") ? void 0 : QGPTTaskPipelineForCodeCompletionFromJSON(json["code_completion"]) }; } -function WorkstreamEventTriggerContextIDEToJSON(value) { +function QGPTTaskPipelineToJSON(value) { if (value === void 0) { return void 0; } @@ -9517,27 +9377,29 @@ function WorkstreamEventTriggerContextIDEToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "tabs": IDETabsToJSON(value.tabs), - "modules": ProjectModulesToJSON(value.modules), - "name": value.name + "code_explanation": QGPTTaskPipelineForCodeExplanationToJSON(value.codeExplanation), + "code_commentation": QGPTTaskPipelineForCodeCommentationToJSON(value.codeCommentation), + "code_fix": QGPTTaskPipelineForCodeFixToJSON(value.codeFix), + "code_modification": QGPTTaskPipelineForCodeModificationToJSON(value.codeModification), + "code_completion": QGPTTaskPipelineForCodeCompletionToJSON(value.codeCompletion) }; } -// ../generated_runtime/sdk/http/typescript/core/models/WorkstreamEventContext.ts -function WorkstreamEventContextFromJSON(json) { - return WorkstreamEventContextFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/QGPTPromptPipeline.ts +function QGPTPromptPipelineFromJSON(json) { + return QGPTPromptPipelineFromJSONTyped(json, false); } -function WorkstreamEventContextFromJSONTyped(json, ignoreDiscriminator) { +function QGPTPromptPipelineFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "ide": !exists(json, "ide") ? void 0 : WorkstreamEventTriggerContextIDEFromJSON(json["ide"]), - "browser": !exists(json, "browser") ? void 0 : WorkstreamEventTriggerContextBrowserFromJSON(json["browser"]) + "task": !exists(json, "task") ? void 0 : QGPTTaskPipelineFromJSON(json["task"]), + "conversation": !exists(json, "conversation") ? void 0 : QGPTConversationPipelineFromJSON(json["conversation"]) }; } -function WorkstreamEventContextToJSON(value) { +function QGPTPromptPipelineToJSON(value) { if (value === void 0) { return void 0; } @@ -9546,84 +9408,69 @@ function WorkstreamEventContextToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "ide": WorkstreamEventTriggerContextIDEToJSON(value.ide), - "browser": WorkstreamEventTriggerContextBrowserToJSON(value.browser) + "task": QGPTTaskPipelineToJSON(value.task), + "conversation": QGPTConversationPipelineToJSON(value.conversation) }; } -// ../generated_runtime/sdk/http/typescript/core/models/WorkstreamEventTrigger.ts -function WorkstreamEventTriggerFromJSON(json) { - return WorkstreamEventTriggerFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ReferencedModel.ts +function ReferencedModelFromJSON(json) { + return ReferencedModelFromJSONTyped(json, false); } -function WorkstreamEventTriggerFromJSONTyped(json, ignoreDiscriminator) { +function ReferencedModelFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "checkIn": !exists(json, "check_in") ? void 0 : json["check_in"], - "copy": !exists(json, "copy") ? void 0 : json["copy"], - "paste": !exists(json, "paste") ? void 0 : json["paste"], - "fileOpen": !exists(json, "file_open") ? void 0 : json["file_open"], - "fileClose": !exists(json, "file_close") ? void 0 : json["file_close"], - "tabSwitch": !exists(json, "tab_switch") ? void 0 : json["tab_switch"], - "tabClose": !exists(json, "tab_close") ? void 0 : json["tab_close"], - "tabOpen": !exists(json, "tab_open") ? void 0 : json["tab_open"], - "tabEnter": !exists(json, "tab_enter") ? void 0 : json["tab_enter"], - "tabLeave": !exists(json, "tab_leave") ? void 0 : json["tab_leave"], - "urlChanged": !exists(json, "url_changed") ? void 0 : json["url_changed"], - "applicationEnter": !exists(json, "application_enter") ? void 0 : json["application_enter"], - "applicationLeave": !exists(json, "application_leave") ? void 0 : json["application_leave"], - "applicationSwitch": !exists(json, "application_switch") ? void 0 : json["application_switch"] + "id": json["id"] }; } -function WorkstreamEventTriggerToJSON(value) { +function ReferencedModelToJSON(value) { if (value === void 0) { - return void 0; - } - if (value === null) { - return null; - } - return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "check_in": value.checkIn, - "copy": value.copy, - "paste": value.paste, - "file_open": value.fileOpen, - "file_close": value.fileClose, - "tab_switch": value.tabSwitch, - "tab_close": value.tabClose, - "tab_open": value.tabOpen, - "tab_enter": value.tabEnter, - "tab_leave": value.tabLeave, - "url_changed": value.urlChanged, - "application_enter": value.applicationEnter, - "application_leave": value.applicationLeave, - "application_switch": value.applicationSwitch + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "id": value.id }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWorkstreamEvent.ts -function FlattenedWorkstreamEventFromJSON(json) { - return FlattenedWorkstreamEventFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedConversation.ts +function FlattenedConversationFromJSON(json) { + return FlattenedConversationFromJSONTyped(json, false); } -function FlattenedWorkstreamEventFromJSONTyped(json, ignoreDiscriminator) { +function FlattenedConversationFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), "id": json["id"], - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), - "application": ApplicationFromJSON(json["application"]), + "name": !exists(json, "name") ? void 0 : json["name"], "created": GroupedTimestampFromJSON(json["created"]), "updated": GroupedTimestampFromJSON(json["updated"]), - "trigger": WorkstreamEventTriggerFromJSON(json["trigger"]), - "context": !exists(json, "context") ? void 0 : WorkstreamEventContextFromJSON(json["context"]), + "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]), + "favorited": !exists(json, "favorited") ? void 0 : json["favorited"], + "application": !exists(json, "application") ? void 0 : ApplicationFromJSON(json["application"]), + "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), + "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"]), + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "pipeline": !exists(json, "pipeline") ? void 0 : QGPTPromptPipelineFromJSON(json["pipeline"]), + "demo": !exists(json, "demo") ? void 0 : json["demo"], "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]) }; } -function FlattenedWorkstreamEventToJSON(value) { +function FlattenedConversationToJSON(value) { if (value === void 0) { return void 0; } @@ -9633,31 +9480,42 @@ function FlattenedWorkstreamEventToJSON(value) { return { "schema": EmbeddedModelSchemaToJSON(value.schema), "id": value.id, - "score": ScoreToJSON(value.score), - "application": ApplicationToJSON(value.application), + "name": value.name, "created": GroupedTimestampToJSON(value.created), "updated": GroupedTimestampToJSON(value.updated), - "trigger": WorkstreamEventTriggerToJSON(value.trigger), - "context": WorkstreamEventContextToJSON(value.context), + "deleted": GroupedTimestampToJSON(value.deleted), + "favorited": value.favorited, + "application": ApplicationToJSON(value.application), + "annotations": FlattenedAnnotationsToJSON(value.annotations), + "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), + "score": ScoreToJSON(value.score), + "pipeline": QGPTPromptPipelineToJSON(value.pipeline), + "demo": value.demo, "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ReferencedWorkstreamEvent.ts -function ReferencedWorkstreamEventFromJSON(json) { - return ReferencedWorkstreamEventFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ReferencedConversation.ts +function ReferencedConversationFromJSON(json) { + return ReferencedConversationFromJSONTyped(json, false); } -function ReferencedWorkstreamEventFromJSONTyped(json, ignoreDiscriminator) { +function ReferencedConversationFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), "id": json["id"], - "reference": !exists(json, "reference") ? void 0 : FlattenedWorkstreamEventFromJSON(json["reference"]) + "reference": !exists(json, "reference") ? void 0 : FlattenedConversationFromJSON(json["reference"]) }; } -function ReferencedWorkstreamEventToJSON(value) { +function ReferencedConversationToJSON(value) { if (value === void 0) { return void 0; } @@ -9667,26 +9525,26 @@ function ReferencedWorkstreamEventToJSON(value) { return { "schema": EmbeddedModelSchemaToJSON(value.schema), "id": value.id, - "reference": FlattenedWorkstreamEventToJSON(value.reference) + "reference": FlattenedConversationToJSON(value.reference) }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWorkstreamEvents.ts -function FlattenedWorkstreamEventsFromJSON(json) { - return FlattenedWorkstreamEventsFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedConversations.ts +function FlattenedConversationsFromJSON(json) { + return FlattenedConversationsFromJSONTyped3(json, false); } -function FlattenedWorkstreamEventsFromJSONTyped(json, ignoreDiscriminator) { +function FlattenedConversationsFromJSONTyped3(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ReferencedWorkstreamEventFromJSON), + "iterable": json["iterable"].map(ReferencedConversationFromJSON), "indices": !exists(json, "indices") ? void 0 : json["indices"], "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) }; } -function FlattenedWorkstreamEventsToJSON(value) { +function FlattenedConversationsToJSON(value) { if (value === void 0) { return void 0; } @@ -9695,40 +9553,39 @@ function FlattenedWorkstreamEventsToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ReferencedWorkstreamEventToJSON), + "iterable": value.iterable.map(ReferencedConversationToJSON), "indices": value.indices, "score": ScoreToJSON(value.score) }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWorkstreamSummary.ts -function FlattenedWorkstreamSummaryFromJSON(json) { - return FlattenedWorkstreamSummaryFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWebsite.ts +function FlattenedWebsiteFromJSON(json) { + return FlattenedWebsiteFromJSONTyped(json, false); } -function FlattenedWorkstreamSummaryFromJSONTyped(json, ignoreDiscriminator) { +function FlattenedWebsiteFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), "id": json["id"], - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "assets": !exists(json, "assets") ? void 0 : FlattenedAssetsFromJSON(json["assets"]), + "name": json["name"], + "url": json["url"], "created": GroupedTimestampFromJSON(json["created"]), "updated": GroupedTimestampFromJSON(json["updated"]), - "events": !exists(json, "events") ? void 0 : FlattenedWorkstreamEventsFromJSON(json["events"]), - "name": json["name"], - "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), - "ranges": !exists(json, "ranges") ? void 0 : FlattenedRangesFromJSON(json["ranges"]), - "model": ModelFromJSON(json["model"]), - "websites": !exists(json, "websites") ? void 0 : FlattenedWebsitesFromJSON(json["websites"]), - "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), - "assets": !exists(json, "assets") ? void 0 : FlattenedAssetsFromJSON(json["assets"]), - "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]), + "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]), + "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"]), - "applications": !exists(json, "applications") ? void 0 : ApplicationsFromJSON(json["applications"]) + "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]), + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]), + "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]) }; } -function FlattenedWorkstreamSummaryToJSON(value) { +function FlattenedWebsiteToJSON(value) { if (value === void 0) { return void 0; } @@ -9738,38 +9595,37 @@ function FlattenedWorkstreamSummaryToJSON(value) { return { "schema": EmbeddedModelSchemaToJSON(value.schema), "id": value.id, - "score": ScoreToJSON(value.score), + "assets": FlattenedAssetsToJSON(value.assets), + "name": value.name, + "url": value.url, "created": GroupedTimestampToJSON(value.created), "updated": GroupedTimestampToJSON(value.updated), - "events": FlattenedWorkstreamEventsToJSON(value.events), - "name": value.name, - "annotations": FlattenedAnnotationsToJSON(value.annotations), - "ranges": FlattenedRangesToJSON(value.ranges), - "model": ModelToJSON(value.model), - "websites": FlattenedWebsitesToJSON(value.websites), - "anchors": FlattenedAnchorsToJSON(value.anchors), - "assets": FlattenedAssetsToJSON(value.assets), - "conversations": FlattenedConversationsToJSON(value.conversations), + "deleted": GroupedTimestampToJSON(value.deleted), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues(value.mechanisms, MechanismEnumToJSON), + "interactions": value.interactions, "persons": FlattenedPersonsToJSON(value.persons), - "applications": ApplicationsToJSON(value.applications) + "conversations": FlattenedConversationsToJSON(value.conversations), + "score": ScoreToJSON(value.score), + "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries), + "messages": FlattenedConversationMessagesToJSON(value.messages) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ReferencedWorkstreamSummary.ts -function ReferencedWorkstreamSummaryFromJSON(json) { - return ReferencedWorkstreamSummaryFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ReferencedWebsite.ts +function ReferencedWebsiteFromJSON(json) { + return ReferencedWebsiteFromJSONTyped(json, false); } -function ReferencedWorkstreamSummaryFromJSONTyped(json, ignoreDiscriminator) { +function ReferencedWebsiteFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), "id": json["id"], - "reference": !exists(json, "reference") ? void 0 : FlattenedWorkstreamSummaryFromJSON(json["reference"]) + "reference": !exists(json, "reference") ? void 0 : FlattenedWebsiteFromJSON(json["reference"]) }; } -function ReferencedWorkstreamSummaryToJSON(value) { +function ReferencedWebsiteToJSON(value) { if (value === void 0) { return void 0; } @@ -9779,26 +9635,26 @@ function ReferencedWorkstreamSummaryToJSON(value) { return { "schema": EmbeddedModelSchemaToJSON(value.schema), "id": value.id, - "reference": FlattenedWorkstreamSummaryToJSON(value.reference) + "reference": FlattenedWebsiteToJSON(value.reference) }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWorkstreamSummaries.ts -function FlattenedWorkstreamSummariesFromJSON(json) { - return FlattenedWorkstreamSummariesFromJSONTyped4(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedWebsites.ts +function FlattenedWebsitesFromJSON(json) { + return FlattenedWebsitesFromJSONTyped3(json, false); } -function FlattenedWorkstreamSummariesFromJSONTyped4(json, ignoreDiscriminator) { +function FlattenedWebsitesFromJSONTyped3(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ReferencedWorkstreamSummaryFromJSON), + "iterable": json["iterable"].map(ReferencedWebsiteFromJSON), "indices": !exists(json, "indices") ? void 0 : json["indices"], "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) }; } -function FlattenedWorkstreamSummariesToJSON(value) { +function FlattenedWebsitesToJSON(value) { if (value === void 0) { return void 0; } @@ -9807,34 +9663,38 @@ function FlattenedWorkstreamSummariesToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ReferencedWorkstreamSummaryToJSON), + "iterable": value.iterable.map(ReferencedWebsiteToJSON), "indices": value.indices, "score": ScoreToJSON(value.score) }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedRange.ts -function FlattenedRangeFromJSON(json) { - return FlattenedRangeFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/PersonAccessScopedEnum.ts +function PersonAccessScopedEnumFromJSON(json) { + return PersonAccessScopedEnumFromJSONTyped(json, false); } -function FlattenedRangeFromJSONTyped(json, ignoreDiscriminator) { +function PersonAccessScopedEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PersonAccessScopedEnumToJSON(value) { + return value; +} + +// ../generated_runtime/sdk/http/typescript/core/models/PersonAccess.ts +function PersonAccessFromJSON(json) { + return PersonAccessFromJSONTyped(json, false); +} +function PersonAccessFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"], - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), - "created": GroupedTimestampFromJSON(json["created"]), - "updated": GroupedTimestampFromJSON(json["updated"]), - "to": !exists(json, "to") ? void 0 : GroupedTimestampFromJSON(json["to"]), - "from": !exists(json, "from") ? void 0 : GroupedTimestampFromJSON(json["from"]), - "between": !exists(json, "between") ? void 0 : json["between"], - "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]), - "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]) + "scoped": !exists(json, "scoped") ? void 0 : PersonAccessScopedEnumFromJSON(json["scoped"]), + "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]) }; } -function FlattenedRangeToJSON(value) { +function PersonAccessToJSON(value) { if (value === void 0) { return void 0; } @@ -9843,33 +9703,27 @@ function FlattenedRangeToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "id": value.id, - "score": ScoreToJSON(value.score), - "created": GroupedTimestampToJSON(value.created), - "updated": GroupedTimestampToJSON(value.updated), - "to": GroupedTimestampToJSON(value.to), - "from": GroupedTimestampToJSON(value.from), - "between": value.between, - "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries), - "conversations": FlattenedConversationsToJSON(value.conversations) + "scoped": PersonAccessScopedEnumToJSON(value.scoped), + "deleted": GroupedTimestampToJSON(value.deleted) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ReferencedRange.ts -function ReferencedRangeFromJSON(json) { - return ReferencedRangeFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/PersonModel.ts +function PersonModelFromJSON(json) { + return PersonModelFromJSONTyped(json, false); } -function ReferencedRangeFromJSONTyped(json, ignoreDiscriminator) { +function PersonModelFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"], - "reference": !exists(json, "reference") ? void 0 : FlattenedRangeFromJSON(json["reference"]) + "asset": !exists(json, "asset") ? void 0 : ReferencedAssetFromJSON(json["asset"]), + "model": !exists(json, "model") ? void 0 : ReferencedModelFromJSON(json["model"]), + "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]), + "explanation": !exists(json, "explanation") ? void 0 : ReferencedAnnotationFromJSON(json["explanation"]) }; } -function ReferencedRangeToJSON(value) { +function PersonModelToJSON(value) { if (value === void 0) { return void 0; } @@ -9877,29 +9731,27 @@ function ReferencedRangeToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "id": value.id, - "reference": FlattenedRangeToJSON(value.reference) + "asset": ReferencedAssetToJSON(value.asset), + "model": ReferencedModelToJSON(value.model), + "deleted": GroupedTimestampToJSON(value.deleted), + "explanation": ReferencedAnnotationToJSON(value.explanation) }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedRanges.ts -function FlattenedRangesFromJSON(json) { - return FlattenedRangesFromJSONTyped2(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/Font.ts +function FontFromJSON(json) { + return FontFromJSONTyped(json, false); } -function FlattenedRangesFromJSONTyped2(json, ignoreDiscriminator) { +function FontFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "iterable": json["iterable"].map(ReferencedRangeFromJSON), - "indices": !exists(json, "indices") ? void 0 : json["indices"], - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), - "continuous": !exists(json, "continuous") ? void 0 : json["continuous"] + "size": json["size"] }; } -function FlattenedRangesToJSON(value) { +function FontToJSON(value) { if (value === void 0) { return void 0; } @@ -9908,26 +9760,24 @@ function FlattenedRangesToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "iterable": value.iterable.map(ReferencedRangeToJSON), - "indices": value.indices, - "score": ScoreToJSON(value.score), - "continuous": value.continuous + "size": value.size }; } -// ../generated_runtime/sdk/http/typescript/core/models/TemporalRangeGrounding.ts -function TemporalRangeGroundingFromJSON(json) { - return TemporalRangeGroundingFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/Theme.ts +function ThemeFromJSON(json) { + return ThemeFromJSONTyped(json, false); } -function TemporalRangeGroundingFromJSONTyped(json, ignoreDiscriminator) { +function ThemeFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "workstreams": !exists(json, "workstreams") ? void 0 : FlattenedRangesFromJSON(json["workstreams"]) + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "dark": json["dark"] }; } -function TemporalRangeGroundingToJSON(value) { +function ThemeToJSON(value) { if (value === void 0) { return void 0; } @@ -9935,25 +9785,26 @@ function TemporalRangeGroundingToJSON(value) { return null; } return { - "workstreams": FlattenedRangesToJSON(value.workstreams) + "schema": EmbeddedModelSchemaToJSON(value.schema), + "dark": value.dark }; } -// ../generated_runtime/sdk/http/typescript/core/models/ConversationGrounding.ts -function ConversationGroundingFromJSON(json) { - return ConversationGroundingFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/Aesthetics.ts +function AestheticsFromJSON(json) { + return AestheticsFromJSONTyped(json, false); } -function ConversationGroundingFromJSONTyped(json, ignoreDiscriminator) { +function AestheticsFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]), - "temporal": !exists(json, "temporal") ? void 0 : TemporalRangeGroundingFromJSON(json["temporal"]) + "theme": ThemeFromJSON(json["theme"]), + "font": FontFromJSON(json["font"]) }; } -function ConversationGroundingToJSON(value) { +function AestheticsToJSON(value) { if (value === void 0) { return void 0; } @@ -9962,35 +9813,43 @@ function ConversationGroundingToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "messages": FlattenedConversationMessagesToJSON(value.messages), - "temporal": TemporalRangeGroundingToJSON(value.temporal) + "theme": ThemeToJSON(value.theme), + "font": FontToJSON(value.font) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ConversationTypeEnum.ts -function ConversationTypeEnumFromJSON(json) { - return ConversationTypeEnumFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/AllocationStatusEnum.ts +var AllocationStatusEnum = { + Pending: "PENDING", + Running: "RUNNING", + Failed: "FAILED", + Succeeded: "SUCCEEDED", + Unknown: "UNKNOWN" +}; +function AllocationStatusEnumFromJSON(json) { + return AllocationStatusEnumFromJSONTyped(json, false); } -function ConversationTypeEnumFromJSONTyped(json, ignoreDiscriminator) { +function AllocationStatusEnumFromJSONTyped(json, ignoreDiscriminator) { return json; } -function ConversationTypeEnumToJSON(value) { +function AllocationStatusEnumToJSON(value) { return value; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForContextualizedCodeDialog.ts -function QGPTConversationPipelineForContextualizedCodeDialogFromJSON(json) { - return QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/AllocationCloudStatus.ts +function AllocationCloudStatusFromJSON(json) { + return AllocationCloudStatusFromJSONTyped(json, false); } -function QGPTConversationPipelineForContextualizedCodeDialogFromJSONTyped(json, ignoreDiscriminator) { +function AllocationCloudStatusFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "cloud": AllocationStatusEnumFromJSON(json["cloud"]) }; } -function QGPTConversationPipelineForContextualizedCodeDialogToJSON(value) { +function AllocationCloudStatusToJSON(value) { if (value === void 0) { return void 0; } @@ -9998,23 +9857,26 @@ function QGPTConversationPipelineForContextualizedCodeDialogToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema) + "schema": EmbeddedModelSchemaToJSON(value.schema), + "cloud": AllocationStatusEnumToJSON(value.cloud) }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForContextualizedCodeGeneration.ts -function QGPTConversationPipelineForContextualizedCodeGenerationFromJSON(json) { - return QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/AllocationCloudUrl.ts +function AllocationCloudUrlFromJSON(json) { + return AllocationCloudUrlFromJSONTyped(json, false); } -function QGPTConversationPipelineForContextualizedCodeGenerationFromJSONTyped(json, ignoreDiscriminator) { +function AllocationCloudUrlFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "status": AllocationStatusEnumFromJSON(json["status"]), + "url": json["url"] }; } -function QGPTConversationPipelineForContextualizedCodeGenerationToJSON(value) { +function AllocationCloudUrlToJSON(value) { if (value === void 0) { return void 0; } @@ -10022,23 +9884,28 @@ function QGPTConversationPipelineForContextualizedCodeGenerationToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema) + "schema": EmbeddedModelSchemaToJSON(value.schema), + "status": AllocationStatusEnumToJSON(value.status), + "url": value.url }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForContextualizedCodeWorkstreamDialog.ts -function QGPTConversationPipelineForContextualizedCodeWorkstreamDialogFromJSON(json) { - return QGPTConversationPipelineForContextualizedCodeWorkstreamDialogFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/AllocationCloudUrls.ts +function AllocationCloudUrlsFromJSON(json) { + return AllocationCloudUrlsFromJSONTyped(json, false); } -function QGPTConversationPipelineForContextualizedCodeWorkstreamDialogFromJSONTyped(json, ignoreDiscriminator) { +function AllocationCloudUrlsFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "base": AllocationCloudUrlFromJSON(json["base"]), + "id": AllocationCloudUrlFromJSON(json["id"]), + "vanity": !exists(json, "vanity") ? void 0 : AllocationCloudUrlFromJSON(json["vanity"]) }; } -function QGPTConversationPipelineForContextualizedCodeWorkstreamDialogToJSON(value) { +function AllocationCloudUrlsToJSON(value) { if (value === void 0) { return void 0; } @@ -10046,23 +9913,34 @@ function QGPTConversationPipelineForContextualizedCodeWorkstreamDialogToJSON(val return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema) + "schema": EmbeddedModelSchemaToJSON(value.schema), + "base": AllocationCloudUrlToJSON(value.base), + "id": AllocationCloudUrlToJSON(value.id), + "vanity": AllocationCloudUrlToJSON(value.vanity) }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipelineForGeneralizedCodeDialog.ts -function QGPTConversationPipelineForGeneralizedCodeDialogFromJSON(json) { - return QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/AllocationCloud.ts +function AllocationCloudFromJSON(json) { + return AllocationCloudFromJSONTyped(json, false); } -function QGPTConversationPipelineForGeneralizedCodeDialogFromJSONTyped(json, ignoreDiscriminator) { +function AllocationCloudFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "id": json["id"], + "user": json["user"], + "urls": AllocationCloudUrlsFromJSON(json["urls"]), + "status": AllocationCloudStatusFromJSON(json["status"]), + "project": json["project"], + "updated": !exists(json, "updated") ? void 0 : GroupedTimestampFromJSON(json["updated"]), + "version": !exists(json, "version") ? void 0 : json["version"], + "region": !exists(json, "region") ? void 0 : json["region"] }; } -function QGPTConversationPipelineForGeneralizedCodeDialogToJSON(value) { +function AllocationCloudToJSON(value) { if (value === void 0) { return void 0; } @@ -10070,27 +9948,34 @@ function QGPTConversationPipelineForGeneralizedCodeDialogToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema) + "schema": EmbeddedModelSchemaToJSON(value.schema), + "id": value.id, + "user": value.user, + "urls": AllocationCloudUrlsToJSON(value.urls), + "status": AllocationCloudStatusToJSON(value.status), + "project": value.project, + "updated": GroupedTimestampToJSON(value.updated), + "version": value.version, + "region": value.region }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationPipeline.ts -function QGPTConversationPipelineFromJSON(json) { - return QGPTConversationPipelineFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/Auth0OpenAIUserMetadata.ts +function Auth0OpenAIUserMetadataFromJSON(json) { + return Auth0OpenAIUserMetadataFromJSONTyped(json, false); } -function QGPTConversationPipelineFromJSONTyped(json, ignoreDiscriminator) { +function Auth0OpenAIUserMetadataFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "contextualizedCodeGeneration": !exists(json, "contextualized_code_generation") ? void 0 : QGPTConversationPipelineForContextualizedCodeGenerationFromJSON(json["contextualized_code_generation"]), - "generalizedCodeDialog": !exists(json, "generalized_code_dialog") ? void 0 : QGPTConversationPipelineForGeneralizedCodeDialogFromJSON(json["generalized_code_dialog"]), - "contextualizedCodeDialog": !exists(json, "contextualized_code_dialog") ? void 0 : QGPTConversationPipelineForContextualizedCodeDialogFromJSON(json["contextualized_code_dialog"]), - "contextualizedCodeWorkstreamDialog": !exists(json, "contextualized_code_workstream_dialog") ? void 0 : QGPTConversationPipelineForContextualizedCodeWorkstreamDialogFromJSON(json["contextualized_code_workstream_dialog"]) + "apiKey": !exists(json, "api_key") ? void 0 : json["api_key"], + "apiKeyName": !exists(json, "api_key_name") ? void 0 : json["api_key_name"], + "organizationKey": !exists(json, "organization_key") ? void 0 : json["organization_key"] }; } -function QGPTConversationPipelineToJSON(value) { +function Auth0OpenAIUserMetadataToJSON(value) { if (value === void 0) { return void 0; } @@ -10099,26 +9984,126 @@ function QGPTConversationPipelineToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "contextualized_code_generation": QGPTConversationPipelineForContextualizedCodeGenerationToJSON(value.contextualizedCodeGeneration), - "generalized_code_dialog": QGPTConversationPipelineForGeneralizedCodeDialogToJSON(value.generalizedCodeDialog), - "contextualized_code_dialog": QGPTConversationPipelineForContextualizedCodeDialogToJSON(value.contextualizedCodeDialog), - "contextualized_code_workstream_dialog": QGPTConversationPipelineForContextualizedCodeWorkstreamDialogToJSON(value.contextualizedCodeWorkstreamDialog) + "api_key": value.apiKey, + "api_key_name": value.apiKeyName, + "organization_key": value.organizationKey }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeCommentation.ts -function QGPTTaskPipelineForCodeCommentationFromJSON(json) { - return QGPTTaskPipelineForCodeCommentationFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/Auth0UserAllocationMetadata.ts +function Auth0UserAllocationMetadataFromJSON(json) { + return Auth0UserAllocationMetadataFromJSONTyped(json, false); } -function QGPTTaskPipelineForCodeCommentationFromJSONTyped(json, ignoreDiscriminator) { +function Auth0UserAllocationMetadataFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + "project": json["project"], + "region": json["region"] + }; +} +function Auth0UserAllocationMetadataToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "project": value.project, + "region": value.region + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/Auth0UserMetadata.ts +function Auth0UserMetadataFromJSON(json) { + return Auth0UserMetadataFromJSONTyped(json, false); +} +function Auth0UserMetadataFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "globalId": json["global_id"], + "cloudKey": !exists(json, "cloud_key") ? void 0 : json["cloud_key"], + "stripeCustomerId": !exists(json, "stripe_customer_id") ? void 0 : json["stripe_customer_id"], + "vanityname": !exists(json, "vanityname") ? void 0 : json["vanityname"], + "allocation": !exists(json, "allocation") ? void 0 : Auth0UserAllocationMetadataFromJSON(json["allocation"]), + "openAI": !exists(json, "open_AI") ? void 0 : Auth0OpenAIUserMetadataFromJSON(json["open_AI"]), + "beta": !exists(json, "beta") ? void 0 : AnonymousTemporalRangeFromJSON(json["beta"]) + }; +} +function Auth0UserMetadataToJSON(value) { + if (value === void 0) { + return void 0; + } + if (value === null) { + return null; + } + return { + "schema": EmbeddedModelSchemaToJSON(value.schema), + "global_id": value.globalId, + "cloud_key": value.cloudKey, + "stripe_customer_id": value.stripeCustomerId, + "vanityname": value.vanityname, + "allocation": Auth0UserAllocationMetadataToJSON(value.allocation), + "open_AI": Auth0OpenAIUserMetadataToJSON(value.openAI), + "beta": AnonymousTemporalRangeToJSON(value.beta) + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/ExternalProviderProfileData.ts +function ExternalProviderProfileDataFromJSON(json) { + return ExternalProviderProfileDataFromJSONTyped(json, false); +} +function ExternalProviderProfileDataFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "name": !exists(json, "name") ? void 0 : json["name"], + "picture": !exists(json, "picture") ? void 0 : json["picture"], + "nickname": !exists(json, "nickname") ? void 0 : json["nickname"], + "email": !exists(json, "email") ? void 0 : json["email"], + "emailVerified": !exists(json, "email_verified") ? void 0 : json["email_verified"], + "nodeId": !exists(json, "node_id") ? void 0 : json["node_id"], + "gravatarId": !exists(json, "gravatar_id") ? void 0 : json["gravatar_id"], + "url": !exists(json, "url") ? void 0 : json["url"], + "htmlUrl": !exists(json, "html_url") ? void 0 : json["html_url"], + "followersUrl": !exists(json, "followers_url") ? void 0 : json["followers_url"], + "followingUrl": !exists(json, "following_url") ? void 0 : json["following_url"], + "gistsUrl": !exists(json, "gists_url") ? void 0 : json["gists_url"], + "starredUrl": !exists(json, "starred_url") ? void 0 : json["starred_url"], + "subscriptionsUrl": !exists(json, "subscriptions_url") ? void 0 : json["subscriptions_url"], + "organizationsUrl": !exists(json, "organizations_url") ? void 0 : json["organizations_url"], + "reposUrl": !exists(json, "repos_url") ? void 0 : json["repos_url"], + "eventsUrl": !exists(json, "events_url") ? void 0 : json["events_url"], + "receivedEventsUrl": !exists(json, "received_events_url") ? void 0 : json["received_events_url"], + "type": !exists(json, "type") ? void 0 : json["type"], + "siteAdmin": !exists(json, "site_admin") ? void 0 : json["site_admin"], + "company": !exists(json, "company") ? void 0 : json["company"], + "blog": !exists(json, "blog") ? void 0 : json["blog"], + "anchor": !exists(json, "anchor") ? void 0 : json["anchor"], + "hireable": !exists(json, "hireable") ? void 0 : json["hireable"], + "bio": !exists(json, "bio") ? void 0 : json["bio"], + "twitterUsername": !exists(json, "twitter_username") ? void 0 : json["twitter_username"], + "publicRepos": !exists(json, "public_repos") ? void 0 : json["public_repos"], + "publicGists": !exists(json, "public_gists") ? void 0 : json["public_gists"], + "followers": !exists(json, "followers") ? void 0 : json["followers"], + "following": !exists(json, "following") ? void 0 : json["following"], + "createdAt": !exists(json, "created_at") ? void 0 : json["created_at"], + "updatedAt": !exists(json, "updated_at") ? void 0 : json["updated_at"], + "privateGists": !exists(json, "private_gists") ? void 0 : json["private_gists"], + "totalPrivateRepos": !exists(json, "total_private_repos") ? void 0 : json["total_private_repos"], + "ownedPrivateRepos": !exists(json, "owned_private_repos") ? void 0 : json["owned_private_repos"], + "diskUsage": !exists(json, "disk_usage") ? void 0 : json["disk_usage"], + "collaborators": !exists(json, "collaborators") ? void 0 : json["collaborators"], + "twoFactorAuthentication": !exists(json, "two_factor_authentication") ? void 0 : json["two_factor_authentication"] }; } -function QGPTTaskPipelineForCodeCommentationToJSON(value) { +function ExternalProviderProfileDataToJSON(value) { if (value === void 0) { return void 0; } @@ -10126,49 +10111,80 @@ function QGPTTaskPipelineForCodeCommentationToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema) + "name": value.name, + "picture": value.picture, + "nickname": value.nickname, + "email": value.email, + "email_verified": value.emailVerified, + "node_id": value.nodeId, + "gravatar_id": value.gravatarId, + "url": value.url, + "html_url": value.htmlUrl, + "followers_url": value.followersUrl, + "following_url": value.followingUrl, + "gists_url": value.gistsUrl, + "starred_url": value.starredUrl, + "subscriptions_url": value.subscriptionsUrl, + "organizations_url": value.organizationsUrl, + "repos_url": value.reposUrl, + "events_url": value.eventsUrl, + "received_events_url": value.receivedEventsUrl, + "type": value.type, + "site_admin": value.siteAdmin, + "company": value.company, + "blog": value.blog, + "anchor": value.anchor, + "hireable": value.hireable, + "bio": value.bio, + "twitter_username": value.twitterUsername, + "public_repos": value.publicRepos, + "public_gists": value.publicGists, + "followers": value.followers, + "following": value.following, + "created_at": value.createdAt, + "updated_at": value.updatedAt, + "private_gists": value.privateGists, + "total_private_repos": value.totalPrivateRepos, + "owned_private_repos": value.ownedPrivateRepos, + "disk_usage": value.diskUsage, + "collaborators": value.collaborators, + "two_factor_authentication": value.twoFactorAuthentication }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeCompletion.ts -function QGPTTaskPipelineForCodeCompletionFromJSON(json) { - return QGPTTaskPipelineForCodeCompletionFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ExternalProviderTypeEnum.ts +function ExternalProviderTypeEnumFromJSON(json) { + return ExternalProviderTypeEnumFromJSONTyped(json, false); } -function QGPTTaskPipelineForCodeCompletionFromJSONTyped(json, ignoreDiscriminator) { - if (json === void 0 || json === null) { - return json; - } - return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "context": !exists(json, "context") ? void 0 : json["context"] - }; +function ExternalProviderTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; } -function QGPTTaskPipelineForCodeCompletionToJSON(value) { - if (value === void 0) { - return void 0; - } - if (value === null) { - return null; - } - return { - "schema": EmbeddedModelSchemaToJSON(value.schema), - "context": value.context - }; +function ExternalProviderTypeEnumToJSON(value) { + return value; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeExplanation.ts -function QGPTTaskPipelineForCodeExplanationFromJSON(json) { - return QGPTTaskPipelineForCodeExplanationFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ExternalProvider.ts +function ExternalProviderFromJSON(json) { + return ExternalProviderFromJSONTyped(json, false); } -function QGPTTaskPipelineForCodeExplanationFromJSONTyped(json, ignoreDiscriminator) { +function ExternalProviderFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]) + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "type": ExternalProviderTypeEnumFromJSON(json["type"]), + "userId": json["user_id"], + "accessToken": !exists(json, "access_token") ? void 0 : json["access_token"], + "expiresIn": !exists(json, "expires_in") ? void 0 : json["expires_in"], + "created": GroupedTimestampFromJSON(json["created"]), + "updated": GroupedTimestampFromJSON(json["updated"]), + "profileData": !exists(json, "profileData") ? void 0 : ExternalProviderProfileDataFromJSON(json["profileData"]), + "connection": !exists(json, "connection") ? void 0 : json["connection"], + "isSocial": !exists(json, "isSocial") ? void 0 : json["isSocial"] }; } -function QGPTTaskPipelineForCodeExplanationToJSON(value) { +function ExternalProviderToJSON(value) { if (value === void 0) { return void 0; } @@ -10176,24 +10192,33 @@ function QGPTTaskPipelineForCodeExplanationToJSON(value) { return null; } return { - "schema": EmbeddedModelSchemaToJSON(value.schema) + "schema": EmbeddedModelSchemaToJSON(value.schema), + "type": ExternalProviderTypeEnumToJSON(value.type), + "user_id": value.userId, + "access_token": value.accessToken, + "expires_in": value.expiresIn, + "created": GroupedTimestampToJSON(value.created), + "updated": GroupedTimestampToJSON(value.updated), + "profileData": ExternalProviderProfileDataToJSON(value.profileData), + "connection": value.connection, + "isSocial": value.isSocial }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeFix.ts -function QGPTTaskPipelineForCodeFixFromJSON(json) { - return QGPTTaskPipelineForCodeFixFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ExternalProviders.ts +function ExternalProvidersFromJSON(json) { + return ExternalProvidersFromJSONTyped(json, false); } -function QGPTTaskPipelineForCodeFixFromJSONTyped(json, ignoreDiscriminator) { +function ExternalProvidersFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "error": !exists(json, "error") ? void 0 : json["error"] + "iterable": json["iterable"].map(ExternalProviderFromJSON) }; } -function QGPTTaskPipelineForCodeFixToJSON(value) { +function ExternalProvidersToJSON(value) { if (value === void 0) { return void 0; } @@ -10202,24 +10227,35 @@ function QGPTTaskPipelineForCodeFixToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "error": value.error + "iterable": value.iterable.map(ExternalProviderToJSON) }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipelineForCodeModification.ts -function QGPTTaskPipelineForCodeModificationFromJSON(json) { - return QGPTTaskPipelineForCodeModificationFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/UserProfile.ts +function UserProfileFromJSON(json) { + return UserProfileFromJSONTyped(json, false); } -function QGPTTaskPipelineForCodeModificationFromJSONTyped(json, ignoreDiscriminator) { +function UserProfileFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "instruction": !exists(json, "instruction") ? void 0 : json["instruction"] + "picture": !exists(json, "picture") ? void 0 : json["picture"], + "email": !exists(json, "email") ? void 0 : json["email"], + "created": !exists(json, "created") ? void 0 : GroupedTimestampFromJSON(json["created"]), + "updated": !exists(json, "updated") ? void 0 : GroupedTimestampFromJSON(json["updated"]), + "username": !exists(json, "username") ? void 0 : json["username"], + "id": json["id"], + "name": !exists(json, "name") ? void 0 : json["name"], + "aesthetics": AestheticsFromJSON(json["aesthetics"]), + "vanityname": !exists(json, "vanityname") ? void 0 : json["vanityname"], + "allocation": !exists(json, "allocation") ? void 0 : AllocationCloudFromJSON(json["allocation"]), + "providers": !exists(json, "providers") ? void 0 : ExternalProvidersFromJSON(json["providers"]), + "auth0": !exists(json, "auth0") ? void 0 : Auth0UserMetadataFromJSON(json["auth0"]) }; } -function QGPTTaskPipelineForCodeModificationToJSON(value) { +function UserProfileToJSON(value) { if (value === void 0) { return void 0; } @@ -10228,28 +10264,36 @@ function QGPTTaskPipelineForCodeModificationToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "instruction": value.instruction + "picture": value.picture, + "email": value.email, + "created": GroupedTimestampToJSON(value.created), + "updated": GroupedTimestampToJSON(value.updated), + "username": value.username, + "id": value.id, + "name": value.name, + "aesthetics": AestheticsToJSON(value.aesthetics), + "vanityname": value.vanityname, + "allocation": AllocationCloudToJSON(value.allocation), + "providers": ExternalProvidersToJSON(value.providers), + "auth0": Auth0UserMetadataToJSON(value.auth0) }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTTaskPipeline.ts -function QGPTTaskPipelineFromJSON(json) { - return QGPTTaskPipelineFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/PersonType.ts +function PersonTypeFromJSON(json) { + return PersonTypeFromJSONTyped(json, false); } -function QGPTTaskPipelineFromJSONTyped(json, ignoreDiscriminator) { +function PersonTypeFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "codeExplanation": !exists(json, "code_explanation") ? void 0 : QGPTTaskPipelineForCodeExplanationFromJSON(json["code_explanation"]), - "codeCommentation": !exists(json, "code_commentation") ? void 0 : QGPTTaskPipelineForCodeCommentationFromJSON(json["code_commentation"]), - "codeFix": !exists(json, "code_fix") ? void 0 : QGPTTaskPipelineForCodeFixFromJSON(json["code_fix"]), - "codeModification": !exists(json, "code_modification") ? void 0 : QGPTTaskPipelineForCodeModificationFromJSON(json["code_modification"]), - "codeCompletion": !exists(json, "code_completion") ? void 0 : QGPTTaskPipelineForCodeCompletionFromJSON(json["code_completion"]) + "basic": !exists(json, "basic") ? void 0 : PersonBasicTypeFromJSON(json["basic"]), + "platform": !exists(json, "platform") ? void 0 : UserProfileFromJSON(json["platform"]) }; } -function QGPTTaskPipelineToJSON(value) { +function PersonTypeToJSON(value) { if (value === void 0) { return void 0; } @@ -10258,29 +10302,41 @@ function QGPTTaskPipelineToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "code_explanation": QGPTTaskPipelineForCodeExplanationToJSON(value.codeExplanation), - "code_commentation": QGPTTaskPipelineForCodeCommentationToJSON(value.codeCommentation), - "code_fix": QGPTTaskPipelineForCodeFixToJSON(value.codeFix), - "code_modification": QGPTTaskPipelineForCodeModificationToJSON(value.codeModification), - "code_completion": QGPTTaskPipelineForCodeCompletionToJSON(value.codeCompletion) + "basic": PersonBasicTypeToJSON(value.basic), + "platform": UserProfileToJSON(value.platform) }; } -// ../generated_runtime/sdk/http/typescript/core/models/QGPTPromptPipeline.ts -function QGPTPromptPipelineFromJSON(json) { - return QGPTPromptPipelineFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedPerson.ts +function FlattenedPersonFromJSON(json) { + return FlattenedPersonFromJSONTyped(json, false); } -function QGPTPromptPipelineFromJSONTyped(json, ignoreDiscriminator) { +function FlattenedPersonFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "task": !exists(json, "task") ? void 0 : QGPTTaskPipelineFromJSON(json["task"]), - "conversation": !exists(json, "conversation") ? void 0 : QGPTConversationPipelineFromJSON(json["conversation"]) + "id": json["id"], + "created": GroupedTimestampFromJSON(json["created"]), + "updated": GroupedTimestampFromJSON(json["updated"]), + "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]), + "type": PersonTypeFromJSON(json["type"]), + "assets": !exists(json, "assets") ? void 0 : FlattenedAssetsFromJSON(json["assets"]), + "mechanisms": !exists(json, "mechanisms") ? void 0 : mapValues(json["mechanisms"], MechanismEnumFromJSON), + "interactions": !exists(json, "interactions") ? void 0 : json["interactions"], + "access": !exists(json, "access") ? void 0 : mapValues(json["access"], PersonAccessFromJSON), + "tags": !exists(json, "tags") ? void 0 : FlattenedTagsFromJSON(json["tags"]), + "websites": !exists(json, "websites") ? void 0 : FlattenedWebsitesFromJSON(json["websites"]), + "models": !exists(json, "models") ? void 0 : mapValues(json["models"], PersonModelFromJSON), + "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), + "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]), + "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), + "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]) }; } -function QGPTPromptPipelineToJSON(value) { +function FlattenedPersonToJSON(value) { if (value === void 0) { return void 0; } @@ -10289,43 +10345,41 @@ function QGPTPromptPipelineToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "task": QGPTTaskPipelineToJSON(value.task), - "conversation": QGPTConversationPipelineToJSON(value.conversation) + "id": value.id, + "created": GroupedTimestampToJSON(value.created), + "updated": GroupedTimestampToJSON(value.updated), + "deleted": GroupedTimestampToJSON(value.deleted), + "type": PersonTypeToJSON(value.type), + "assets": FlattenedAssetsToJSON(value.assets), + "mechanisms": value.mechanisms === void 0 ? void 0 : mapValues(value.mechanisms, MechanismEnumToJSON), + "interactions": value.interactions, + "access": value.access === void 0 ? void 0 : mapValues(value.access, PersonAccessToJSON), + "tags": FlattenedTagsToJSON(value.tags), + "websites": FlattenedWebsitesToJSON(value.websites), + "models": value.models === void 0 ? void 0 : mapValues(value.models, PersonModelToJSON), + "annotations": FlattenedAnnotationsToJSON(value.annotations), + "score": ScoreToJSON(value.score), + "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries), + "anchors": FlattenedAnchorsToJSON(value.anchors), + "messages": FlattenedConversationMessagesToJSON(value.messages) }; } -// ../generated_runtime/sdk/http/typescript/core/models/FlattenedConversation.ts -function FlattenedConversationFromJSON(json) { - return FlattenedConversationFromJSONTyped(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/ReferencedPerson.ts +function ReferencedPersonFromJSON(json) { + return ReferencedPersonFromJSONTyped(json, false); } -function FlattenedConversationFromJSONTyped(json, ignoreDiscriminator) { +function ReferencedPersonFromJSONTyped(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), "id": json["id"], - "name": !exists(json, "name") ? void 0 : json["name"], - "created": GroupedTimestampFromJSON(json["created"]), - "updated": GroupedTimestampFromJSON(json["updated"]), - "deleted": !exists(json, "deleted") ? void 0 : GroupedTimestampFromJSON(json["deleted"]), - "favorited": !exists(json, "favorited") ? void 0 : json["favorited"], - "application": !exists(json, "application") ? void 0 : ApplicationFromJSON(json["application"]), - "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), - "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"]), - "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), - "pipeline": !exists(json, "pipeline") ? void 0 : QGPTPromptPipelineFromJSON(json["pipeline"]), - "demo": !exists(json, "demo") ? void 0 : json["demo"], - "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]) + "reference": !exists(json, "reference") ? void 0 : FlattenedPersonFromJSON(json["reference"]) }; } -function FlattenedConversationToJSON(value) { +function ReferencedPersonToJSON(value) { if (value === void 0) { return void 0; } @@ -10335,42 +10389,26 @@ function FlattenedConversationToJSON(value) { return { "schema": EmbeddedModelSchemaToJSON(value.schema), "id": value.id, - "name": value.name, - "created": GroupedTimestampToJSON(value.created), - "updated": GroupedTimestampToJSON(value.updated), - "deleted": GroupedTimestampToJSON(value.deleted), - "favorited": value.favorited, - "application": ApplicationToJSON(value.application), - "annotations": FlattenedAnnotationsToJSON(value.annotations), - "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), - "score": ScoreToJSON(value.score), - "pipeline": QGPTPromptPipelineToJSON(value.pipeline), - "demo": value.demo, - "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries) + "reference": FlattenedPersonToJSON(value.reference) }; } -// ../generated_runtime/sdk/http/typescript/core/models/ReferencedConversation.ts -function ReferencedConversationFromJSON(json) { - return ReferencedConversationFromJSONTyped2(json, false); +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedPersons.ts +function FlattenedPersonsFromJSON(json) { + return FlattenedPersonsFromJSONTyped5(json, false); } -function ReferencedConversationFromJSONTyped2(json, ignoreDiscriminator) { +function FlattenedPersonsFromJSONTyped5(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } return { "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"], - "reference": !exists(json, "reference") ? void 0 : FlattenedConversationFromJSON(json["reference"]) + "iterable": json["iterable"].map(ReferencedPersonFromJSON), + "indices": !exists(json, "indices") ? void 0 : json["indices"], + "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]) }; } -function ReferencedConversationToJSON(value) { +function FlattenedPersonsToJSON(value) { if (value === void 0) { return void 0; } @@ -10379,11 +10417,23 @@ function ReferencedConversationToJSON(value) { } return { "schema": EmbeddedModelSchemaToJSON(value.schema), - "id": value.id, - "reference": FlattenedConversationToJSON(value.reference) + "iterable": value.iterable.map(ReferencedPersonToJSON), + "indices": value.indices, + "score": ScoreToJSON(value.score) }; } +// ../generated_runtime/sdk/http/typescript/core/models/QGPTConversationMessageRoleEnum.ts +function QGPTConversationMessageRoleEnumFromJSON(json) { + return QGPTConversationMessageRoleEnumFromJSONTyped(json, false); +} +function QGPTConversationMessageRoleEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function QGPTConversationMessageRoleEnumToJSON(value) { + return value; +} + // ../generated_runtime/sdk/http/typescript/core/models/FlattenedConversationMessage.ts function FlattenedConversationMessageFromJSON(json) { return FlattenedConversationMessageFromJSONTyped(json, false); @@ -10404,7 +10454,10 @@ function FlattenedConversationMessageFromJSONTyped(json, ignoreDiscriminator) { "sentiment": !exists(json, "sentiment") ? void 0 : ConversationMessageSentimentEnumFromJSON(json["sentiment"]), "role": QGPTConversationMessageRoleEnumFromJSON(json["role"]), "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), - "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]) + "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), + "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), + "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]), + "websites": !exists(json, "websites") ? void 0 : FlattenedWebsitesFromJSON(json["websites"]) }; } function FlattenedConversationMessageToJSON(value) { @@ -10426,7 +10479,10 @@ function FlattenedConversationMessageToJSON(value) { "sentiment": ConversationMessageSentimentEnumToJSON(value.sentiment), "role": QGPTConversationMessageRoleEnumToJSON(value.role), "score": ScoreToJSON(value.score), - "annotations": FlattenedAnnotationsToJSON(value.annotations) + "annotations": FlattenedAnnotationsToJSON(value.annotations), + "anchors": FlattenedAnchorsToJSON(value.anchors), + "persons": FlattenedPersonsToJSON(value.persons), + "websites": FlattenedWebsitesToJSON(value.websites) }; } @@ -10460,9 +10516,9 @@ function ReferencedConversationMessageToJSON(value) { // ../generated_runtime/sdk/http/typescript/core/models/FlattenedConversationMessages.ts function FlattenedConversationMessagesFromJSON(json) { - return FlattenedConversationMessagesFromJSONTyped4(json, false); + return FlattenedConversationMessagesFromJSONTyped6(json, false); } -function FlattenedConversationMessagesFromJSONTyped4(json, ignoreDiscriminator) { +function FlattenedConversationMessagesFromJSONTyped6(json, ignoreDiscriminator) { if (json === void 0 || json === null) { return json; } @@ -10627,7 +10683,8 @@ function FlattenedAnchorFromJSONTyped(json, ignoreDiscriminator) { "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]), "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]), - "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]) + "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]), + "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]) }; } function FlattenedAnchorToJSON(value) { @@ -10652,7 +10709,8 @@ function FlattenedAnchorToJSON(value) { "conversations": FlattenedConversationsToJSON(value.conversations), "score": ScoreToJSON(value.score), "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries), - "persons": FlattenedPersonsToJSON(value.persons) + "persons": FlattenedPersonsToJSON(value.persons), + "messages": FlattenedConversationMessagesToJSON(value.messages) }; } @@ -13582,7 +13640,8 @@ function AnchorFromJSONTyped(json, ignoreDiscriminator) { "conversations": !exists(json, "conversations") ? void 0 : FlattenedConversationsFromJSON(json["conversations"]), "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]), - "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]) + "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]), + "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]) }; } function AnchorToJSON(value) { @@ -13607,7 +13666,8 @@ function AnchorToJSON(value) { "conversations": FlattenedConversationsToJSON(value.conversations), "score": ScoreToJSON(value.score), "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries), - "persons": FlattenedPersonsToJSON(value.persons) + "persons": FlattenedPersonsToJSON(value.persons), + "messages": FlattenedConversationMessagesToJSON(value.messages) }; } @@ -13988,7 +14048,8 @@ function PersonFromJSONTyped(json, ignoreDiscriminator) { "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]), - "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]) + "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]), + "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]) }; } function PersonToJSON(value) { @@ -14015,7 +14076,8 @@ function PersonToJSON(value) { "annotations": FlattenedAnnotationsToJSON(value.annotations), "score": ScoreToJSON(value.score), "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries), - "anchors": FlattenedAnchorsToJSON(value.anchors) + "anchors": FlattenedAnchorsToJSON(value.anchors), + "messages": FlattenedConversationMessagesToJSON(value.messages) }; } @@ -14397,7 +14459,8 @@ function WebsiteFromJSONTyped(json, ignoreDiscriminator) { "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"]), - "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]) + "summaries": !exists(json, "summaries") ? void 0 : FlattenedWorkstreamSummariesFromJSON(json["summaries"]), + "messages": !exists(json, "messages") ? void 0 : FlattenedConversationMessagesFromJSON(json["messages"]) }; } function WebsiteToJSON(value) { @@ -14421,7 +14484,8 @@ function WebsiteToJSON(value) { "persons": FlattenedPersonsToJSON(value.persons), "conversations": FlattenedConversationsToJSON(value.conversations), "score": ScoreToJSON(value.score), - "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries) + "summaries": FlattenedWorkstreamSummariesToJSON(value.summaries), + "messages": FlattenedConversationMessagesToJSON(value.messages) }; } @@ -15022,7 +15086,10 @@ function ConversationMessageFromJSONTyped(json, ignoreDiscriminator) { "sentiment": !exists(json, "sentiment") ? void 0 : ConversationMessageSentimentEnumFromJSON(json["sentiment"]), "role": QGPTConversationMessageRoleEnumFromJSON(json["role"]), "score": !exists(json, "score") ? void 0 : ScoreFromJSON(json["score"]), - "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]) + "annotations": !exists(json, "annotations") ? void 0 : FlattenedAnnotationsFromJSON(json["annotations"]), + "websites": !exists(json, "websites") ? void 0 : FlattenedWebsitesFromJSON(json["websites"]), + "persons": !exists(json, "persons") ? void 0 : FlattenedPersonsFromJSON(json["persons"]), + "anchors": !exists(json, "anchors") ? void 0 : FlattenedAnchorsFromJSON(json["anchors"]) }; } function ConversationMessageToJSON(value) { @@ -15044,7 +15111,10 @@ function ConversationMessageToJSON(value) { "sentiment": ConversationMessageSentimentEnumToJSON(value.sentiment), "role": QGPTConversationMessageRoleEnumToJSON(value.role), "score": ScoreToJSON(value.score), - "annotations": FlattenedAnnotationsToJSON(value.annotations) + "annotations": FlattenedAnnotationsToJSON(value.annotations), + "websites": FlattenedWebsitesToJSON(value.websites), + "persons": FlattenedPersonsToJSON(value.persons), + "anchors": FlattenedAnchorsToJSON(value.anchors) }; } @@ -15107,6 +15177,35 @@ function ConversationsCreateFromAssetOutputFromJSONTyped(json, ignoreDiscriminat }; } +// ../generated_runtime/sdk/http/typescript/core/models/DetectedExternalApplication.ts +function DetectedExternalApplicationFromJSON(json) { + return DetectedExternalApplicationFromJSONTyped(json, false); +} +function DetectedExternalApplicationFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "name": json["name"], + "version": !exists(json, "version") ? void 0 : json["version"] + }; +} + +// ../generated_runtime/sdk/http/typescript/core/models/DetectedExternalApplications.ts +function DetectedExternalApplicationsFromJSON(json) { + return DetectedExternalApplicationsFromJSONTyped(json, false); +} +function DetectedExternalApplicationsFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "iterable": json["iterable"].map(DetectedExternalApplicationFromJSON) + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/SeededAssetSensitive.ts function SeededAssetSensitiveFromJSON(json) { return SeededAssetSensitiveFromJSONTyped(json, false); @@ -15680,6 +15779,28 @@ function FilePickerInputToJSON(value) { }; } +// ../generated_runtime/sdk/http/typescript/core/models/FlattenedApplication.ts +function FlattenedApplicationFromJSON(json) { + return FlattenedApplicationFromJSONTyped(json, false); +} +function FlattenedApplicationFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "id": json["id"], + "name": ApplicationNameEnumFromJSON(json["name"]), + "version": json["version"], + "platform": PlatformEnumFromJSON(json["platform"]), + "onboarded": json["onboarded"], + "privacy": PrivacyEnumFromJSON(json["privacy"]), + "capabilities": !exists(json, "capabilities") ? void 0 : CapabilitiesEnumFromJSON(json["capabilities"]), + "mechanism": !exists(json, "mechanism") ? void 0 : MechanismEnumFromJSON(json["mechanism"]), + "automaticUnload": !exists(json, "automaticUnload") ? void 0 : json["automaticUnload"] + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/FormatReclassification.ts function FormatReclassificationToJSON(value) { if (value === void 0) { @@ -16452,7 +16573,8 @@ function SeededModelToJSON(value) { "provider": ExternalMLProviderEnumToJSON(value.provider), "cpu": value.cpu, "maxTokens": ModelMaxTokensToJSON(value.maxTokens), - "custom": value.custom + "custom": value.custom, + "capabilities": ModelCapabilitiesToJSON(value.capabilities) }; } @@ -16569,6 +16691,7 @@ function RelevantQGPTSeedFromJSONTyped(json, ignoreDiscriminator) { "id": !exists(json, "id") ? void 0 : json["id"], "seed": !exists(json, "seed") ? void 0 : SeedFromJSON(json["seed"]), "path": !exists(json, "path") ? void 0 : json["path"], + "anchor": !exists(json, "anchor") ? void 0 : ReferencedAnchorFromJSON(json["anchor"]), "asset": !exists(json, "asset") ? void 0 : ReferencedAssetFromJSON(json["asset"]) }; } @@ -16584,6 +16707,7 @@ function RelevantQGPTSeedToJSON(value) { "id": value.id, "seed": SeedToJSON(value.seed), "path": value.path, + "anchor": ReferencedAnchorToJSON(value.anchor), "asset": ReferencedAssetToJSON(value.asset) }; } @@ -16745,7 +16869,8 @@ function QGPTRelevanceInputToJSON(value) { "options": QGPTRelevanceInputOptionsToJSON(value.options), "application": value.application, "model": value.model, - "temporal": TemporalRangeGroundingToJSON(value.temporal) + "temporal": TemporalRangeGroundingToJSON(value.temporal), + "anchors": FlattenedAnchorsToJSON(value.anchors) }; } @@ -16989,6 +17114,21 @@ function ReactionToJSON(value) { }; } +// ../generated_runtime/sdk/http/typescript/core/models/ReferencedApplication.ts +function ReferencedApplicationFromJSON(json) { + return ReferencedApplicationFromJSONTyped(json, false); +} +function ReferencedApplicationFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), + "id": json["id"], + "reference": !exists(json, "reference") ? void 0 : FlattenedApplicationFromJSON(json["reference"]) + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/ReferencedUser.ts function ReferencedUserToJSON(value) { if (value === void 0) { @@ -17661,6 +17801,21 @@ function SeededScoreIncrementToJSON(value) { }; } +// ../generated_runtime/sdk/http/typescript/core/models/Session.ts +function SessionFromJSON(json) { + return SessionFromJSONTyped(json, false); +} +function SessionFromJSONTyped(json, ignoreDiscriminator) { + if (json === void 0 || json === null) { + return json; + } + return { + "id": json["id"], + "opened": GroupedTimestampFromJSON(json["opened"]), + "closed": !exists(json, "closed") ? void 0 : GroupedTimestampFromJSON(json["closed"]) + }; +} + // ../generated_runtime/sdk/http/typescript/core/models/StreamedIdentifier.ts function StreamedIdentifierFromJSON(json) { return StreamedIdentifierFromJSONTyped(json, false); @@ -17672,6 +17827,20 @@ function StreamedIdentifierFromJSONTyped(json, ignoreDiscriminator) { return { "asset": !exists(json, "asset") ? void 0 : ReferencedAssetFromJSON(json["asset"]), "conversation": !exists(json, "conversation") ? void 0 : ReferencedConversationFromJSON(json["conversation"]), + "annotation": !exists(json, "annotation") ? void 0 : ReferencedAnnotationFromJSON(json["annotation"]), + "activity": !exists(json, "activity") ? void 0 : ReferencedActivityFromJSON(json["activity"]), + "anchor": !exists(json, "anchor") ? void 0 : ReferencedAnchorFromJSON(json["anchor"]), + "anchorPoint": !exists(json, "anchorPoint") ? void 0 : ReferencedAnchorPointFromJSON(json["anchorPoint"]), + "hint": !exists(json, "hint") ? void 0 : ReferencedHintFromJSON(json["hint"]), + "conversationMessage": !exists(json, "conversationMessage") ? void 0 : ReferencedConversationMessageFromJSON(json["conversationMessage"]), + "format": !exists(json, "format") ? void 0 : ReferencedFormatFromJSON(json["format"]), + "person": !exists(json, "person") ? void 0 : ReferencedPersonFromJSON(json["person"]), + "range": !exists(json, "range") ? void 0 : ReferencedRangeFromJSON(json["range"]), + "sensitive": !exists(json, "sensitive") ? void 0 : ReferencedSensitiveFromJSON(json["sensitive"]), + "tag": !exists(json, "tag") ? void 0 : ReferencedTagFromJSON(json["tag"]), + "website": !exists(json, "website") ? void 0 : ReferencedWebsiteFromJSON(json["website"]), + "application": !exists(json, "application") ? void 0 : ReferencedApplicationFromJSON(json["application"]), + "model": !exists(json, "model") ? void 0 : ReferencedModelFromJSON(json["model"]), "deleted": !exists(json, "deleted") ? void 0 : json["deleted"] }; } @@ -17739,41 +17908,6 @@ function TerminatingOSServerAppletToJSON(value) { }; } -// ../generated_runtime/sdk/http/typescript/core/models/TrackedFormat.ts -function TrackedFormatFromJSON(json) { - return TrackedFormatFromJSONTyped(json, false); -} -function TrackedFormatFromJSONTyped(json, ignoreDiscriminator) { - if (json === void 0 || json === null) { - return json; - } - return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "id": json["id"], - "classification": ClassificationFromJSON(json["classification"]), - "role": RoleFromJSON(json["role"]), - "asset": json["asset"], - "fragment": json["fragment"], - "file": json["file"] - }; -} - -// ../generated_runtime/sdk/http/typescript/core/models/TrackedFormatEvent.ts -function TrackedFormatEventFromJSON(json) { - return TrackedFormatEventFromJSONTyped(json, false); -} -function TrackedFormatEventFromJSONTyped(json, ignoreDiscriminator) { - if (json === void 0 || json === null) { - return json; - } - return { - "schema": !exists(json, "schema") ? void 0 : EmbeddedModelSchemaFromJSON(json["schema"]), - "format": TrackedFormatFromJSON(json[" format"]), - "identifierDescriptionPair": TrackedFormatEventIdentifierDescriptionPairsFromJSON(json["identifier_description_pair"]), - "metadata": !exists(json, "metadata") ? void 0 : TrackedFormatEventMetadataFromJSON(json["metadata"]) - }; -} - // ../generated_runtime/sdk/http/typescript/core/models/UncheckedOSServerUpdate.ts function UncheckedOSServerUpdateToJSON(value) { if (value === void 0) { @@ -17932,6 +18066,29 @@ var ActivitiesApi = class extends BaseAPI { const response = await this.activitiesSnapshotRaw(requestParameters, initOverrides); return await response.value(); } + /** + * Provides a WebSocket connection that emits changes to your activity identifiers (UUIDs). + * /activities/stream/identifiers [WS] + */ + async activitiesStreamIdentifiersRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/activities/stream/identifiers`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => StreamedIdentifiersFromJSON(jsonValue)); + } + /** + * Provides a WebSocket connection that emits changes to your activity identifiers (UUIDs). + * /activities/stream/identifiers [WS] + */ + async activitiesStreamIdentifiers(initOverrides) { + const response = await this.activitiesStreamIdentifiersRaw(initOverrides); + return await response.value(); + } }; // ../generated_runtime/sdk/http/typescript/core/apis/ActivityApi.ts @@ -18242,6 +18399,34 @@ var AnchorApi = class extends BaseAPI { async anchorAssociateConversation(requestParameters, initOverrides) { await this.anchorAssociateConversationRaw(requestParameters, initOverrides); } + /** + * This will associate a anchor with a message. + * /anchor/{anchor}/messages/associate/{message} [POST] + */ + async anchorAssociateMessageRaw(requestParameters, initOverrides) { + if (requestParameters.anchor === null || requestParameters.anchor === void 0) { + throw new RequiredError("anchor", "Required parameter requestParameters.anchor was null or undefined when calling anchorAssociateMessage."); + } + if (requestParameters.message === null || requestParameters.message === void 0) { + throw new RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling anchorAssociateMessage."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/anchor/{anchor}/messages/associate/{message}`.replace(`{${"anchor"}}`, encodeURIComponent(String(requestParameters.anchor))).replace(`{${"message"}}`, encodeURIComponent(String(requestParameters.message))), + method: "POST", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new VoidApiResponse(response); + } + /** + * This will associate a anchor with a message. + * /anchor/{anchor}/messages/associate/{message} [POST] + */ + async anchorAssociateMessage(requestParameters, initOverrides) { + await this.anchorAssociateMessageRaw(requestParameters, initOverrides); + } /** * associates an anchor and a person. It performs the same action as the person equivalent. * /anchor/{anchor}/persons/associate/{person} [POST] @@ -18354,6 +18539,34 @@ var AnchorApi = class extends BaseAPI { async anchorDisassociateConversation(requestParameters, initOverrides) { await this.anchorDisassociateConversationRaw(requestParameters, initOverrides); } + /** + * This will enable us to disassociate a anchor from a message. + * /anchor/{anchor}/messages/disassociate/{message} [POST] + */ + async anchorDisassociateMessageRaw(requestParameters, initOverrides) { + if (requestParameters.anchor === null || requestParameters.anchor === void 0) { + throw new RequiredError("anchor", "Required parameter requestParameters.anchor was null or undefined when calling anchorDisassociateMessage."); + } + if (requestParameters.message === null || requestParameters.message === void 0) { + throw new RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling anchorDisassociateMessage."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/anchor/{anchor}/messages/disassociate/{message}`.replace(`{${"anchor"}}`, encodeURIComponent(String(requestParameters.anchor))).replace(`{${"message"}}`, encodeURIComponent(String(requestParameters.message))), + method: "POST", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new VoidApiResponse(response); + } + /** + * This will enable us to disassociate a anchor from a message. + * /anchor/{anchor}/messages/disassociate/{message} [POST] + */ + async anchorDisassociateMessage(requestParameters, initOverrides) { + await this.anchorDisassociateMessageRaw(requestParameters, initOverrides); + } /** * Disassociates an anchor from a person. It performs the same action as the person equivalent. * /anchor/{anchor}/persons/disassociate/{person} [POST] @@ -18694,6 +18907,29 @@ var AnchorsApi = class extends BaseAPI { const response = await this.anchorsSnapshotRaw(requestParameters, initOverrides); return await response.value(); } + /** + * Provides a WebSocket connection that emits changes to your anchor identifiers (UUIDs). + * /anchors/stream/identifiers [WS] + */ + async anchorsStreamIdentifiersRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/anchors/stream/identifiers`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => StreamedIdentifiersFromJSON(jsonValue)); + } + /** + * Provides a WebSocket connection that emits changes to your anchor identifiers (UUIDs). + * /anchors/stream/identifiers [WS] + */ + async anchorsStreamIdentifiers(initOverrides) { + const response = await this.anchorsStreamIdentifiersRaw(initOverrides); + return await response.value(); + } /** * This will search your anchors for a specific anchor note: we will search all the anchor points * /anchors/search [POST] @@ -18884,6 +19120,29 @@ var AnnotationsApi = class extends BaseAPI { const response = await this.annotationsSnapshotRaw(requestParameters, initOverrides); return await response.value(); } + /** + * Provides a WebSocket connection that emits changes to your annotation identifiers (UUIDs). + * /annotations/stream/identifiers [WS] + */ + async annotationsStreamIdentifiersRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/annotations/stream/identifiers`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => StreamedIdentifiersFromJSON(jsonValue)); + } + /** + * Provides a WebSocket connection that emits changes to your annotation identifiers (UUIDs). + * /annotations/stream/identifiers [WS] + */ + async annotationsStreamIdentifiers(initOverrides) { + const response = await this.annotationsStreamIdentifiersRaw(initOverrides); + return await response.value(); + } /** * This will search your annotations for a specific annotation note: we will just search the annotation value * /annotations/search [POST] @@ -18943,6 +19202,207 @@ var ApplicationApi = class extends BaseAPI { } }; +// ../generated_runtime/sdk/http/typescript/core/apis/ApplicationsApi.ts +var ApplicationsApi = class extends BaseAPI { + /** + * Retrieves a list of external applications installed on the user\'s machine that have potential integrations with Pieces, including those not yet installed by the user and those anticipated to be supported in the future. + * /applications/external/related [GET] + */ + async applicationsExternalRelatedRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/applications/external/related`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => DetectedExternalApplicationsFromJSON(jsonValue)); + } + /** + * Retrieves a list of external applications installed on the user\'s machine that have potential integrations with Pieces, including those not yet installed by the user and those anticipated to be supported in the future. + * /applications/external/related [GET] + */ + async applicationsExternalRelated(initOverrides) { + const response = await this.applicationsExternalRelatedRaw(initOverrides); + return await response.value(); + } + /** + * Provides a snapshot of all external applications detected on the user\'s machine, such as Microsoft Teams classic, Google Chat, Obsidian, etc. + * /applications/external [GET] + */ + async applicationsExternalSnapshotRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/applications/external`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => DetectedExternalApplicationsFromJSON(jsonValue)); + } + /** + * Provides a snapshot of all external applications detected on the user\'s machine, such as Microsoft Teams classic, Google Chat, Obsidian, etc. + * /applications/external [GET] + */ + async applicationsExternalSnapshot(initOverrides) { + const response = await this.applicationsExternalSnapshotRaw(initOverrides); + return await response.value(); + } + /** + * Registers a new application within the Pieces ecosystem. + * /applications/register [POST] + * @deprecated + */ + async applicationsRegisterRaw(requestParameters, initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + headerParameters["Content-Type"] = "application/json"; + const response = await this.request({ + path: `/applications/register`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: ApplicationToJSON(requestParameters.application) + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => ApplicationFromJSON(jsonValue)); + } + /** + * Registers a new application within the Pieces ecosystem. + * /applications/register [POST] + * @deprecated + */ + async applicationsRegister(requestParameters = {}, initOverrides) { + const response = await this.applicationsRegisterRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Closes an active session, identified by a session UUID, marking the end of the user\'s current interaction with the Pieces application. + * /applications/session/close [POST] + * @deprecated + */ + async applicationsSessionCloseRaw(requestParameters, initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + headerParameters["Content-Type"] = "application/json"; + const response = await this.request({ + path: `/applications/session/close`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: requestParameters.body + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => SessionFromJSON(jsonValue)); + } + /** + * Closes an active session, identified by a session UUID, marking the end of the user\'s current interaction with the Pieces application. + * /applications/session/close [POST] + * @deprecated + */ + async applicationsSessionClose(requestParameters = {}, initOverrides) { + const response = await this.applicationsSessionCloseRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Initiates a new session, marking the start of a user\'s interaction with the Pieces application. + * /applications/session/open [POST] + * @deprecated + */ + async applicationsSessionOpenRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/applications/session/open`, + method: "POST", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => SessionFromJSON(jsonValue)); + } + /** + * Initiates a new session, marking the start of a user\'s interaction with the Pieces application. + * /applications/session/open [POST] + * @deprecated + */ + async applicationsSessionOpen(initOverrides) { + const response = await this.applicationsSessionOpenRaw(initOverrides); + return await response.value(); + } + /** + * Retrieves a comprehensive overview of all applications tracked by the Pieces system, including status, version, and engagement metrics. + * /applications [GET] + */ + async applicationsSnapshotRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/applications`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => ApplicationsFromJSON(jsonValue)); + } + /** + * Retrieves a comprehensive overview of all applications tracked by the Pieces system, including status, version, and engagement metrics. + * /applications [GET] + */ + async applicationsSnapshot(initOverrides) { + const response = await this.applicationsSnapshotRaw(initOverrides); + return await response.value(); + } + /** + * Obtains a snapshot with information about a specific application, identified by its UUID. + * /applications/{application} [GET] + */ + async applicationsSpecificApplicationSnapshotRaw(requestParameters, initOverrides) { + if (requestParameters.application === null || requestParameters.application === void 0) { + throw new RequiredError("application", "Required parameter requestParameters.application was null or undefined when calling applicationsSpecificApplicationSnapshot."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/applications/{application}`.replace(`{${"application"}}`, encodeURIComponent(String(requestParameters.application))), + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => ApplicationFromJSON(jsonValue)); + } + /** + * Obtains a snapshot with information about a specific application, identified by its UUID. + * /applications/{application} [GET] + */ + async applicationsSpecificApplicationSnapshot(requestParameters, initOverrides) { + const response = await this.applicationsSpecificApplicationSnapshotRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Provides a WebSocket connection that emits changes to your application identifiers (UUIDs). + * /applications/stream/identifiers [WS] + */ + async applicationsStreamIdentifiersRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/applications/stream/identifiers`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => StreamedIdentifiersFromJSON(jsonValue)); + } + /** + * Provides a WebSocket connection that emits changes to your application identifiers (UUIDs). + * /applications/stream/identifiers [WS] + */ + async applicationsStreamIdentifiers(initOverrides) { + const response = await this.applicationsStreamIdentifiersRaw(initOverrides); + return await response.value(); + } +}; + // ../generated_runtime/sdk/http/typescript/core/apis/AssetApi.ts var AssetApi = class extends BaseAPI { /** @@ -20747,6 +21207,34 @@ var ConversationApi = class extends BaseAPI { // ../generated_runtime/sdk/http/typescript/core/apis/ConversationMessageApi.ts var ConversationMessageApi = class extends BaseAPI { + /** + * This will associate a message with an anchor. + * /message/{message}/anchors/associate/{anchor} [POST] + */ + async messageAssociateAnchorRaw(requestParameters, initOverrides) { + if (requestParameters.message === null || requestParameters.message === void 0) { + throw new RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling messageAssociateAnchor."); + } + if (requestParameters.anchor === null || requestParameters.anchor === void 0) { + throw new RequiredError("anchor", "Required parameter requestParameters.anchor was null or undefined when calling messageAssociateAnchor."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/message/{message}/anchors/associate/{anchor}`.replace(`{${"message"}}`, encodeURIComponent(String(requestParameters.message))).replace(`{${"anchor"}}`, encodeURIComponent(String(requestParameters.anchor))), + method: "POST", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new VoidApiResponse(response); + } + /** + * This will associate a message with an anchor. + * /message/{message}/anchors/associate/{anchor} [POST] + */ + async messageAssociateAnchor(requestParameters, initOverrides) { + await this.messageAssociateAnchorRaw(requestParameters, initOverrides); + } /** * This will associate a message with an annotation. * /message/{message}/annotations/associate/{annotation} [POST] @@ -20775,6 +21263,90 @@ var ConversationMessageApi = class extends BaseAPI { async messageAssociateAnnotation(requestParameters, initOverrides) { await this.messageAssociateAnnotationRaw(requestParameters, initOverrides); } + /** + * This will associate a message with a person. + * /message/{message}/persons/associate/{person} [POST] + */ + async messageAssociatePersonRaw(requestParameters, initOverrides) { + if (requestParameters.message === null || requestParameters.message === void 0) { + throw new RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling messageAssociatePerson."); + } + if (requestParameters.person === null || requestParameters.person === void 0) { + throw new RequiredError("person", "Required parameter requestParameters.person was null or undefined when calling messageAssociatePerson."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/message/{message}/persons/associate/{person}`.replace(`{${"message"}}`, encodeURIComponent(String(requestParameters.message))).replace(`{${"person"}}`, encodeURIComponent(String(requestParameters.person))), + method: "POST", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new VoidApiResponse(response); + } + /** + * This will associate a message with a person. + * /message/{message}/persons/associate/{person} [POST] + */ + async messageAssociatePerson(requestParameters, initOverrides) { + await this.messageAssociatePersonRaw(requestParameters, initOverrides); + } + /** + * This will associate a message with a website. + * Associate a message with a website + */ + async messageAssociateWebsiteRaw(requestParameters, initOverrides) { + if (requestParameters.message === null || requestParameters.message === void 0) { + throw new RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling messageAssociateWebsite."); + } + if (requestParameters.website === null || requestParameters.website === void 0) { + throw new RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling messageAssociateWebsite."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/message/{message}/websites/associate/{website}`.replace(`{${"message"}}`, encodeURIComponent(String(requestParameters.message))).replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))), + method: "POST", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new VoidApiResponse(response); + } + /** + * This will associate a message with a website. + * Associate a message with a website + */ + async messageAssociateWebsite(requestParameters, initOverrides) { + await this.messageAssociateWebsiteRaw(requestParameters, initOverrides); + } + /** + * This will enable us to disassociate a message from an anchor. + * /message/{message}/anchors/disassociate/{anchor} [POST] + */ + async messageDisassociateAnchorRaw(requestParameters, initOverrides) { + if (requestParameters.message === null || requestParameters.message === void 0) { + throw new RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling messageDisassociateAnchor."); + } + if (requestParameters.anchor === null || requestParameters.anchor === void 0) { + throw new RequiredError("anchor", "Required parameter requestParameters.anchor was null or undefined when calling messageDisassociateAnchor."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/message/{message}/anchors/disassociate/{anchor}`.replace(`{${"message"}}`, encodeURIComponent(String(requestParameters.message))).replace(`{${"anchor"}}`, encodeURIComponent(String(requestParameters.anchor))), + method: "POST", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new VoidApiResponse(response); + } + /** + * This will enable us to disassociate a message from an anchor. + * /message/{message}/anchors/disassociate/{anchor} [POST] + */ + async messageDisassociateAnchor(requestParameters, initOverrides) { + await this.messageDisassociateAnchorRaw(requestParameters, initOverrides); + } /** * This will enable us to dissassociate a message from an annotation. * /message/{message}/annotations/disassociate/{annotation} [POST] @@ -20803,6 +21375,62 @@ var ConversationMessageApi = class extends BaseAPI { async messageDisassociateAnnotation(requestParameters, initOverrides) { await this.messageDisassociateAnnotationRaw(requestParameters, initOverrides); } + /** + * This will enable us to disassociate a message from a person. + * /message/{message}/persons/disassociate/{person} [POST] + */ + async messageDisassociatePersonRaw(requestParameters, initOverrides) { + if (requestParameters.message === null || requestParameters.message === void 0) { + throw new RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling messageDisassociatePerson."); + } + if (requestParameters.person === null || requestParameters.person === void 0) { + throw new RequiredError("person", "Required parameter requestParameters.person was null or undefined when calling messageDisassociatePerson."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/message/{message}/persons/disassociate/{person}`.replace(`{${"message"}}`, encodeURIComponent(String(requestParameters.message))).replace(`{${"person"}}`, encodeURIComponent(String(requestParameters.person))), + method: "POST", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new VoidApiResponse(response); + } + /** + * This will enable us to disassociate a message from a person. + * /message/{message}/persons/disassociate/{person} [POST] + */ + async messageDisassociatePerson(requestParameters, initOverrides) { + await this.messageDisassociatePersonRaw(requestParameters, initOverrides); + } + /** + * This will enable us to disassociate a message from a website. + * /message/{message}/websites/disassociate/{website} [POST] + */ + async messageDisassociateWebsiteRaw(requestParameters, initOverrides) { + if (requestParameters.message === null || requestParameters.message === void 0) { + throw new RequiredError("message", "Required parameter requestParameters.message was null or undefined when calling messageDisassociateWebsite."); + } + if (requestParameters.website === null || requestParameters.website === void 0) { + throw new RequiredError("website", "Required parameter requestParameters.website was null or undefined when calling messageDisassociateWebsite."); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/message/{message}/websites/disassociate/{website}`.replace(`{${"message"}}`, encodeURIComponent(String(requestParameters.message))).replace(`{${"website"}}`, encodeURIComponent(String(requestParameters.website))), + method: "POST", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new VoidApiResponse(response); + } + /** + * This will enable us to disassociate a message from a website. + * /message/{message}/websites/disassociate/{website} [POST] + */ + async messageDisassociateWebsite(requestParameters, initOverrides) { + await this.messageDisassociateWebsiteRaw(requestParameters, initOverrides); + } /** * This will take in a SeededScoreIncrement and will increment the material relative to the incoming body. * \'/message/{message}/scores/increment\' [POST] @@ -20919,6 +21547,29 @@ var ConversationMessageApi = class extends BaseAPI { // ../generated_runtime/sdk/http/typescript/core/apis/ConversationMessagesApi.ts var ConversationMessagesApi = class extends BaseAPI { + /** + * Provides a WebSocket connection that emits changes to your conversation messages identifiers (UUIDs). + * /messages/stream/identifiers [WS] + */ + async conversationMessagesStreamIdentifiersRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/messages/stream/identifiers`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => StreamedIdentifiersFromJSON(jsonValue)); + } + /** + * Provides a WebSocket connection that emits changes to your conversation messages identifiers (UUIDs). + * /messages/stream/identifiers [WS] + */ + async conversationMessagesStreamIdentifiers(initOverrides) { + const response = await this.conversationMessagesStreamIdentifiersRaw(initOverrides); + return await response.value(); + } /** * This will create a Message on a specific conversation. * /messages/create [POST] @@ -21439,31 +22090,6 @@ var FormatApi = class extends BaseAPI { const response = await this.formatUpdateValueRaw(requestParameters, initOverrides); return await response.value(); } - /** - * This is an analytics endpoint that will enable us to know when a user has copied/downloaded/beamed/viewed a format. - * /format/usage/event [POST] Scoped to Format - */ - async formatUsageEventRaw(requestParameters, initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - headerParameters["Content-Type"] = "application/json"; - const response = await this.request({ - path: `/format/usage/event`, - method: "POST", - headers: headerParameters, - query: queryParameters, - body: SeededTrackedFormatEventToJSON(requestParameters.seededTrackedFormatEvent) - }, initOverrides); - return new JSONApiResponse(response, (jsonValue) => TrackedFormatEventFromJSON(jsonValue)); - } - /** - * This is an analytics endpoint that will enable us to know when a user has copied/downloaded/beamed/viewed a format. - * /format/usage/event [POST] Scoped to Format - */ - async formatUsageEvent(requestParameters = {}, initOverrides) { - const response = await this.formatUsageEventRaw(requestParameters, initOverrides); - return await response.value(); - } }; // ../generated_runtime/sdk/http/typescript/core/apis/LinkifyApi.ts @@ -21838,6 +22464,29 @@ var ModelsApi = class extends BaseAPI { const response = await this.modelsSnapshotRaw(initOverrides); return await response.value(); } + /** + * Provides a WebSocket connection that emits changes to your model identifiers (UUIDs). + * /models/stream/identifiers [WS] + */ + async modelsStreamIdentifiersRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/models/stream/identifiers`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + return new JSONApiResponse(response, (jsonValue) => StreamedIdentifiersFromJSON(jsonValue)); + } + /** + * Provides a WebSocket connection that emits changes to your model identifiers (UUIDs). + * /models/stream/identifiers [WS] + */ + async modelsStreamIdentifiers(initOverrides) { + const response = await this.modelsStreamIdentifiersRaw(initOverrides); + return await response.value(); + } /** * Unloads all available machine learning models that are unloadable. * /models/unload [POST] @@ -22940,7 +23589,33 @@ var WellKnownApi = class extends BaseAPI { return await response.value(); } /** - * Retrieves the version of the server. It returns a string representing the current version. + * This is a Streamed endpoint please use a WS connection to call this Endpoint. + * /.well-known/stream/health [WS] + */ + async getWellKnownStreamHealthRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/.well-known/stream/health`, + method: "GET", + headers: headerParameters, + query: queryParameters + }, initOverrides); + if (this.isJsonMime(response.headers.get("content-type"))) { + return new JSONApiResponse(response); + } else { + return new TextApiResponse(response); + } + } + /** + * This is a Streamed endpoint please use a WS connection to call this Endpoint. + * /.well-known/stream/health [WS] + */ + async getWellKnownStreamHealth(initOverrides) { + const response = await this.getWellKnownStreamHealthRaw(initOverrides); + return await response.value(); + } + /** * /.well-known/version [Get] */ async getWellKnownVersionRaw(initOverrides) { @@ -22959,7 +23634,6 @@ var WellKnownApi = class extends BaseAPI { } } /** - * Retrieves the version of the server. It returns a string representing the current version. * /.well-known/version [Get] */ async getWellKnownVersion(initOverrides) { @@ -22969,7 +23643,7 @@ var WellKnownApi = class extends BaseAPI { }; // package.json -var version = "1.17.1"; +var version = "1.18.0"; // src/connection/notification_handler.ts var import_obsidian = require("obsidian"); @@ -23061,6 +23735,9 @@ var ConnectorSingleton = class { this.applicationApi = new ApplicationApi( new Configuration({ fetchApi: fetch, basePath: this.parameters.basePath }) ); + this.applicationsApi = new ApplicationsApi( + new Configuration({ fetchApi: fetch, basePath: this.parameters.basePath }) + ); this.linkifyApi = new LinkifyApi( new Configuration({ fetchApi: fetch, basePath: this.parameters.basePath }) ); @@ -23150,7 +23827,7 @@ var launchRuntime = async (wait) => { // src/connection/version_check.ts var config = ConnectorSingleton.getInstance(); -var currentMinVersion = "10.0.0"; +var currentMinVersion = "10.1.4"; var currentMaxVersion = "11.0.0"; var toUpdatePlugin = false; var versionValid = false; @@ -71928,6 +72605,19 @@ async function handleWebviewMessage(event) { copilotParams.sendNotification(params); return; } + if (event.data.type === "corsProxy") { + const res = await copilotParams.corsProxyFetch?.( + event.data.data.url, + event.data.data.options + ); + const response = { + type: "corsProxy", + data: res?.content ?? "", + destination: "webview", + responseId: event.data.responseId + }; + return postToFrame(response); + } if (event.data.type === "copyToClipboard") { window.navigator.clipboard.writeText(event.data.data); return; @@ -75931,6 +76621,80 @@ var AskQGPTModal = class extends import_obsidian22.Modal { } }; +// src/connection/ApplicationStream.ts +var ApplicationStream = class { + /** + * Private constructor to initialize the object and establish a connection. + * This constructor is typically used in singleton patterns to prevent + * external instantiation. + */ + constructor() { + this.ws = null; + this.connect(); + } + /** + * Closes the WebSocket connection if it is open and sets the WebSocket instance to null. + */ + closeSocket() { + this.ws?.close(); + this.ws = null; + } + /** + * Establishes a WebSocket connection if one does not already exist. + * Constructs the WebSocket URL based on the basePath parameter, replacing + * the protocol with 'wss://' or 'ws://', and appending the specific path for the stream. + * Sets up event handlers for message reception, error, and close events. + */ + connect() { + if (this.ws !== null) + return; + const url = (ConnectorSingleton.getInstance().parameters.basePath ?? "http://localhost:1000").replace("https://", "wss://").replace("http://", "ws://") + "/applications/stream/identifiers"; + this.ws = new WebSocket(url); + this.ws.onmessage = (event) => this.updateSettings(event); + const refreshSockets = (error) => { + if (error) + console.error(error); + this.ws = null; + }; + this.ws.onerror = refreshSockets; + this.ws.onclose = refreshSockets; + } + /** + * Updates the settings based on the received message event. + * + * @param {MessageEvent} event - The message event containing the data to update settings. + * @returns {Promise} - A promise that resolves when the settings update is complete. + */ + async updateSettings(event) { + const identifiers = StreamedIdentifiersFromJSON(JSON.parse(event.data)); + const storedApplication = await copilotParams.getApplication(); + if (!storedApplication) + return; + if (!identifiers.iterable.some( + (el) => el.application?.id === storedApplication.id + )) + return; + const application = await ConnectorSingleton.getInstance().applicationsApi.applicationsSpecificApplicationSnapshot( + { application: storedApplication.id } + ); + this.updateCapabilties(application); + } + /** + * Updates the cloud capabilities setting + * + * @param {Application} application - The application object containing the capabilities to be updated. + * @returns {Promise} - A promise that resolves when the update is complete. + */ + async updateCapabilties(application) { + const capabilities = application.capabilities === CapabilitiesEnum.Blended ? "blended" : "local"; + PiecesPlugin.getInstance().settings.cloudCapabilities = capabilities; + PiecesPlugin.getInstance().saveSettings(); + } + static getInstance() { + return this.instance ?? (this.instance = new ApplicationStream()); + } +}; + // main.ts var pluginSettings; var theme = "dark"; @@ -76059,6 +76823,7 @@ var _PiecesPlugin = class extends import_obsidian23.Plugin { }); CheckVersionAndConnection.run().then(() => { AutoLinker.findCode(); + ApplicationStream.getInstance(); this.loadAnnotations().then(() => stream()); QGPT.loadContext(); if (pluginSettings.autoDiscover) { diff --git a/manifest.json b/manifest.json index 215f7fd..0cd25f0 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "pieces-for-developers", "name": "Pieces for Developers", - "version": "1.17.1", + "version": "1.18.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",