Comparing version 0.11.2-beta.1 to 0.11.3-beta.1
# Changelog | ||
## 0.11.3-beta.1 (2024-01-18) | ||
Full Changelog: [v0.11.2-beta.1...v0.11.3-beta.1](https://github.com/stainless-sdks/sink-node-public/compare/v0.11.2-beta.1...v0.11.3-beta.1) | ||
### Bug Fixes | ||
* add test for case when every param in a body is read-only ([#339](https://github.com/stainless-sdks/sink-node-public/issues/339)) ([3ac3216](https://github.com/stainless-sdks/sink-node-public/commit/3ac3216db4dd11f9d96fb93f278e11e0b2104ba4)) | ||
## 0.11.2-beta.1 (2024-01-17) | ||
@@ -4,0 +12,0 @@ |
@@ -185,3 +185,3 @@ | ||
query?: Req | undefined; | ||
body?: Req | undefined; | ||
body?: Req | null | undefined; | ||
headers?: Headers | undefined; | ||
@@ -188,0 +188,0 @@ maxRetries?: number; |
@@ -420,2 +420,3 @@ import * as Core from "./core.js"; | ||
export import BodyParamObjectWithArrayOfObjectsParams = API.BodyParamObjectWithArrayOfObjectsParams; | ||
export import BodyParamOnlyReadOnlyPropertiesParams = API.BodyParamOnlyReadOnlyPropertiesParams; | ||
export import BodyParamParamInModelNameRefParams = API.BodyParamParamInModelNameRefParams; | ||
@@ -422,0 +423,0 @@ export import BodyParamPropertyModelRefParams = API.BodyParamPropertyModelRefParams; |
{ | ||
"name": "sink-npm", | ||
"version": "0.11.2-beta.1", | ||
"version": "0.11.3-beta.1", | ||
"description": "The official TypeScript library for the Sink API", | ||
@@ -5,0 +5,0 @@ "author": "Sink <dev@stainlessapi.com>", |
@@ -21,2 +21,6 @@ import * as Core from 'sink-npm/core'; | ||
/** | ||
* Endpoint with a `requestBody` that only has `readOnly` properties | ||
*/ | ||
onlyReadOnlyProperties(body?: BodyParamOnlyReadOnlyPropertiesParams | null | undefined, options?: Core.RequestOptions): Core.APIPromise<void>; | ||
/** | ||
* Endpoint with a `requestBody` that has a schema that is defined as a model in | ||
@@ -159,2 +163,4 @@ * the config with "param" in the name. | ||
} | ||
export interface BodyParamOnlyReadOnlyPropertiesParams { | ||
} | ||
export interface BodyParamParamInModelNameRefParams { | ||
@@ -329,2 +335,3 @@ model_ref: ModelWithParamInName; | ||
export import BodyParamObjectWithArrayOfObjectsParams = BodyParamsAPI.BodyParamObjectWithArrayOfObjectsParams; | ||
export import BodyParamOnlyReadOnlyPropertiesParams = BodyParamsAPI.BodyParamOnlyReadOnlyPropertiesParams; | ||
export import BodyParamParamInModelNameRefParams = BodyParamsAPI.BodyParamParamInModelNameRefParams; | ||
@@ -331,0 +338,0 @@ export import BodyParamPropertyModelRefParams = BodyParamsAPI.BodyParamPropertyModelRefParams; |
@@ -56,2 +56,12 @@ "use strict"; | ||
/** | ||
* Endpoint with a `requestBody` that only has `readOnly` properties | ||
*/ | ||
onlyReadOnlyProperties(body, options) { | ||
return this._client.patch('/body_params/only_read_only_properties', { | ||
body, | ||
...options, | ||
headers: { Accept: '*/*', ...options?.headers }, | ||
}); | ||
} | ||
/** | ||
* Endpoint with a `requestBody` that has a schema that is defined as a model in | ||
@@ -58,0 +68,0 @@ * the config with "param" in the name. |
export { ModelNewTypeString, UnionParamUnionEnumNewTypeParams, Unions } from "./unions.js"; | ||
export { ModelWithParamInName, MyModel, NestedRequestModelA, NestedRequestModelB, NestedRequestModelC, StringMapModel, BodyParamTopLevelAllOfResponse, BodyParamUnionOverlappingPropResponse, BodyParamNestedRequestModelsParams, BodyParamObjectWithArrayOfObjectsParams, BodyParamParamInModelNameRefParams, BodyParamPropertyModelRefParams, BodyParamPropertyWithComplexUnionParams, BodyParamPropertyWithHeavilyNestedComplexUnionParams, BodyParamReadOnlyPropertiesParams, BodyParamStringMapModelRefParams, BodyParamTopLevelAllOfParams, BodyParamTopLevelAllOfNestedObjectParams, BodyParamTopLevelAnyOfWithRefParams, BodyParamTopLevelArrayParams, BodyParamTopLevelArrayWithChildrenParams, BodyParamTopLevelOneOfOneEntryParams, BodyParamTopLevelSharedTypeParams, BodyParamUnionOverlappingPropParams, BodyParamWithDefaultBodyParamOptionalParams, BodyParamWithDefaultBodyParamRequiredParams, BodyParamWithModelPropertyParams, MyModelsPagePageNumber, MyModelsPageCursorNestedObjectRef, MyModelsPageCursorSharedRef, MyModelsPageCursorFromHeaders, MyModelsPageCursorTopLevelArray, MyModelsPageCursor, MyModelsPageOffset, MyModelsPageOffsetTotalCount, BodyParams, } from "./body-params.js"; | ||
export { ModelWithParamInName, MyModel, NestedRequestModelA, NestedRequestModelB, NestedRequestModelC, StringMapModel, BodyParamTopLevelAllOfResponse, BodyParamUnionOverlappingPropResponse, BodyParamNestedRequestModelsParams, BodyParamObjectWithArrayOfObjectsParams, BodyParamOnlyReadOnlyPropertiesParams, BodyParamParamInModelNameRefParams, BodyParamPropertyModelRefParams, BodyParamPropertyWithComplexUnionParams, BodyParamPropertyWithHeavilyNestedComplexUnionParams, BodyParamReadOnlyPropertiesParams, BodyParamStringMapModelRefParams, BodyParamTopLevelAllOfParams, BodyParamTopLevelAllOfNestedObjectParams, BodyParamTopLevelAnyOfWithRefParams, BodyParamTopLevelArrayParams, BodyParamTopLevelArrayWithChildrenParams, BodyParamTopLevelOneOfOneEntryParams, BodyParamTopLevelSharedTypeParams, BodyParamUnionOverlappingPropParams, BodyParamWithDefaultBodyParamOptionalParams, BodyParamWithDefaultBodyParamRequiredParams, BodyParamWithModelPropertyParams, MyModelsPagePageNumber, MyModelsPageCursorNestedObjectRef, MyModelsPageCursorSharedRef, MyModelsPageCursorFromHeaders, MyModelsPageCursorTopLevelArray, MyModelsPageCursor, MyModelsPageOffset, MyModelsPageOffsetTotalCount, BodyParams, } from "./body-params.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -27,3 +27,3 @@ export * from "./shared.js"; | ||
export { ModelReferencedInParentAndChild, ModelReferencedInParentAndChildResource, } from "./model-referenced-in-parent-and-child/model-referenced-in-parent-and-child.js"; | ||
export { ModelWithParamInName, MyModel, NestedRequestModelA, NestedRequestModelB, NestedRequestModelC, StringMapModel, BodyParamTopLevelAllOfResponse, BodyParamUnionOverlappingPropResponse, BodyParamNestedRequestModelsParams, BodyParamObjectWithArrayOfObjectsParams, BodyParamParamInModelNameRefParams, BodyParamPropertyModelRefParams, BodyParamPropertyWithComplexUnionParams, BodyParamPropertyWithHeavilyNestedComplexUnionParams, BodyParamReadOnlyPropertiesParams, BodyParamStringMapModelRefParams, BodyParamTopLevelAllOfParams, BodyParamTopLevelAllOfNestedObjectParams, BodyParamTopLevelAnyOfWithRefParams, BodyParamTopLevelArrayParams, BodyParamTopLevelArrayWithChildrenParams, BodyParamTopLevelOneOfOneEntryParams, BodyParamTopLevelSharedTypeParams, BodyParamUnionOverlappingPropParams, BodyParamWithDefaultBodyParamOptionalParams, BodyParamWithDefaultBodyParamRequiredParams, BodyParamWithModelPropertyParams, MyModelsPagePageNumber, MyModelsPageCursorNestedObjectRef, MyModelsPageCursorSharedRef, MyModelsPageCursorFromHeaders, MyModelsPageCursorTopLevelArray, MyModelsPageCursor, MyModelsPageOffset, MyModelsPageOffsetTotalCount, BodyParams, } from "./body-params/body-params.js"; | ||
export { ModelWithParamInName, MyModel, NestedRequestModelA, NestedRequestModelB, NestedRequestModelC, StringMapModel, BodyParamTopLevelAllOfResponse, BodyParamUnionOverlappingPropResponse, BodyParamNestedRequestModelsParams, BodyParamObjectWithArrayOfObjectsParams, BodyParamOnlyReadOnlyPropertiesParams, BodyParamParamInModelNameRefParams, BodyParamPropertyModelRefParams, BodyParamPropertyWithComplexUnionParams, BodyParamPropertyWithHeavilyNestedComplexUnionParams, BodyParamReadOnlyPropertiesParams, BodyParamStringMapModelRefParams, BodyParamTopLevelAllOfParams, BodyParamTopLevelAllOfNestedObjectParams, BodyParamTopLevelAnyOfWithRefParams, BodyParamTopLevelArrayParams, BodyParamTopLevelArrayWithChildrenParams, BodyParamTopLevelOneOfOneEntryParams, BodyParamTopLevelSharedTypeParams, BodyParamUnionOverlappingPropParams, BodyParamWithDefaultBodyParamOptionalParams, BodyParamWithDefaultBodyParamRequiredParams, BodyParamWithModelPropertyParams, MyModelsPagePageNumber, MyModelsPageCursorNestedObjectRef, MyModelsPageCursorSharedRef, MyModelsPageCursorFromHeaders, MyModelsPageCursorTopLevelArray, MyModelsPageCursor, MyModelsPageOffset, MyModelsPageOffsetTotalCount, BodyParams, } from "./body-params/body-params.js"; | ||
export { ObjectSkippedProps, ToolSkippedParamsParams, Tools } from "./tools.js"; | ||
@@ -30,0 +30,0 @@ export { OnlyCustomMethods } from "./only-custom-methods.js"; |
@@ -728,3 +728,3 @@ import { VERSION } from './version'; | ||
query?: Req | undefined; | ||
body?: Req | undefined; | ||
body?: Req | null | undefined; | ||
headers?: Headers | undefined; | ||
@@ -731,0 +731,0 @@ |
@@ -654,2 +654,3 @@ // File generated from our OpenAPI spec by Stainless. | ||
export import BodyParamObjectWithArrayOfObjectsParams = API.BodyParamObjectWithArrayOfObjectsParams; | ||
export import BodyParamOnlyReadOnlyPropertiesParams = API.BodyParamOnlyReadOnlyPropertiesParams; | ||
export import BodyParamParamInModelNameRefParams = API.BodyParamParamInModelNameRefParams; | ||
@@ -656,0 +657,0 @@ export import BodyParamPropertyModelRefParams = API.BodyParamPropertyModelRefParams; |
@@ -51,2 +51,16 @@ // File generated from our OpenAPI spec by Stainless. | ||
/** | ||
* Endpoint with a `requestBody` that only has `readOnly` properties | ||
*/ | ||
onlyReadOnlyProperties( | ||
body?: BodyParamOnlyReadOnlyPropertiesParams | null | undefined, | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<void> { | ||
return this._client.patch('/body_params/only_read_only_properties', { | ||
body, | ||
...options, | ||
headers: { Accept: '*/*', ...options?.headers }, | ||
}); | ||
} | ||
/** | ||
* Endpoint with a `requestBody` that has a schema that is defined as a model in | ||
@@ -373,2 +387,4 @@ * the config with "param" in the name. | ||
export interface BodyParamOnlyReadOnlyPropertiesParams {} | ||
export interface BodyParamParamInModelNameRefParams { | ||
@@ -604,2 +620,3 @@ model_ref: ModelWithParamInName; | ||
export import BodyParamObjectWithArrayOfObjectsParams = BodyParamsAPI.BodyParamObjectWithArrayOfObjectsParams; | ||
export import BodyParamOnlyReadOnlyPropertiesParams = BodyParamsAPI.BodyParamOnlyReadOnlyPropertiesParams; | ||
export import BodyParamParamInModelNameRefParams = BodyParamsAPI.BodyParamParamInModelNameRefParams; | ||
@@ -606,0 +623,0 @@ export import BodyParamPropertyModelRefParams = BodyParamsAPI.BodyParamPropertyModelRefParams; |
@@ -15,2 +15,3 @@ // File generated from our OpenAPI spec by Stainless. | ||
BodyParamObjectWithArrayOfObjectsParams, | ||
BodyParamOnlyReadOnlyPropertiesParams, | ||
BodyParamParamInModelNameRefParams, | ||
@@ -17,0 +18,0 @@ BodyParamPropertyModelRefParams, |
@@ -158,2 +158,3 @@ // File generated from our OpenAPI spec by Stainless. | ||
BodyParamObjectWithArrayOfObjectsParams, | ||
BodyParamOnlyReadOnlyPropertiesParams, | ||
BodyParamParamInModelNameRefParams, | ||
@@ -160,0 +161,0 @@ BodyParamPropertyModelRefParams, |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.11.2-beta.1'; // x-release-please-version | ||
export const VERSION = '0.11.3-beta.1'; // x-release-please-version |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.11.2-beta.1"; | ||
export declare const VERSION = "0.11.3-beta.1"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.11.2-beta.1'; // x-release-please-version | ||
exports.VERSION = '0.11.3-beta.1'; // x-release-please-version | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
1629972
25710
4