Skip to content

Commit 255949b

Browse files
committed
feat: Added uuid format support as System.Guid.
1 parent de59cf9 commit 255949b

File tree

1,178 files changed

+5456
-5442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,178 files changed

+5456
-5442
lines changed

src/libs/AutoSDK/Models/TypeData.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public readonly record struct TypeData(
5959
: CSharpTypeWithoutNullability;
6060

6161
public bool IsReferenceable =>
62-
CSharpTypeWithoutNullability is "string" or "int" or "long" or "float" or "double" or "bool" ||
62+
IsValueType ||
63+
CSharpTypeWithoutNullability is "string" ||
6364
IsAnyOf ||
6465
IsEnum;
6566

@@ -189,6 +190,7 @@ public static bool ContextIsValueType(SchemaContext context)
189190
("string", "date") => true,
190191
("string", "date-time") => true,
191192
("string", "password") => true,
193+
("string", "uuid") => true,
192194

193195
_ => false,
194196
};
@@ -240,7 +242,7 @@ public static string GetCSharpType(SchemaContext context, SchemaContext? additio
240242
// ("string", "period") => ("global::System.TimeSpan", false),
241243
// ("string", "duration") => ("global::System.TimeSpan", false),
242244
// ("string", "uri") => ("global::System.Uri", true),
243-
// ("string", "uuid") => ("global::System.Guid", false),
245+
("string", "uuid") => ("global::System.Guid", false),
244246

245247
(null, "url") => ("string", true),
246248

src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.LibraryManagementClient.V1LibraryDelete.g.verified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ public partial class LibraryManagementClient
88
{
99
partial void PrepareV1LibraryDeleteArguments(
1010
global::System.Net.Http.HttpClient httpClient,
11-
ref string fileId);
11+
ref global::System.Guid fileId);
1212
partial void PrepareV1LibraryDeleteRequest(
1313
global::System.Net.Http.HttpClient httpClient,
1414
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
15-
string fileId);
15+
global::System.Guid fileId);
1616
partial void ProcessV1LibraryDeleteResponse(
1717
global::System.Net.Http.HttpClient httpClient,
1818
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -32,7 +32,7 @@ partial void ProcessV1LibraryDeleteResponseContent(
3232
/// <param name="cancellationToken">The token to cancel the operation with</param>
3333
/// <exception cref="global::System.InvalidOperationException"></exception>
3434
public async global::System.Threading.Tasks.Task<global::G.FileDeleteResponse> V1LibraryDeleteAsync(
35-
string fileId,
35+
global::System.Guid fileId,
3636
global::System.Threading.CancellationToken cancellationToken = default)
3737
{
3838
PrepareArguments(

src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.LibraryManagementClient.V1LibraryManagement2.g.verified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ public partial class LibraryManagementClient
88
{
99
partial void PrepareV1LibraryManagement2Arguments(
1010
global::System.Net.Http.HttpClient httpClient,
11-
ref string fileId);
11+
ref global::System.Guid fileId);
1212
partial void PrepareV1LibraryManagement2Request(
1313
global::System.Net.Http.HttpClient httpClient,
1414
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
15-
string fileId);
15+
global::System.Guid fileId);
1616
partial void ProcessV1LibraryManagement2Response(
1717
global::System.Net.Http.HttpClient httpClient,
1818
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -37,7 +37,7 @@ partial void ProcessV1LibraryManagement2ResponseContent(
3737
/// <param name="cancellationToken">The token to cancel the operation with</param>
3838
/// <exception cref="global::System.InvalidOperationException"></exception>
3939
public async global::System.Threading.Tasks.Task<global::G.FileResponse> V1LibraryManagement2Async(
40-
string fileId,
40+
global::System.Guid fileId,
4141
global::System.Threading.CancellationToken cancellationToken = default)
4242
{
4343
PrepareArguments(

src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.LibraryManagementClient.V1LibraryManagement3.g.verified.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ public partial class LibraryManagementClient
88
{
99
partial void PrepareV1LibraryManagement3Arguments(
1010
global::System.Net.Http.HttpClient httpClient,
11-
ref string fileId,
11+
ref global::System.Guid fileId,
1212
global::G.FilesUpdateRequest request);
1313
partial void PrepareV1LibraryManagement3Request(
1414
global::System.Net.Http.HttpClient httpClient,
1515
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
16-
string fileId,
16+
global::System.Guid fileId,
1717
global::G.FilesUpdateRequest request);
1818
partial void ProcessV1LibraryManagement3Response(
1919
global::System.Net.Http.HttpClient httpClient,
@@ -40,7 +40,7 @@ partial void ProcessV1LibraryManagement3ResponseContent(
4040
/// <param name="cancellationToken">The token to cancel the operation with</param>
4141
/// <exception cref="global::System.InvalidOperationException"></exception>
4242
public async global::System.Threading.Tasks.Task<global::G.V1LibraryManagementResponse> V1LibraryManagement3Async(
43-
string fileId,
43+
global::System.Guid fileId,
4444
global::G.FilesUpdateRequest request,
4545
global::System.Threading.CancellationToken cancellationToken = default)
4646
{
@@ -133,7 +133,7 @@ partial void ProcessV1LibraryManagement3ResponseContent(
133133
/// <param name="cancellationToken">The token to cancel the operation with</param>
134134
/// <exception cref="global::System.InvalidOperationException"></exception>
135135
public async global::System.Threading.Tasks.Task<global::G.V1LibraryManagementResponse> V1LibraryManagement3Async(
136-
string fileId,
136+
global::System.Guid fileId,
137137
string? publicUrl = default,
138138
global::System.Collections.Generic.IList<string>? labels = default,
139139
global::System.Threading.CancellationToken cancellationToken = default)

src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.Models.FileResponse.g.verified.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public sealed partial class FileResponse
1313
/// The unique identifier of the file, generated by AI21.
1414
/// </summary>
1515
[global::Newtonsoft.Json.JsonProperty("fileId", Required = global::Newtonsoft.Json.Required.Always)]
16-
public string FileId { get; set; } = default!;
16+
public global::System.Guid FileId { get; set; } = default!;
1717

1818
/// <summary>
1919
/// The name of the file. This is the local file name from when the file was<br/>
@@ -71,7 +71,7 @@ public sealed partial class FileResponse
7171
/// An internal identifier of the user who uploaded the file.
7272
/// </summary>
7373
[global::Newtonsoft.Json.JsonProperty("createdBy", Required = global::Newtonsoft.Json.Required.Always)]
74-
public string CreatedBy { get; set; } = default!;
74+
public global::System.Guid CreatedBy { get; set; } = default!;
7575

7676
/// <summary>
7777
/// The date when the file was uploaded.

src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.Models.LibraryAnswerRequest.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public sealed partial class LibraryAnswerRequest
3939
///
4040
/// </summary>
4141
[global::Newtonsoft.Json.JsonProperty("fileIds")]
42-
public global::System.Collections.Generic.IList<string>? FileIds { get; set; }
42+
public global::System.Collections.Generic.IList<global::System.Guid>? FileIds { get; set; }
4343

4444
/// <summary>
4545
/// An enumeration.

src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.Models.LibrarySearchRequest.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public sealed partial class LibrarySearchRequest
3939
///
4040
/// </summary>
4141
[global::Newtonsoft.Json.JsonProperty("fileIds")]
42-
public global::System.Collections.Generic.IList<string>? FileIds { get; set; }
42+
public global::System.Collections.Generic.IList<global::System.Guid>? FileIds { get; set; }
4343

4444
/// <summary>
4545
/// Default Value: default

src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.RAGEngineClient.V1LibraryAnswer.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ partial void ProcessV1LibraryAnswerResponseContent(
121121
int maxSegments = default,
122122
string? path = default,
123123
global::System.Collections.Generic.IList<string>? labels = default,
124-
global::System.Collections.Generic.IList<string>? fileIds = default,
124+
global::System.Collections.Generic.IList<global::System.Guid>? fileIds = default,
125125
global::G.AnswerLength? answerLength = default,
126126
global::G.Mode? mode = default,
127127
global::System.AllOf<global::G.RetrievalStrategy3?>? retrievalStrategy = default,

src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.RAGEngineClient.V1LibraryManagement4.g.verified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ public partial class RAGEngineClient
88
{
99
partial void PrepareV1LibraryManagement4Arguments(
1010
global::System.Net.Http.HttpClient httpClient,
11-
ref string fileId);
11+
ref global::System.Guid fileId);
1212
partial void PrepareV1LibraryManagement4Request(
1313
global::System.Net.Http.HttpClient httpClient,
1414
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
15-
string fileId);
15+
global::System.Guid fileId);
1616
partial void ProcessV1LibraryManagement4Response(
1717
global::System.Net.Http.HttpClient httpClient,
1818
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -29,7 +29,7 @@ partial void ProcessV1LibraryManagement4ResponseContent(
2929
/// <param name="cancellationToken">The token to cancel the operation with</param>
3030
/// <exception cref="global::System.InvalidOperationException"></exception>
3131
public async global::System.Threading.Tasks.Task<string> V1LibraryManagement4Async(
32-
string fileId,
32+
global::System.Guid fileId,
3333
global::System.Threading.CancellationToken cancellationToken = default)
3434
{
3535
PrepareArguments(

src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.RAGEngineClient.V1LibrarySearch.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ partial void ProcessV1LibrarySearchResponseContent(
118118
int maxSegments = default,
119119
string? path = default,
120120
global::System.Collections.Generic.IList<string>? labels = default,
121-
global::System.Collections.Generic.IList<string>? fileIds = default,
121+
global::System.Collections.Generic.IList<global::System.Guid>? fileIds = default,
122122
global::System.AllOf<global::G.RetrievalStrategy3?>? retrievalStrategy = default,
123123
int maxNeighbors = 1,
124124
double retrievalSimilarityThreshold = default,

0 commit comments

Comments
 (0)