diff --git a/package-lock.json b/package-lock.json index aea8d6a3adf..b3edf837ac0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,8 +7,8 @@ "name": "@autorest/csharp", "devDependencies": { "@azure-tools/cadl-ranch-specs": "0.38.0", - "@azure-tools/typespec-azure-resource-manager": "0.47.0", - "@azure-tools/typespec-client-generator-core": "0.47.1", + "@azure-tools/typespec-azure-resource-manager": "0.47.1", + "@azure-tools/typespec-client-generator-core": "0.47.4", "@azure-tools/typespec-csharp": "file:src/TypeSpec.Extension/Emitter.Csharp", "@azure-tools/unbranded-tests": "file:test/UnbrandedProjects", "@microsoft.azure/autorest.testserver": "3.3.50", @@ -336,9 +336,9 @@ } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.47.0.tgz", - "integrity": "sha512-pe9XhHJezTZtVlSVKIMhL1kRATMg6QSaXUZQhQmQKSuozVRsRBxI4IAhK3RU4p6SA8A2CoCpPeJpRhQTvdt73Q==", + "version": "0.47.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.47.1.tgz", + "integrity": "sha512-ZTrnHwPsc6aMVu6QghF7tPcKPVkt/ErHiEGP+vPXtb9iQh8YKMkkAl6jpvfnqMUqa1h3JkvOBCZM9w5FA84a6Q==", "dev": true, "license": "MIT", "dependencies": { @@ -374,9 +374,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.47.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.1.tgz", - "integrity": "sha512-kgjGnnOaHewa8PjmZcEY4+UrEMBrXhOpMxDuhlMnFfOvCo3uZc3FVryoNrDHkZ8weCn6sjxo8zHcj1lpCg4/uw==", + "version": "0.47.4", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.4.tgz", + "integrity": "sha512-oXA8rHzBsoofzSXvGLGohj6VDYegtgAfGMWo2o4ubew1bS4cvl3CYl9DJ54blqafxtJXnNh4SdjadeHTsCz2mw==", "dev": true, "license": "MIT", "dependencies": { @@ -2209,25 +2209,6 @@ } } }, - "node_modules/@typespec/http-client-csharp": { - "version": "0.1.9-alpha.20241104.2", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20241104.2.tgz", - "integrity": "sha512-gG5EMqI0Oufu2VIgKkFjzxd8RXSgyPtQ4tPNpbIiDtwzDgjrHJPer+EOJMBOlhP9H9o4WX0SdeTIlNYhePhJmw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-serialize-refs": "0.1.0-0" - }, - "peerDependencies": { - "@azure-tools/typespec-azure-core": ">=0.47.0 <1.0.0 || ~0.48.0-0", - "@azure-tools/typespec-client-generator-core": ">=0.47.1 <1.0.0 || ~0.48.0-0", - "@typespec/compiler": ">=0.61.2 <1.0.0 || ~0.62.0-0", - "@typespec/http": ">=0.61.0 <1.0.0 || ~0.62.0-0", - "@typespec/openapi": ">=0.61.0 <1.0.0 || ~0.62.0-0", - "@typespec/rest": ">=0.61.0 <1.0.0 || ~0.62.0-0", - "@typespec/versioning": ">=0.61.0 <1.0.0 || ~0.62.0-0" - } - }, "node_modules/@typespec/json-schema": { "version": "0.61.0", "resolved": "https://registry.npmjs.org/@typespec/json-schema/-/json-schema-0.61.0.tgz", @@ -7778,15 +7759,15 @@ "license": "MIT", "dependencies": { "@autorest/csharp": "3.0.0-beta.20240625.4", - "@typespec/http-client-csharp": "0.1.9-alpha.20241104.2", + "@typespec/http-client-csharp": "0.1.9-alpha.20241107.4", "json-serialize-refs": "0.1.0-0" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.47.0", "@azure-tools/typespec-azure-core": "0.47.0", - "@azure-tools/typespec-azure-resource-manager": "0.47.0", + "@azure-tools/typespec-azure-resource-manager": "0.47.1", "@azure-tools/typespec-azure-rulesets": "0.47.0", - "@azure-tools/typespec-client-generator-core": "0.47.1", + "@azure-tools/typespec-client-generator-core": "0.47.4", "@eslint/js": "^9.2.0", "@types/lodash.isequal": "^4.5.6", "@types/mocha": "~9.1.0", @@ -7824,6 +7805,25 @@ "@typespec/xml": ">=0.50.0 <1.0.0" } }, + "src/TypeSpec.Extension/Emitter.Csharp/node_modules/@typespec/http-client-csharp": { + "version": "0.1.9-alpha.20241107.4", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20241107.4.tgz", + "integrity": "sha512-0Eb9/tuR+jlPdy4HsOlR35BU7IwOCOCmNlCyrQEAGHWEprPuld/bAfx1Pd32DG436TMcVwul2yF+ylglUr+FhQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-serialize-refs": "0.1.0-0" + }, + "peerDependencies": { + "@azure-tools/typespec-azure-core": ">=0.47.0 <1.0.0 || ~0.48.0-0", + "@azure-tools/typespec-client-generator-core": ">=0.47.4 <1.0.0 || ~0.48.0-0", + "@typespec/compiler": ">=0.61.2 <1.0.0 || ~0.62.0-0", + "@typespec/http": ">=0.61.0 <1.0.0 || ~0.62.0-0", + "@typespec/openapi": ">=0.61.0 <1.0.0 || ~0.62.0-0", + "@typespec/rest": ">=0.61.0 <1.0.0 || ~0.62.0-0", + "@typespec/versioning": ">=0.61.0 <1.0.0 || ~0.62.0-0" + } + }, "src/TypeSpec.Extension/Emitter.Csharp/node_modules/prettier": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", @@ -8051,9 +8051,9 @@ "requires": {} }, "@azure-tools/typespec-azure-resource-manager": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.47.0.tgz", - "integrity": "sha512-pe9XhHJezTZtVlSVKIMhL1kRATMg6QSaXUZQhQmQKSuozVRsRBxI4IAhK3RU4p6SA8A2CoCpPeJpRhQTvdt73Q==", + "version": "0.47.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.47.1.tgz", + "integrity": "sha512-ZTrnHwPsc6aMVu6QghF7tPcKPVkt/ErHiEGP+vPXtb9iQh8YKMkkAl6jpvfnqMUqa1h3JkvOBCZM9w5FA84a6Q==", "dev": true, "requires": { "change-case": "~5.4.4", @@ -8068,9 +8068,9 @@ "requires": {} }, "@azure-tools/typespec-client-generator-core": { - "version": "0.47.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.1.tgz", - "integrity": "sha512-kgjGnnOaHewa8PjmZcEY4+UrEMBrXhOpMxDuhlMnFfOvCo3uZc3FVryoNrDHkZ8weCn6sjxo8zHcj1lpCg4/uw==", + "version": "0.47.4", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.4.tgz", + "integrity": "sha512-oXA8rHzBsoofzSXvGLGohj6VDYegtgAfGMWo2o4ubew1bS4cvl3CYl9DJ54blqafxtJXnNh4SdjadeHTsCz2mw==", "dev": true, "requires": { "change-case": "~5.4.4", @@ -8083,9 +8083,9 @@ "@autorest/csharp": "3.0.0-beta.20240625.4", "@azure-tools/typespec-autorest": "0.47.0", "@azure-tools/typespec-azure-core": "0.47.0", - "@azure-tools/typespec-azure-resource-manager": "0.47.0", + "@azure-tools/typespec-azure-resource-manager": "0.47.1", "@azure-tools/typespec-azure-rulesets": "0.47.0", - "@azure-tools/typespec-client-generator-core": "0.47.1", + "@azure-tools/typespec-client-generator-core": "0.47.4", "@eslint/js": "^9.2.0", "@types/lodash.isequal": "^4.5.6", "@types/mocha": "~9.1.0", @@ -8093,7 +8093,7 @@ "@types/prettier": "^2.6.3", "@typespec/compiler": "0.61.2", "@typespec/http": "0.61.0", - "@typespec/http-client-csharp": "0.1.9-alpha.20241104.2", + "@typespec/http-client-csharp": "0.1.9-alpha.20241107.4", "@typespec/json-schema": "0.61.0", "@typespec/library-linter": "0.61.0", "@typespec/openapi": "0.61.0", @@ -8112,6 +8112,15 @@ "vitest": "^1.4.0" }, "dependencies": { + "@typespec/http-client-csharp": { + "version": "0.1.9-alpha.20241107.4", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20241107.4.tgz", + "integrity": "sha512-0Eb9/tuR+jlPdy4HsOlR35BU7IwOCOCmNlCyrQEAGHWEprPuld/bAfx1Pd32DG436TMcVwul2yF+ylglUr+FhQ==", + "dev": true, + "requires": { + "json-serialize-refs": "0.1.0-0" + } + }, "prettier": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", @@ -9284,15 +9293,6 @@ "dev": true, "requires": {} }, - "@typespec/http-client-csharp": { - "version": "0.1.9-alpha.20241104.2", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20241104.2.tgz", - "integrity": "sha512-gG5EMqI0Oufu2VIgKkFjzxd8RXSgyPtQ4tPNpbIiDtwzDgjrHJPer+EOJMBOlhP9H9o4WX0SdeTIlNYhePhJmw==", - "dev": true, - "requires": { - "json-serialize-refs": "0.1.0-0" - } - }, "@typespec/json-schema": { "version": "0.61.0", "resolved": "https://registry.npmjs.org/@typespec/json-schema/-/json-schema-0.61.0.tgz", diff --git a/package.json b/package.json index 9e3c91ead70..96caa359a95 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ }, "devDependencies": { "@azure-tools/cadl-ranch-specs": "0.38.0", - "@azure-tools/typespec-client-generator-core": "0.47.1", - "@azure-tools/typespec-azure-resource-manager": "0.47.0", + "@azure-tools/typespec-client-generator-core": "0.47.4", + "@azure-tools/typespec-azure-resource-manager": "0.47.1", "@azure-tools/typespec-csharp": "file:src/TypeSpec.Extension/Emitter.Csharp", "@azure-tools/unbranded-tests": "file:test/UnbrandedProjects", "@microsoft.azure/autorest.testserver": "3.3.50", diff --git a/src/TypeSpec.Extension/Emitter.Csharp/package.json b/src/TypeSpec.Extension/Emitter.Csharp/package.json index 94dc595ddce..58077394d50 100644 --- a/src/TypeSpec.Extension/Emitter.Csharp/package.json +++ b/src/TypeSpec.Extension/Emitter.Csharp/package.json @@ -36,7 +36,7 @@ "dependencies": { "@autorest/csharp": "3.0.0-beta.20240625.4", "json-serialize-refs": "0.1.0-0", - "@typespec/http-client-csharp": "0.1.9-alpha.20241104.2" + "@typespec/http-client-csharp": "0.1.9-alpha.20241107.4" }, "peerDependencies": { "@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0", @@ -53,8 +53,8 @@ }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.47.0", - "@azure-tools/typespec-client-generator-core": "0.47.1", - "@azure-tools/typespec-azure-resource-manager": "0.47.0", + "@azure-tools/typespec-client-generator-core": "0.47.4", + "@azure-tools/typespec-azure-resource-manager": "0.47.1", "@azure-tools/typespec-azure-rulesets": "0.47.0", "@azure-tools/typespec-autorest": "0.47.0", "@eslint/js": "^9.2.0", diff --git a/test/CadlRanchProjects/type/array/tspCodeModel.json b/test/CadlRanchProjects/type/array/tspCodeModel.json index 1df76335c9f..3fecf5468b8 100644 --- a/test/CadlRanchProjects/type/array/tspCodeModel.json +++ b/test/CadlRanchProjects/type/array/tspCodeModel.json @@ -2086,15 +2086,7 @@ "kind": "array", "name": "Array", "valueType": { - "$id": "219", - "kind": "nullable", - "type": { - "$id": "220", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - } + "$ref": "211" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2112,7 +2104,7 @@ ], "Responses": [ { - "$id": "221", + "$id": "219", "StatusCodes": [ 204 ], @@ -2136,17 +2128,17 @@ } ], "Protocol": { - "$id": "222" + "$id": "220" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "223", + "$id": "221", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "224", + "$id": "222", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2161,9 +2153,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "225", + "$id": "223", "Type": { - "$id": "226", + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2175,25 +2167,25 @@ "Decorators": [] }, { - "$id": "227", + "$id": "225", "Name": "NullableInt32Value", "Description": "Array of nullable int32 values", "Operations": [ { - "$id": "228", + "$id": "226", "Name": "get", "ResourceName": "NullableInt32Value", "Accessibility": "public", "Parameters": [ { - "$id": "229", + "$id": "227", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "230", + "$id": "228", "kind": "constant", "valueType": { - "$id": "231", + "$id": "229", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2215,19 +2207,19 @@ ], "Responses": [ { - "$id": "232", + "$id": "230", "StatusCodes": [ 200 ], "BodyType": { - "$id": "233", + "$id": "231", "kind": "array", "name": "Array", "valueType": { - "$id": "234", + "$id": "232", "kind": "nullable", "type": { - "$id": "235", + "$id": "233", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2256,21 +2248,21 @@ "Decorators": [] }, { - "$id": "236", + "$id": "234", "Name": "put", "ResourceName": "NullableInt32Value", "Accessibility": "public", "Parameters": [ { - "$id": "237", + "$id": "235", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "238", + "$id": "236", "kind": "constant", "valueType": { - "$id": "239", + "$id": "237", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2290,23 +2282,15 @@ "SkipUrlEncoding": false }, { - "$id": "240", + "$id": "238", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "241", + "$id": "239", "kind": "array", "name": "Array", "valueType": { - "$id": "242", - "kind": "nullable", - "type": { - "$id": "243", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - } + "$ref": "232" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2324,7 +2308,7 @@ ], "Responses": [ { - "$id": "244", + "$id": "240", "StatusCodes": [ 204 ], @@ -2348,17 +2332,17 @@ } ], "Protocol": { - "$id": "245" + "$id": "241" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "246", + "$id": "242", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "247", + "$id": "243", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2373,9 +2357,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "248", + "$id": "244", "Type": { - "$id": "249", + "$id": "245", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2387,25 +2371,25 @@ "Decorators": [] }, { - "$id": "250", + "$id": "246", "Name": "NullableBooleanValue", "Description": "Array of nullable boolean values", "Operations": [ { - "$id": "251", + "$id": "247", "Name": "get", "ResourceName": "NullableBooleanValue", "Accessibility": "public", "Parameters": [ { - "$id": "252", + "$id": "248", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "253", + "$id": "249", "kind": "constant", "valueType": { - "$id": "254", + "$id": "250", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2427,19 +2411,19 @@ ], "Responses": [ { - "$id": "255", + "$id": "251", "StatusCodes": [ 200 ], "BodyType": { - "$id": "256", + "$id": "252", "kind": "array", "name": "Array", "valueType": { - "$id": "257", + "$id": "253", "kind": "nullable", "type": { - "$id": "258", + "$id": "254", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -2468,21 +2452,21 @@ "Decorators": [] }, { - "$id": "259", + "$id": "255", "Name": "put", "ResourceName": "NullableBooleanValue", "Accessibility": "public", "Parameters": [ { - "$id": "260", + "$id": "256", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "261", + "$id": "257", "kind": "constant", "valueType": { - "$id": "262", + "$id": "258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2502,23 +2486,15 @@ "SkipUrlEncoding": false }, { - "$id": "263", + "$id": "259", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "264", + "$id": "260", "kind": "array", "name": "Array", "valueType": { - "$id": "265", - "kind": "nullable", - "type": { - "$id": "266", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } + "$ref": "253" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2536,7 +2512,7 @@ ], "Responses": [ { - "$id": "267", + "$id": "261", "StatusCodes": [ 204 ], @@ -2560,17 +2536,17 @@ } ], "Protocol": { - "$id": "268" + "$id": "262" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "269", + "$id": "263", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "270", + "$id": "264", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2585,9 +2561,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "271", + "$id": "265", "Type": { - "$id": "272", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2599,25 +2575,25 @@ "Decorators": [] }, { - "$id": "273", + "$id": "267", "Name": "NullableStringValue", "Description": "Array of nullable string values", "Operations": [ { - "$id": "274", + "$id": "268", "Name": "get", "ResourceName": "NullableStringValue", "Accessibility": "public", "Parameters": [ { - "$id": "275", + "$id": "269", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "276", + "$id": "270", "kind": "constant", "valueType": { - "$id": "277", + "$id": "271", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2639,19 +2615,19 @@ ], "Responses": [ { - "$id": "278", + "$id": "272", "StatusCodes": [ 200 ], "BodyType": { - "$id": "279", + "$id": "273", "kind": "array", "name": "Array", "valueType": { - "$id": "280", + "$id": "274", "kind": "nullable", "type": { - "$id": "281", + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2680,21 +2656,21 @@ "Decorators": [] }, { - "$id": "282", + "$id": "276", "Name": "put", "ResourceName": "NullableStringValue", "Accessibility": "public", "Parameters": [ { - "$id": "283", + "$id": "277", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "284", + "$id": "278", "kind": "constant", "valueType": { - "$id": "285", + "$id": "279", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2714,23 +2690,15 @@ "SkipUrlEncoding": false }, { - "$id": "286", + "$id": "280", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "287", + "$id": "281", "kind": "array", "name": "Array", "valueType": { - "$id": "288", - "kind": "nullable", - "type": { - "$id": "289", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - } + "$ref": "274" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2748,7 +2716,7 @@ ], "Responses": [ { - "$id": "290", + "$id": "282", "StatusCodes": [ 204 ], @@ -2772,17 +2740,17 @@ } ], "Protocol": { - "$id": "291" + "$id": "283" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "292", + "$id": "284", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "293", + "$id": "285", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2797,9 +2765,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "294", + "$id": "286", "Type": { - "$id": "295", + "$id": "287", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2811,25 +2779,25 @@ "Decorators": [] }, { - "$id": "296", + "$id": "288", "Name": "NullableModelValue", "Description": "Array of nullable model values", "Operations": [ { - "$id": "297", + "$id": "289", "Name": "get", "ResourceName": "NullableModelValue", "Accessibility": "public", "Parameters": [ { - "$id": "298", + "$id": "290", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "299", + "$id": "291", "kind": "constant", "valueType": { - "$id": "300", + "$id": "292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2851,16 +2819,16 @@ ], "Responses": [ { - "$id": "301", + "$id": "293", "StatusCodes": [ 200 ], "BodyType": { - "$id": "302", + "$id": "294", "kind": "array", "name": "Array", "valueType": { - "$id": "303", + "$id": "295", "kind": "nullable", "type": { "$ref": "2" @@ -2888,21 +2856,21 @@ "Decorators": [] }, { - "$id": "304", + "$id": "296", "Name": "put", "ResourceName": "NullableModelValue", "Accessibility": "public", "Parameters": [ { - "$id": "305", + "$id": "297", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "306", + "$id": "298", "kind": "constant", "valueType": { - "$id": "307", + "$id": "299", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2922,19 +2890,15 @@ "SkipUrlEncoding": false }, { - "$id": "308", + "$id": "300", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "309", + "$id": "301", "kind": "array", "name": "Array", "valueType": { - "$id": "310", - "kind": "nullable", - "type": { - "$ref": "2" - } + "$ref": "295" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2952,7 +2916,7 @@ ], "Responses": [ { - "$id": "311", + "$id": "302", "StatusCodes": [ 204 ], @@ -2976,17 +2940,17 @@ } ], "Protocol": { - "$id": "312" + "$id": "303" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "313", + "$id": "304", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "314", + "$id": "305", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3001,9 +2965,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "315", + "$id": "306", "Type": { - "$id": "316", + "$id": "307", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/test/CadlRanchProjects/type/dictionary/tspCodeModel.json b/test/CadlRanchProjects/type/dictionary/tspCodeModel.json index a611774e040..870aab372bd 100644 --- a/test/CadlRanchProjects/type/dictionary/tspCodeModel.json +++ b/test/CadlRanchProjects/type/dictionary/tspCodeModel.json @@ -2398,15 +2398,7 @@ "decorators": [] }, "valueType": { - "$id": "261", - "kind": "nullable", - "type": { - "$id": "262", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - } + "$ref": "252" }, "decorators": [] }, @@ -2423,7 +2415,7 @@ ], "Responses": [ { - "$id": "263", + "$id": "261", "StatusCodes": [ 204 ], @@ -2447,17 +2439,17 @@ } ], "Protocol": { - "$id": "264" + "$id": "262" }, "Parent": "DictionaryClient", "Parameters": [ { - "$id": "265", + "$id": "263", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "266", + "$id": "264", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2472,9 +2464,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "267", + "$id": "265", "Type": { - "$id": "268", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/test/CadlRanchProjects/type/union/tspCodeModel.json b/test/CadlRanchProjects/type/union/tspCodeModel.json index bc9f0381888..d2537a386a6 100644 --- a/test/CadlRanchProjects/type/union/tspCodeModel.json +++ b/test/CadlRanchProjects/type/union/tspCodeModel.json @@ -566,42 +566,7 @@ "serializedName": "literal", "description": "This should be receive/send the \"a\" variant", "type": { - "$id": "67", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "68", - "kind": "constant", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "70", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "71", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "optional": false, "readOnly": false, @@ -611,48 +576,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.literal" }, { - "$id": "72", + "$id": "67", "kind": "property", "name": "int", "serializedName": "int", "description": "This should be receive/send the int variant", "type": { - "$id": "73", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "74", - "kind": "constant", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "76", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "77", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "optional": false, "readOnly": false, @@ -662,48 +592,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.int" }, { - "$id": "78", + "$id": "68", "kind": "property", "name": "boolean", "serializedName": "boolean", "description": "This should be receive/send the boolean variant", "type": { - "$id": "79", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "80", - "kind": "constant", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "82", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "83", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "optional": false, "readOnly": false, @@ -713,52 +608,17 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.boolean" }, { - "$id": "84", + "$id": "69", "kind": "property", "name": "array", "serializedName": "array", "description": "This should be receive/send 4 element with Cat, \"a\", int, and boolean", "type": { - "$id": "85", + "$id": "70", "kind": "array", "name": "Array", "valueType": { - "$id": "86", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "87", - "kind": "constant", - "valueType": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "89", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "90", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -788,7 +648,7 @@ "$ref": "59" }, { - "$id": "91", + "$id": "71", "kind": "model", "name": "SendRequest", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -796,7 +656,7 @@ "decorators": [], "properties": [ { - "$id": "92", + "$id": "72", "kind": "property", "name": "prop", "serializedName": "prop", @@ -813,7 +673,7 @@ ] }, { - "$id": "93", + "$id": "73", "kind": "model", "name": "GetResponse1", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -821,12 +681,12 @@ "decorators": [], "properties": [ { - "$id": "94", + "$id": "74", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "95", + "$id": "75", "kind": "model", "name": "MixedLiteralsCases", "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases", @@ -834,21 +694,21 @@ "decorators": [], "properties": [ { - "$id": "96", + "$id": "76", "kind": "property", "name": "stringLiteral", "serializedName": "stringLiteral", "description": "This should be receive/send the \"a\" variant", "type": { - "$id": "97", + "$id": "77", "kind": "union", "name": "MixedLiteralsCasesStringLiteral1", "variantTypes": [ { - "$id": "98", + "$id": "78", "kind": "constant", "valueType": { - "$id": "99", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -858,10 +718,10 @@ "decorators": [] }, { - "$id": "100", + "$id": "80", "kind": "constant", "valueType": { - "$id": "101", + "$id": "81", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -871,10 +731,10 @@ "decorators": [] }, { - "$id": "102", + "$id": "82", "kind": "constant", "valueType": { - "$id": "103", + "$id": "83", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -884,10 +744,10 @@ "decorators": [] }, { - "$id": "104", + "$id": "84", "kind": "constant", "valueType": { - "$id": "105", + "$id": "85", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -907,70 +767,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.stringLiteral" }, { - "$id": "106", + "$id": "86", "kind": "property", "name": "intLiteral", "serializedName": "intLiteral", "description": "This should be receive/send the 2 variant", "type": { - "$id": "107", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral1", - "variantTypes": [ - { - "$id": "108", - "kind": "constant", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "110", - "kind": "constant", - "valueType": { - "$id": "111", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "112", - "kind": "constant", - "valueType": { - "$id": "113", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "114", - "kind": "constant", - "valueType": { - "$id": "115", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - } - ], - "decorators": [] + "$ref": "77" }, "optional": false, "readOnly": false, @@ -980,70 +783,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.intLiteral" }, { - "$id": "116", + "$id": "87", "kind": "property", "name": "floatLiteral", "serializedName": "floatLiteral", "description": "This should be receive/send the 3.3 variant", "type": { - "$id": "117", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral1", - "variantTypes": [ - { - "$id": "118", - "kind": "constant", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "120", - "kind": "constant", - "valueType": { - "$id": "121", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "122", - "kind": "constant", - "valueType": { - "$id": "123", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "124", - "kind": "constant", - "valueType": { - "$id": "125", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - } - ], - "decorators": [] + "$ref": "77" }, "optional": false, "readOnly": false, @@ -1053,70 +799,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.floatLiteral" }, { - "$id": "126", + "$id": "88", "kind": "property", "name": "booleanLiteral", "serializedName": "booleanLiteral", "description": "This should be receive/send the true variant", "type": { - "$id": "127", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral1", - "variantTypes": [ - { - "$id": "128", - "kind": "constant", - "valueType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "130", - "kind": "constant", - "valueType": { - "$id": "131", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "132", - "kind": "constant", - "valueType": { - "$id": "133", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "134", - "kind": "constant", - "valueType": { - "$id": "135", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - } - ], - "decorators": [] + "$ref": "77" }, "optional": false, "readOnly": false, @@ -1137,10 +826,10 @@ ] }, { - "$ref": "95" + "$ref": "75" }, { - "$id": "136", + "$id": "89", "kind": "model", "name": "SendRequest1", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1148,12 +837,12 @@ "decorators": [], "properties": [ { - "$id": "137", + "$id": "90", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "95" + "$ref": "75" }, "optional": false, "readOnly": false, @@ -1165,7 +854,7 @@ ] }, { - "$id": "138", + "$id": "91", "kind": "model", "name": "GetResponse2", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1173,12 +862,12 @@ "decorators": [], "properties": [ { - "$id": "139", + "$id": "92", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "140", + "$id": "93", "kind": "model", "name": "StringAndArrayCases", "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases", @@ -1186,29 +875,29 @@ "decorators": [], "properties": [ { - "$id": "141", + "$id": "94", "kind": "property", "name": "string", "serializedName": "string", "description": "This should be receive/send the string variant", "type": { - "$id": "142", + "$id": "95", "kind": "union", "name": "StringAndArrayCasesString", "variantTypes": [ { - "$id": "143", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "144", + "$id": "97", "kind": "array", "name": "Array", "valueType": { - "$id": "145", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1228,29 +917,29 @@ "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases.string" }, { - "$id": "146", + "$id": "99", "kind": "property", "name": "array", "serializedName": "array", "description": "This should be receive/send the array variant", "type": { - "$id": "147", + "$id": "100", "kind": "union", "name": "StringAndArrayCasesArray", "variantTypes": [ { - "$id": "148", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "149", + "$id": "102", "kind": "array", "name": "Array", "valueType": { - "$id": "150", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1281,10 +970,10 @@ ] }, { - "$ref": "140" + "$ref": "93" }, { - "$id": "151", + "$id": "104", "kind": "model", "name": "SendRequest2", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1292,12 +981,12 @@ "decorators": [], "properties": [ { - "$id": "152", + "$id": "105", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "140" + "$ref": "93" }, "optional": false, "readOnly": false, @@ -1309,7 +998,7 @@ ] }, { - "$id": "153", + "$id": "106", "kind": "model", "name": "GetResponse3", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1317,12 +1006,12 @@ "decorators": [], "properties": [ { - "$id": "154", + "$id": "107", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "155", + "$id": "108", "kind": "model", "name": "EnumsOnlyCases", "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases", @@ -1330,7 +1019,7 @@ "decorators": [], "properties": [ { - "$id": "156", + "$id": "109", "kind": "property", "name": "lr", "serializedName": "lr", @@ -1346,7 +1035,7 @@ "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr" }, { - "$id": "157", + "$id": "110", "kind": "property", "name": "ud", "serializedName": "ud", @@ -1373,10 +1062,10 @@ ] }, { - "$ref": "155" + "$ref": "108" }, { - "$id": "158", + "$id": "111", "kind": "model", "name": "SendRequest3", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1384,12 +1073,12 @@ "decorators": [], "properties": [ { - "$id": "159", + "$id": "112", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "155" + "$ref": "108" }, "optional": false, "readOnly": false, @@ -1401,7 +1090,7 @@ ] }, { - "$id": "160", + "$id": "113", "kind": "model", "name": "GetResponse4", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1409,12 +1098,12 @@ "decorators": [], "properties": [ { - "$id": "161", + "$id": "114", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "162", + "$id": "115", "kind": "union", "name": "GetResponseProp", "variantTypes": [ @@ -1422,7 +1111,7 @@ "$ref": "59" }, { - "$id": "163", + "$id": "116", "kind": "model", "name": "Dog", "crossLanguageDefinitionId": "Type.Union.Dog", @@ -1430,12 +1119,12 @@ "decorators": [], "properties": [ { - "$id": "164", + "$id": "117", "kind": "property", "name": "bark", "serializedName": "bark", "type": { - "$id": "165", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1463,10 +1152,10 @@ ] }, { - "$ref": "163" + "$ref": "116" }, { - "$id": "166", + "$id": "119", "kind": "model", "name": "SendRequest4", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1474,23 +1163,12 @@ "decorators": [], "properties": [ { - "$id": "167", + "$id": "120", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "168", - "kind": "union", - "name": "GetResponseProp", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$ref": "163" - } - ], - "decorators": [] + "$ref": "115" }, "optional": false, "readOnly": false, @@ -1502,7 +1180,7 @@ ] }, { - "$id": "169", + "$id": "121", "kind": "model", "name": "GetResponse5", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1510,7 +1188,7 @@ "decorators": [], "properties": [ { - "$id": "170", + "$id": "122", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1527,7 +1205,7 @@ ] }, { - "$id": "171", + "$id": "123", "kind": "model", "name": "SendRequest5", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1535,7 +1213,7 @@ "decorators": [], "properties": [ { - "$id": "172", + "$id": "124", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1552,7 +1230,7 @@ ] }, { - "$id": "173", + "$id": "125", "kind": "model", "name": "GetResponse6", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1560,7 +1238,7 @@ "decorators": [], "properties": [ { - "$id": "174", + "$id": "126", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1577,7 +1255,7 @@ ] }, { - "$id": "175", + "$id": "127", "kind": "model", "name": "SendRequest6", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1585,7 +1263,7 @@ "decorators": [], "properties": [ { - "$id": "176", + "$id": "128", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1602,7 +1280,7 @@ ] }, { - "$id": "177", + "$id": "129", "kind": "model", "name": "GetResponse7", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1610,7 +1288,7 @@ "decorators": [], "properties": [ { - "$id": "178", + "$id": "130", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1627,7 +1305,7 @@ ] }, { - "$id": "179", + "$id": "131", "kind": "model", "name": "SendRequest7", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1635,7 +1313,7 @@ "decorators": [], "properties": [ { - "$id": "180", + "$id": "132", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1652,7 +1330,7 @@ ] }, { - "$id": "181", + "$id": "133", "kind": "model", "name": "GetResponse8", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1660,7 +1338,7 @@ "decorators": [], "properties": [ { - "$id": "182", + "$id": "134", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1677,7 +1355,7 @@ ] }, { - "$id": "183", + "$id": "135", "kind": "model", "name": "SendRequest8", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1685,7 +1363,7 @@ "decorators": [], "properties": [ { - "$id": "184", + "$id": "136", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1702,7 +1380,7 @@ ] }, { - "$id": "185", + "$id": "137", "kind": "model", "name": "GetResponse9", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1710,7 +1388,7 @@ "decorators": [], "properties": [ { - "$id": "186", + "$id": "138", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1727,7 +1405,7 @@ ] }, { - "$id": "187", + "$id": "139", "kind": "model", "name": "SendRequest9", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1735,7 +1413,7 @@ "decorators": [], "properties": [ { - "$id": "188", + "$id": "140", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1754,21 +1432,21 @@ ], "Clients": [ { - "$id": "189", + "$id": "141", "Name": "UnionClient", "Description": "Describe scenarios for various combinations of unions.", "Operations": [], "Protocol": { - "$id": "190" + "$id": "142" }, "Parameters": [ { - "$id": "191", + "$id": "143", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "192", + "$id": "144", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1783,9 +1461,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "193", + "$id": "145", "Type": { - "$id": "194", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1797,25 +1475,25 @@ "Decorators": [] }, { - "$id": "195", + "$id": "147", "Name": "StringsOnly", "Description": "Describe union of string \"a\" | \"b\" | \"c\"", "Operations": [ { - "$id": "196", + "$id": "148", "Name": "get", "ResourceName": "StringsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "197", + "$id": "149", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "198", + "$id": "150", "kind": "constant", "valueType": { - "$id": "199", + "$id": "151", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1837,12 +1515,12 @@ ], "Responses": [ { - "$id": "200", + "$id": "152", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "185" + "$ref": "137" }, "BodyMediaType": "Json", "Headers": [], @@ -1863,21 +1541,21 @@ "Decorators": [] }, { - "$id": "201", + "$id": "153", "Name": "send", "ResourceName": "StringsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "202", + "$id": "154", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "203", + "$id": "155", "kind": "constant", "valueType": { - "$id": "204", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1897,11 +1575,11 @@ "SkipUrlEncoding": false }, { - "$id": "205", + "$id": "157", "Name": "sendRequest9", "NameInRequest": "sendRequest9", "Type": { - "$ref": "187" + "$ref": "139" }, "Location": "Body", "IsApiVersion": false, @@ -1916,7 +1594,7 @@ ], "Responses": [ { - "$id": "206", + "$id": "158", "StatusCodes": [ 204 ], @@ -1940,17 +1618,17 @@ } ], "Protocol": { - "$id": "207" + "$id": "159" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "208", + "$id": "160", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "209", + "$id": "161", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1965,9 +1643,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "210", + "$id": "162", "Type": { - "$id": "211", + "$id": "163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1979,25 +1657,25 @@ "Decorators": [] }, { - "$id": "212", + "$id": "164", "Name": "StringExtensible", "Description": "Describe union of string string | \"b\" | \"c\"", "Operations": [ { - "$id": "213", + "$id": "165", "Name": "get", "ResourceName": "StringExtensible", "Accessibility": "public", "Parameters": [ { - "$id": "214", + "$id": "166", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "215", + "$id": "167", "kind": "constant", "valueType": { - "$id": "216", + "$id": "168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2019,12 +1697,12 @@ ], "Responses": [ { - "$id": "217", + "$id": "169", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "181" + "$ref": "133" }, "BodyMediaType": "Json", "Headers": [], @@ -2045,21 +1723,21 @@ "Decorators": [] }, { - "$id": "218", + "$id": "170", "Name": "send", "ResourceName": "StringExtensible", "Accessibility": "public", "Parameters": [ { - "$id": "219", + "$id": "171", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "220", + "$id": "172", "kind": "constant", "valueType": { - "$id": "221", + "$id": "173", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2079,11 +1757,11 @@ "SkipUrlEncoding": false }, { - "$id": "222", + "$id": "174", "Name": "sendRequest8", "NameInRequest": "sendRequest8", "Type": { - "$ref": "183" + "$ref": "135" }, "Location": "Body", "IsApiVersion": false, @@ -2098,7 +1776,7 @@ ], "Responses": [ { - "$id": "223", + "$id": "175", "StatusCodes": [ 204 ], @@ -2122,17 +1800,17 @@ } ], "Protocol": { - "$id": "224" + "$id": "176" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "225", + "$id": "177", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "226", + "$id": "178", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2147,9 +1825,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "227", + "$id": "179", "Type": { - "$id": "228", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2161,25 +1839,25 @@ "Decorators": [] }, { - "$id": "229", + "$id": "181", "Name": "StringExtensibleNamed", "Description": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", "Operations": [ { - "$id": "230", + "$id": "182", "Name": "get", "ResourceName": "StringExtensibleNamed", "Accessibility": "public", "Parameters": [ { - "$id": "231", + "$id": "183", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "232", + "$id": "184", "kind": "constant", "valueType": { - "$id": "233", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2201,12 +1879,12 @@ ], "Responses": [ { - "$id": "234", + "$id": "186", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "177" + "$ref": "129" }, "BodyMediaType": "Json", "Headers": [], @@ -2227,21 +1905,21 @@ "Decorators": [] }, { - "$id": "235", + "$id": "187", "Name": "send", "ResourceName": "StringExtensibleNamed", "Accessibility": "public", "Parameters": [ { - "$id": "236", + "$id": "188", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "237", + "$id": "189", "kind": "constant", "valueType": { - "$id": "238", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2261,11 +1939,11 @@ "SkipUrlEncoding": false }, { - "$id": "239", + "$id": "191", "Name": "sendRequest7", "NameInRequest": "sendRequest7", "Type": { - "$ref": "179" + "$ref": "131" }, "Location": "Body", "IsApiVersion": false, @@ -2280,7 +1958,7 @@ ], "Responses": [ { - "$id": "240", + "$id": "192", "StatusCodes": [ 204 ], @@ -2304,17 +1982,17 @@ } ], "Protocol": { - "$id": "241" + "$id": "193" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "242", + "$id": "194", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "243", + "$id": "195", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2329,9 +2007,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "244", + "$id": "196", "Type": { - "$id": "245", + "$id": "197", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2343,25 +2021,25 @@ "Decorators": [] }, { - "$id": "246", + "$id": "198", "Name": "IntsOnly", "Description": "Describe union of integer 1 | 2 | 3", "Operations": [ { - "$id": "247", + "$id": "199", "Name": "get", "ResourceName": "IntsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "248", + "$id": "200", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "249", + "$id": "201", "kind": "constant", "valueType": { - "$id": "250", + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2383,12 +2061,12 @@ ], "Responses": [ { - "$id": "251", + "$id": "203", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "173" + "$ref": "125" }, "BodyMediaType": "Json", "Headers": [], @@ -2409,21 +2087,21 @@ "Decorators": [] }, { - "$id": "252", + "$id": "204", "Name": "send", "ResourceName": "IntsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "253", + "$id": "205", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "254", + "$id": "206", "kind": "constant", "valueType": { - "$id": "255", + "$id": "207", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2443,11 +2121,11 @@ "SkipUrlEncoding": false }, { - "$id": "256", + "$id": "208", "Name": "sendRequest6", "NameInRequest": "sendRequest6", "Type": { - "$ref": "175" + "$ref": "127" }, "Location": "Body", "IsApiVersion": false, @@ -2462,7 +2140,7 @@ ], "Responses": [ { - "$id": "257", + "$id": "209", "StatusCodes": [ 204 ], @@ -2486,17 +2164,17 @@ } ], "Protocol": { - "$id": "258" + "$id": "210" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "259", + "$id": "211", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "260", + "$id": "212", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2511,9 +2189,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "261", + "$id": "213", "Type": { - "$id": "262", + "$id": "214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2525,25 +2203,25 @@ "Decorators": [] }, { - "$id": "263", + "$id": "215", "Name": "FloatsOnly", "Description": "Describe union of floats 1.1 | 2.2 | 3.3", "Operations": [ { - "$id": "264", + "$id": "216", "Name": "get", "ResourceName": "FloatsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "265", + "$id": "217", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "266", + "$id": "218", "kind": "constant", "valueType": { - "$id": "267", + "$id": "219", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2565,12 +2243,12 @@ ], "Responses": [ { - "$id": "268", + "$id": "220", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "169" + "$ref": "121" }, "BodyMediaType": "Json", "Headers": [], @@ -2591,21 +2269,21 @@ "Decorators": [] }, { - "$id": "269", + "$id": "221", "Name": "send", "ResourceName": "FloatsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "270", + "$id": "222", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "271", + "$id": "223", "kind": "constant", "valueType": { - "$id": "272", + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2625,11 +2303,11 @@ "SkipUrlEncoding": false }, { - "$id": "273", + "$id": "225", "Name": "sendRequest5", "NameInRequest": "sendRequest5", "Type": { - "$ref": "171" + "$ref": "123" }, "Location": "Body", "IsApiVersion": false, @@ -2644,7 +2322,7 @@ ], "Responses": [ { - "$id": "274", + "$id": "226", "StatusCodes": [ 204 ], @@ -2668,17 +2346,17 @@ } ], "Protocol": { - "$id": "275" + "$id": "227" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "276", + "$id": "228", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "277", + "$id": "229", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2693,9 +2371,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "278", + "$id": "230", "Type": { - "$id": "279", + "$id": "231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2707,25 +2385,25 @@ "Decorators": [] }, { - "$id": "280", + "$id": "232", "Name": "ModelsOnly", "Description": "Describe union of models", "Operations": [ { - "$id": "281", + "$id": "233", "Name": "get", "ResourceName": "ModelsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "282", + "$id": "234", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "283", + "$id": "235", "kind": "constant", "valueType": { - "$id": "284", + "$id": "236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2747,12 +2425,12 @@ ], "Responses": [ { - "$id": "285", + "$id": "237", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "160" + "$ref": "113" }, "BodyMediaType": "Json", "Headers": [], @@ -2773,21 +2451,21 @@ "Decorators": [] }, { - "$id": "286", + "$id": "238", "Name": "send", "ResourceName": "ModelsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "287", + "$id": "239", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "288", + "$id": "240", "kind": "constant", "valueType": { - "$id": "289", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2807,11 +2485,11 @@ "SkipUrlEncoding": false }, { - "$id": "290", + "$id": "242", "Name": "sendRequest4", "NameInRequest": "sendRequest4", "Type": { - "$ref": "166" + "$ref": "119" }, "Location": "Body", "IsApiVersion": false, @@ -2826,7 +2504,7 @@ ], "Responses": [ { - "$id": "291", + "$id": "243", "StatusCodes": [ 204 ], @@ -2850,17 +2528,17 @@ } ], "Protocol": { - "$id": "292" + "$id": "244" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "293", + "$id": "245", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "294", + "$id": "246", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2875,9 +2553,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "295", + "$id": "247", "Type": { - "$id": "296", + "$id": "248", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2889,25 +2567,25 @@ "Decorators": [] }, { - "$id": "297", + "$id": "249", "Name": "EnumsOnly", "Description": "Describe union of 2 different enums", "Operations": [ { - "$id": "298", + "$id": "250", "Name": "get", "ResourceName": "EnumsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "299", + "$id": "251", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "300", + "$id": "252", "kind": "constant", "valueType": { - "$id": "301", + "$id": "253", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2929,12 +2607,12 @@ ], "Responses": [ { - "$id": "302", + "$id": "254", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "153" + "$ref": "106" }, "BodyMediaType": "Json", "Headers": [], @@ -2955,21 +2633,21 @@ "Decorators": [] }, { - "$id": "303", + "$id": "255", "Name": "send", "ResourceName": "EnumsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "304", + "$id": "256", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "305", + "$id": "257", "kind": "constant", "valueType": { - "$id": "306", + "$id": "258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2989,11 +2667,11 @@ "SkipUrlEncoding": false }, { - "$id": "307", + "$id": "259", "Name": "sendRequest3", "NameInRequest": "sendRequest3", "Type": { - "$ref": "158" + "$ref": "111" }, "Location": "Body", "IsApiVersion": false, @@ -3008,7 +2686,7 @@ ], "Responses": [ { - "$id": "308", + "$id": "260", "StatusCodes": [ 204 ], @@ -3032,17 +2710,17 @@ } ], "Protocol": { - "$id": "309" + "$id": "261" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "310", + "$id": "262", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "311", + "$id": "263", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3057,9 +2735,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "312", + "$id": "264", "Type": { - "$id": "313", + "$id": "265", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3071,25 +2749,25 @@ "Decorators": [] }, { - "$id": "314", + "$id": "266", "Name": "StringAndArray", "Description": "Describe union of a string and an array of strings", "Operations": [ { - "$id": "315", + "$id": "267", "Name": "get", "ResourceName": "StringAndArray", "Accessibility": "public", "Parameters": [ { - "$id": "316", + "$id": "268", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "317", + "$id": "269", "kind": "constant", "valueType": { - "$id": "318", + "$id": "270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3111,12 +2789,12 @@ ], "Responses": [ { - "$id": "319", + "$id": "271", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "138" + "$ref": "91" }, "BodyMediaType": "Json", "Headers": [], @@ -3137,21 +2815,21 @@ "Decorators": [] }, { - "$id": "320", + "$id": "272", "Name": "send", "ResourceName": "StringAndArray", "Accessibility": "public", "Parameters": [ { - "$id": "321", + "$id": "273", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "322", + "$id": "274", "kind": "constant", "valueType": { - "$id": "323", + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3171,11 +2849,11 @@ "SkipUrlEncoding": false }, { - "$id": "324", + "$id": "276", "Name": "sendRequest2", "NameInRequest": "sendRequest2", "Type": { - "$ref": "151" + "$ref": "104" }, "Location": "Body", "IsApiVersion": false, @@ -3190,7 +2868,7 @@ ], "Responses": [ { - "$id": "325", + "$id": "277", "StatusCodes": [ 204 ], @@ -3214,17 +2892,17 @@ } ], "Protocol": { - "$id": "326" + "$id": "278" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "327", + "$id": "279", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "328", + "$id": "280", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3239,9 +2917,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "329", + "$id": "281", "Type": { - "$id": "330", + "$id": "282", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3253,25 +2931,25 @@ "Decorators": [] }, { - "$id": "331", + "$id": "283", "Name": "MixedLiterals", "Description": "Describe union of floats \"a\" | 2 | 3.3", "Operations": [ { - "$id": "332", + "$id": "284", "Name": "get", "ResourceName": "MixedLiterals", "Accessibility": "public", "Parameters": [ { - "$id": "333", + "$id": "285", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "334", + "$id": "286", "kind": "constant", "valueType": { - "$id": "335", + "$id": "287", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3293,12 +2971,12 @@ ], "Responses": [ { - "$id": "336", + "$id": "288", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "93" + "$ref": "73" }, "BodyMediaType": "Json", "Headers": [], @@ -3319,21 +2997,21 @@ "Decorators": [] }, { - "$id": "337", + "$id": "289", "Name": "send", "ResourceName": "MixedLiterals", "Accessibility": "public", "Parameters": [ { - "$id": "338", + "$id": "290", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "339", + "$id": "291", "kind": "constant", "valueType": { - "$id": "340", + "$id": "292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3353,11 +3031,11 @@ "SkipUrlEncoding": false }, { - "$id": "341", + "$id": "293", "Name": "sendRequest1", "NameInRequest": "sendRequest1", "Type": { - "$ref": "136" + "$ref": "89" }, "Location": "Body", "IsApiVersion": false, @@ -3372,7 +3050,7 @@ ], "Responses": [ { - "$id": "342", + "$id": "294", "StatusCodes": [ 204 ], @@ -3396,17 +3074,17 @@ } ], "Protocol": { - "$id": "343" + "$id": "295" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "344", + "$id": "296", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "345", + "$id": "297", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3421,9 +3099,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "346", + "$id": "298", "Type": { - "$id": "347", + "$id": "299", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3435,25 +3113,25 @@ "Decorators": [] }, { - "$id": "348", + "$id": "300", "Name": "MixedTypes", "Description": "Describe union of floats \"a\" | 2 | 3.3", "Operations": [ { - "$id": "349", + "$id": "301", "Name": "get", "ResourceName": "MixedTypes", "Accessibility": "public", "Parameters": [ { - "$id": "350", + "$id": "302", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "351", + "$id": "303", "kind": "constant", "valueType": { - "$id": "352", + "$id": "304", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3475,7 +3153,7 @@ ], "Responses": [ { - "$id": "353", + "$id": "305", "StatusCodes": [ 200 ], @@ -3501,21 +3179,21 @@ "Decorators": [] }, { - "$id": "354", + "$id": "306", "Name": "send", "ResourceName": "MixedTypes", "Accessibility": "public", "Parameters": [ { - "$id": "355", + "$id": "307", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "356", + "$id": "308", "kind": "constant", "valueType": { - "$id": "357", + "$id": "309", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3535,11 +3213,11 @@ "SkipUrlEncoding": false }, { - "$id": "358", + "$id": "310", "Name": "sendRequest", "NameInRequest": "sendRequest", "Type": { - "$ref": "91" + "$ref": "71" }, "Location": "Body", "IsApiVersion": false, @@ -3554,7 +3232,7 @@ ], "Responses": [ { - "$id": "359", + "$id": "311", "StatusCodes": [ 204 ], @@ -3578,17 +3256,17 @@ } ], "Protocol": { - "$id": "360" + "$id": "312" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "361", + "$id": "313", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "362", + "$id": "314", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3603,9 +3281,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "363", + "$id": "315", "Type": { - "$id": "364", + "$id": "316", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/test/CadlRanchProjectsNonAzure/type/array/tspCodeModel.json b/test/CadlRanchProjectsNonAzure/type/array/tspCodeModel.json index 1df76335c9f..3fecf5468b8 100644 --- a/test/CadlRanchProjectsNonAzure/type/array/tspCodeModel.json +++ b/test/CadlRanchProjectsNonAzure/type/array/tspCodeModel.json @@ -2086,15 +2086,7 @@ "kind": "array", "name": "Array", "valueType": { - "$id": "219", - "kind": "nullable", - "type": { - "$id": "220", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - } + "$ref": "211" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2112,7 +2104,7 @@ ], "Responses": [ { - "$id": "221", + "$id": "219", "StatusCodes": [ 204 ], @@ -2136,17 +2128,17 @@ } ], "Protocol": { - "$id": "222" + "$id": "220" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "223", + "$id": "221", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "224", + "$id": "222", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2161,9 +2153,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "225", + "$id": "223", "Type": { - "$id": "226", + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2175,25 +2167,25 @@ "Decorators": [] }, { - "$id": "227", + "$id": "225", "Name": "NullableInt32Value", "Description": "Array of nullable int32 values", "Operations": [ { - "$id": "228", + "$id": "226", "Name": "get", "ResourceName": "NullableInt32Value", "Accessibility": "public", "Parameters": [ { - "$id": "229", + "$id": "227", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "230", + "$id": "228", "kind": "constant", "valueType": { - "$id": "231", + "$id": "229", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2215,19 +2207,19 @@ ], "Responses": [ { - "$id": "232", + "$id": "230", "StatusCodes": [ 200 ], "BodyType": { - "$id": "233", + "$id": "231", "kind": "array", "name": "Array", "valueType": { - "$id": "234", + "$id": "232", "kind": "nullable", "type": { - "$id": "235", + "$id": "233", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2256,21 +2248,21 @@ "Decorators": [] }, { - "$id": "236", + "$id": "234", "Name": "put", "ResourceName": "NullableInt32Value", "Accessibility": "public", "Parameters": [ { - "$id": "237", + "$id": "235", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "238", + "$id": "236", "kind": "constant", "valueType": { - "$id": "239", + "$id": "237", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2290,23 +2282,15 @@ "SkipUrlEncoding": false }, { - "$id": "240", + "$id": "238", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "241", + "$id": "239", "kind": "array", "name": "Array", "valueType": { - "$id": "242", - "kind": "nullable", - "type": { - "$id": "243", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - } + "$ref": "232" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2324,7 +2308,7 @@ ], "Responses": [ { - "$id": "244", + "$id": "240", "StatusCodes": [ 204 ], @@ -2348,17 +2332,17 @@ } ], "Protocol": { - "$id": "245" + "$id": "241" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "246", + "$id": "242", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "247", + "$id": "243", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2373,9 +2357,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "248", + "$id": "244", "Type": { - "$id": "249", + "$id": "245", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2387,25 +2371,25 @@ "Decorators": [] }, { - "$id": "250", + "$id": "246", "Name": "NullableBooleanValue", "Description": "Array of nullable boolean values", "Operations": [ { - "$id": "251", + "$id": "247", "Name": "get", "ResourceName": "NullableBooleanValue", "Accessibility": "public", "Parameters": [ { - "$id": "252", + "$id": "248", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "253", + "$id": "249", "kind": "constant", "valueType": { - "$id": "254", + "$id": "250", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2427,19 +2411,19 @@ ], "Responses": [ { - "$id": "255", + "$id": "251", "StatusCodes": [ 200 ], "BodyType": { - "$id": "256", + "$id": "252", "kind": "array", "name": "Array", "valueType": { - "$id": "257", + "$id": "253", "kind": "nullable", "type": { - "$id": "258", + "$id": "254", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -2468,21 +2452,21 @@ "Decorators": [] }, { - "$id": "259", + "$id": "255", "Name": "put", "ResourceName": "NullableBooleanValue", "Accessibility": "public", "Parameters": [ { - "$id": "260", + "$id": "256", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "261", + "$id": "257", "kind": "constant", "valueType": { - "$id": "262", + "$id": "258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2502,23 +2486,15 @@ "SkipUrlEncoding": false }, { - "$id": "263", + "$id": "259", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "264", + "$id": "260", "kind": "array", "name": "Array", "valueType": { - "$id": "265", - "kind": "nullable", - "type": { - "$id": "266", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } + "$ref": "253" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2536,7 +2512,7 @@ ], "Responses": [ { - "$id": "267", + "$id": "261", "StatusCodes": [ 204 ], @@ -2560,17 +2536,17 @@ } ], "Protocol": { - "$id": "268" + "$id": "262" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "269", + "$id": "263", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "270", + "$id": "264", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2585,9 +2561,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "271", + "$id": "265", "Type": { - "$id": "272", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2599,25 +2575,25 @@ "Decorators": [] }, { - "$id": "273", + "$id": "267", "Name": "NullableStringValue", "Description": "Array of nullable string values", "Operations": [ { - "$id": "274", + "$id": "268", "Name": "get", "ResourceName": "NullableStringValue", "Accessibility": "public", "Parameters": [ { - "$id": "275", + "$id": "269", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "276", + "$id": "270", "kind": "constant", "valueType": { - "$id": "277", + "$id": "271", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2639,19 +2615,19 @@ ], "Responses": [ { - "$id": "278", + "$id": "272", "StatusCodes": [ 200 ], "BodyType": { - "$id": "279", + "$id": "273", "kind": "array", "name": "Array", "valueType": { - "$id": "280", + "$id": "274", "kind": "nullable", "type": { - "$id": "281", + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2680,21 +2656,21 @@ "Decorators": [] }, { - "$id": "282", + "$id": "276", "Name": "put", "ResourceName": "NullableStringValue", "Accessibility": "public", "Parameters": [ { - "$id": "283", + "$id": "277", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "284", + "$id": "278", "kind": "constant", "valueType": { - "$id": "285", + "$id": "279", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2714,23 +2690,15 @@ "SkipUrlEncoding": false }, { - "$id": "286", + "$id": "280", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "287", + "$id": "281", "kind": "array", "name": "Array", "valueType": { - "$id": "288", - "kind": "nullable", - "type": { - "$id": "289", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - } + "$ref": "274" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2748,7 +2716,7 @@ ], "Responses": [ { - "$id": "290", + "$id": "282", "StatusCodes": [ 204 ], @@ -2772,17 +2740,17 @@ } ], "Protocol": { - "$id": "291" + "$id": "283" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "292", + "$id": "284", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "293", + "$id": "285", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2797,9 +2765,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "294", + "$id": "286", "Type": { - "$id": "295", + "$id": "287", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2811,25 +2779,25 @@ "Decorators": [] }, { - "$id": "296", + "$id": "288", "Name": "NullableModelValue", "Description": "Array of nullable model values", "Operations": [ { - "$id": "297", + "$id": "289", "Name": "get", "ResourceName": "NullableModelValue", "Accessibility": "public", "Parameters": [ { - "$id": "298", + "$id": "290", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "299", + "$id": "291", "kind": "constant", "valueType": { - "$id": "300", + "$id": "292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2851,16 +2819,16 @@ ], "Responses": [ { - "$id": "301", + "$id": "293", "StatusCodes": [ 200 ], "BodyType": { - "$id": "302", + "$id": "294", "kind": "array", "name": "Array", "valueType": { - "$id": "303", + "$id": "295", "kind": "nullable", "type": { "$ref": "2" @@ -2888,21 +2856,21 @@ "Decorators": [] }, { - "$id": "304", + "$id": "296", "Name": "put", "ResourceName": "NullableModelValue", "Accessibility": "public", "Parameters": [ { - "$id": "305", + "$id": "297", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "306", + "$id": "298", "kind": "constant", "valueType": { - "$id": "307", + "$id": "299", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2922,19 +2890,15 @@ "SkipUrlEncoding": false }, { - "$id": "308", + "$id": "300", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "309", + "$id": "301", "kind": "array", "name": "Array", "valueType": { - "$id": "310", - "kind": "nullable", - "type": { - "$ref": "2" - } + "$ref": "295" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2952,7 +2916,7 @@ ], "Responses": [ { - "$id": "311", + "$id": "302", "StatusCodes": [ 204 ], @@ -2976,17 +2940,17 @@ } ], "Protocol": { - "$id": "312" + "$id": "303" }, "Parent": "ArrayClient", "Parameters": [ { - "$id": "313", + "$id": "304", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "314", + "$id": "305", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3001,9 +2965,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "315", + "$id": "306", "Type": { - "$id": "316", + "$id": "307", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/test/CadlRanchProjectsNonAzure/type/dictionary/tspCodeModel.json b/test/CadlRanchProjectsNonAzure/type/dictionary/tspCodeModel.json index a611774e040..870aab372bd 100644 --- a/test/CadlRanchProjectsNonAzure/type/dictionary/tspCodeModel.json +++ b/test/CadlRanchProjectsNonAzure/type/dictionary/tspCodeModel.json @@ -2398,15 +2398,7 @@ "decorators": [] }, "valueType": { - "$id": "261", - "kind": "nullable", - "type": { - "$id": "262", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - } + "$ref": "252" }, "decorators": [] }, @@ -2423,7 +2415,7 @@ ], "Responses": [ { - "$id": "263", + "$id": "261", "StatusCodes": [ 204 ], @@ -2447,17 +2439,17 @@ } ], "Protocol": { - "$id": "264" + "$id": "262" }, "Parent": "DictionaryClient", "Parameters": [ { - "$id": "265", + "$id": "263", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "266", + "$id": "264", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2472,9 +2464,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "267", + "$id": "265", "Type": { - "$id": "268", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/test/CadlRanchProjectsNonAzure/type/union/tspCodeModel.json b/test/CadlRanchProjectsNonAzure/type/union/tspCodeModel.json index bc9f0381888..d2537a386a6 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/tspCodeModel.json +++ b/test/CadlRanchProjectsNonAzure/type/union/tspCodeModel.json @@ -566,42 +566,7 @@ "serializedName": "literal", "description": "This should be receive/send the \"a\" variant", "type": { - "$id": "67", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "68", - "kind": "constant", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "70", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "71", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "optional": false, "readOnly": false, @@ -611,48 +576,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.literal" }, { - "$id": "72", + "$id": "67", "kind": "property", "name": "int", "serializedName": "int", "description": "This should be receive/send the int variant", "type": { - "$id": "73", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "74", - "kind": "constant", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "76", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "77", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "optional": false, "readOnly": false, @@ -662,48 +592,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.int" }, { - "$id": "78", + "$id": "68", "kind": "property", "name": "boolean", "serializedName": "boolean", "description": "This should be receive/send the boolean variant", "type": { - "$id": "79", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "80", - "kind": "constant", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "82", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "83", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "optional": false, "readOnly": false, @@ -713,52 +608,17 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.boolean" }, { - "$id": "84", + "$id": "69", "kind": "property", "name": "array", "serializedName": "array", "description": "This should be receive/send 4 element with Cat, \"a\", int, and boolean", "type": { - "$id": "85", + "$id": "70", "kind": "array", "name": "Array", "valueType": { - "$id": "86", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "87", - "kind": "constant", - "valueType": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "89", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "90", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -788,7 +648,7 @@ "$ref": "59" }, { - "$id": "91", + "$id": "71", "kind": "model", "name": "SendRequest", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -796,7 +656,7 @@ "decorators": [], "properties": [ { - "$id": "92", + "$id": "72", "kind": "property", "name": "prop", "serializedName": "prop", @@ -813,7 +673,7 @@ ] }, { - "$id": "93", + "$id": "73", "kind": "model", "name": "GetResponse1", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -821,12 +681,12 @@ "decorators": [], "properties": [ { - "$id": "94", + "$id": "74", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "95", + "$id": "75", "kind": "model", "name": "MixedLiteralsCases", "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases", @@ -834,21 +694,21 @@ "decorators": [], "properties": [ { - "$id": "96", + "$id": "76", "kind": "property", "name": "stringLiteral", "serializedName": "stringLiteral", "description": "This should be receive/send the \"a\" variant", "type": { - "$id": "97", + "$id": "77", "kind": "union", "name": "MixedLiteralsCasesStringLiteral1", "variantTypes": [ { - "$id": "98", + "$id": "78", "kind": "constant", "valueType": { - "$id": "99", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -858,10 +718,10 @@ "decorators": [] }, { - "$id": "100", + "$id": "80", "kind": "constant", "valueType": { - "$id": "101", + "$id": "81", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -871,10 +731,10 @@ "decorators": [] }, { - "$id": "102", + "$id": "82", "kind": "constant", "valueType": { - "$id": "103", + "$id": "83", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -884,10 +744,10 @@ "decorators": [] }, { - "$id": "104", + "$id": "84", "kind": "constant", "valueType": { - "$id": "105", + "$id": "85", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -907,70 +767,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.stringLiteral" }, { - "$id": "106", + "$id": "86", "kind": "property", "name": "intLiteral", "serializedName": "intLiteral", "description": "This should be receive/send the 2 variant", "type": { - "$id": "107", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral1", - "variantTypes": [ - { - "$id": "108", - "kind": "constant", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "110", - "kind": "constant", - "valueType": { - "$id": "111", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "112", - "kind": "constant", - "valueType": { - "$id": "113", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "114", - "kind": "constant", - "valueType": { - "$id": "115", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - } - ], - "decorators": [] + "$ref": "77" }, "optional": false, "readOnly": false, @@ -980,70 +783,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.intLiteral" }, { - "$id": "116", + "$id": "87", "kind": "property", "name": "floatLiteral", "serializedName": "floatLiteral", "description": "This should be receive/send the 3.3 variant", "type": { - "$id": "117", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral1", - "variantTypes": [ - { - "$id": "118", - "kind": "constant", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "120", - "kind": "constant", - "valueType": { - "$id": "121", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "122", - "kind": "constant", - "valueType": { - "$id": "123", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "124", - "kind": "constant", - "valueType": { - "$id": "125", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - } - ], - "decorators": [] + "$ref": "77" }, "optional": false, "readOnly": false, @@ -1053,70 +799,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.floatLiteral" }, { - "$id": "126", + "$id": "88", "kind": "property", "name": "booleanLiteral", "serializedName": "booleanLiteral", "description": "This should be receive/send the true variant", "type": { - "$id": "127", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral1", - "variantTypes": [ - { - "$id": "128", - "kind": "constant", - "valueType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "130", - "kind": "constant", - "valueType": { - "$id": "131", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "132", - "kind": "constant", - "valueType": { - "$id": "133", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "134", - "kind": "constant", - "valueType": { - "$id": "135", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - } - ], - "decorators": [] + "$ref": "77" }, "optional": false, "readOnly": false, @@ -1137,10 +826,10 @@ ] }, { - "$ref": "95" + "$ref": "75" }, { - "$id": "136", + "$id": "89", "kind": "model", "name": "SendRequest1", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1148,12 +837,12 @@ "decorators": [], "properties": [ { - "$id": "137", + "$id": "90", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "95" + "$ref": "75" }, "optional": false, "readOnly": false, @@ -1165,7 +854,7 @@ ] }, { - "$id": "138", + "$id": "91", "kind": "model", "name": "GetResponse2", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1173,12 +862,12 @@ "decorators": [], "properties": [ { - "$id": "139", + "$id": "92", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "140", + "$id": "93", "kind": "model", "name": "StringAndArrayCases", "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases", @@ -1186,29 +875,29 @@ "decorators": [], "properties": [ { - "$id": "141", + "$id": "94", "kind": "property", "name": "string", "serializedName": "string", "description": "This should be receive/send the string variant", "type": { - "$id": "142", + "$id": "95", "kind": "union", "name": "StringAndArrayCasesString", "variantTypes": [ { - "$id": "143", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "144", + "$id": "97", "kind": "array", "name": "Array", "valueType": { - "$id": "145", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1228,29 +917,29 @@ "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases.string" }, { - "$id": "146", + "$id": "99", "kind": "property", "name": "array", "serializedName": "array", "description": "This should be receive/send the array variant", "type": { - "$id": "147", + "$id": "100", "kind": "union", "name": "StringAndArrayCasesArray", "variantTypes": [ { - "$id": "148", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "149", + "$id": "102", "kind": "array", "name": "Array", "valueType": { - "$id": "150", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1281,10 +970,10 @@ ] }, { - "$ref": "140" + "$ref": "93" }, { - "$id": "151", + "$id": "104", "kind": "model", "name": "SendRequest2", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1292,12 +981,12 @@ "decorators": [], "properties": [ { - "$id": "152", + "$id": "105", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "140" + "$ref": "93" }, "optional": false, "readOnly": false, @@ -1309,7 +998,7 @@ ] }, { - "$id": "153", + "$id": "106", "kind": "model", "name": "GetResponse3", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1317,12 +1006,12 @@ "decorators": [], "properties": [ { - "$id": "154", + "$id": "107", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "155", + "$id": "108", "kind": "model", "name": "EnumsOnlyCases", "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases", @@ -1330,7 +1019,7 @@ "decorators": [], "properties": [ { - "$id": "156", + "$id": "109", "kind": "property", "name": "lr", "serializedName": "lr", @@ -1346,7 +1035,7 @@ "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr" }, { - "$id": "157", + "$id": "110", "kind": "property", "name": "ud", "serializedName": "ud", @@ -1373,10 +1062,10 @@ ] }, { - "$ref": "155" + "$ref": "108" }, { - "$id": "158", + "$id": "111", "kind": "model", "name": "SendRequest3", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1384,12 +1073,12 @@ "decorators": [], "properties": [ { - "$id": "159", + "$id": "112", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "155" + "$ref": "108" }, "optional": false, "readOnly": false, @@ -1401,7 +1090,7 @@ ] }, { - "$id": "160", + "$id": "113", "kind": "model", "name": "GetResponse4", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1409,12 +1098,12 @@ "decorators": [], "properties": [ { - "$id": "161", + "$id": "114", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "162", + "$id": "115", "kind": "union", "name": "GetResponseProp", "variantTypes": [ @@ -1422,7 +1111,7 @@ "$ref": "59" }, { - "$id": "163", + "$id": "116", "kind": "model", "name": "Dog", "crossLanguageDefinitionId": "Type.Union.Dog", @@ -1430,12 +1119,12 @@ "decorators": [], "properties": [ { - "$id": "164", + "$id": "117", "kind": "property", "name": "bark", "serializedName": "bark", "type": { - "$id": "165", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1463,10 +1152,10 @@ ] }, { - "$ref": "163" + "$ref": "116" }, { - "$id": "166", + "$id": "119", "kind": "model", "name": "SendRequest4", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1474,23 +1163,12 @@ "decorators": [], "properties": [ { - "$id": "167", + "$id": "120", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "168", - "kind": "union", - "name": "GetResponseProp", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$ref": "163" - } - ], - "decorators": [] + "$ref": "115" }, "optional": false, "readOnly": false, @@ -1502,7 +1180,7 @@ ] }, { - "$id": "169", + "$id": "121", "kind": "model", "name": "GetResponse5", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1510,7 +1188,7 @@ "decorators": [], "properties": [ { - "$id": "170", + "$id": "122", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1527,7 +1205,7 @@ ] }, { - "$id": "171", + "$id": "123", "kind": "model", "name": "SendRequest5", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1535,7 +1213,7 @@ "decorators": [], "properties": [ { - "$id": "172", + "$id": "124", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1552,7 +1230,7 @@ ] }, { - "$id": "173", + "$id": "125", "kind": "model", "name": "GetResponse6", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1560,7 +1238,7 @@ "decorators": [], "properties": [ { - "$id": "174", + "$id": "126", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1577,7 +1255,7 @@ ] }, { - "$id": "175", + "$id": "127", "kind": "model", "name": "SendRequest6", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1585,7 +1263,7 @@ "decorators": [], "properties": [ { - "$id": "176", + "$id": "128", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1602,7 +1280,7 @@ ] }, { - "$id": "177", + "$id": "129", "kind": "model", "name": "GetResponse7", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1610,7 +1288,7 @@ "decorators": [], "properties": [ { - "$id": "178", + "$id": "130", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1627,7 +1305,7 @@ ] }, { - "$id": "179", + "$id": "131", "kind": "model", "name": "SendRequest7", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1635,7 +1313,7 @@ "decorators": [], "properties": [ { - "$id": "180", + "$id": "132", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1652,7 +1330,7 @@ ] }, { - "$id": "181", + "$id": "133", "kind": "model", "name": "GetResponse8", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1660,7 +1338,7 @@ "decorators": [], "properties": [ { - "$id": "182", + "$id": "134", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1677,7 +1355,7 @@ ] }, { - "$id": "183", + "$id": "135", "kind": "model", "name": "SendRequest8", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1685,7 +1363,7 @@ "decorators": [], "properties": [ { - "$id": "184", + "$id": "136", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1702,7 +1380,7 @@ ] }, { - "$id": "185", + "$id": "137", "kind": "model", "name": "GetResponse9", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1710,7 +1388,7 @@ "decorators": [], "properties": [ { - "$id": "186", + "$id": "138", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1727,7 +1405,7 @@ ] }, { - "$id": "187", + "$id": "139", "kind": "model", "name": "SendRequest9", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1735,7 +1413,7 @@ "decorators": [], "properties": [ { - "$id": "188", + "$id": "140", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1754,21 +1432,21 @@ ], "Clients": [ { - "$id": "189", + "$id": "141", "Name": "UnionClient", "Description": "Describe scenarios for various combinations of unions.", "Operations": [], "Protocol": { - "$id": "190" + "$id": "142" }, "Parameters": [ { - "$id": "191", + "$id": "143", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "192", + "$id": "144", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1783,9 +1461,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "193", + "$id": "145", "Type": { - "$id": "194", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1797,25 +1475,25 @@ "Decorators": [] }, { - "$id": "195", + "$id": "147", "Name": "StringsOnly", "Description": "Describe union of string \"a\" | \"b\" | \"c\"", "Operations": [ { - "$id": "196", + "$id": "148", "Name": "get", "ResourceName": "StringsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "197", + "$id": "149", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "198", + "$id": "150", "kind": "constant", "valueType": { - "$id": "199", + "$id": "151", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1837,12 +1515,12 @@ ], "Responses": [ { - "$id": "200", + "$id": "152", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "185" + "$ref": "137" }, "BodyMediaType": "Json", "Headers": [], @@ -1863,21 +1541,21 @@ "Decorators": [] }, { - "$id": "201", + "$id": "153", "Name": "send", "ResourceName": "StringsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "202", + "$id": "154", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "203", + "$id": "155", "kind": "constant", "valueType": { - "$id": "204", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1897,11 +1575,11 @@ "SkipUrlEncoding": false }, { - "$id": "205", + "$id": "157", "Name": "sendRequest9", "NameInRequest": "sendRequest9", "Type": { - "$ref": "187" + "$ref": "139" }, "Location": "Body", "IsApiVersion": false, @@ -1916,7 +1594,7 @@ ], "Responses": [ { - "$id": "206", + "$id": "158", "StatusCodes": [ 204 ], @@ -1940,17 +1618,17 @@ } ], "Protocol": { - "$id": "207" + "$id": "159" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "208", + "$id": "160", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "209", + "$id": "161", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1965,9 +1643,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "210", + "$id": "162", "Type": { - "$id": "211", + "$id": "163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1979,25 +1657,25 @@ "Decorators": [] }, { - "$id": "212", + "$id": "164", "Name": "StringExtensible", "Description": "Describe union of string string | \"b\" | \"c\"", "Operations": [ { - "$id": "213", + "$id": "165", "Name": "get", "ResourceName": "StringExtensible", "Accessibility": "public", "Parameters": [ { - "$id": "214", + "$id": "166", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "215", + "$id": "167", "kind": "constant", "valueType": { - "$id": "216", + "$id": "168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2019,12 +1697,12 @@ ], "Responses": [ { - "$id": "217", + "$id": "169", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "181" + "$ref": "133" }, "BodyMediaType": "Json", "Headers": [], @@ -2045,21 +1723,21 @@ "Decorators": [] }, { - "$id": "218", + "$id": "170", "Name": "send", "ResourceName": "StringExtensible", "Accessibility": "public", "Parameters": [ { - "$id": "219", + "$id": "171", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "220", + "$id": "172", "kind": "constant", "valueType": { - "$id": "221", + "$id": "173", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2079,11 +1757,11 @@ "SkipUrlEncoding": false }, { - "$id": "222", + "$id": "174", "Name": "sendRequest8", "NameInRequest": "sendRequest8", "Type": { - "$ref": "183" + "$ref": "135" }, "Location": "Body", "IsApiVersion": false, @@ -2098,7 +1776,7 @@ ], "Responses": [ { - "$id": "223", + "$id": "175", "StatusCodes": [ 204 ], @@ -2122,17 +1800,17 @@ } ], "Protocol": { - "$id": "224" + "$id": "176" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "225", + "$id": "177", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "226", + "$id": "178", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2147,9 +1825,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "227", + "$id": "179", "Type": { - "$id": "228", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2161,25 +1839,25 @@ "Decorators": [] }, { - "$id": "229", + "$id": "181", "Name": "StringExtensibleNamed", "Description": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", "Operations": [ { - "$id": "230", + "$id": "182", "Name": "get", "ResourceName": "StringExtensibleNamed", "Accessibility": "public", "Parameters": [ { - "$id": "231", + "$id": "183", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "232", + "$id": "184", "kind": "constant", "valueType": { - "$id": "233", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2201,12 +1879,12 @@ ], "Responses": [ { - "$id": "234", + "$id": "186", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "177" + "$ref": "129" }, "BodyMediaType": "Json", "Headers": [], @@ -2227,21 +1905,21 @@ "Decorators": [] }, { - "$id": "235", + "$id": "187", "Name": "send", "ResourceName": "StringExtensibleNamed", "Accessibility": "public", "Parameters": [ { - "$id": "236", + "$id": "188", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "237", + "$id": "189", "kind": "constant", "valueType": { - "$id": "238", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2261,11 +1939,11 @@ "SkipUrlEncoding": false }, { - "$id": "239", + "$id": "191", "Name": "sendRequest7", "NameInRequest": "sendRequest7", "Type": { - "$ref": "179" + "$ref": "131" }, "Location": "Body", "IsApiVersion": false, @@ -2280,7 +1958,7 @@ ], "Responses": [ { - "$id": "240", + "$id": "192", "StatusCodes": [ 204 ], @@ -2304,17 +1982,17 @@ } ], "Protocol": { - "$id": "241" + "$id": "193" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "242", + "$id": "194", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "243", + "$id": "195", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2329,9 +2007,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "244", + "$id": "196", "Type": { - "$id": "245", + "$id": "197", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2343,25 +2021,25 @@ "Decorators": [] }, { - "$id": "246", + "$id": "198", "Name": "IntsOnly", "Description": "Describe union of integer 1 | 2 | 3", "Operations": [ { - "$id": "247", + "$id": "199", "Name": "get", "ResourceName": "IntsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "248", + "$id": "200", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "249", + "$id": "201", "kind": "constant", "valueType": { - "$id": "250", + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2383,12 +2061,12 @@ ], "Responses": [ { - "$id": "251", + "$id": "203", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "173" + "$ref": "125" }, "BodyMediaType": "Json", "Headers": [], @@ -2409,21 +2087,21 @@ "Decorators": [] }, { - "$id": "252", + "$id": "204", "Name": "send", "ResourceName": "IntsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "253", + "$id": "205", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "254", + "$id": "206", "kind": "constant", "valueType": { - "$id": "255", + "$id": "207", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2443,11 +2121,11 @@ "SkipUrlEncoding": false }, { - "$id": "256", + "$id": "208", "Name": "sendRequest6", "NameInRequest": "sendRequest6", "Type": { - "$ref": "175" + "$ref": "127" }, "Location": "Body", "IsApiVersion": false, @@ -2462,7 +2140,7 @@ ], "Responses": [ { - "$id": "257", + "$id": "209", "StatusCodes": [ 204 ], @@ -2486,17 +2164,17 @@ } ], "Protocol": { - "$id": "258" + "$id": "210" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "259", + "$id": "211", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "260", + "$id": "212", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2511,9 +2189,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "261", + "$id": "213", "Type": { - "$id": "262", + "$id": "214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2525,25 +2203,25 @@ "Decorators": [] }, { - "$id": "263", + "$id": "215", "Name": "FloatsOnly", "Description": "Describe union of floats 1.1 | 2.2 | 3.3", "Operations": [ { - "$id": "264", + "$id": "216", "Name": "get", "ResourceName": "FloatsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "265", + "$id": "217", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "266", + "$id": "218", "kind": "constant", "valueType": { - "$id": "267", + "$id": "219", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2565,12 +2243,12 @@ ], "Responses": [ { - "$id": "268", + "$id": "220", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "169" + "$ref": "121" }, "BodyMediaType": "Json", "Headers": [], @@ -2591,21 +2269,21 @@ "Decorators": [] }, { - "$id": "269", + "$id": "221", "Name": "send", "ResourceName": "FloatsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "270", + "$id": "222", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "271", + "$id": "223", "kind": "constant", "valueType": { - "$id": "272", + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2625,11 +2303,11 @@ "SkipUrlEncoding": false }, { - "$id": "273", + "$id": "225", "Name": "sendRequest5", "NameInRequest": "sendRequest5", "Type": { - "$ref": "171" + "$ref": "123" }, "Location": "Body", "IsApiVersion": false, @@ -2644,7 +2322,7 @@ ], "Responses": [ { - "$id": "274", + "$id": "226", "StatusCodes": [ 204 ], @@ -2668,17 +2346,17 @@ } ], "Protocol": { - "$id": "275" + "$id": "227" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "276", + "$id": "228", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "277", + "$id": "229", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2693,9 +2371,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "278", + "$id": "230", "Type": { - "$id": "279", + "$id": "231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2707,25 +2385,25 @@ "Decorators": [] }, { - "$id": "280", + "$id": "232", "Name": "ModelsOnly", "Description": "Describe union of models", "Operations": [ { - "$id": "281", + "$id": "233", "Name": "get", "ResourceName": "ModelsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "282", + "$id": "234", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "283", + "$id": "235", "kind": "constant", "valueType": { - "$id": "284", + "$id": "236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2747,12 +2425,12 @@ ], "Responses": [ { - "$id": "285", + "$id": "237", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "160" + "$ref": "113" }, "BodyMediaType": "Json", "Headers": [], @@ -2773,21 +2451,21 @@ "Decorators": [] }, { - "$id": "286", + "$id": "238", "Name": "send", "ResourceName": "ModelsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "287", + "$id": "239", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "288", + "$id": "240", "kind": "constant", "valueType": { - "$id": "289", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2807,11 +2485,11 @@ "SkipUrlEncoding": false }, { - "$id": "290", + "$id": "242", "Name": "sendRequest4", "NameInRequest": "sendRequest4", "Type": { - "$ref": "166" + "$ref": "119" }, "Location": "Body", "IsApiVersion": false, @@ -2826,7 +2504,7 @@ ], "Responses": [ { - "$id": "291", + "$id": "243", "StatusCodes": [ 204 ], @@ -2850,17 +2528,17 @@ } ], "Protocol": { - "$id": "292" + "$id": "244" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "293", + "$id": "245", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "294", + "$id": "246", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2875,9 +2553,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "295", + "$id": "247", "Type": { - "$id": "296", + "$id": "248", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2889,25 +2567,25 @@ "Decorators": [] }, { - "$id": "297", + "$id": "249", "Name": "EnumsOnly", "Description": "Describe union of 2 different enums", "Operations": [ { - "$id": "298", + "$id": "250", "Name": "get", "ResourceName": "EnumsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "299", + "$id": "251", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "300", + "$id": "252", "kind": "constant", "valueType": { - "$id": "301", + "$id": "253", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2929,12 +2607,12 @@ ], "Responses": [ { - "$id": "302", + "$id": "254", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "153" + "$ref": "106" }, "BodyMediaType": "Json", "Headers": [], @@ -2955,21 +2633,21 @@ "Decorators": [] }, { - "$id": "303", + "$id": "255", "Name": "send", "ResourceName": "EnumsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "304", + "$id": "256", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "305", + "$id": "257", "kind": "constant", "valueType": { - "$id": "306", + "$id": "258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2989,11 +2667,11 @@ "SkipUrlEncoding": false }, { - "$id": "307", + "$id": "259", "Name": "sendRequest3", "NameInRequest": "sendRequest3", "Type": { - "$ref": "158" + "$ref": "111" }, "Location": "Body", "IsApiVersion": false, @@ -3008,7 +2686,7 @@ ], "Responses": [ { - "$id": "308", + "$id": "260", "StatusCodes": [ 204 ], @@ -3032,17 +2710,17 @@ } ], "Protocol": { - "$id": "309" + "$id": "261" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "310", + "$id": "262", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "311", + "$id": "263", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3057,9 +2735,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "312", + "$id": "264", "Type": { - "$id": "313", + "$id": "265", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3071,25 +2749,25 @@ "Decorators": [] }, { - "$id": "314", + "$id": "266", "Name": "StringAndArray", "Description": "Describe union of a string and an array of strings", "Operations": [ { - "$id": "315", + "$id": "267", "Name": "get", "ResourceName": "StringAndArray", "Accessibility": "public", "Parameters": [ { - "$id": "316", + "$id": "268", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "317", + "$id": "269", "kind": "constant", "valueType": { - "$id": "318", + "$id": "270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3111,12 +2789,12 @@ ], "Responses": [ { - "$id": "319", + "$id": "271", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "138" + "$ref": "91" }, "BodyMediaType": "Json", "Headers": [], @@ -3137,21 +2815,21 @@ "Decorators": [] }, { - "$id": "320", + "$id": "272", "Name": "send", "ResourceName": "StringAndArray", "Accessibility": "public", "Parameters": [ { - "$id": "321", + "$id": "273", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "322", + "$id": "274", "kind": "constant", "valueType": { - "$id": "323", + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3171,11 +2849,11 @@ "SkipUrlEncoding": false }, { - "$id": "324", + "$id": "276", "Name": "sendRequest2", "NameInRequest": "sendRequest2", "Type": { - "$ref": "151" + "$ref": "104" }, "Location": "Body", "IsApiVersion": false, @@ -3190,7 +2868,7 @@ ], "Responses": [ { - "$id": "325", + "$id": "277", "StatusCodes": [ 204 ], @@ -3214,17 +2892,17 @@ } ], "Protocol": { - "$id": "326" + "$id": "278" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "327", + "$id": "279", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "328", + "$id": "280", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3239,9 +2917,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "329", + "$id": "281", "Type": { - "$id": "330", + "$id": "282", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3253,25 +2931,25 @@ "Decorators": [] }, { - "$id": "331", + "$id": "283", "Name": "MixedLiterals", "Description": "Describe union of floats \"a\" | 2 | 3.3", "Operations": [ { - "$id": "332", + "$id": "284", "Name": "get", "ResourceName": "MixedLiterals", "Accessibility": "public", "Parameters": [ { - "$id": "333", + "$id": "285", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "334", + "$id": "286", "kind": "constant", "valueType": { - "$id": "335", + "$id": "287", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3293,12 +2971,12 @@ ], "Responses": [ { - "$id": "336", + "$id": "288", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "93" + "$ref": "73" }, "BodyMediaType": "Json", "Headers": [], @@ -3319,21 +2997,21 @@ "Decorators": [] }, { - "$id": "337", + "$id": "289", "Name": "send", "ResourceName": "MixedLiterals", "Accessibility": "public", "Parameters": [ { - "$id": "338", + "$id": "290", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "339", + "$id": "291", "kind": "constant", "valueType": { - "$id": "340", + "$id": "292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3353,11 +3031,11 @@ "SkipUrlEncoding": false }, { - "$id": "341", + "$id": "293", "Name": "sendRequest1", "NameInRequest": "sendRequest1", "Type": { - "$ref": "136" + "$ref": "89" }, "Location": "Body", "IsApiVersion": false, @@ -3372,7 +3050,7 @@ ], "Responses": [ { - "$id": "342", + "$id": "294", "StatusCodes": [ 204 ], @@ -3396,17 +3074,17 @@ } ], "Protocol": { - "$id": "343" + "$id": "295" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "344", + "$id": "296", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "345", + "$id": "297", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3421,9 +3099,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "346", + "$id": "298", "Type": { - "$id": "347", + "$id": "299", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3435,25 +3113,25 @@ "Decorators": [] }, { - "$id": "348", + "$id": "300", "Name": "MixedTypes", "Description": "Describe union of floats \"a\" | 2 | 3.3", "Operations": [ { - "$id": "349", + "$id": "301", "Name": "get", "ResourceName": "MixedTypes", "Accessibility": "public", "Parameters": [ { - "$id": "350", + "$id": "302", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "351", + "$id": "303", "kind": "constant", "valueType": { - "$id": "352", + "$id": "304", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3475,7 +3153,7 @@ ], "Responses": [ { - "$id": "353", + "$id": "305", "StatusCodes": [ 200 ], @@ -3501,21 +3179,21 @@ "Decorators": [] }, { - "$id": "354", + "$id": "306", "Name": "send", "ResourceName": "MixedTypes", "Accessibility": "public", "Parameters": [ { - "$id": "355", + "$id": "307", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "356", + "$id": "308", "kind": "constant", "valueType": { - "$id": "357", + "$id": "309", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3535,11 +3213,11 @@ "SkipUrlEncoding": false }, { - "$id": "358", + "$id": "310", "Name": "sendRequest", "NameInRequest": "sendRequest", "Type": { - "$ref": "91" + "$ref": "71" }, "Location": "Body", "IsApiVersion": false, @@ -3554,7 +3232,7 @@ ], "Responses": [ { - "$id": "359", + "$id": "311", "StatusCodes": [ 204 ], @@ -3578,17 +3256,17 @@ } ], "Protocol": { - "$id": "360" + "$id": "312" }, "Parent": "UnionClient", "Parameters": [ { - "$id": "361", + "$id": "313", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "362", + "$id": "314", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3603,9 +3281,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "363", + "$id": "315", "Type": { - "$id": "364", + "$id": "316", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/test/UnbrandedProjects/Platform-OpenAI-TypeSpec/tspCodeModel.json b/test/UnbrandedProjects/Platform-OpenAI-TypeSpec/tspCodeModel.json index b7301914352..b79f3acdb4a 100644 --- a/test/UnbrandedProjects/Platform-OpenAI-TypeSpec/tspCodeModel.json +++ b/test/UnbrandedProjects/Platform-OpenAI-TypeSpec/tspCodeModel.json @@ -3213,22 +3213,7 @@ "serializedName": "n", "description": "The number of images to generate. Must be between 1 and 10.", "type": { - "$id": "350", - "kind": "nullable", - "type": { - "$id": "351", - "kind": "safeint", - "name": "ImagesN", - "crossLanguageDefinitionId": "OpenAI.ImagesN", - "baseType": { - "$id": "352", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "decorators": [] - } + "$ref": "321" }, "optional": true, "readOnly": false, @@ -3238,17 +3223,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.n" }, { - "$id": "353", + "$id": "350", "kind": "property", "name": "size", "serializedName": "size", "description": "The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.", "type": { - "$id": "354", - "kind": "nullable", - "type": { - "$ref": "8" - } + "$ref": "325" }, "optional": true, "readOnly": false, @@ -3258,17 +3239,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.size" }, { - "$id": "355", + "$id": "351", "kind": "property", "name": "response_format", "serializedName": "response_format", "description": "The format in which the generated images are returned. Must be one of `url` or `b64_json`.", "type": { - "$id": "356", - "kind": "nullable", - "type": { - "$ref": "16" - } + "$ref": "327" }, "optional": true, "readOnly": false, @@ -3278,17 +3255,17 @@ "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.response_format" }, { - "$id": "357", + "$id": "352", "kind": "property", "name": "user", "serializedName": "user", "type": { - "$id": "358", + "$id": "353", "kind": "string", "name": "User", "crossLanguageDefinitionId": "OpenAI.User", "baseType": { - "$id": "359", + "$id": "354", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3306,7 +3283,7 @@ ] }, { - "$id": "360", + "$id": "355", "kind": "model", "name": "CreateImageVariationRequest", "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest", @@ -3314,13 +3291,13 @@ "decorators": [], "properties": [ { - "$id": "361", + "$id": "356", "kind": "property", "name": "image", "serializedName": "image", "description": "The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB,\nand square.", "type": { - "$id": "362", + "$id": "357", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -3335,28 +3312,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.image" }, { - "$id": "363", + "$id": "358", "kind": "property", "name": "n", "serializedName": "n", "description": "The number of images to generate. Must be between 1 and 10.", "type": { - "$id": "364", - "kind": "nullable", - "type": { - "$id": "365", - "kind": "safeint", - "name": "ImagesN", - "crossLanguageDefinitionId": "OpenAI.ImagesN", - "baseType": { - "$id": "366", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "decorators": [] - } + "$ref": "321" }, "optional": true, "readOnly": false, @@ -3366,17 +3328,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.n" }, { - "$id": "367", + "$id": "359", "kind": "property", "name": "size", "serializedName": "size", "description": "The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.", "type": { - "$id": "368", - "kind": "nullable", - "type": { - "$ref": "8" - } + "$ref": "325" }, "optional": true, "readOnly": false, @@ -3386,17 +3344,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.size" }, { - "$id": "369", + "$id": "360", "kind": "property", "name": "response_format", "serializedName": "response_format", "description": "The format in which the generated images are returned. Must be one of `url` or `b64_json`.", "type": { - "$id": "370", - "kind": "nullable", - "type": { - "$ref": "16" - } + "$ref": "327" }, "optional": true, "readOnly": false, @@ -3406,17 +3360,17 @@ "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.response_format" }, { - "$id": "371", + "$id": "361", "kind": "property", "name": "user", "serializedName": "user", "type": { - "$id": "372", + "$id": "362", "kind": "string", "name": "User", "crossLanguageDefinitionId": "OpenAI.User", "baseType": { - "$id": "373", + "$id": "363", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3434,7 +3388,7 @@ ] }, { - "$id": "374", + "$id": "364", "kind": "model", "name": "ListModelsResponse", "crossLanguageDefinitionId": "OpenAI.ListModelsResponse", @@ -3442,12 +3396,12 @@ "decorators": [], "properties": [ { - "$id": "375", + "$id": "365", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "376", + "$id": "366", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3461,16 +3415,16 @@ "crossLanguageDefinitionId": "OpenAI.ListModelsResponse.object" }, { - "$id": "377", + "$id": "367", "kind": "property", "name": "data", "serializedName": "data", "type": { - "$id": "378", + "$id": "368", "kind": "array", "name": "ArrayModel", "valueType": { - "$id": "379", + "$id": "369", "kind": "model", "name": "Model", "crossLanguageDefinitionId": "OpenAI.Model", @@ -3479,13 +3433,13 @@ "decorators": [], "properties": [ { - "$id": "380", + "$id": "370", "kind": "property", "name": "id", "serializedName": "id", "description": "The model identifier, which can be referenced in the API endpoints.", "type": { - "$id": "381", + "$id": "371", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3499,13 +3453,13 @@ "crossLanguageDefinitionId": "OpenAI.Model.id" }, { - "$id": "382", + "$id": "372", "kind": "property", "name": "object", "serializedName": "object", "description": "The object type, which is always \"model\".", "type": { - "$id": "383", + "$id": "373", "kind": "constant", "valueType": { "$ref": "22" @@ -3521,18 +3475,18 @@ "crossLanguageDefinitionId": "OpenAI.Model.object" }, { - "$id": "384", + "$id": "374", "kind": "property", "name": "created", "serializedName": "created", "description": "The Unix timestamp (in seconds) when the model was created.", "type": { - "$id": "385", + "$id": "375", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "386", + "$id": "376", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3549,13 +3503,13 @@ "crossLanguageDefinitionId": "OpenAI.Model.created" }, { - "$id": "387", + "$id": "377", "kind": "property", "name": "owned_by", "serializedName": "owned_by", "description": "The organization that owns the model.", "type": { - "$id": "388", + "$id": "378", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3583,10 +3537,10 @@ ] }, { - "$ref": "379" + "$ref": "369" }, { - "$id": "389", + "$id": "379", "kind": "model", "name": "DeleteModelResponse", "crossLanguageDefinitionId": "OpenAI.DeleteModelResponse", @@ -3594,12 +3548,12 @@ "decorators": [], "properties": [ { - "$id": "390", + "$id": "380", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "391", + "$id": "381", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3613,12 +3567,12 @@ "crossLanguageDefinitionId": "OpenAI.DeleteModelResponse.id" }, { - "$id": "392", + "$id": "382", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "393", + "$id": "383", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3632,12 +3586,12 @@ "crossLanguageDefinitionId": "OpenAI.DeleteModelResponse.object" }, { - "$id": "394", + "$id": "384", "kind": "property", "name": "deleted", "serializedName": "deleted", "type": { - "$id": "395", + "$id": "385", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3653,7 +3607,7 @@ ] }, { - "$id": "396", + "$id": "386", "kind": "model", "name": "CreateFineTuneRequest", "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest", @@ -3661,13 +3615,13 @@ "decorators": [], "properties": [ { - "$id": "397", + "$id": "387", "kind": "property", "name": "training_file", "serializedName": "training_file", "description": "The ID of an uploaded file that contains training data.\n\nSee [upload file](/docs/api-reference/files/upload) for how to upload a file.\n\nYour dataset must be formatted as a JSONL file, where each training example is a JSON object\nwith the keys \"prompt\" and \"completion\". Additionally, you must upload your file with the\npurpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/legacy-fine-tuning/creating-training-data) for more\ndetails.", "type": { - "$id": "398", + "$id": "388", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3681,16 +3635,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.training_file" }, { - "$id": "399", + "$id": "389", "kind": "property", "name": "validation_file", "serializedName": "validation_file", "description": "The ID of an uploaded file that contains validation data.\n\nIf you provide this file, the data is used to generate validation metrics periodically during\nfine-tuning. These metrics can be viewed in the\n[fine-tuning results file](/docs/guides/legacy-fine-tuning/analyzing-your-fine-tuned-model).\nYour train and validation data should be mutually exclusive.\n\nYour dataset must be formatted as a JSONL file, where each validation example is a JSON object\nwith the keys \"prompt\" and \"completion\". Additionally, you must upload your file with the\npurpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/legacy-fine-tuning/creating-training-data) for more\ndetails.", "type": { - "$id": "400", + "$id": "390", "kind": "nullable", "type": { - "$id": "401", + "$id": "391", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3705,13 +3659,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.validation_file" }, { - "$id": "402", + "$id": "392", "kind": "property", "name": "model", "serializedName": "model", "description": "The name of the base model to fine-tune. You can select one of \"ada\", \"babbage\", \"curie\",\n\"davinci\", or a fine-tuned model created after 2022-04-21 and before 2023-08-22. To learn more\nabout these models, see the [Models](/docs/models) documentation.", "type": { - "$id": "403", + "$id": "393", "kind": "nullable", "type": { "$ref": "25" @@ -3725,16 +3679,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.model" }, { - "$id": "404", + "$id": "394", "kind": "property", "name": "n_epochs", "serializedName": "n_epochs", "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the\ntraining dataset.", "type": { - "$id": "405", + "$id": "395", "kind": "nullable", "type": { - "$id": "406", + "$id": "396", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -3749,16 +3703,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.n_epochs" }, { - "$id": "407", + "$id": "397", "kind": "property", "name": "batch_size", "serializedName": "batch_size", "description": "The batch size to use for training. The batch size is the number of training examples used to\ntrain a single forward and backward pass.\n\nBy default, the batch size will be dynamically configured to be ~0.2% of the number of examples\nin the training set, capped at 256 - in general, we've found that larger batch sizes tend to\nwork better for larger datasets.", "type": { - "$id": "408", + "$id": "398", "kind": "nullable", "type": { - "$id": "409", + "$id": "399", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -3773,16 +3727,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.batch_size" }, { - "$id": "410", + "$id": "400", "kind": "property", "name": "learning_rate_multiplier", "serializedName": "learning_rate_multiplier", "description": "The learning rate multiplier to use for training. The fine-tuning learning rate is the original\nlearning rate used for pretraining multiplied by this value.\n\nBy default, the learning rate multiplier is the 0.05, 0.1, or 0.2 depending on final\n`batch_size` (larger learning rates tend to perform better with larger batch sizes). We\nrecommend experimenting with values in the range 0.02 to 0.2 to see what produces the best\nresults.", "type": { - "$id": "411", + "$id": "401", "kind": "nullable", "type": { - "$id": "412", + "$id": "402", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -3797,16 +3751,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.learning_rate_multiplier" }, { - "$id": "413", + "$id": "403", "kind": "property", "name": "prompt_loss_rate", "serializedName": "prompt_loss_rate", "description": "The weight to use for loss on the prompt tokens. This controls how much the model tries to\nlearn to generate the prompt (as compared to the completion which always has a weight of 1.0),\nand can add a stabilizing effect to training when completions are short.\n\nIf prompts are extremely long (relative to completions), it may make sense to reduce this\nweight so as to avoid over-prioritizing learning the prompt.", "type": { - "$id": "414", + "$id": "404", "kind": "nullable", "type": { - "$id": "415", + "$id": "405", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -3821,16 +3775,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.prompt_loss_rate" }, { - "$id": "416", + "$id": "406", "kind": "property", "name": "compute_classification_metrics", "serializedName": "compute_classification_metrics", "description": "If set, we calculate classification-specific metrics such as accuracy and F-1 score using the\nvalidation set at the end of every epoch. These metrics can be viewed in the\n[results file](/docs/guides/legacy-fine-tuning/analyzing-your-fine-tuned-model).\n\nIn order to compute classification metrics, you must provide a `validation_file`. Additionally,\nyou must specify `classification_n_classes` for multiclass classification or\n`classification_positive_class` for binary classification.", "type": { - "$id": "417", + "$id": "407", "kind": "nullable", "type": { - "$id": "418", + "$id": "408", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3845,16 +3799,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.compute_classification_metrics" }, { - "$id": "419", + "$id": "409", "kind": "property", "name": "classification_n_classes", "serializedName": "classification_n_classes", "description": "The number of classes in a classification task.\n\nThis parameter is required for multiclass classification.", "type": { - "$id": "420", + "$id": "410", "kind": "nullable", "type": { - "$id": "421", + "$id": "411", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -3869,16 +3823,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.classification_n_classes" }, { - "$id": "422", + "$id": "412", "kind": "property", "name": "classification_positive_class", "serializedName": "classification_positive_class", "description": "The positive class in binary classification.\n\nThis parameter is needed to generate precision, recall, and F1 metrics when doing binary\nclassification.", "type": { - "$id": "423", + "$id": "413", "kind": "nullable", "type": { - "$id": "424", + "$id": "414", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3893,20 +3847,20 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.classification_positive_class" }, { - "$id": "425", + "$id": "415", "kind": "property", "name": "classification_betas", "serializedName": "classification_betas", "description": "If this is provided, we calculate F-beta scores at the specified beta values. The F-beta score\nis a generalization of F-1 score. This is only used for binary classification.\n\nWith a beta of 1 (i.e. the F-1 score), precision and recall are given the same weight. A larger\nbeta score puts more weight on recall and less on precision. A smaller beta score puts more\nweight on precision and less on recall.", "type": { - "$id": "426", + "$id": "416", "kind": "nullable", "type": { - "$id": "427", + "$id": "417", "kind": "array", "name": "Array", "valueType": { - "$id": "428", + "$id": "418", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -3924,21 +3878,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuneRequest.classification_betas" }, { - "$id": "429", + "$id": "419", "kind": "property", "name": "suffix", "serializedName": "suffix", "description": "A string of up to 18 characters that will be added to your fine-tuned model name.\n\nFor example, a `suffix` of \"custom-model-name\" would produce a model name like\n`ada:ft-your-org:custom-model-name-2022-02-15-04-21-04`.", "type": { - "$id": "430", + "$id": "420", "kind": "nullable", "type": { - "$id": "431", + "$id": "421", "kind": "string", "name": "SuffixString", "crossLanguageDefinitionId": "OpenAI.SuffixString", "baseType": { - "$id": "432", + "$id": "422", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3957,7 +3911,7 @@ ] }, { - "$id": "433", + "$id": "423", "kind": "model", "name": "FineTune", "crossLanguageDefinitionId": "OpenAI.FineTune", @@ -3967,13 +3921,13 @@ "decorators": [], "properties": [ { - "$id": "434", + "$id": "424", "kind": "property", "name": "id", "serializedName": "id", "description": "The object identifier, which can be referenced in the API endpoints.", "type": { - "$id": "435", + "$id": "425", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3987,13 +3941,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.id" }, { - "$id": "436", + "$id": "426", "kind": "property", "name": "object", "serializedName": "object", "description": "The object type, which is always \"fine-tune\".", "type": { - "$id": "437", + "$id": "427", "kind": "constant", "valueType": { "$ref": "35" @@ -4009,18 +3963,18 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.object" }, { - "$id": "438", + "$id": "428", "kind": "property", "name": "created_at", "serializedName": "created_at", "description": "The Unix timestamp (in seconds) for when the fine-tuning job was created.", "type": { - "$id": "439", + "$id": "429", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "440", + "$id": "430", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4037,18 +3991,18 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.created_at" }, { - "$id": "441", + "$id": "431", "kind": "property", "name": "updated_at", "serializedName": "updated_at", "description": "The Unix timestamp (in seconds) for when the fine-tuning job was last updated.", "type": { - "$id": "442", + "$id": "432", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "443", + "$id": "433", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4065,13 +4019,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.updated_at" }, { - "$id": "444", + "$id": "434", "kind": "property", "name": "model", "serializedName": "model", "description": "The base model that is being fine-tuned.", "type": { - "$id": "445", + "$id": "435", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4085,16 +4039,16 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.model" }, { - "$id": "446", + "$id": "436", "kind": "property", "name": "fine_tuned_model", "serializedName": "fine_tuned_model", "description": "The name of the fine-tuned model that is being created.", "type": { - "$id": "447", + "$id": "437", "kind": "nullable", "type": { - "$id": "448", + "$id": "438", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4109,13 +4063,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.fine_tuned_model" }, { - "$id": "449", + "$id": "439", "kind": "property", "name": "organization_id", "serializedName": "organization_id", "description": "The organization that owns the fine-tuning job.", "type": { - "$id": "450", + "$id": "440", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4129,7 +4083,7 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.organization_id" }, { - "$id": "451", + "$id": "441", "kind": "property", "name": "status", "serializedName": "status", @@ -4145,13 +4099,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.status" }, { - "$id": "452", + "$id": "442", "kind": "property", "name": "hyperparams", "serializedName": "hyperparams", "description": "The hyperparameters used for the fine-tuning job. See the\n[fine-tuning guide](/docs/guides/legacy-fine-tuning/hyperparameters) for more details.", "type": { - "$id": "453", + "$id": "443", "kind": "model", "name": "FineTuneHyperparams", "crossLanguageDefinitionId": "OpenAI.FineTune.hyperparams.anonymous", @@ -4159,13 +4113,13 @@ "decorators": [], "properties": [ { - "$id": "454", + "$id": "444", "kind": "property", "name": "n_epochs", "serializedName": "n_epochs", "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the\ntraining dataset.", "type": { - "$id": "455", + "$id": "445", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -4179,13 +4133,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.hyperparams.anonymous.n_epochs" }, { - "$id": "456", + "$id": "446", "kind": "property", "name": "batch_size", "serializedName": "batch_size", "description": "The batch size to use for training. The batch size is the number of training examples used to\ntrain a single forward and backward pass.", "type": { - "$id": "457", + "$id": "447", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -4199,13 +4153,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.hyperparams.anonymous.batch_size" }, { - "$id": "458", + "$id": "448", "kind": "property", "name": "prompt_loss_weight", "serializedName": "prompt_loss_weight", "description": "The weight to use for loss on the prompt tokens.", "type": { - "$id": "459", + "$id": "449", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -4219,13 +4173,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.hyperparams.anonymous.prompt_loss_weight" }, { - "$id": "460", + "$id": "450", "kind": "property", "name": "learning_rate_multiplier", "serializedName": "learning_rate_multiplier", "description": "The learning rate multiplier to use for training.", "type": { - "$id": "461", + "$id": "451", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -4239,13 +4193,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.hyperparams.anonymous.learning_rate_multiplier" }, { - "$id": "462", + "$id": "452", "kind": "property", "name": "compute_classification_metrics", "serializedName": "compute_classification_metrics", "description": "The classification metrics to compute using the validation dataset at the end of every epoch.", "type": { - "$id": "463", + "$id": "453", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4259,13 +4213,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.hyperparams.anonymous.compute_classification_metrics" }, { - "$id": "464", + "$id": "454", "kind": "property", "name": "classification_positive_class", "serializedName": "classification_positive_class", "description": "The positive class to use for computing classification metrics.", "type": { - "$id": "465", + "$id": "455", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4279,13 +4233,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.hyperparams.anonymous.classification_positive_class" }, { - "$id": "466", + "$id": "456", "kind": "property", "name": "classification_n_classes", "serializedName": "classification_n_classes", "description": "The number of classes to use for computing classification metrics.", "type": { - "$id": "467", + "$id": "457", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -4308,17 +4262,17 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.hyperparams" }, { - "$id": "468", + "$id": "458", "kind": "property", "name": "training_files", "serializedName": "training_files", "description": "The list of files used for training.", "type": { - "$id": "469", + "$id": "459", "kind": "array", "name": "ArrayOpenAiFile", "valueType": { - "$id": "470", + "$id": "460", "kind": "model", "name": "OpenAIFile", "crossLanguageDefinitionId": "OpenAI.OpenAIFile", @@ -4327,13 +4281,13 @@ "decorators": [], "properties": [ { - "$id": "471", + "$id": "461", "kind": "property", "name": "id", "serializedName": "id", "description": "The file identifier, which can be referenced in the API endpoints.", "type": { - "$id": "472", + "$id": "462", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4347,13 +4301,13 @@ "crossLanguageDefinitionId": "OpenAI.OpenAIFile.id" }, { - "$id": "473", + "$id": "463", "kind": "property", "name": "object", "serializedName": "object", "description": "The object type, which is always \"file\".", "type": { - "$id": "474", + "$id": "464", "kind": "constant", "valueType": { "$ref": "50" @@ -4369,13 +4323,13 @@ "crossLanguageDefinitionId": "OpenAI.OpenAIFile.object" }, { - "$id": "475", + "$id": "465", "kind": "property", "name": "bytes", "serializedName": "bytes", "description": "The size of the file in bytes.", "type": { - "$id": "476", + "$id": "466", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -4389,18 +4343,18 @@ "crossLanguageDefinitionId": "OpenAI.OpenAIFile.bytes" }, { - "$id": "477", + "$id": "467", "kind": "property", "name": "createdAt", "serializedName": "createdAt", "description": "The Unix timestamp (in seconds) for when the file was created.", "type": { - "$id": "478", + "$id": "468", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "479", + "$id": "469", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4417,13 +4371,13 @@ "crossLanguageDefinitionId": "OpenAI.OpenAIFile.createdAt" }, { - "$id": "480", + "$id": "470", "kind": "property", "name": "filename", "serializedName": "filename", "description": "The name of the file.", "type": { - "$id": "481", + "$id": "471", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4437,13 +4391,13 @@ "crossLanguageDefinitionId": "OpenAI.OpenAIFile.filename" }, { - "$id": "482", + "$id": "472", "kind": "property", "name": "purpose", "serializedName": "purpose", "description": "The intended purpose of the file. Currently, only \"fine-tune\" is supported.", "type": { - "$id": "483", + "$id": "473", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4457,7 +4411,7 @@ "crossLanguageDefinitionId": "OpenAI.OpenAIFile.purpose" }, { - "$id": "484", + "$id": "474", "kind": "property", "name": "status", "serializedName": "status", @@ -4473,16 +4427,16 @@ "crossLanguageDefinitionId": "OpenAI.OpenAIFile.status" }, { - "$id": "485", + "$id": "475", "kind": "property", "name": "status_details", "serializedName": "status_details", "description": "Additional details about the status of the file. If the file is in the `error` state, this will\ninclude a message describing the error.", "type": { - "$id": "486", + "$id": "476", "kind": "nullable", "type": { - "$id": "487", + "$id": "477", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4509,17 +4463,17 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.training_files" }, { - "$id": "488", + "$id": "478", "kind": "property", "name": "validation_files", "serializedName": "validation_files", "description": "The list of files used for validation.", "type": { - "$id": "489", + "$id": "479", "kind": "array", "name": "ArrayOpenAiFile", "valueType": { - "$ref": "470" + "$ref": "460" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4532,17 +4486,17 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.validation_files" }, { - "$id": "490", + "$id": "480", "kind": "property", "name": "result_files", "serializedName": "result_files", "description": "The compiled results files for the fine-tuning job.", "type": { - "$id": "491", + "$id": "481", "kind": "array", "name": "ArrayOpenAiFile", "valueType": { - "$ref": "470" + "$ref": "460" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4555,17 +4509,17 @@ "crossLanguageDefinitionId": "OpenAI.FineTune.result_files" }, { - "$id": "492", + "$id": "482", "kind": "property", "name": "events", "serializedName": "events", "description": "The list of events that have been observed in the lifecycle of the FineTune job.", "type": { - "$id": "493", + "$id": "483", "kind": "array", "name": "ArrayFineTuneEvent", "valueType": { - "$id": "494", + "$id": "484", "kind": "model", "name": "FineTuneEvent", "crossLanguageDefinitionId": "OpenAI.FineTuneEvent", @@ -4573,12 +4527,12 @@ "decorators": [], "properties": [ { - "$id": "495", + "$id": "485", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "496", + "$id": "486", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4592,17 +4546,17 @@ "crossLanguageDefinitionId": "OpenAI.FineTuneEvent.object" }, { - "$id": "497", + "$id": "487", "kind": "property", "name": "created_at", "serializedName": "created_at", "type": { - "$id": "498", + "$id": "488", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "499", + "$id": "489", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4619,12 +4573,12 @@ "crossLanguageDefinitionId": "OpenAI.FineTuneEvent.created_at" }, { - "$id": "500", + "$id": "490", "kind": "property", "name": "level", "serializedName": "level", "type": { - "$id": "501", + "$id": "491", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4638,12 +4592,12 @@ "crossLanguageDefinitionId": "OpenAI.FineTuneEvent.level" }, { - "$id": "502", + "$id": "492", "kind": "property", "name": "message", "serializedName": "message", "type": { - "$id": "503", + "$id": "493", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4671,16 +4625,16 @@ ] }, { - "$ref": "453" + "$ref": "443" }, { - "$ref": "470" + "$ref": "460" }, { - "$ref": "494" + "$ref": "484" }, { - "$id": "504", + "$id": "494", "kind": "model", "name": "ListFineTunesResponse", "crossLanguageDefinitionId": "OpenAI.ListFineTunesResponse", @@ -4688,12 +4642,12 @@ "decorators": [], "properties": [ { - "$id": "505", + "$id": "495", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "506", + "$id": "496", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4707,16 +4661,16 @@ "crossLanguageDefinitionId": "OpenAI.ListFineTunesResponse.object" }, { - "$id": "507", + "$id": "497", "kind": "property", "name": "data", "serializedName": "data", "type": { - "$id": "508", + "$id": "498", "kind": "array", "name": "ArrayFineTune", "valueType": { - "$ref": "433" + "$ref": "423" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4731,7 +4685,7 @@ ] }, { - "$id": "509", + "$id": "499", "kind": "model", "name": "ListFineTuneEventsResponse", "crossLanguageDefinitionId": "OpenAI.ListFineTuneEventsResponse", @@ -4739,12 +4693,12 @@ "decorators": [], "properties": [ { - "$id": "510", + "$id": "500", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "511", + "$id": "501", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4758,16 +4712,16 @@ "crossLanguageDefinitionId": "OpenAI.ListFineTuneEventsResponse.object" }, { - "$id": "512", + "$id": "502", "kind": "property", "name": "data", "serializedName": "data", "type": { - "$id": "513", + "$id": "503", "kind": "array", "name": "ArrayFineTuneEvent", "valueType": { - "$ref": "494" + "$ref": "484" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4782,7 +4736,7 @@ ] }, { - "$id": "514", + "$id": "504", "kind": "model", "name": "ListFilesResponse", "crossLanguageDefinitionId": "OpenAI.ListFilesResponse", @@ -4790,12 +4744,12 @@ "decorators": [], "properties": [ { - "$id": "515", + "$id": "505", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "516", + "$id": "506", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4809,16 +4763,16 @@ "crossLanguageDefinitionId": "OpenAI.ListFilesResponse.object" }, { - "$id": "517", + "$id": "507", "kind": "property", "name": "data", "serializedName": "data", "type": { - "$id": "518", + "$id": "508", "kind": "array", "name": "ArrayOpenAiFile", "valueType": { - "$ref": "470" + "$ref": "460" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4833,7 +4787,7 @@ ] }, { - "$id": "519", + "$id": "509", "kind": "model", "name": "CreateFileRequest", "crossLanguageDefinitionId": "OpenAI.CreateFileRequest", @@ -4841,13 +4795,13 @@ "decorators": [], "properties": [ { - "$id": "520", + "$id": "510", "kind": "property", "name": "file", "serializedName": "file", "description": "Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded.\n\nIf the `purpose` is set to \"fine-tune\", the file will be used for fine-tuning.", "type": { - "$id": "521", + "$id": "511", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -4862,13 +4816,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateFileRequest.file" }, { - "$id": "522", + "$id": "512", "kind": "property", "name": "purpose", "serializedName": "purpose", "description": "The intended purpose of the uploaded documents. Use \"fine-tune\" for\n[fine-tuning](/docs/api-reference/fine-tuning). This allows us to validate the format of the\nuploaded file.", "type": { - "$id": "523", + "$id": "513", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4884,7 +4838,7 @@ ] }, { - "$id": "524", + "$id": "514", "kind": "model", "name": "DeleteFileResponse", "crossLanguageDefinitionId": "OpenAI.DeleteFileResponse", @@ -4892,12 +4846,12 @@ "decorators": [], "properties": [ { - "$id": "525", + "$id": "515", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "526", + "$id": "516", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4911,12 +4865,12 @@ "crossLanguageDefinitionId": "OpenAI.DeleteFileResponse.id" }, { - "$id": "527", + "$id": "517", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "528", + "$id": "518", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4930,12 +4884,12 @@ "crossLanguageDefinitionId": "OpenAI.DeleteFileResponse.object" }, { - "$id": "529", + "$id": "519", "kind": "property", "name": "deleted", "serializedName": "deleted", "type": { - "$id": "530", + "$id": "520", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4951,7 +4905,7 @@ ] }, { - "$id": "531", + "$id": "521", "kind": "model", "name": "CreateEmbeddingRequest", "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest", @@ -4959,7 +4913,7 @@ "decorators": [], "properties": [ { - "$id": "532", + "$id": "522", "kind": "property", "name": "model", "serializedName": "model", @@ -4975,29 +4929,29 @@ "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest.model" }, { - "$id": "533", + "$id": "523", "kind": "property", "name": "input", "serializedName": "input", "description": "Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a\nsingle request, pass an array of strings or array of token arrays. Each input must not exceed\nthe max input tokens for the model (8191 tokens for `text-embedding-ada-002`) and cannot be an empty string.\n[Example Python code](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb)\nfor counting tokens.", "type": { - "$id": "534", + "$id": "524", "kind": "union", "name": "CreateEmbeddingRequestInput", "variantTypes": [ { - "$id": "535", + "$id": "525", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "536", + "$id": "526", "kind": "array", "name": "Array", "valueType": { - "$id": "537", + "$id": "527", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5007,11 +4961,11 @@ "decorators": [] }, { - "$id": "538", + "$id": "528", "kind": "array", "name": "TokenArray", "valueType": { - "$id": "539", + "$id": "529", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5021,15 +4975,15 @@ "decorators": [] }, { - "$id": "540", + "$id": "530", "kind": "array", "name": "TokenArrayArray", "valueType": { - "$id": "541", + "$id": "531", "kind": "array", "name": "TokenArray", "valueType": { - "$id": "542", + "$id": "532", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5052,17 +5006,17 @@ "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest.input" }, { - "$id": "543", + "$id": "533", "kind": "property", "name": "user", "serializedName": "user", "type": { - "$id": "544", + "$id": "534", "kind": "string", "name": "User", "crossLanguageDefinitionId": "OpenAI.User", "baseType": { - "$id": "545", + "$id": "535", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5080,7 +5034,7 @@ ] }, { - "$id": "546", + "$id": "536", "kind": "model", "name": "CreateEmbeddingResponse", "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse", @@ -5088,13 +5042,13 @@ "decorators": [], "properties": [ { - "$id": "547", + "$id": "537", "kind": "property", "name": "object", "serializedName": "object", "description": "The object type, which is always \"embedding\".", "type": { - "$id": "548", + "$id": "538", "kind": "constant", "valueType": { "$ref": "71" @@ -5110,13 +5064,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.object" }, { - "$id": "549", + "$id": "539", "kind": "property", "name": "model", "serializedName": "model", "description": "The name of the model used to generate the embedding.", "type": { - "$id": "550", + "$id": "540", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5130,17 +5084,17 @@ "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.model" }, { - "$id": "551", + "$id": "541", "kind": "property", "name": "data", "serializedName": "data", "description": "The list of embeddings generated by the model.", "type": { - "$id": "552", + "$id": "542", "kind": "array", "name": "ArrayEmbedding", "valueType": { - "$id": "553", + "$id": "543", "kind": "model", "name": "Embedding", "crossLanguageDefinitionId": "OpenAI.Embedding", @@ -5149,13 +5103,13 @@ "decorators": [], "properties": [ { - "$id": "554", + "$id": "544", "kind": "property", "name": "index", "serializedName": "index", "description": "The index of the embedding in the list of embeddings.", "type": { - "$id": "555", + "$id": "545", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5169,13 +5123,13 @@ "crossLanguageDefinitionId": "OpenAI.Embedding.index" }, { - "$id": "556", + "$id": "546", "kind": "property", "name": "object", "serializedName": "object", "description": "The object type, which is always \"embedding\".", "type": { - "$id": "557", + "$id": "547", "kind": "constant", "valueType": { "$ref": "74" @@ -5191,17 +5145,17 @@ "crossLanguageDefinitionId": "OpenAI.Embedding.object" }, { - "$id": "558", + "$id": "548", "kind": "property", "name": "embedding", "serializedName": "embedding", "description": "The embedding vector, which is a list of floats. The length of vector depends on the model as\\\nlisted in the [embedding guide](/docs/guides/embeddings).", "type": { - "$id": "559", + "$id": "549", "kind": "array", "name": "Array", "valueType": { - "$id": "560", + "$id": "550", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -5230,13 +5184,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.data" }, { - "$id": "561", + "$id": "551", "kind": "property", "name": "usage", "serializedName": "usage", "description": "The usage information for the request.", "type": { - "$id": "562", + "$id": "552", "kind": "model", "name": "CreateEmbeddingResponseUsage", "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.usage.anonymous", @@ -5244,13 +5198,13 @@ "decorators": [], "properties": [ { - "$id": "563", + "$id": "553", "kind": "property", "name": "prompt_tokens", "serializedName": "prompt_tokens", "description": "The number of tokens used by the prompt.", "type": { - "$id": "564", + "$id": "554", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5264,13 +5218,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.usage.anonymous.prompt_tokens" }, { - "$id": "565", + "$id": "555", "kind": "property", "name": "total_tokens", "serializedName": "total_tokens", "description": "The total number of tokens used by the request.", "type": { - "$id": "566", + "$id": "556", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5295,13 +5249,13 @@ ] }, { - "$ref": "553" + "$ref": "543" }, { - "$ref": "562" + "$ref": "552" }, { - "$id": "567", + "$id": "557", "kind": "model", "name": "CreateEditRequest", "crossLanguageDefinitionId": "OpenAI.CreateEditRequest", @@ -5309,7 +5263,7 @@ "decorators": [], "properties": [ { - "$id": "568", + "$id": "558", "kind": "property", "name": "model", "serializedName": "model", @@ -5325,16 +5279,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditRequest.model" }, { - "$id": "569", + "$id": "559", "kind": "property", "name": "input", "serializedName": "input", "description": "The input text to use as a starting point for the edit.", "type": { - "$id": "570", + "$id": "560", "kind": "nullable", "type": { - "$id": "571", + "$id": "561", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5349,13 +5303,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditRequest.input" }, { - "$id": "572", + "$id": "562", "kind": "property", "name": "instruction", "serializedName": "instruction", "description": "The instruction that tells the model how to edit the prompt.", "type": { - "$id": "573", + "$id": "563", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5369,21 +5323,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditRequest.instruction" }, { - "$id": "574", + "$id": "564", "kind": "property", "name": "n", "serializedName": "n", "description": "How many edits to generate for the input and instruction.", "type": { - "$id": "575", + "$id": "565", "kind": "nullable", "type": { - "$id": "576", + "$id": "566", "kind": "safeint", "name": "EditN", "crossLanguageDefinitionId": "OpenAI.EditN", "baseType": { - "$id": "577", + "$id": "567", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5400,21 +5354,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditRequest.n" }, { - "$id": "578", + "$id": "568", "kind": "property", "name": "temperature", "serializedName": "temperature", "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output\nmore random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.", "type": { - "$id": "579", + "$id": "569", "kind": "nullable", "type": { - "$id": "580", + "$id": "570", "kind": "float64", "name": "Temperature", "crossLanguageDefinitionId": "OpenAI.Temperature", "baseType": { - "$id": "581", + "$id": "571", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -5431,21 +5385,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditRequest.temperature" }, { - "$id": "582", + "$id": "572", "kind": "property", "name": "top_p", "serializedName": "top_p", "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers\nthe results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising\nthe top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.", "type": { - "$id": "583", + "$id": "573", "kind": "nullable", "type": { - "$id": "584", + "$id": "574", "kind": "float64", "name": "TopP", "crossLanguageDefinitionId": "OpenAI.TopP", "baseType": { - "$id": "585", + "$id": "575", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -5464,7 +5418,7 @@ ] }, { - "$id": "586", + "$id": "576", "kind": "model", "name": "CreateEditResponse", "crossLanguageDefinitionId": "OpenAI.CreateEditResponse", @@ -5473,13 +5427,13 @@ "decorators": [], "properties": [ { - "$id": "587", + "$id": "577", "kind": "property", "name": "object", "serializedName": "object", "description": "The object type, which is always `edit`.", "type": { - "$id": "588", + "$id": "578", "kind": "constant", "valueType": { "$ref": "83" @@ -5495,18 +5449,18 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditResponse.object" }, { - "$id": "589", + "$id": "579", "kind": "property", "name": "created", "serializedName": "created", "description": "The Unix timestamp (in seconds) of when the edit was created.", "type": { - "$id": "590", + "$id": "580", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "591", + "$id": "581", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5523,17 +5477,17 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditResponse.created" }, { - "$id": "592", + "$id": "582", "kind": "property", "name": "choices", "serializedName": "choices", "description": "description: A list of edit choices. Can be more than one if `n` is greater than 1.", "type": { - "$id": "593", + "$id": "583", "kind": "array", "name": "Array", "valueType": { - "$id": "594", + "$id": "584", "kind": "model", "name": "CreateEditResponseChoice", "crossLanguageDefinitionId": "OpenAI.CreateEditResponse.choice.anonymous", @@ -5541,13 +5495,13 @@ "decorators": [], "properties": [ { - "$id": "595", + "$id": "585", "kind": "property", "name": "text", "serializedName": "text", "description": "The edited result.", "type": { - "$id": "596", + "$id": "586", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5561,13 +5515,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditResponse.choice.anonymous.text" }, { - "$id": "597", + "$id": "587", "kind": "property", "name": "index", "serializedName": "index", "description": "The index of the choice in the list of choices.", "type": { - "$id": "598", + "$id": "588", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5581,7 +5535,7 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditResponse.choice.anonymous.index" }, { - "$id": "599", + "$id": "589", "kind": "property", "name": "finish_reason", "serializedName": "finish_reason", @@ -5609,12 +5563,12 @@ "crossLanguageDefinitionId": "OpenAI.CreateEditResponse.choices" }, { - "$id": "600", + "$id": "590", "kind": "property", "name": "usage", "serializedName": "usage", "type": { - "$id": "601", + "$id": "591", "kind": "model", "name": "CompletionUsage", "crossLanguageDefinitionId": "OpenAI.CompletionUsage", @@ -5623,13 +5577,13 @@ "decorators": [], "properties": [ { - "$id": "602", + "$id": "592", "kind": "property", "name": "prompt_tokens", "serializedName": "prompt_tokens", "description": "Number of tokens in the prompt.", "type": { - "$id": "603", + "$id": "593", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5643,13 +5597,13 @@ "crossLanguageDefinitionId": "OpenAI.CompletionUsage.prompt_tokens" }, { - "$id": "604", + "$id": "594", "kind": "property", "name": "completion_tokens", "serializedName": "completion_tokens", "description": "Number of tokens in the generated completion", "type": { - "$id": "605", + "$id": "595", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5663,13 +5617,13 @@ "crossLanguageDefinitionId": "OpenAI.CompletionUsage.completion_tokens" }, { - "$id": "606", + "$id": "596", "kind": "property", "name": "total_tokens", "serializedName": "total_tokens", "description": "Total number of tokens used in the request (prompt + completion).", "type": { - "$id": "607", + "$id": "597", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5694,13 +5648,13 @@ ] }, { - "$ref": "594" + "$ref": "584" }, { - "$ref": "601" + "$ref": "591" }, { - "$id": "608", + "$id": "598", "kind": "model", "name": "CreateCompletionRequest", "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest", @@ -5708,7 +5662,7 @@ "decorators": [], "properties": [ { - "$id": "609", + "$id": "599", "kind": "property", "name": "model", "serializedName": "model", @@ -5724,32 +5678,32 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.model" }, { - "$id": "610", + "$id": "600", "kind": "property", "name": "prompt", "serializedName": "prompt", "description": "The prompt(s) to generate completions for, encoded as a string, array of strings, array of\ntokens, or array of token arrays.\n\nNote that <|endoftext|> is the document separator that the model sees during training, so if a\nprompt is not specified the model will generate as if from the beginning of a new document.", "type": { - "$id": "611", + "$id": "601", "kind": "nullable", "type": { - "$id": "612", + "$id": "602", "kind": "union", "name": "Prompt", "variantTypes": [ { - "$id": "613", + "$id": "603", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "614", + "$id": "604", "kind": "array", "name": "Array", "valueType": { - "$id": "615", + "$id": "605", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5759,11 +5713,11 @@ "decorators": [] }, { - "$id": "616", + "$id": "606", "kind": "array", "name": "TokenArray", "valueType": { - "$id": "617", + "$id": "607", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5773,15 +5727,15 @@ "decorators": [] }, { - "$id": "618", + "$id": "608", "kind": "array", "name": "TokenArrayArray", "valueType": { - "$id": "619", + "$id": "609", "kind": "array", "name": "TokenArray", "valueType": { - "$id": "620", + "$id": "610", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5805,16 +5759,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.prompt" }, { - "$id": "621", + "$id": "611", "kind": "property", "name": "suffix", "serializedName": "suffix", "description": "The suffix that comes after a completion of inserted text.", "type": { - "$id": "622", + "$id": "612", "kind": "nullable", "type": { - "$id": "623", + "$id": "613", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5829,21 +5783,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.suffix" }, { - "$id": "624", + "$id": "614", "kind": "property", "name": "temperature", "serializedName": "temperature", "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output\nmore random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.", "type": { - "$id": "625", + "$id": "615", "kind": "nullable", "type": { - "$id": "626", + "$id": "616", "kind": "float64", "name": "Temperature", "crossLanguageDefinitionId": "OpenAI.Temperature", "baseType": { - "$id": "627", + "$id": "617", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -5860,21 +5814,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.temperature" }, { - "$id": "628", + "$id": "618", "kind": "property", "name": "top_p", "serializedName": "top_p", "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers\nthe results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising\nthe top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.", "type": { - "$id": "629", + "$id": "619", "kind": "nullable", "type": { - "$id": "630", + "$id": "620", "kind": "float64", "name": "TopP", "crossLanguageDefinitionId": "OpenAI.TopP", "baseType": { - "$id": "631", + "$id": "621", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -5891,21 +5845,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.top_p" }, { - "$id": "632", + "$id": "622", "kind": "property", "name": "n", "serializedName": "n", "description": "How many completions to generate for each prompt.\n**Note:** Because this parameter generates many completions, it can quickly consume your token\nquota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.", "type": { - "$id": "633", + "$id": "623", "kind": "nullable", "type": { - "$id": "634", + "$id": "624", "kind": "safeint", "name": "N", "crossLanguageDefinitionId": "OpenAI.N", "baseType": { - "$id": "635", + "$id": "625", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5922,21 +5876,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.n" }, { - "$id": "636", + "$id": "626", "kind": "property", "name": "max_tokens", "serializedName": "max_tokens", "description": "The maximum number of [tokens](/tokenizer) to generate in the completion.\n\nThe token count of your prompt plus `max_tokens` cannot exceed the model's context length.\n[Example Python code](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb)\nfor counting tokens.", "type": { - "$id": "637", + "$id": "627", "kind": "nullable", "type": { - "$id": "638", + "$id": "628", "kind": "safeint", "name": "MaxTokens", "crossLanguageDefinitionId": "OpenAI.MaxTokens", "baseType": { - "$id": "639", + "$id": "629", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -5953,32 +5907,32 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.max_tokens" }, { - "$id": "640", + "$id": "630", "kind": "property", "name": "stop", "serializedName": "stop", "description": "Up to 4 sequences where the API will stop generating further tokens.", "type": { - "$id": "641", + "$id": "631", "kind": "nullable", "type": { - "$id": "642", + "$id": "632", "kind": "union", "name": "Stop", "variantTypes": [ { - "$id": "643", + "$id": "633", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "644", + "$id": "634", "kind": "array", "name": "StopSequences", "valueType": { - "$id": "645", + "$id": "635", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5999,21 +5953,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.stop" }, { - "$id": "646", + "$id": "636", "kind": "property", "name": "presence_penalty", "serializedName": "presence_penalty", "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear\nin the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](/docs/guides/gpt/parameter-details)", "type": { - "$id": "647", + "$id": "637", "kind": "nullable", "type": { - "$id": "648", + "$id": "638", "kind": "float64", "name": "Penalty", "crossLanguageDefinitionId": "OpenAI.Penalty", "baseType": { - "$id": "649", + "$id": "639", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -6030,21 +5984,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.presence_penalty" }, { - "$id": "650", + "$id": "640", "kind": "property", "name": "frequency_penalty", "serializedName": "frequency_penalty", "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing\nfrequency in the text so far, decreasing the model's likelihood to repeat the same line\nverbatim.\n\n[See more information about frequency and presence penalties.](/docs/guides/gpt/parameter-details)", "type": { - "$id": "651", + "$id": "641", "kind": "nullable", "type": { - "$id": "652", + "$id": "642", "kind": "float64", "name": "Penalty", "crossLanguageDefinitionId": "OpenAI.Penalty", "baseType": { - "$id": "653", + "$id": "643", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -6061,26 +6015,26 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.frequency_penalty" }, { - "$id": "654", + "$id": "644", "kind": "property", "name": "logit_bias", "serializedName": "logit_bias", "description": "Modify the likelihood of specified tokens appearing in the completion.\nAccepts a json object that maps tokens (specified by their token ID in the tokenizer) to an\nassociated bias value from -100 to 100. Mathematically, the bias is added to the logits\ngenerated by the model prior to sampling. The exact effect will vary per model, but values\nbetween -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100\nshould result in a ban or exclusive selection of the relevant token.", "type": { - "$id": "655", + "$id": "645", "kind": "nullable", "type": { - "$id": "656", + "$id": "646", "kind": "dict", "keyType": { - "$id": "657", + "$id": "647", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "658", + "$id": "648", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -6097,18 +6051,18 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.logit_bias" }, { - "$id": "659", + "$id": "649", "kind": "property", "name": "user", "serializedName": "user", "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect\nabuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).", "type": { - "$id": "660", + "$id": "650", "kind": "string", "name": "User", "crossLanguageDefinitionId": "OpenAI.User", "baseType": { - "$id": "661", + "$id": "651", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6124,16 +6078,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.user" }, { - "$id": "662", + "$id": "652", "kind": "property", "name": "stream", "serializedName": "stream", "description": "If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only\n[server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format)\nas they become available, with the stream terminated by a `data: [DONE]` message.\n[Example Python code](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_stream_completions.ipynb).", "type": { - "$id": "663", + "$id": "653", "kind": "nullable", "type": { - "$id": "664", + "$id": "654", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -6148,16 +6102,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.stream" }, { - "$id": "665", + "$id": "655", "kind": "property", "name": "logprobs", "serializedName": "logprobs", "description": "Include the log probabilities on the `logprobs` most likely tokens, as well the chosen tokens.\nFor example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The\nAPI will always return the `logprob` of the sampled token, so there may be up to `logprobs+1`\nelements in the response.\n\nThe maximum value for `logprobs` is 5.", "type": { - "$id": "666", + "$id": "656", "kind": "nullable", "type": { - "$id": "667", + "$id": "657", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -6172,16 +6126,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.logprobs" }, { - "$id": "668", + "$id": "658", "kind": "property", "name": "echo", "serializedName": "echo", "description": "Echo back the prompt in addition to the completion", "type": { - "$id": "669", + "$id": "659", "kind": "nullable", "type": { - "$id": "670", + "$id": "660", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -6196,16 +6150,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.echo" }, { - "$id": "671", + "$id": "661", "kind": "property", "name": "best_of", "serializedName": "best_of", "description": "Generates `best_of` completions server-side and returns the \"best\" (the one with the highest\nlog probability per token). Results cannot be streamed.\n\nWhen used with `n`, `best_of` controls the number of candidate completions and `n` specifies\nhow many to return – `best_of` must be greater than `n`.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token\nquota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.", "type": { - "$id": "672", + "$id": "662", "kind": "nullable", "type": { - "$id": "673", + "$id": "663", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -6222,7 +6176,7 @@ ] }, { - "$id": "674", + "$id": "664", "kind": "model", "name": "CreateCompletionResponse", "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse", @@ -6231,13 +6185,13 @@ "decorators": [], "properties": [ { - "$id": "675", + "$id": "665", "kind": "property", "name": "id", "serializedName": "id", "description": "A unique identifier for the completion.", "type": { - "$id": "676", + "$id": "666", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6251,13 +6205,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.id" }, { - "$id": "677", + "$id": "667", "kind": "property", "name": "object", "serializedName": "object", "description": "The object type, which is always `text_completion`.", "type": { - "$id": "678", + "$id": "668", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6271,18 +6225,18 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.object" }, { - "$id": "679", + "$id": "669", "kind": "property", "name": "created", "serializedName": "created", "description": "The Unix timestamp (in seconds) of when the completion was created.", "type": { - "$id": "680", + "$id": "670", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "681", + "$id": "671", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6299,13 +6253,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.created" }, { - "$id": "682", + "$id": "672", "kind": "property", "name": "model", "serializedName": "model", "description": "The model used for the completion.", "type": { - "$id": "683", + "$id": "673", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6319,17 +6273,17 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.model" }, { - "$id": "684", + "$id": "674", "kind": "property", "name": "choices", "serializedName": "choices", "description": "The list of completion choices the model generated for the input.", "type": { - "$id": "685", + "$id": "675", "kind": "array", "name": "Array", "valueType": { - "$id": "686", + "$id": "676", "kind": "model", "name": "CreateCompletionResponseChoice", "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.anonymous", @@ -6337,12 +6291,12 @@ "decorators": [], "properties": [ { - "$id": "687", + "$id": "677", "kind": "property", "name": "index", "serializedName": "index", "type": { - "$id": "688", + "$id": "678", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -6356,12 +6310,12 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.anonymous.index" }, { - "$id": "689", + "$id": "679", "kind": "property", "name": "text", "serializedName": "text", "type": { - "$id": "690", + "$id": "680", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6375,15 +6329,15 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.anonymous.text" }, { - "$id": "691", + "$id": "681", "kind": "property", "name": "logprobs", "serializedName": "logprobs", "type": { - "$id": "692", + "$id": "682", "kind": "nullable", "type": { - "$id": "693", + "$id": "683", "kind": "model", "name": "CreateCompletionResponseChoiceLogprobs", "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.logprobs.anonymous", @@ -6391,16 +6345,16 @@ "decorators": [], "properties": [ { - "$id": "694", + "$id": "684", "kind": "property", "name": "tokens", "serializedName": "tokens", "type": { - "$id": "695", + "$id": "685", "kind": "array", "name": "Array", "valueType": { - "$id": "696", + "$id": "686", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6417,16 +6371,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.logprobs.anonymous.tokens" }, { - "$id": "697", + "$id": "687", "kind": "property", "name": "token_logprobs", "serializedName": "token_logprobs", "type": { - "$id": "698", + "$id": "688", "kind": "array", "name": "Array", "valueType": { - "$id": "699", + "$id": "689", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -6443,26 +6397,26 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.logprobs.anonymous.token_logprobs" }, { - "$id": "700", + "$id": "690", "kind": "property", "name": "top_logprobs", "serializedName": "top_logprobs", "type": { - "$id": "701", + "$id": "691", "kind": "array", "name": "ArrayRecord", "valueType": { - "$id": "702", + "$id": "692", "kind": "dict", "keyType": { - "$id": "703", + "$id": "693", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "704", + "$id": "694", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -6481,16 +6435,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.logprobs.anonymous.top_logprobs" }, { - "$id": "705", + "$id": "695", "kind": "property", "name": "text_offset", "serializedName": "text_offset", "type": { - "$id": "706", + "$id": "696", "kind": "array", "name": "Array", "valueType": { - "$id": "707", + "$id": "697", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -6517,7 +6471,7 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.anonymous.logprobs" }, { - "$id": "708", + "$id": "698", "kind": "property", "name": "finish_reason", "serializedName": "finish_reason", @@ -6545,12 +6499,12 @@ "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choices" }, { - "$id": "709", + "$id": "699", "kind": "property", "name": "usage", "serializedName": "usage", "type": { - "$ref": "601" + "$ref": "591" }, "optional": true, "readOnly": false, @@ -6562,13 +6516,13 @@ ] }, { - "$ref": "686" + "$ref": "676" }, { - "$ref": "693" + "$ref": "683" }, { - "$id": "710", + "$id": "700", "kind": "model", "name": "CreateFineTuningJobRequest", "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest", @@ -6576,13 +6530,13 @@ "decorators": [], "properties": [ { - "$id": "711", + "$id": "701", "kind": "property", "name": "training_file", "serializedName": "training_file", "description": "The ID of an uploaded file that contains training data.\n\nSee [upload file](/docs/api-reference/files/upload) for how to upload a file.\n\nYour dataset must be formatted as a JSONL file. Additionally, you must upload your file with\nthe purpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/fine-tuning) for more details.", "type": { - "$id": "712", + "$id": "702", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6596,16 +6550,16 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.training_file" }, { - "$id": "713", + "$id": "703", "kind": "property", "name": "validation_file", "serializedName": "validation_file", "description": "The ID of an uploaded file that contains validation data.\n\nIf you provide this file, the data is used to generate validation metrics periodically during\nfine-tuning. These metrics can be viewed in the fine-tuning results file. The same data should\nnot be present in both train and validation files.\n\nYour dataset must be formatted as a JSONL file. You must upload your file with the purpose\n`fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/fine-tuning) for more details.", "type": { - "$id": "714", + "$id": "704", "kind": "nullable", "type": { - "$id": "715", + "$id": "705", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6620,7 +6574,7 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.validation_file" }, { - "$id": "716", + "$id": "706", "kind": "property", "name": "model", "serializedName": "model", @@ -6636,13 +6590,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.model" }, { - "$id": "717", + "$id": "707", "kind": "property", "name": "hyperparameters", "serializedName": "hyperparameters", "description": "The hyperparameters used for the fine-tuning job.", "type": { - "$id": "718", + "$id": "708", "kind": "model", "name": "CreateFineTuningJobRequestHyperparameters", "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.hyperparameters.anonymous", @@ -6650,21 +6604,21 @@ "decorators": [], "properties": [ { - "$id": "719", + "$id": "709", "kind": "property", "name": "n_epochs", "serializedName": "n_epochs", "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the\ntraining dataset.", "type": { - "$id": "720", + "$id": "710", "kind": "union", "name": "CreateFineTuningJobRequestHyperparametersNEpochs", "variantTypes": [ { - "$id": "721", + "$id": "711", "kind": "constant", "valueType": { - "$id": "722", + "$id": "712", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6674,12 +6628,12 @@ "decorators": [] }, { - "$id": "723", + "$id": "713", "kind": "safeint", "name": "NEpochs", "crossLanguageDefinitionId": "OpenAI.NEpochs", "baseType": { - "$id": "724", + "$id": "714", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -6707,21 +6661,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.hyperparameters" }, { - "$id": "725", + "$id": "715", "kind": "property", "name": "suffix", "serializedName": "suffix", "description": "A string of up to 18 characters that will be added to your fine-tuned model name.\n\nFor example, a `suffix` of \"custom-model-name\" would produce a model name like\n`ft:gpt-3.5-turbo:openai:custom-model-name:7p4lURel`.", "type": { - "$id": "726", + "$id": "716", "kind": "nullable", "type": { - "$id": "727", + "$id": "717", "kind": "string", "name": "SuffixString", "crossLanguageDefinitionId": "OpenAI.SuffixString", "baseType": { - "$id": "728", + "$id": "718", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6740,10 +6694,10 @@ ] }, { - "$ref": "718" + "$ref": "708" }, { - "$id": "729", + "$id": "719", "kind": "model", "name": "FineTuningJob", "crossLanguageDefinitionId": "OpenAI.FineTuningJob", @@ -6751,13 +6705,13 @@ "decorators": [], "properties": [ { - "$id": "730", + "$id": "720", "kind": "property", "name": "id", "serializedName": "id", "description": "The object identifier, which can be referenced in the API endpoints.", "type": { - "$id": "731", + "$id": "721", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6771,13 +6725,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.id" }, { - "$id": "732", + "$id": "722", "kind": "property", "name": "object", "serializedName": "object", "description": "The object type, which is always \"fine_tuning.job\".", "type": { - "$id": "733", + "$id": "723", "kind": "constant", "valueType": { "$ref": "128" @@ -6793,18 +6747,18 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.object" }, { - "$id": "734", + "$id": "724", "kind": "property", "name": "created_at", "serializedName": "created_at", "description": "The Unix timestamp (in seconds) for when the fine-tuning job was created.", "type": { - "$id": "735", + "$id": "725", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "736", + "$id": "726", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6821,21 +6775,21 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.created_at" }, { - "$id": "737", + "$id": "727", "kind": "property", "name": "finished_at", "serializedName": "finished_at", "description": "The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be\nnull if the fine-tuning job is still running.", "type": { - "$id": "738", + "$id": "728", "kind": "nullable", "type": { - "$id": "739", + "$id": "729", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "740", + "$id": "730", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6853,13 +6807,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.finished_at" }, { - "$id": "741", + "$id": "731", "kind": "property", "name": "model", "serializedName": "model", "description": "The base model that is being fine-tuned.", "type": { - "$id": "742", + "$id": "732", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6873,16 +6827,16 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.model" }, { - "$id": "743", + "$id": "733", "kind": "property", "name": "fine_tuned_model", "serializedName": "fine_tuned_model", "description": "The name of the fine-tuned model that is being created. The value will be null if the\nfine-tuning job is still running.", "type": { - "$id": "744", + "$id": "734", "kind": "nullable", "type": { - "$id": "745", + "$id": "735", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6897,13 +6851,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.fine_tuned_model" }, { - "$id": "746", + "$id": "736", "kind": "property", "name": "organization_id", "serializedName": "organization_id", "description": "The organization that owns the fine-tuning job.", "type": { - "$id": "747", + "$id": "737", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6917,7 +6871,7 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.organization_id" }, { - "$id": "748", + "$id": "738", "kind": "property", "name": "status", "serializedName": "status", @@ -6933,13 +6887,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.status" }, { - "$id": "749", + "$id": "739", "kind": "property", "name": "hyperparameters", "serializedName": "hyperparameters", "description": "The hyperparameters used for the fine-tuning job. See the\n[fine-tuning guide](/docs/guides/fine-tuning) for more details.", "type": { - "$id": "750", + "$id": "740", "kind": "model", "name": "FineTuningJobHyperparameters", "crossLanguageDefinitionId": "OpenAI.FineTuningJob.hyperparameters.anonymous", @@ -6947,21 +6901,21 @@ "decorators": [], "properties": [ { - "$id": "751", + "$id": "741", "kind": "property", "name": "n_epochs", "serializedName": "n_epochs", "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the\ntraining dataset.\n\n\"Auto\" decides the optimal number of epochs based on the size of the dataset. If setting the\nnumber manually, we support any number between 1 and 50 epochs.", "type": { - "$id": "752", + "$id": "742", "kind": "union", "name": "FineTuningJobHyperparametersNEpochs", "variantTypes": [ { - "$id": "753", + "$id": "743", "kind": "constant", "valueType": { - "$id": "754", + "$id": "744", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6971,12 +6925,12 @@ "decorators": [] }, { - "$id": "755", + "$id": "745", "kind": "safeint", "name": "NEpochs", "crossLanguageDefinitionId": "OpenAI.NEpochs", "baseType": { - "$id": "756", + "$id": "746", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -7004,13 +6958,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.hyperparameters" }, { - "$id": "757", + "$id": "747", "kind": "property", "name": "training_file", "serializedName": "training_file", "description": "The file ID used for training. You can retrieve the training data with the\n[Files API](/docs/api-reference/files/retrieve-contents).", "type": { - "$id": "758", + "$id": "748", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7024,16 +6978,16 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.training_file" }, { - "$id": "759", + "$id": "749", "kind": "property", "name": "validation_file", "serializedName": "validation_file", "description": "The file ID used for validation. You can retrieve the validation results with the\n[Files API](/docs/api-reference/files/retrieve-contents).", "type": { - "$id": "760", + "$id": "750", "kind": "nullable", "type": { - "$id": "761", + "$id": "751", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7048,17 +7002,17 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.validation_file" }, { - "$id": "762", + "$id": "752", "kind": "property", "name": "result_files", "serializedName": "result_files", "description": "The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the\n[Files API](/docs/api-reference/files/retrieve-contents).", "type": { - "$id": "763", + "$id": "753", "kind": "array", "name": "Array", "valueType": { - "$id": "764", + "$id": "754", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7075,16 +7029,16 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.result_files" }, { - "$id": "765", + "$id": "755", "kind": "property", "name": "trained_tokens", "serializedName": "trained_tokens", "description": "The total number of billable tokens processed by this fine tuning job. The value will be null\nif the fine-tuning job is still running.", "type": { - "$id": "766", + "$id": "756", "kind": "nullable", "type": { - "$id": "767", + "$id": "757", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -7099,16 +7053,16 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.trained_tokens" }, { - "$id": "768", + "$id": "758", "kind": "property", "name": "error", "serializedName": "error", "description": "For fine-tuning jobs that have `failed`, this will contain more information on the cause of the\nfailure.", "type": { - "$id": "769", + "$id": "759", "kind": "nullable", "type": { - "$id": "770", + "$id": "760", "kind": "model", "name": "FineTuningJobError", "crossLanguageDefinitionId": "OpenAI.FineTuningJob.error.anonymous", @@ -7116,13 +7070,13 @@ "decorators": [], "properties": [ { - "$id": "771", + "$id": "761", "kind": "property", "name": "message", "serializedName": "message", "description": "A human-readable error message.", "type": { - "$id": "772", + "$id": "762", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7136,13 +7090,13 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.error.anonymous.message" }, { - "$id": "773", + "$id": "763", "kind": "property", "name": "code", "serializedName": "code", "description": "A machine-readable error code.", "type": { - "$id": "774", + "$id": "764", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7156,16 +7110,16 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJob.error.anonymous.code" }, { - "$id": "775", + "$id": "765", "kind": "property", "name": "param", "serializedName": "param", "description": "The parameter that was invalid, usually `training_file` or `validation_file`. This field\nwill be null if the failure was not parameter-specific.", "type": { - "$id": "776", + "$id": "766", "kind": "nullable", "type": { - "$id": "777", + "$id": "767", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7192,13 +7146,13 @@ ] }, { - "$ref": "750" + "$ref": "740" }, { - "$ref": "770" + "$ref": "760" }, { - "$id": "778", + "$id": "768", "kind": "model", "name": "ListPaginatedFineTuningJobsResponse", "crossLanguageDefinitionId": "OpenAI.ListPaginatedFineTuningJobsResponse", @@ -7206,12 +7160,12 @@ "decorators": [], "properties": [ { - "$id": "779", + "$id": "769", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "780", + "$id": "770", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7225,16 +7179,16 @@ "crossLanguageDefinitionId": "OpenAI.ListPaginatedFineTuningJobsResponse.object" }, { - "$id": "781", + "$id": "771", "kind": "property", "name": "data", "serializedName": "data", "type": { - "$id": "782", + "$id": "772", "kind": "array", "name": "ArrayFineTuningJob", "valueType": { - "$ref": "729" + "$ref": "719" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -7247,12 +7201,12 @@ "crossLanguageDefinitionId": "OpenAI.ListPaginatedFineTuningJobsResponse.data" }, { - "$id": "783", + "$id": "773", "kind": "property", "name": "has_more", "serializedName": "has_more", "type": { - "$id": "784", + "$id": "774", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -7268,7 +7222,7 @@ ] }, { - "$id": "785", + "$id": "775", "kind": "model", "name": "ListFineTuningJobEventsResponse", "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobEventsResponse", @@ -7276,12 +7230,12 @@ "decorators": [], "properties": [ { - "$id": "786", + "$id": "776", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "787", + "$id": "777", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7295,16 +7249,16 @@ "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobEventsResponse.object" }, { - "$id": "788", + "$id": "778", "kind": "property", "name": "data", "serializedName": "data", "type": { - "$id": "789", + "$id": "779", "kind": "array", "name": "ArrayFineTuningJobEvent", "valueType": { - "$id": "790", + "$id": "780", "kind": "model", "name": "FineTuningJobEvent", "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent", @@ -7312,12 +7266,12 @@ "decorators": [], "properties": [ { - "$id": "791", + "$id": "781", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "792", + "$id": "782", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7331,12 +7285,12 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.id" }, { - "$id": "793", + "$id": "783", "kind": "property", "name": "object", "serializedName": "object", "type": { - "$id": "794", + "$id": "784", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7350,17 +7304,17 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.object" }, { - "$id": "795", + "$id": "785", "kind": "property", "name": "created_at", "serializedName": "created_at", "type": { - "$id": "796", + "$id": "786", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "797", + "$id": "787", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7377,7 +7331,7 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.created_at" }, { - "$id": "798", + "$id": "788", "kind": "property", "name": "level", "serializedName": "level", @@ -7392,12 +7346,12 @@ "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.level" }, { - "$id": "799", + "$id": "789", "kind": "property", "name": "message", "serializedName": "message", "type": { - "$id": "800", + "$id": "790", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7425,10 +7379,10 @@ ] }, { - "$ref": "790" + "$ref": "780" }, { - "$id": "801", + "$id": "791", "kind": "model", "name": "ChatCompletionRequestMessage", "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessage", @@ -7436,7 +7390,7 @@ "decorators": [], "properties": [ { - "$id": "802", + "$id": "792", "kind": "property", "name": "role", "serializedName": "role", @@ -7452,16 +7406,16 @@ "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessage.role" }, { - "$id": "803", + "$id": "793", "kind": "property", "name": "content", "serializedName": "content", "description": "The contents of the message. `content` is required for all messages, and may be null for\nassistant messages with function calls.", "type": { - "$id": "804", + "$id": "794", "kind": "nullable", "type": { - "$id": "805", + "$id": "795", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7476,13 +7430,13 @@ "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessage.content" }, { - "$id": "806", + "$id": "796", "kind": "property", "name": "name", "serializedName": "name", "description": "The name of the author of this message. `name` is required if role is `function`, and it\nshould be the name of the function whose response is in the `content`. May contain a-z,\nA-Z, 0-9, and underscores, with a maximum length of 64 characters.", "type": { - "$id": "807", + "$id": "797", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7496,13 +7450,13 @@ "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessage.name" }, { - "$id": "808", + "$id": "798", "kind": "property", "name": "function_call", "serializedName": "function_call", "description": "The name and arguments of a function that should be called, as generated by the model.", "type": { - "$id": "809", + "$id": "799", "kind": "model", "name": "ChatCompletionRequestMessageFunctionCall", "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessage.function_call.anonymous", @@ -7510,13 +7464,13 @@ "decorators": [], "properties": [ { - "$id": "810", + "$id": "800", "kind": "property", "name": "name", "serializedName": "name", "description": "The name of the function to call.", "type": { - "$id": "811", + "$id": "801", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7530,13 +7484,13 @@ "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessage.function_call.anonymous.name" }, { - "$id": "812", + "$id": "802", "kind": "property", "name": "arguments", "serializedName": "arguments", "description": "The arguments to call the function with, as generated by the model in JSON format. Note that\nthe model does not always generate valid JSON, and may hallucinate parameters not defined by\nyour function schema. Validate the arguments in your code before calling your function.", "type": { - "$id": "813", + "$id": "803", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7561,10 +7515,10 @@ ] }, { - "$ref": "809" + "$ref": "799" }, { - "$id": "814", + "$id": "804", "kind": "model", "name": "ChatCompletionFunctions", "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctions", @@ -7572,13 +7526,13 @@ "decorators": [], "properties": [ { - "$id": "815", + "$id": "805", "kind": "property", "name": "name", "serializedName": "name", "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and\ndashes, with a maximum length of 64.", "type": { - "$id": "816", + "$id": "806", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7592,13 +7546,13 @@ "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctions.name" }, { - "$id": "817", + "$id": "807", "kind": "property", "name": "description", "serializedName": "description", "description": "A description of what the function does, used by the model to choose when and how to call the\nfunction.", "type": { - "$id": "818", + "$id": "808", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7612,20 +7566,20 @@ "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctions.description" }, { - "$id": "819", + "$id": "809", "kind": "property", "name": "parameters", "serializedName": "parameters", "description": "The parameters the functions accepts, described as a JSON Schema object. See the\n[guide](/docs/guides/gpt/function-calling) for examples, and the\n[JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation\nabout the format.\\n\\nTo describe a function that accepts no parameters, provide the value\n`{\\\"type\\\": \\\"object\\\", \\\"properties\\\": {}}`.", "type": { - "$id": "820", + "$id": "810", "kind": "model", "name": "ChatCompletionFunctionParameters", "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctionParameters", "usage": "Input,Json", "decorators": [], "additionalProperties": { - "$id": "821", + "$id": "811", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -7643,10 +7597,10 @@ ] }, { - "$ref": "820" + "$ref": "810" }, { - "$id": "822", + "$id": "812", "kind": "model", "name": "ChatCompletionFunctionCallOption", "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctionCallOption", @@ -7654,13 +7608,13 @@ "decorators": [], "properties": [ { - "$id": "823", + "$id": "813", "kind": "property", "name": "name", "serializedName": "name", "description": "The name of the function to call.", "type": { - "$id": "824", + "$id": "814", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7676,7 +7630,7 @@ ] }, { - "$id": "825", + "$id": "815", "kind": "model", "name": "CreateChatCompletionRequest", "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest", @@ -7684,7 +7638,7 @@ "decorators": [], "properties": [ { - "$id": "826", + "$id": "816", "kind": "property", "name": "model", "serializedName": "model", @@ -7700,17 +7654,17 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.model" }, { - "$id": "827", + "$id": "817", "kind": "property", "name": "messages", "serializedName": "messages", "description": "A list of messages comprising the conversation so far.\n[Example Python code](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_format_inputs_to_ChatGPT_models.ipynb).", "type": { - "$id": "828", + "$id": "818", "kind": "array", "name": "ArrayChatCompletionRequestMessage", "valueType": { - "$ref": "801" + "$ref": "791" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -7723,17 +7677,17 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.messages" }, { - "$id": "829", + "$id": "819", "kind": "property", "name": "functions", "serializedName": "functions", "description": "A list of functions the model may generate JSON inputs for.", "type": { - "$id": "830", + "$id": "820", "kind": "array", "name": "ArrayChatCompletionFunctions", "valueType": { - "$ref": "814" + "$ref": "804" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -7746,21 +7700,21 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.functions" }, { - "$id": "831", + "$id": "821", "kind": "property", "name": "function_call", "serializedName": "function_call", "description": "Controls how the model responds to function calls. `none` means the model does not call a\nfunction, and responds to the end-user. `auto` means the model can pick between an end-user or\ncalling a function. Specifying a particular function via `{\\\"name\":\\ \\\"my_function\\\"}` forces the\nmodel to call that function. `none` is the default when no functions are present. `auto` is the\ndefault if functions are present.", "type": { - "$id": "832", + "$id": "822", "kind": "union", "name": "CreateChatCompletionRequestFunctionCall1", "variantTypes": [ { - "$id": "833", + "$id": "823", "kind": "constant", "valueType": { - "$id": "834", + "$id": "824", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7770,10 +7724,10 @@ "decorators": [] }, { - "$id": "835", + "$id": "825", "kind": "constant", "valueType": { - "$id": "836", + "$id": "826", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7783,7 +7737,7 @@ "decorators": [] }, { - "$ref": "822" + "$ref": "812" } ], "decorators": [] @@ -7796,28 +7750,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.function_call" }, { - "$id": "837", + "$id": "827", "kind": "property", "name": "temperature", "serializedName": "temperature", "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output\nmore random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.", "type": { - "$id": "838", - "kind": "nullable", - "type": { - "$id": "839", - "kind": "float64", - "name": "Temperature", - "crossLanguageDefinitionId": "OpenAI.Temperature", - "baseType": { - "$id": "840", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "decorators": [] - } + "$ref": "615" }, "optional": true, "readOnly": false, @@ -7827,28 +7766,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.temperature" }, { - "$id": "841", + "$id": "828", "kind": "property", "name": "top_p", "serializedName": "top_p", "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers\nthe results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising\nthe top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.", "type": { - "$id": "842", - "kind": "nullable", - "type": { - "$id": "843", - "kind": "float64", - "name": "TopP", - "crossLanguageDefinitionId": "OpenAI.TopP", - "baseType": { - "$id": "844", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "decorators": [] - } + "$ref": "619" }, "optional": true, "readOnly": false, @@ -7858,28 +7782,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.top_p" }, { - "$id": "845", + "$id": "829", "kind": "property", "name": "n", "serializedName": "n", "description": "How many completions to generate for each prompt.\n**Note:** Because this parameter generates many completions, it can quickly consume your token\nquota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.", "type": { - "$id": "846", - "kind": "nullable", - "type": { - "$id": "847", - "kind": "safeint", - "name": "N", - "crossLanguageDefinitionId": "OpenAI.N", - "baseType": { - "$id": "848", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "decorators": [] - } + "$ref": "623" }, "optional": true, "readOnly": false, @@ -7889,28 +7798,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.n" }, { - "$id": "849", + "$id": "830", "kind": "property", "name": "max_tokens", "serializedName": "max_tokens", "description": "The maximum number of [tokens](/tokenizer) to generate in the completion.\n\nThe token count of your prompt plus `max_tokens` cannot exceed the model's context length.\n[Example Python code](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb)\nfor counting tokens.", "type": { - "$id": "850", - "kind": "nullable", - "type": { - "$id": "851", - "kind": "safeint", - "name": "MaxTokens", - "crossLanguageDefinitionId": "OpenAI.MaxTokens", - "baseType": { - "$id": "852", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "decorators": [] - } + "$ref": "627" }, "optional": true, "readOnly": false, @@ -7920,43 +7814,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.max_tokens" }, { - "$id": "853", + "$id": "831", "kind": "property", "name": "stop", "serializedName": "stop", "description": "Up to 4 sequences where the API will stop generating further tokens.", "type": { - "$id": "854", - "kind": "nullable", - "type": { - "$id": "855", - "kind": "union", - "name": "Stop", - "variantTypes": [ - { - "$id": "856", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - { - "$id": "857", - "kind": "array", - "name": "StopSequences", - "valueType": { - "$id": "858", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "OpenAI.StopSequences", - "decorators": [] - } - ], - "decorators": [] - } + "$ref": "631" }, "optional": true, "readOnly": false, @@ -7966,28 +7830,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.stop" }, { - "$id": "859", + "$id": "832", "kind": "property", "name": "presence_penalty", "serializedName": "presence_penalty", "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear\nin the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](/docs/guides/gpt/parameter-details)", "type": { - "$id": "860", - "kind": "nullable", - "type": { - "$id": "861", - "kind": "float64", - "name": "Penalty", - "crossLanguageDefinitionId": "OpenAI.Penalty", - "baseType": { - "$id": "862", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "decorators": [] - } + "$ref": "637" }, "optional": true, "readOnly": false, @@ -7997,28 +7846,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.presence_penalty" }, { - "$id": "863", + "$id": "833", "kind": "property", "name": "frequency_penalty", "serializedName": "frequency_penalty", "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing\nfrequency in the text so far, decreasing the model's likelihood to repeat the same line\nverbatim.\n\n[See more information about frequency and presence penalties.](/docs/guides/gpt/parameter-details)", "type": { - "$id": "864", - "kind": "nullable", - "type": { - "$id": "865", - "kind": "float64", - "name": "Penalty", - "crossLanguageDefinitionId": "OpenAI.Penalty", - "baseType": { - "$id": "866", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "decorators": [] - } + "$ref": "641" }, "optional": true, "readOnly": false, @@ -8028,33 +7862,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.frequency_penalty" }, { - "$id": "867", + "$id": "834", "kind": "property", "name": "logit_bias", "serializedName": "logit_bias", "description": "Modify the likelihood of specified tokens appearing in the completion.\nAccepts a json object that maps tokens (specified by their token ID in the tokenizer) to an\nassociated bias value from -100 to 100. Mathematically, the bias is added to the logits\ngenerated by the model prior to sampling. The exact effect will vary per model, but values\nbetween -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100\nshould result in a ban or exclusive selection of the relevant token.", "type": { - "$id": "868", - "kind": "nullable", - "type": { - "$id": "869", - "kind": "dict", - "keyType": { - "$id": "870", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "871", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "decorators": [] - } + "$ref": "645" }, "optional": true, "readOnly": false, @@ -8064,18 +7878,18 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.logit_bias" }, { - "$id": "872", + "$id": "835", "kind": "property", "name": "user", "serializedName": "user", "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect\nabuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).", "type": { - "$id": "873", + "$id": "836", "kind": "string", "name": "User", "crossLanguageDefinitionId": "OpenAI.User", "baseType": { - "$id": "874", + "$id": "837", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8091,21 +7905,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.user" }, { - "$id": "875", + "$id": "838", "kind": "property", "name": "stream", "serializedName": "stream", "description": "If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only\n[server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format)\nas they become available, with the stream terminated by a `data: [DONE]` message.\n[Example Python code](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_stream_completions.ipynb).", "type": { - "$id": "876", - "kind": "nullable", - "type": { - "$id": "877", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } + "$ref": "653" }, "optional": true, "readOnly": false, @@ -8117,7 +7923,7 @@ ] }, { - "$id": "878", + "$id": "839", "kind": "model", "name": "CreateChatCompletionResponse", "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse", @@ -8126,13 +7932,13 @@ "decorators": [], "properties": [ { - "$id": "879", + "$id": "840", "kind": "property", "name": "id", "serializedName": "id", "description": "A unique identifier for the chat completion.", "type": { - "$id": "880", + "$id": "841", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8146,13 +7952,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.id" }, { - "$id": "881", + "$id": "842", "kind": "property", "name": "object", "serializedName": "object", "description": "The object type, which is always `chat.completion`.", "type": { - "$id": "882", + "$id": "843", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8166,18 +7972,18 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.object" }, { - "$id": "883", + "$id": "844", "kind": "property", "name": "created", "serializedName": "created", "description": "The Unix timestamp (in seconds) of when the chat completion was created.", "type": { - "$id": "884", + "$id": "845", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "885", + "$id": "846", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -8194,13 +8000,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.created" }, { - "$id": "886", + "$id": "847", "kind": "property", "name": "model", "serializedName": "model", "description": "The model used for the chat completion.", "type": { - "$id": "887", + "$id": "848", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8214,17 +8020,17 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.model" }, { - "$id": "888", + "$id": "849", "kind": "property", "name": "choices", "serializedName": "choices", "description": "A list of chat completion choices. Can be more than one if `n` is greater than 1.", "type": { - "$id": "889", + "$id": "850", "kind": "array", "name": "Array", "valueType": { - "$id": "890", + "$id": "851", "kind": "model", "name": "CreateChatCompletionResponseChoice", "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.anonymous", @@ -8232,13 +8038,13 @@ "decorators": [], "properties": [ { - "$id": "891", + "$id": "852", "kind": "property", "name": "index", "serializedName": "index", "description": "The index of the choice in the list of choices.", "type": { - "$id": "892", + "$id": "853", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -8252,12 +8058,12 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.anonymous.index" }, { - "$id": "893", + "$id": "854", "kind": "property", "name": "message", "serializedName": "message", "type": { - "$id": "894", + "$id": "855", "kind": "model", "name": "ChatCompletionResponseMessage", "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage", @@ -8265,7 +8071,7 @@ "decorators": [], "properties": [ { - "$id": "895", + "$id": "856", "kind": "property", "name": "role", "serializedName": "role", @@ -8281,16 +8087,16 @@ "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.role" }, { - "$id": "896", + "$id": "857", "kind": "property", "name": "content", "serializedName": "content", "description": "The contents of the message.", "type": { - "$id": "897", + "$id": "858", "kind": "nullable", "type": { - "$id": "898", + "$id": "859", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8305,13 +8111,13 @@ "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.content" }, { - "$id": "899", + "$id": "860", "kind": "property", "name": "function_call", "serializedName": "function_call", "description": "The name and arguments of a function that should be called, as generated by the model.", "type": { - "$id": "900", + "$id": "861", "kind": "model", "name": "ChatCompletionResponseMessageFunctionCall", "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.function_call.anonymous", @@ -8319,13 +8125,13 @@ "decorators": [], "properties": [ { - "$id": "901", + "$id": "862", "kind": "property", "name": "name", "serializedName": "name", "description": "The name of the function to call.", "type": { - "$id": "902", + "$id": "863", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8339,13 +8145,13 @@ "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.function_call.anonymous.name" }, { - "$id": "903", + "$id": "864", "kind": "property", "name": "arguments", "serializedName": "arguments", "description": "The arguments to call the function with, as generated by the model in JSON format. Note that\nthe model does not always generate valid JSON, and may hallucinate parameters not defined by\nyour function schema. Validate the arguments in your code before calling your function.", "type": { - "$id": "904", + "$id": "865", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8377,7 +8183,7 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.anonymous.message" }, { - "$id": "905", + "$id": "866", "kind": "property", "name": "finish_reason", "serializedName": "finish_reason", @@ -8405,12 +8211,12 @@ "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choices" }, { - "$id": "906", + "$id": "867", "kind": "property", "name": "usage", "serializedName": "usage", "type": { - "$ref": "601" + "$ref": "591" }, "optional": true, "readOnly": false, @@ -8422,16 +8228,16 @@ ] }, { - "$ref": "890" + "$ref": "851" }, { - "$ref": "894" + "$ref": "855" }, { - "$ref": "900" + "$ref": "861" }, { - "$id": "907", + "$id": "868", "kind": "model", "name": "CreateTranslationRequest", "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest", @@ -8439,13 +8245,13 @@ "decorators": [], "properties": [ { - "$id": "908", + "$id": "869", "kind": "property", "name": "file", "serializedName": "file", "description": "The audio file object (not file name) to translate, in one of these formats: flac, mp3, mp4,\nmpeg, mpga, m4a, ogg, wav, or webm.", "type": { - "$id": "909", + "$id": "870", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -8460,7 +8266,7 @@ "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.file" }, { - "$id": "910", + "$id": "871", "kind": "property", "name": "model", "serializedName": "model", @@ -8476,13 +8282,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.model" }, { - "$id": "911", + "$id": "872", "kind": "property", "name": "prompt", "serializedName": "prompt", "description": "An optional text to guide the model's style or continue a previous audio segment. The\n[prompt](/docs/guides/speech-to-text/prompting) should match the audio language.", "type": { - "$id": "912", + "$id": "873", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8496,7 +8302,7 @@ "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.prompt" }, { - "$id": "913", + "$id": "874", "kind": "property", "name": "response_format", "serializedName": "response_format", @@ -8512,13 +8318,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.response_format" }, { - "$id": "914", + "$id": "875", "kind": "property", "name": "temperature", "serializedName": "temperature", "description": "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more\nrandom, while lower values like 0.2 will make it more focused and deterministic. If set to 0,\nthe model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to\nautomatically increase the temperature until certain thresholds are hit.", "type": { - "$id": "915", + "$id": "876", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -8534,7 +8340,7 @@ ] }, { - "$id": "916", + "$id": "877", "kind": "model", "name": "CreateTranslationResponse", "crossLanguageDefinitionId": "OpenAI.CreateTranslationResponse", @@ -8542,12 +8348,12 @@ "decorators": [], "properties": [ { - "$id": "917", + "$id": "878", "kind": "property", "name": "text", "serializedName": "text", "type": { - "$id": "918", + "$id": "879", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8563,7 +8369,7 @@ ] }, { - "$id": "919", + "$id": "880", "kind": "model", "name": "CreateTranscriptionRequest", "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest", @@ -8571,13 +8377,13 @@ "decorators": [], "properties": [ { - "$id": "920", + "$id": "881", "kind": "property", "name": "file", "serializedName": "file", "description": "The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4,\nmpeg, mpga, m4a, ogg, wav, or webm.", "type": { - "$id": "921", + "$id": "882", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -8592,7 +8398,7 @@ "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.file" }, { - "$id": "922", + "$id": "883", "kind": "property", "name": "model", "serializedName": "model", @@ -8608,13 +8414,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.model" }, { - "$id": "923", + "$id": "884", "kind": "property", "name": "prompt", "serializedName": "prompt", "description": "An optional text to guide the model's style or continue a previous audio segment. The\n[prompt](/docs/guides/speech-to-text/prompting) should match the audio language.", "type": { - "$id": "924", + "$id": "885", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8628,7 +8434,7 @@ "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.prompt" }, { - "$id": "925", + "$id": "886", "kind": "property", "name": "response_format", "serializedName": "response_format", @@ -8644,13 +8450,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.response_format" }, { - "$id": "926", + "$id": "887", "kind": "property", "name": "temperature", "serializedName": "temperature", "description": "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more\nrandom, while lower values like 0.2 will make it more focused and deterministic. If set to 0,\nthe model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to\nautomatically increase the temperature until certain thresholds are hit.", "type": { - "$id": "927", + "$id": "888", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -8664,13 +8470,13 @@ "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.temperature" }, { - "$id": "928", + "$id": "889", "kind": "property", "name": "language", "serializedName": "language", "description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will improve accuracy\nand latency.", "type": { - "$id": "929", + "$id": "890", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8686,7 +8492,7 @@ ] }, { - "$id": "930", + "$id": "891", "kind": "model", "name": "CreateTranscriptionResponse", "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponse", @@ -8694,12 +8500,12 @@ "decorators": [], "properties": [ { - "$id": "931", + "$id": "892", "kind": "property", "name": "text", "serializedName": "text", "type": { - "$id": "932", + "$id": "893", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8717,21 +8523,21 @@ ], "Clients": [ { - "$id": "933", + "$id": "894", "Name": "OpenAIClient", "Description": "The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.", "Operations": [], "Protocol": { - "$id": "934" + "$id": "895" }, "Parameters": [ { - "$id": "935", + "$id": "896", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "936", + "$id": "897", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8746,9 +8552,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "937", + "$id": "898", "Type": { - "$id": "938", + "$id": "899", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8760,21 +8566,21 @@ "Decorators": [] }, { - "$id": "939", + "$id": "900", "Name": "Audio", "Operations": [], "Protocol": { - "$id": "940" + "$id": "901" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "941", + "$id": "902", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "942", + "$id": "903", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8789,9 +8595,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "943", + "$id": "904", "Type": { - "$id": "944", + "$id": "905", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8803,25 +8609,25 @@ "Decorators": [] }, { - "$id": "945", + "$id": "906", "Name": "AudioTranscriptions", "Operations": [ { - "$id": "946", + "$id": "907", "Name": "create", "ResourceName": "Transcriptions", "Summary": "Transcribes audio into the input language.", "Accessibility": "public", "Parameters": [ { - "$id": "947", + "$id": "908", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "948", + "$id": "909", "kind": "constant", "valueType": { - "$id": "949", + "$id": "910", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8841,14 +8647,14 @@ "SkipUrlEncoding": false }, { - "$id": "950", + "$id": "911", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "951", + "$id": "912", "kind": "constant", "valueType": { - "$id": "952", + "$id": "913", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8868,11 +8674,11 @@ "SkipUrlEncoding": false }, { - "$id": "953", + "$id": "914", "Name": "audio", "NameInRequest": "audio", "Type": { - "$ref": "919" + "$ref": "880" }, "Location": "Body", "IsApiVersion": false, @@ -8887,12 +8693,12 @@ ], "Responses": [ { - "$id": "954", + "$id": "915", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "930" + "$ref": "891" }, "BodyMediaType": "Json", "Headers": [], @@ -8917,17 +8723,17 @@ } ], "Protocol": { - "$id": "955" + "$id": "916" }, "Parent": "Audio", "Parameters": [ { - "$id": "956", + "$id": "917", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "957", + "$id": "918", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8942,9 +8748,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "958", + "$id": "919", "Type": { - "$id": "959", + "$id": "920", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8956,25 +8762,25 @@ "Decorators": [] }, { - "$id": "960", + "$id": "921", "Name": "AudioTranslations", "Operations": [ { - "$id": "961", + "$id": "922", "Name": "create", "ResourceName": "Translations", "Summary": "Transcribes audio into the input language.", "Accessibility": "public", "Parameters": [ { - "$id": "962", + "$id": "923", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "963", + "$id": "924", "kind": "constant", "valueType": { - "$id": "964", + "$id": "925", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8994,14 +8800,14 @@ "SkipUrlEncoding": false }, { - "$id": "965", + "$id": "926", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "966", + "$id": "927", "kind": "constant", "valueType": { - "$id": "967", + "$id": "928", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9021,11 +8827,11 @@ "SkipUrlEncoding": false }, { - "$id": "968", + "$id": "929", "Name": "audio", "NameInRequest": "audio", "Type": { - "$ref": "907" + "$ref": "868" }, "Location": "Body", "IsApiVersion": false, @@ -9040,12 +8846,12 @@ ], "Responses": [ { - "$id": "969", + "$id": "930", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "916" + "$ref": "877" }, "BodyMediaType": "Json", "Headers": [], @@ -9070,17 +8876,17 @@ } ], "Protocol": { - "$id": "970" + "$id": "931" }, "Parent": "Audio", "Parameters": [ { - "$id": "971", + "$id": "932", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "972", + "$id": "933", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9095,9 +8901,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "973", + "$id": "934", "Type": { - "$id": "974", + "$id": "935", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9109,21 +8915,21 @@ "Decorators": [] }, { - "$id": "975", + "$id": "936", "Name": "Chat", "Operations": [], "Protocol": { - "$id": "976" + "$id": "937" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "977", + "$id": "938", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "978", + "$id": "939", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9138,9 +8944,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "979", + "$id": "940", "Type": { - "$id": "980", + "$id": "941", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9152,25 +8958,25 @@ "Decorators": [] }, { - "$id": "981", + "$id": "942", "Name": "ChatCompletions", "Operations": [ { - "$id": "982", + "$id": "943", "Name": "create", "ResourceName": "Completions", "Accessibility": "public", "Parameters": [ { - "$id": "983", + "$id": "944", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "984", + "$id": "945", "kind": "constant", "valueType": { - "$id": "985", + "$id": "946", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9190,14 +8996,14 @@ "SkipUrlEncoding": false }, { - "$id": "986", + "$id": "947", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "987", + "$id": "948", "kind": "constant", "valueType": { - "$id": "988", + "$id": "949", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9217,11 +9023,11 @@ "SkipUrlEncoding": false }, { - "$id": "989", + "$id": "950", "Name": "createChatCompletionRequest", "NameInRequest": "createChatCompletionRequest", "Type": { - "$ref": "825" + "$ref": "815" }, "Location": "Body", "IsApiVersion": false, @@ -9236,12 +9042,12 @@ ], "Responses": [ { - "$id": "990", + "$id": "951", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "878" + "$ref": "839" }, "BodyMediaType": "Json", "Headers": [], @@ -9266,17 +9072,17 @@ } ], "Protocol": { - "$id": "991" + "$id": "952" }, "Parent": "Chat", "Parameters": [ { - "$id": "992", + "$id": "953", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "993", + "$id": "954", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9291,9 +9097,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "994", + "$id": "955", "Type": { - "$id": "995", + "$id": "956", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9305,21 +9111,21 @@ "Decorators": [] }, { - "$id": "996", + "$id": "957", "Name": "FineTuning", "Operations": [], "Protocol": { - "$id": "997" + "$id": "958" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "998", + "$id": "959", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "999", + "$id": "960", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9334,9 +9140,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1000", + "$id": "961", "Type": { - "$id": "1001", + "$id": "962", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9348,26 +9154,26 @@ "Decorators": [] }, { - "$id": "1002", + "$id": "963", "Name": "FineTuningJobs", "Operations": [ { - "$id": "1003", + "$id": "964", "Name": "create", "ResourceName": "Jobs", "Description": "Creates a job that fine-tunes a specified model from a given dataset.\n\nResponse includes details of the enqueued job including job status and the name of the\nfine-tuned models once complete.\n\n[Learn more about fine-tuning](/docs/guides/fine-tuning)", "Accessibility": "public", "Parameters": [ { - "$id": "1004", + "$id": "965", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "1005", + "$id": "966", "kind": "constant", "valueType": { - "$id": "1006", + "$id": "967", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9387,14 +9193,14 @@ "SkipUrlEncoding": false }, { - "$id": "1007", + "$id": "968", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1008", + "$id": "969", "kind": "constant", "valueType": { - "$id": "1009", + "$id": "970", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9414,11 +9220,11 @@ "SkipUrlEncoding": false }, { - "$id": "1010", + "$id": "971", "Name": "job", "NameInRequest": "job", "Type": { - "$ref": "710" + "$ref": "700" }, "Location": "Body", "IsApiVersion": false, @@ -9433,12 +9239,12 @@ ], "Responses": [ { - "$id": "1011", + "$id": "972", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "729" + "$ref": "719" }, "BodyMediaType": "Json", "Headers": [], @@ -9462,18 +9268,18 @@ "Decorators": [] }, { - "$id": "1012", + "$id": "973", "Name": "listPaginated", "ResourceName": "Jobs", "Accessibility": "public", "Parameters": [ { - "$id": "1013", + "$id": "974", "Name": "after", "NameInRequest": "after", "Description": "Identifier for the last job from the previous pagination request.", "Type": { - "$id": "1014", + "$id": "975", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9490,12 +9296,12 @@ "SkipUrlEncoding": false }, { - "$id": "1015", + "$id": "976", "Name": "limit", "NameInRequest": "limit", "Description": "Number of fine-tuning jobs to retrieve.", "Type": { - "$id": "1016", + "$id": "977", "kind": "safeint", "name": "safeint", "crossLanguageDefinitionId": "TypeSpec.safeint", @@ -9512,14 +9318,14 @@ "SkipUrlEncoding": false }, { - "$id": "1017", + "$id": "978", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1018", + "$id": "979", "kind": "constant", "valueType": { - "$id": "1019", + "$id": "980", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9541,12 +9347,12 @@ ], "Responses": [ { - "$id": "1020", + "$id": "981", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "778" + "$ref": "768" }, "BodyMediaType": "Json", "Headers": [], @@ -9567,18 +9373,18 @@ "Decorators": [] }, { - "$id": "1021", + "$id": "982", "Name": "retrieve", "ResourceName": "Jobs", "Summary": "Get info about a fine-tuning job.\n\n[Learn more about fine-tuning](/docs/guides/fine-tuning)", "Accessibility": "public", "Parameters": [ { - "$id": "1022", + "$id": "983", "Name": "fine_tuning_job_id", "NameInRequest": "fine_tuning_job_id", "Type": { - "$id": "1023", + "$id": "984", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9595,14 +9401,14 @@ "SkipUrlEncoding": false }, { - "$id": "1024", + "$id": "985", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1025", + "$id": "986", "kind": "constant", "valueType": { - "$id": "1026", + "$id": "987", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9624,12 +9430,12 @@ ], "Responses": [ { - "$id": "1027", + "$id": "988", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "729" + "$ref": "719" }, "BodyMediaType": "Json", "Headers": [], @@ -9650,19 +9456,19 @@ "Decorators": [] }, { - "$id": "1028", + "$id": "989", "Name": "listEvents", "ResourceName": "Jobs", "Summary": "Get status updates for a fine-tuning job.", "Accessibility": "public", "Parameters": [ { - "$id": "1029", + "$id": "990", "Name": "fine_tuning_job_id", "NameInRequest": "fine_tuning_job_id", "Description": "The ID of the fine-tuning job to get events for.", "Type": { - "$id": "1030", + "$id": "991", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9679,12 +9485,12 @@ "SkipUrlEncoding": false }, { - "$id": "1031", + "$id": "992", "Name": "after", "NameInRequest": "after", "Description": "Identifier for the last event from the previous pagination request.", "Type": { - "$id": "1032", + "$id": "993", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9701,12 +9507,12 @@ "SkipUrlEncoding": false }, { - "$id": "1033", + "$id": "994", "Name": "limit", "NameInRequest": "limit", "Description": "Number of events to retrieve.", "Type": { - "$id": "1034", + "$id": "995", "kind": "integer", "name": "integer", "crossLanguageDefinitionId": "TypeSpec.integer", @@ -9723,14 +9529,14 @@ "SkipUrlEncoding": false }, { - "$id": "1035", + "$id": "996", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1036", + "$id": "997", "kind": "constant", "valueType": { - "$id": "1037", + "$id": "998", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9752,12 +9558,12 @@ ], "Responses": [ { - "$id": "1038", + "$id": "999", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "785" + "$ref": "775" }, "BodyMediaType": "Json", "Headers": [], @@ -9778,19 +9584,19 @@ "Decorators": [] }, { - "$id": "1039", + "$id": "1000", "Name": "cancel", "ResourceName": "Jobs", "Summary": "Immediately cancel a fine-tune job.", "Accessibility": "public", "Parameters": [ { - "$id": "1040", + "$id": "1001", "Name": "fine_tuning_job_id", "NameInRequest": "fine_tuning_job_id", "Description": "The ID of the fine-tuning job to cancel.", "Type": { - "$id": "1041", + "$id": "1002", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9807,14 +9613,14 @@ "SkipUrlEncoding": false }, { - "$id": "1042", + "$id": "1003", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1043", + "$id": "1004", "kind": "constant", "valueType": { - "$id": "1044", + "$id": "1005", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9836,12 +9642,12 @@ ], "Responses": [ { - "$id": "1045", + "$id": "1006", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "729" + "$ref": "719" }, "BodyMediaType": "Json", "Headers": [], @@ -9863,17 +9669,17 @@ } ], "Protocol": { - "$id": "1046" + "$id": "1007" }, "Parent": "FineTuning", "Parameters": [ { - "$id": "1047", + "$id": "1008", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "1048", + "$id": "1009", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9888,9 +9694,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1049", + "$id": "1010", "Type": { - "$id": "1050", + "$id": "1011", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9902,25 +9708,25 @@ "Decorators": [] }, { - "$id": "1051", + "$id": "1012", "Name": "Completions", "Operations": [ { - "$id": "1052", + "$id": "1013", "Name": "create", "ResourceName": "Completions", "Accessibility": "public", "Parameters": [ { - "$id": "1053", + "$id": "1014", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "1054", + "$id": "1015", "kind": "constant", "valueType": { - "$id": "1055", + "$id": "1016", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9940,14 +9746,14 @@ "SkipUrlEncoding": false }, { - "$id": "1056", + "$id": "1017", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1057", + "$id": "1018", "kind": "constant", "valueType": { - "$id": "1058", + "$id": "1019", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9967,11 +9773,11 @@ "SkipUrlEncoding": false }, { - "$id": "1059", + "$id": "1020", "Name": "createCompletionRequest", "NameInRequest": "createCompletionRequest", "Type": { - "$ref": "608" + "$ref": "598" }, "Location": "Body", "IsApiVersion": false, @@ -9986,12 +9792,12 @@ ], "Responses": [ { - "$id": "1060", + "$id": "1021", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "674" + "$ref": "664" }, "BodyMediaType": "Json", "Headers": [], @@ -10016,17 +9822,17 @@ } ], "Protocol": { - "$id": "1061" + "$id": "1022" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "1062", + "$id": "1023", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "1063", + "$id": "1024", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10041,9 +9847,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1064", + "$id": "1025", "Type": { - "$id": "1065", + "$id": "1026", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10055,26 +9861,26 @@ "Decorators": [] }, { - "$id": "1066", + "$id": "1027", "Name": "Edits", "Operations": [ { - "$id": "1067", + "$id": "1028", "Name": "create", "ResourceName": "Edits", "Deprecated": "deprecated", "Accessibility": "public", "Parameters": [ { - "$id": "1068", + "$id": "1029", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "1069", + "$id": "1030", "kind": "constant", "valueType": { - "$id": "1070", + "$id": "1031", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10094,14 +9900,14 @@ "SkipUrlEncoding": false }, { - "$id": "1071", + "$id": "1032", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1072", + "$id": "1033", "kind": "constant", "valueType": { - "$id": "1073", + "$id": "1034", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10121,11 +9927,11 @@ "SkipUrlEncoding": false }, { - "$id": "1074", + "$id": "1035", "Name": "edit", "NameInRequest": "edit", "Type": { - "$ref": "567" + "$ref": "557" }, "Location": "Body", "IsApiVersion": false, @@ -10140,12 +9946,12 @@ ], "Responses": [ { - "$id": "1075", + "$id": "1036", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "586" + "$ref": "576" }, "BodyMediaType": "Json", "Headers": [], @@ -10170,17 +9976,17 @@ } ], "Protocol": { - "$id": "1076" + "$id": "1037" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "1077", + "$id": "1038", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "1078", + "$id": "1039", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10195,9 +10001,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1079", + "$id": "1040", "Type": { - "$id": "1080", + "$id": "1041", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10209,26 +10015,26 @@ "Decorators": [] }, { - "$id": "1081", + "$id": "1042", "Name": "Embeddings", "Operations": [ { - "$id": "1082", + "$id": "1043", "Name": "create", "ResourceName": "Embeddings", "Summary": "Creates an embedding vector representing the input text.", "Accessibility": "public", "Parameters": [ { - "$id": "1083", + "$id": "1044", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "1084", + "$id": "1045", "kind": "constant", "valueType": { - "$id": "1085", + "$id": "1046", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10248,14 +10054,14 @@ "SkipUrlEncoding": false }, { - "$id": "1086", + "$id": "1047", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1087", + "$id": "1048", "kind": "constant", "valueType": { - "$id": "1088", + "$id": "1049", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10275,11 +10081,11 @@ "SkipUrlEncoding": false }, { - "$id": "1089", + "$id": "1050", "Name": "embedding", "NameInRequest": "embedding", "Type": { - "$ref": "531" + "$ref": "521" }, "Location": "Body", "IsApiVersion": false, @@ -10294,12 +10100,12 @@ ], "Responses": [ { - "$id": "1090", + "$id": "1051", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "546" + "$ref": "536" }, "BodyMediaType": "Json", "Headers": [], @@ -10324,17 +10130,17 @@ } ], "Protocol": { - "$id": "1091" + "$id": "1052" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "1092", + "$id": "1053", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "1093", + "$id": "1054", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10349,9 +10155,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1094", + "$id": "1055", "Type": { - "$id": "1095", + "$id": "1056", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10363,25 +10169,25 @@ "Decorators": [] }, { - "$id": "1096", + "$id": "1057", "Name": "Files", "Operations": [ { - "$id": "1097", + "$id": "1058", "Name": "list", "ResourceName": "Files", "Summary": "Returns a list of files that belong to the user's organization.", "Accessibility": "public", "Parameters": [ { - "$id": "1098", + "$id": "1059", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1099", + "$id": "1060", "kind": "constant", "valueType": { - "$id": "1100", + "$id": "1061", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10403,12 +10209,12 @@ ], "Responses": [ { - "$id": "1101", + "$id": "1062", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "514" + "$ref": "504" }, "BodyMediaType": "Json", "Headers": [], @@ -10429,21 +10235,21 @@ "Decorators": [] }, { - "$id": "1102", + "$id": "1063", "Name": "create", "ResourceName": "Files", "Summary": "Returns a list of files that belong to the user's organization.", "Accessibility": "public", "Parameters": [ { - "$id": "1103", + "$id": "1064", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "1104", + "$id": "1065", "kind": "constant", "valueType": { - "$id": "1105", + "$id": "1066", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10463,14 +10269,14 @@ "SkipUrlEncoding": false }, { - "$id": "1106", + "$id": "1067", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1107", + "$id": "1068", "kind": "constant", "valueType": { - "$id": "1108", + "$id": "1069", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10490,11 +10296,11 @@ "SkipUrlEncoding": false }, { - "$id": "1109", + "$id": "1070", "Name": "file", "NameInRequest": "file", "Type": { - "$ref": "519" + "$ref": "509" }, "Location": "Body", "IsApiVersion": false, @@ -10509,12 +10315,12 @@ ], "Responses": [ { - "$id": "1110", + "$id": "1071", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "470" + "$ref": "460" }, "BodyMediaType": "Json", "Headers": [], @@ -10538,19 +10344,19 @@ "Decorators": [] }, { - "$id": "1111", + "$id": "1072", "Name": "retrieve", "ResourceName": "Files", "Summary": "Returns information about a specific file.", "Accessibility": "public", "Parameters": [ { - "$id": "1112", + "$id": "1073", "Name": "file_id", "NameInRequest": "file_id", "Description": "The ID of the file to use for this request.", "Type": { - "$id": "1113", + "$id": "1074", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10567,14 +10373,14 @@ "SkipUrlEncoding": false }, { - "$id": "1114", + "$id": "1075", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1115", + "$id": "1076", "kind": "constant", "valueType": { - "$id": "1116", + "$id": "1077", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10596,12 +10402,12 @@ ], "Responses": [ { - "$id": "1117", + "$id": "1078", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "470" + "$ref": "460" }, "BodyMediaType": "Json", "Headers": [], @@ -10622,19 +10428,19 @@ "Decorators": [] }, { - "$id": "1118", + "$id": "1079", "Name": "delete", "ResourceName": "Files", "Summary": "Delete a file", "Accessibility": "public", "Parameters": [ { - "$id": "1119", + "$id": "1080", "Name": "file_id", "NameInRequest": "file_id", "Description": "The ID of the file to use for this request.", "Type": { - "$id": "1120", + "$id": "1081", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10651,14 +10457,14 @@ "SkipUrlEncoding": false }, { - "$id": "1121", + "$id": "1082", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1122", + "$id": "1083", "kind": "constant", "valueType": { - "$id": "1123", + "$id": "1084", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10680,12 +10486,12 @@ ], "Responses": [ { - "$id": "1124", + "$id": "1085", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "524" + "$ref": "514" }, "BodyMediaType": "Json", "Headers": [], @@ -10706,19 +10512,19 @@ "Decorators": [] }, { - "$id": "1125", + "$id": "1086", "Name": "download", "ResourceName": "Files", "Summary": "Returns the contents of the specified file.", "Accessibility": "public", "Parameters": [ { - "$id": "1126", + "$id": "1087", "Name": "file_id", "NameInRequest": "file_id", "Description": "The ID of the file to use for this request.", "Type": { - "$id": "1127", + "$id": "1088", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10735,14 +10541,14 @@ "SkipUrlEncoding": false }, { - "$id": "1128", + "$id": "1089", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1129", + "$id": "1090", "kind": "constant", "valueType": { - "$id": "1130", + "$id": "1091", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10764,12 +10570,12 @@ ], "Responses": [ { - "$id": "1131", + "$id": "1092", "StatusCodes": [ 200 ], "BodyType": { - "$id": "1132", + "$id": "1093", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10795,17 +10601,17 @@ } ], "Protocol": { - "$id": "1133" + "$id": "1094" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "1134", + "$id": "1095", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "1135", + "$id": "1096", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10820,9 +10626,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1136", + "$id": "1097", "Type": { - "$id": "1137", + "$id": "1098", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10834,11 +10640,11 @@ "Decorators": [] }, { - "$id": "1138", + "$id": "1099", "Name": "FineTunes", "Operations": [ { - "$id": "1139", + "$id": "1100", "Name": "create", "ResourceName": "FineTunes", "Deprecated": "deprecated", @@ -10846,15 +10652,15 @@ "Accessibility": "public", "Parameters": [ { - "$id": "1140", + "$id": "1101", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "1141", + "$id": "1102", "kind": "constant", "valueType": { - "$id": "1142", + "$id": "1103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10874,14 +10680,14 @@ "SkipUrlEncoding": false }, { - "$id": "1143", + "$id": "1104", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1144", + "$id": "1105", "kind": "constant", "valueType": { - "$id": "1145", + "$id": "1106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10901,11 +10707,11 @@ "SkipUrlEncoding": false }, { - "$id": "1146", + "$id": "1107", "Name": "fine_tune", "NameInRequest": "fine_tune", "Type": { - "$ref": "396" + "$ref": "386" }, "Location": "Body", "IsApiVersion": false, @@ -10920,12 +10726,12 @@ ], "Responses": [ { - "$id": "1147", + "$id": "1108", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "433" + "$ref": "423" }, "BodyMediaType": "Json", "Headers": [], @@ -10949,7 +10755,7 @@ "Decorators": [] }, { - "$id": "1148", + "$id": "1109", "Name": "list", "ResourceName": "FineTunes", "Deprecated": "deprecated", @@ -10957,14 +10763,14 @@ "Accessibility": "public", "Parameters": [ { - "$id": "1149", + "$id": "1110", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1150", + "$id": "1111", "kind": "constant", "valueType": { - "$id": "1151", + "$id": "1112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10986,12 +10792,12 @@ ], "Responses": [ { - "$id": "1152", + "$id": "1113", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "504" + "$ref": "494" }, "BodyMediaType": "Json", "Headers": [], @@ -11012,7 +10818,7 @@ "Decorators": [] }, { - "$id": "1153", + "$id": "1114", "Name": "retrieve", "ResourceName": "FineTunes", "Deprecated": "deprecated", @@ -11020,12 +10826,12 @@ "Accessibility": "public", "Parameters": [ { - "$id": "1154", + "$id": "1115", "Name": "fine_tune_id", "NameInRequest": "fine_tune_id", "Description": "The ID of the fine-tune job", "Type": { - "$id": "1155", + "$id": "1116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11042,14 +10848,14 @@ "SkipUrlEncoding": false }, { - "$id": "1156", + "$id": "1117", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1157", + "$id": "1118", "kind": "constant", "valueType": { - "$id": "1158", + "$id": "1119", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11071,12 +10877,12 @@ ], "Responses": [ { - "$id": "1159", + "$id": "1120", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "433" + "$ref": "423" }, "BodyMediaType": "Json", "Headers": [], @@ -11097,7 +10903,7 @@ "Decorators": [] }, { - "$id": "1160", + "$id": "1121", "Name": "listEvents", "ResourceName": "FineTunes", "Deprecated": "deprecated", @@ -11105,12 +10911,12 @@ "Accessibility": "public", "Parameters": [ { - "$id": "1161", + "$id": "1122", "Name": "fine_tune_id", "NameInRequest": "fine_tune_id", "Description": "The ID of the fine-tune job to get events for.", "Type": { - "$id": "1162", + "$id": "1123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11127,12 +10933,12 @@ "SkipUrlEncoding": false }, { - "$id": "1163", + "$id": "1124", "Name": "stream", "NameInRequest": "stream", "Description": "Whether to stream events for the fine-tune job. If set to true, events will be sent as\ndata-only\n[server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format)\nas they become available. The stream will terminate with a `data: [DONE]` message when the\njob is finished (succeeded, cancelled, or failed).\n\nIf set to false, only events generated so far will be returned.", "Type": { - "$id": "1164", + "$id": "1125", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -11149,14 +10955,14 @@ "SkipUrlEncoding": false }, { - "$id": "1165", + "$id": "1126", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1166", + "$id": "1127", "kind": "constant", "valueType": { - "$id": "1167", + "$id": "1128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11178,12 +10984,12 @@ ], "Responses": [ { - "$id": "1168", + "$id": "1129", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "509" + "$ref": "499" }, "BodyMediaType": "Json", "Headers": [], @@ -11204,7 +11010,7 @@ "Decorators": [] }, { - "$id": "1169", + "$id": "1130", "Name": "cancel", "ResourceName": "FineTunes", "Deprecated": "deprecated", @@ -11212,12 +11018,12 @@ "Accessibility": "public", "Parameters": [ { - "$id": "1170", + "$id": "1131", "Name": "fine_tune_id", "NameInRequest": "fine_tune_id", "Description": "The ID of the fine-tune job to cancel", "Type": { - "$id": "1171", + "$id": "1132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11234,14 +11040,14 @@ "SkipUrlEncoding": false }, { - "$id": "1172", + "$id": "1133", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1173", + "$id": "1134", "kind": "constant", "valueType": { - "$id": "1174", + "$id": "1135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11263,12 +11069,12 @@ ], "Responses": [ { - "$id": "1175", + "$id": "1136", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "433" + "$ref": "423" }, "BodyMediaType": "Json", "Headers": [], @@ -11290,17 +11096,17 @@ } ], "Protocol": { - "$id": "1176" + "$id": "1137" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "1177", + "$id": "1138", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "1178", + "$id": "1139", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11315,9 +11121,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1179", + "$id": "1140", "Type": { - "$id": "1180", + "$id": "1141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11329,25 +11135,25 @@ "Decorators": [] }, { - "$id": "1181", + "$id": "1142", "Name": "ModelsOps", "Operations": [ { - "$id": "1182", + "$id": "1143", "Name": "list", "ResourceName": "Models", "Summary": "Lists the currently available models, and provides basic information about each one such as the\nowner and availability.", "Accessibility": "public", "Parameters": [ { - "$id": "1183", + "$id": "1144", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1184", + "$id": "1145", "kind": "constant", "valueType": { - "$id": "1185", + "$id": "1146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11369,12 +11175,12 @@ ], "Responses": [ { - "$id": "1186", + "$id": "1147", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "374" + "$ref": "364" }, "BodyMediaType": "Json", "Headers": [], @@ -11395,19 +11201,19 @@ "Decorators": [] }, { - "$id": "1187", + "$id": "1148", "Name": "retrieve", "ResourceName": "Models", "Summary": "Retrieves a model instance, providing basic information about the model such as the owner and\npermissioning.", "Accessibility": "public", "Parameters": [ { - "$id": "1188", + "$id": "1149", "Name": "model", "NameInRequest": "model", "Description": "The ID of the model to use for this request.", "Type": { - "$id": "1189", + "$id": "1150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11424,14 +11230,14 @@ "SkipUrlEncoding": false }, { - "$id": "1190", + "$id": "1151", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1191", + "$id": "1152", "kind": "constant", "valueType": { - "$id": "1192", + "$id": "1153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11453,12 +11259,12 @@ ], "Responses": [ { - "$id": "1193", + "$id": "1154", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "379" + "$ref": "369" }, "BodyMediaType": "Json", "Headers": [], @@ -11479,19 +11285,19 @@ "Decorators": [] }, { - "$id": "1194", + "$id": "1155", "Name": "delete", "ResourceName": "Models", "Summary": "Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.", "Accessibility": "public", "Parameters": [ { - "$id": "1195", + "$id": "1156", "Name": "model", "NameInRequest": "model", "Description": "The model to delete", "Type": { - "$id": "1196", + "$id": "1157", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11508,14 +11314,14 @@ "SkipUrlEncoding": false }, { - "$id": "1197", + "$id": "1158", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1198", + "$id": "1159", "kind": "constant", "valueType": { - "$id": "1199", + "$id": "1160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11537,12 +11343,12 @@ ], "Responses": [ { - "$id": "1200", + "$id": "1161", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "389" + "$ref": "379" }, "BodyMediaType": "Json", "Headers": [], @@ -11564,17 +11370,17 @@ } ], "Protocol": { - "$id": "1201" + "$id": "1162" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "1202", + "$id": "1163", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "1203", + "$id": "1164", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11589,9 +11395,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1204", + "$id": "1165", "Type": { - "$id": "1205", + "$id": "1166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11603,26 +11409,26 @@ "Decorators": [] }, { - "$id": "1206", + "$id": "1167", "Name": "Images", "Operations": [ { - "$id": "1207", + "$id": "1168", "Name": "create", "ResourceName": "Images", "Summary": "Creates an image given a prompt", "Accessibility": "public", "Parameters": [ { - "$id": "1208", + "$id": "1169", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "1209", + "$id": "1170", "kind": "constant", "valueType": { - "$id": "1210", + "$id": "1171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11642,14 +11448,14 @@ "SkipUrlEncoding": false }, { - "$id": "1211", + "$id": "1172", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1212", + "$id": "1173", "kind": "constant", "valueType": { - "$id": "1213", + "$id": "1174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11669,7 +11475,7 @@ "SkipUrlEncoding": false }, { - "$id": "1214", + "$id": "1175", "Name": "image", "NameInRequest": "image", "Type": { @@ -11688,7 +11494,7 @@ ], "Responses": [ { - "$id": "1215", + "$id": "1176", "StatusCodes": [ 200 ], @@ -11717,21 +11523,21 @@ "Decorators": [] }, { - "$id": "1216", + "$id": "1177", "Name": "createEdit", "ResourceName": "Images", "Summary": "Creates an edited or extended image given an original image and a prompt.", "Accessibility": "public", "Parameters": [ { - "$id": "1217", + "$id": "1178", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "1218", + "$id": "1179", "kind": "constant", "valueType": { - "$id": "1219", + "$id": "1180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11751,14 +11557,14 @@ "SkipUrlEncoding": false }, { - "$id": "1220", + "$id": "1181", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1221", + "$id": "1182", "kind": "constant", "valueType": { - "$id": "1222", + "$id": "1183", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11778,7 +11584,7 @@ "SkipUrlEncoding": false }, { - "$id": "1223", + "$id": "1184", "Name": "image", "NameInRequest": "image", "Type": { @@ -11797,7 +11603,7 @@ ], "Responses": [ { - "$id": "1224", + "$id": "1185", "StatusCodes": [ 200 ], @@ -11826,21 +11632,21 @@ "Decorators": [] }, { - "$id": "1225", + "$id": "1186", "Name": "createVariation", "ResourceName": "Images", "Summary": "Creates an edited or extended image given an original image and a prompt.", "Accessibility": "public", "Parameters": [ { - "$id": "1226", + "$id": "1187", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "1227", + "$id": "1188", "kind": "constant", "valueType": { - "$id": "1228", + "$id": "1189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11860,14 +11666,14 @@ "SkipUrlEncoding": false }, { - "$id": "1229", + "$id": "1190", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1230", + "$id": "1191", "kind": "constant", "valueType": { - "$id": "1231", + "$id": "1192", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11887,11 +11693,11 @@ "SkipUrlEncoding": false }, { - "$id": "1232", + "$id": "1193", "Name": "image", "NameInRequest": "image", "Type": { - "$ref": "360" + "$ref": "355" }, "Location": "Body", "IsApiVersion": false, @@ -11906,7 +11712,7 @@ ], "Responses": [ { - "$id": "1233", + "$id": "1194", "StatusCodes": [ 200 ], @@ -11936,17 +11742,17 @@ } ], "Protocol": { - "$id": "1234" + "$id": "1195" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "1235", + "$id": "1196", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "1236", + "$id": "1197", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11961,9 +11767,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1237", + "$id": "1198", "Type": { - "$id": "1238", + "$id": "1199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11975,26 +11781,26 @@ "Decorators": [] }, { - "$id": "1239", + "$id": "1200", "Name": "Moderations", "Operations": [ { - "$id": "1240", + "$id": "1201", "Name": "create", "ResourceName": "Moderations", "Summary": "Classifies if text violates OpenAI's Content Policy", "Accessibility": "public", "Parameters": [ { - "$id": "1241", + "$id": "1202", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "1242", + "$id": "1203", "kind": "constant", "valueType": { - "$id": "1243", + "$id": "1204", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12014,14 +11820,14 @@ "SkipUrlEncoding": false }, { - "$id": "1244", + "$id": "1205", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "1245", + "$id": "1206", "kind": "constant", "valueType": { - "$id": "1246", + "$id": "1207", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12041,7 +11847,7 @@ "SkipUrlEncoding": false }, { - "$id": "1247", + "$id": "1208", "Name": "content", "NameInRequest": "content", "Type": { @@ -12060,7 +11866,7 @@ ], "Responses": [ { - "$id": "1248", + "$id": "1209", "StatusCodes": [ 200 ], @@ -12090,17 +11896,17 @@ } ], "Protocol": { - "$id": "1249" + "$id": "1210" }, "Parent": "OpenAIClient", "Parameters": [ { - "$id": "1250", + "$id": "1211", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "1251", + "$id": "1212", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -12115,9 +11921,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "1252", + "$id": "1213", "Type": { - "$id": "1253", + "$id": "1214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12130,9 +11936,9 @@ } ], "Auth": { - "$id": "1254", + "$id": "1215", "ApiKey": { - "$id": "1255", + "$id": "1216", "Name": "Authorization", "Prefix": "Bearer" }