Skip to content

Commit d50b1fd

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#200)
Co-authored-by: github-actions[bot] <[email protected]>
1 parent 741f592 commit d50b1fd

File tree

857 files changed

+31164
-7085
lines changed

Some content is hidden

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

857 files changed

+31164
-7085
lines changed

src/libs/tryAGI.OpenAI/Generated/OneOf.1.Json.g.cs renamed to src/libs/tryAGI.OpenAI/Generated/AnyOf.1.Json.g.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace tryAGI.OpenAI
44
{
5-
public readonly partial struct OneOf<T1>
5+
public readonly partial struct AnyOf<T1>
66
{
77
/// <summary>
88
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -34,14 +34,14 @@ public string ToJson(
3434
/// <summary>
3535
/// Deserializes a JSON string using the provided JsonSerializerContext.
3636
/// </summary>
37-
public static global::tryAGI.OpenAI.OneOf<T1>? FromJson(
37+
public static global::tryAGI.OpenAI.AnyOf<T1>? FromJson(
3838
string json,
3939
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
4040
{
4141
return global::System.Text.Json.JsonSerializer.Deserialize(
4242
json,
43-
typeof(global::tryAGI.OpenAI.OneOf<T1>),
44-
jsonSerializerContext) as global::tryAGI.OpenAI.OneOf<T1>?;
43+
typeof(global::tryAGI.OpenAI.AnyOf<T1>),
44+
jsonSerializerContext) as global::tryAGI.OpenAI.AnyOf<T1>?;
4545
}
4646

4747
/// <summary>
@@ -51,26 +51,26 @@ public string ToJson(
5151
[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.")]
5252
[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.")]
5353
#endif
54-
public static global::tryAGI.OpenAI.OneOf<T1>? FromJson(
54+
public static global::tryAGI.OpenAI.AnyOf<T1>? FromJson(
5555
string json,
5656
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
5757
{
58-
return global::System.Text.Json.JsonSerializer.Deserialize<global::tryAGI.OpenAI.OneOf<T1>>(
58+
return global::System.Text.Json.JsonSerializer.Deserialize<global::tryAGI.OpenAI.AnyOf<T1>>(
5959
json,
6060
jsonSerializerOptions);
6161
}
6262

6363
/// <summary>
6464
/// Deserializes a JSON stream using the provided JsonSerializerContext.
6565
/// </summary>
66-
public static async global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.OneOf<T1>?> FromJsonStreamAsync(
66+
public static async global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.AnyOf<T1>?> FromJsonStreamAsync(
6767
global::System.IO.Stream jsonStream,
6868
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
6969
{
7070
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
7171
jsonStream,
72-
typeof(global::tryAGI.OpenAI.OneOf<T1>),
73-
jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OneOf<T1>?;
72+
typeof(global::tryAGI.OpenAI.AnyOf<T1>),
73+
jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnyOf<T1>?;
7474
}
7575

7676
/// <summary>
@@ -80,11 +80,11 @@ public string ToJson(
8080
[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.")]
8181
[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.")]
8282
#endif
83-
public static global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.OneOf<T1>?> FromJsonStreamAsync(
83+
public static global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.AnyOf<T1>?> FromJsonStreamAsync(
8484
global::System.IO.Stream jsonStream,
8585
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
8686
{
87-
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::tryAGI.OpenAI.OneOf<T1>?>(
87+
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::tryAGI.OpenAI.AnyOf<T1>?>(
8888
jsonStream,
8989
jsonSerializerOptions);
9090
}

src/libs/tryAGI.OpenAI/Generated/OneOf.1.g.cs renamed to src/libs/tryAGI.OpenAI/Generated/AnyOf.1.g.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace tryAGI.OpenAI
66
/// <summary>
77
///
88
/// </summary>
9-
public readonly partial struct OneOf<T1> : global::System.IEquatable<OneOf<T1>>
9+
public readonly partial struct AnyOf<T1> : global::System.IEquatable<AnyOf<T1>>
1010
{
1111
/// <summary>
1212
///
@@ -28,17 +28,17 @@ namespace tryAGI.OpenAI
2828
/// <summary>
2929
///
3030
/// </summary>
31-
public static implicit operator OneOf<T1>(T1 value) => new OneOf<T1>((T1?)value);
31+
public static implicit operator AnyOf<T1>(T1 value) => new AnyOf<T1>((T1?)value);
3232

3333
/// <summary>
3434
///
3535
/// </summary>
36-
public static implicit operator T1?(OneOf<T1> @this) => @this.Value1;
36+
public static implicit operator T1?(AnyOf<T1> @this) => @this.Value1;
3737

3838
/// <summary>
3939
///
4040
/// </summary>
41-
public OneOf(T1? value)
41+
public AnyOf(T1? value)
4242
{
4343
Value1 = value;
4444
}
@@ -125,7 +125,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null
125125
/// <summary>
126126
///
127127
/// </summary>
128-
public bool Equals(OneOf<T1> other)
128+
public bool Equals(AnyOf<T1> other)
129129
{
130130
return
131131
global::System.Collections.Generic.EqualityComparer<T1?>.Default.Equals(Value1, other.Value1)
@@ -135,15 +135,15 @@ public bool Equals(OneOf<T1> other)
135135
/// <summary>
136136
///
137137
/// </summary>
138-
public static bool operator ==(OneOf<T1> obj1, OneOf<T1> obj2)
138+
public static bool operator ==(AnyOf<T1> obj1, AnyOf<T1> obj2)
139139
{
140-
return global::System.Collections.Generic.EqualityComparer<OneOf<T1>>.Default.Equals(obj1, obj2);
140+
return global::System.Collections.Generic.EqualityComparer<AnyOf<T1>>.Default.Equals(obj1, obj2);
141141
}
142142

143143
/// <summary>
144144
///
145145
/// </summary>
146-
public static bool operator !=(OneOf<T1> obj1, OneOf<T1> obj2)
146+
public static bool operator !=(AnyOf<T1> obj1, AnyOf<T1> obj2)
147147
{
148148
return !(obj1 == obj2);
149149
}
@@ -153,7 +153,7 @@ public bool Equals(OneOf<T1> other)
153153
/// </summary>
154154
public override bool Equals(object? obj)
155155
{
156-
return obj is OneOf<T1> o && Equals(o);
156+
return obj is AnyOf<T1> o && Equals(o);
157157
}
158158
}
159159
}

src/libs/tryAGI.OpenAI/Generated/OneOf.3.Json.g.cs renamed to src/libs/tryAGI.OpenAI/Generated/AnyOf.3.Json.g.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace tryAGI.OpenAI
44
{
5-
public readonly partial struct OneOf<T1, T2, T3>
5+
public readonly partial struct AnyOf<T1, T2, T3>
66
{
77
/// <summary>
88
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -34,14 +34,14 @@ public string ToJson(
3434
/// <summary>
3535
/// Deserializes a JSON string using the provided JsonSerializerContext.
3636
/// </summary>
37-
public static global::tryAGI.OpenAI.OneOf<T1, T2, T3>? FromJson(
37+
public static global::tryAGI.OpenAI.AnyOf<T1, T2, T3>? FromJson(
3838
string json,
3939
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
4040
{
4141
return global::System.Text.Json.JsonSerializer.Deserialize(
4242
json,
43-
typeof(global::tryAGI.OpenAI.OneOf<T1, T2, T3>),
44-
jsonSerializerContext) as global::tryAGI.OpenAI.OneOf<T1, T2, T3>?;
43+
typeof(global::tryAGI.OpenAI.AnyOf<T1, T2, T3>),
44+
jsonSerializerContext) as global::tryAGI.OpenAI.AnyOf<T1, T2, T3>?;
4545
}
4646

4747
/// <summary>
@@ -51,26 +51,26 @@ public string ToJson(
5151
[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.")]
5252
[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.")]
5353
#endif
54-
public static global::tryAGI.OpenAI.OneOf<T1, T2, T3>? FromJson(
54+
public static global::tryAGI.OpenAI.AnyOf<T1, T2, T3>? FromJson(
5555
string json,
5656
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
5757
{
58-
return global::System.Text.Json.JsonSerializer.Deserialize<global::tryAGI.OpenAI.OneOf<T1, T2, T3>>(
58+
return global::System.Text.Json.JsonSerializer.Deserialize<global::tryAGI.OpenAI.AnyOf<T1, T2, T3>>(
5959
json,
6060
jsonSerializerOptions);
6161
}
6262

6363
/// <summary>
6464
/// Deserializes a JSON stream using the provided JsonSerializerContext.
6565
/// </summary>
66-
public static async global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.OneOf<T1, T2, T3>?> FromJsonStreamAsync(
66+
public static async global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.AnyOf<T1, T2, T3>?> FromJsonStreamAsync(
6767
global::System.IO.Stream jsonStream,
6868
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
6969
{
7070
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
7171
jsonStream,
72-
typeof(global::tryAGI.OpenAI.OneOf<T1, T2, T3>),
73-
jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OneOf<T1, T2, T3>?;
72+
typeof(global::tryAGI.OpenAI.AnyOf<T1, T2, T3>),
73+
jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnyOf<T1, T2, T3>?;
7474
}
7575

7676
/// <summary>
@@ -80,11 +80,11 @@ public string ToJson(
8080
[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.")]
8181
[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.")]
8282
#endif
83-
public static global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.OneOf<T1, T2, T3>?> FromJsonStreamAsync(
83+
public static global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.AnyOf<T1, T2, T3>?> FromJsonStreamAsync(
8484
global::System.IO.Stream jsonStream,
8585
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
8686
{
87-
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::tryAGI.OpenAI.OneOf<T1, T2, T3>?>(
87+
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::tryAGI.OpenAI.AnyOf<T1, T2, T3>?>(
8888
jsonStream,
8989
jsonSerializerOptions);
9090
}

src/libs/tryAGI.OpenAI/Generated/OneOf.3.g.cs renamed to src/libs/tryAGI.OpenAI/Generated/AnyOf.3.g.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace tryAGI.OpenAI
66
/// <summary>
77
///
88
/// </summary>
9-
public readonly partial struct OneOf<T1, T2, T3> : global::System.IEquatable<OneOf<T1, T2, T3>>
9+
public readonly partial struct AnyOf<T1, T2, T3> : global::System.IEquatable<AnyOf<T1, T2, T3>>
1010
{
1111
/// <summary>
1212
///
@@ -28,17 +28,17 @@ namespace tryAGI.OpenAI
2828
/// <summary>
2929
///
3030
/// </summary>
31-
public static implicit operator OneOf<T1, T2, T3>(T1 value) => new OneOf<T1, T2, T3>((T1?)value);
31+
public static implicit operator AnyOf<T1, T2, T3>(T1 value) => new AnyOf<T1, T2, T3>((T1?)value);
3232

3333
/// <summary>
3434
///
3535
/// </summary>
36-
public static implicit operator T1?(OneOf<T1, T2, T3> @this) => @this.Value1;
36+
public static implicit operator T1?(AnyOf<T1, T2, T3> @this) => @this.Value1;
3737

3838
/// <summary>
3939
///
4040
/// </summary>
41-
public OneOf(T1? value)
41+
public AnyOf(T1? value)
4242
{
4343
Value1 = value;
4444
}
@@ -63,17 +63,17 @@ public OneOf(T1? value)
6363
/// <summary>
6464
///
6565
/// </summary>
66-
public static implicit operator OneOf<T1, T2, T3>(T2 value) => new OneOf<T1, T2, T3>((T2?)value);
66+
public static implicit operator AnyOf<T1, T2, T3>(T2 value) => new AnyOf<T1, T2, T3>((T2?)value);
6767

6868
/// <summary>
6969
///
7070
/// </summary>
71-
public static implicit operator T2?(OneOf<T1, T2, T3> @this) => @this.Value2;
71+
public static implicit operator T2?(AnyOf<T1, T2, T3> @this) => @this.Value2;
7272

7373
/// <summary>
7474
///
7575
/// </summary>
76-
public OneOf(T2? value)
76+
public AnyOf(T2? value)
7777
{
7878
Value2 = value;
7979
}
@@ -98,25 +98,25 @@ public OneOf(T2? value)
9898
/// <summary>
9999
///
100100
/// </summary>
101-
public static implicit operator OneOf<T1, T2, T3>(T3 value) => new OneOf<T1, T2, T3>((T3?)value);
101+
public static implicit operator AnyOf<T1, T2, T3>(T3 value) => new AnyOf<T1, T2, T3>((T3?)value);
102102

103103
/// <summary>
104104
///
105105
/// </summary>
106-
public static implicit operator T3?(OneOf<T1, T2, T3> @this) => @this.Value3;
106+
public static implicit operator T3?(AnyOf<T1, T2, T3> @this) => @this.Value3;
107107

108108
/// <summary>
109109
///
110110
/// </summary>
111-
public OneOf(T3? value)
111+
public AnyOf(T3? value)
112112
{
113113
Value3 = value;
114114
}
115115

116116
/// <summary>
117117
///
118118
/// </summary>
119-
public OneOf(
119+
public AnyOf(
120120
T1? value1,
121121
T2? value2,
122122
T3? value3
@@ -150,7 +150,7 @@ Value1 as object
150150
/// </summary>
151151
public bool Validate()
152152
{
153-
return IsValue1 && !IsValue2 && !IsValue3 || !IsValue1 && IsValue2 && !IsValue3 || !IsValue1 && !IsValue2 && IsValue3;
153+
return IsValue1 || IsValue2 || IsValue3;
154154
}
155155

156156
/// <summary>
@@ -237,7 +237,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null
237237
/// <summary>
238238
///
239239
/// </summary>
240-
public bool Equals(OneOf<T1, T2, T3> other)
240+
public bool Equals(AnyOf<T1, T2, T3> other)
241241
{
242242
return
243243
global::System.Collections.Generic.EqualityComparer<T1?>.Default.Equals(Value1, other.Value1) &&
@@ -249,15 +249,15 @@ public bool Equals(OneOf<T1, T2, T3> other)
249249
/// <summary>
250250
///
251251
/// </summary>
252-
public static bool operator ==(OneOf<T1, T2, T3> obj1, OneOf<T1, T2, T3> obj2)
252+
public static bool operator ==(AnyOf<T1, T2, T3> obj1, AnyOf<T1, T2, T3> obj2)
253253
{
254-
return global::System.Collections.Generic.EqualityComparer<OneOf<T1, T2, T3>>.Default.Equals(obj1, obj2);
254+
return global::System.Collections.Generic.EqualityComparer<AnyOf<T1, T2, T3>>.Default.Equals(obj1, obj2);
255255
}
256256

257257
/// <summary>
258258
///
259259
/// </summary>
260-
public static bool operator !=(OneOf<T1, T2, T3> obj1, OneOf<T1, T2, T3> obj2)
260+
public static bool operator !=(AnyOf<T1, T2, T3> obj1, AnyOf<T1, T2, T3> obj2)
261261
{
262262
return !(obj1 == obj2);
263263
}
@@ -267,7 +267,7 @@ public bool Equals(OneOf<T1, T2, T3> other)
267267
/// </summary>
268268
public override bool Equals(object? obj)
269269
{
270-
return obj is OneOf<T1, T2, T3> o && Equals(o);
270+
return obj is AnyOf<T1, T2, T3> o && Equals(o);
271271
}
272272
}
273273
}

0 commit comments

Comments
 (0)