From d527f54cc4aa9c5c0272014202e2b03b3746956e Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 24 Nov 2025 14:52:08 +0400 Subject: [PATCH 1/3] Add connector.secret private APIs --- output/schema/schema.json | 312 +++++++++++++++++- output/typescript/types.ts | 38 +++ .../ConnectorSecretDeleteRequest.ts | 39 +++ .../ConnectorSecretDeleteResponse.ts | 25 ++ .../secret_get/ConnectorSecretGetRequest.ts | 41 +++ .../secret_get/ConnectorSecretGetResponse.ts | 26 ++ .../secret_post/ConnectorSecretPostRequest.ts | 39 +++ .../ConnectorSecretPostResponse.ts | 25 ++ .../secret_put/ConnectorSecretPutRequest.ts | 44 +++ .../secret_put/ConnectorSecretPutResponse.ts | 26 ++ 10 files changed, 603 insertions(+), 12 deletions(-) create mode 100644 specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts create mode 100644 specification/connector/secret_delete/ConnectorSecretDeleteResponse.ts create mode 100644 specification/connector/secret_get/ConnectorSecretGetRequest.ts create mode 100644 specification/connector/secret_get/ConnectorSecretGetResponse.ts create mode 100644 specification/connector/secret_post/ConnectorSecretPostRequest.ts create mode 100644 specification/connector/secret_post/ConnectorSecretPostResponse.ts create mode 100644 specification/connector/secret_put/ConnectorSecretPutRequest.ts create mode 100644 specification/connector/secret_put/ConnectorSecretPutResponse.ts diff --git a/output/schema/schema.json b/output/schema/schema.json index 5d4331d5dd..f92887a010 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -3400,12 +3400,18 @@ "visibility": "private" } }, - "description": "Deletes a connector secret", + "description": "Deletes a connector secret.", "docUrl": null, "name": "connector.secret_delete", - "request": null, + "request": { + "name": "Request", + "namespace": "connector.secret_delete" + }, "requestBodyRequired": false, - "response": null, + "response": { + "name": "Response", + "namespace": "connector.secret_delete" + }, "responseMediaType": [ "application/json" ], @@ -3425,12 +3431,18 @@ "visibility": "private" } }, - "description": "Retrieves a secret stored by Connectors", + "description": "Retrieves a secret stored by Connectors.", "docUrl": null, "name": "connector.secret_get", - "request": null, + "request": { + "name": "Request", + "namespace": "connector.secret_get" + }, "requestBodyRequired": false, - "response": null, + "response": { + "name": "Response", + "namespace": "connector.secret_get" + }, "responseMediaType": [ "application/json" ], @@ -3450,12 +3462,18 @@ "visibility": "private" } }, - "description": "Creates a secret for a Connector", + "description": "Creates a secret for a Connector.", "docUrl": null, "name": "connector.secret_post", - "request": null, + "request": { + "name": "Request", + "namespace": "connector.secret_post" + }, "requestBodyRequired": true, - "response": null, + "response": { + "name": "Response", + "namespace": "connector.secret_post" + }, "responseMediaType": [ "application/json" ], @@ -3475,12 +3493,18 @@ "visibility": "private" } }, - "description": "Creates or updates a secret for a Connector", + "description": "Creates or updates a secret for a Connector.", "docUrl": null, "name": "connector.secret_put", - "request": null, + "request": { + "name": "Request", + "namespace": "connector.secret_put" + }, "requestBodyRequired": true, - "response": null, + "response": { + "name": "Response", + "namespace": "connector.secret_put" + }, "responseMediaType": [ "application/json" ], @@ -137234,6 +137258,270 @@ }, "specLocation": "connector/put/ConnectorPutResponse.ts#L23-L28" }, + { + "kind": "request", + "attachedBehaviors": [ + "CommonQueryParameters" + ], + "body": { + "kind": "no_body" + }, + "description": "Deletes a connector secret.", + "inherits": { + "type": { + "name": "RequestBase", + "namespace": "_types" + } + }, + "name": { + "name": "Request", + "namespace": "connector.secret_delete" + }, + "path": [ + { + "description": "The ID of the secret", + "name": "id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ], + "query": [], + "specLocation": "connector/secret_delete/ConnectorSecretDeleteRequest.ts#L22-L39" + }, + { + "kind": "response", + "body": { + "kind": "properties", + "properties": [ + { + "name": "deleted", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ] + }, + "name": { + "name": "Response", + "namespace": "connector.secret_delete" + }, + "specLocation": "connector/secret_delete/ConnectorSecretDeleteResponse.ts#L21-L25" + }, + { + "kind": "request", + "attachedBehaviors": [ + "CommonQueryParameters" + ], + "body": { + "kind": "no_body" + }, + "description": "Retrieves a secret stored by Connectors.", + "inherits": { + "type": { + "name": "RequestBase", + "namespace": "_types" + } + }, + "name": { + "name": "Request", + "namespace": "connector.secret_get" + }, + "path": [ + { + "description": "The ID of the secret", + "name": "id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ], + "query": [], + "specLocation": "connector/secret_get/ConnectorSecretGetRequest.ts#L24-L41" + }, + { + "kind": "response", + "body": { + "kind": "properties", + "properties": [ + { + "name": "id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "value", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ] + }, + "name": { + "name": "Response", + "namespace": "connector.secret_get" + }, + "specLocation": "connector/secret_get/ConnectorSecretGetResponse.ts#L21-L26" + }, + { + "kind": "request", + "attachedBehaviors": [ + "CommonQueryParameters" + ], + "body": { + "kind": "properties", + "properties": [ + { + "name": "value", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ] + }, + "description": "Creates a secret for a Connector.", + "inherits": { + "type": { + "name": "RequestBase", + "namespace": "_types" + } + }, + "name": { + "name": "Request", + "namespace": "connector.secret_post" + }, + "path": [], + "query": [], + "specLocation": "connector/secret_post/ConnectorSecretPostRequest.ts#L23-L39" + }, + { + "kind": "response", + "body": { + "kind": "properties", + "properties": [ + { + "name": "id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ] + }, + "name": { + "name": "Response", + "namespace": "connector.secret_post" + }, + "specLocation": "connector/secret_post/ConnectorSecretPostResponse.ts#L21-L25" + }, + { + "kind": "request", + "attachedBehaviors": [ + "CommonQueryParameters" + ], + "body": { + "kind": "properties", + "properties": [ + { + "name": "value", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ] + }, + "description": "Creates or updates a secret for a Connector.", + "inherits": { + "type": { + "name": "RequestBase", + "namespace": "_types" + } + }, + "name": { + "name": "Request", + "namespace": "connector.secret_put" + }, + "path": [ + { + "description": "The ID of the secret", + "name": "id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ], + "query": [], + "specLocation": "connector/secret_put/ConnectorSecretPutRequest.ts#L24-L44" + }, + { + "kind": "response", + "body": { + "kind": "properties", + "properties": [ + { + "name": "result", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Result", + "namespace": "_types" + } + } + } + ] + }, + "name": { + "name": "Response", + "namespace": "connector.secret_put" + }, + "specLocation": "connector/secret_put/ConnectorSecretPutResponse.ts#L22-L26" + }, { "kind": "request", "attachedBehaviors": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index b6fc1f0aca..b3bf43cf96 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10782,6 +10782,44 @@ export interface ConnectorPutResponse { id: Id } +export interface ConnectorSecretDeleteRequest extends RequestBase { + id: string +} + +export interface ConnectorSecretDeleteResponse { + deleted: boolean +} + +export interface ConnectorSecretGetRequest extends RequestBase { + id: string +} + +export interface ConnectorSecretGetResponse { + id: string + value: string +} + +export interface ConnectorSecretPostRequest extends RequestBase { + body?: { + value: string + } +} + +export interface ConnectorSecretPostResponse { + id: string +} + +export interface ConnectorSecretPutRequest extends RequestBase { + id: string + body?: { + value: string + } +} + +export interface ConnectorSecretPutResponse { + result: Result +} + export interface ConnectorSyncJobCancelRequest extends RequestBase { connector_sync_job_id: Id } diff --git a/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts b/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts new file mode 100644 index 0000000000..534e77b688 --- /dev/null +++ b/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts @@ -0,0 +1,39 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { RequestBase } from '@_types/Base' + +/** + * Deletes a connector secret. + * + * @rest_spec_name connector.secret_delete + * @availability stack stability=experimental visibility=private + */ +export interface Request extends RequestBase { + urls: [ + { + path: '/_connector/_secret/{id}' + methods: ['DELETE'] + } + ] + path_parts: { + /** The ID of the secret */ + id: string + } +} \ No newline at end of file diff --git a/specification/connector/secret_delete/ConnectorSecretDeleteResponse.ts b/specification/connector/secret_delete/ConnectorSecretDeleteResponse.ts new file mode 100644 index 0000000000..2fbecdb755 --- /dev/null +++ b/specification/connector/secret_delete/ConnectorSecretDeleteResponse.ts @@ -0,0 +1,25 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + +export class Response { + body: { + deleted: boolean + } +} diff --git a/specification/connector/secret_get/ConnectorSecretGetRequest.ts b/specification/connector/secret_get/ConnectorSecretGetRequest.ts new file mode 100644 index 0000000000..02f3da817f --- /dev/null +++ b/specification/connector/secret_get/ConnectorSecretGetRequest.ts @@ -0,0 +1,41 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' + + +/** + * Retrieves a secret stored by Connectors. + * + * @rest_spec_name connector.secret_get + * @availability stack stability=experimental visibility=private + */ +export interface Request extends RequestBase { + urls: [ + { + path: '/_connector/_secret/{id}' + methods: ['GET'] + } + ] + path_parts: { + /** The ID of the secret */ + id: string + } +} \ No newline at end of file diff --git a/specification/connector/secret_get/ConnectorSecretGetResponse.ts b/specification/connector/secret_get/ConnectorSecretGetResponse.ts new file mode 100644 index 0000000000..a7b4561afc --- /dev/null +++ b/specification/connector/secret_get/ConnectorSecretGetResponse.ts @@ -0,0 +1,26 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + +export class Response { + body: { + id: string + value: string + } +} diff --git a/specification/connector/secret_post/ConnectorSecretPostRequest.ts b/specification/connector/secret_post/ConnectorSecretPostRequest.ts new file mode 100644 index 0000000000..3d4e9cec68 --- /dev/null +++ b/specification/connector/secret_post/ConnectorSecretPostRequest.ts @@ -0,0 +1,39 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { RequestBase } from '@_types/Base' + + +/** + * Creates a secret for a Connector. + * + * @rest_spec_name connector.secret_post + * @availability stack stability=experimental visibility=private + */ +export interface Request extends RequestBase { + urls: [ + { + path: '/_connector/_secret' + methods: ['POST'] + } + ] + body: { + value: string + } +} \ No newline at end of file diff --git a/specification/connector/secret_post/ConnectorSecretPostResponse.ts b/specification/connector/secret_post/ConnectorSecretPostResponse.ts new file mode 100644 index 0000000000..b9dee3e5a5 --- /dev/null +++ b/specification/connector/secret_post/ConnectorSecretPostResponse.ts @@ -0,0 +1,25 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + +export class Response { + body: { + id: string + } +} diff --git a/specification/connector/secret_put/ConnectorSecretPutRequest.ts b/specification/connector/secret_put/ConnectorSecretPutRequest.ts new file mode 100644 index 0000000000..f1c2b1b7ca --- /dev/null +++ b/specification/connector/secret_put/ConnectorSecretPutRequest.ts @@ -0,0 +1,44 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { RequestBase } from '@_types/Base' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' + + +/** + * Creates or updates a secret for a Connector. + * + * @rest_spec_name connector.secret_put + * @availability stack stability=experimental visibility=private + */ +export interface Request extends RequestBase { + urls: [ + { + path: '/_connector/_secret/{id}' + methods: ['PUT'] + } + ] + path_parts: { + /** The ID of the secret */ + id: string + } + body: { + value: string + } +} \ No newline at end of file diff --git a/specification/connector/secret_put/ConnectorSecretPutResponse.ts b/specification/connector/secret_put/ConnectorSecretPutResponse.ts new file mode 100644 index 0000000000..fc194d6f20 --- /dev/null +++ b/specification/connector/secret_put/ConnectorSecretPutResponse.ts @@ -0,0 +1,26 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { Result } from '@_types/Result' + +export class Response { + body: { + result: Result + } +} From 9b0bc53a42225871dff5fcddad4932689b332f12 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 24 Nov 2025 14:59:02 +0400 Subject: [PATCH 2/3] Run make spec-format-fix --- .../connector/secret_delete/ConnectorSecretDeleteRequest.ts | 2 +- .../connector/secret_delete/ConnectorSecretDeleteResponse.ts | 1 - .../connector/secret_get/ConnectorSecretGetRequest.ts | 4 +--- .../connector/secret_get/ConnectorSecretGetResponse.ts | 1 - .../connector/secret_post/ConnectorSecretPostRequest.ts | 3 +-- .../connector/secret_post/ConnectorSecretPostResponse.ts | 1 - .../connector/secret_put/ConnectorSecretPutRequest.ts | 4 +--- 7 files changed, 4 insertions(+), 12 deletions(-) diff --git a/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts b/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts index 534e77b688..c1296329e6 100644 --- a/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts +++ b/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts @@ -36,4 +36,4 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } -} \ No newline at end of file +} diff --git a/specification/connector/secret_delete/ConnectorSecretDeleteResponse.ts b/specification/connector/secret_delete/ConnectorSecretDeleteResponse.ts index 2fbecdb755..51d10bac9a 100644 --- a/specification/connector/secret_delete/ConnectorSecretDeleteResponse.ts +++ b/specification/connector/secret_delete/ConnectorSecretDeleteResponse.ts @@ -17,7 +17,6 @@ * under the License. */ - export class Response { body: { deleted: boolean diff --git a/specification/connector/secret_get/ConnectorSecretGetRequest.ts b/specification/connector/secret_get/ConnectorSecretGetRequest.ts index 02f3da817f..dd1d440c27 100644 --- a/specification/connector/secret_get/ConnectorSecretGetRequest.ts +++ b/specification/connector/secret_get/ConnectorSecretGetRequest.ts @@ -18,8 +18,6 @@ */ import { RequestBase } from '@_types/Base' -import { Duration } from '@_types/Time' - /** * Retrieves a secret stored by Connectors. @@ -38,4 +36,4 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } -} \ No newline at end of file +} diff --git a/specification/connector/secret_get/ConnectorSecretGetResponse.ts b/specification/connector/secret_get/ConnectorSecretGetResponse.ts index a7b4561afc..f30aae70fc 100644 --- a/specification/connector/secret_get/ConnectorSecretGetResponse.ts +++ b/specification/connector/secret_get/ConnectorSecretGetResponse.ts @@ -17,7 +17,6 @@ * under the License. */ - export class Response { body: { id: string diff --git a/specification/connector/secret_post/ConnectorSecretPostRequest.ts b/specification/connector/secret_post/ConnectorSecretPostRequest.ts index 3d4e9cec68..25ba5614ae 100644 --- a/specification/connector/secret_post/ConnectorSecretPostRequest.ts +++ b/specification/connector/secret_post/ConnectorSecretPostRequest.ts @@ -19,7 +19,6 @@ import { RequestBase } from '@_types/Base' - /** * Creates a secret for a Connector. * @@ -36,4 +35,4 @@ export interface Request extends RequestBase { body: { value: string } -} \ No newline at end of file +} diff --git a/specification/connector/secret_post/ConnectorSecretPostResponse.ts b/specification/connector/secret_post/ConnectorSecretPostResponse.ts index b9dee3e5a5..c8491cd171 100644 --- a/specification/connector/secret_post/ConnectorSecretPostResponse.ts +++ b/specification/connector/secret_post/ConnectorSecretPostResponse.ts @@ -17,7 +17,6 @@ * under the License. */ - export class Response { body: { id: string diff --git a/specification/connector/secret_put/ConnectorSecretPutRequest.ts b/specification/connector/secret_put/ConnectorSecretPutRequest.ts index f1c2b1b7ca..7e44e2975b 100644 --- a/specification/connector/secret_put/ConnectorSecretPutRequest.ts +++ b/specification/connector/secret_put/ConnectorSecretPutRequest.ts @@ -18,8 +18,6 @@ */ import { RequestBase } from '@_types/Base' -import { UserDefinedValue } from '@spec_utils/UserDefinedValue' - /** * Creates or updates a secret for a Connector. @@ -41,4 +39,4 @@ export interface Request extends RequestBase { body: { value: string } -} \ No newline at end of file +} From 8864d41517f19e8f00f3693cc62ff0265b66a7ef Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 24 Nov 2025 17:07:37 +0400 Subject: [PATCH 3/3] Make value optional in connector.secret_post --- output/schema/schema.json | 14 +++++++------- output/typescript/types.ts | 2 +- .../secret_post/ConnectorSecretPostRequest.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index f92887a010..fe5672071f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -137316,7 +137316,7 @@ "name": "Response", "namespace": "connector.secret_delete" }, - "specLocation": "connector/secret_delete/ConnectorSecretDeleteResponse.ts#L21-L25" + "specLocation": "connector/secret_delete/ConnectorSecretDeleteResponse.ts#L20-L24" }, { "kind": "request", @@ -137352,7 +137352,7 @@ } ], "query": [], - "specLocation": "connector/secret_get/ConnectorSecretGetRequest.ts#L24-L41" + "specLocation": "connector/secret_get/ConnectorSecretGetRequest.ts#L22-L39" }, { "kind": "response", @@ -137387,7 +137387,7 @@ "name": "Response", "namespace": "connector.secret_get" }, - "specLocation": "connector/secret_get/ConnectorSecretGetResponse.ts#L21-L26" + "specLocation": "connector/secret_get/ConnectorSecretGetResponse.ts#L20-L25" }, { "kind": "request", @@ -137399,7 +137399,7 @@ "properties": [ { "name": "value", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -137423,7 +137423,7 @@ }, "path": [], "query": [], - "specLocation": "connector/secret_post/ConnectorSecretPostRequest.ts#L23-L39" + "specLocation": "connector/secret_post/ConnectorSecretPostRequest.ts#L22-L38" }, { "kind": "response", @@ -137447,7 +137447,7 @@ "name": "Response", "namespace": "connector.secret_post" }, - "specLocation": "connector/secret_post/ConnectorSecretPostResponse.ts#L21-L25" + "specLocation": "connector/secret_post/ConnectorSecretPostResponse.ts#L20-L24" }, { "kind": "request", @@ -137496,7 +137496,7 @@ } ], "query": [], - "specLocation": "connector/secret_put/ConnectorSecretPutRequest.ts#L24-L44" + "specLocation": "connector/secret_put/ConnectorSecretPutRequest.ts#L22-L42" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index b3bf43cf96..4b049df804 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10801,7 +10801,7 @@ export interface ConnectorSecretGetResponse { export interface ConnectorSecretPostRequest extends RequestBase { body?: { - value: string + value?: string } } diff --git a/specification/connector/secret_post/ConnectorSecretPostRequest.ts b/specification/connector/secret_post/ConnectorSecretPostRequest.ts index 25ba5614ae..9129b46d59 100644 --- a/specification/connector/secret_post/ConnectorSecretPostRequest.ts +++ b/specification/connector/secret_post/ConnectorSecretPostRequest.ts @@ -33,6 +33,6 @@ export interface Request extends RequestBase { } ] body: { - value: string + value?: string } }