Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed partial class AddOrganizationMembersRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("members")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::Ideogram.LiteOrganizationMember> Members { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::Ideogram.LiteOrganizationMember> Members { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class ApiOrganizationUserSuggestion
/// <example>john_doe</example>
[global::System.Text.Json.Serialization.JsonPropertyName("display_handle")]
[global::System.Text.Json.Serialization.JsonRequired]
public string DisplayHandle { get; set; } = default!;
public required string DisplayHandle { get; set; }

/// <summary>
/// Whether the user has already joined the organization<br/>
Expand All @@ -24,7 +24,7 @@ public sealed partial class ApiOrganizationUserSuggestion
/// <example>false</example>
[global::System.Text.Json.Serialization.JsonPropertyName("joined")]
[global::System.Text.Json.Serialization.JsonRequired]
public bool Joined { get; set; } = default!;
public required bool Joined { get; set; }

/// <summary>
/// URL to the user's profile picture<br/>
Expand Down
14 changes: 7 additions & 7 deletions src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed partial class ApiProfile
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ApiProfileTypeJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::Ideogram.ApiProfileType Type { get; set; } = default!;
public required global::Ideogram.ApiProfileType Type { get; set; }

/// <summary>
/// The display name of the profile<br/>
Expand All @@ -25,7 +25,7 @@ public sealed partial class ApiProfile
/// <example>Gamma</example>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Name { get; set; } = default!;
public required string Name { get; set; }

/// <summary>
/// URL to the profile avatar<br/>
Expand All @@ -42,7 +42,7 @@ public sealed partial class ApiProfile
/// <example>b3JnYW5pemF0aW9uXzEyMw</example>
[global::System.Text.Json.Serialization.JsonPropertyName("organization_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string OrganizationId { get; set; } = default!;
public required string OrganizationId { get; set; }

/// <summary>
/// Role within an enterprise organization profile<br/>
Expand All @@ -52,22 +52,22 @@ public sealed partial class ApiProfile
[global::System.Text.Json.Serialization.JsonPropertyName("role")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ApiProfileRoleJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::Ideogram.ApiProfileRole Role { get; set; } = default!;
public required global::Ideogram.ApiProfileRole Role { get; set; }

/// <summary>
/// List of API keys associated with this profile<br/>
/// Default Value: []
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("api_keys")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::Ideogram.ApiProfileApiKey> ApiKeys { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::Ideogram.ApiProfileApiKey> ApiKeys { get; set; }

/// <summary>
/// Whether the user is on Metronome 2.0
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("is_metronome_2_user")]
[global::System.Text.Json.Serialization.JsonRequired]
public bool IsMetronome2User { get; set; } = default!;
public required bool IsMetronome2User { get; set; }

/// <summary>
/// The maximum number of inflight requests permitted for the profile<br/>
Expand All @@ -76,7 +76,7 @@ public sealed partial class ApiProfile
/// <example>10</example>
[global::System.Text.Json.Serialization.JsonPropertyName("max_num_inflight_requests_permitted")]
[global::System.Text.Json.Serialization.JsonRequired]
public int MaxNumInflightRequestsPermitted { get; set; } = default!;
public required int MaxNumInflightRequestsPermitted { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class ApiProfileApiKey
/// <example>JRPVD7jWR1aTBYiJ0UFVOg</example>
[global::System.Text.Json.Serialization.JsonPropertyName("api_key_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string ApiKeyId { get; set; } = default!;
public required string ApiKeyId { get; set; }

/// <summary>
/// A redacted text snippet of the API key. Contains the first 4 characters of the API key<br/>
Expand All @@ -24,22 +24,22 @@ public sealed partial class ApiProfileApiKey
/// <example>ATG56•••••••••••••</example>
[global::System.Text.Json.Serialization.JsonPropertyName("redacted_api_key")]
[global::System.Text.Json.Serialization.JsonRequired]
public string RedactedApiKey { get; set; } = default!;
public required string RedactedApiKey { get; set; }

/// <summary>
/// The date at which the API key was created
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("creation_time")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.DateTime CreationTime { get; set; } = default!;
public required global::System.DateTime CreationTime { get; set; }

/// <summary>
/// Status of the API key
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ApiKeyStatusJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::Ideogram.ApiKeyStatus Status { get; set; } = default!;
public required global::Ideogram.ApiKeyStatus Status { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Ideogram/Generated/Ideogram.Models.ApiTerms.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class ApiTerms
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("terms_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string TermsId { get; set; } = default!;
public required string TermsId { get; set; }

/// <summary>
/// The URL where the terms are hosted.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("terms_url")]
[global::System.Text.Json.Serialization.JsonRequired]
public string TermsUrl { get; set; } = default!;
public required string TermsUrl { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class ColorPaletteMember
/// <example>#FFFFFF</example>
[global::System.Text.Json.Serialization.JsonPropertyName("color_hex")]
[global::System.Text.Json.Serialization.JsonRequired]
public string ColorHex { get; set; } = default!;
public required string ColorHex { get; set; }

/// <summary>
/// The weight of the color in the color palette.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed partial class ColorPaletteWithMembers
/// <example>[{"ColorPaletteMember":{"color_hex":"#b470b3","color_weight":0.49}}, {"ColorPaletteMember":{"color_hex":"#7a79e3","color_weight":0.16}}, {"ColorPaletteMember":{"color_hex":"#a26563","color_weight":0.1}}, {"ColorPaletteMember":{"color_hex":"#5c7d76","color_weight":0.07}}, {"ColorPaletteMember":{"color_hex":"#642a9c","color_weight":0.05}}]</example>
[global::System.Text.Json.Serialization.JsonPropertyName("members")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::Ideogram.ColorPaletteMember> Members { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::Ideogram.ColorPaletteMember> Members { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed partial class ColorPaletteWithPresetName
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ColorPalettePresetNameJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::Ideogram.ColorPalettePresetName Name { get; set; } = default!;
public required global::Ideogram.ColorPalettePresetName Name { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class CreateApiKeyResponse
/// <example>vkpDjaKdMNR8QJ83GjfNvFZJbnoi65XUp70MgZNtA2H9XE8yfDnmr_6BaRyQkF9hnJzu6mUPRLBmqlnZMwetJA</example>
[global::System.Text.Json.Serialization.JsonPropertyName("api_key")]
[global::System.Text.Json.Serialization.JsonRequired]
public string ApiKey { get; set; } = default!;
public required string ApiKey { get; set; }

/// <summary>
/// The ID of the API key. A URL safe base64 encoded UUID<br/>
Expand All @@ -24,7 +24,7 @@ public sealed partial class CreateApiKeyResponse
/// <example>JRPVD7jWR1aTBYiJ0UFVOg==</example>
[global::System.Text.Json.Serialization.JsonPropertyName("api_key_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string ApiKeyId { get; set; } = default!;
public required string ApiKeyId { get; set; }

/// <summary>
/// The time at which the API key was created<br/>
Expand All @@ -33,7 +33,7 @@ public sealed partial class CreateApiKeyResponse
/// <example>2024-05-25T02:00:30+00:00</example>
[global::System.Text.Json.Serialization.JsonPropertyName("creation_time")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.DateTime CreationTime { get; set; } = default!;
public required global::System.DateTime CreationTime { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class DescribeRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image_file")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] ImageFile { get; set; } = default!;
public required byte[] ImageFile { get; set; }

/// <summary>
/// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image_filename")]
[global::System.Text.Json.Serialization.JsonRequired]
public string ImageFilename { get; set; } = default!;
public required string ImageFilename { get; set; }

/// <summary>
/// The model version to use for describing images. Defaults to V_3.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ public sealed partial class EditImageRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image_file")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] ImageFile { get; set; } = default!;
public required byte[] ImageFile { get; set; }

/// <summary>
/// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image_filename")]
[global::System.Text.Json.Serialization.JsonRequired]
public string ImageFilename { get; set; } = default!;
public required string ImageFilename { get; set; }

/// <summary>
/// A black and white image of the same size as the image being edited (max size 10MB). Black regions in the mask should match up with the regions of the image that you would like to edit; only JPEG, WebP and PNG formats are supported at this time.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("mask")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] Mask { get; set; } = default!;
public required byte[] Mask { get; set; }

/// <summary>
/// A black and white image of the same size as the image being edited (max size 10MB). Black regions in the mask should match up with the regions of the image that you would like to edit; only JPEG, WebP and PNG formats are supported at this time.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("maskname")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Maskname { get; set; } = default!;
public required string Maskname { get; set; }

/// <summary>
/// The prompt used to describe the edited result.<br/>
Expand All @@ -43,7 +43,7 @@ public sealed partial class EditImageRequest
/// <example>A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.</example>
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Prompt { get; set; } = default!;
public required string Prompt { get; set; }

/// <summary>
/// The model used to generate an image or edit one. /generate and /remix supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.<br/>
Expand All @@ -55,7 +55,7 @@ public sealed partial class EditImageRequest
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ModelEnumJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::Ideogram.ModelEnum Model { get; set; } = default!;
public required global::Ideogram.ModelEnum Model { get; set; } = global::Ideogram.ModelEnum.V2;

/// <summary>
/// Determine if MagicPrompt should be used in generating the request or not.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ public sealed partial class EditImageRequestV3
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] Image { get; set; } = default!;
public required byte[] Image { get; set; }

/// <summary>
/// The image being edited (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("imagename")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Imagename { get; set; } = default!;
public required string Imagename { get; set; }

/// <summary>
/// A black and white image of the same size as the image being edited (max size 10MB). Black regions in the mask should match up with the regions of the image that you would like to edit; only JPEG, WebP and PNG formats are supported at this time.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("mask")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] Mask { get; set; } = default!;
public required byte[] Mask { get; set; }

/// <summary>
/// A black and white image of the same size as the image being edited (max size 10MB). Black regions in the mask should match up with the regions of the image that you would like to edit; only JPEG, WebP and PNG formats are supported at this time.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("maskname")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Maskname { get; set; } = default!;
public required string Maskname { get; set; }

/// <summary>
/// The prompt used to describe the edited result.<br/>
Expand All @@ -43,7 +43,7 @@ public sealed partial class EditImageRequestV3
/// <example>A photo of a cat.</example>
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Prompt { get; set; } = default!;
public required string Prompt { get; set; }

/// <summary>
/// Determine if MagicPrompt should be used in generating the request or not.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class GenerateDesignRequestV3
/// <example>A birthday card saying 'Happy Birthday'</example>
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Prompt { get; set; } = default!;
public required string Prompt { get; set; }

/// <summary>
/// Random seed. Set for reproducible generation.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed partial class GenerateImageRequest
/// <example>{"aspect_ratio":"ASPECT_10_16","magic_prompt_option":"AUTO","model":"V_2","prompt":"A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset."}</example>
[global::System.Text.Json.Serialization.JsonPropertyName("image_request")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::Ideogram.ImageRequest ImageRequest { get; set; } = default!;
public required global::Ideogram.ImageRequest ImageRequest { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class GenerateImageRequestV3
/// <example>A photo of a cat</example>
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Prompt { get; set; } = default!;
public required string Prompt { get; set; }

/// <summary>
/// Random seed. Set for reproducible generation.<br/>
Expand Down
Loading
Loading