From 9e775d5ffeaefaa47ab5476d2d0be76e1a2fc698 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 10 Jul 2026 22:11:28 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...r.ISmartTablesClient.CreateTableSheet.g.cs | 14 +- .../PromptLayer.JsonSerializerContext.g.cs | 1 + ...romptLayer.JsonSerializerContextTypes.g.cs | 110 +++++++------- ...tLayer.Models.CreateTableSheetRequest.g.cs | 23 ++- ...Layer.Models.CreateTableSheetResponse.g.cs | 29 ---- ...Models.CreateTableSheetResponse2.Json.g.cs | 141 ++++++++++++++++++ ...ayer.Models.CreateTableSheetResponse2.g.cs | 84 +++++++++++ ...er.SmartTablesClient.CreateTableSheet.g.cs | 14 +- src/libs/PromptLayer/openapi.json | 29 +++- 9 files changed, 330 insertions(+), 115 deletions(-) create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse2.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse2.g.cs diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheet.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheet.g.cs index b84a98d..e70f5fa 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheet.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheet.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + /// Create a new sheet in a table. Omit source to create a blank sheet with a default Column A scaffold (returns 201), or import data from a file (CSV or JSON, base64-encoded) or from request log history (returns 202). Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -21,7 +21,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + /// Create a new sheet in a table. Omit source to create a blank sheet with a default Column A scaffold (returns 201), or import data from a file (CSV or JSON, base64-encoded) or from request log history (returns 202). Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -36,30 +36,30 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + /// Create a new sheet in a table. Omit source to create a blank sheet with a default Column A scaffold (returns 201), or import data from a file (CSV or JSON, base64-encoded) or from request log history (returns 202). Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// - /// Sheet title. Defaults to the source file name or 'Request Logs'. + /// Sheet title. Defaults to 'Sheet N' when source is omitted, or to the source file name / 'Request Logs' for imports. /// /// /// Display position within the table (0-based). Defaults to appending at the end. /// /// - /// Optional idempotency key for the import operation. + /// Optional idempotency key for import operations. Not allowed when source is omitted. /// /// - /// Data source for the sheet. + /// Optional data source for the sheet. Omit to create a blank sheet with a default Column A scaffold. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateTableSheetAsync( global::System.Guid tableId, - global::PromptLayer.OneOf source, string? title = default, int? index = default, string? operationId = default, + global::PromptLayer.OneOf? source = default, global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs index 14bc288..acc754d 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs @@ -2487,6 +2487,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetOperationResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetResponse))] diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs index 3bc2f0d..60aba7f 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs @@ -2636,215 +2636,219 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::PromptLayer.GetTableSheetOperationResponse2? Type652 { get; set; } + public global::PromptLayer.CreateTableSheetResponse2? Type652 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetResponse? Type653 { get; set; } + public global::PromptLayer.GetTableSheetOperationResponse2? Type653 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetResponse? Type654 { get; set; } + public global::PromptLayer.GetTableSheetResponse? Type654 { get; set; } /// /// /// - public global::PromptLayer.DeleteTableSheetResponse? Type655 { get; set; } + public global::PromptLayer.UpdateTableSheetResponse? Type655 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetColumnsResponse? Type656 { get; set; } + public global::PromptLayer.DeleteTableSheetResponse? Type656 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type657 { get; set; } + public global::PromptLayer.ListTableSheetColumnsResponse? Type657 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnResponse? Type658 { get; set; } + public global::System.Collections.Generic.IList? Type658 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type659 { get; set; } + public global::PromptLayer.CreateTableSheetColumnResponse? Type659 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnResponse? Type660 { get; set; } + public global::System.Collections.Generic.IList? Type660 { get; set; } /// /// /// - public global::PromptLayer.DeleteTableSheetColumnResponse? Type661 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnResponse? Type661 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponse? Type662 { get; set; } + public global::PromptLayer.DeleteTableSheetColumnResponse? Type662 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type663 { get; set; } + public global::PromptLayer.ListTableSheetRowsResponse? Type663 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type664 { get; set; } + public global::System.Collections.Generic.IList? Type664 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type665 { get; set; } + public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type665 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponse? Type666 { get; set; } + public global::System.Collections.Generic.Dictionary? Type666 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type667 { get; set; } + public global::PromptLayer.AddTableSheetRowsResponse? Type667 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponseRow? Type668 { get; set; } + public global::System.Collections.Generic.IList? Type668 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetCellResponse? Type669 { get; set; } + public global::PromptLayer.AddTableSheetRowsResponseRow? Type669 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetCellResponse? Type670 { get; set; } + public global::PromptLayer.GetTableSheetCellResponse? Type670 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type671 { get; set; } + public global::PromptLayer.UpdateTableSheetCellResponse? Type671 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type672 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type672 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionResponse? Type673 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type673 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponse? Type674 { get; set; } + public global::PromptLayer.CreateToolVersionResponse? Type674 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResult? Type675 { get; set; } + public global::PromptLayer.TestExecuteToolResponse? Type675 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResultStatus? Type676 { get; set; } + public global::PromptLayer.TestExecuteToolResponseResult? Type676 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse? Type677 { get; set; } + public global::PromptLayer.TestExecuteToolResponseResultStatus? Type677 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosure? Type678 { get; set; } + public global::PromptLayer.CloseTraceResponse? Type678 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosureStatus? Type679 { get; set; } + public global::PromptLayer.CloseTraceResponseClosure? Type679 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse2? Type680 { get; set; } + public global::PromptLayer.CloseTraceResponseClosureStatus? Type680 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type681 { get; set; } + public global::PromptLayer.CloseTraceResponse2? Type681 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type682 { get; set; } + public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type682 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type683 { get; set; } + public global::System.Collections.Generic.IList? Type683 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type684 { get; set; } + public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type684 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type685 { get; set; } + public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type685 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type686 { get; set; } + public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type686 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type687 { get; set; } + public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type687 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type688 { get; set; } + public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type688 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type689 { get; set; } + public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type689 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type690 { get; set; } + public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type690 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type691 { get; set; } + public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type691 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse? Type692 { get; set; } + public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type693 { get; set; } + public global::PromptLayer.ListToolEnvVarsResponse? Type693 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type694 { get; set; } + public global::System.Collections.Generic.IList? Type694 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse2? Type695 { get; set; } + public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type695 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse? Type696 { get; set; } + public global::PromptLayer.ListToolEnvVarsResponse2? Type696 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type697 { get; set; } + public global::PromptLayer.CreateToolEnvVarResponse? Type697 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse2? Type698 { get; set; } + public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type698 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse3? Type699 { get; set; } + public global::PromptLayer.CreateToolEnvVarResponse2? Type699 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse? Type700 { get; set; } + public global::PromptLayer.CreateToolEnvVarResponse3? Type700 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type701 { get; set; } + public global::PromptLayer.UpdateToolEnvVarResponse? Type701 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse2? Type702 { get; set; } + public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type702 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse? Type703 { get; set; } + public global::PromptLayer.UpdateToolEnvVarResponse2? Type703 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse2? Type704 { get; set; } + public global::PromptLayer.DeleteToolEnvVarResponse? Type704 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteToolEnvVarResponse2? Type705 { get; set; } /// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequest.g.cs index 7a71cac..3264647 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequest.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequest.g.cs @@ -9,7 +9,7 @@ namespace PromptLayer public sealed partial class CreateTableSheetRequest { /// - /// Sheet title. Defaults to the source file name or 'Request Logs'. + /// Sheet title. Defaults to 'Sheet N' when source is omitted, or to the source file name / 'Request Logs' for imports. /// [global::System.Text.Json.Serialization.JsonPropertyName("title")] public string? Title { get; set; } @@ -21,18 +21,17 @@ public sealed partial class CreateTableSheetRequest public int? Index { get; set; } /// - /// Optional idempotency key for the import operation. + /// Optional idempotency key for import operations. Not allowed when source is omitted. /// [global::System.Text.Json.Serialization.JsonPropertyName("operation_id")] public string? OperationId { get; set; } /// - /// Data source for the sheet. + /// Optional data source for the sheet. Omit to create a blank sheet with a default Column A scaffold. /// [global::System.Text.Json.Serialization.JsonPropertyName("source")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::PromptLayer.OneOf Source { get; set; } + public global::PromptLayer.OneOf? Source { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -43,26 +42,26 @@ public sealed partial class CreateTableSheetRequest /// /// Initializes a new instance of the class. /// - /// - /// Data source for the sheet. - /// /// - /// Sheet title. Defaults to the source file name or 'Request Logs'. + /// Sheet title. Defaults to 'Sheet N' when source is omitted, or to the source file name / 'Request Logs' for imports. /// /// /// Display position within the table (0-based). Defaults to appending at the end. /// /// - /// Optional idempotency key for the import operation. + /// Optional idempotency key for import operations. Not allowed when source is omitted. + /// + /// + /// Optional data source for the sheet. Omit to create a blank sheet with a default Column A scaffold. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateTableSheetRequest( - global::PromptLayer.OneOf source, string? title, int? index, - string? operationId) + string? operationId, + global::PromptLayer.OneOf? source) { this.Title = title; this.Index = index; diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse.g.cs index c3282aa..c086621 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse.g.cs @@ -14,24 +14,6 @@ public sealed partial class CreateTableSheetResponse [global::System.Text.Json.Serialization.JsonPropertyName("success")] public bool? Success { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("operation_id")] - public string? OperationId { get; set; } - - /// - /// Status of an asynchronous sheet import operation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("operation")] - public global::PromptLayer.TableImportOperation? Operation { get; set; } - /// /// A sheet within a Table. /// @@ -48,11 +30,6 @@ public sealed partial class CreateTableSheetResponse /// Initializes a new instance of the class. /// /// - /// - /// - /// - /// Status of an asynchronous sheet import operation. - /// /// /// A sheet within a Table. /// @@ -61,15 +38,9 @@ public sealed partial class CreateTableSheetResponse #endif public CreateTableSheetResponse( bool? success, - string? message, - string? operationId, - global::PromptLayer.TableImportOperation? operation, global::PromptLayer.Sheet? sheet) { this.Success = success; - this.Message = message; - this.OperationId = operationId; - this.Operation = operation; this.Sheet = sheet; } diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse2.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse2.Json.g.cs new file mode 100644 index 0000000..66f1d91 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CreateTableSheetResponse2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CreateTableSheetResponse2), + jsonSerializerContext) as global::PromptLayer.CreateTableSheetResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetResponse2? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CreateTableSheetResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CreateTableSheetResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateTableSheetResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse2.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse2.g.cs new file mode 100644 index 0000000..1332aee --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetResponse2.g.cs @@ -0,0 +1,84 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CreateTableSheetResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + public bool? Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation_id")] + public string? OperationId { get; set; } + + /// + /// Status of an asynchronous sheet import operation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + public global::PromptLayer.TableImportOperation? Operation { get; set; } + + /// + /// A sheet within a Table. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sheet")] + public global::PromptLayer.Sheet? Sheet { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// Status of an asynchronous sheet import operation. + /// + /// + /// A sheet within a Table. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTableSheetResponse2( + bool? success, + string? message, + string? operationId, + global::PromptLayer.TableImportOperation? operation, + global::PromptLayer.Sheet? sheet) + { + this.Success = success; + this.Message = message; + this.OperationId = operationId; + this.Operation = operation; + this.Sheet = sheet; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTableSheetResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheet.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheet.g.cs index 0342b19..c88d40a 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheet.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheet.g.cs @@ -45,7 +45,7 @@ partial void ProcessCreateTableSheetResponseContent( /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + /// Create a new sheet in a table. Omit source to create a blank sheet with a default Column A scaffold (returns 201), or import data from a file (CSV or JSON, base64-encoded) or from request log history (returns 202). Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -71,7 +71,7 @@ partial void ProcessCreateTableSheetResponseContent( } /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + /// Create a new sheet in a table. Omit source to create a blank sheet with a default Column A scaffold (returns 201), or import data from a file (CSV or JSON, base64-encoded) or from request log history (returns 202). Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -592,30 +592,30 @@ partial void ProcessCreateTableSheetResponseContent( } /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + /// Create a new sheet in a table. Omit source to create a blank sheet with a default Column A scaffold (returns 201), or import data from a file (CSV or JSON, base64-encoded) or from request log history (returns 202). Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// - /// Sheet title. Defaults to the source file name or 'Request Logs'. + /// Sheet title. Defaults to 'Sheet N' when source is omitted, or to the source file name / 'Request Logs' for imports. /// /// /// Display position within the table (0-based). Defaults to appending at the end. /// /// - /// Optional idempotency key for the import operation. + /// Optional idempotency key for import operations. Not allowed when source is omitted. /// /// - /// Data source for the sheet. + /// Optional data source for the sheet. Omit to create a blank sheet with a default Column A scaffold. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateTableSheetAsync( global::System.Guid tableId, - global::PromptLayer.OneOf source, string? title = default, int? index = default, string? operationId = default, + global::PromptLayer.OneOf? source = default, global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/PromptLayer/openapi.json b/src/libs/PromptLayer/openapi.json index 700063a..2ad7ad3 100644 --- a/src/libs/PromptLayer/openapi.json +++ b/src/libs/PromptLayer/openapi.json @@ -10313,7 +10313,7 @@ "smart-tables" ], "summary": "Create Sheet", - "description": "Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "description": "Create a new sheet in a table. Omit source to create a blank sheet with a default Column A scaffold (returns 201), or import data from a file (CSV or JSON, base64-encoded) or from request log history (returns 202). Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "create_table_sheet", "parameters": [ { @@ -10332,14 +10332,11 @@ "application/json": { "schema": { "type": "object", - "required": [ - "source" - ], "properties": { "title": { "type": "string", "nullable": true, - "description": "Sheet title. Defaults to the source file name or 'Request Logs'." + "description": "Sheet title. Defaults to 'Sheet N' when source is omitted, or to the source file name / 'Request Logs' for imports." }, "index": { "type": "integer", @@ -10349,10 +10346,10 @@ "operation_id": { "type": "string", "nullable": true, - "description": "Optional idempotency key for the import operation." + "description": "Optional idempotency key for import operations. Not allowed when source is omitted." }, "source": { - "description": "Data source for the sheet.", + "description": "Optional data source for the sheet. Omit to create a blank sheet with a default Column A scaffold.", "oneOf": [ { "type": "object", @@ -10432,6 +10429,24 @@ } }, "responses": { + "201": { + "description": "Blank sheet created. Returns the sheet with a default Column A scaffold and one empty row.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "sheet": { + "$ref": "#/components/schemas/Sheet" + } + } + } + } + } + }, "202": { "description": "Import started. Poll the operation endpoint to track progress.", "content": {