From 6d3a465d36422b386eeefb64fcb07ea58ec0df7c Mon Sep 17 00:00:00 2001 From: Kathleen DeRusso Date: Tue, 19 Nov 2024 08:51:53 -0500 Subject: [PATCH] Generate schema --- output/schema/schema.json | 27 +++++++++++++++++++++++++-- output/typescript/types.ts | 1 + 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index defce3f005..70e9536f35 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -183341,7 +183341,7 @@ } }, { - "description": "A map of criteria type to the number of rules of that type", + "description": "A map of criteria type (e.g. exact) to the number of rules of that type", "name": "rule_criteria_types_counts", "required": true, "type": { @@ -183362,9 +183362,32 @@ } } } + }, + { + "description": "A map of rule type (e.g. pinned) to the number of rules of that type", + "name": "rule_type_counts", + "required": true, + "type": { + "kind": "dictionary_of", + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "singleKey": false, + "value": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + } } ], - "specLocation": "query_rules/list_rulesets/types.ts#L23-L37" + "specLocation": "query_rules/list_rulesets/types.ts#L23-L42" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index b3f56a005a..572d3bcfce 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -17197,6 +17197,7 @@ export interface QueryRulesListRulesetsQueryRulesetListItem { ruleset_id: Id rule_total_count: integer rule_criteria_types_counts: Record + rule_type_counts: Record } export interface QueryRulesListRulesetsRequest extends RequestBase {