/* Options:
Date: 2026-09-13 22:53:09
Version: 10.09
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://test.servicestack.net
GlobalNamespace: dtos
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: True
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: False
//ExportValueTypes: False
//IncludeTypes:
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using dtos;
namespace dtos
{
public partial class Address
{
public virtual long Id { get; set; }
public virtual string? AddressText { get; set; }
}
///
///Booking Details
///
public partial class Booking
: AuditBase
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
public virtual RoomType RoomType { get; set; }
public virtual int RoomNumber { get; set; }
public virtual DateTime BookingStartDate { get; set; }
public virtual DateTime? BookingEndDate { get; set; }
public virtual decimal Cost { get; set; }
[References(typeof(Coupon))]
public virtual string? CouponId { get; set; }
public virtual Coupon Discount { get; set; }
public virtual string? Notes { get; set; }
public virtual bool? Cancelled { get; set; }
[References(typeof(Address))]
public virtual long? PermanentAddressId { get; set; }
public virtual Address? PermanentAddress { get; set; }
[References(typeof(Address))]
public virtual long? PostalAddressId { get; set; }
public virtual Address? PostalAddress { get; set; }
}
///
///Discount Coupons
///
public partial class Coupon
{
public virtual string Id { get; set; }
public virtual string Description { get; set; }
public virtual int Discount { get; set; }
public virtual DateTime ExpiryDate { get; set; }
}
public partial class CreateAddress
: IReturn, ICreateDb
{
public virtual string? AddressText { get; set; }
}
///
///Create a new Booking
///
[Route("/bookings", "POST")]
[ValidateRequest("HasRole(`Employee`)")]
public partial class CreateBooking
: IReturn, ICreateDb
{
///
///Name this Booking is for
///
[Validate("NotEmpty")]
public virtual string Name { get; set; }
public virtual RoomType RoomType { get; set; }
[Validate("GreaterThan(0)")]
public virtual int RoomNumber { get; set; }
[Validate("GreaterThan(0)")]
public virtual decimal Cost { get; set; }
[Required]
public virtual DateTime BookingStartDate { get; set; }
public virtual DateTime? BookingEndDate { get; set; }
public virtual string? Notes { get; set; }
public virtual string? CouponId { get; set; }
public virtual long? PermanentAddressId { get; set; }
public virtual long? PostalAddressId { get; set; }
}
[Route("/coupons", "POST")]
[ValidateRequest("HasRole(`Employee`)")]
public partial class CreateCoupon
: IReturn, ICreateDb
{
[Validate("NotEmpty")]
public virtual string Id { get; set; }
[Validate("NotEmpty")]
public virtual string Description { get; set; }
[Validate("GreaterThan(0)")]
public virtual int Discount { get; set; }
[Validate("NotNull")]
public virtual DateTime ExpiryDate { get; set; }
}
///
///Delete a Booking
///
[Route("/booking/{Id}", "DELETE")]
public partial class DeleteBooking
: IReturnVoid, IDeleteDb
{
public virtual int Id { get; set; }
}
///
///Delete a Coupon
///
[Route("/coupons/{Id}", "DELETE")]
[ValidateRequest("HasRole(`Manager`)")]
public partial class DeleteCoupon
: IReturnVoid, IDeleteDb
{
public virtual string Id { get; set; }
}
public partial class QueryAddresses
: QueryDb, IReturn>
{
public virtual long[] Ids { get; set; }
}
///
///Find Bookings
///
[Route("/bookings", "GET")]
[Route("/bookings/{Id}", "GET")]
public partial class QueryBookings
: QueryDb, IReturn>
{
public virtual int? Id { get; set; }
}
///
///Find Coupons
///
[Route("/coupons", "GET")]
public partial class QueryCoupons
: QueryDb, IReturn>
{
public virtual string Id { get; set; }
}
public enum RoomType
{
Single,
Double,
Queen,
Twin,
Suite,
}
public partial class UpdateAddress
: IReturn, IPatchDb
{
public virtual int Id { get; set; }
public virtual string? AddressText { get; set; }
}
///
///Update an existing Booking
///
[Route("/booking/{Id}", "PATCH")]
[ValidateRequest("HasRole(`Employee`)")]
[ValidateRequest("HasRole(`Manager`)")]
public partial class UpdateBooking
: IReturn, IPatchDb
{
public virtual int Id { get; set; }
public virtual string? Name { get; set; }
public virtual RoomType? RoomType { get; set; }
[Validate("GreaterThan(0)")]
public virtual int? RoomNumber { get; set; }
[Validate("GreaterThan(0)")]
public virtual decimal? Cost { get; set; }
public virtual DateTime? BookingStartDate { get; set; }
public virtual DateTime? BookingEndDate { get; set; }
public virtual string? Notes { get; set; }
public virtual string? CouponId { get; set; }
public virtual bool? Cancelled { get; set; }
public virtual long? PermanentAddressId { get; set; }
public virtual long? PostalAddressId { get; set; }
}
[Route("/coupons/{Id}", "PATCH")]
[ValidateRequest("HasRole(`Employee`)")]
public partial class UpdateCoupon
: IReturn, IPatchDb
{
public virtual string Id { get; set; }
[Validate("NotEmpty")]
public virtual string Description { get; set; }
[Validate("NotNull")]
[Validate("GreaterThan(0)")]
public virtual int Discount { get; set; }
[Validate("NotNull")]
public virtual DateTime ExpiryDate { get; set; }
}
///
///Audio content part
///
[DataContract]
public partial class AiAudioContent
: AiContent
{
///
///The audio input for this content.
///
[DataMember(Name="input_audio")]
public virtual AiInputAudio InputAudio { get; set; }
}
[DataContract]
public partial class AiAudioUrl
{
///
///Either a URL of the audio or the base64 encoded audio data.
///
[DataMember(Name="url")]
public virtual string Url { get; set; }
}
///
///Generated audio content part, referenced by URL (emitted by tool calls and audio models)
///
[DataContract]
public partial class AiAudioUrlContent
: AiContent
{
///
///The audio for this content.
///
[DataMember(Name="audio_url")]
public virtual AiAudioUrl AudioUrl { get; set; }
}
///
///Parameters for audio output. Required when audio output is requested with modalities: [audio]
///
[DataContract]
public partial class AiChatAudio
{
///
///Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
///
[DataMember(Name="format")]
public virtual string Format { get; set; }
///
///The voice the model uses to respond. Supported voices are alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, and shimmer.
///
[DataMember(Name="voice")]
public virtual string Voice { get; set; }
}
///
///Usage statistics for the completion request.
///
[DataContract]
public partial class AiCompletionUsage
{
///
///When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.
///
[DataMember(Name="accepted_prediction_tokens")]
public virtual long AcceptedPredictionTokens { get; set; }
///
///Audio input tokens generated by the model.
///
[DataMember(Name="audio_tokens")]
public virtual long AudioTokens { get; set; }
///
///Tokens generated by the model for reasoning.
///
[DataMember(Name="reasoning_tokens")]
public virtual long ReasoningTokens { get; set; }
///
///When using Predicted Outputs, the number of tokens in the prediction that did not appear in the completion.
///
[DataMember(Name="rejected_prediction_tokens")]
public virtual long RejectedPredictionTokens { get; set; }
}
[DataContract]
public partial class AiContent
{
///
///The type of the content part.
///
[DataMember(Name="type")]
public virtual string Type { get; set; }
}
///
///File content part
///
[DataContract]
public partial class AiFile
{
///
///The URL or base64 encoded file data, used when passing the file to the model as a string.
///
[DataMember(Name="file_data")]
public virtual string FileData { get; set; }
///
///The name of the file, used when passing the file to the model as a string.
///
[DataMember(Name="filename")]
public virtual string Filename { get; set; }
///
///The ID of an uploaded file to use as input.
///
[DataMember(Name="file_id")]
public virtual string? FileId { get; set; }
}
///
///File content part
///
[DataContract]
public partial class AiFileContent
: AiContent
{
///
///The file input for this content.
///
[DataMember(Name="file")]
public virtual AiFile File { get; set; }
}
///
///Image content part
///
[DataContract]
public partial class AiImageContent
: AiContent
{
///
///The image for this content.
///
[DataMember(Name="image_url")]
public virtual AiImageUrl ImageUrl { get; set; }
}
[DataContract]
public partial class AiImageUrl
{
///
///Either a URL of the image or the base64 encoded image data.
///
[DataMember(Name="url")]
public virtual string Url { get; set; }
}
///
///Audio content part
///
[DataContract]
public partial class AiInputAudio
{
///
///URL or Base64 encoded audio data.
///
[DataMember(Name="data")]
public virtual string Data { get; set; }
///
///The format of the encoded audio data. Currently supports 'wav' and 'mp3'.
///
[DataMember(Name="format")]
public virtual string Format { get; set; }
}
///
///A list of messages comprising the conversation so far.
///
[DataContract]
public partial class AiMessage
{
///
///The contents of the message.
///
[DataMember(Name="content")]
public virtual List? Content { get; set; }
///
///The role of the author of this message. Valid values are `system`, `user`, `assistant` and `tool`.
///
[DataMember(Name="role")]
public virtual string Role { get; set; }
///
///An optional name for the participant. Provides the model information to differentiate between participants of the same role.
///
[DataMember(Name="name")]
public virtual string? Name { get; set; }
///
///The tool calls generated by the model, such as function calls.
///
[DataMember(Name="tool_calls")]
public virtual List? ToolCalls { get; set; }
///
///Tool call that this message is responding to.
///
[DataMember(Name="tool_call_id")]
public virtual string? ToolCallId { get; set; }
///
///The reasoning an assistant message was generated with, normalized per provider when replayed as history.
///
[DataMember(Name="reasoning")]
public virtual string? Reasoning { get; set; }
///
///The reasoning an assistant message was generated with, as emitted by Gemini and most OpenAI-compatible providers.
///
[DataMember(Name="reasoning_content")]
public virtual string? ReasoningContent { get; set; }
///
///Unix timestamp (in milliseconds) the message was generated.
///
[DataMember(Name="timestamp")]
public virtual long? Timestamp { get; set; }
///
///Images attached to the message. Folded into `content` parts before sending to a provider.
///
[DataMember(Name="images")]
public virtual List? Images { get; set; }
}
///
///Breakdown of tokens used in the prompt.
///
[DataContract]
public partial class AiPromptUsage
{
///
///When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.
///
[DataMember(Name="accepted_prediction_tokens")]
public virtual long AcceptedPredictionTokens { get; set; }
///
///Audio input tokens present in the prompt.
///
[DataMember(Name="audio_tokens")]
public virtual long AudioTokens { get; set; }
///
///Cached tokens present in the prompt.
///
[DataMember(Name="cached_tokens")]
public virtual long CachedTokens { get; set; }
}
[DataContract]
public partial class AiResponseFormat
{
///
///An object specifying the format that the model must output. Compatible with GPT-4 Turbo and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.
///
[DataMember(Name="type")]
public virtual ResponseFormat Type { get; set; }
}
///
///Text content part
///
[DataContract]
public partial class AiTextContent
: AiContent
{
///
///The text content.
///
[DataMember(Name="text")]
public virtual string Text { get; set; }
}
[DataContract]
public partial class AiToolFunction
{
///
///The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
///
[DataMember(Name="name")]
public virtual string? Name { get; set; }
///
///A description of what the function does, used by the model to choose when and how to call the function.
///
[DataMember(Name="description")]
public virtual string? Description { get; set; }
///
///The parameters the functions accepts, described as a JSON Schema object. See the guide for examples, and the JSON Schema reference for documentation about the format.
///
[DataMember(Name="parameters")]
public virtual Dictionary? Parameters { get; set; }
}
///
///Usage statistics for the completion request.
///
[DataContract]
public partial class AiUsage
{
///
///Number of tokens in the generated completion.
///
[DataMember(Name="completion_tokens")]
public virtual long CompletionTokens { get; set; }
///
///Number of tokens in the prompt.
///
[DataMember(Name="prompt_tokens")]
public virtual long PromptTokens { get; set; }
///
///Total number of tokens used in the request (prompt + completion).
///
[DataMember(Name="total_tokens")]
public virtual long TotalTokens { get; set; }
///
///Breakdown of tokens used in a completion.
///
[DataMember(Name="completion_tokens_details")]
public virtual AiCompletionUsage? CompletionTokensDetails { get; set; }
///
///Breakdown of tokens used in the prompt.
///
[DataMember(Name="prompt_tokens_details")]
public virtual AiPromptUsage? PromptTokensDetails { get; set; }
///
///Seconds spent servicing the completion, including every request in the tool loop.
///
[DataMember(Name="duration")]
public virtual long? Duration { get; set; }
}
///
///Chat Completions API (OpenAI-Compatible)
///
[Route("/v1/chat/completions", "POST")]
[DataContract]
public partial class ChatCompletion
: IReturn, IPost
{
///
///The messages to generate chat completions for.
///
[DataMember(Name="messages")]
public virtual List Messages { get; set; } = [];
///
///ID of the model to use. See the model endpoint compatibility table for details on which models work with the Chat API
///
[DataMember(Name="model")]
public virtual string Model { get; set; }
///
///Parameters for audio output. Required when audio output is requested with modalities: [audio]
///
[DataMember(Name="audio")]
public virtual AiChatAudio? Audio { get; set; }
///
///Modify the likelihood of specified tokens appearing in the completion.
///
[DataMember(Name="logit_bias")]
public virtual Dictionary? LogitBias { get; set; }
///
///Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format.
///
[DataMember(Name="metadata")]
public virtual Dictionary? Metadata { get; set; }
///
///Constrains effort on reasoning for reasoning models. Currently supported values are minimal, low, medium, and high (none, default). Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
///
[DataMember(Name="reasoning_effort")]
public virtual string? ReasoningEffort { get; set; }
///
///An object specifying the format that the model must output. Compatible with GPT-4 Turbo and all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`. Setting Type to ResponseFormat.JsonObject enables JSON mode, which guarantees the message the model generates is valid JSON.
///
[DataMember(Name="response_format")]
public virtual AiResponseFormat? ResponseFormat { get; set; }
///
///Specifies the processing type used for serving the request.
///
[DataMember(Name="service_tier")]
public virtual string? ServiceTier { get; set; }
///
///A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. The IDs should be a string that uniquely identifies each user.
///
[DataMember(Name="safety_identifier")]
public virtual string? SafetyIdentifier { get; set; }
///
///Up to 4 sequences where the API will stop generating further tokens.
///
[DataMember(Name="stop")]
public virtual List? Stop { get; set; }
///
///Output types that you would like the model to generate. Most models are capable of generating text, which is the default:
///
[DataMember(Name="modalities")]
public virtual List? Modalities { get; set; }
///
///Used by OpenAI to cache responses for similar requests to optimize your cache hit rates.
///
[DataMember(Name="prompt_cache_key")]
public virtual string? PromptCacheKey { get; set; }
///
///A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.
///
[DataMember(Name="tools")]
public virtual List? Tools { get; set; }
///
///Constrains the verbosity of the model's response. Lower values will result in more concise responses, while higher values will result in more verbose responses. Currently supported values are low, medium, and high.
///
[DataMember(Name="verbosity")]
public virtual string? Verbosity { get; set; }
///
///What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
///
[DataMember(Name="temperature")]
public virtual double? Temperature { get; set; }
///
///An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens.
///
[DataMember(Name="max_completion_tokens")]
public virtual int? MaxCompletionTokens { get; set; }
///
///An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
///
[DataMember(Name="top_logprobs")]
public virtual int? TopLogprobs { get; set; }
///
///An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
///
[DataMember(Name="top_p")]
public virtual double? TopP { get; set; }
///
///Number between `-2.0` and `2.0`. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
///
[DataMember(Name="frequency_penalty")]
public virtual double? FrequencyPenalty { get; set; }
///
///Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
///
[DataMember(Name="presence_penalty")]
public virtual double? PresencePenalty { get; set; }
///
///This feature is in Beta. If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.
///
[DataMember(Name="seed")]
public virtual int? Seed { get; set; }
///
///How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.
///
[DataMember(Name="n")]
public virtual int? N { get; set; }
///
///Whether or not to store the output of this chat completion request for use in our model distillation or evals products.
///
[DataMember(Name="store")]
public virtual bool? Store { get; set; }
///
///Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
///
[DataMember(Name="logprobs")]
public virtual bool? Logprobs { get; set; }
///
///Whether to enable parallel function calling during tool use.
///
[DataMember(Name="parallel_tool_calls")]
public virtual bool? ParallelToolCalls { get; set; }
///
///Whether to enable thinking mode for some Qwen models and providers.
///
[DataMember(Name="enable_thinking")]
public virtual bool? EnableThinking { get; set; }
///
///If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message.
///
[DataMember(Name="stream")]
public virtual bool? Stream { get; set; }
}
[DataContract]
public partial class ChatResponse
{
///
///A unique identifier for the chat completion.
///
[DataMember(Name="id")]
public virtual string Id { get; set; }
///
///A list of chat completion choices. Can be more than one if n is greater than 1.
///
[DataMember(Name="choices")]
public virtual List Choices { get; set; } = [];
///
///The Unix timestamp (in seconds) of when the chat completion was created.
///
[DataMember(Name="created")]
public virtual long Created { get; set; }
///
///The model used for the chat completion.
///
[DataMember(Name="model")]
public virtual string Model { get; set; }
///
///This fingerprint represents the backend configuration that the model runs with.
///
[DataMember(Name="system_fingerprint")]
public virtual string? SystemFingerprint { get; set; }
///
///The object type, which is always chat.completion.
///
[DataMember(Name="object")]
public virtual string Object { get; set; }
///
///Specifies the processing type used for serving the request.
///
[DataMember(Name="service_tier")]
public virtual string? ServiceTier { get; set; }
///
///Usage statistics for the completion request.
///
[DataMember(Name="usage")]
public virtual AiUsage Usage { get; set; }
///
///The provider used for the chat completion.
///
[DataMember(Name="provider")]
public virtual string? Provider { get; set; }
///
///Total cost of the completion in USD, accumulated across every request in the tool loop.
///
[DataMember(Name="cost")]
public virtual double? Cost { get; set; }
///
///The assistant and tool messages exchanged during the tool-execution loop, in order.
///
[DataMember(Name="tool_history")]
public virtual List? ToolHistory { get; set; }
///
///Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format.
///
[DataMember(Name="metadata")]
public virtual Dictionary? Metadata { get; set; }
[DataMember(Name="responseStatus")]
public virtual ResponseStatus? ResponseStatus { get; set; }
}
[DataContract]
public partial class Choice
{
///
///The reason the model stopped generating tokens. This will be stop if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, content_filter if content was omitted due to a flag from our content filters, tool_calls if the model called a tool
///
[DataMember(Name="finish_reason")]
public virtual string FinishReason { get; set; }
///
///The index of the choice in the list of choices.
///
[DataMember(Name="index")]
public virtual int Index { get; set; }
///
///A chat completion message generated by the model.
///
[DataMember(Name="message")]
public virtual ChoiceMessage Message { get; set; }
///
///Log probability information for the choice.
///
[DataMember(Name="logprobs")]
public virtual Logprobs? Logprobs { get; set; }
}
///
///Annotations for the message, when applicable, as when using the web search tool.
///
[DataContract]
public partial class ChoiceAnnotation
{
///
///The type of the URL citation. Always url_citation.
///
[DataMember(Name="type")]
public virtual string Type { get; set; }
///
///A URL citation when using web search.
///
[DataMember(Name="url_citation")]
public virtual UrlCitation UrlCitation { get; set; }
}
///
///If the audio output modality is requested, this object contains data about the audio response from the model.
///
[DataContract]
public partial class ChoiceAudio
{
///
///Base64 encoded audio bytes generated by the model, in the format specified in the request.
///
[DataMember(Name="data")]
public virtual string Data { get; set; }
///
///The Unix timestamp (in seconds) for when this audio response will no longer be accessible on the server for use in multi-turn conversations.
///
[DataMember(Name="expires_at")]
public virtual long ExpiresAt { get; set; }
///
///Unique identifier for this audio response.
///
[DataMember(Name="id")]
public virtual string Id { get; set; }
///
///Transcript of the audio generated by the model.
///
[DataMember(Name="transcript")]
public virtual string Transcript { get; set; }
}
[DataContract]
public partial class ChoiceMessage
{
///
///The contents of the message.
///
[DataMember(Name="content")]
public virtual string Content { get; set; }
///
///The refusal message generated by the model.
///
[DataMember(Name="refusal")]
public virtual string? Refusal { get; set; }
///
///The reasoning process used by the model.
///
[DataMember(Name="reasoning")]
public virtual string? Reasoning { get; set; }
///
///The reasoning process used by the model, as emitted by Gemini and most OpenAI-compatible providers.
///
[DataMember(Name="reasoning_content")]
public virtual string? ReasoningContent { get; set; }
///
///The reasoning process used by the model, as emitted by Anthropic.
///
[DataMember(Name="thinking")]
public virtual string? Thinking { get; set; }
///
///The role of the author of this message.
///
[DataMember(Name="role")]
public virtual string Role { get; set; }
///
///Unix timestamp (in milliseconds) the message was generated.
///
[DataMember(Name="timestamp")]
public virtual long? Timestamp { get; set; }
///
///The tool call this message is responding to, set on `tool` role messages in tool_history.
///
[DataMember(Name="tool_call_id")]
public virtual string? ToolCallId { get; set; }
///
///Images generated by the model or produced by a tool call.
///
[DataMember(Name="images")]
public virtual List? Images { get; set; }
///
///Audio generated by the model or produced by a tool call.
///
[DataMember(Name="audios")]
public virtual List? Audios { get; set; }
///
///Files produced by a tool call.
///
[DataMember(Name="files")]
public virtual List? Files { get; set; }
///
///Annotations for the message, when applicable, as when using the web search tool.
///
[DataMember(Name="annotations")]
public virtual List? Annotations { get; set; }
///
///If the audio output modality is requested, this object contains data about the audio response from the model.
///
[DataMember(Name="audio")]
public virtual ChoiceAudio? Audio { get; set; }
///
///The tool calls generated by the model, such as function calls.
///
[DataMember(Name="tool_calls")]
public virtual List? ToolCalls { get; set; }
}
///
///A list of message content tokens with log probability information.
///
[DataContract]
public partial class LogprobItem
{
///
///The token.
///
[DataMember(Name="token")]
public virtual string Token { get; set; }
///
///The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999`.0 is used to signify that the token is very unlikely.
///
[DataMember(Name="logprob")]
public virtual double Logprob { get; set; }
///
///A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.
///
[DataMember(Name="bytes")]
public virtual byte[] Bytes { get; set; } = [];
///
///List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.
///
[DataMember(Name="top_logprobs")]
public virtual List TopLogprobs { get; set; } = [];
}
///
///Log probability information for the choice.
///
[DataContract]
public partial class Logprobs
{
///
///A list of message content tokens with log probability information.
///
[DataMember(Name="content")]
public virtual List Content { get; set; } = [];
}
public enum ResponseFormat
{
[EnumMember(Value="text")]
Text,
[EnumMember(Value="json_object")]
JsonObject,
}
[DataContract]
public partial class Tool
{
///
///The type of the tool. Currently, only function is supported.
///
[DataMember(Name="type")]
public virtual ToolType Type { get; set; }
///
///The function definition the model may call.
///
[DataMember(Name="function")]
public virtual AiToolFunction? Function { get; set; }
}
///
///The tool calls generated by the model, such as function calls.
///
[DataContract]
public partial class ToolCall
{
///
///The ID of the tool call.
///
[DataMember(Name="id")]
public virtual string Id { get; set; }
///
///The type of the tool. Currently, only `function` is supported.
///
[DataMember(Name="type")]
public virtual string Type { get; set; }
///
///The function that the model called.
///
[DataMember(Name="function")]
public virtual ToolFunction Function { get; set; }
}
///
///The function that the model called.
///
[DataContract]
public partial class ToolFunction
{
///
///The name of the function to call.
///
[DataMember(Name="name")]
public virtual string Name { get; set; }
///
///The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
///
[DataMember(Name="arguments")]
public virtual string Arguments { get; set; }
}
public enum ToolType
{
[EnumMember(Value="function")]
Function,
}
///
///Annotations for the message, when applicable, as when using the web search tool.
///
[DataContract]
public partial class UrlCitation
{
///
///The index of the last character of the URL citation in the message.
///
[DataMember(Name="end_index")]
public virtual int EndIndex { get; set; }
///
///The index of the first character of the URL citation in the message.
///
[DataMember(Name="start_index")]
public virtual int StartIndex { get; set; }
///
///The title of the web resource.
///
[DataMember(Name="title")]
public virtual string Title { get; set; }
///
///The URL of the web resource.
///
[DataMember(Name="url")]
public virtual string Url { get; set; }
}
public partial class Account
{
public virtual string? Name { get; set; }
}
public partial class ChatMessage
{
public virtual long Id { get; set; }
public virtual string? Channel { get; set; }
public virtual string? FromUserId { get; set; }
public virtual string? FromName { get; set; }
public virtual string? DisplayName { get; set; }
public virtual string? Message { get; set; }
public virtual string? UserAuthId { get; set; }
public virtual bool Private { get; set; }
}
[Route("/reset")]
public partial class ClearChatHistory
: IReturnVoid
{
}
[Route("/jwt")]
public partial class CreateJwt
: AuthUserSession, IReturn
{
public virtual DateTime? JwtExpiry { get; set; }
}
public partial class CreateJwtResponse
{
public virtual string? Token { get; set; }
public virtual ResponseStatus? ResponseStatus { get; set; }
}
[Route("/jwt-refresh")]
public partial class CreateRefreshJwt
: IReturn
{
public virtual string? UserAuthId { get; set; }
public virtual DateTime? JwtExpiry { get; set; }
}
public partial class CreateRefreshJwtResponse
{
public virtual string? Token { get; set; }
public virtual ResponseStatus? ResponseStatus { get; set; }
}
[Route("/custom")]
[Route("/custom/{Data}")]
public partial class CustomRoute
: IReturn
{
public virtual string? Data { get; set; }
}
public partial class CustomType
{
public virtual int Id { get; set; }
public virtual string? Name { get; set; }
}
public partial class CustomUserSession
: AuthUserSession
{
[DataMember]
public virtual string? CustomName { get; set; }
[DataMember]
public virtual string? CustomInfo { get; set; }
}
public partial class DummyTypes
{
public virtual List? HelloResponses { get; set; }
public virtual List? ListResult { get; set; }
public virtual ArrayResult[]? ArrayResult { get; set; }
public virtual CancelRequest? CancelRequest { get; set; }
public virtual CancelRequestResponse? CancelRequestResponse { get; set; }
public virtual UpdateEventSubscriber? UpdateEventSubscriber { get; set; }
public virtual UpdateEventSubscriberResponse? UpdateEventSubscriberResponse { get; set; }
public virtual GetApiKeys? GetApiKeys { get; set; }
public virtual GetApiKeysResponse? GetApiKeysResponse { get; set; }
public virtual RegenerateApiKeys? RegenerateApiKeys { get; set; }
public virtual RegenerateApiKeysResponse? RegenerateApiKeysResponse { get; set; }
public virtual UserApiKey? UserApiKey { get; set; }
public virtual ConvertSessionToToken? ConvertSessionToToken { get; set; }
public virtual ConvertSessionToTokenResponse? ConvertSessionToTokenResponse { get; set; }
public virtual GetAccessToken? GetAccessToken { get; set; }
public virtual GetAccessTokenResponse? GetAccessTokenResponse { get; set; }
public virtual NavItem? NavItem { get; set; }
public virtual GetNavItems? GetNavItems { get; set; }
public virtual GetNavItemsResponse? GetNavItemsResponse { get; set; }
public virtual EmptyResponse? EmptyResponse { get; set; }
public virtual IdResponse? IdResponse { get; set; }
public virtual StringResponse? StringResponse { get; set; }
public virtual StringsResponse? StringsResponse { get; set; }
public virtual AuditBase? AuditBase { get; set; }
}
[Route("/echo/collections")]
public partial class EchoCollections
: IReturn
{
public virtual List? StringList { get; set; }
public virtual string[]? StringArray { get; set; }
public virtual Dictionary? StringMap { get; set; }
public virtual Dictionary? IntStringMap { get; set; }
}
[Route("/echo/complex")]
public partial class EchoComplexTypes
: IReturn
{
public virtual SubType? SubType { get; set; }
public virtual List? SubTypes { get; set; }
public virtual Dictionary? SubTypeMap { get; set; }
public virtual Dictionary? StringMap { get; set; }
public virtual Dictionary? IntStringMap { get; set; }
}
[Route("/echo/types")]
public partial class EchoTypes
: IReturn
{
public virtual byte Byte { get; set; }
public virtual short Short { get; set; }
public virtual int Int { get; set; }
public virtual long Long { get; set; }
public virtual ushort UShort { get; set; }
public virtual uint UInt { get; set; }
public virtual ulong ULong { get; set; }
public virtual float Float { get; set; }
public virtual double Double { get; set; }
public virtual decimal Decimal { get; set; }
public virtual string? String { get; set; }
public virtual DateTime DateTime { get; set; }
public virtual TimeSpan TimeSpan { get; set; }
public virtual DateTimeOffset DateTimeOffset { get; set; }
public virtual Guid Guid { get; set; }
public virtual Char Char { get; set; }
}
public partial class GetAccount
: IReturn
{
public virtual string? Account { get; set; }
}
[Route("/chathistory")]
public partial class GetChatHistory
: IReturn
{
public virtual string[]? Channels { get; set; }
public virtual long? AfterId { get; set; }
public virtual int? Take { get; set; }
}
public partial class GetChatHistoryResponse
{
public virtual List? Results { get; set; }
public virtual ResponseStatus? ResponseStatus { get; set; }
}
public partial class GetProject
: IReturn
{
public virtual string? Account { get; set; }
public virtual string? Project { get; set; }
}
[Route("/Request1", "GET")]
public partial class GetRequest1
: IReturn>, IGet
{
}
[Route("/Request2", "GET")]
public partial class GetRequest2
: IReturn>, IGet
{
}
[Route("/session")]
public partial class GetSession
: IReturn
{
}
public partial class GetSessionResponse
{
public virtual CustomUserSession? Result { get; set; }
public virtual UnAuthInfo? UnAuthInfo { get; set; }
public virtual ResponseStatus? ResponseStatus { get; set; }
}
[Route("/Stuff")]
[DataContract(Namespace="http://schemas.servicestack.net/types")]
public partial class GetStuff
: IReturn
{
[DataMember]
[ApiMember(DataType="DateTime", Name="Summary Date")]
public virtual DateTime? SummaryDate { get; set; }
[DataMember]
[ApiMember(DataType="DateTime", Name="Summary End Date")]
public virtual DateTime? SummaryEndDate { get; set; }
[DataMember]
[ApiMember(DataType="string", Name="Symbol")]
public virtual string? Symbol { get; set; }
[DataMember]
[ApiMember(DataType="string", Name="Email")]
public virtual string? Email { get; set; }
[DataMember]
[ApiMember(DataType="bool", Name="Is Enabled")]
public virtual bool? IsEnabled { get; set; }
}
[DataContract(Namespace="http://schemas.servicestack.net/types")]
public partial class GetStuffResponse
{
[DataMember]
public virtual DateTime? SummaryDate { get; set; }
[DataMember]
public virtual DateTime? SummaryEndDate { get; set; }
[DataMember]
public virtual string? Symbol { get; set; }
[DataMember]
public virtual string? Email { get; set; }
[DataMember]
public virtual bool? IsEnabled { get; set; }
}
[Route("/account")]
public partial class GetUserDetails
: IReturn
{
}
public partial class GetUserDetailsResponse
{
public virtual string? Provider { get; set; }
public virtual string? UserId { get; set; }
public virtual string? UserName { get; set; }
public virtual string? FullName { get; set; }
public virtual string? DisplayName { get; set; }
public virtual string? FirstName { get; set; }
public virtual string? LastName { get; set; }
public virtual string? Company { get; set; }
public virtual string? Email { get; set; }
public virtual string? PhoneNumber { get; set; }
public virtual DateTime? BirthDate { get; set; }
public virtual string? BirthDateRaw { get; set; }
public virtual string? Address { get; set; }
public virtual string? Address2 { get; set; }
public virtual string? City { get; set; }
public virtual string? State { get; set; }
public virtual string? Country { get; set; }
public virtual string? Culture { get; set; }
public virtual string? Gender { get; set; }
public virtual string? Language { get; set; }
public virtual string? MailAddress { get; set; }
public virtual string? Nickname { get; set; }
public virtual string? PostalCode { get; set; }
public virtual string? TimeZone { get; set; }
}
public partial class HelloAuth
: IReturn
{
public virtual string? Name { get; set; }
}
[Route("/hello-image/{Name}")]
public partial class HelloImage
: IReturn
{
public virtual string? Name { get; set; }
public virtual string? Format { get; set; }
public virtual int? Width { get; set; }
public virtual int? Height { get; set; }
public virtual int? FontSize { get; set; }
public virtual string? FontFamily { get; set; }
public virtual string? Foreground { get; set; }
public virtual string? Background { get; set; }
}
[Route("/image-bytes")]
public partial class ImageAsBytes
: IReturn
{
public virtual string? Format { get; set; }
}
[Route("/image-custom")]
public partial class ImageAsCustomResult
: IReturn
{
public virtual string? Format { get; set; }
}
[Route("/image-file")]
public partial class ImageAsFile
: IReturn
{
public virtual string? Format { get; set; }
}
[Route("/image-redirect")]
public partial class ImageAsRedirect
{
public virtual string? Format { get; set; }
}
[Route("/image-stream")]
public partial class ImageAsStream
: IReturn
{
public virtual string? Format { get; set; }
}
[Route("/image-response")]
public partial class ImageWriteToResponse
: IReturn
{
public virtual string? Format { get; set; }
}
[Route("/jwt-invalidate")]
public partial class InvalidateLastAccessToken
: IReturn
{
}
[Route("/ping")]
public partial class Ping
: IReturn
{
}
public partial class PingResponse
{
public virtual Dictionary? Responses { get; set; }
public virtual ResponseStatus? ResponseStatus { get; set; }
}
[Route("/channels/{Channel}/chat")]
public partial class PostChatToChannel
: IReturn
{
public virtual string? From { get; set; }
public virtual string? ToUserId { get; set; }
public virtual string? Channel { get; set; }
public virtual string? Message { get; set; }
public virtual string? Selector { get; set; }
}
[Route("/channels/{Channel}/object")]
public partial class PostObjectToChannel
: IReturnVoid
{
public virtual string? ToUserId { get; set; }
public virtual string? Channel { get; set; }
public virtual string? Selector { get; set; }
public virtual CustomType? CustomType { get; set; }
public virtual SetterType? SetterType { get; set; }
}
[Route("/channels/{Channel}/raw")]
public partial class PostRawToChannel
: IReturnVoid
{
public virtual string? From { get; set; }
public virtual string? ToUserId { get; set; }
public virtual string? Channel { get; set; }
public virtual string? Message { get; set; }
public virtual string? Selector { get; set; }
}
public partial class Project
{
public virtual string? Account { get; set; }
public virtual string? Name { get; set; }
}
public partial class QueryItems
: QueryDb- , IReturn>
{
}
public partial class RequiresAdmin
: IReturn
{
public virtual int Id { get; set; }
}
[Route("/reset-serverevents")]
public partial class ResetServerEvents
: IReturnVoid
{
}
public partial class ReturnedDto
{
public virtual int Id { get; set; }
}
[Route("/return/html")]
public partial class ReturnHtml
{
public virtual string? Text { get; set; }
}
[Route("/return/text")]
public partial class ReturnText
{
public virtual string? Text { get; set; }
}
public partial class RootPathRoutes
{
public virtual string? Path { get; set; }
}
[Route("/secured")]
[ValidateRequest("IsAuthenticated")]
public partial class Secured
: IReturn
{
public virtual string? Name { get; set; }
}
public partial class SecuredResponse
{
public virtual string? Result { get; set; }
public virtual ResponseStatus? ResponseStatus { get; set; }
}
public partial class SendDefault
: IReturn
{
public virtual int Id { get; set; }
}
public partial class SendGet
: IReturn, IGet
{
public virtual int Id { get; set; }
}
public partial class SendPost
: IReturn, IPost
{
public virtual int Id { get; set; }
}
public partial class SendPut
: IReturn, IPut
{
public virtual int Id { get; set; }
}
[Route("/sendrestget/{Id}", "GET")]
public partial class SendRestGet
: IReturn, IGet
{
public virtual int Id { get; set; }
}
public partial class SendReturnVoid
: IReturnVoid
{
public virtual int Id { get; set; }
}
public partial class SendVerbResponse
{
public virtual int Id { get; set; }
public virtual string? PathInfo { get; set; }
public virtual string? RequestMethod { get; set; }
}
public partial class SetterType
{
public virtual int Id { get; set; }
public virtual string? Name { get; set; }
}
[Route("/testauth")]
public partial class TestAuth
: IReturn
{
}
public partial class TestAuthResponse
{
public virtual string? UserId { get; set; }
public virtual string? SessionId { get; set; }
public virtual string? UserName { get; set; }
public virtual string? DisplayName { get; set; }
public virtual ResponseStatus? ResponseStatus { get; set; }
}
[Route("/testdata/AllCollectionTypes")]
public partial class TestDataAllCollectionTypes
: IReturn
{
}
[Route("/testdata/AllTypes")]
public partial class TestDataAllTypes
: IReturn
{
}
[Route("/null-response")]
public partial class TestNullResponse
{
}
[Route("/void-response")]
public partial class TestVoidResponse
{
}
[Route("/textfile-test")]
public partial class TextFileTest
{
public virtual bool AsAttachment { get; set; }
}
public partial class UnAuthInfo
{
public virtual string? CustomInfo { get; set; }
}
[Route("/session/edit/{CustomName}")]
public partial class UpdateSession
: IReturn
{
public virtual string? CustomName { get; set; }
}
[Route("/logs")]
public partial class ViewLogs
: IReturn
{
public virtual bool Clear { get; set; }
}
[Route("/wait/{ForMs}")]
public partial class Wait
: IReturn
{
public virtual int ForMs { get; set; }
}
///
///AllowedAttributes Description
///
[Route("/allowed-attributes", "GET")]
[Api(Description="AllowedAttributes Description")]
[ApiResponse(Description="Your request was not understood", StatusCode=400)]
[DataContract]
public partial class AllowedAttributes
{
///
///Range Description
///
[DataMember(Name="Aliased")]
[ApiMember(DataType="double", Description="Range Description", IsRequired=true, ParameterType="path")]
public virtual double Range { get; set; }
}
public partial class AltQueryItems
: IReturn>
{
public virtual string Name { get; set; }
}
public partial class ArrayResult
{
public virtual string Result { get; set; }
}
public partial class Channel
{
public virtual string Name { get; set; }
public virtual string Value { get; set; }
}
public partial class CreateAuditBase
: ICreateDb
{
}
public partial class CreateAuditTenantBase
: CreateAuditBase
{
}
public partial class CreateRockstarAudit
: RockstarBase, IReturn, ICreateDb
{
}
public partial class CreateRockstarAuditMqToken
: RockstarBase, IReturn, ICreateDb, IHasBearerToken
{
public virtual string BearerToken { get; set; }
}
public partial class CreateRockstarAuditTenant
: CreateAuditTenantBase, IReturn, IHasSessionId
{
public virtual string SessionId { get; set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual int? Age { get; set; }
public virtual DateTime DateOfBirth { get; set; }
public virtual DateTime? DateDied { get; set; }
public virtual LivingStatus LivingStatus { get; set; }
}
public partial class CreateRockstarVersion
: RockstarBase, IReturn, ICreateDb
{
}
public partial class CustomHttpError
: IReturn
{
public virtual int StatusCode { get; set; }
public virtual string StatusDescription { get; set; }
}
public partial class CustomHttpErrorResponse
{
public virtual string Custom { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class DeclarativeChildValidation
{
public virtual string Name { get; set; }
[Validate("MaximumLength(20)")]
public virtual string Value { get; set; }
}
public partial class DeclarativeCollectiveValidationTest
: IReturn
{
[Validate("NotEmpty")]
[Validate("MaximumLength(20)")]
public virtual string Site { get; set; }
public virtual List DeclarativeValidations { get; set; } = [];
public virtual List FluentValidations { get; set; } = [];
}
public partial class DeclarativeSingleValidation
{
public virtual string Name { get; set; }
[Validate("MaximumLength(20)")]
public virtual string Value { get; set; }
}
public partial class DeclarativeSingleValidationTest
: IReturn
{
[Validate("NotEmpty")]
[Validate("MaximumLength(20)")]
public virtual string Site { get; set; }
public virtual DeclarativeSingleValidation DeclarativeSingleValidation { get; set; }
public virtual FluentSingleValidation FluentSingleValidation { get; set; }
}
[ValidateRequest("IsAuthenticated")]
public partial class DeclarativeValidationAuth
{
public virtual string Name { get; set; }
}
public partial class Device
{
public virtual long Id { get; set; }
public virtual string Type { get; set; }
public virtual long TimeStamp { get; set; }
public virtual List Channels { get; set; } = [];
}
public partial class EmptyClass
{
}
public enum EnumAsInt
{
Value1 = 1000,
Value2 = 2000,
Value3 = 3000,
}
[Flags]
public enum EnumFlags
{
Value0 = 0,
Value1 = 1,
Value2 = 2,
Value3 = 4,
Value123 = 7,
}
public partial class EnumRequest
: IReturn, IPut
{
public virtual ScopeType Operator { get; set; }
}
public partial class EnumResponse
{
public virtual ScopeType Operator { get; set; }
}
public enum EnumStyle
{
lower,
UPPER,
PascalCase,
camelCase,
camelUPPER,
PascalUPPER,
}
public enum EnumStyleMembers
{
[EnumMember(Value="lower")]
Lower,
[EnumMember(Value="UPPER")]
Upper,
[EnumMember(Value="PascalCase")]
PascalCase,
[EnumMember(Value="camelCase")]
CamelCase,
[EnumMember(Value="camelUPPER")]
CamelUpper,
[EnumMember(Value="PascalUPPER")]
PascalUpper,
}
public enum EnumType
{
Value1,
Value2,
Value3,
}
[Flags]
public enum EnumTypeFlags
{
Value1 = 0,
Value2 = 1,
Value3 = 2,
}
public enum EnumWithValues
{
[EnumMember(Value="None")]
None,
[EnumMember(Value="Member 1")]
Value1,
[EnumMember(Value="Value2")]
Value2,
}
public partial class FluentChildValidation
{
public virtual string Name { get; set; }
public virtual string Value { get; set; }
}
public partial class FluentSingleValidation
{
public virtual string Name { get; set; }
public virtual string Value { get; set; }
}
[Route("/example", "GET")]
[DataContract]
public partial class GetExample
: IReturn
{
}
[DataContract]
public partial class GetExampleResponse
{
[DataMember(Order=1)]
public virtual ResponseStatus ResponseStatus { get; set; }
[DataMember(Order=2)]
[ApiMember]
public virtual MenuExample MenuExample1 { get; set; }
}
public partial class GetItems
: IReturn
{
}
public partial class GetNakedItems
: IReturn>
{
}
[Route("/randomids")]
public partial class GetRandomIds
: IReturn
{
public virtual int? Take { get; set; }
}
public partial class GetRandomIdsResponse
{
public virtual List Results { get; set; } = [];
}
[Route("/hello")]
[Route("/hello/{Name}")]
public partial class Hello
: IReturn
{
[Required]
public virtual string Name { get; set; }
public virtual string Title { get; set; }
}
[Route("/all-types")]
public partial class HelloAllTypes
: IReturn
{
public virtual string Name { get; set; }
public virtual AllTypes AllTypes { get; set; }
public virtual AllCollectionTypes AllCollectionTypes { get; set; }
}
public partial class HelloAllTypesResponse
{
public virtual string Result { get; set; }
public virtual AllTypes AllTypes { get; set; }
public virtual AllCollectionTypes AllCollectionTypes { get; set; }
}
public partial class HelloArray
: IReturn
{
public virtual List Names { get; set; } = [];
}
public partial class HelloBase
{
public virtual List Items { get; set; } = [];
public virtual List Counts { get; set; } = [];
}
public partial class HelloBuiltin
{
public virtual DayOfWeek DayOfWeek { get; set; }
}
public partial class HelloDateTime
: IReturn
{
public virtual DateTime DateTime { get; set; }
}
public partial class HelloDelete
: IReturn, IDelete
{
public virtual int Id { get; set; }
}
public partial class HelloExternal
{
public virtual string Name { get; set; }
}
public partial class HelloGet
: IReturn, IGet
{
public virtual int Id { get; set; }
}
public partial class HelloInnerTypes
: IReturn
{
}
public partial class HelloInnerTypesResponse
{
public virtual InnerType InnerType { get; set; }
public virtual InnerEnum InnerEnum { get; set; }
}
public partial class HelloInterface
{
public virtual IPoco Poco { get; set; }
public virtual IEmptyInterface EmptyInterface { get; set; }
public virtual EmptyClass EmptyClass { get; set; }
}
public partial class HelloList
: IReturn>
{
public virtual List Names { get; set; } = [];
}
public partial class HelloMap
: IReturn>
{
public virtual List Names { get; set; } = [];
}
public partial class HelloPatch
: IReturn, IPatch
{
public virtual int Id { get; set; }
}
public partial class HelloPost
: HelloBase, IReturn, IPost
{
}
public partial class HelloPut
: IReturn, IPut
{
public virtual int Id { get; set; }
}
public partial class HelloQueryResponse
: IReturn>
{
public virtual List Names { get; set; } = [];
}
public partial class HelloResponse
{
public virtual string Result { get; set; }
}
public partial class HelloReturnVoid
: IReturnVoid
{
public virtual int Id { get; set; }
}
[Route("/hello-secure/{Name}")]
[ValidateRequest("IsAuthenticated")]
public partial class HelloSecure
: IReturn
{
public virtual string Name { get; set; }
}
public partial class HelloString
: IReturn
{
public virtual string Name { get; set; }
}
[Route("/hellotypes/{Name}")]
public partial class HelloTypes
: IReturn
{
public virtual string String { get; set; }
public virtual bool Bool { get; set; }
public virtual int Int { get; set; }
}
public partial class HelloVerbResponse
{
public virtual string Result { get; set; }
}
public partial class HelloVoid
{
public virtual string Name { get; set; }
}
public partial class HelloWithAlternateReturnResponse
: HelloWithReturnResponse
{
public virtual string AltResult { get; set; }
}
[DataContract]
public partial class HelloWithDataContract
: IReturn
{
[DataMember(Name="name", Order=1, IsRequired=true, EmitDefaultValue=false)]
public virtual string Name { get; set; }
[DataMember(Name="id", Order=2, EmitDefaultValue=false)]
public virtual int Id { get; set; }
}
[DataContract]
public partial class HelloWithDataContractResponse
{
[DataMember(Name="result", Order=1, IsRequired=true, EmitDefaultValue=false)]
public virtual string Result { get; set; }
}
///
///Description on HelloWithDescription type
///
public partial class HelloWithDescription
: IReturn
{
public virtual string Name { get; set; }
}
///
///Description on HelloWithDescriptionResponse type
///
public partial class HelloWithDescriptionResponse
{
public virtual string Result { get; set; }
}
public partial class HelloWithEnum
{
public virtual EnumType EnumProp { get; set; }
public virtual EnumTypeFlags EnumTypeFlags { get; set; }
public virtual EnumWithValues EnumWithValues { get; set; }
public virtual EnumType? NullableEnumProp { get; set; }
public virtual EnumFlags EnumFlags { get; set; }
public virtual EnumAsInt EnumAsInt { get; set; }
public virtual EnumStyle EnumStyle { get; set; }
public virtual EnumStyleMembers EnumStyleMembers { get; set; }
}
public partial class HelloWithEnumList
{
public virtual List EnumProp { get; set; } = [];
public virtual List EnumWithValues { get; set; } = [];
public virtual List> NullableEnumProp { get; set; } = [];
public virtual List EnumFlags { get; set; } = [];
public virtual List EnumStyle { get; set; } = [];
}
public partial class HelloWithEnumMap
{
public virtual Dictionary EnumProp { get; set; } = new();
public virtual Dictionary EnumWithValues { get; set; } = new();
public virtual Dictionary, Nullable> NullableEnumProp { get; set; } = new();
public virtual Dictionary EnumFlags { get; set; } = new();
public virtual Dictionary EnumStyle { get; set; } = new();
}
public partial class HelloWithGenericInheritance
: HelloBase
{
public virtual string Result { get; set; }
}
public partial class HelloWithGenericInheritance2
: HelloBase
{
public virtual string Result { get; set; }
}
public partial class HelloWithInheritance
: HelloBase, IReturn
{
public virtual string Name { get; set; }
}
public partial class HelloWithInheritanceResponse
: HelloResponseBase
{
public virtual string Result { get; set; }
}
public partial class HelloWithNestedClass
: IReturn
{
public virtual string Name { get; set; }
public virtual NestedClass NestedClassProp { get; set; }
public partial class NestedClass
{
public virtual string Value { get; set; }
}
}
public partial class HelloWithReturn
: IReturn
{
public virtual string Name { get; set; }
}
[Route("/helloroute")]
public partial class HelloWithRoute
: IReturn
{
public virtual string Name { get; set; }
}
public partial class HelloWithRouteResponse
{
public virtual string Result { get; set; }
}
public partial class HelloWithType
: IReturn
{
public virtual string Name { get; set; }
}
public partial class HelloWithTypeResponse
{
public virtual HelloType Result { get; set; }
}
[Route("/hellozip")]
[DataContract]
public partial class HelloZip
: IReturn
{
[DataMember]
public virtual string Name { get; set; }
[DataMember]
public virtual List Test { get; set; } = [];
}
[DataContract]
public partial class HelloZipResponse
{
[DataMember]
public virtual string Result { get; set; }
}
public partial interface IEmptyInterface
{
}
public partial interface IGeneration
{
string? RefId { get; set; }
string? Tag { get; set; }
}
public partial interface IPoco
{
string Name { get; set; }
}
public partial class Item
{
public virtual string Name { get; set; }
public virtual string Description { get; set; }
}
public partial class Items
{
public virtual List- Results { get; set; } = [];
}
public partial class ListResult
{
public virtual string Result { get; set; }
}
public enum LivingStatus
{
Alive,
Dead,
}
public partial class Logger
{
public virtual long Id { get; set; }
public virtual List Devices { get; set; } = [];
}
[DataContract]
public partial class MenuExample
{
[DataMember(Order=1)]
[ApiMember]
public virtual MenuItemExample MenuItemExample1 { get; set; }
}
public partial class MenuItemExample
{
[DataMember(Order=1)]
[ApiMember]
public virtual string Name1 { get; set; }
public virtual MenuItemExampleItem MenuItemExampleItem { get; set; }
}
public partial class MenuItemExampleItem
{
[DataMember(Order=1)]
[ApiMember]
public virtual string Name1 { get; set; }
}
[Route("/messages/{Id}", "PUT")]
public partial class Message
: IReturn
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
}
[Route("/messages/crud/{Id}", "PUT")]
public partial class MessageCrud
: IReturnVoid, ISaveDb
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
}
[Route("/message/query/{Id}", "GET")]
public partial class MessageQuery
: QueryDb, IReturn>
{
public virtual int Id { get; set; }
}
[Route("/metadatatest")]
public partial class MetadataTest
: IReturn
{
public virtual int Id { get; set; }
}
[Route("/metadatatest-array")]
public partial class MetadataTestArray
: IReturn
{
public virtual int Id { get; set; }
}
public partial class MetadataTestChild
{
public virtual string Name { get; set; }
public virtual List Results { get; set; } = [];
}
public partial class MetadataTestNestedChild
{
public virtual string Name { get; set; }
}
public partial class MetadataTestResponse
{
public virtual int Id { get; set; }
public virtual List Results { get; set; } = [];
}
public partial class OnlyDefinedInGenericType
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
}
public partial class OnlyDefinedInGenericTypeFrom
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
}
public partial class OnlyDefinedInGenericTypeInto
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
}
public partial class PatchAuditBase
: IPatchDb
{
}
public partial class PatchAuditTenantBase
: PatchAuditBase
{
}
public partial class PatchRockstarAuditTenant
: PatchAuditTenantBase, IReturn, IHasSessionId
{
public virtual string SessionId { get; set; }
public virtual int Id { get; set; }
public virtual string FirstName { get; set; }
public virtual LivingStatus? LivingStatus { get; set; }
}
public partial class QueryDbTenant
: QueryDb
{
}
public partial class QueryPocoBase
: QueryDb, IReturn>
{
public virtual int Id { get; set; }
}
public partial class QueryPocoIntoBase
: QueryDb, IReturn>
{
public virtual int Id { get; set; }
}
public partial class QueryResponseAlt
: IMeta
{
public virtual int Offset { get; set; }
public virtual int Total { get; set; }
public virtual List- Results { get; set; } = [];
public virtual Dictionary Meta { get; set; } = new();
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class QueryRockstarAudit
: QueryDbTenant, IReturn>
{
public virtual int? Id { get; set; }
}
public partial class QueryRockstarAuditSubOr
: QueryDb, IReturn>
{
public virtual string FirstNameStartsWith { get; set; }
public virtual int? AgeOlderThan { get; set; }
}
[Route("/rockstars", "GET")]
public partial class QueryRockstars
: QueryDb, IReturn>
{
}
public partial class RealDeleteAuditTenant
: IReturn, IDeleteDb, IHasSessionId
{
public virtual string SessionId { get; set; }
public virtual int Id { get; set; }
public virtual int? Age { get; set; }
}
[Route("/messages/{Id}", "GET")]
public partial class RequestMessage
: IReturn
{
public virtual int Id { get; set; }
}
[Route("/requires-role")]
public partial class RequiresRole
: IReturn
{
}
public partial class RequiresRoleResponse
{
public virtual string Result { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
[Route("/return/bytes")]
public partial class ReturnBytes
: IReturn
{
public virtual byte[] Data { get; set; } = [];
}
[Route("/returncustom400")]
[Route("/returncustom400/{Message}")]
public partial class ReturnCustom400
: IReturn
{
public virtual string Message { get; set; }
}
public partial class ReturnCustom400Response
{
public virtual ResponseStatus ResponseStatus { get; set; }
}
[Route("/return/json")]
public partial class ReturnJson
{
}
[Route("/return/json/header")]
public partial class ReturnJsonHeader
{
}
[Route("/return/stream")]
public partial class ReturnStream
: IReturn
{
public virtual byte[] Data { get; set; } = [];
}
[Route("/return/string")]
public partial class ReturnString
: IReturn
{
public virtual string Data { get; set; }
}
public partial class Rockstar
{
public virtual int Id { get; set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual int? Age { get; set; }
}
public partial class RockstarAudit
: RockstarBase
{
public virtual int Id { get; set; }
public virtual DateTime CreatedDate { get; set; }
public virtual string CreatedBy { get; set; }
public virtual string CreatedInfo { get; set; }
public virtual DateTime ModifiedDate { get; set; }
public virtual string ModifiedBy { get; set; }
public virtual string ModifiedInfo { get; set; }
}
public partial class RockstarAuditTenant
: AuditBase
{
public virtual int TenantId { get; set; }
public virtual int Id { get; set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual int? Age { get; set; }
public virtual DateTime DateOfBirth { get; set; }
public virtual DateTime? DateDied { get; set; }
public virtual LivingStatus LivingStatus { get; set; }
}
public partial class RockstarAuto
: RockstarBase
{
public virtual int Id { get; set; }
}
public partial class RockstarBase
{
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual int? Age { get; set; }
public virtual DateTime DateOfBirth { get; set; }
public virtual DateTime? DateDied { get; set; }
public virtual LivingStatus LivingStatus { get; set; }
}
public partial class RockstarVersion
: RockstarBase
{
public virtual int Id { get; set; }
public virtual ulong RowVersion { get; set; }
}
public partial class RockstarWithIdAndCountResponse
{
public virtual int Id { get; set; }
public virtual int Count { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class RockstarWithIdAndResultResponse
{
public virtual int Id { get; set; }
public virtual RockstarAuto Result { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class RockstarWithIdAndRowVersionResponse
{
public virtual int Id { get; set; }
public virtual uint RowVersion { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class RockstarWithIdResponse
{
public virtual int Id { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
[DataContract]
public enum ScopeType
{
Global = 1,
Sale = 2,
}
[Route("/sendjson")]
public partial class SendJson
: IReturn
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
public virtual Stream RequestStream { get; set; }
}
[Route("/sendraw")]
public partial class SendRaw
: IReturn
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
public virtual string ContentType { get; set; }
public virtual Stream RequestStream { get; set; }
}
[Route("/sendtext")]
public partial class SendText
: IReturn
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
public virtual string ContentType { get; set; }
public virtual Stream RequestStream { get; set; }
}
public partial class SoftDeleteAuditBase
: IUpdateDb
{
}
public partial class SoftDeleteAuditTenant
: SoftDeleteAuditTenantBase, IReturn
{
public virtual int Id { get; set; }
}
public partial class SoftDeleteAuditTenantBase
: SoftDeleteAuditBase
{
}
///
///Convert speech to text
///
[Api(Description="Convert speech to text")]
public partial class SpeechToText
: IReturn, IGeneration
{
///
///The audio stream containing the speech to be transcribed
///
[ApiMember(Description="The audio stream containing the speech to be transcribed")]
[Required]
public virtual string Audio { get; set; }
///
///Optional client-provided identifier for the request
///
[ApiMember(Description="Optional client-provided identifier for the request")]
public virtual string? RefId { get; set; }
///
///Tag to identify the request
///
[ApiMember(Description="Tag to identify the request")]
public virtual string? Tag { get; set; }
}
public partial class StoreLogs
: IReturn
{
public virtual List Loggers { get; set; } = [];
}
public partial class StoreLogsResponse
{
public virtual List ExistingLogs { get; set; } = [];
public virtual ResponseStatus ResponseStatus { get; set; }
}
[Route("/rockstars", "POST")]
public partial class StoreRockstars
: List, IReturn
{
}
public partial class TestFileUploads
: IReturn
{
public virtual int? Id { get; set; }
public virtual string? RefId { get; set; }
}
public partial class TestFileUploadsResponse
{
public virtual int? Id { get; set; }
public virtual string? RefId { get; set; }
public virtual List Files { get; set; } = [];
public virtual ResponseStatus? ResponseStatus { get; set; }
}
public partial class TestUploadWithDto
: IReturn, IPost
{
public virtual int Int { get; set; }
public virtual int? NullableId { get; set; }
public virtual long Long { get; set; }
public virtual double Double { get; set; }
public virtual string String { get; set; }
public virtual DateTime DateTime { get; set; }
public virtual int[]? IntArray { get; set; }
public virtual List? IntList { get; set; }
public virtual string[]? StringArray { get; set; }
public virtual List? StringList { get; set; }
public virtual Poco[]? PocoArray { get; set; }
public virtual List? PocoList { get; set; }
public virtual byte?[]? NullableByteArray { get; set; }
public virtual List>? NullableByteList { get; set; }
public virtual DateTime?[]? NullableDateTimeArray { get; set; }
public virtual List>? NullableDateTimeList { get; set; }
public virtual Dictionary>? PocoLookup { get; set; }
public virtual Dictionary>>? PocoLookupMap { get; set; }
public virtual Dictionary>? MapList { get; set; }
}
///
///Response object for text generation requests
///
[Api(Description="Response object for text generation requests")]
public partial class TextGenerationResponse
{
///
///List of generated text outputs
///
[ApiMember(Description="List of generated text outputs")]
public virtual List? Results { get; set; }
///
///Detailed response status information
///
[ApiMember(Description="Detailed response status information")]
public virtual ResponseStatus? ResponseStatus { get; set; }
}
///
///Output object for generated text
///
public partial class TextOutput
{
///
///The generated text
///
[ApiMember(Description="The generated text")]
public virtual string? Text { get; set; }
}
[Route("/throw404")]
[Route("/throw404/{Message}")]
public partial class Throw404
{
public virtual string Message { get; set; }
}
[Route("/throwbusinesserror")]
public partial class ThrowBusinessError
: IReturn
{
}
public partial class ThrowBusinessErrorResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
}
[Route("/throwcustom400")]
[Route("/throwcustom400/{Message}")]
public partial class ThrowCustom400
{
public virtual string Message { get; set; }
}
[Route("/throwhttperror/{Status}")]
public partial class ThrowHttpError
{
public virtual int? Status { get; set; }
public virtual string Message { get; set; }
}
[Route("/throw/{Type}")]
public partial class ThrowType
: IReturn
{
public virtual string Type { get; set; }
public virtual string Message { get; set; }
}
public partial class ThrowTypeResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
}
[Route("/throwvalidation")]
public partial class ThrowValidation
: IReturn
{
public virtual int Age { get; set; }
public virtual string Required { get; set; }
public virtual string Email { get; set; }
}
public partial class ThrowValidationResponse
{
public virtual int Age { get; set; }
public virtual string Required { get; set; }
public virtual string Email { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class TypesGroup
{
public partial class InnerType
{
public virtual long Id { get; set; }
public virtual string Name { get; set; }
}
public enum InnerEnum
{
Foo,
Bar,
Baz,
}
}
public partial class UpdateAuditBase
: IUpdateDb
{
}
public partial class UpdateAuditTenantBase
: UpdateAuditBase
{
}
public partial class UpdateRockstarAuditTenant
: UpdateAuditTenantBase, IReturn, IHasSessionId
{
public virtual string SessionId { get; set; }
public virtual int Id { get; set; }
public virtual string FirstName { get; set; }
public virtual LivingStatus? LivingStatus { get; set; }
}
public partial class UploadInfo
{
public virtual string Name { get; set; }
public virtual string FileName { get; set; }
public virtual long ContentLength { get; set; }
public virtual string ContentType { get; set; }
}
[Route("/write/json")]
public partial class WriteJson
{
}
public partial class AllCollectionTypes
: IReturn
{
public virtual int[] IntArray { get; set; } = [];
public virtual List IntList { get; set; } = [];
public virtual string[] StringArray { get; set; } = [];
public virtual List StringList { get; set; } = [];
public virtual float[] FloatArray { get; set; } = [];
public virtual List DoubleList { get; set; } = [];
public virtual byte[] ByteArray { get; set; } = [];
public virtual Char[] CharArray { get; set; } = [];
public virtual List DecimalList { get; set; } = [];
public virtual Poco[] PocoArray { get; set; } = [];
public virtual List PocoList { get; set; } = [];
public virtual Dictionary> PocoLookup { get; set; } = new();
public virtual Dictionary>> PocoLookupMap { get; set; } = new();
}
public partial class AllTypes
: IReturn
{
public virtual int Id { get; set; }
public virtual int? NullableId { get; set; }
public virtual byte Byte { get; set; }
public virtual short Short { get; set; }
public virtual int Int { get; set; }
public virtual long Long { get; set; }
public virtual ushort UShort { get; set; }
public virtual uint UInt { get; set; }
public virtual ulong ULong { get; set; }
public virtual float Float { get; set; }
public virtual double Double { get; set; }
public virtual decimal Decimal { get; set; }
public virtual string String { get; set; }
public virtual DateTime DateTime { get; set; }
public virtual TimeSpan TimeSpan { get; set; }
public virtual DateTimeOffset DateTimeOffset { get; set; }
public virtual Guid Guid { get; set; }
public virtual Char Char { get; set; }
public virtual KeyValuePair KeyValuePair { get; set; }
public virtual DateTime? NullableDateTime { get; set; }
public virtual TimeSpan? NullableTimeSpan { get; set; }
public virtual List StringList { get; set; } = [];
public virtual string[] StringArray { get; set; } = [];
public virtual Dictionary StringMap { get; set; } = new();
public virtual Dictionary IntStringMap { get; set; } = new();
public virtual SubType SubType { get; set; }
}
public partial class AllTypesBase
{
public virtual int Id { get; set; }
public virtual int? NullableId { get; set; }
public virtual byte Byte { get; set; }
public virtual short Short { get; set; }
public virtual int Int { get; set; }
public virtual long Long { get; set; }
public virtual ushort UShort { get; set; }
public virtual uint UInt { get; set; }
public virtual ulong ULong { get; set; }
public virtual float Float { get; set; }
public virtual double Double { get; set; }
public virtual decimal Decimal { get; set; }
public virtual string String { get; set; }
public virtual DateTime DateTime { get; set; }
public virtual TimeSpan TimeSpan { get; set; }
public virtual DateTimeOffset DateTimeOffset { get; set; }
public virtual Guid Guid { get; set; }
public virtual Char Char { get; set; }
public virtual KeyValuePair KeyValuePair { get; set; }
public virtual DateTime? NullableDateTime { get; set; }
public virtual TimeSpan? NullableTimeSpan { get; set; }
public virtual List StringList { get; set; } = [];
public virtual string[] StringArray { get; set; } = [];
public virtual Dictionary StringMap { get; set; } = new();
public virtual Dictionary IntStringMap { get; set; } = new();
public virtual SubType SubType { get; set; }
}
public partial class HelloBase
{
public virtual int Id { get; set; }
}
public partial class HelloResponseBase
{
public virtual int RefId { get; set; }
}
public partial class HelloSubAllTypes
: AllTypesBase, IReturn
{
public virtual int Hierarchy { get; set; }
}
public partial class HelloType
{
public virtual string Result { get; set; }
}
public partial class HelloWithReturnResponse
{
public virtual string Result { get; set; }
}
public partial class Poco
{
public virtual string Name { get; set; }
}
public partial class SubAllTypes
: AllTypesBase
{
public virtual int Hierarchy { get; set; }
}
public partial class SubType
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
}
}