diff --git a/codegen/generator/src/OpenAI.Library.Plugin.csproj b/codegen/generator/src/OpenAI.Library.Plugin.csproj
index 869603005..681ba7abc 100644
--- a/codegen/generator/src/OpenAI.Library.Plugin.csproj
+++ b/codegen/generator/src/OpenAI.Library.Plugin.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/codegen/generator/src/OpenAILibraryGenerator.cs b/codegen/generator/src/OpenAILibraryGenerator.cs
index 0d656eea6..adf0a2e82 100644
--- a/codegen/generator/src/OpenAILibraryGenerator.cs
+++ b/codegen/generator/src/OpenAILibraryGenerator.cs
@@ -10,14 +10,8 @@ namespace OpenAILibraryPlugin
[ExportMetadata("GeneratorName", nameof(OpenAILibraryGenerator))]
public class OpenAILibraryGenerator : ScmCodeModelGenerator
{
- private static OpenAILibraryGenerator? s_instance;
- internal static OpenAILibraryGenerator Instance => s_instance ?? throw new InvalidOperationException("OpenAILibraryGenerator was not initialized.");
-
[ImportingConstructor]
- public OpenAILibraryGenerator(GeneratorContext context) : base(context)
- {
- s_instance = this;
- }
+ public OpenAILibraryGenerator(GeneratorContext context) : base(context) { }
protected override void Configure()
{
diff --git a/codegen/generator/src/Visitors/ContentInnerCollectionDefinedVisitor.cs b/codegen/generator/src/Visitors/ContentInnerCollectionDefinedVisitor.cs
index 8857325e8..5f47ad39e 100644
--- a/codegen/generator/src/Visitors/ContentInnerCollectionDefinedVisitor.cs
+++ b/codegen/generator/src/Visitors/ContentInnerCollectionDefinedVisitor.cs
@@ -17,7 +17,7 @@ public class ContentInnerCollectionDefinedVisitor : ScmLibraryVisitor
{
private const string Comment = "Plugin customization: add Content.IsInnerCollectionDefined() check";
- protected override MethodProvider VisitMethod(MethodProvider method)
+ protected override MethodProvider? VisitMethod(MethodProvider method)
{
if (method.Signature.Name != "JsonModelWriteCore"
|| method.BodyStatements is not MethodBodyStatements methodBodyStatements)
diff --git a/codegen/generator/src/Visitors/ImplicitConversionToBinaryContentVisitor.cs b/codegen/generator/src/Visitors/ImplicitConversionToBinaryContentVisitor.cs
index 1284d9c8b..15e30e37d 100644
--- a/codegen/generator/src/Visitors/ImplicitConversionToBinaryContentVisitor.cs
+++ b/codegen/generator/src/Visitors/ImplicitConversionToBinaryContentVisitor.cs
@@ -9,7 +9,7 @@ namespace OpenAILibraryPlugin.Visitors;
///
public class ImplicitConversionToBinaryContentVisitor : ScmLibraryVisitor
{
- protected override MethodProvider VisitMethod(MethodProvider method)
+ protected override MethodProvider? VisitMethod(MethodProvider method)
{
if (method.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Implicit) &&
method.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Operator) &&
diff --git a/codegen/generator/src/Visitors/PageOrderRemovalVisitor.cs b/codegen/generator/src/Visitors/PageOrderRemovalVisitor.cs
index 3058920f0..fc98d87c3 100644
--- a/codegen/generator/src/Visitors/PageOrderRemovalVisitor.cs
+++ b/codegen/generator/src/Visitors/PageOrderRemovalVisitor.cs
@@ -99,23 +99,20 @@ private static InputParameter CreateSyntheticPageOrderInputParameter()
additionalProperties: null,
modelAsStruct: true,
serializationOptions: new());
- return new InputParameter(
+ return new InputQueryParameter(
name: "order",
- nameInRequest: "order",
+ serializedName: "order",
summary: "",
doc: "",
- inputModelType,
- InputRequestLocation.Query,
+ type: inputModelType,
defaultValue: null,
- InputParameterKind.Spread,
+ scope: InputParameterScope.Spread,
isRequired: false,
+ isReadOnly: false,
isApiVersion: false,
- isContentType: false,
- isEndpoint: false,
- skipUrlEncoding: false,
explode: true,
- arraySerializationDelimiter: null,
- headerCollectionPrefix: null,
- serverUrlTemplate: null);
+ access: null,
+ collectionFormat: null,
+ arraySerializationDelimiter: null);
}
}
\ No newline at end of file
diff --git a/codegen/generator/src/Visitors/PaginationVisitor.cs b/codegen/generator/src/Visitors/PaginationVisitor.cs
index eab5c829e..5066588ad 100644
--- a/codegen/generator/src/Visitors/PaginationVisitor.cs
+++ b/codegen/generator/src/Visitors/PaginationVisitor.cs
@@ -229,7 +229,8 @@ private bool TryHandleGetRawPagesAsyncMethod(MethodProvider method)
if (binaryExpr.Left is VariableExpression leftVar &&
leftVar.Declaration.RequestedName == "nextToken" &&
binaryExpr.Right is KeywordExpression rightKeyword &&
- rightKeyword.Keyword == "null")
+ rightKeyword.Keyword == "null"
+ && hasMoreVariable != null)
{
// Create "!hasMore" condition. Note the hasMoreVariable gets assigned earlier in the method statements
// in the WhileStatement handler below.
diff --git a/codegen/package.json b/codegen/package.json
index c3653c9cc..47ed1732f 100644
--- a/codegen/package.json
+++ b/codegen/package.json
@@ -29,11 +29,11 @@
],
"dependencies": {
"@open-ai/plugin": "file:",
- "@azure-tools/typespec-client-generator-core": "0.57.2",
- "@azure-tools/typespec-azure-core": "0.57.0",
- "@typespec/http-client-csharp": "1.0.0-alpha.20250722.1",
- "@typespec/http": "1.1.0",
- "@typespec/openapi": "1.1.0"
+ "@azure-tools/typespec-client-generator-core": "0.59.0",
+ "@azure-tools/typespec-azure-core": "0.59.0",
+ "@typespec/http-client-csharp": "1.0.0-alpha.20250827.2",
+ "@typespec/http": "1.3.0",
+ "@typespec/openapi": "1.3.0"
},
"devDependencies": {
"@types/node": "^22.8.1",
diff --git a/package-lock.json b/package-lock.json
index cc5c4e631..c47a25acd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,12 +19,12 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
- "@azure-tools/typespec-azure-core": "0.57.0",
- "@azure-tools/typespec-client-generator-core": "0.57.2",
+ "@azure-tools/typespec-azure-core": "0.59.0",
+ "@azure-tools/typespec-client-generator-core": "0.59.0",
"@open-ai/plugin": "file:",
- "@typespec/http": "1.1.0",
- "@typespec/http-client-csharp": "1.0.0-alpha.20250722.1",
- "@typespec/openapi": "1.1.0"
+ "@typespec/http": "1.3.0",
+ "@typespec/http-client-csharp": "1.0.0-alpha.20250827.2",
+ "@typespec/openapi": "1.3.0"
},
"devDependencies": {
"@types/node": "^22.8.1",
@@ -52,23 +52,23 @@
}
},
"node_modules/@azure-tools/typespec-azure-core": {
- "version": "0.57.0",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.57.0.tgz",
- "integrity": "sha512-O+F3axrJOJHjYGrQLRWoydHtWjWiXeAlaaILncS0I0xe6kinyFkpn7VIVKxH9ZZ+hPmkDAZybO53656R3PRfUA==",
+ "version": "0.59.0",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.59.0.tgz",
+ "integrity": "sha512-3vTWDTSR+P0qeyFcOKTgXortNOeA3nsyKTPpZqfFZVTtNFiiO17UWAM2Eg3i0IpNQ3qxMMAksIkwt1bqltTDqA==",
"license": "MIT",
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "^1.1.0",
- "@typespec/http": "^1.1.0",
- "@typespec/rest": "^0.71.0"
+ "@typespec/compiler": "^1.3.0",
+ "@typespec/http": "^1.3.0",
+ "@typespec/rest": "^0.73.0"
}
},
"node_modules/@azure-tools/typespec-client-generator-core": {
- "version": "0.57.2",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.57.2.tgz",
- "integrity": "sha512-/HPdsWAO5aRolTf9pOa1ZFIDpKhi22oZmNj7ypHTjntSJh7bn3Q6tw9J/10n4eyvkUElLVqa691fODfeIZH/qA==",
+ "version": "0.59.0",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.59.0.tgz",
+ "integrity": "sha512-5+pVcOr7Uyq4IaZ3oLjLi8jnBuR+t/B8hQF4CZo+goe/uK+WkmDfw1TlY14G2ve7W7v8m9+Sk2nil6bN1uHWEQ==",
"license": "MIT",
"dependencies": {
"change-case": "~5.4.4",
@@ -79,28 +79,16 @@
"node": ">=20.0.0"
},
"peerDependencies": {
- "@azure-tools/typespec-azure-core": "^0.57.0",
- "@typespec/compiler": "^1.1.0",
- "@typespec/events": "^0.71.0",
- "@typespec/http": "^1.1.0",
- "@typespec/openapi": "^1.1.0",
- "@typespec/rest": "^0.71.0",
- "@typespec/sse": "^0.71.0",
- "@typespec/streams": "^0.71.0",
- "@typespec/versioning": "^0.71.0",
- "@typespec/xml": "^0.71.0"
- }
- },
- "node_modules/@azure-tools/typespec-client-generator-core/node_modules/yaml": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
- "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
- "license": "ISC",
- "bin": {
- "yaml": "bin.mjs"
- },
- "engines": {
- "node": ">= 14.6"
+ "@azure-tools/typespec-azure-core": "^0.59.0",
+ "@typespec/compiler": "^1.3.0",
+ "@typespec/events": "^0.73.0",
+ "@typespec/http": "^1.3.0",
+ "@typespec/openapi": "^1.3.0",
+ "@typespec/rest": "^0.73.0",
+ "@typespec/sse": "^0.73.0",
+ "@typespec/streams": "^0.73.0",
+ "@typespec/versioning": "^0.73.0",
+ "@typespec/xml": "^0.73.0"
}
},
"node_modules/@babel/code-frame": {
@@ -138,13 +126,13 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.27.5",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.5.tgz",
- "integrity": "sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==",
+ "version": "7.28.3",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.3.tgz",
+ "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/types": "^7.27.3"
+ "@babel/types": "^7.28.2"
},
"bin": {
"parser": "bin/babel-parser.js"
@@ -154,9 +142,9 @@
}
},
"node_modules/@babel/types": {
- "version": "7.27.6",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.6.tgz",
- "integrity": "sha512-ETyHEk2VHHvl9b9jZP5IHPavHYk57EhanlRRuae9XCpb/j5bDCbPPMOBfCWhnl/7EDJz0jEMCi/RhccCE8r1+Q==",
+ "version": "7.28.2",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.2.tgz",
+ "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -566,15 +554,15 @@
}
},
"node_modules/@inquirer/checkbox": {
- "version": "4.1.8",
- "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.8.tgz",
- "integrity": "sha512-d/QAsnwuHX2OPolxvYcgSj7A9DO9H6gVOy2DvBTx+P2LH2iRTo/RSGV3iwCzW024nP9hw98KIuDmdyhZQj1UQg==",
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.2.2.tgz",
+ "integrity": "sha512-E+KExNurKcUJJdxmjglTl141EwxWyAHplvsYJQgSwXf8qiNWkTxTuCCqmhFEmbIXd4zLaGMfQFJ6WrZ7fSeV3g==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/figures": "^1.0.12",
- "@inquirer/type": "^3.0.7",
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/figures": "^1.0.13",
+ "@inquirer/type": "^3.0.8",
"ansi-escapes": "^4.3.2",
"yoctocolors-cjs": "^2.1.2"
},
@@ -591,14 +579,14 @@
}
},
"node_modules/@inquirer/confirm": {
- "version": "5.1.12",
- "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.12.tgz",
- "integrity": "sha512-dpq+ielV9/bqgXRUbNH//KsY6WEw9DrGPmipkpmgC1Y46cwuBTNx7PXFWTjc3MQ+urcc0QxoVHcMI0FW4Ok0hg==",
+ "version": "5.1.16",
+ "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.16.tgz",
+ "integrity": "sha512-j1a5VstaK5KQy8Mu8cHmuQvN1Zc62TbLhjJxwHvKPPKEoowSF6h/0UdOpA9DNdWZ+9Inq73+puRq1df6OJ8Sag==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/type": "^3.0.7"
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/type": "^3.0.8"
},
"engines": {
"node": ">=18"
@@ -613,14 +601,14 @@
}
},
"node_modules/@inquirer/core": {
- "version": "10.1.13",
- "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.13.tgz",
- "integrity": "sha512-1viSxebkYN2nJULlzCxES6G9/stgHSepZ9LqqfdIGPHj5OHhiBUXVS0a6R0bEC2A+VL4D9w6QB66ebCr6HGllA==",
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.2.0.tgz",
+ "integrity": "sha512-NyDSjPqhSvpZEMZrLCYUquWNl+XC/moEcVFqS55IEYIYsY0a1cUCevSqk7ctOlnm/RaSBU5psFryNlxcmGrjaA==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/figures": "^1.0.12",
- "@inquirer/type": "^3.0.7",
+ "@inquirer/figures": "^1.0.13",
+ "@inquirer/type": "^3.0.8",
"ansi-escapes": "^4.3.2",
"cli-width": "^4.1.0",
"mute-stream": "^2.0.0",
@@ -641,15 +629,15 @@
}
},
"node_modules/@inquirer/editor": {
- "version": "4.2.13",
- "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.13.tgz",
- "integrity": "sha512-WbicD9SUQt/K8O5Vyk9iC2ojq5RHoCLK6itpp2fHsWe44VxxcA9z3GTWlvjSTGmMQpZr+lbVmrxdHcumJoLbMA==",
+ "version": "4.2.18",
+ "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.18.tgz",
+ "integrity": "sha512-yeQN3AXjCm7+Hmq5L6Dm2wEDeBRdAZuyZ4I7tWSSanbxDzqM0KqzoDbKM7p4ebllAYdoQuPJS6N71/3L281i6w==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/type": "^3.0.7",
- "external-editor": "^3.1.0"
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/external-editor": "^1.0.1",
+ "@inquirer/type": "^3.0.8"
},
"engines": {
"node": ">=18"
@@ -664,14 +652,14 @@
}
},
"node_modules/@inquirer/expand": {
- "version": "4.0.15",
- "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.15.tgz",
- "integrity": "sha512-4Y+pbr/U9Qcvf+N/goHzPEXiHH8680lM3Dr3Y9h9FFw4gHS+zVpbj8LfbKWIb/jayIB4aSO4pWiBTrBYWkvi5A==",
+ "version": "4.0.18",
+ "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.18.tgz",
+ "integrity": "sha512-xUjteYtavH7HwDMzq4Cn2X4Qsh5NozoDHCJTdoXg9HfZ4w3R6mxV1B9tL7DGJX2eq/zqtsFjhm0/RJIMGlh3ag==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/type": "^3.0.7",
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/type": "^3.0.8",
"yoctocolors-cjs": "^2.1.2"
},
"engines": {
@@ -686,10 +674,32 @@
}
}
},
+ "node_modules/@inquirer/external-editor": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.1.tgz",
+ "integrity": "sha512-Oau4yL24d2B5IL4ma4UpbQigkVhzPDXLoqy1ggK4gnHg/stmkffJE4oOXHXF3uz0UEpywG68KcyXsyYpA1Re/Q==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "chardet": "^2.1.0",
+ "iconv-lite": "^0.6.3"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@inquirer/figures": {
- "version": "1.0.12",
- "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.12.tgz",
- "integrity": "sha512-MJttijd8rMFcKJC8NYmprWr6hD3r9Gd9qUC0XwPNwoEPWSMVJwA2MlXxF+nhZZNMY+HXsWa+o7KY2emWYIn0jQ==",
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.13.tgz",
+ "integrity": "sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw==",
"license": "MIT",
"peer": true,
"engines": {
@@ -697,14 +707,14 @@
}
},
"node_modules/@inquirer/input": {
- "version": "4.1.12",
- "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.12.tgz",
- "integrity": "sha512-xJ6PFZpDjC+tC1P8ImGprgcsrzQRsUh9aH3IZixm1lAZFK49UGHxM3ltFfuInN2kPYNfyoPRh+tU4ftsjPLKqQ==",
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.2.2.tgz",
+ "integrity": "sha512-hqOvBZj/MhQCpHUuD3MVq18SSoDNHy7wEnQ8mtvs71K8OPZVXJinOzcvQna33dNYLYE4LkA9BlhAhK6MJcsVbw==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/type": "^3.0.7"
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/type": "^3.0.8"
},
"engines": {
"node": ">=18"
@@ -719,14 +729,14 @@
}
},
"node_modules/@inquirer/number": {
- "version": "3.0.15",
- "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.15.tgz",
- "integrity": "sha512-xWg+iYfqdhRiM55MvqiTCleHzszpoigUpN5+t1OMcRkJrUrw7va3AzXaxvS+Ak7Gny0j2mFSTv2JJj8sMtbV2g==",
+ "version": "3.0.18",
+ "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.18.tgz",
+ "integrity": "sha512-7exgBm52WXZRczsydCVftozFTrrwbG5ySE0GqUd2zLNSBXyIucs2Wnm7ZKLe/aUu6NUg9dg7Q80QIHCdZJiY4A==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/type": "^3.0.7"
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/type": "^3.0.8"
},
"engines": {
"node": ">=18"
@@ -741,14 +751,14 @@
}
},
"node_modules/@inquirer/password": {
- "version": "4.0.15",
- "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.15.tgz",
- "integrity": "sha512-75CT2p43DGEnfGTaqFpbDC2p2EEMrq0S+IRrf9iJvYreMy5mAWj087+mdKyLHapUEPLjN10mNvABpGbk8Wdraw==",
+ "version": "4.0.18",
+ "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.18.tgz",
+ "integrity": "sha512-zXvzAGxPQTNk/SbT3carAD4Iqi6A2JS2qtcqQjsL22uvD+JfQzUrDEtPjLL7PLn8zlSNyPdY02IiQjzoL9TStA==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/type": "^3.0.7",
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/type": "^3.0.8",
"ansi-escapes": "^4.3.2"
},
"engines": {
@@ -764,22 +774,22 @@
}
},
"node_modules/@inquirer/prompts": {
- "version": "7.5.3",
- "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.5.3.tgz",
- "integrity": "sha512-8YL0WiV7J86hVAxrh3fE5mDCzcTDe1670unmJRz6ArDgN+DBK1a0+rbnNWp4DUB5rPMwqD5ZP6YHl9KK1mbZRg==",
+ "version": "7.8.4",
+ "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.8.4.tgz",
+ "integrity": "sha512-MuxVZ1en1g5oGamXV3DWP89GEkdD54alcfhHd7InUW5BifAdKQEK9SLFa/5hlWbvuhMPlobF0WAx7Okq988Jxg==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/checkbox": "^4.1.8",
- "@inquirer/confirm": "^5.1.12",
- "@inquirer/editor": "^4.2.13",
- "@inquirer/expand": "^4.0.15",
- "@inquirer/input": "^4.1.12",
- "@inquirer/number": "^3.0.15",
- "@inquirer/password": "^4.0.15",
- "@inquirer/rawlist": "^4.1.3",
- "@inquirer/search": "^3.0.15",
- "@inquirer/select": "^4.2.3"
+ "@inquirer/checkbox": "^4.2.2",
+ "@inquirer/confirm": "^5.1.16",
+ "@inquirer/editor": "^4.2.18",
+ "@inquirer/expand": "^4.0.18",
+ "@inquirer/input": "^4.2.2",
+ "@inquirer/number": "^3.0.18",
+ "@inquirer/password": "^4.0.18",
+ "@inquirer/rawlist": "^4.1.6",
+ "@inquirer/search": "^3.1.1",
+ "@inquirer/select": "^4.3.2"
},
"engines": {
"node": ">=18"
@@ -794,14 +804,14 @@
}
},
"node_modules/@inquirer/rawlist": {
- "version": "4.1.3",
- "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.3.tgz",
- "integrity": "sha512-7XrV//6kwYumNDSsvJIPeAqa8+p7GJh7H5kRuxirct2cgOcSWwwNGoXDRgpNFbY/MG2vQ4ccIWCi8+IXXyFMZA==",
+ "version": "4.1.6",
+ "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.6.tgz",
+ "integrity": "sha512-KOZqa3QNr3f0pMnufzL7K+nweFFCCBs6LCXZzXDrVGTyssjLeudn5ySktZYv1XiSqobyHRYYK0c6QsOxJEhXKA==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/type": "^3.0.7",
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/type": "^3.0.8",
"yoctocolors-cjs": "^2.1.2"
},
"engines": {
@@ -817,15 +827,15 @@
}
},
"node_modules/@inquirer/search": {
- "version": "3.0.15",
- "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.15.tgz",
- "integrity": "sha512-YBMwPxYBrADqyvP4nNItpwkBnGGglAvCLVW8u4pRmmvOsHUtCAUIMbUrLX5B3tFL1/WsLGdQ2HNzkqswMs5Uaw==",
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.1.1.tgz",
+ "integrity": "sha512-TkMUY+A2p2EYVY3GCTItYGvqT6LiLzHBnqsU1rJbrpXUijFfM6zvUx0R4civofVwFCmJZcKqOVwwWAjplKkhxA==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/figures": "^1.0.12",
- "@inquirer/type": "^3.0.7",
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/figures": "^1.0.13",
+ "@inquirer/type": "^3.0.8",
"yoctocolors-cjs": "^2.1.2"
},
"engines": {
@@ -841,15 +851,15 @@
}
},
"node_modules/@inquirer/select": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.2.3.tgz",
- "integrity": "sha512-OAGhXU0Cvh0PhLz9xTF/kx6g6x+sP+PcyTiLvCrewI99P3BBeexD+VbuwkNDvqGkk3y2h5ZiWLeRP7BFlhkUDg==",
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.3.2.tgz",
+ "integrity": "sha512-nwous24r31M+WyDEHV+qckXkepvihxhnyIaod2MG7eCE6G0Zm/HUF6jgN8GXgf4U7AU6SLseKdanY195cwvU6w==",
"license": "MIT",
"peer": true,
"dependencies": {
- "@inquirer/core": "^10.1.13",
- "@inquirer/figures": "^1.0.12",
- "@inquirer/type": "^3.0.7",
+ "@inquirer/core": "^10.2.0",
+ "@inquirer/figures": "^1.0.13",
+ "@inquirer/type": "^3.0.8",
"ansi-escapes": "^4.3.2",
"yoctocolors-cjs": "^2.1.2"
},
@@ -866,9 +876,9 @@
}
},
"node_modules/@inquirer/type": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.7.tgz",
- "integrity": "sha512-PfunHQcjwnju84L+ycmcMKB/pTPIngjUJvfnRhKY6FKPuYXlM4aQCb/nIdTFR6BEhMjFvngzvng/vBAJMZpLSA==",
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.8.tgz",
+ "integrity": "sha512-lg9Whz8onIHRthWaN1Q9EGLa/0LFJjyM8mEUbL1eTi6yMGvBf8gvyDLtxSXztQsxMvhxxNpJYrwa1YHdq+w4Jw==",
"license": "MIT",
"peer": true,
"engines": {
@@ -902,9 +912,9 @@
}
},
"node_modules/@isaacs/cliui/node_modules/ansi-regex": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",
- "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==",
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.0.tgz",
+ "integrity": "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg==",
"dev": true,
"license": "MIT",
"engines": {
@@ -1023,18 +1033,14 @@
}
},
"node_modules/@jridgewell/gen-mapping": {
- "version": "0.3.8",
- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",
- "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@jridgewell/set-array": "^1.2.1",
- "@jridgewell/sourcemap-codec": "^1.4.10",
+ "@jridgewell/sourcemap-codec": "^1.5.0",
"@jridgewell/trace-mapping": "^0.3.24"
- },
- "engines": {
- "node": ">=6.0.0"
}
},
"node_modules/@jridgewell/resolve-uri": {
@@ -1047,27 +1053,17 @@
"node": ">=6.0.0"
}
},
- "node_modules/@jridgewell/set-array": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",
- "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.0.0"
- }
- },
"node_modules/@jridgewell/sourcemap-codec": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
- "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
"dev": true,
"license": "MIT"
},
"node_modules/@jridgewell/trace-mapping": {
- "version": "0.3.25",
- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
- "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
+ "version": "0.3.30",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz",
+ "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1133,9 +1129,9 @@
"license": "MIT"
},
"node_modules/@rollup/rollup-android-arm-eabi": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.44.0.tgz",
- "integrity": "sha512-xEiEE5oDW6tK4jXCAyliuntGR+amEMO7HLtdSshVuhFnKTYoeYMyXQK7pLouAJJj5KHdwdn87bfHAR2nSdNAUA==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.49.0.tgz",
+ "integrity": "sha512-rlKIeL854Ed0e09QGYFlmDNbka6I3EQFw7iZuugQjMb11KMpJCLPFL4ZPbMfaEhLADEL1yx0oujGkBQ7+qW3eA==",
"cpu": [
"arm"
],
@@ -1147,9 +1143,9 @@
]
},
"node_modules/@rollup/rollup-android-arm64": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.44.0.tgz",
- "integrity": "sha512-uNSk/TgvMbskcHxXYHzqwiyBlJ/lGcv8DaUfcnNwict8ba9GTTNxfn3/FAoFZYgkaXXAdrAA+SLyKplyi349Jw==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.49.0.tgz",
+ "integrity": "sha512-cqPpZdKUSQYRtLLr6R4X3sD4jCBO1zUmeo3qrWBCqYIeH8Q3KRL4F3V7XJ2Rm8/RJOQBZuqzQGWPjjvFUcYa/w==",
"cpu": [
"arm64"
],
@@ -1161,9 +1157,9 @@
]
},
"node_modules/@rollup/rollup-darwin-arm64": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.44.0.tgz",
- "integrity": "sha512-VGF3wy0Eq1gcEIkSCr8Ke03CWT+Pm2yveKLaDvq51pPpZza3JX/ClxXOCmTYYq3us5MvEuNRTaeyFThCKRQhOA==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.49.0.tgz",
+ "integrity": "sha512-99kMMSMQT7got6iYX3yyIiJfFndpojBmkHfTc1rIje8VbjhmqBXE+nb7ZZP3A5skLyujvT0eIUCUsxAe6NjWbw==",
"cpu": [
"arm64"
],
@@ -1175,9 +1171,9 @@
]
},
"node_modules/@rollup/rollup-darwin-x64": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.44.0.tgz",
- "integrity": "sha512-fBkyrDhwquRvrTxSGH/qqt3/T0w5Rg0L7ZIDypvBPc1/gzjJle6acCpZ36blwuwcKD/u6oCE/sRWlUAcxLWQbQ==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.49.0.tgz",
+ "integrity": "sha512-y8cXoD3wdWUDpjOLMKLx6l+NFz3NlkWKcBCBfttUn+VGSfgsQ5o/yDUGtzE9HvsodkP0+16N0P4Ty1VuhtRUGg==",
"cpu": [
"x64"
],
@@ -1189,9 +1185,9 @@
]
},
"node_modules/@rollup/rollup-freebsd-arm64": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.44.0.tgz",
- "integrity": "sha512-u5AZzdQJYJXByB8giQ+r4VyfZP+walV+xHWdaFx/1VxsOn6eWJhK2Vl2eElvDJFKQBo/hcYIBg/jaKS8ZmKeNQ==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.49.0.tgz",
+ "integrity": "sha512-3mY5Pr7qv4GS4ZvWoSP8zha8YoiqrU+e0ViPvB549jvliBbdNLrg2ywPGkgLC3cmvN8ya3za+Q2xVyT6z+vZqA==",
"cpu": [
"arm64"
],
@@ -1203,9 +1199,9 @@
]
},
"node_modules/@rollup/rollup-freebsd-x64": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.44.0.tgz",
- "integrity": "sha512-qC0kS48c/s3EtdArkimctY7h3nHicQeEUdjJzYVJYR3ct3kWSafmn6jkNCA8InbUdge6PVx6keqjk5lVGJf99g==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.49.0.tgz",
+ "integrity": "sha512-C9KzzOAQU5gU4kG8DTk+tjdKjpWhVWd5uVkinCwwFub2m7cDYLOdtXoMrExfeBmeRy9kBQMkiyJ+HULyF1yj9w==",
"cpu": [
"x64"
],
@@ -1217,9 +1213,9 @@
]
},
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.44.0.tgz",
- "integrity": "sha512-x+e/Z9H0RAWckn4V2OZZl6EmV0L2diuX3QB0uM1r6BvhUIv6xBPL5mrAX2E3e8N8rEHVPwFfz/ETUbV4oW9+lQ==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.49.0.tgz",
+ "integrity": "sha512-OVSQgEZDVLnTbMq5NBs6xkmz3AADByCWI4RdKSFNlDsYXdFtlxS59J+w+LippJe8KcmeSSM3ba+GlsM9+WwC1w==",
"cpu": [
"arm"
],
@@ -1231,9 +1227,9 @@
]
},
"node_modules/@rollup/rollup-linux-arm-musleabihf": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.44.0.tgz",
- "integrity": "sha512-1exwiBFf4PU/8HvI8s80icyCcnAIB86MCBdst51fwFmH5dyeoWVPVgmQPcKrMtBQ0W5pAs7jBCWuRXgEpRzSCg==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.49.0.tgz",
+ "integrity": "sha512-ZnfSFA7fDUHNa4P3VwAcfaBLakCbYaxCk0jUnS3dTou9P95kwoOLAMlT3WmEJDBCSrOEFFV0Y1HXiwfLYJuLlA==",
"cpu": [
"arm"
],
@@ -1245,9 +1241,9 @@
]
},
"node_modules/@rollup/rollup-linux-arm64-gnu": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.44.0.tgz",
- "integrity": "sha512-ZTR2mxBHb4tK4wGf9b8SYg0Y6KQPjGpR4UWwTFdnmjB4qRtoATZ5dWn3KsDwGa5Z2ZBOE7K52L36J9LueKBdOQ==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.49.0.tgz",
+ "integrity": "sha512-Z81u+gfrobVK2iV7GqZCBfEB1y6+I61AH466lNK+xy1jfqFLiQ9Qv716WUM5fxFrYxwC7ziVdZRU9qvGHkYIJg==",
"cpu": [
"arm64"
],
@@ -1259,9 +1255,9 @@
]
},
"node_modules/@rollup/rollup-linux-arm64-musl": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.44.0.tgz",
- "integrity": "sha512-GFWfAhVhWGd4r6UxmnKRTBwP1qmModHtd5gkraeW2G490BpFOZkFtem8yuX2NyafIP/mGpRJgTJ2PwohQkUY/Q==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.49.0.tgz",
+ "integrity": "sha512-zoAwS0KCXSnTp9NH/h9aamBAIve0DXeYpll85shf9NJ0URjSTzzS+Z9evmolN+ICfD3v8skKUPyk2PO0uGdFqg==",
"cpu": [
"arm64"
],
@@ -1273,9 +1269,9 @@
]
},
"node_modules/@rollup/rollup-linux-loongarch64-gnu": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.44.0.tgz",
- "integrity": "sha512-xw+FTGcov/ejdusVOqKgMGW3c4+AgqrfvzWEVXcNP6zq2ue+lsYUgJ+5Rtn/OTJf7e2CbgTFvzLW2j0YAtj0Gg==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.49.0.tgz",
+ "integrity": "sha512-2QyUyQQ1ZtwZGiq0nvODL+vLJBtciItC3/5cYN8ncDQcv5avrt2MbKt1XU/vFAJlLta5KujqyHdYtdag4YEjYQ==",
"cpu": [
"loong64"
],
@@ -1286,10 +1282,10 @@
"linux"
]
},
- "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.44.0.tgz",
- "integrity": "sha512-bKGibTr9IdF0zr21kMvkZT4K6NV+jjRnBoVMt2uNMG0BYWm3qOVmYnXKzx7UhwrviKnmK46IKMByMgvpdQlyJQ==",
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.49.0.tgz",
+ "integrity": "sha512-k9aEmOWt+mrMuD3skjVJSSxHckJp+SiFzFG+v8JLXbc/xi9hv2icSkR3U7uQzqy+/QbbYY7iNB9eDTwrELo14g==",
"cpu": [
"ppc64"
],
@@ -1301,9 +1297,9 @@
]
},
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.44.0.tgz",
- "integrity": "sha512-vV3cL48U5kDaKZtXrti12YRa7TyxgKAIDoYdqSIOMOFBXqFj2XbChHAtXquEn2+n78ciFgr4KIqEbydEGPxXgA==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.49.0.tgz",
+ "integrity": "sha512-rDKRFFIWJ/zJn6uk2IdYLc09Z7zkE5IFIOWqpuU0o6ZpHcdniAyWkwSUWE/Z25N/wNDmFHHMzin84qW7Wzkjsw==",
"cpu": [
"riscv64"
],
@@ -1315,9 +1311,9 @@
]
},
"node_modules/@rollup/rollup-linux-riscv64-musl": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.44.0.tgz",
- "integrity": "sha512-TDKO8KlHJuvTEdfw5YYFBjhFts2TR0VpZsnLLSYmB7AaohJhM8ctDSdDnUGq77hUh4m/djRafw+9zQpkOanE2Q==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.49.0.tgz",
+ "integrity": "sha512-FkkhIY/hYFVnOzz1WeV3S9Bd1h0hda/gRqvZCMpHWDHdiIHn6pqsY3b5eSbvGccWHMQ1uUzgZTKS4oGpykf8Tw==",
"cpu": [
"riscv64"
],
@@ -1329,9 +1325,9 @@
]
},
"node_modules/@rollup/rollup-linux-s390x-gnu": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.44.0.tgz",
- "integrity": "sha512-8541GEyktXaw4lvnGp9m84KENcxInhAt6vPWJ9RodsB/iGjHoMB2Pp5MVBCiKIRxrxzJhGCxmNzdu+oDQ7kwRA==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.49.0.tgz",
+ "integrity": "sha512-gRf5c+A7QiOG3UwLyOOtyJMD31JJhMjBvpfhAitPAoqZFcOeK3Kc1Veg1z/trmt+2P6F/biT02fU19GGTS529A==",
"cpu": [
"s390x"
],
@@ -1343,9 +1339,9 @@
]
},
"node_modules/@rollup/rollup-linux-x64-gnu": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.44.0.tgz",
- "integrity": "sha512-iUVJc3c0o8l9Sa/qlDL2Z9UP92UZZW1+EmQ4xfjTc1akr0iUFZNfxrXJ/R1T90h/ILm9iXEY6+iPrmYB3pXKjw==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.49.0.tgz",
+ "integrity": "sha512-BR7+blScdLW1h/2hB/2oXM+dhTmpW3rQt1DeSiCP9mc2NMMkqVgjIN3DDsNpKmezffGC9R8XKVOLmBkRUcK/sA==",
"cpu": [
"x64"
],
@@ -1357,9 +1353,9 @@
]
},
"node_modules/@rollup/rollup-linux-x64-musl": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.44.0.tgz",
- "integrity": "sha512-PQUobbhLTQT5yz/SPg116VJBgz+XOtXt8D1ck+sfJJhuEsMj2jSej5yTdp8CvWBSceu+WW+ibVL6dm0ptG5fcA==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.49.0.tgz",
+ "integrity": "sha512-hDMOAe+6nX3V5ei1I7Au3wcr9h3ktKzDvF2ne5ovX8RZiAHEtX1A5SNNk4zt1Qt77CmnbqT+upb/umzoPMWiPg==",
"cpu": [
"x64"
],
@@ -1371,9 +1367,9 @@
]
},
"node_modules/@rollup/rollup-win32-arm64-msvc": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.44.0.tgz",
- "integrity": "sha512-M0CpcHf8TWn+4oTxJfh7LQuTuaYeXGbk0eageVjQCKzYLsajWS/lFC94qlRqOlyC2KvRT90ZrfXULYmukeIy7w==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.49.0.tgz",
+ "integrity": "sha512-wkNRzfiIGaElC9kXUT+HLx17z7D0jl+9tGYRKwd8r7cUqTL7GYAvgUY++U2hK6Ar7z5Z6IRRoWC8kQxpmM7TDA==",
"cpu": [
"arm64"
],
@@ -1385,9 +1381,9 @@
]
},
"node_modules/@rollup/rollup-win32-ia32-msvc": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.44.0.tgz",
- "integrity": "sha512-3XJ0NQtMAXTWFW8FqZKcw3gOQwBtVWP/u8TpHP3CRPXD7Pd6s8lLdH3sHWh8vqKCyyiI8xW5ltJScQmBU9j7WA==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.49.0.tgz",
+ "integrity": "sha512-gq5aW/SyNpjp71AAzroH37DtINDcX1Qw2iv9Chyz49ZgdOP3NV8QCyKZUrGsYX9Yyggj5soFiRCgsL3HwD8TdA==",
"cpu": [
"ia32"
],
@@ -1399,9 +1395,9 @@
]
},
"node_modules/@rollup/rollup-win32-x64-msvc": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.44.0.tgz",
- "integrity": "sha512-Q2Mgwt+D8hd5FIPUuPDsvPR7Bguza6yTkJxspDGkZj7tBRn2y4KSWYuIXpftFSjBra76TbKerCV7rgFPQrn+wQ==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.49.0.tgz",
+ "integrity": "sha512-gEtqFbzmZLFk2xKh7g0Rlo8xzho8KrEFEkzvHbfUGkrgXOpZ4XagQ6n+wIZFNh1nTb8UD16J4nFSFKXYgnbdBg==",
"cpu": [
"x64"
],
@@ -1447,9 +1443,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
- "version": "22.15.33",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.33.tgz",
- "integrity": "sha512-wzoocdnnpSxZ+6CjW4ADCK1jVmd1S/J3ArNWfn8FDDQtRm8dkDg7TA+mvek2wNrfCgwuZxqEOiB9B1XCJ6+dbw==",
+ "version": "22.18.0",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.0.tgz",
+ "integrity": "sha512-m5ObIqwsUp6BZzyiy4RdZpzWGub9bqLJMvZDD0QMXhxjqMHMENlj+SqF5QxoUwaQNFe+8kz8XM8ZQhqkQPTgMQ==",
"devOptional": true,
"license": "MIT",
"dependencies": {
@@ -1457,9 +1453,9 @@
}
},
"node_modules/@typespec/compiler": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.1.0.tgz",
- "integrity": "sha512-dtwosIqd2UUEEIVBR+oDiUtN4n1lP8/9GxQVno+wbkijQgKDj4Hg0Vaq6HG4BduF7RptDdtzkdGQCS9CgOIdRA==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.3.0.tgz",
+ "integrity": "sha512-OqpoNP3C2y8riA6C5RofPMvmj9jNiGyyhde0tM2ZE7IBOv7BBaTDqw4CJD22YnC8JEilRfPmvdVCViNrPHEjrA==",
"license": "MIT",
"peer": true,
"dependencies": {
@@ -1472,14 +1468,14 @@
"is-unicode-supported": "^2.1.0",
"mustache": "~4.2.0",
"picocolors": "~1.1.1",
- "prettier": "~3.5.3",
+ "prettier": "~3.6.2",
"semver": "^7.7.1",
"tar": "^7.4.3",
"temporal-polyfill": "^0.3.0",
"vscode-languageserver": "~9.0.1",
"vscode-languageserver-textdocument": "~1.0.12",
- "yaml": "~2.7.0",
- "yargs": "~17.7.2"
+ "yaml": "~2.8.0",
+ "yargs": "~18.0.0"
},
"bin": {
"tsp": "cmd/tsp.js",
@@ -1490,29 +1486,29 @@
}
},
"node_modules/@typespec/events": {
- "version": "0.71.0",
- "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.71.0.tgz",
- "integrity": "sha512-dJeyqBGqTTSlFDVWpdqeMjDpEyRmenH3yDABK3T/30MrO94sdXigxmeBnPCcOaaqst6pV3anFuKwfAqEN3GnbA==",
+ "version": "0.73.0",
+ "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.73.0.tgz",
+ "integrity": "sha512-etlhp86amDaElD/UX27u9I4O58zREov73HkkV3xbdTWpv2RqOKyD3mkyGAWsW3hKaGVIxwHOvKcOZ2j+b07Gpw==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "^1.1.0"
+ "@typespec/compiler": "^1.3.0"
}
},
"node_modules/@typespec/http": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.1.0.tgz",
- "integrity": "sha512-1doVGmkv3N8l57fVuci4jGMZ61EZBlDzuNZO2b9o0+mexCOs/P96CIpFkaNVvTQgjpyFsW1DlXiUKAvUC9zQfg==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.3.0.tgz",
+ "integrity": "sha512-4W3KsmBHZGgECVbvyh7S7KQG06948XyVVzae+UbVDDxoUj/x4Ry0AXw3q4HmzB2BVhxw6JBrwBuVa5mxjVMzdw==",
"license": "MIT",
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "^1.1.0",
- "@typespec/streams": "^0.71.0"
+ "@typespec/compiler": "^1.3.0",
+ "@typespec/streams": "^0.73.0"
},
"peerDependenciesMeta": {
"@typespec/streams": {
@@ -1521,100 +1517,101 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20250722.1",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250722.1.tgz",
- "integrity": "sha512-dKcFGXM+Bm0iJdmdTFCQwrNyI9RQ5XwIyXpRI15z/zbLL7qdrbO9cyp1IP2H0A7jI6/rdfkMaKv6m9KTAgi/wA==",
+ "version": "1.0.0-alpha.20250827.2",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250827.2.tgz",
+ "integrity": "sha512-TodwID2apHysku1tkxA/GAQCgPCZbrdkq+6bc15CU/k9WfWqBig7whIOeBULs7zlACkbmZXkyCOt9kDcMslhSg==",
"license": "MIT",
"peerDependencies": {
- "@azure-tools/typespec-azure-core": ">=0.57.0 <0.58.0 || ~0.58.0-0",
- "@azure-tools/typespec-client-generator-core": ">=0.57.0 <0.58.0 || ~0.58.0-0",
- "@typespec/compiler": "^1.1.0",
- "@typespec/http": "^1.1.0",
- "@typespec/openapi": "^1.1.0",
- "@typespec/rest": ">=0.71.0 <0.72.0 || ~0.72.0-0",
- "@typespec/versioning": ">=0.71.0 <0.72.0 || ~0.72.0-0"
+ "@azure-tools/typespec-azure-core": ">=0.59.0 <0.60.0 || ~0.60.0-0",
+ "@azure-tools/typespec-client-generator-core": ">=0.59.0 <0.60.0 || ~0.60.0-0",
+ "@typespec/compiler": "^1.3.0",
+ "@typespec/http": "^1.3.0",
+ "@typespec/openapi": "^1.3.0",
+ "@typespec/rest": ">=0.73.0 <0.74.0 || ~0.74.0-0",
+ "@typespec/streams": ">=0.73.0 <0.74.0 || ~0.74.0-0",
+ "@typespec/versioning": ">=0.73.0 <0.74.0 || ~0.74.0-0"
}
},
"node_modules/@typespec/openapi": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.1.0.tgz",
- "integrity": "sha512-HPvrpSS7eSVk3fEkWndcDTrAZssWRYv3FyDTqVqljildc7FAiXdo88+r5CCK8endmgIrES7uJdHLkcIGUZx1pg==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.3.0.tgz",
+ "integrity": "sha512-BSeshjCZQodVGyVHn7ytcUeIcUGjqbG2Ac0NLOQaaKnISVrhTWNcgo5aFTqxAa24ZL/EuhqlSauLyYce2EV9fw==",
"license": "MIT",
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "^1.1.0",
- "@typespec/http": "^1.1.0"
+ "@typespec/compiler": "^1.3.0",
+ "@typespec/http": "^1.3.0"
}
},
"node_modules/@typespec/rest": {
- "version": "0.71.0",
- "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.71.0.tgz",
- "integrity": "sha512-5qX+nWO5Jx4P1iTTT2REgdCtHsTMjlv/gL90u8cO1ih3yHDtf18a41UL6jSYaVUIvIj6rlmrgopActf0FhhUcw==",
+ "version": "0.73.0",
+ "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.73.0.tgz",
+ "integrity": "sha512-28hgFGvreBg34Xuguw+E++pQC/kbRxy1Bpx/9nU7x87Ly6ykns3lpx74gjY9ByE8VYKVbXtC7lzdnp19DRSjIQ==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "^1.1.0",
- "@typespec/http": "^1.1.0"
+ "@typespec/compiler": "^1.3.0",
+ "@typespec/http": "^1.3.0"
}
},
"node_modules/@typespec/sse": {
- "version": "0.71.0",
- "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.71.0.tgz",
- "integrity": "sha512-4lAwDMj8h/50s6zp/8IX8CLW+H3P+od5O32Bb8+fyTabEo7+H3PbdBbIJGv9Sj7+l8+bZXsyfRXa+aJxR9o2ZA==",
+ "version": "0.73.0",
+ "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.73.0.tgz",
+ "integrity": "sha512-WTnRJ1b1M3RPzlHxhnK9sh6+AGKPKWpuA0TSAqzyxb/uRHFYLNeoDKPOnlQ749SJ8lJz71Oh0nUsP3vB0EzO6Q==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "^1.1.0",
- "@typespec/events": "^0.71.0",
- "@typespec/http": "^1.1.0",
- "@typespec/streams": "^0.71.0"
+ "@typespec/compiler": "^1.3.0",
+ "@typespec/events": "^0.73.0",
+ "@typespec/http": "^1.3.0",
+ "@typespec/streams": "^0.73.0"
}
},
"node_modules/@typespec/streams": {
- "version": "0.71.0",
- "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.71.0.tgz",
- "integrity": "sha512-ofyAcg8GnO6uTffGo00D6MMfRkqie4QtnUUSGNC1Bam2WG+wkeSG/huP0WNRT8GofzK1N0M6QqQwAW/vdq9ymQ==",
+ "version": "0.73.0",
+ "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.73.0.tgz",
+ "integrity": "sha512-pL4xffHXEIhBQKPlB9L4AKuM0bn44WsGKjnz91wa6wBtP/CbsPrGQicof0Z7GPGdddtDi4G8PWGmJtVFw53V9g==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "^1.1.0"
+ "@typespec/compiler": "^1.3.0"
}
},
"node_modules/@typespec/versioning": {
- "version": "0.71.0",
- "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.71.0.tgz",
- "integrity": "sha512-8qknFLOpZTVzQ+SveXg9G7WJV8P80yxLlj0nOc3ZLBKiPgM6FF7vGWHRNtnh7s3gSXvWyxopaJ9fZSLZSJmbww==",
+ "version": "0.73.0",
+ "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.73.0.tgz",
+ "integrity": "sha512-cfFvzTsvsu4VpdwZcRULr3p/fawKZnjiJClQxlLcYW0dLs/5k5jh7l0YyPkYvgkOcncUrIB6hIu82tQhKrMDKQ==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "^1.1.0"
+ "@typespec/compiler": "^1.3.0"
}
},
"node_modules/@typespec/xml": {
- "version": "0.71.0",
- "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.71.0.tgz",
- "integrity": "sha512-IcBM4fd5li+hfaUoxeiFrUJx+gCGwIJ+LojdbAZPP3Kbdv12RS+8+CHH6d9qGV3qExgWGCny6WDUrUIaVCLonw==",
+ "version": "0.73.0",
+ "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.73.0.tgz",
+ "integrity": "sha512-vlMM8/L22O/PbI3ovj3qoww/3Z8wNwn7og4jzlGRM93jZBJvrOeDSwZo1Dc4rMJyU6KfjPkP3/l5TLbgW8x0zA==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
- "@typespec/compiler": "^1.1.0"
+ "@typespec/compiler": "^1.3.0"
}
},
"node_modules/@vitest/coverage-v8": {
@@ -1839,15 +1836,13 @@
}
},
"node_modules/ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
+ "dev": true,
"license": "MIT",
- "dependencies": {
- "color-convert": "^2.0.1"
- },
"engines": {
- "node": ">=8"
+ "node": ">=10"
},
"funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
@@ -1919,6 +1914,74 @@
"node": ">=14.14.0"
}
},
+ "node_modules/c8/node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/c8/node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/c8/node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/c8/node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/cac": {
"version": "6.7.14",
"resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",
@@ -1955,9 +2018,9 @@
"license": "MIT"
},
"node_modules/chardet": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
- "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz",
+ "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==",
"license": "MIT",
"peer": true
},
@@ -1995,31 +2058,100 @@
}
},
"node_modules/cliui": {
- "version": "8.0.1",
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
- "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz",
+ "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==",
"license": "ISC",
+ "peer": true,
"dependencies": {
- "string-width": "^4.2.0",
- "strip-ansi": "^6.0.1",
- "wrap-ansi": "^7.0.0"
+ "string-width": "^7.2.0",
+ "strip-ansi": "^7.1.0",
+ "wrap-ansi": "^9.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/cliui/node_modules/ansi-regex": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.0.tgz",
+ "integrity": "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/cliui/node_modules/ansi-styles": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",
+ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/cliui/node_modules/emoji-regex": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz",
+ "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/cliui/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cliui/node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
},
"engines": {
"node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
}
},
"node_modules/cliui/node_modules/wrap-ansi": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz",
+ "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==",
"license": "MIT",
+ "peer": true,
"dependencies": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
+ "ansi-styles": "^6.2.1",
+ "string-width": "^7.0.0",
+ "strip-ansi": "^7.1.0"
},
"engines": {
- "node": ">=10"
+ "node": ">=18"
},
"funding": {
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
@@ -2084,6 +2216,22 @@
"copyup": "copyfiles"
}
},
+ "node_modules/copyfiles/node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
"node_modules/copyfiles/node_modules/cliui": {
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
@@ -2096,19 +2244,6 @@
"wrap-ansi": "^7.0.0"
}
},
- "node_modules/copyfiles/node_modules/mkdirp": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "mkdirp": "bin/cmd.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
"node_modules/copyfiles/node_modules/wrap-ansi": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
@@ -2327,21 +2462,6 @@
"url": "https://github.com/sindresorhus/execa?sponsor=1"
}
},
- "node_modules/external-editor": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",
- "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "chardet": "^0.7.0",
- "iconv-lite": "^0.4.24",
- "tmp": "^0.0.33"
- },
- "engines": {
- "node": ">=4"
- }
- },
"node_modules/fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
@@ -2366,9 +2486,9 @@
}
},
"node_modules/fast-uri": {
- "version": "3.0.6",
- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz",
- "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==",
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz",
+ "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==",
"funding": [
{
"type": "github",
@@ -2482,6 +2602,19 @@
"node": "6.* || 8.* || >= 10.*"
}
},
+ "node_modules/get-east-asian-width": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz",
+ "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/get-func-name": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz",
@@ -2588,13 +2721,13 @@
}
},
"node_modules/iconv-lite": {
- "version": "0.4.24",
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
- "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
"license": "MIT",
"peer": true,
"dependencies": {
- "safer-buffer": ">= 2.1.2 < 3"
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
},
"engines": {
"node": ">=0.10.0"
@@ -2749,9 +2882,9 @@
}
},
"node_modules/istanbul-reports": {
- "version": "3.1.7",
- "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz",
- "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==",
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",
+ "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",
"dev": true,
"license": "BSD-3-Clause",
"dependencies": {
@@ -2843,13 +2976,13 @@
"license": "ISC"
},
"node_modules/magic-string": {
- "version": "0.30.17",
- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz",
- "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",
+ "version": "0.30.18",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.18.tgz",
+ "integrity": "sha512-yi8swmWbO17qHhwIBNeeZxTceJMeBvWJaId6dyvTSOwTipqeHhMhOrz6513r1sOKnpvQ7zkhlG8tPrpilwTxHQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@jridgewell/sourcemap-codec": "^1.5.0"
+ "@jridgewell/sourcemap-codec": "^1.5.5"
}
},
"node_modules/magicast": {
@@ -2958,32 +3091,29 @@
}
},
"node_modules/mkdirp": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",
- "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==",
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
+ "dev": true,
"license": "MIT",
- "peer": true,
"bin": {
- "mkdirp": "dist/cjs/src/bin.js"
+ "mkdirp": "bin/cmd.js"
},
"engines": {
"node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/mlly": {
- "version": "1.7.4",
- "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.4.tgz",
- "integrity": "sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==",
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz",
+ "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==",
"dev": true,
"license": "MIT",
"dependencies": {
- "acorn": "^8.14.0",
- "pathe": "^2.0.1",
- "pkg-types": "^1.3.0",
- "ufo": "^1.5.4"
+ "acorn": "^8.15.0",
+ "pathe": "^2.0.3",
+ "pkg-types": "^1.3.1",
+ "ufo": "^1.6.1"
}
},
"node_modules/mlly/node_modules/pathe": {
@@ -3115,16 +3245,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/os-tmpdir": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
- "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/p-limit": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
@@ -3317,9 +3437,9 @@
}
},
"node_modules/prettier": {
- "version": "3.5.3",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",
- "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz",
+ "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",
"license": "MIT",
"peer": true,
"bin": {
@@ -3347,19 +3467,6 @@
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
}
},
- "node_modules/pretty-format/node_modules/ansi-styles": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
"node_modules/process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@@ -3411,6 +3518,7 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
"integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
@@ -3500,9 +3608,9 @@
}
},
"node_modules/rollup": {
- "version": "4.44.0",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.44.0.tgz",
- "integrity": "sha512-qHcdEzLCiktQIfwBq420pn2dP+30uzqYxv9ETm91wdt2R9AFcWfjNAmje4NWlnCIQ5RMTzVf0ZyisOKqHR6RwA==",
+ "version": "4.49.0",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.49.0.tgz",
+ "integrity": "sha512-3IVq0cGJ6H7fKXXEdVt+RcYvRCt8beYY9K1760wGQwSAHZcS9eot1zDG5axUbcp/kWRi5zKIIDX8MoKv/TzvZA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3516,26 +3624,26 @@
"npm": ">=8.0.0"
},
"optionalDependencies": {
- "@rollup/rollup-android-arm-eabi": "4.44.0",
- "@rollup/rollup-android-arm64": "4.44.0",
- "@rollup/rollup-darwin-arm64": "4.44.0",
- "@rollup/rollup-darwin-x64": "4.44.0",
- "@rollup/rollup-freebsd-arm64": "4.44.0",
- "@rollup/rollup-freebsd-x64": "4.44.0",
- "@rollup/rollup-linux-arm-gnueabihf": "4.44.0",
- "@rollup/rollup-linux-arm-musleabihf": "4.44.0",
- "@rollup/rollup-linux-arm64-gnu": "4.44.0",
- "@rollup/rollup-linux-arm64-musl": "4.44.0",
- "@rollup/rollup-linux-loongarch64-gnu": "4.44.0",
- "@rollup/rollup-linux-powerpc64le-gnu": "4.44.0",
- "@rollup/rollup-linux-riscv64-gnu": "4.44.0",
- "@rollup/rollup-linux-riscv64-musl": "4.44.0",
- "@rollup/rollup-linux-s390x-gnu": "4.44.0",
- "@rollup/rollup-linux-x64-gnu": "4.44.0",
- "@rollup/rollup-linux-x64-musl": "4.44.0",
- "@rollup/rollup-win32-arm64-msvc": "4.44.0",
- "@rollup/rollup-win32-ia32-msvc": "4.44.0",
- "@rollup/rollup-win32-x64-msvc": "4.44.0",
+ "@rollup/rollup-android-arm-eabi": "4.49.0",
+ "@rollup/rollup-android-arm64": "4.49.0",
+ "@rollup/rollup-darwin-arm64": "4.49.0",
+ "@rollup/rollup-darwin-x64": "4.49.0",
+ "@rollup/rollup-freebsd-arm64": "4.49.0",
+ "@rollup/rollup-freebsd-x64": "4.49.0",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.49.0",
+ "@rollup/rollup-linux-arm-musleabihf": "4.49.0",
+ "@rollup/rollup-linux-arm64-gnu": "4.49.0",
+ "@rollup/rollup-linux-arm64-musl": "4.49.0",
+ "@rollup/rollup-linux-loongarch64-gnu": "4.49.0",
+ "@rollup/rollup-linux-ppc64-gnu": "4.49.0",
+ "@rollup/rollup-linux-riscv64-gnu": "4.49.0",
+ "@rollup/rollup-linux-riscv64-musl": "4.49.0",
+ "@rollup/rollup-linux-s390x-gnu": "4.49.0",
+ "@rollup/rollup-linux-x64-gnu": "4.49.0",
+ "@rollup/rollup-linux-x64-musl": "4.49.0",
+ "@rollup/rollup-win32-arm64-msvc": "4.49.0",
+ "@rollup/rollup-win32-ia32-msvc": "4.49.0",
+ "@rollup/rollup-win32-x64-msvc": "4.49.0",
"fsevents": "~2.3.2"
}
},
@@ -3809,6 +3917,22 @@
"node": ">=18"
}
},
+ "node_modules/tar/node_modules/mkdirp": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",
+ "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==",
+ "license": "MIT",
+ "peer": true,
+ "bin": {
+ "mkdirp": "dist/cjs/src/bin.js"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
"node_modules/temporal-polyfill": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/temporal-polyfill/-/temporal-polyfill-0.3.0.tgz",
@@ -3912,19 +4036,6 @@
"node": ">=14.0.0"
}
},
- "node_modules/tmp": {
- "version": "0.0.33",
- "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
- "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "os-tmpdir": "~1.0.2"
- },
- "engines": {
- "node": ">=0.6.0"
- }
- },
"node_modules/to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
@@ -3971,9 +4082,9 @@
}
},
"node_modules/typescript": {
- "version": "5.8.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
- "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
+ "version": "5.9.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz",
+ "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
"dev": true,
"license": "Apache-2.0",
"bin": {
@@ -4307,6 +4418,38 @@
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
}
},
+ "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
"node_modules/wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
@@ -4344,45 +4487,109 @@
}
},
"node_modules/yaml": {
- "version": "2.7.1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz",
- "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==",
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
+ "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
"license": "ISC",
- "peer": true,
"bin": {
"yaml": "bin.mjs"
},
"engines": {
- "node": ">= 14"
+ "node": ">= 14.6"
}
},
"node_modules/yargs": {
- "version": "17.7.2",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
- "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "version": "18.0.0",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz",
+ "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==",
"license": "MIT",
+ "peer": true,
"dependencies": {
- "cliui": "^8.0.1",
+ "cliui": "^9.0.1",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
- "require-directory": "^2.1.1",
- "string-width": "^4.2.3",
+ "string-width": "^7.2.0",
"y18n": "^5.0.5",
- "yargs-parser": "^21.1.1"
+ "yargs-parser": "^22.0.0"
},
"engines": {
- "node": ">=12"
+ "node": "^20.19.0 || ^22.12.0 || >=23"
}
},
"node_modules/yargs-parser": {
"version": "21.1.1",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
"license": "ISC",
"engines": {
"node": ">=12"
}
},
+ "node_modules/yargs/node_modules/ansi-regex": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.0.tgz",
+ "integrity": "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/yargs/node_modules/emoji-regex": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz",
+ "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/yargs/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/yargs/node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/yargs/node_modules/yargs-parser": {
+ "version": "22.0.0",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz",
+ "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==",
+ "license": "ISC",
+ "peer": true,
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=23"
+ }
+ },
"node_modules/yocto-queue": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
@@ -4397,9 +4604,9 @@
}
},
"node_modules/yoctocolors-cjs": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz",
- "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==",
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.3.tgz",
+ "integrity": "sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==",
"license": "MIT",
"peer": true,
"engines": {
diff --git a/specification/client/graders.client.tsp b/specification/client/graders.client.tsp
index c7e5992a8..dc3cc91f4 100644
--- a/specification/client/graders.client.tsp
+++ b/specification/client/graders.client.tsp
@@ -6,3 +6,8 @@ using Azure.ClientGenerator.Core;
@@convenientAPI(Graders.runGrader, false);
@@convenientAPI(Graders.validateGrader, false);
+
+@@usage(RunGraderRequest, Usage.json);
+@@usage(RunGraderResponse, Usage.output);
+@@usage(ValidateGraderRequest, Usage.json);
+@@usage(ValidateGraderResponse, Usage.output);
diff --git a/src/Custom/Assistants/AssistantClient.cs b/src/Custom/Assistants/AssistantClient.cs
index 024f8c04c..c800784ef 100644
--- a/src/Custom/Assistants/AssistantClient.cs
+++ b/src/Custom/Assistants/AssistantClient.cs
@@ -1258,23 +1258,23 @@ private static BinaryContent CreateThreadAndRunProtocolContent(
{
Argument.AssertNotNullOrEmpty(assistantId, nameof(assistantId));
InternalCreateThreadAndRunRequest internalRequest = new(
- assistantId,
- threadOptions,
- runOptions.InstructionsOverride,
- runOptions.ToolsOverride,
- runOptions.Metadata,
- runOptions.Temperature,
+ assistantId: assistantId,
+ thread: threadOptions,
+ instructions: runOptions.InstructionsOverride,
+ tools: runOptions.ToolsOverride,
+ metadata: runOptions.Metadata,
+ temperature: runOptions.Temperature,
// TODO: reconcile exposure of the the two different tool_resources, if needed
- runOptions.NucleusSamplingFactor,
- runOptions.Stream,
- runOptions.MaxInputTokenCount,
- runOptions.MaxOutputTokenCount,
- runOptions.TruncationStrategy,
- runOptions.AllowParallelToolCalls,
- runOptions.ModelOverride,
- threadOptions.ToolResources,
- runOptions.ResponseFormat,
- runOptions.ToolConstraint,
+ topP: runOptions.NucleusSamplingFactor,
+ stream: runOptions.Stream,
+ maxPromptTokens: runOptions.MaxInputTokenCount,
+ maxCompletionTokens: runOptions.MaxOutputTokenCount,
+ truncationStrategy: runOptions.TruncationStrategy,
+ parallelToolCalls: runOptions.AllowParallelToolCalls,
+ model: runOptions.ModelOverride,
+ toolResources: threadOptions.ToolResources,
+ responseFormat: runOptions.ResponseFormat,
+ toolChoice: runOptions.ToolConstraint,
additionalBinaryDataProperties: null);
return BinaryContent.Create(internalRequest, ModelSerializationExtensions.WireOptions);
}
diff --git a/src/Custom/Assistants/ThreadInitializationMessage.cs b/src/Custom/Assistants/ThreadInitializationMessage.cs
index 76865b2c5..a5a3e502b 100644
--- a/src/Custom/Assistants/ThreadInitializationMessage.cs
+++ b/src/Custom/Assistants/ThreadInitializationMessage.cs
@@ -13,13 +13,13 @@ public partial class ThreadInitializationMessage : MessageCreationOptions
///
/// The content items that should be included in the message, added to the thread being created.
///
- public ThreadInitializationMessage(MessageRole role, IEnumerable content) : base(null, null, role, content?.ToList(), null)
+ public ThreadInitializationMessage(MessageRole role, IEnumerable content) : base(attachments: null, metadata: null, role: role, content: content?.ToList(), additionalBinaryDataProperties: null)
{
Argument.AssertNotNull(content, nameof(content));
}
internal ThreadInitializationMessage(MessageCreationOptions baseOptions)
- : base(baseOptions.Attachments, baseOptions.Metadata, baseOptions.Role, baseOptions.Content, null)
+ : base(attachments: baseOptions.Attachments, metadata: baseOptions.Metadata, role: baseOptions.Role, content: baseOptions.Content, additionalBinaryDataProperties: null)
{ }
internal ThreadInitializationMessage() : this(default, null)
diff --git a/src/Custom/Audio/AudioTranslation.Serialization.cs b/src/Custom/Audio/AudioTranslation.Serialization.cs
index 5b04f8050..98eff2f2a 100644
--- a/src/Custom/Audio/AudioTranslation.Serialization.cs
+++ b/src/Custom/Audio/AudioTranslation.Serialization.cs
@@ -12,7 +12,7 @@ internal static AudioTranslation FromResponse(PipelineResponse response)
if (response?.Headers?.TryGetValue("Content-Type", out string contentType) == true &&
contentType.StartsWith("text/plain", StringComparison.Ordinal))
{
- return new AudioTranslation(null, text: response.Content?.ToString(), null, task: default, null, null);
+ return new AudioTranslation(language: null, text: response.Content?.ToString(), segments: null, task: default, duration: null, additionalBinaryDataProperties: null);
}
using var document = JsonDocument.Parse(response.Content);
diff --git a/src/Custom/Audio/OpenAIAudioModelFactory.cs b/src/Custom/Audio/OpenAIAudioModelFactory.cs
index 3d168a3c5..9b8067ca4 100644
--- a/src/Custom/Audio/OpenAIAudioModelFactory.cs
+++ b/src/Custom/Audio/OpenAIAudioModelFactory.cs
@@ -25,13 +25,13 @@ public static AudioTranscription AudioTranscription(string language = null, Time
transcriptionTokenLogProbabilities ??= new List();
return new AudioTranscription(
- language,
- text,
- words.ToList(),
- segments.ToList(),
- "transcribe",
- duration,
- transcriptionTokenLogProbabilities.ToList(),
+ language: language,
+ text: text,
+ words: words.ToList(),
+ segments: segments.ToList(),
+ task: "transcribe",
+ duration: duration,
+ transcriptionTokenLogProbabilities: transcriptionTokenLogProbabilities.ToList(),
additionalBinaryDataProperties: null);
}
@@ -42,11 +42,11 @@ public static AudioTranslation AudioTranslation(string language = null, TimeSpan
segments ??= new List();
return new AudioTranslation(
- language,
- text,
+ language: language,
+ text: text,
segments: segments.ToList(),
task: "translate",
- duration,
+ duration: duration,
additionalBinaryDataProperties: null);
}
@@ -55,16 +55,16 @@ public static AudioTranslation AudioTranslation(string language = null, TimeSpan
public static TranscribedSegment TranscribedSegment(int id = default, int seekOffset = default, TimeSpan startTime = default, TimeSpan endTime = default, string text = null, ReadOnlyMemory tokenIds = default, float temperature = default, float averageLogProbability = default, float compressionRatio = default, float noSpeechProbability = default)
{
return new TranscribedSegment(
- id,
- text,
- temperature,
- compressionRatio,
- startTime,
- endTime,
- seekOffset,
- tokenIds,
- averageLogProbability,
- noSpeechProbability,
+ id: id,
+ text: text,
+ temperature: temperature,
+ compressionRatio: compressionRatio,
+ startTime: startTime,
+ endTime: endTime,
+ seekOffset: seekOffset,
+ tokenIds: tokenIds,
+ averageLogProbability: averageLogProbability,
+ noSpeechProbability: noSpeechProbability,
additionalBinaryDataProperties: null);
}
diff --git a/src/Custom/Chat/Internal/InternalChatCompletionRequestMessageContentPartImageImageUrl.cs b/src/Custom/Chat/Internal/InternalChatCompletionRequestMessageContentPartImageImageUrl.cs
index 4fec659e2..06886b4e7 100644
--- a/src/Custom/Chat/Internal/InternalChatCompletionRequestMessageContentPartImageImageUrl.cs
+++ b/src/Custom/Chat/Internal/InternalChatCompletionRequestMessageContentPartImageImageUrl.cs
@@ -33,7 +33,7 @@ internal string InternalUrl
/// Either a URL of the image or the base64 encoded image data.
/// is null.
public InternalChatCompletionRequestMessageContentPartImageImageUrl(Uri uri, ChatImageDetailLevel? detailLevel = default)
- : this(detailLevel, null, null)
+ : this(null, detailLevel, null)
{
Argument.AssertNotNull(uri, nameof(uri));
_imageUri = uri;
@@ -41,7 +41,7 @@ public InternalChatCompletionRequestMessageContentPartImageImageUrl(Uri uri, Cha
}
public InternalChatCompletionRequestMessageContentPartImageImageUrl(BinaryData imageBytes, string imageBytesMediaType, ChatImageDetailLevel? detailLevel = default)
- : this(detailLevel, null, null)
+ : this(null, detailLevel, null)
{
Argument.AssertNotNull(imageBytes, nameof(imageBytes));
Argument.AssertNotNull(imageBytesMediaType, nameof(imageBytesMediaType));
diff --git a/src/Custom/Chat/Messages/AssistantChatMessage.cs b/src/Custom/Chat/Messages/AssistantChatMessage.cs
index 2fd886132..e37ba06ab 100644
--- a/src/Custom/Chat/Messages/AssistantChatMessage.cs
+++ b/src/Custom/Chat/Messages/AssistantChatMessage.cs
@@ -21,7 +21,15 @@ public partial class AssistantChatMessage : ChatMessage
/// The collection of content items associated with the message.
///
public AssistantChatMessage(IEnumerable contentParts)
- : this(new ChatMessageContent(contentParts), ChatMessageRole.Assistant, null, null, null, null, null, null)
+ : this(
+ content: new ChatMessageContent(contentParts),
+ role: ChatMessageRole.Assistant,
+ additionalBinaryDataProperties: null,
+ refusal: null,
+ participantName: null,
+ toolCalls: null,
+ functionCall: null,
+ outputAudioReference: null)
{
Argument.AssertNotNullOrEmpty(contentParts, nameof(contentParts));
}
@@ -34,7 +42,15 @@ public AssistantChatMessage(IEnumerable contentParts)
/// The collection of text and image content items associated with the message.
///
public AssistantChatMessage(params ChatMessageContentPart[] contentParts)
- : this(new ChatMessageContent(contentParts), ChatMessageRole.Assistant, null, null, null, null, null, null)
+ : this(
+ content: new ChatMessageContent(contentParts),
+ role: ChatMessageRole.Assistant,
+ additionalBinaryDataProperties: null,
+ refusal: null,
+ participantName: null,
+ toolCalls: null,
+ functionCall: null,
+ outputAudioReference: null)
{
Argument.AssertNotNullOrEmpty(contentParts, nameof(contentParts));
}
@@ -45,7 +61,15 @@ public AssistantChatMessage(params ChatMessageContentPart[] contentParts)
///
/// The text content of the message.
public AssistantChatMessage(string content)
- : this(new ChatMessageContent([content]), ChatMessageRole.Assistant, null, null, null, null, null, null)
+ : this(
+ content: new ChatMessageContent([content]),
+ role: ChatMessageRole.Assistant,
+ additionalBinaryDataProperties: null,
+ refusal: null,
+ participantName: null,
+ toolCalls: null,
+ functionCall: null,
+ outputAudioReference: null)
{
Argument.AssertNotNull(content, nameof(content));
}
@@ -56,7 +80,15 @@ public AssistantChatMessage(string content)
///
/// The tool_calls made by the model.
public AssistantChatMessage(IEnumerable toolCalls)
- : this(null, ChatMessageRole.Assistant, null, null, null, null, null, null)
+ : this(
+ content: null,
+ role: ChatMessageRole.Assistant,
+ additionalBinaryDataProperties: null,
+ refusal: null,
+ participantName: null,
+ toolCalls: null,
+ functionCall: null,
+ outputAudioReference: null)
{
Argument.AssertNotNullOrEmpty(toolCalls, nameof(toolCalls));
@@ -73,7 +105,15 @@ public AssistantChatMessage(IEnumerable toolCalls)
/// The function_call made by the model.
[Obsolete($"This constructor is obsolete. Please use the constructor that takes an IEnumerable parameter instead.")]
public AssistantChatMessage(ChatFunctionCall functionCall)
- : this(null, ChatMessageRole.Assistant, null, null, null, null, functionCall, null)
+ : this(
+ content: null,
+ role: ChatMessageRole.Assistant,
+ additionalBinaryDataProperties: null,
+ refusal: null,
+ participantName: null,
+ toolCalls: null,
+ functionCall: functionCall,
+ outputAudioReference: null)
{
Argument.AssertNotNull(functionCall, nameof(functionCall));
}
@@ -85,7 +125,15 @@ public AssistantChatMessage(ChatFunctionCall functionCall)
/// The audio reference with an id, produced by the model.
[Experimental("OPENAI001")]
public AssistantChatMessage(ChatOutputAudioReference outputAudioReference)
- : this(null, ChatMessageRole.Assistant, null, null, null, null, null, outputAudioReference)
+ : this(
+ content: null,
+ role: ChatMessageRole.Assistant,
+ additionalBinaryDataProperties: null,
+ refusal: null,
+ participantName: null,
+ toolCalls: null,
+ functionCall: null,
+ outputAudioReference: outputAudioReference)
{
Argument.AssertNotNull(outputAudioReference, nameof(outputAudioReference));
}
@@ -106,13 +154,13 @@ public AssistantChatMessage(ChatOutputAudioReference outputAudioReference)
///
public AssistantChatMessage(ChatCompletion chatCompletion)
: this(
- chatCompletion?.Content,
- ChatMessageRole.Assistant,
- null,
- chatCompletion?.Refusal,
- null,
- null,
- chatCompletion?.FunctionCall,
+ content: chatCompletion?.Content,
+ role: ChatMessageRole.Assistant,
+ additionalBinaryDataProperties: null,
+ refusal: chatCompletion?.Refusal,
+ participantName: null,
+ toolCalls: null,
+ functionCall: chatCompletion?.FunctionCall,
outputAudioReference: chatCompletion?.OutputAudio is not null
? new(chatCompletion.OutputAudio.Id)
: null)
diff --git a/src/Custom/Chat/Messages/ChatMessage.cs b/src/Custom/Chat/Messages/ChatMessage.cs
index d998db46a..5e61093e7 100644
--- a/src/Custom/Chat/Messages/ChatMessage.cs
+++ b/src/Custom/Chat/Messages/ChatMessage.cs
@@ -69,7 +69,7 @@ public partial class ChatMessage
// CUSTOM: Made internal.
internal ChatMessage(ChatMessageRole role)
- : this(null, role, null)
+ : this(content: null, role: role, additionalBinaryDataProperties: null)
{ }
#region SystemChatMessage
diff --git a/src/Custom/Chat/Messages/DeveloperChatMessage.cs b/src/Custom/Chat/Messages/DeveloperChatMessage.cs
index c48d8fd1c..39ee4003b 100644
--- a/src/Custom/Chat/Messages/DeveloperChatMessage.cs
+++ b/src/Custom/Chat/Messages/DeveloperChatMessage.cs
@@ -23,7 +23,7 @@ public partial class DeveloperChatMessage : ChatMessage
/// The collection of content items associated with the message.
///
public DeveloperChatMessage(IEnumerable contentParts)
- : this(new ChatMessageContent(contentParts), ChatMessageRole.Developer, null, null)
+ : this(content: new ChatMessageContent(contentParts), role: ChatMessageRole.Developer, participantName: null, additionalBinaryDataProperties: null)
{ }
///
@@ -34,7 +34,7 @@ public DeveloperChatMessage(IEnumerable contentParts)
/// The collection of content items associated with the message.
///
public DeveloperChatMessage(params ChatMessageContentPart[] contentParts)
- : this(new ChatMessageContent(contentParts), ChatMessageRole.Developer, null, null)
+ : this(content: new ChatMessageContent(contentParts), role: ChatMessageRole.Developer, participantName: null, additionalBinaryDataProperties: null)
{
Argument.AssertNotNullOrEmpty(contentParts, nameof(contentParts));
}
@@ -44,7 +44,7 @@ public DeveloperChatMessage(params ChatMessageContentPart[] contentParts)
///
/// The text content of the message.
public DeveloperChatMessage(string content)
- : this(new ChatMessageContent([content]), ChatMessageRole.Developer, null, null)
+ : this(content: new ChatMessageContent([content]), role: ChatMessageRole.Developer, participantName: null, additionalBinaryDataProperties: null)
{
Argument.AssertNotNull(content, nameof(content));
}
diff --git a/src/Custom/Chat/Messages/FunctionChatMessage.cs b/src/Custom/Chat/Messages/FunctionChatMessage.cs
index 4448b00de..883180718 100644
--- a/src/Custom/Chat/Messages/FunctionChatMessage.cs
+++ b/src/Custom/Chat/Messages/FunctionChatMessage.cs
@@ -25,7 +25,7 @@ public partial class FunctionChatMessage : ChatMessage
/// restriction (e.g. JSON) imposed on this content.
///
public FunctionChatMessage(string functionName, string content)
- : this(content is null ? null : new ChatMessageContent([content]), ChatMessageRole.Function, null, functionName)
+ : this(content: content is null ? null : new ChatMessageContent([content]), role: ChatMessageRole.Function, additionalBinaryDataProperties: null, functionName: functionName)
{
Argument.AssertNotNull(functionName, nameof(functionName));
diff --git a/src/Custom/Chat/Messages/SystemChatMessage.cs b/src/Custom/Chat/Messages/SystemChatMessage.cs
index 2b1bbd629..8223ac55e 100644
--- a/src/Custom/Chat/Messages/SystemChatMessage.cs
+++ b/src/Custom/Chat/Messages/SystemChatMessage.cs
@@ -21,7 +21,7 @@ public partial class SystemChatMessage : ChatMessage
/// The collection of content items associated with the message.
///
public SystemChatMessage(IEnumerable contentParts)
- : this(new(contentParts), ChatMessageRole.System, null, null)
+ : this(content: new(contentParts), role: ChatMessageRole.System, participantName: null, additionalBinaryDataProperties: null)
{ }
///
@@ -32,7 +32,7 @@ public SystemChatMessage(IEnumerable contentParts)
/// The collection of content items associated with the message.
///
public SystemChatMessage(params ChatMessageContentPart[] contentParts)
- : this(new(contentParts), ChatMessageRole.System, null, null)
+ : this(content: new(contentParts), role: ChatMessageRole.System, participantName: null, additionalBinaryDataProperties: null)
{
Argument.AssertNotNullOrEmpty(contentParts, nameof(contentParts));
}
@@ -42,7 +42,7 @@ public SystemChatMessage(params ChatMessageContentPart[] contentParts)
///
/// The text content of the message.
public SystemChatMessage(string content)
- : this(new([content]), ChatMessageRole.System, null, null)
+ : this(content: new([content]), role: ChatMessageRole.System, participantName: null, additionalBinaryDataProperties: null)
{
Argument.AssertNotNull(content, nameof(content));
}
diff --git a/src/Custom/Chat/Messages/ToolChatMessage.cs b/src/Custom/Chat/Messages/ToolChatMessage.cs
index 8d6c13500..bcb9aa2c1 100644
--- a/src/Custom/Chat/Messages/ToolChatMessage.cs
+++ b/src/Custom/Chat/Messages/ToolChatMessage.cs
@@ -35,7 +35,7 @@ public partial class ToolChatMessage : ChatMessage
/// The collection of content items associated with the message.
///
public ToolChatMessage(string toolCallId, IEnumerable contentParts)
- : this(new(contentParts), ChatMessageRole.Tool, null, toolCallId)
+ : this(content: new(contentParts), role: ChatMessageRole.Tool, additionalBinaryDataProperties: null, toolCallId: toolCallId)
{
Argument.AssertNotNull(toolCallId, nameof(toolCallId));
Argument.AssertNotNullOrEmpty(contentParts, nameof(contentParts));
@@ -52,7 +52,7 @@ public ToolChatMessage(string toolCallId, IEnumerable co
/// The collection of content items associated with the message.
///
public ToolChatMessage(string toolCallId, params ChatMessageContentPart[] contentParts)
- : this(new(contentParts), ChatMessageRole.Tool, null, toolCallId)
+ : this(content: new(contentParts), role: ChatMessageRole.Tool, additionalBinaryDataProperties: null, toolCallId: toolCallId)
{
Argument.AssertNotNull(toolCallId, nameof(toolCallId));
Argument.AssertNotNullOrEmpty(contentParts, nameof(contentParts));
@@ -66,7 +66,7 @@ public ToolChatMessage(string toolCallId, params ChatMessageContentPart[] conten
///
/// The text content of the message.
public ToolChatMessage(string toolCallId, string content)
- : this(new([content]), ChatMessageRole.Tool, null, toolCallId)
+ : this(content: new([content]), role: ChatMessageRole.Tool, additionalBinaryDataProperties: null, toolCallId: toolCallId)
{
Argument.AssertNotNull(toolCallId, nameof(toolCallId));
Argument.AssertNotNull(content, nameof(content));
diff --git a/src/Custom/Chat/Messages/UserChatMessage.cs b/src/Custom/Chat/Messages/UserChatMessage.cs
index 18f49fd40..25e564d58 100644
--- a/src/Custom/Chat/Messages/UserChatMessage.cs
+++ b/src/Custom/Chat/Messages/UserChatMessage.cs
@@ -22,7 +22,7 @@ public partial class UserChatMessage : ChatMessage
/// The collection of text and image content items associated with the message.
///
public UserChatMessage(IEnumerable contentParts)
- : this(new(contentParts), ChatMessageRole.User, null, null)
+ : this(content: new(contentParts), role: ChatMessageRole.User, participantName: null, additionalBinaryDataProperties: null)
{
Argument.AssertNotNullOrEmpty(contentParts, nameof(contentParts));
}
@@ -36,7 +36,7 @@ public UserChatMessage(IEnumerable contentParts)
/// The collection of text and image content items associated with the message.
///
public UserChatMessage(params ChatMessageContentPart[] contentParts)
- : this(new(contentParts), ChatMessageRole.User, null, null)
+ : this(content: new(contentParts), role: ChatMessageRole.User, participantName: null, additionalBinaryDataProperties: null)
{ }
///
@@ -44,7 +44,7 @@ public UserChatMessage(params ChatMessageContentPart[] contentParts)
///
/// The textual content associated with the message.
public UserChatMessage(string content)
- : this(new([content]), ChatMessageRole.User, null, null)
+ : this(content: new([content]), role: ChatMessageRole.User, participantName: null, additionalBinaryDataProperties: null)
{
Argument.AssertNotNull(content, nameof(content));
}
diff --git a/src/Custom/Chat/OpenAIChatModelFactory.cs b/src/Custom/Chat/OpenAIChatModelFactory.cs
index 6213fab60..8a7110b91 100644
--- a/src/Custom/Chat/OpenAIChatModelFactory.cs
+++ b/src/Custom/Chat/OpenAIChatModelFactory.cs
@@ -70,13 +70,13 @@ public static ChatCompletion ChatCompletion(
messageAnnotations ??= new List();
InternalChatCompletionResponseMessage message = new(
- refusal,
- toolCalls.ToList(),
- messageAnnotations.ToList(),
- outputAudio,
- role,
- content,
- functionCall,
+ refusal: refusal,
+ toolCalls: toolCalls.ToList(),
+ annotations: messageAnnotations.ToList(),
+ audio: outputAudio,
+ role: role,
+ content: content,
+ functionCall: functionCall,
additionalBinaryDataProperties: null);
InternalCreateChatCompletionResponseChoiceLogprobs logprobs = new InternalCreateChatCompletionResponseChoiceLogprobs(
@@ -94,14 +94,14 @@ public static ChatCompletion ChatCompletion(
];
return new ChatCompletion(
- id,
- model,
- serviceTier,
- systemFingerprint,
- usage,
- "chat.completion",
- choices,
- createdAt,
+ id: id,
+ model: model,
+ serviceTier: serviceTier,
+ systemFingerprint: systemFingerprint,
+ usage: usage,
+ @object: "chat.completion",
+ choices: choices,
+ createdAt: createdAt,
additionalBinaryDataProperties: null);
}
@@ -222,10 +222,10 @@ public static ChatOutputTokenUsageDetails ChatOutputTokenUsageDetails(int reason
public static ChatOutputAudio ChatOutputAudio(BinaryData audioBytes, string id = null, string transcript = null, DateTimeOffset expiresAt = default)
{
return new ChatOutputAudio(
- id,
- expiresAt,
- transcript,
- audioBytes,
+ id: id,
+ expiresAt: expiresAt,
+ transcript: transcript,
+ audioBytes: audioBytes,
additionalBinaryDataProperties: null);
}
@@ -288,12 +288,12 @@ public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(
refusalTokenLogProbabilities ??= new List();
InternalChatCompletionStreamResponseDelta delta = new InternalChatCompletionStreamResponseDelta(
- outputAudioUpdate,
- functionCallUpdate,
- toolCallUpdates.ToList(),
- refusalUpdate,
- role,
- contentUpdate,
+ audio: outputAudioUpdate,
+ functionCall: functionCallUpdate,
+ toolCalls: toolCallUpdates.ToList(),
+ refusal: refusalUpdate,
+ role: role,
+ content: contentUpdate,
additionalBinaryDataProperties: null);
InternalCreateChatCompletionStreamResponseChoiceLogprobs logprobs = new InternalCreateChatCompletionStreamResponseChoiceLogprobs(
@@ -303,22 +303,22 @@ public static StreamingChatCompletionUpdate StreamingChatCompletionUpdate(
IReadOnlyList choices = [
new InternalCreateChatCompletionStreamResponseChoice(
- delta,
- logprobs,
+ delta: delta,
+ logprobs: logprobs,
index: 0,
- finishReason,
+ finishReason: finishReason,
additionalBinaryDataProperties: null)
];
return new StreamingChatCompletionUpdate(
- model,
- serviceTier,
- systemFingerprint,
- "chat.completion.chunk",
- completionId,
- choices,
- createdAt,
- usage,
+ model: model,
+ serviceTier: serviceTier,
+ systemFingerprint: systemFingerprint,
+ @object: "chat.completion.chunk",
+ completionId: completionId,
+ choices: choices,
+ createdAt: createdAt,
+ usage: usage,
additionalBinaryDataProperties: null);
}
@@ -349,10 +349,10 @@ public static StreamingChatOutputAudioUpdate StreamingChatOutputAudioUpdate(
BinaryData audioBytesUpdate = null)
{
return new StreamingChatOutputAudioUpdate(
- id,
- expiresAt,
- transcriptUpdate,
- audioBytesUpdate,
+ id: id,
+ expiresAt: expiresAt,
+ transcriptUpdate: transcriptUpdate,
+ audioBytesUpdate: audioBytesUpdate,
additionalBinaryDataProperties: null);
}
@@ -366,10 +366,10 @@ public static StreamingChatToolCallUpdate StreamingChatToolCallUpdate(int index
additionalBinaryDataProperties: null);
return new StreamingChatToolCallUpdate(
- index,
- function,
- kind,
- toolCallId,
+ index: index,
+ function: function,
+ kind: kind,
+ toolCallId: toolCallId,
additionalBinaryDataProperties: null);
}
}
diff --git a/src/Custom/Chat/Streaming/InternalCreateChatCompletionStreamResponseChoice.Serialization.cs b/src/Custom/Chat/Streaming/InternalCreateChatCompletionStreamResponseChoice.Serialization.cs
index 5d3b87e63..6e0443df8 100644
--- a/src/Custom/Chat/Streaming/InternalCreateChatCompletionStreamResponseChoice.Serialization.cs
+++ b/src/Custom/Chat/Streaming/InternalCreateChatCompletionStreamResponseChoice.Serialization.cs
@@ -100,6 +100,6 @@ internal static InternalCreateChatCompletionStreamResponseChoice DeserializeInte
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new InternalCreateChatCompletionStreamResponseChoice(delta, logprobs, index, finishReason, serializedAdditionalRawData);
+ return new InternalCreateChatCompletionStreamResponseChoice(delta: delta, logprobs: logprobs, index: index, finishReason: finishReason, additionalBinaryDataProperties: serializedAdditionalRawData);
}
}
diff --git a/src/Custom/Embeddings/OpenAIEmbeddingCollection.cs b/src/Custom/Embeddings/OpenAIEmbeddingCollection.cs
index b81dec23c..dd5e7e6c5 100644
--- a/src/Custom/Embeddings/OpenAIEmbeddingCollection.cs
+++ b/src/Custom/Embeddings/OpenAIEmbeddingCollection.cs
@@ -11,7 +11,7 @@ namespace OpenAI.Embeddings;
[CodeGenSuppress("Data")]
[CodeGenSuppress(nameof(OpenAIEmbeddingCollection))]
[CodeGenSuppress(nameof(OpenAIEmbeddingCollection), typeof(string), typeof(EmbeddingTokenUsage))]
-[CodeGenSuppress(nameof(OpenAIEmbeddingCollection), typeof(string), typeof(EmbeddingTokenUsage), typeof(string), typeof(IDictionary))]
+[CodeGenSuppress(nameof(OpenAIEmbeddingCollection), typeof(string), typeof(string), typeof(EmbeddingTokenUsage), typeof(IDictionary))]
public partial class OpenAIEmbeddingCollection : ReadOnlyCollection
{
// CUSTOM: Made private. This property does not add value in the context of a strongly-typed class.
diff --git a/src/Custom/Files/OpenAIFilesModelFactory.cs b/src/Custom/Files/OpenAIFilesModelFactory.cs
index e26c9bd01..8a8142636 100644
--- a/src/Custom/Files/OpenAIFilesModelFactory.cs
+++ b/src/Custom/Files/OpenAIFilesModelFactory.cs
@@ -14,9 +14,9 @@ public static partial class OpenAIFilesModelFactory
public static FileDeletionResult FileDeletionResult(string fileId = null, bool deleted = default)
{
return new FileDeletionResult(
- deleted,
- fileId,
- "file",
+ deleted: deleted,
+ fileId: fileId,
+ @object: "file",
additionalBinaryDataProperties: null);
}
diff --git a/src/Custom/Images/GeneratedImageCollection.cs b/src/Custom/Images/GeneratedImageCollection.cs
index edcbb08ab..01fb52dbf 100644
--- a/src/Custom/Images/GeneratedImageCollection.cs
+++ b/src/Custom/Images/GeneratedImageCollection.cs
@@ -21,7 +21,7 @@ public partial class GeneratedImageCollection : ReadOnlyCollection
///
/// Keeps track of any properties unknown to the library.
- internal GeneratedImageCollection(IList data, ImageTokenUsage usage, DateTimeOffset createdAt, IDictionary additionalBinaryDataProperties)
+ internal GeneratedImageCollection(DateTimeOffset createdAt, IList data, ImageTokenUsage usage, IDictionary additionalBinaryDataProperties)
: base([.. data])
{
Usage = usage;
diff --git a/src/Custom/Images/OpenAIImagesModelFactory.cs b/src/Custom/Images/OpenAIImagesModelFactory.cs
index 8affa16df..30a7b2a77 100644
--- a/src/Custom/Images/OpenAIImagesModelFactory.cs
+++ b/src/Custom/Images/OpenAIImagesModelFactory.cs
@@ -14,9 +14,9 @@ public static partial class OpenAIImagesModelFactory
public static GeneratedImage GeneratedImage(BinaryData imageBytes = null, Uri imageUri = null, string revisedPrompt = null)
{
return new GeneratedImage(
- revisedPrompt,
- imageBytes,
- imageUri,
+ revisedPrompt: revisedPrompt,
+ imageBytes: imageBytes,
+ imageUri: imageUri,
additionalBinaryDataProperties: null);
}
@@ -34,9 +34,9 @@ public static GeneratedImageCollection GeneratedImageCollection(DateTimeOffset c
items ??= new List();
return new GeneratedImageCollection(
- items.ToList(),
- usage,
- createdAt,
+ data: items.ToList(),
+ usage: usage,
+ createdAt: createdAt,
additionalBinaryDataProperties: null);
}
}
diff --git a/src/Custom/Models/OpenAIModelsModelFactory.cs b/src/Custom/Models/OpenAIModelsModelFactory.cs
index a9cf4b0d9..0fc1800b5 100644
--- a/src/Custom/Models/OpenAIModelsModelFactory.cs
+++ b/src/Custom/Models/OpenAIModelsModelFactory.cs
@@ -12,9 +12,9 @@ public static partial class OpenAIModelsModelFactory
public static ModelDeletionResult ModelDeletionResult(string modelId = null, bool deleted = default)
{
return new ModelDeletionResult(
- deleted,
- modelId,
- "model",
+ deleted: deleted,
+ modelId: modelId,
+ @object: "model",
additionalBinaryDataProperties: null);
}
@@ -23,10 +23,10 @@ public static ModelDeletionResult ModelDeletionResult(string modelId = null, boo
public static OpenAIModel OpenAIModel(string id = null, DateTimeOffset createdAt = default, string ownedBy = null)
{
return new OpenAIModel(
- id,
- ownedBy,
- "model",
- createdAt,
+ id: id,
+ ownedBy: ownedBy,
+ @object: "model",
+ createdAt: createdAt,
additionalBinaryDataProperties: null);
}
diff --git a/src/Custom/Responses/Items/ResponseItem.cs b/src/Custom/Responses/Items/ResponseItem.cs
index f1e1cf0b5..76c582376 100644
--- a/src/Custom/Responses/Items/ResponseItem.cs
+++ b/src/Custom/Responses/Items/ResponseItem.cs
@@ -65,7 +65,7 @@ public static MessageResponseItem CreateAssistantMessageItem(string outputTextCo
return new InternalResponsesAssistantMessage(
internalContent:
[
- new InternalItemContentOutputText(annotations ?? [], outputTextContent),
+ new InternalItemContentOutputText(outputTextContent, annotations ?? []),
]);
}
diff --git a/src/Custom/Responses/OpenAIResponsesModelFactory.cs b/src/Custom/Responses/OpenAIResponsesModelFactory.cs
index 22a793aea..7c2b2c819 100644
--- a/src/Custom/Responses/OpenAIResponsesModelFactory.cs
+++ b/src/Custom/Responses/OpenAIResponsesModelFactory.cs
@@ -41,31 +41,31 @@ public static OpenAIResponse OpenAIResponse(
metadata ??= new Dictionary();
return new OpenAIResponse(
- metadata: metadata,
- temperature: temperature,
- topP: topP,
- serviceTier,
- previousResponseId: previousResponseId,
- background: background,
- instructions: instructions,
- tools: tools.ToList(),
- id: id,
- status: status,
- createdAt: createdAt,
- error: error,
- usage: usage,
- endUserId: endUserId,
- reasoningOptions: reasoningOptions,
- maxOutputTokenCount: maxOutputTokenCount,
- textOptions: textOptions,
- truncationMode: truncationMode,
- incompleteStatusDetails: incompleteStatusDetails,
- outputItems: outputItems.ToList(),
- parallelToolCallsEnabled: parallelToolCallsEnabled,
- toolChoice: toolChoice,
- model: model,
- @object: "response",
- additionalBinaryDataProperties: null);
+ metadata: metadata,
+ temperature: temperature,
+ topP: topP,
+ serviceTier: serviceTier,
+ previousResponseId: previousResponseId,
+ background: background,
+ instructions: instructions,
+ tools: tools.ToList(),
+ id: id,
+ status: status,
+ createdAt: createdAt,
+ error: error,
+ usage: usage,
+ endUserId: endUserId,
+ reasoningOptions: reasoningOptions,
+ maxOutputTokenCount: maxOutputTokenCount,
+ textOptions: textOptions,
+ truncationMode: truncationMode,
+ incompleteStatusDetails: incompleteStatusDetails,
+ outputItems: outputItems.ToList(),
+ parallelToolCallsEnabled: parallelToolCallsEnabled,
+ toolChoice: toolChoice,
+ model: model,
+ @object: "response",
+ additionalBinaryDataProperties: null);
}
/// Initializes a new instance of .
diff --git a/src/Custom/Responses/ResponseContentPart.cs b/src/Custom/Responses/ResponseContentPart.cs
index fd5835d15..14ca0a9a9 100644
--- a/src/Custom/Responses/ResponseContentPart.cs
+++ b/src/Custom/Responses/ResponseContentPart.cs
@@ -94,7 +94,7 @@ public static ResponseContentPart CreateInputFilePart(BinaryData fileBytes, stri
public static ResponseContentPart CreateOutputTextPart(string text, IEnumerable annotations)
{
- return new InternalItemContentOutputText(annotations, text);
+ return new InternalItemContentOutputText(text, annotations);
}
public static ResponseContentPart CreateRefusalPart(string refusal)
diff --git a/src/Custom/Responses/Tools/ResponseTool.cs b/src/Custom/Responses/Tools/ResponseTool.cs
index b19dff47e..758b8a372 100644
--- a/src/Custom/Responses/Tools/ResponseTool.cs
+++ b/src/Custom/Responses/Tools/ResponseTool.cs
@@ -13,7 +13,7 @@ public partial class ResponseTool
{
public static ResponseTool CreateFunctionTool(string functionName, string functionDescription, BinaryData functionParameters, bool functionSchemaIsStrict = false)
{
- return new InternalFunctionTool(functionName, functionSchemaIsStrict, functionParameters)
+ return new InternalFunctionTool(functionName, functionParameters, functionSchemaIsStrict)
{
Description = functionDescription
};
diff --git a/src/Custom/VectorStores/VectorStoreExpirationPolicy.cs b/src/Custom/VectorStores/VectorStoreExpirationPolicy.cs
index 132704c94..cb7477c5f 100644
--- a/src/Custom/VectorStores/VectorStoreExpirationPolicy.cs
+++ b/src/Custom/VectorStores/VectorStoreExpirationPolicy.cs
@@ -16,7 +16,7 @@ public partial class VectorStoreExpirationPolicy
public VectorStoreExpirationAnchor Anchor { get; set; } = VectorStoreExpirationAnchor.LastActiveAt;
public VectorStoreExpirationPolicy(VectorStoreExpirationAnchor anchor, int days)
- : this(days, anchor, null)
+ : this(days: days, anchor: anchor, additionalBinaryDataProperties: null)
{
}
}
diff --git a/src/Generated/Internal/ModelSerializationExtensions.cs b/src/Generated/Internal/ModelSerializationExtensions.cs
index 50a860ac2..aa688353a 100644
--- a/src/Generated/Internal/ModelSerializationExtensions.cs
+++ b/src/Generated/Internal/ModelSerializationExtensions.cs
@@ -14,6 +14,10 @@ namespace OpenAI
internal static partial class ModelSerializationExtensions
{
internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W");
+ internal static readonly JsonDocumentOptions JsonDocumentOptions = new JsonDocumentOptions
+ {
+ MaxDepth = 256
+ };
private static readonly BinaryData _sentinelValue = BinaryData.FromBytes("\"__EMPTY__\""u8.ToArray());
public static object GetObject(this JsonElement element)
diff --git a/src/Generated/Models/Assistants/Assistant.Serialization.cs b/src/Generated/Models/Assistants/Assistant.Serialization.cs
index 0f816396c..eed6ffb4e 100644
--- a/src/Generated/Models/Assistants/Assistant.Serialization.cs
+++ b/src/Generated/Models/Assistants/Assistant.Serialization.cs
@@ -13,7 +13,7 @@ namespace OpenAI.Assistants
{
public partial class Assistant : IJsonModel
{
- internal Assistant() : this(null, default, null, null, null, null, null, null, null, default, null, null, default, null)
+ internal Assistant() : this(null, null, default, null, null, null, null, null, null, null, default, default, null, null)
{
}
@@ -36,6 +36,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("id"u8);
writer.WriteStringValue(Id);
}
+ if (_additionalBinaryDataProperties?.ContainsKey("object") != true)
+ {
+ writer.WritePropertyName("object"u8);
+ writer.WriteStringValue(Object);
+ }
if (_additionalBinaryDataProperties?.ContainsKey("created_at") != true)
{
writer.WritePropertyName("created_at"u8);
@@ -120,21 +125,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("temperature"u8);
writer.WriteNumberValue(Temperature.Value);
}
- if (_additionalBinaryDataProperties?.ContainsKey("object") != true)
+ if (Optional.IsDefined(NucleusSamplingFactor) && _additionalBinaryDataProperties?.ContainsKey("top_p") != true)
{
- writer.WritePropertyName("object"u8);
- writer.WriteStringValue(Object);
+ writer.WritePropertyName("top_p"u8);
+ writer.WriteNumberValue(NucleusSamplingFactor.Value);
}
if (Optional.IsDefined(ResponseFormat) && _additionalBinaryDataProperties?.ContainsKey("response_format") != true)
{
writer.WritePropertyName("response_format"u8);
writer.WriteObjectValue(ResponseFormat, options);
}
- if (Optional.IsDefined(NucleusSamplingFactor) && _additionalBinaryDataProperties?.ContainsKey("top_p") != true)
- {
- writer.WritePropertyName("top_p"u8);
- writer.WriteNumberValue(NucleusSamplingFactor.Value);
- }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -177,6 +177,7 @@ internal static Assistant DeserializeAssistant(JsonElement element, ModelReaderW
return null;
}
string id = default;
+ string @object = default;
DateTimeOffset createdAt = default;
string name = default;
string description = default;
@@ -186,9 +187,8 @@ internal static Assistant DeserializeAssistant(JsonElement element, ModelReaderW
ToolResources toolResources = default;
IReadOnlyDictionary metadata = default;
float? temperature = default;
- string @object = default;
- AssistantResponseFormat responseFormat = default;
float? nucleusSamplingFactor = default;
+ AssistantResponseFormat responseFormat = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
@@ -197,6 +197,11 @@ internal static Assistant DeserializeAssistant(JsonElement element, ModelReaderW
id = prop.Value.GetString();
continue;
}
+ if (prop.NameEquals("object"u8))
+ {
+ @object = prop.Value.GetString();
+ continue;
+ }
if (prop.NameEquals("created_at"u8))
{
createdAt = DateTimeOffset.FromUnixTimeSeconds(prop.Value.GetInt64());
@@ -289,29 +294,24 @@ internal static Assistant DeserializeAssistant(JsonElement element, ModelReaderW
temperature = prop.Value.GetSingle();
continue;
}
- if (prop.NameEquals("object"u8))
- {
- @object = prop.Value.GetString();
- continue;
- }
- if (prop.NameEquals("response_format"u8))
+ if (prop.NameEquals("top_p"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- responseFormat = null;
+ nucleusSamplingFactor = null;
continue;
}
- responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(prop.Value, options);
+ nucleusSamplingFactor = prop.Value.GetSingle();
continue;
}
- if (prop.NameEquals("top_p"u8))
+ if (prop.NameEquals("response_format"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- nucleusSamplingFactor = null;
+ responseFormat = null;
continue;
}
- nucleusSamplingFactor = prop.Value.GetSingle();
+ responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(prop.Value, options);
continue;
}
// Plugin customization: remove options.Format != "W" check
@@ -319,6 +319,7 @@ internal static Assistant DeserializeAssistant(JsonElement element, ModelReaderW
}
return new Assistant(
id,
+ @object,
createdAt,
name,
description,
@@ -328,9 +329,8 @@ internal static Assistant DeserializeAssistant(JsonElement element, ModelReaderW
toolResources,
metadata,
temperature,
- @object,
- responseFormat,
nucleusSamplingFactor,
+ responseFormat,
additionalBinaryDataProperties);
}
diff --git a/src/Generated/Models/Assistants/Assistant.cs b/src/Generated/Models/Assistants/Assistant.cs
index decd4dc11..e92795ec5 100644
--- a/src/Generated/Models/Assistants/Assistant.cs
+++ b/src/Generated/Models/Assistants/Assistant.cs
@@ -26,10 +26,11 @@ internal Assistant(string id, DateTimeOffset createdAt, string name, string desc
Metadata = new ChangeTrackingDictionary();
}
- internal Assistant(string id, DateTimeOffset createdAt, string name, string description, string model, string instructions, IReadOnlyList tools, ToolResources toolResources, IReadOnlyDictionary metadata, float? temperature, string @object, AssistantResponseFormat responseFormat, float? nucleusSamplingFactor, IDictionary additionalBinaryDataProperties)
+ internal Assistant(string id, string @object, DateTimeOffset createdAt, string name, string description, string model, string instructions, IReadOnlyList tools, ToolResources toolResources, IReadOnlyDictionary metadata, float? temperature, float? nucleusSamplingFactor, AssistantResponseFormat responseFormat, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
Id = id;
+ Object = @object;
CreatedAt = createdAt;
Name = name;
Description = description;
@@ -39,9 +40,8 @@ internal Assistant(string id, DateTimeOffset createdAt, string name, string desc
ToolResources = toolResources;
Metadata = metadata ?? new ChangeTrackingDictionary();
Temperature = temperature;
- Object = @object;
- ResponseFormat = responseFormat;
NucleusSamplingFactor = nucleusSamplingFactor;
+ ResponseFormat = responseFormat;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/AssistantCreationOptions.Serialization.cs b/src/Generated/Models/Assistants/AssistantCreationOptions.Serialization.cs
index 9384c03d8..69ec65b58 100644
--- a/src/Generated/Models/Assistants/AssistantCreationOptions.Serialization.cs
+++ b/src/Generated/Models/Assistants/AssistantCreationOptions.Serialization.cs
@@ -13,7 +13,7 @@ namespace OpenAI.Assistants
{
public partial class AssistantCreationOptions : IJsonModel
{
- public AssistantCreationOptions() : this(null, null, null, null, default, null, null, null, null, default, default, null)
+ public AssistantCreationOptions() : this(null, null, null, null, default, null, null, null, default, default, null, null)
{
}
@@ -31,6 +31,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(AssistantCreationOptions)} does not support writing '{format}' format.");
}
+ if (_additionalBinaryDataProperties?.ContainsKey("model") != true)
+ {
+ writer.WritePropertyName("model"u8);
+ writer.WriteStringValue(Model);
+ }
if (Optional.IsDefined(Name) && _additionalBinaryDataProperties?.ContainsKey("name") != true)
{
writer.WritePropertyName("name"u8);
@@ -46,6 +51,26 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("instructions"u8);
writer.WriteStringValue(Instructions);
}
+ if (Optional.IsDefined(ReasoningEffortLevel) && _additionalBinaryDataProperties?.ContainsKey("reasoning_effort") != true)
+ {
+ writer.WritePropertyName("reasoning_effort"u8);
+ writer.WriteStringValue(ReasoningEffortLevel.Value.ToString());
+ }
+ if (Optional.IsCollectionDefined(Tools) && _additionalBinaryDataProperties?.ContainsKey("tools") != true)
+ {
+ writer.WritePropertyName("tools"u8);
+ writer.WriteStartArray();
+ foreach (ToolDefinition item in Tools)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(ToolResources) && _additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
+ {
+ writer.WritePropertyName("tool_resources"u8);
+ writer.WriteObjectValue(ToolResources, options);
+ }
if (Optional.IsCollectionDefined(Metadata) && _additionalBinaryDataProperties?.ContainsKey("metadata") != true)
{
writer.WritePropertyName("metadata"u8);
@@ -67,40 +92,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("temperature"u8);
writer.WriteNumberValue(Temperature.Value);
}
- if (_additionalBinaryDataProperties?.ContainsKey("model") != true)
- {
- writer.WritePropertyName("model"u8);
- writer.WriteStringValue(Model);
- }
- if (Optional.IsCollectionDefined(Tools) && _additionalBinaryDataProperties?.ContainsKey("tools") != true)
- {
- writer.WritePropertyName("tools"u8);
- writer.WriteStartArray();
- foreach (ToolDefinition item in Tools)
- {
- writer.WriteObjectValue(item, options);
- }
- writer.WriteEndArray();
- }
- if (Optional.IsDefined(ToolResources) && _additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
- {
- writer.WritePropertyName("tool_resources"u8);
- writer.WriteObjectValue(ToolResources, options);
- }
- if (Optional.IsDefined(ResponseFormat) && _additionalBinaryDataProperties?.ContainsKey("response_format") != true)
- {
- writer.WritePropertyName("response_format"u8);
- writer.WriteObjectValue(ResponseFormat, options);
- }
if (Optional.IsDefined(NucleusSamplingFactor) && _additionalBinaryDataProperties?.ContainsKey("top_p") != true)
{
writer.WritePropertyName("top_p"u8);
writer.WriteNumberValue(NucleusSamplingFactor.Value);
}
- if (Optional.IsDefined(ReasoningEffortLevel) && _additionalBinaryDataProperties?.ContainsKey("reasoning_effort") != true)
+ if (Optional.IsDefined(ResponseFormat) && _additionalBinaryDataProperties?.ContainsKey("response_format") != true)
{
- writer.WritePropertyName("reasoning_effort"u8);
- writer.WriteStringValue(ReasoningEffortLevel.Value.ToString());
+ writer.WritePropertyName("response_format"u8);
+ writer.WriteObjectValue(ResponseFormat, options);
}
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
@@ -143,20 +143,25 @@ internal static AssistantCreationOptions DeserializeAssistantCreationOptions(Jso
{
return null;
}
+ string model = default;
string name = default;
string description = default;
string instructions = default;
- IDictionary metadata = default;
- float? temperature = default;
- string model = default;
+ ChatReasoningEffortLevel? reasoningEffortLevel = default;
IList tools = default;
ToolResources toolResources = default;
- AssistantResponseFormat responseFormat = default;
+ IDictionary metadata = default;
+ float? temperature = default;
float? nucleusSamplingFactor = default;
- ChatReasoningEffortLevel? reasoningEffortLevel = default;
+ AssistantResponseFormat responseFormat = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
+ if (prop.NameEquals("model"u8))
+ {
+ model = prop.Value.GetString();
+ continue;
+ }
if (prop.NameEquals("name"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
@@ -187,40 +192,14 @@ internal static AssistantCreationOptions DeserializeAssistantCreationOptions(Jso
instructions = prop.Value.GetString();
continue;
}
- if (prop.NameEquals("metadata"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var prop0 in prop.Value.EnumerateObject())
- {
- if (prop0.Value.ValueKind == JsonValueKind.Null)
- {
- dictionary.Add(prop0.Name, null);
- }
- else
- {
- dictionary.Add(prop0.Name, prop0.Value.GetString());
- }
- }
- metadata = dictionary;
- continue;
- }
- if (prop.NameEquals("temperature"u8))
+ if (prop.NameEquals("reasoning_effort"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- temperature = null;
+ reasoningEffortLevel = null;
continue;
}
- temperature = prop.Value.GetSingle();
- continue;
- }
- if (prop.NameEquals("model"u8))
- {
- model = prop.Value.GetString();
+ reasoningEffortLevel = new ChatReasoningEffortLevel(prop.Value.GetString());
continue;
}
if (prop.NameEquals("tools"u8))
@@ -247,14 +226,35 @@ internal static AssistantCreationOptions DeserializeAssistantCreationOptions(Jso
toolResources = ToolResources.DeserializeToolResources(prop.Value, options);
continue;
}
- if (prop.NameEquals("response_format"u8))
+ if (prop.NameEquals("metadata"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- responseFormat = null;
continue;
}
- responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(prop.Value, options);
+ Dictionary dictionary = new Dictionary();
+ foreach (var prop0 in prop.Value.EnumerateObject())
+ {
+ if (prop0.Value.ValueKind == JsonValueKind.Null)
+ {
+ dictionary.Add(prop0.Name, null);
+ }
+ else
+ {
+ dictionary.Add(prop0.Name, prop0.Value.GetString());
+ }
+ }
+ metadata = dictionary;
+ continue;
+ }
+ if (prop.NameEquals("temperature"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ temperature = null;
+ continue;
+ }
+ temperature = prop.Value.GetSingle();
continue;
}
if (prop.NameEquals("top_p"u8))
@@ -267,31 +267,31 @@ internal static AssistantCreationOptions DeserializeAssistantCreationOptions(Jso
nucleusSamplingFactor = prop.Value.GetSingle();
continue;
}
- if (prop.NameEquals("reasoning_effort"u8))
+ if (prop.NameEquals("response_format"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- reasoningEffortLevel = null;
+ responseFormat = null;
continue;
}
- reasoningEffortLevel = new ChatReasoningEffortLevel(prop.Value.GetString());
+ responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(prop.Value, options);
continue;
}
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
return new AssistantCreationOptions(
+ model,
name,
description,
instructions,
- metadata ?? new ChangeTrackingDictionary(),
- temperature,
- model,
+ reasoningEffortLevel,
tools ?? new ChangeTrackingList(),
toolResources,
- responseFormat,
+ metadata ?? new ChangeTrackingDictionary(),
+ temperature,
nucleusSamplingFactor,
- reasoningEffortLevel,
+ responseFormat,
additionalBinaryDataProperties);
}
diff --git a/src/Generated/Models/Assistants/AssistantCreationOptions.cs b/src/Generated/Models/Assistants/AssistantCreationOptions.cs
index 3f09ee606..7e68d4dde 100644
--- a/src/Generated/Models/Assistants/AssistantCreationOptions.cs
+++ b/src/Generated/Models/Assistants/AssistantCreationOptions.cs
@@ -15,20 +15,20 @@ public partial class AssistantCreationOptions
{
private protected IDictionary _additionalBinaryDataProperties;
- internal AssistantCreationOptions(string name, string description, string instructions, IDictionary metadata, float? temperature, string model, IList tools, ToolResources toolResources, AssistantResponseFormat responseFormat, float? nucleusSamplingFactor, ChatReasoningEffortLevel? reasoningEffortLevel, IDictionary additionalBinaryDataProperties)
+ internal AssistantCreationOptions(string model, string name, string description, string instructions, ChatReasoningEffortLevel? reasoningEffortLevel, IList tools, ToolResources toolResources, IDictionary metadata, float? temperature, float? nucleusSamplingFactor, AssistantResponseFormat responseFormat, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
+ Model = model;
Name = name;
Description = description;
Instructions = instructions;
- Metadata = metadata ?? new ChangeTrackingDictionary();
- Temperature = temperature;
- Model = model;
+ ReasoningEffortLevel = reasoningEffortLevel;
Tools = tools ?? new ChangeTrackingList();
ToolResources = toolResources;
- ResponseFormat = responseFormat;
+ Metadata = metadata ?? new ChangeTrackingDictionary();
+ Temperature = temperature;
NucleusSamplingFactor = nucleusSamplingFactor;
- ReasoningEffortLevel = reasoningEffortLevel;
+ ResponseFormat = responseFormat;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs b/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs
index b83dd17e7..2efa5e531 100644
--- a/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs
+++ b/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs
@@ -31,16 +31,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(AssistantDeletionResult)} does not support writing '{format}' format.");
}
- if (_additionalBinaryDataProperties?.ContainsKey("deleted") != true)
- {
- writer.WritePropertyName("deleted"u8);
- writer.WriteBooleanValue(Deleted);
- }
if (_additionalBinaryDataProperties?.ContainsKey("id") != true)
{
writer.WritePropertyName("id"u8);
writer.WriteStringValue(AssistantId);
}
+ if (_additionalBinaryDataProperties?.ContainsKey("deleted") != true)
+ {
+ writer.WritePropertyName("deleted"u8);
+ writer.WriteBooleanValue(Deleted);
+ }
if (_additionalBinaryDataProperties?.ContainsKey("object") != true)
{
writer.WritePropertyName("object"u8);
@@ -87,20 +87,20 @@ internal static AssistantDeletionResult DeserializeAssistantDeletionResult(JsonE
{
return null;
}
- bool deleted = default;
string assistantId = default;
+ bool deleted = default;
string @object = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
- if (prop.NameEquals("deleted"u8))
+ if (prop.NameEquals("id"u8))
{
- deleted = prop.Value.GetBoolean();
+ assistantId = prop.Value.GetString();
continue;
}
- if (prop.NameEquals("id"u8))
+ if (prop.NameEquals("deleted"u8))
{
- assistantId = prop.Value.GetString();
+ deleted = prop.Value.GetBoolean();
continue;
}
if (prop.NameEquals("object"u8))
@@ -111,7 +111,7 @@ internal static AssistantDeletionResult DeserializeAssistantDeletionResult(JsonE
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
- return new AssistantDeletionResult(deleted, assistantId, @object, additionalBinaryDataProperties);
+ return new AssistantDeletionResult(assistantId, deleted, @object, additionalBinaryDataProperties);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
diff --git a/src/Generated/Models/Assistants/AssistantDeletionResult.cs b/src/Generated/Models/Assistants/AssistantDeletionResult.cs
index 4bf215dc1..b6a84811b 100644
--- a/src/Generated/Models/Assistants/AssistantDeletionResult.cs
+++ b/src/Generated/Models/Assistants/AssistantDeletionResult.cs
@@ -13,16 +13,16 @@ public partial class AssistantDeletionResult
{
private protected IDictionary _additionalBinaryDataProperties;
- internal AssistantDeletionResult(bool deleted, string assistantId)
+ internal AssistantDeletionResult(string assistantId, bool deleted)
{
- Deleted = deleted;
AssistantId = assistantId;
+ Deleted = deleted;
}
- internal AssistantDeletionResult(bool deleted, string assistantId, string @object, IDictionary additionalBinaryDataProperties)
+ internal AssistantDeletionResult(string assistantId, bool deleted, string @object, IDictionary additionalBinaryDataProperties)
{
- Deleted = deleted;
AssistantId = assistantId;
+ Deleted = deleted;
Object = @object;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/AssistantModificationOptions.Serialization.cs b/src/Generated/Models/Assistants/AssistantModificationOptions.Serialization.cs
index e5dc82d81..ffec048f2 100644
--- a/src/Generated/Models/Assistants/AssistantModificationOptions.Serialization.cs
+++ b/src/Generated/Models/Assistants/AssistantModificationOptions.Serialization.cs
@@ -27,6 +27,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(AssistantModificationOptions)} does not support writing '{format}' format.");
}
+ if (Optional.IsDefined(Model) && _additionalBinaryDataProperties?.ContainsKey("model") != true)
+ {
+ writer.WritePropertyName("model"u8);
+ writer.WriteStringValue(Model);
+ }
+ if (Optional.IsDefined(ReasoningEffortLevel) && _additionalBinaryDataProperties?.ContainsKey("reasoning_effort") != true)
+ {
+ writer.WritePropertyName("reasoning_effort"u8);
+ writer.WriteStringValue(ReasoningEffortLevel.Value.ToString());
+ }
if (Optional.IsDefined(Name) && _additionalBinaryDataProperties?.ContainsKey("name") != true)
{
writer.WritePropertyName("name"u8);
@@ -42,6 +52,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("instructions"u8);
writer.WriteStringValue(Instructions);
}
+ if (Optional.IsCollectionDefined(DefaultTools) && _additionalBinaryDataProperties?.ContainsKey("tools") != true)
+ {
+ writer.WritePropertyName("tools"u8);
+ writer.WriteStartArray();
+ foreach (ToolDefinition item in DefaultTools)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(ToolResources) && _additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
+ {
+ writer.WritePropertyName("tool_resources"u8);
+ writer.WriteObjectValue(ToolResources, options);
+ }
if (Optional.IsCollectionDefined(Metadata) && _additionalBinaryDataProperties?.ContainsKey("metadata") != true)
{
writer.WritePropertyName("metadata"u8);
@@ -63,40 +88,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("temperature"u8);
writer.WriteNumberValue(Temperature.Value);
}
- if (Optional.IsDefined(Model) && _additionalBinaryDataProperties?.ContainsKey("model") != true)
- {
- writer.WritePropertyName("model"u8);
- writer.WriteStringValue(Model);
- }
- if (Optional.IsCollectionDefined(DefaultTools) && _additionalBinaryDataProperties?.ContainsKey("tools") != true)
- {
- writer.WritePropertyName("tools"u8);
- writer.WriteStartArray();
- foreach (ToolDefinition item in DefaultTools)
- {
- writer.WriteObjectValue(item, options);
- }
- writer.WriteEndArray();
- }
- if (Optional.IsDefined(ToolResources) && _additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
- {
- writer.WritePropertyName("tool_resources"u8);
- writer.WriteObjectValue(ToolResources, options);
- }
- if (Optional.IsDefined(ResponseFormat) && _additionalBinaryDataProperties?.ContainsKey("response_format") != true)
- {
- writer.WritePropertyName("response_format"u8);
- writer.WriteObjectValue(ResponseFormat, options);
- }
if (Optional.IsDefined(NucleusSamplingFactor) && _additionalBinaryDataProperties?.ContainsKey("top_p") != true)
{
writer.WritePropertyName("top_p"u8);
writer.WriteNumberValue(NucleusSamplingFactor.Value);
}
- if (Optional.IsDefined(ReasoningEffortLevel) && _additionalBinaryDataProperties?.ContainsKey("reasoning_effort") != true)
+ if (Optional.IsDefined(ResponseFormat) && _additionalBinaryDataProperties?.ContainsKey("response_format") != true)
{
- writer.WritePropertyName("reasoning_effort"u8);
- writer.WriteStringValue(ReasoningEffortLevel.Value.ToString());
+ writer.WritePropertyName("response_format"u8);
+ writer.WriteObjectValue(ResponseFormat, options);
}
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
@@ -139,84 +139,63 @@ internal static AssistantModificationOptions DeserializeAssistantModificationOpt
{
return null;
}
+ string model = default;
+ ChatReasoningEffortLevel? reasoningEffortLevel = default;
string name = default;
string description = default;
string instructions = default;
- IDictionary metadata = default;
- float? temperature = default;
- string model = default;
IList defaultTools = default;
ToolResources toolResources = default;
- AssistantResponseFormat responseFormat = default;
+ IDictionary metadata = default;
+ float? temperature = default;
float? nucleusSamplingFactor = default;
- ChatReasoningEffortLevel? reasoningEffortLevel = default;
+ AssistantResponseFormat responseFormat = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
- if (prop.NameEquals("name"u8))
+ if (prop.NameEquals("model"u8))
{
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- name = null;
- continue;
- }
- name = prop.Value.GetString();
+ model = prop.Value.GetString();
continue;
}
- if (prop.NameEquals("description"u8))
+ if (prop.NameEquals("reasoning_effort"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- description = null;
+ reasoningEffortLevel = null;
continue;
}
- description = prop.Value.GetString();
+ reasoningEffortLevel = new ChatReasoningEffortLevel(prop.Value.GetString());
continue;
}
- if (prop.NameEquals("instructions"u8))
+ if (prop.NameEquals("name"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- instructions = null;
+ name = null;
continue;
}
- instructions = prop.Value.GetString();
+ name = prop.Value.GetString();
continue;
}
- if (prop.NameEquals("metadata"u8))
+ if (prop.NameEquals("description"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
+ description = null;
continue;
}
- Dictionary dictionary = new Dictionary();
- foreach (var prop0 in prop.Value.EnumerateObject())
- {
- if (prop0.Value.ValueKind == JsonValueKind.Null)
- {
- dictionary.Add(prop0.Name, null);
- }
- else
- {
- dictionary.Add(prop0.Name, prop0.Value.GetString());
- }
- }
- metadata = dictionary;
+ description = prop.Value.GetString();
continue;
}
- if (prop.NameEquals("temperature"u8))
+ if (prop.NameEquals("instructions"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- temperature = null;
+ instructions = null;
continue;
}
- temperature = prop.Value.GetSingle();
- continue;
- }
- if (prop.NameEquals("model"u8))
- {
- model = prop.Value.GetString();
+ instructions = prop.Value.GetString();
continue;
}
if (prop.NameEquals("tools"u8))
@@ -243,14 +222,35 @@ internal static AssistantModificationOptions DeserializeAssistantModificationOpt
toolResources = ToolResources.DeserializeToolResources(prop.Value, options);
continue;
}
- if (prop.NameEquals("response_format"u8))
+ if (prop.NameEquals("metadata"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- responseFormat = null;
continue;
}
- responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(prop.Value, options);
+ Dictionary dictionary = new Dictionary();
+ foreach (var prop0 in prop.Value.EnumerateObject())
+ {
+ if (prop0.Value.ValueKind == JsonValueKind.Null)
+ {
+ dictionary.Add(prop0.Name, null);
+ }
+ else
+ {
+ dictionary.Add(prop0.Name, prop0.Value.GetString());
+ }
+ }
+ metadata = dictionary;
+ continue;
+ }
+ if (prop.NameEquals("temperature"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ temperature = null;
+ continue;
+ }
+ temperature = prop.Value.GetSingle();
continue;
}
if (prop.NameEquals("top_p"u8))
@@ -263,31 +263,31 @@ internal static AssistantModificationOptions DeserializeAssistantModificationOpt
nucleusSamplingFactor = prop.Value.GetSingle();
continue;
}
- if (prop.NameEquals("reasoning_effort"u8))
+ if (prop.NameEquals("response_format"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- reasoningEffortLevel = null;
+ responseFormat = null;
continue;
}
- reasoningEffortLevel = new ChatReasoningEffortLevel(prop.Value.GetString());
+ responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(prop.Value, options);
continue;
}
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
return new AssistantModificationOptions(
+ model,
+ reasoningEffortLevel,
name,
description,
instructions,
- metadata ?? new ChangeTrackingDictionary(),
- temperature,
- model,
defaultTools ?? new ChangeTrackingList(),
toolResources,
- responseFormat,
+ metadata ?? new ChangeTrackingDictionary(),
+ temperature,
nucleusSamplingFactor,
- reasoningEffortLevel,
+ responseFormat,
additionalBinaryDataProperties);
}
diff --git a/src/Generated/Models/Assistants/AssistantModificationOptions.cs b/src/Generated/Models/Assistants/AssistantModificationOptions.cs
index dfcd7eca8..a85826422 100644
--- a/src/Generated/Models/Assistants/AssistantModificationOptions.cs
+++ b/src/Generated/Models/Assistants/AssistantModificationOptions.cs
@@ -15,24 +15,24 @@ public partial class AssistantModificationOptions
{
private protected IDictionary _additionalBinaryDataProperties;
- public AssistantModificationOptions() : this(null, null, null, null, default, null, null, null, null, default, default, null)
+ public AssistantModificationOptions() : this(null, default, null, null, null, null, null, null, default, default, null, null)
{
}
- internal AssistantModificationOptions(string name, string description, string instructions, IDictionary metadata, float? temperature, string model, IList defaultTools, ToolResources toolResources, AssistantResponseFormat responseFormat, float? nucleusSamplingFactor, ChatReasoningEffortLevel? reasoningEffortLevel, IDictionary additionalBinaryDataProperties)
+ internal AssistantModificationOptions(string model, ChatReasoningEffortLevel? reasoningEffortLevel, string name, string description, string instructions, IList defaultTools, ToolResources toolResources, IDictionary metadata, float? temperature, float? nucleusSamplingFactor, AssistantResponseFormat responseFormat, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
+ Model = model;
+ ReasoningEffortLevel = reasoningEffortLevel;
Name = name;
Description = description;
Instructions = instructions;
- Metadata = metadata ?? new ChangeTrackingDictionary();
- Temperature = temperature;
- Model = model;
DefaultTools = defaultTools ?? new ChangeTrackingList();
ToolResources = toolResources;
- ResponseFormat = responseFormat;
+ Metadata = metadata ?? new ChangeTrackingDictionary();
+ Temperature = temperature;
NucleusSamplingFactor = nucleusSamplingFactor;
- ReasoningEffortLevel = reasoningEffortLevel;
+ ResponseFormat = responseFormat;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/AssistantThread.Serialization.cs b/src/Generated/Models/Assistants/AssistantThread.Serialization.cs
index 61465a3cd..e6dac8763 100644
--- a/src/Generated/Models/Assistants/AssistantThread.Serialization.cs
+++ b/src/Generated/Models/Assistants/AssistantThread.Serialization.cs
@@ -13,7 +13,7 @@ namespace OpenAI.Assistants
{
public partial class AssistantThread : IJsonModel
{
- internal AssistantThread() : this(null, default, null, null, null, null)
+ internal AssistantThread() : this(null, null, default, null, null, null)
{
}
@@ -36,11 +36,28 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("id"u8);
writer.WriteStringValue(Id);
}
+ if (_additionalBinaryDataProperties?.ContainsKey("object") != true)
+ {
+ writer.WritePropertyName("object"u8);
+ writer.WriteStringValue(Object);
+ }
if (_additionalBinaryDataProperties?.ContainsKey("created_at") != true)
{
writer.WritePropertyName("created_at"u8);
writer.WriteNumberValue(CreatedAt, "U");
}
+ if (_additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
+ {
+ if (Optional.IsDefined(ToolResources))
+ {
+ writer.WritePropertyName("tool_resources"u8);
+ writer.WriteObjectValue(ToolResources, options);
+ }
+ else
+ {
+ writer.WriteNull("tool_resources"u8);
+ }
+ }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties?.ContainsKey("metadata") != true)
{
@@ -58,23 +75,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndObject();
}
- if (_additionalBinaryDataProperties?.ContainsKey("object") != true)
- {
- writer.WritePropertyName("object"u8);
- writer.WriteStringValue(Object);
- }
- if (_additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
- {
- if (Optional.IsDefined(ToolResources))
- {
- writer.WritePropertyName("tool_resources"u8);
- writer.WriteObjectValue(ToolResources, options);
- }
- else
- {
- writer.WriteNull("tool_resources"u8);
- }
- }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -117,10 +117,10 @@ internal static AssistantThread DeserializeAssistantThread(JsonElement element,
return null;
}
string id = default;
- DateTimeOffset createdAt = default;
- IReadOnlyDictionary metadata = default;
string @object = default;
+ DateTimeOffset createdAt = default;
ToolResources toolResources = default;
+ IReadOnlyDictionary metadata = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
@@ -129,11 +129,26 @@ internal static AssistantThread DeserializeAssistantThread(JsonElement element,
id = prop.Value.GetString();
continue;
}
+ if (prop.NameEquals("object"u8))
+ {
+ @object = prop.Value.GetString();
+ continue;
+ }
if (prop.NameEquals("created_at"u8))
{
createdAt = DateTimeOffset.FromUnixTimeSeconds(prop.Value.GetInt64());
continue;
}
+ if (prop.NameEquals("tool_resources"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ toolResources = null;
+ continue;
+ }
+ toolResources = ToolResources.DeserializeToolResources(prop.Value, options);
+ continue;
+ }
if (prop.NameEquals("metadata"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
@@ -156,30 +171,15 @@ internal static AssistantThread DeserializeAssistantThread(JsonElement element,
metadata = dictionary;
continue;
}
- if (prop.NameEquals("object"u8))
- {
- @object = prop.Value.GetString();
- continue;
- }
- if (prop.NameEquals("tool_resources"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- toolResources = null;
- continue;
- }
- toolResources = ToolResources.DeserializeToolResources(prop.Value, options);
- continue;
- }
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
return new AssistantThread(
id,
- createdAt,
- metadata,
@object,
+ createdAt,
toolResources,
+ metadata,
additionalBinaryDataProperties);
}
diff --git a/src/Generated/Models/Assistants/AssistantThread.cs b/src/Generated/Models/Assistants/AssistantThread.cs
index deea41d99..d242a930a 100644
--- a/src/Generated/Models/Assistants/AssistantThread.cs
+++ b/src/Generated/Models/Assistants/AssistantThread.cs
@@ -18,18 +18,18 @@ internal AssistantThread(string id, DateTimeOffset createdAt, ToolResources tool
{
Id = id;
CreatedAt = createdAt;
- Metadata = new ChangeTrackingDictionary();
ToolResources = toolResources;
+ Metadata = new ChangeTrackingDictionary();
}
- internal AssistantThread(string id, DateTimeOffset createdAt, IReadOnlyDictionary metadata, string @object, ToolResources toolResources, IDictionary additionalBinaryDataProperties)
+ internal AssistantThread(string id, string @object, DateTimeOffset createdAt, ToolResources toolResources, IReadOnlyDictionary metadata, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
Id = id;
- CreatedAt = createdAt;
- Metadata = metadata ?? new ChangeTrackingDictionary();
Object = @object;
+ CreatedAt = createdAt;
ToolResources = toolResources;
+ Metadata = metadata ?? new ChangeTrackingDictionary();
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/InternalAssistantToolsFileSearchFileSearch.Serialization.cs b/src/Generated/Models/Assistants/InternalAssistantToolsFileSearchFileSearch.Serialization.cs
index de65079ed..a0b4f7384 100644
--- a/src/Generated/Models/Assistants/InternalAssistantToolsFileSearchFileSearch.Serialization.cs
+++ b/src/Generated/Models/Assistants/InternalAssistantToolsFileSearchFileSearch.Serialization.cs
@@ -26,16 +26,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(InternalAssistantToolsFileSearchFileSearch)} does not support writing '{format}' format.");
}
- if (Optional.IsDefined(RankingOptions) && _additionalBinaryDataProperties?.ContainsKey("ranking_options") != true)
- {
- writer.WritePropertyName("ranking_options"u8);
- writer.WriteObjectValue(RankingOptions, options);
- }
if (Optional.IsDefined(InternalMaxNumResults) && _additionalBinaryDataProperties?.ContainsKey("max_num_results") != true)
{
writer.WritePropertyName("max_num_results"u8);
writer.WriteNumberValue(InternalMaxNumResults.Value);
}
+ if (Optional.IsDefined(RankingOptions) && _additionalBinaryDataProperties?.ContainsKey("ranking_options") != true)
+ {
+ writer.WritePropertyName("ranking_options"u8);
+ writer.WriteObjectValue(RankingOptions, options);
+ }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -77,33 +77,33 @@ internal static InternalAssistantToolsFileSearchFileSearch DeserializeInternalAs
{
return null;
}
- FileSearchRankingOptions rankingOptions = default;
int? internalMaxNumResults = default;
+ FileSearchRankingOptions rankingOptions = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
- if (prop.NameEquals("ranking_options"u8))
+ if (prop.NameEquals("max_num_results"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
continue;
}
- rankingOptions = FileSearchRankingOptions.DeserializeFileSearchRankingOptions(prop.Value, options);
+ internalMaxNumResults = prop.Value.GetInt32();
continue;
}
- if (prop.NameEquals("max_num_results"u8))
+ if (prop.NameEquals("ranking_options"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
continue;
}
- internalMaxNumResults = prop.Value.GetInt32();
+ rankingOptions = FileSearchRankingOptions.DeserializeFileSearchRankingOptions(prop.Value, options);
continue;
}
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
- return new InternalAssistantToolsFileSearchFileSearch(rankingOptions, internalMaxNumResults, additionalBinaryDataProperties);
+ return new InternalAssistantToolsFileSearchFileSearch(internalMaxNumResults, rankingOptions, additionalBinaryDataProperties);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
diff --git a/src/Generated/Models/Assistants/InternalAssistantToolsFileSearchFileSearch.cs b/src/Generated/Models/Assistants/InternalAssistantToolsFileSearchFileSearch.cs
index 993db5f2e..c875b4d41 100644
--- a/src/Generated/Models/Assistants/InternalAssistantToolsFileSearchFileSearch.cs
+++ b/src/Generated/Models/Assistants/InternalAssistantToolsFileSearchFileSearch.cs
@@ -15,10 +15,10 @@ public InternalAssistantToolsFileSearchFileSearch()
{
}
- internal InternalAssistantToolsFileSearchFileSearch(FileSearchRankingOptions rankingOptions, int? internalMaxNumResults, IDictionary additionalBinaryDataProperties)
+ internal InternalAssistantToolsFileSearchFileSearch(int? internalMaxNumResults, FileSearchRankingOptions rankingOptions, IDictionary additionalBinaryDataProperties)
{
- RankingOptions = rankingOptions;
InternalMaxNumResults = internalMaxNumResults;
+ RankingOptions = rankingOptions;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequest.Serialization.cs b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequest.Serialization.cs
index 5035a0c6c..a224168ed 100644
--- a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequest.Serialization.cs
+++ b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequest.Serialization.cs
@@ -12,7 +12,7 @@ namespace OpenAI.Assistants
{
internal partial class InternalCreateThreadAndRunRequest : IJsonModel
{
- internal InternalCreateThreadAndRunRequest() : this(null, null, null, null, null, default, default, default, default, default, null, default, null, null, null, null, null)
+ internal InternalCreateThreadAndRunRequest() : this(null, null, null, null, null, null, null, default, default, default, default, default, null, null, default, null, null)
{
}
@@ -40,6 +40,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("thread"u8);
writer.WriteObjectValue(Thread, options);
}
+ if (Optional.IsDefined(Model) && _additionalBinaryDataProperties?.ContainsKey("model") != true)
+ {
+ writer.WritePropertyName("model"u8);
+ writer.WriteStringValue(Model);
+ }
if (Optional.IsDefined(Instructions) && _additionalBinaryDataProperties?.ContainsKey("instructions") != true)
{
writer.WritePropertyName("instructions"u8);
@@ -55,6 +60,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
+ if (Optional.IsDefined(ToolResources) && _additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
+ {
+ writer.WritePropertyName("tool_resources"u8);
+ writer.WriteObjectValue(ToolResources, options);
+ }
if (Optional.IsCollectionDefined(Metadata) && _additionalBinaryDataProperties?.ContainsKey("metadata") != true)
{
writer.WritePropertyName("metadata"u8);
@@ -101,31 +111,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("truncation_strategy"u8);
writer.WriteObjectValue(TruncationStrategy, options);
}
+ if (Optional.IsDefined(ToolChoice) && _additionalBinaryDataProperties?.ContainsKey("tool_choice") != true)
+ {
+ writer.WritePropertyName("tool_choice"u8);
+ writer.WriteObjectValue(ToolChoice, options);
+ }
if (Optional.IsDefined(ParallelToolCalls) && _additionalBinaryDataProperties?.ContainsKey("parallel_tool_calls") != true)
{
writer.WritePropertyName("parallel_tool_calls"u8);
writer.WriteBooleanValue(ParallelToolCalls.Value);
}
- if (Optional.IsDefined(Model) && _additionalBinaryDataProperties?.ContainsKey("model") != true)
- {
- writer.WritePropertyName("model"u8);
- writer.WriteStringValue(Model);
- }
- if (Optional.IsDefined(ToolResources) && _additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
- {
- writer.WritePropertyName("tool_resources"u8);
- writer.WriteObjectValue(ToolResources, options);
- }
if (Optional.IsDefined(ResponseFormat) && _additionalBinaryDataProperties?.ContainsKey("response_format") != true)
{
writer.WritePropertyName("response_format"u8);
writer.WriteObjectValue(ResponseFormat, options);
}
- if (Optional.IsDefined(ToolChoice) && _additionalBinaryDataProperties?.ContainsKey("tool_choice") != true)
- {
- writer.WritePropertyName("tool_choice"u8);
- writer.WriteObjectValue(ToolChoice, options);
- }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -169,8 +169,10 @@ internal static InternalCreateThreadAndRunRequest DeserializeInternalCreateThrea
}
string assistantId = default;
ThreadCreationOptions thread = default;
+ string model = default;
string instructions = default;
IList tools = default;
+ ToolResources toolResources = default;
IDictionary metadata = default;
float? temperature = default;
float? topP = default;
@@ -178,11 +180,9 @@ internal static InternalCreateThreadAndRunRequest DeserializeInternalCreateThrea
int? maxPromptTokens = default;
int? maxCompletionTokens = default;
RunTruncationStrategy truncationStrategy = default;
+ ToolConstraint toolChoice = default;
bool? parallelToolCalls = default;
- string model = default;
- ToolResources toolResources = default;
AssistantResponseFormat responseFormat = default;
- ToolConstraint toolChoice = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
@@ -200,6 +200,16 @@ internal static InternalCreateThreadAndRunRequest DeserializeInternalCreateThrea
thread = ThreadCreationOptions.DeserializeThreadCreationOptions(prop.Value, options);
continue;
}
+ if (prop.NameEquals("model"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ model = null;
+ continue;
+ }
+ model = prop.Value.GetString();
+ continue;
+ }
if (prop.NameEquals("instructions"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
@@ -224,6 +234,16 @@ internal static InternalCreateThreadAndRunRequest DeserializeInternalCreateThrea
tools = array;
continue;
}
+ if (prop.NameEquals("tool_resources"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ toolResources = null;
+ continue;
+ }
+ toolResources = ToolResources.DeserializeToolResources(prop.Value, options);
+ continue;
+ }
if (prop.NameEquals("metadata"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
@@ -305,33 +325,23 @@ internal static InternalCreateThreadAndRunRequest DeserializeInternalCreateThrea
truncationStrategy = RunTruncationStrategy.DeserializeRunTruncationStrategy(prop.Value, options);
continue;
}
- if (prop.NameEquals("parallel_tool_calls"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- continue;
- }
- parallelToolCalls = prop.Value.GetBoolean();
- continue;
- }
- if (prop.NameEquals("model"u8))
+ if (prop.NameEquals("tool_choice"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- model = null;
+ toolChoice = null;
continue;
}
- model = prop.Value.GetString();
+ toolChoice = ToolConstraint.DeserializeToolConstraint(prop.Value, options);
continue;
}
- if (prop.NameEquals("tool_resources"u8))
+ if (prop.NameEquals("parallel_tool_calls"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- toolResources = null;
continue;
}
- toolResources = ToolResources.DeserializeToolResources(prop.Value, options);
+ parallelToolCalls = prop.Value.GetBoolean();
continue;
}
if (prop.NameEquals("response_format"u8))
@@ -344,24 +354,16 @@ internal static InternalCreateThreadAndRunRequest DeserializeInternalCreateThrea
responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(prop.Value, options);
continue;
}
- if (prop.NameEquals("tool_choice"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- toolChoice = null;
- continue;
- }
- toolChoice = ToolConstraint.DeserializeToolConstraint(prop.Value, options);
- continue;
- }
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
return new InternalCreateThreadAndRunRequest(
assistantId,
thread,
+ model,
instructions,
tools ?? new ChangeTrackingList(),
+ toolResources,
metadata ?? new ChangeTrackingDictionary(),
temperature,
topP,
@@ -369,11 +371,9 @@ internal static InternalCreateThreadAndRunRequest DeserializeInternalCreateThrea
maxPromptTokens,
maxCompletionTokens,
truncationStrategy,
+ toolChoice,
parallelToolCalls,
- model,
- toolResources,
responseFormat,
- toolChoice,
additionalBinaryDataProperties);
}
diff --git a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequest.cs b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequest.cs
index d3ee39f3c..b5bb08d7b 100644
--- a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequest.cs
+++ b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequest.cs
@@ -21,13 +21,15 @@ public InternalCreateThreadAndRunRequest(string assistantId)
Metadata = new ChangeTrackingDictionary();
}
- internal InternalCreateThreadAndRunRequest(string assistantId, ThreadCreationOptions thread, string instructions, IList tools, IDictionary metadata, float? temperature, float? topP, bool? stream, int? maxPromptTokens, int? maxCompletionTokens, RunTruncationStrategy truncationStrategy, bool? parallelToolCalls, string model, ToolResources toolResources, AssistantResponseFormat responseFormat, ToolConstraint toolChoice, IDictionary additionalBinaryDataProperties)
+ internal InternalCreateThreadAndRunRequest(string assistantId, ThreadCreationOptions thread, string model, string instructions, IList tools, ToolResources toolResources, IDictionary metadata, float? temperature, float? topP, bool? stream, int? maxPromptTokens, int? maxCompletionTokens, RunTruncationStrategy truncationStrategy, ToolConstraint toolChoice, bool? parallelToolCalls, AssistantResponseFormat responseFormat, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
AssistantId = assistantId;
Thread = thread;
+ Model = model;
Instructions = instructions;
Tools = tools ?? new ChangeTrackingList();
+ ToolResources = toolResources;
Metadata = metadata ?? new ChangeTrackingDictionary();
Temperature = temperature;
TopP = topP;
@@ -35,11 +37,9 @@ internal InternalCreateThreadAndRunRequest(string assistantId, ThreadCreationOpt
MaxPromptTokens = maxPromptTokens;
MaxCompletionTokens = maxCompletionTokens;
TruncationStrategy = truncationStrategy;
+ ToolChoice = toolChoice;
ParallelToolCalls = parallelToolCalls;
- Model = model;
- ToolResources = toolResources;
ResponseFormat = responseFormat;
- ToolChoice = toolChoice;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaObjectDelta.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageDeltaObjectDelta.Serialization.cs
index d5e10648c..1fbea1dce 100644
--- a/src/Generated/Models/Assistants/InternalMessageDeltaObjectDelta.Serialization.cs
+++ b/src/Generated/Models/Assistants/InternalMessageDeltaObjectDelta.Serialization.cs
@@ -26,6 +26,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(InternalMessageDeltaObjectDelta)} does not support writing '{format}' format.");
}
+ if (Optional.IsDefined(Role) && _additionalBinaryDataProperties?.ContainsKey("role") != true)
+ {
+ writer.WritePropertyName("role"u8);
+ writer.WriteStringValue(Role.Value.ToSerialString());
+ }
if (Optional.IsCollectionDefined(Content) && _additionalBinaryDataProperties?.ContainsKey("content") != true)
{
writer.WritePropertyName("content"u8);
@@ -36,11 +41,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
- if (Optional.IsDefined(Role) && _additionalBinaryDataProperties?.ContainsKey("role") != true)
- {
- writer.WritePropertyName("role"u8);
- writer.WriteStringValue(Role.Value.ToSerialString());
- }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -82,38 +82,38 @@ internal static InternalMessageDeltaObjectDelta DeserializeInternalMessageDeltaO
{
return null;
}
- IList content = default;
MessageRole? role = default;
+ IList content = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
- if (prop.NameEquals("content"u8))
+ if (prop.NameEquals("role"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
continue;
}
- List array = new List();
- foreach (var item in prop.Value.EnumerateArray())
- {
- array.Add(InternalMessageDeltaContent.DeserializeInternalMessageDeltaContent(item, options));
- }
- content = array;
+ role = prop.Value.GetString().ToMessageRole();
continue;
}
- if (prop.NameEquals("role"u8))
+ if (prop.NameEquals("content"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
continue;
}
- role = prop.Value.GetString().ToMessageRole();
+ List array = new List();
+ foreach (var item in prop.Value.EnumerateArray())
+ {
+ array.Add(InternalMessageDeltaContent.DeserializeInternalMessageDeltaContent(item, options));
+ }
+ content = array;
continue;
}
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
- return new InternalMessageDeltaObjectDelta(content ?? new ChangeTrackingList(), role, additionalBinaryDataProperties);
+ return new InternalMessageDeltaObjectDelta(role, content ?? new ChangeTrackingList(), additionalBinaryDataProperties);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaObjectDelta.cs b/src/Generated/Models/Assistants/InternalMessageDeltaObjectDelta.cs
index 73ecda349..6f8d2a02b 100644
--- a/src/Generated/Models/Assistants/InternalMessageDeltaObjectDelta.cs
+++ b/src/Generated/Models/Assistants/InternalMessageDeltaObjectDelta.cs
@@ -12,15 +12,15 @@ internal partial class InternalMessageDeltaObjectDelta
{
private protected IDictionary _additionalBinaryDataProperties;
- internal InternalMessageDeltaObjectDelta() : this(null, default, null)
+ internal InternalMessageDeltaObjectDelta() : this(default, null, null)
{
}
- internal InternalMessageDeltaObjectDelta(IList content, MessageRole? role, IDictionary additionalBinaryDataProperties)
+ internal InternalMessageDeltaObjectDelta(MessageRole? role, IList content, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
- Content = content ?? new ChangeTrackingList();
Role = role;
+ Content = content ?? new ChangeTrackingList();
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch.Serialization.cs
index e841b02b9..196d574a5 100644
--- a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch.Serialization.cs
+++ b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch.Serialization.cs
@@ -26,6 +26,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch)} does not support writing '{format}' format.");
}
+ if (Optional.IsDefined(RankingOptions) && _additionalBinaryDataProperties?.ContainsKey("ranking_options") != true)
+ {
+ writer.WritePropertyName("ranking_options"u8);
+ writer.WriteObjectValue(RankingOptions, options);
+ }
// Plugin customization: remove options.Format != "W" check
if (Optional.IsCollectionDefined(Results) && _additionalBinaryDataProperties?.ContainsKey("results") != true)
{
@@ -37,11 +42,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
- if (Optional.IsDefined(RankingOptions) && _additionalBinaryDataProperties?.ContainsKey("ranking_options") != true)
- {
- writer.WritePropertyName("ranking_options"u8);
- writer.WriteObjectValue(RankingOptions, options);
- }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -83,38 +83,38 @@ internal static InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSear
{
return null;
}
- IReadOnlyList results = default;
FileSearchRankingOptions rankingOptions = default;
+ IReadOnlyList results = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
- if (prop.NameEquals("results"u8))
+ if (prop.NameEquals("ranking_options"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
continue;
}
- List array = new List();
- foreach (var item in prop.Value.EnumerateArray())
- {
- array.Add(RunStepFileSearchResult.DeserializeRunStepFileSearchResult(item, options));
- }
- results = array;
+ rankingOptions = FileSearchRankingOptions.DeserializeFileSearchRankingOptions(prop.Value, options);
continue;
}
- if (prop.NameEquals("ranking_options"u8))
+ if (prop.NameEquals("results"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
continue;
}
- rankingOptions = FileSearchRankingOptions.DeserializeFileSearchRankingOptions(prop.Value, options);
+ List array = new List();
+ foreach (var item in prop.Value.EnumerateArray())
+ {
+ array.Add(RunStepFileSearchResult.DeserializeRunStepFileSearchResult(item, options));
+ }
+ results = array;
continue;
}
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
- return new InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch(results ?? new ChangeTrackingList(), rankingOptions, additionalBinaryDataProperties);
+ return new InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch(rankingOptions, results ?? new ChangeTrackingList(), additionalBinaryDataProperties);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
diff --git a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch.cs b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch.cs
index 691f7cfe4..cdd728842 100644
--- a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch.cs
+++ b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch.cs
@@ -16,11 +16,11 @@ internal InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch() :
{
}
- internal InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch(IReadOnlyList results, FileSearchRankingOptions rankingOptions, IDictionary additionalBinaryDataProperties)
+ internal InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch(FileSearchRankingOptions rankingOptions, IReadOnlyList results, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
- Results = results ?? new ChangeTrackingList();
RankingOptions = rankingOptions;
+ Results = results ?? new ChangeTrackingList();
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObjectFileSearch.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObjectFileSearch.Serialization.cs
index 5e84cd7e0..9d02357e9 100644
--- a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObjectFileSearch.Serialization.cs
+++ b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObjectFileSearch.Serialization.cs
@@ -26,6 +26,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(InternalRunStepDetailsToolCallsFileSearchObjectFileSearch)} does not support writing '{format}' format.");
}
+ if (Optional.IsDefined(RankingOptions) && _additionalBinaryDataProperties?.ContainsKey("ranking_options") != true)
+ {
+ writer.WritePropertyName("ranking_options"u8);
+ writer.WriteObjectValue(RankingOptions, options);
+ }
// Plugin customization: remove options.Format != "W" check
if (Optional.IsCollectionDefined(Results) && _additionalBinaryDataProperties?.ContainsKey("results") != true)
{
@@ -37,11 +42,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
- if (Optional.IsDefined(RankingOptions) && _additionalBinaryDataProperties?.ContainsKey("ranking_options") != true)
- {
- writer.WritePropertyName("ranking_options"u8);
- writer.WriteObjectValue(RankingOptions, options);
- }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -83,38 +83,38 @@ internal static InternalRunStepDetailsToolCallsFileSearchObjectFileSearch Deseri
{
return null;
}
- IReadOnlyList results = default;
FileSearchRankingOptions rankingOptions = default;
+ IReadOnlyList results = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
- if (prop.NameEquals("results"u8))
+ if (prop.NameEquals("ranking_options"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
continue;
}
- List array = new List();
- foreach (var item in prop.Value.EnumerateArray())
- {
- array.Add(RunStepFileSearchResult.DeserializeRunStepFileSearchResult(item, options));
- }
- results = array;
+ rankingOptions = FileSearchRankingOptions.DeserializeFileSearchRankingOptions(prop.Value, options);
continue;
}
- if (prop.NameEquals("ranking_options"u8))
+ if (prop.NameEquals("results"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
continue;
}
- rankingOptions = FileSearchRankingOptions.DeserializeFileSearchRankingOptions(prop.Value, options);
+ List array = new List();
+ foreach (var item in prop.Value.EnumerateArray())
+ {
+ array.Add(RunStepFileSearchResult.DeserializeRunStepFileSearchResult(item, options));
+ }
+ results = array;
continue;
}
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
- return new InternalRunStepDetailsToolCallsFileSearchObjectFileSearch(results ?? new ChangeTrackingList(), rankingOptions, additionalBinaryDataProperties);
+ return new InternalRunStepDetailsToolCallsFileSearchObjectFileSearch(rankingOptions, results ?? new ChangeTrackingList(), additionalBinaryDataProperties);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObjectFileSearch.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObjectFileSearch.cs
index 90bd1eb06..cc5bbd75a 100644
--- a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObjectFileSearch.cs
+++ b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObjectFileSearch.cs
@@ -16,11 +16,11 @@ internal InternalRunStepDetailsToolCallsFileSearchObjectFileSearch() : this(null
{
}
- internal InternalRunStepDetailsToolCallsFileSearchObjectFileSearch(IReadOnlyList results, FileSearchRankingOptions rankingOptions, IDictionary additionalBinaryDataProperties)
+ internal InternalRunStepDetailsToolCallsFileSearchObjectFileSearch(FileSearchRankingOptions rankingOptions, IReadOnlyList results, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
- Results = results ?? new ChangeTrackingList();
RankingOptions = rankingOptions;
+ Results = results ?? new ChangeTrackingList();
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/MessageCreationOptions.Serialization.cs b/src/Generated/Models/Assistants/MessageCreationOptions.Serialization.cs
index e0f893b62..08e89a007 100644
--- a/src/Generated/Models/Assistants/MessageCreationOptions.Serialization.cs
+++ b/src/Generated/Models/Assistants/MessageCreationOptions.Serialization.cs
@@ -12,7 +12,7 @@ namespace OpenAI.Assistants
{
public partial class MessageCreationOptions : IJsonModel
{
- public MessageCreationOptions() : this(null, null, default, null, null)
+ public MessageCreationOptions() : this(default, null, null, null, null)
{
}
@@ -30,6 +30,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(MessageCreationOptions)} does not support writing '{format}' format.");
}
+ if (_additionalBinaryDataProperties?.ContainsKey("role") != true)
+ {
+ writer.WritePropertyName("role"u8);
+ writer.WriteStringValue(Role.ToSerialString());
+ }
+ if (_additionalBinaryDataProperties?.ContainsKey("content") != true)
+ {
+ writer.WritePropertyName("content"u8);
+ SerializeContent(writer, options);
+ }
if (Optional.IsCollectionDefined(Attachments) && _additionalBinaryDataProperties?.ContainsKey("attachments") != true)
{
writer.WritePropertyName("attachments"u8);
@@ -56,16 +66,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndObject();
}
- if (_additionalBinaryDataProperties?.ContainsKey("role") != true)
- {
- writer.WritePropertyName("role"u8);
- writer.WriteStringValue(Role.ToSerialString());
- }
- if (_additionalBinaryDataProperties?.ContainsKey("content") != true)
- {
- writer.WritePropertyName("content"u8);
- SerializeContent(writer, options);
- }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -107,13 +107,28 @@ internal static MessageCreationOptions DeserializeMessageCreationOptions(JsonEle
{
return null;
}
- IList attachments = default;
- IDictionary metadata = default;
MessageRole role = default;
IList content = default;
+ IList attachments = default;
+ IDictionary metadata = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
+ if (prop.NameEquals("role"u8))
+ {
+ role = prop.Value.GetString().ToMessageRole();
+ continue;
+ }
+ if (prop.NameEquals("content"u8))
+ {
+ List array = new List();
+ foreach (var item in prop.Value.EnumerateArray())
+ {
+ array.Add(MessageContent.DeserializeMessageContent(item, options));
+ }
+ content = array;
+ continue;
+ }
if (prop.NameEquals("attachments"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
@@ -149,25 +164,10 @@ internal static MessageCreationOptions DeserializeMessageCreationOptions(JsonEle
metadata = dictionary;
continue;
}
- if (prop.NameEquals("role"u8))
- {
- role = prop.Value.GetString().ToMessageRole();
- continue;
- }
- if (prop.NameEquals("content"u8))
- {
- List array = new List();
- foreach (var item in prop.Value.EnumerateArray())
- {
- array.Add(MessageContent.DeserializeMessageContent(item, options));
- }
- content = array;
- continue;
- }
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
- return new MessageCreationOptions(attachments ?? new ChangeTrackingList(), metadata ?? new ChangeTrackingDictionary(), role, content, additionalBinaryDataProperties);
+ return new MessageCreationOptions(role, content, attachments ?? new ChangeTrackingList(), metadata ?? new ChangeTrackingDictionary(), additionalBinaryDataProperties);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
diff --git a/src/Generated/Models/Assistants/MessageCreationOptions.cs b/src/Generated/Models/Assistants/MessageCreationOptions.cs
index 0d7989387..7d11a05e6 100644
--- a/src/Generated/Models/Assistants/MessageCreationOptions.cs
+++ b/src/Generated/Models/Assistants/MessageCreationOptions.cs
@@ -14,13 +14,13 @@ public partial class MessageCreationOptions
{
private protected IDictionary _additionalBinaryDataProperties;
- internal MessageCreationOptions(IList attachments, IDictionary metadata, MessageRole role, IList content, IDictionary additionalBinaryDataProperties)
+ internal MessageCreationOptions(MessageRole role, IList content, IList attachments, IDictionary metadata, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
- Attachments = attachments ?? new ChangeTrackingList();
- Metadata = metadata ?? new ChangeTrackingDictionary();
Role = role;
Content = content ?? new ChangeTrackingList();
+ Attachments = attachments ?? new ChangeTrackingList();
+ Metadata = metadata ?? new ChangeTrackingDictionary();
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs b/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs
index 9c0a081cb..9e50c7fff 100644
--- a/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs
+++ b/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs
@@ -31,16 +31,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(MessageDeletionResult)} does not support writing '{format}' format.");
}
- if (_additionalBinaryDataProperties?.ContainsKey("deleted") != true)
- {
- writer.WritePropertyName("deleted"u8);
- writer.WriteBooleanValue(Deleted);
- }
if (_additionalBinaryDataProperties?.ContainsKey("id") != true)
{
writer.WritePropertyName("id"u8);
writer.WriteStringValue(MessageId);
}
+ if (_additionalBinaryDataProperties?.ContainsKey("deleted") != true)
+ {
+ writer.WritePropertyName("deleted"u8);
+ writer.WriteBooleanValue(Deleted);
+ }
if (_additionalBinaryDataProperties?.ContainsKey("object") != true)
{
writer.WritePropertyName("object"u8);
@@ -87,20 +87,20 @@ internal static MessageDeletionResult DeserializeMessageDeletionResult(JsonEleme
{
return null;
}
- bool deleted = default;
string messageId = default;
+ bool deleted = default;
string @object = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
- if (prop.NameEquals("deleted"u8))
+ if (prop.NameEquals("id"u8))
{
- deleted = prop.Value.GetBoolean();
+ messageId = prop.Value.GetString();
continue;
}
- if (prop.NameEquals("id"u8))
+ if (prop.NameEquals("deleted"u8))
{
- messageId = prop.Value.GetString();
+ deleted = prop.Value.GetBoolean();
continue;
}
if (prop.NameEquals("object"u8))
@@ -111,7 +111,7 @@ internal static MessageDeletionResult DeserializeMessageDeletionResult(JsonEleme
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
- return new MessageDeletionResult(deleted, messageId, @object, additionalBinaryDataProperties);
+ return new MessageDeletionResult(messageId, deleted, @object, additionalBinaryDataProperties);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
diff --git a/src/Generated/Models/Assistants/MessageDeletionResult.cs b/src/Generated/Models/Assistants/MessageDeletionResult.cs
index 5ea587c08..2d4a92b65 100644
--- a/src/Generated/Models/Assistants/MessageDeletionResult.cs
+++ b/src/Generated/Models/Assistants/MessageDeletionResult.cs
@@ -13,16 +13,16 @@ public partial class MessageDeletionResult
{
private protected IDictionary _additionalBinaryDataProperties;
- internal MessageDeletionResult(bool deleted, string messageId)
+ internal MessageDeletionResult(string messageId, bool deleted)
{
- Deleted = deleted;
MessageId = messageId;
+ Deleted = deleted;
}
- internal MessageDeletionResult(bool deleted, string messageId, string @object, IDictionary additionalBinaryDataProperties)
+ internal MessageDeletionResult(string messageId, bool deleted, string @object, IDictionary additionalBinaryDataProperties)
{
- Deleted = deleted;
MessageId = messageId;
+ Deleted = deleted;
Object = @object;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/RunCreationOptions.Serialization.cs b/src/Generated/Models/Assistants/RunCreationOptions.Serialization.cs
index cc6caeda4..e0d345d73 100644
--- a/src/Generated/Models/Assistants/RunCreationOptions.Serialization.cs
+++ b/src/Generated/Models/Assistants/RunCreationOptions.Serialization.cs
@@ -13,7 +13,7 @@ namespace OpenAI.Assistants
{
public partial class RunCreationOptions : IJsonModel
{
- public RunCreationOptions() : this(null, default, null, null, null, null, null, default, null, null, default, default, default, default, null, null, default, null)
+ public RunCreationOptions() : this(null, null, default, null, null, null, null, null, default, default, default, default, default, null, null, default, null, null)
{
}
@@ -36,21 +36,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("assistant_id"u8);
writer.WriteStringValue(AssistantId);
}
- if (Optional.IsDefined(Stream) && _additionalBinaryDataProperties?.ContainsKey("stream") != true)
- {
- writer.WritePropertyName("stream"u8);
- writer.WriteBooleanValue(Stream.Value);
- }
- if (Optional.IsDefined(ResponseFormat) && _additionalBinaryDataProperties?.ContainsKey("response_format") != true)
- {
- writer.WritePropertyName("response_format"u8);
- writer.WriteObjectValue(ResponseFormat, options);
- }
if (Optional.IsDefined(ModelOverride) && _additionalBinaryDataProperties?.ContainsKey("model") != true)
{
writer.WritePropertyName("model"u8);
writer.WriteStringValue(ModelOverride);
}
+ if (Optional.IsDefined(ReasoningEffortLevel) && _additionalBinaryDataProperties?.ContainsKey("reasoning_effort") != true)
+ {
+ writer.WritePropertyName("reasoning_effort"u8);
+ writer.WriteStringValue(ReasoningEffortLevel.Value.ToString());
+ }
if (Optional.IsDefined(InstructionsOverride) && _additionalBinaryDataProperties?.ContainsKey("instructions") != true)
{
writer.WritePropertyName("instructions"u8);
@@ -71,11 +66,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
- if (Optional.IsDefined(AllowParallelToolCalls) && _additionalBinaryDataProperties?.ContainsKey("parallel_tool_calls") != true)
- {
- writer.WritePropertyName("parallel_tool_calls"u8);
- writer.WriteBooleanValue(AllowParallelToolCalls.Value);
- }
if (Optional.IsCollectionDefined(ToolsOverride) && _additionalBinaryDataProperties?.ContainsKey("tools") != true)
{
writer.WritePropertyName("tools"u8);
@@ -112,6 +102,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("top_p"u8);
writer.WriteNumberValue(NucleusSamplingFactor.Value);
}
+ if (Optional.IsDefined(Stream) && _additionalBinaryDataProperties?.ContainsKey("stream") != true)
+ {
+ writer.WritePropertyName("stream"u8);
+ writer.WriteBooleanValue(Stream.Value);
+ }
if (Optional.IsDefined(MaxInputTokenCount) && _additionalBinaryDataProperties?.ContainsKey("max_prompt_tokens") != true)
{
writer.WritePropertyName("max_prompt_tokens"u8);
@@ -132,10 +127,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("tool_choice"u8);
SerializeToolConstraint(writer, options);
}
- if (Optional.IsDefined(ReasoningEffortLevel) && _additionalBinaryDataProperties?.ContainsKey("reasoning_effort") != true)
+ if (Optional.IsDefined(AllowParallelToolCalls) && _additionalBinaryDataProperties?.ContainsKey("parallel_tool_calls") != true)
{
- writer.WritePropertyName("reasoning_effort"u8);
- writer.WriteStringValue(ReasoningEffortLevel.Value.ToString());
+ writer.WritePropertyName("parallel_tool_calls"u8);
+ writer.WriteBooleanValue(AllowParallelToolCalls.Value);
+ }
+ if (Optional.IsDefined(ResponseFormat) && _additionalBinaryDataProperties?.ContainsKey("response_format") != true)
+ {
+ writer.WritePropertyName("response_format"u8);
+ writer.WriteObjectValue(ResponseFormat, options);
}
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
@@ -179,22 +179,22 @@ internal static RunCreationOptions DeserializeRunCreationOptions(JsonElement ele
return null;
}
string assistantId = default;
- bool? stream = default;
- AssistantResponseFormat responseFormat = default;
string modelOverride = default;
+ ChatReasoningEffortLevel? reasoningEffortLevel = default;
string instructionsOverride = default;
string additionalInstructions = default;
IList internalMessages = default;
- bool? allowParallelToolCalls = default;
IList toolsOverride = default;
IDictionary metadata = default;
float? temperature = default;
float? nucleusSamplingFactor = default;
+ bool? stream = default;
int? maxInputTokenCount = default;
int? maxOutputTokenCount = default;
RunTruncationStrategy truncationStrategy = default;
ToolConstraint toolConstraint = default;
- ChatReasoningEffortLevel? reasoningEffortLevel = default;
+ bool? allowParallelToolCalls = default;
+ AssistantResponseFormat responseFormat = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
@@ -203,34 +203,24 @@ internal static RunCreationOptions DeserializeRunCreationOptions(JsonElement ele
assistantId = prop.Value.GetString();
continue;
}
- if (prop.NameEquals("stream"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- stream = null;
- continue;
- }
- stream = prop.Value.GetBoolean();
- continue;
- }
- if (prop.NameEquals("response_format"u8))
+ if (prop.NameEquals("model"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- responseFormat = null;
+ modelOverride = null;
continue;
}
- responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(prop.Value, options);
+ modelOverride = prop.Value.GetString();
continue;
}
- if (prop.NameEquals("model"u8))
+ if (prop.NameEquals("reasoning_effort"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- modelOverride = null;
+ reasoningEffortLevel = null;
continue;
}
- modelOverride = prop.Value.GetString();
+ reasoningEffortLevel = new ChatReasoningEffortLevel(prop.Value.GetString());
continue;
}
if (prop.NameEquals("instructions"u8))
@@ -267,15 +257,6 @@ internal static RunCreationOptions DeserializeRunCreationOptions(JsonElement ele
internalMessages = array;
continue;
}
- if (prop.NameEquals("parallel_tool_calls"u8))
- {
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- continue;
- }
- allowParallelToolCalls = prop.Value.GetBoolean();
- continue;
- }
if (prop.NameEquals("tools"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
@@ -331,6 +312,16 @@ internal static RunCreationOptions DeserializeRunCreationOptions(JsonElement ele
nucleusSamplingFactor = prop.Value.GetSingle();
continue;
}
+ if (prop.NameEquals("stream"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ stream = null;
+ continue;
+ }
+ stream = prop.Value.GetBoolean();
+ continue;
+ }
if (prop.NameEquals("max_prompt_tokens"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
@@ -371,14 +362,23 @@ internal static RunCreationOptions DeserializeRunCreationOptions(JsonElement ele
toolConstraint = ToolConstraint.DeserializeToolConstraint(prop.Value, options);
continue;
}
- if (prop.NameEquals("reasoning_effort"u8))
+ if (prop.NameEquals("parallel_tool_calls"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
{
- reasoningEffortLevel = null;
continue;
}
- reasoningEffortLevel = new ChatReasoningEffortLevel(prop.Value.GetString());
+ allowParallelToolCalls = prop.Value.GetBoolean();
+ continue;
+ }
+ if (prop.NameEquals("response_format"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ responseFormat = null;
+ continue;
+ }
+ responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(prop.Value, options);
continue;
}
// Plugin customization: remove options.Format != "W" check
@@ -386,22 +386,22 @@ internal static RunCreationOptions DeserializeRunCreationOptions(JsonElement ele
}
return new RunCreationOptions(
assistantId,
- stream,
- responseFormat,
modelOverride,
+ reasoningEffortLevel,
instructionsOverride,
additionalInstructions,
internalMessages ?? new ChangeTrackingList(),
- allowParallelToolCalls,
toolsOverride ?? new ChangeTrackingList(),
metadata ?? new ChangeTrackingDictionary(),
temperature,
nucleusSamplingFactor,
+ stream,
maxInputTokenCount,
maxOutputTokenCount,
truncationStrategy,
toolConstraint,
- reasoningEffortLevel,
+ allowParallelToolCalls,
+ responseFormat,
additionalBinaryDataProperties);
}
diff --git a/src/Generated/Models/Assistants/RunCreationOptions.cs b/src/Generated/Models/Assistants/RunCreationOptions.cs
index afe4872f2..bfb5611e0 100644
--- a/src/Generated/Models/Assistants/RunCreationOptions.cs
+++ b/src/Generated/Models/Assistants/RunCreationOptions.cs
@@ -15,26 +15,26 @@ public partial class RunCreationOptions
{
private protected IDictionary _additionalBinaryDataProperties;
- internal RunCreationOptions(string assistantId, bool? stream, AssistantResponseFormat responseFormat, string modelOverride, string instructionsOverride, string additionalInstructions, IList internalMessages, bool? allowParallelToolCalls, IList toolsOverride, IDictionary metadata, float? temperature, float? nucleusSamplingFactor, int? maxInputTokenCount, int? maxOutputTokenCount, RunTruncationStrategy truncationStrategy, ToolConstraint toolConstraint, ChatReasoningEffortLevel? reasoningEffortLevel, IDictionary additionalBinaryDataProperties)
+ internal RunCreationOptions(string assistantId, string modelOverride, ChatReasoningEffortLevel? reasoningEffortLevel, string instructionsOverride, string additionalInstructions, IList internalMessages, IList toolsOverride, IDictionary metadata, float? temperature, float? nucleusSamplingFactor, bool? stream, int? maxInputTokenCount, int? maxOutputTokenCount, RunTruncationStrategy truncationStrategy, ToolConstraint toolConstraint, bool? allowParallelToolCalls, AssistantResponseFormat responseFormat, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
AssistantId = assistantId;
- Stream = stream;
- ResponseFormat = responseFormat;
ModelOverride = modelOverride;
+ ReasoningEffortLevel = reasoningEffortLevel;
InstructionsOverride = instructionsOverride;
AdditionalInstructions = additionalInstructions;
InternalMessages = internalMessages ?? new ChangeTrackingList();
- AllowParallelToolCalls = allowParallelToolCalls;
ToolsOverride = toolsOverride ?? new ChangeTrackingList();
Metadata = metadata ?? new ChangeTrackingDictionary();
Temperature = temperature;
NucleusSamplingFactor = nucleusSamplingFactor;
+ Stream = stream;
MaxInputTokenCount = maxInputTokenCount;
MaxOutputTokenCount = maxOutputTokenCount;
TruncationStrategy = truncationStrategy;
ToolConstraint = toolConstraint;
- ReasoningEffortLevel = reasoningEffortLevel;
+ AllowParallelToolCalls = allowParallelToolCalls;
+ ResponseFormat = responseFormat;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/RunStep.Serialization.cs b/src/Generated/Models/Assistants/RunStep.Serialization.cs
index d3efd99a1..da33665b9 100644
--- a/src/Generated/Models/Assistants/RunStep.Serialization.cs
+++ b/src/Generated/Models/Assistants/RunStep.Serialization.cs
@@ -13,7 +13,7 @@ namespace OpenAI.Assistants
{
public partial class RunStep : IJsonModel
{
- internal RunStep() : this(null, default, null, null, null, default, default, null, default, default, default, default, null, null, null, null, null)
+ internal RunStep() : this(null, null, default, null, null, null, default, default, null, null, default, default, default, default, null, null, null)
{
}
@@ -36,6 +36,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("id"u8);
writer.WriteStringValue(Id);
}
+ if (_additionalBinaryDataProperties?.ContainsKey("object") != true)
+ {
+ writer.WritePropertyName("object"u8);
+ writer.WriteStringValue(Object);
+ }
if (_additionalBinaryDataProperties?.ContainsKey("created_at") != true)
{
writer.WritePropertyName("created_at"u8);
@@ -66,6 +71,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("status"u8);
writer.WriteStringValue(Status.ToString());
}
+ if (_additionalBinaryDataProperties?.ContainsKey("step_details") != true)
+ {
+ writer.WritePropertyName("step_details"u8);
+ writer.WriteObjectValue(Details, options);
+ }
if (_additionalBinaryDataProperties?.ContainsKey("last_error") != true)
{
if (Optional.IsDefined(LastError))
@@ -155,16 +165,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WriteNull("usage"u8);
}
}
- if (_additionalBinaryDataProperties?.ContainsKey("object") != true)
- {
- writer.WritePropertyName("object"u8);
- writer.WriteStringValue(Object);
- }
- if (_additionalBinaryDataProperties?.ContainsKey("step_details") != true)
- {
- writer.WritePropertyName("step_details"u8);
- writer.WriteObjectValue(Details, options);
- }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -207,12 +207,14 @@ internal static RunStep DeserializeRunStep(JsonElement element, ModelReaderWrite
return null;
}
string id = default;
+ string @object = default;
DateTimeOffset createdAt = default;
string assistantId = default;
string threadId = default;
string runId = default;
RunStepKind kind = default;
RunStepStatus status = default;
+ RunStepDetails details = default;
RunStepError lastError = default;
DateTimeOffset? expiredAt = default;
DateTimeOffset? cancelledAt = default;
@@ -220,8 +222,6 @@ internal static RunStep DeserializeRunStep(JsonElement element, ModelReaderWrite
DateTimeOffset? completedAt = default;
IReadOnlyDictionary metadata = default;
RunStepTokenUsage usage = default;
- string @object = default;
- RunStepDetails details = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
@@ -230,6 +230,11 @@ internal static RunStep DeserializeRunStep(JsonElement element, ModelReaderWrite
id = prop.Value.GetString();
continue;
}
+ if (prop.NameEquals("object"u8))
+ {
+ @object = prop.Value.GetString();
+ continue;
+ }
if (prop.NameEquals("created_at"u8))
{
createdAt = DateTimeOffset.FromUnixTimeSeconds(prop.Value.GetInt64());
@@ -260,6 +265,11 @@ internal static RunStep DeserializeRunStep(JsonElement element, ModelReaderWrite
status = new RunStepStatus(prop.Value.GetString());
continue;
}
+ if (prop.NameEquals("step_details"u8))
+ {
+ details = RunStepDetails.DeserializeRunStepDetails(prop.Value, options);
+ continue;
+ }
if (prop.NameEquals("last_error"u8))
{
if (prop.Value.ValueKind == JsonValueKind.Null)
@@ -342,27 +352,19 @@ internal static RunStep DeserializeRunStep(JsonElement element, ModelReaderWrite
usage = RunStepTokenUsage.DeserializeRunStepTokenUsage(prop.Value, options);
continue;
}
- if (prop.NameEquals("object"u8))
- {
- @object = prop.Value.GetString();
- continue;
- }
- if (prop.NameEquals("step_details"u8))
- {
- details = RunStepDetails.DeserializeRunStepDetails(prop.Value, options);
- continue;
- }
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
return new RunStep(
id,
+ @object,
createdAt,
assistantId,
threadId,
runId,
kind,
status,
+ details,
lastError,
expiredAt,
cancelledAt,
@@ -370,8 +372,6 @@ internal static RunStep DeserializeRunStep(JsonElement element, ModelReaderWrite
completedAt,
metadata,
usage,
- @object,
- details,
additionalBinaryDataProperties);
}
diff --git a/src/Generated/Models/Assistants/RunStep.cs b/src/Generated/Models/Assistants/RunStep.cs
index c0f33b39f..398f2c30c 100644
--- a/src/Generated/Models/Assistants/RunStep.cs
+++ b/src/Generated/Models/Assistants/RunStep.cs
@@ -14,7 +14,7 @@ public partial class RunStep
{
private protected IDictionary _additionalBinaryDataProperties;
- internal RunStep(string id, DateTimeOffset createdAt, string assistantId, string threadId, string runId, RunStepKind kind, RunStepStatus status, RunStepError lastError, DateTimeOffset? expiredAt, DateTimeOffset? cancelledAt, DateTimeOffset? failedAt, DateTimeOffset? completedAt, RunStepTokenUsage usage, RunStepDetails details)
+ internal RunStep(string id, DateTimeOffset createdAt, string assistantId, string threadId, string runId, RunStepKind kind, RunStepStatus status, RunStepDetails details, RunStepError lastError, DateTimeOffset? expiredAt, DateTimeOffset? cancelledAt, DateTimeOffset? failedAt, DateTimeOffset? completedAt, RunStepTokenUsage usage)
{
Id = id;
CreatedAt = createdAt;
@@ -23,6 +23,7 @@ internal RunStep(string id, DateTimeOffset createdAt, string assistantId, string
RunId = runId;
Kind = kind;
Status = status;
+ Details = details;
LastError = lastError;
ExpiredAt = expiredAt;
CancelledAt = cancelledAt;
@@ -30,19 +31,20 @@ internal RunStep(string id, DateTimeOffset createdAt, string assistantId, string
CompletedAt = completedAt;
Metadata = new ChangeTrackingDictionary();
Usage = usage;
- Details = details;
}
- internal RunStep(string id, DateTimeOffset createdAt, string assistantId, string threadId, string runId, RunStepKind kind, RunStepStatus status, RunStepError lastError, DateTimeOffset? expiredAt, DateTimeOffset? cancelledAt, DateTimeOffset? failedAt, DateTimeOffset? completedAt, IReadOnlyDictionary metadata, RunStepTokenUsage usage, string @object, RunStepDetails details, IDictionary additionalBinaryDataProperties)
+ internal RunStep(string id, string @object, DateTimeOffset createdAt, string assistantId, string threadId, string runId, RunStepKind kind, RunStepStatus status, RunStepDetails details, RunStepError lastError, DateTimeOffset? expiredAt, DateTimeOffset? cancelledAt, DateTimeOffset? failedAt, DateTimeOffset? completedAt, IReadOnlyDictionary metadata, RunStepTokenUsage usage, IDictionary additionalBinaryDataProperties)
{
// Plugin customization: ensure initialization of collections
Id = id;
+ Object = @object;
CreatedAt = createdAt;
AssistantId = assistantId;
ThreadId = threadId;
RunId = runId;
Kind = kind;
Status = status;
+ Details = details;
LastError = lastError;
ExpiredAt = expiredAt;
CancelledAt = cancelledAt;
@@ -50,8 +52,6 @@ internal RunStep(string id, DateTimeOffset createdAt, string assistantId, string
CompletedAt = completedAt;
Metadata = metadata ?? new ChangeTrackingDictionary();
Usage = usage;
- Object = @object;
- Details = details;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/RunStepFileSearchResultContent.Serialization.cs b/src/Generated/Models/Assistants/RunStepFileSearchResultContent.Serialization.cs
index 32f03bc92..de6fe49f3 100644
--- a/src/Generated/Models/Assistants/RunStepFileSearchResultContent.Serialization.cs
+++ b/src/Generated/Models/Assistants/RunStepFileSearchResultContent.Serialization.cs
@@ -30,16 +30,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(RunStepFileSearchResultContent)} does not support writing '{format}' format.");
}
- if (_additionalBinaryDataProperties?.ContainsKey("text") != true)
- {
- writer.WritePropertyName("text"u8);
- writer.WriteStringValue(Text);
- }
if (_additionalBinaryDataProperties?.ContainsKey("type") != true)
{
writer.WritePropertyName("type"u8);
writer.WriteStringValue(Kind.ToSerialString());
}
+ if (_additionalBinaryDataProperties?.ContainsKey("text") != true)
+ {
+ writer.WritePropertyName("text"u8);
+ writer.WriteStringValue(Text);
+ }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -81,25 +81,25 @@ internal static RunStepFileSearchResultContent DeserializeRunStepFileSearchResul
{
return null;
}
- string text = default;
RunStepFileSearchResultContentKind kind = default;
+ string text = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
- if (prop.NameEquals("text"u8))
+ if (prop.NameEquals("type"u8))
{
- text = prop.Value.GetString();
+ kind = prop.Value.GetString().ToRunStepFileSearchResultContentKind();
continue;
}
- if (prop.NameEquals("type"u8))
+ if (prop.NameEquals("text"u8))
{
- kind = prop.Value.GetString().ToRunStepFileSearchResultContentKind();
+ text = prop.Value.GetString();
continue;
}
// Plugin customization: remove options.Format != "W" check
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
- return new RunStepFileSearchResultContent(text, kind, additionalBinaryDataProperties);
+ return new RunStepFileSearchResultContent(kind, text, additionalBinaryDataProperties);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
diff --git a/src/Generated/Models/Assistants/RunStepFileSearchResultContent.cs b/src/Generated/Models/Assistants/RunStepFileSearchResultContent.cs
index 4f72bb9f3..ecab1a304 100644
--- a/src/Generated/Models/Assistants/RunStepFileSearchResultContent.cs
+++ b/src/Generated/Models/Assistants/RunStepFileSearchResultContent.cs
@@ -13,16 +13,16 @@ public partial class RunStepFileSearchResultContent
{
private protected IDictionary _additionalBinaryDataProperties;
- internal RunStepFileSearchResultContent(string text, RunStepFileSearchResultContentKind kind)
+ internal RunStepFileSearchResultContent(RunStepFileSearchResultContentKind kind, string text)
{
- Text = text;
Kind = kind;
+ Text = text;
}
- internal RunStepFileSearchResultContent(string text, RunStepFileSearchResultContentKind kind, IDictionary additionalBinaryDataProperties)
+ internal RunStepFileSearchResultContent(RunStepFileSearchResultContentKind kind, string text, IDictionary additionalBinaryDataProperties)
{
- Text = text;
Kind = kind;
+ Text = text;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
diff --git a/src/Generated/Models/Assistants/ThreadCreationOptions.Serialization.cs b/src/Generated/Models/Assistants/ThreadCreationOptions.Serialization.cs
index c618ee029..0de09e262 100644
--- a/src/Generated/Models/Assistants/ThreadCreationOptions.Serialization.cs
+++ b/src/Generated/Models/Assistants/ThreadCreationOptions.Serialization.cs
@@ -26,6 +26,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
{
throw new FormatException($"The model {nameof(ThreadCreationOptions)} does not support writing '{format}' format.");
}
+ if (Optional.IsCollectionDefined(InternalMessages) && _additionalBinaryDataProperties?.ContainsKey("messages") != true)
+ {
+ writer.WritePropertyName("messages"u8);
+ writer.WriteStartArray();
+ foreach (MessageCreationOptions item in InternalMessages)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(ToolResources) && _additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
+ {
+ writer.WritePropertyName("tool_resources"u8);
+ writer.WriteObjectValue(ToolResources, options);
+ }
if (Optional.IsCollectionDefined(Metadata) && _additionalBinaryDataProperties?.ContainsKey("metadata") != true)
{
writer.WritePropertyName("metadata"u8);
@@ -42,21 +57,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndObject();
}
- if (Optional.IsDefined(ToolResources) && _additionalBinaryDataProperties?.ContainsKey("tool_resources") != true)
- {
- writer.WritePropertyName("tool_resources"u8);
- writer.WriteObjectValue(ToolResources, options);
- }
- if (Optional.IsCollectionDefined(InternalMessages) && _additionalBinaryDataProperties?.ContainsKey("messages") != true)
- {
- writer.WritePropertyName("messages"u8);
- writer.WriteStartArray();
- foreach (MessageCreationOptions item in InternalMessages)
- {
- writer.WriteObjectValue(item, options);
- }
- writer.WriteEndArray();
- }
// Plugin customization: remove options.Format != "W" check
if (_additionalBinaryDataProperties != null)
{
@@ -98,31 +98,24 @@ internal static ThreadCreationOptions DeserializeThreadCreationOptions(JsonEleme
{
return null;
}
- IDictionary