@@ -57,6 +57,7 @@ export const SUCCESS_VERB: Record<CliExposedOperationId, string> = {
5757 'styles.apply' : 'applied stylesheet defaults' ,
5858 'create.paragraph' : 'created paragraph' ,
5959 'create.heading' : 'created heading' ,
60+ 'create.tableOfContents' : 'created table of contents' ,
6061 'lists.list' : 'listed items' ,
6162 'lists.get' : 'resolved list item' ,
6263 'lists.insert' : 'inserted list item' ,
@@ -73,6 +74,11 @@ export const SUCCESS_VERB: Record<CliExposedOperationId, string> = {
7374 'trackChanges.list' : 'listed tracked changes' ,
7475 'trackChanges.get' : 'resolved tracked change' ,
7576 'trackChanges.decide' : 'reviewed tracked change' ,
77+ 'toc.list' : 'listed tables of contents' ,
78+ 'toc.get' : 'resolved table of contents' ,
79+ 'toc.configure' : 'configured table of contents' ,
80+ 'toc.update' : 'updated table of contents' ,
81+ 'toc.remove' : 'removed table of contents' ,
7682 'query.match' : 'matched selectors' ,
7783 'mutations.preview' : 'previewed mutations' ,
7884 'mutations.apply' : 'applied mutations' ,
@@ -164,6 +170,7 @@ export const OUTPUT_FORMAT: Record<CliExposedOperationId, OutputFormat> = {
164170 'styles.apply' : 'receipt' ,
165171 'create.paragraph' : 'createResult' ,
166172 'create.heading' : 'createResult' ,
173+ 'create.tableOfContents' : 'createResult' ,
167174 'lists.list' : 'listResult' ,
168175 'lists.get' : 'listItemInfo' ,
169176 'lists.insert' : 'listsMutationResult' ,
@@ -180,6 +187,11 @@ export const OUTPUT_FORMAT: Record<CliExposedOperationId, OutputFormat> = {
180187 'trackChanges.list' : 'trackChangeList' ,
181188 'trackChanges.get' : 'trackChangeInfo' ,
182189 'trackChanges.decide' : 'trackChangeMutationReceipt' ,
190+ 'toc.list' : 'plain' ,
191+ 'toc.get' : 'plain' ,
192+ 'toc.configure' : 'plain' ,
193+ 'toc.update' : 'plain' ,
194+ 'toc.remove' : 'plain' ,
183195 'query.match' : 'plain' ,
184196 'mutations.preview' : 'plain' ,
185197 'mutations.apply' : 'plain' ,
@@ -255,6 +267,7 @@ export const RESPONSE_ENVELOPE_KEY: Record<CliExposedOperationId, string | null>
255267 'styles.apply' : 'receipt' ,
256268 'create.paragraph' : 'result' ,
257269 'create.heading' : 'result' ,
270+ 'create.tableOfContents' : 'result' ,
258271 'lists.list' : 'result' ,
259272 'lists.get' : 'item' ,
260273 'lists.insert' : 'result' ,
@@ -271,6 +284,11 @@ export const RESPONSE_ENVELOPE_KEY: Record<CliExposedOperationId, string | null>
271284 'trackChanges.list' : 'result' ,
272285 'trackChanges.get' : 'change' ,
273286 'trackChanges.decide' : 'receipt' ,
287+ 'toc.list' : 'result' ,
288+ 'toc.get' : 'result' ,
289+ 'toc.configure' : 'result' ,
290+ 'toc.update' : 'result' ,
291+ 'toc.remove' : 'result' ,
274292 'query.match' : 'result' ,
275293 'mutations.preview' : 'result' ,
276294 'mutations.apply' : 'result' ,
@@ -352,6 +370,7 @@ export type OperationFamily =
352370 | 'comments'
353371 | 'lists'
354372 | 'tables'
373+ | 'toc'
355374 | 'textMutation'
356375 | 'create'
357376 | 'blocks'
@@ -374,6 +393,7 @@ export const OPERATION_FAMILY: Record<CliExposedOperationId, OperationFamily> =
374393 'styles.apply' : 'general' ,
375394 'create.paragraph' : 'create' ,
376395 'create.heading' : 'create' ,
396+ 'create.tableOfContents' : 'create' ,
377397 'lists.list' : 'lists' ,
378398 'lists.get' : 'lists' ,
379399 'lists.insert' : 'lists' ,
@@ -390,6 +410,11 @@ export const OPERATION_FAMILY: Record<CliExposedOperationId, OperationFamily> =
390410 'trackChanges.list' : 'trackChanges' ,
391411 'trackChanges.get' : 'trackChanges' ,
392412 'trackChanges.decide' : 'trackChanges' ,
413+ 'toc.list' : 'query' ,
414+ 'toc.get' : 'query' ,
415+ 'toc.configure' : 'toc' ,
416+ 'toc.update' : 'toc' ,
417+ 'toc.remove' : 'toc' ,
393418 'query.match' : 'query' ,
394419 'mutations.preview' : 'general' ,
395420 'mutations.apply' : 'general' ,
0 commit comments