diff --git a/output/schema/schema.json b/output/schema/schema.json index f4ff09f240..b01f87b0f8 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -165148,15 +165148,23 @@ "CommonQueryParameters" ], "body": { - "codegenName": "query_ruleset", - "kind": "value", - "value": { - "kind": "instance_of", - "type": { - "name": "QueryRuleset", - "namespace": "query_ruleset._types" + "kind": "properties", + "properties": [ + { + "name": "rules", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "QueryRule", + "namespace": "query_ruleset._types" + } + } + } } - } + ] }, "description": "Creates or updates a query ruleset.", "inherits": { @@ -165185,7 +165193,7 @@ } ], "query": [], - "specLocation": "query_ruleset/put/QueryRulesetPutRequest.ts#L23-L41" + "specLocation": "query_ruleset/put/QueryRulesetPutRequest.ts#L23-L43" }, { "body": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 71f100475d..99ef5448c1 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -15558,7 +15558,9 @@ export interface QueryRulesetListResponse { export interface QueryRulesetPutRequest extends RequestBase { ruleset_id: Id - body?: QueryRulesetQueryRuleset + body?: { + rules: QueryRulesetQueryRule[] + } } export interface QueryRulesetPutResponse { diff --git a/specification/query_ruleset/put/QueryRulesetPutRequest.ts b/specification/query_ruleset/put/QueryRulesetPutRequest.ts index 7259453a2b..89f10cd8e4 100644 --- a/specification/query_ruleset/put/QueryRulesetPutRequest.ts +++ b/specification/query_ruleset/put/QueryRulesetPutRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' import { Id } from '@_types/common' -import { QueryRuleset } from '../_types/QueryRuleset' +import { QueryRule } from '../_types/QueryRuleset' /** * Creates or updates a query ruleset. @@ -34,8 +34,10 @@ export interface Request extends RequestBase { ruleset_id: Id } /** - * The query ruleset information to update + * The query rules in this ruleset */ /** @codegen_name query_ruleset */ - body: QueryRuleset + body: { + rules: QueryRule[] + } }