@holistics/anfra-sdk 0.17.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/api.d.ts +1 -1
  2. package/dist/api.js +1 -1
  3. package/dist/app.d.ts +6 -5
  4. package/dist/app.js +4 -4
  5. package/dist/{bootstrap-q1J7GUxa.d.ts → bootstrap-5xNrSbJb.d.ts} +12 -6
  6. package/dist/build.d.ts +2 -2
  7. package/dist/{chunk-GV7SVWEK.js → chunk-4TXKXLWK.js} +42 -11
  8. package/dist/{chunk-J5BTCP6T.js → chunk-CDZ7MBXC.js} +1 -1
  9. package/dist/{chunk-C26OVN2S.js → chunk-EIPHDMZ7.js} +25 -0
  10. package/dist/{chunk-SWNVCTT6.js → chunk-HELL45MM.js} +148 -2
  11. package/dist/{chunk-6GBHCW5E.js → chunk-OS4CRPTU.js} +159 -23
  12. package/dist/{chunk-3ZWUCECU.js → chunk-SXKJQU7A.js} +11 -2
  13. package/dist/{chunk-EL7CAVZ3.js → chunk-ZSIJLBKG.js} +1 -1
  14. package/dist/common.d.ts +4 -3
  15. package/dist/common.js +1 -1
  16. package/dist/{data-TDUQTG3P.js → data-ESPFZ5IM.js} +1 -1
  17. package/dist/{declaration-RJFU4ZLJ.js → declaration-RYRBX7PH.js} +2 -2
  18. package/dist/{errors-IhdhKO-6.d.ts → errors-BlRfqyty.d.ts} +2 -2
  19. package/dist/host.d.ts +9 -2
  20. package/dist/host.js +108 -16
  21. package/dist/{menu-CRAFaQ8s.d.ts → menu-Dmfu51qo.d.ts} +4 -2
  22. package/dist/{overview-RV2IV6PJ.js → overview-S6FTM2JT.js} +84 -43
  23. package/dist/{plugin-BdLabbah.d.ts → plugin-C_Cc_e9L.d.ts} +2 -2
  24. package/dist/plugins.d.ts +1 -1
  25. package/dist/plugins.js +15 -11
  26. package/dist/{queries-5TTPOB7R.js → queries-FWMX7H5Z.js} +2 -2
  27. package/dist/runtimeErrors-gswksjDk.d.ts +55 -0
  28. package/dist/{structure-MTLCRTJ4.js → structure-VFRJFC4C.js} +1 -1
  29. package/dist/testing.d.ts +1 -1
  30. package/dist/testing.js +4 -4
  31. package/dist/{types-C_i7V0DA.d.ts → types-DKQjAL1O.d.ts} +69 -72
  32. package/package.json +1 -1
@@ -13,7 +13,7 @@ interface paths {
13
13
  };
14
14
  get?: never;
15
15
  put?: never;
16
- /** Build the local search catalog from context sources */
16
+ /** Build the local search catalog from the repo's context sources */
17
17
  post: operations["core.ingest"];
18
18
  delete?: never;
19
19
  options?: never;
@@ -31,9 +31,8 @@ interface paths {
31
31
  get?: never;
32
32
  put?: never;
33
33
  /**
34
- * Trace fields through the local catalog: what each one is built from
35
- * @description Trace each field through the local catalog to what it is built from (the fields, models and
36
- * sources upstream of it), as a diagram: cards in layers, upstream first, linked by what uses it.
34
+ * Trace fields through the local catalog to what each one is built from
35
+ * @description Trace each field through the local catalog to the fields, models, and sources it is built from. Return each field's lineage as a diagram to draw, with cards in layers from upstream to downstream, and the links between them.
37
36
  */
38
37
  post: operations["core.lineage"];
39
38
  delete?: never;
@@ -52,10 +51,12 @@ interface paths {
52
51
  get?: never;
53
52
  put?: never;
54
53
  /**
55
- * Run a query: its rows, and the SQL that produced them
56
- * @description Answers one page of rows: page_size's, or without it the first 10000, with has_more saying whether there may be more.
57
- * Ask the query for what you need (aggregate, filter, a limit: directive) rather than paging through rows; for every row of a large result, export it.
58
- * Over HTTP, a request that accepts application/x-ndjson is answered as the query runs: its phase, its SQL, its columns, then its rows in batches — every row without page_size, up to the server's maximum.
54
+ * Run a query, and return its rows and the SQL that produced them
55
+ * @description Run a query, and return a page of its rows and the SQL that produced them.
56
+ *
57
+ * A page is page_size rows, or the first 10000 without it, and has_more says whether there may be more. Rather than paging through many rows, ask the query for what you need: an aggregate, a filter, or a limit: directive. To get every row of a large result, export it.
58
+ *
59
+ * Over HTTP, a request that accepts application/x-ndjson gets the result as the query runs: its phase, its SQL, its columns, then its rows in batches. Without page_size, that's every row, up to the server's maximum.
59
60
  */
60
61
  post: operations["core.query"];
61
62
  delete?: never;
@@ -91,10 +92,8 @@ interface paths {
91
92
  get?: never;
92
93
  put?: never;
93
94
  /**
94
- * Export a query's whole result as a file: a link to download it
95
- * @description Export a query's whole result as a file: a link to download it.
96
- *
97
- * The query runs to completion before the answer, so a query that fails fails here. The CLI downloads the file, to stdout or --output; --link prints the answer instead.
95
+ * Export a query's whole result as a file to download
96
+ * @description Export a query's whole result as a file, and return a link to download it once the file is ready.
98
97
  */
99
98
  post: operations["core.query.export"];
100
99
  delete?: never;
@@ -112,7 +111,7 @@ interface paths {
112
111
  };
113
112
  get?: never;
114
113
  put?: never;
115
- /** Validate a query: its diagnostics, without running it */
114
+ /** Validate a query without running it, and return its diagnostics */
116
115
  post: operations["core.query.validate"];
117
116
  delete?: never;
118
117
  options?: never;
@@ -147,12 +146,10 @@ interface paths {
147
146
  get?: never;
148
147
  put?: never;
149
148
  /**
150
- * Show the repo's datasets, or one dataset: their models, fields and metrics
151
- * @description Show an object of the repo, read from its compiled AML: with no fqn, the repo and every dataset
152
- * in full; with a dataset's fqn, that dataset in full, as AQL can query it. Its interface, not its
153
- * implementation: names, labels, types, roles and AQL definitions, never SQL or tables. What is
154
- * wrong in the repo for it comes with it, as diagnostics: files that do not compile, a data source
155
- * it does not configure.
149
+ * Show the repo's datasets, or one dataset, with their models, fields, and metrics
150
+ * @description Show the repo's datasets, or one dataset, with their models, fields, and metrics, as AQL can query them.
151
+ *
152
+ * With no fqn, it shows the repo and every dataset in full, and with a dataset's fqn, that dataset in full. It shows names, labels, types, roles, and AQL definitions, never SQL or tables. Problems that affect the result come with it as diagnostics, such as a file that doesn't compile, or a data source the repo doesn't configure.
156
153
  */
157
154
  post: operations["core.show"];
158
155
  delete?: never;
@@ -171,8 +168,8 @@ interface paths {
171
168
  get?: never;
172
169
  put?: never;
173
170
  /**
174
- * Report the repo, and whether a warm server is running and its sidecars are healthy
175
- * @description Report the repo, and whether a warm server is running and its sidecars are healthy.
171
+ * Report the repo, and whether anfra serve is running and its sidecars are healthy
172
+ * @description Report the repo, and whether `anfra serve` is running and its sidecars are healthy.
176
173
  *
177
174
  * For this anfra's own version, and whether it is behind, see `anfra version`.
178
175
  */
@@ -238,7 +235,7 @@ interface components {
238
235
  adhoc: boolean;
239
236
  /** @description an aggregated field's aggregation, such as sum or count distinct */
240
237
  aggregation?: string;
241
- /** @description the Arrow type canal-query read the values as, by which they are written; absent before the query runs */
238
+ /** @description the column's Arrow type, which says how its values are written. Absent before the query runs. */
242
239
  arrow_type?: {
243
240
  /** @description the type as arrow-go spells it, such as decimal(38, 2): for people, not to decide on */
244
241
  label: string;
@@ -247,18 +244,18 @@ interface components {
247
244
  } & {
248
245
  [key: string]: unknown;
249
246
  };
250
- /** @description the database's own name of the column's type: for debugging, never to decide on, since it varies by database and driver; absent before the query runs */
247
+ /** @description the database's own name for the column's type, for debugging only. Don't base decisions on it, because it varies by database and driver. Absent before the query runs. */
251
248
  db_type?: string;
252
- /** @description the field it draws; for an adhoc column, its name */
249
+ /** @description the field it draws, or for an adhoc column, its name */
253
250
  fieldName: string;
254
251
  isMeasure: boolean;
255
252
  label: string;
256
- /** @description the model of fieldName, as the dataset names it; absent for a dataset metric or an adhoc column */
253
+ /** @description the model of fieldName, as the dataset names it. Absent for a dataset metric or an adhoc column. */
257
254
  modelId?: string;
258
255
  /** @description the column's key, as in fields */
259
256
  name: string;
260
257
  /**
261
- * @description what the column's values mean, in AML's types, plus bit: a true or false stored as a bit, written as true and false or as "1" and "0" by how the database produced it. Decide by it. Absent when no AQL types the column (a SQL query, or AQL that is not an explore): see arrow_type. Unknown when its AQL type has no meaning in AML (time, duration, ...)
258
+ * @description the column's (database-agnostic) type in the semantic layer, such as number, date, or truefalse. Read the values by it. "bit" is a true or false stored as a bit, written as true and false or as "1" and "0", depending on how the database produced it. "unknown" is a type that has no meaning in AML, such as time or duration. Absent when no AQL typed the column, as for a SQL query or AQL that isn't an explore, so read arrow_type instead.
262
259
  * @enum {string}
263
260
  */
264
261
  semantic_type?: "bit" | "date" | "datetime" | "json" | "number" | "text" | "truefalse" | "unknown";
@@ -272,9 +269,9 @@ interface components {
272
269
  row?: number;
273
270
  };
274
271
  CompiledQuery: {
275
- /** @description the AQL compiled: the query with its Query Input applied; absent for a SQL query */
272
+ /** @description the final AQL (with the Query Input applied). Absent for a SQL query. */
276
273
  aql?: string;
277
- /** @description what each column of an explore query's answer will be, and its semantic type; absent for other queries */
274
+ /** @description what each column of an explore query's result will be, with its semantic type. Absent for other queries. */
278
275
  columns?: components["schemas"]["Column"][];
279
276
  sql: string;
280
277
  };
@@ -292,7 +289,7 @@ interface components {
292
289
  layers: components["schemas"]["DiagramLayer"][];
293
290
  /** @description the ids of this page's matched entities, in search order */
294
291
  matched: string[];
295
- /** @description the catalog search the lineage is */
292
+ /** @description the search query that finds the lineage */
296
293
  query: string;
297
294
  schema: components["schemas"]["DiagramSchema"];
298
295
  /**
@@ -307,20 +304,20 @@ interface components {
307
304
  version: 2;
308
305
  };
309
306
  DiagramCard: {
310
- /** @description its type is not a top-level one, but its container is not in the lineage */
307
+ /** @description whether the card's entity is usually nested in another card, but its container isn't in the lineage */
311
308
  detached?: boolean;
312
309
  /** @description the catalog's id of the entity */
313
310
  id: string;
314
311
  label: string;
315
312
  /** Format: int64 */
316
313
  layer: number;
317
- /** @description the node's links; a link is on its edge's from entity */
314
+ /** @description the links that start at this node */
318
315
  links?: components["schemas"]["DiagramLink"][];
319
316
  /** @description the entity's properties */
320
317
  props?: {
321
318
  [key: string]: unknown;
322
319
  };
323
- /** @description the entity this node is a copy of */
320
+ /** @description the id of the entity this node is a copy of, such as the model's field behind a dataset's field */
324
321
  ref?: string;
325
322
  /** @description the node's children, grouped by type */
326
323
  sections?: components["schemas"]["DiagramSection"][];
@@ -349,13 +346,13 @@ interface components {
349
346
  /** @description the catalog's id of the entity */
350
347
  id: string;
351
348
  label: string;
352
- /** @description the node's links; a link is on its edge's from entity */
349
+ /** @description the links that start at this node */
353
350
  links?: components["schemas"]["DiagramLink"][];
354
351
  /** @description the entity's properties */
355
352
  props?: {
356
353
  [key: string]: unknown;
357
354
  };
358
- /** @description the entity this node is a copy of */
355
+ /** @description the id of the entity this node is a copy of, such as the model's field behind a dataset's field */
359
356
  ref?: string;
360
357
  /** @description the node's children, grouped by type */
361
358
  sections?: components["schemas"]["DiagramSection"][];
@@ -422,7 +419,7 @@ interface components {
422
419
  /** @constant */
423
420
  status: 400;
424
421
  };
425
- /** @description The page is larger than this server answers at once. */
422
+ /** @description The page is larger than this server may return at once. */
426
423
  ErrorBodyPageTooLarge: {
427
424
  /** @constant */
428
425
  code: "page_too_large";
@@ -473,7 +470,7 @@ interface components {
473
470
  /** @constant */
474
471
  status: 422;
475
472
  };
476
- /** @description A sidecar is unavailable. */
473
+ /** @description A sidecar (a process anfra runs to compile AML or run queries) is unavailable. */
477
474
  ErrorBodySidecarUnavailable: {
478
475
  /** @constant */
479
476
  code: "sidecar_unavailable";
@@ -502,7 +499,7 @@ interface components {
502
499
  /** @description csv: start the file with a UTF-8 byte-order mark, which Excel needs to read non-ASCII text; set it for a file a person will open */
503
500
  bom?: boolean;
504
501
  /**
505
- * @description csv: the header row: the columns' labels (the default; what readers see), their names (their keys in a query's answer, stable for programs), or none
502
+ * @description csv: the header row, the columns' labels by default. "names" writes their names instead, which stay stable for programs, and "none" leaves the header row out.
506
503
  * @enum {string}
507
504
  */
508
505
  header?: "labels" | "names" | "none";
@@ -532,7 +529,7 @@ interface components {
532
529
  lang?: "aql" | "sql";
533
530
  /** @description the query */
534
531
  query: string;
535
- /** @description the IANA time zone relative dates and date truncation use, such as Asia/Ho_Chi_Minh */
532
+ /** @description the IANA time zone that relative dates and date truncation use, such as Asia/Ho_Chi_Minh, for AQL only */
536
533
  timezone?: string;
537
534
  };
538
535
  ExportLink: {
@@ -547,30 +544,30 @@ interface components {
547
544
  format: string;
548
545
  /**
549
546
  * Format: int64
550
- * @description the rows the file holds
547
+ * @description how many rows the file holds
551
548
  */
552
549
  row_count: number;
553
550
  /** @description where to download the file: a plain GET, with no credentials, until expires_at */
554
551
  url: string;
555
552
  };
556
553
  FieldLineage: {
557
- /** @description the field's lineage; absent with error */
554
+ /** @description the field's lineage. Absent when error is set. */
558
555
  diagram?: components["schemas"]["Diagram"];
559
556
  /** @description why the field's lineage could not be traced */
560
557
  error?: string;
561
- /** @description the catalog search its lineage is, which search also takes; empty when the field could not be searched for */
558
+ /** @description the search query that finds the field's lineage, which the search command also takes. Empty when the field could not be searched for. */
562
559
  query: string;
563
560
  /** @description the field, as asked */
564
561
  target: components["schemas"]["LineageTarget"];
565
562
  };
566
563
  IngestInput: {
567
- /** @description optional context source key to ingest */
564
+ /** @description the context source to ingest, every source by default */
568
565
  source?: string;
569
566
  };
570
567
  LineageInput: {
571
568
  /**
572
569
  * Format: int64
573
- * @description at most this many upstream entities per field; absent, all of them
570
+ * @description the most upstream entities to return per field, all of them by default
574
571
  */
575
572
  limit?: number;
576
573
  /**
@@ -596,7 +593,7 @@ interface components {
596
593
  max_bytes: number;
597
594
  };
598
595
  QueryCompiled: {
599
- /** @description the AQL that runs: the query with its Query Input applied; absent for a SQL query */
596
+ /** @description the final AQL (with the Query Input applied). Absent for a SQL query. */
600
597
  aql?: string;
601
598
  sql: string;
602
599
  /**
@@ -616,7 +613,7 @@ interface components {
616
613
  grain: string;
617
614
  };
618
615
  QueryFilter: {
619
- /** @description the condition applies to this aggregate of field, such as sum */
616
+ /** @description the aggregation to apply to the field before filtering, such as sum */
620
617
  aggregation?: string;
621
618
  /** @description model.field for a dataset field, or the name of a dataset metric */
622
619
  field: string;
@@ -624,7 +621,7 @@ interface components {
624
621
  modifier?: string;
625
622
  /** @description the operator, such as is, contains, between, last */
626
623
  operator: string;
627
- /** @description the operator's values, by the field's type: a number as a string in JSON's number syntax, such as "9007199254740993" (a JSON number is refused, since it may have lost digits before it was sent); true or false; a date or text as a string. Empty for an operator that takes none */
624
+ /** @description the operator's values, empty for an operator that takes none. Write a number as a string, such as "9007199254740993", because a JSON number may have lost digits and is refused. Write a date or text as a string too, and a truefalse value as true or false. */
628
625
  values: unknown[];
629
626
  };
630
627
  QueryHeader: {
@@ -661,20 +658,20 @@ interface components {
661
658
  type: "rows";
662
659
  };
663
660
  QueryResult: {
664
- /** @description the AQL that ran: the query with its Query Input applied; absent for a SQL query */
661
+ /** @description the final AQL (with the Query Input applied). Absent for a SQL query. */
665
662
  aql?: string;
666
663
  /** @description one per field of result, in order */
667
664
  columns: components["schemas"]["Column"][];
668
- /** @description there may be rows after this page: ask for the next page, or stream the query (without page_size) for every row */
665
+ /** @description whether there may be rows after this page. To get them, ask for the next page, or export the query. */
669
666
  has_more: boolean;
670
667
  result: components["schemas"]["QueryRows"];
671
668
  sql: string;
672
- /** @description the query's steps: compiling_query, for AQL; canal-query's own (connecting_to_dw, executing_query, fetching_query_result, and their children, as <parent>.<child>); retrying_query, the wait before canal-query attempts the query again */
669
+ /** @description the query's steps, and when each started. The steps are compiling_query (for AQL only), connecting_to_dw, executing_query, fetching_query_result, and retrying_query, which is a wait before the query is tried again. connecting_to_dw, executing_query, and fetching_query_result may have child steps. */
673
670
  timings: components["schemas"]["Timings"];
674
671
  };
675
672
  QueryRows: {
676
673
  fields: string[];
677
- /** @description one array per row, its values in fields' order, as its column's types say: every number a string, with every digit (a JSON number loses some in JavaScript), a float's NaN and infinities as "NaN", "Infinity" and "-Infinity", and so at any depth of a list, map or struct; null as null */
674
+ /** @description one array per row, its values in fields' order. Read each value by its column's types. Every number is a string with all its digits, because a JSON number loses some in JavaScript. A float's NaN and infinities are "NaN", "Infinity", and "-Infinity". The same holds at any depth of a list, map, or struct. A database NULL is null. */
678
675
  records: unknown[][];
679
676
  };
680
677
  QueryRunInput: {
@@ -692,17 +689,17 @@ interface components {
692
689
  lang?: "aql" | "sql";
693
690
  /**
694
691
  * Format: int64
695
- * @description the 1-based page of rows to answer; needs a page size
692
+ * @description the 1-based page of rows to return, 1 by default, for AQL only. Needs page_size.
696
693
  */
697
694
  page?: number;
698
695
  /**
699
696
  * Format: int64
700
- * @description rows per page; alone, the first page
697
+ * @description how many rows a page has, for AQL only
701
698
  */
702
699
  page_size?: number;
703
700
  /** @description the query */
704
701
  query: string;
705
- /** @description the IANA time zone relative dates and date truncation use, such as Asia/Ho_Chi_Minh */
702
+ /** @description the IANA time zone that relative dates and date truncation use, such as Asia/Ho_Chi_Minh, for AQL only */
706
703
  timezone?: string;
707
704
  };
708
705
  QuerySort: {
@@ -720,11 +717,11 @@ interface components {
720
717
  * @description the bytes the warehouse read to run the query, where it reports them (BigQuery, Athena)
721
718
  */
722
719
  bytes_scanned?: number;
723
- /** @description a page that may not be the last: there may be rows after it. Without page_size, every row was sent, and this is false */
720
+ /** @description whether there may be rows after this page. Without page_size, every row was sent, and this is false. */
724
721
  has_more: boolean;
725
722
  /** Format: int64 */
726
723
  row_count: number;
727
- /** @description the query's steps: compiling_query, for AQL; canal-query's own (connecting_to_dw, executing_query, fetching_query_result, and their children, as <parent>.<child>); retrying_query, the wait before canal-query attempts the query again */
724
+ /** @description the query's steps, and when each started. The steps are compiling_query (for AQL only), connecting_to_dw, executing_query, fetching_query_result, and retrying_query, which is a wait before the query is tried again. connecting_to_dw, executing_query, and fetching_query_result may have child steps. */
728
725
  timings: components["schemas"]["Timings"];
729
726
  /**
730
727
  * @description discriminator enum property added by openapi-typescript
@@ -735,7 +732,7 @@ interface components {
735
732
  QueryTransforms: {
736
733
  /** @description AQL conditions ANDed with the query's own filters */
737
734
  conditions?: components["schemas"]["QueryCondition"][];
738
- /** @description date fields redrawn at another grain, their columns' names kept */
735
+ /** @description grain changes on date fields. The fields keep their column names. */
739
736
  dateDrills?: components["schemas"]["QueryDateDrill"][];
740
737
  /** @description conditions on fields, ANDed with the query's own filters */
741
738
  filters?: components["schemas"]["QueryFilter"][];
@@ -758,7 +755,7 @@ interface components {
758
755
  RepoStatus: {
759
756
  /** @description the repo's id, which names its state folder: <ANFRA_HOME>/repos/<id> */
760
757
  id: string;
761
- /** @description the repo's log file: anfra's and its sidecars' log; absent for a managed repo */
758
+ /** @description the repo's log file, which holds anfra's and its sidecars' logs. Absent for a managed repo. */
762
759
  logs?: string;
763
760
  };
764
761
  RepoValidation: {
@@ -797,7 +794,7 @@ interface components {
797
794
  SearchInput: {
798
795
  /**
799
796
  * Format: int64
800
- * @description at most this many entities; absent, 50
797
+ * @description the most entities to return, 50 by default
801
798
  */
802
799
  limit?: number;
803
800
  /**
@@ -826,9 +823,9 @@ interface components {
826
823
  */
827
824
  kind: "dataset";
828
825
  label?: string;
829
- /** @description the dataset's metrics; absent in outline */
826
+ /** @description the dataset's metrics. Absent when the dataset is shown in outline. */
830
827
  metrics?: components["schemas"]["ShowField"][];
831
- /** @description the models the dataset uses; absent in outline */
828
+ /** @description the models the dataset uses. Absent when the dataset is shown in outline. */
832
829
  models?: components["schemas"]["ShowModel"][];
833
830
  name: string;
834
831
  };
@@ -846,18 +843,18 @@ interface components {
846
843
  fqn: string;
847
844
  hidden: boolean;
848
845
  label?: string;
849
- /** @description AQL writes <model fqn>.<name>; a metric, its name alone */
846
+ /** @description the field's or metric's name. AQL writes a field as <model fqn>.<name>, and a metric by its name alone. */
850
847
  name: string;
851
848
  /** @enum {string} */
852
849
  role: "dimension" | "measure" | "param" | "metric";
853
- /** @description the compiled data type, such as number, text, date, datetime, truefalse */
850
+ /** @description the field's semantic type, such as number, text, date, datetime, or truefalse */
854
851
  type: string;
855
852
  };
856
853
  ShowInput: {
857
- /** @description the fqn of the object to show; absent, the repo */
854
+ /** @description the fqn of the dataset to show, the whole repo by default */
858
855
  fqn?: string;
859
856
  /**
860
- * @description the catalog's entity type of fqn; aml.dataset is the only one for now
857
+ * @description the catalog's entity type of fqn
861
858
  * @default aml.dataset
862
859
  * @enum {string}
863
860
  */
@@ -872,7 +869,7 @@ interface components {
872
869
  name: string;
873
870
  };
874
871
  ShowRepo: {
875
- /** @description the repo's datasets, each in full; in outline (no models or metrics) when it cannot be shown in full, which a diagnostic says why */
872
+ /** @description the repo's datasets, each in full, or in outline (without its models and metrics) when the dataset can't be shown in full. A diagnostic then says why. */
876
873
  datasets: components["schemas"]["ShowDataset"][];
877
874
  /**
878
875
  * @description discriminator enum property added by openapi-typescript
@@ -881,7 +878,7 @@ interface components {
881
878
  kind: "repo";
882
879
  };
883
880
  ShowResult: {
884
- /** @description what is wrong in the repo for what is shown: its files that do not compile, a dataset's data source it does not configure, a dataset it cannot show in full; empty, what is shown is complete */
881
+ /** @description the problems in the repo that affect what is shown, such as files that don't compile, a dataset's data source that isn't configured, or a dataset that can't be shown in full. Empty when what is shown is complete. */
885
882
  diagnostics: components["schemas"]["CompileError"][];
886
883
  /** @description the object shown, by kind; a client must accept a kind it does not know */
887
884
  object: components["schemas"]["ShowRepo"] | components["schemas"]["ShowDataset"];
@@ -929,7 +926,7 @@ interface components {
929
926
  phase: string;
930
927
  /**
931
928
  * Format: int64
932
- * @description while queued: how many runs are ahead of this one, 0 being next; absent otherwise
929
+ * @description while the run is queued, how many runs are ahead of it. 0 means it is next. Absent for other phases, or when its place in line isn't known.
933
930
  */
934
931
  position?: number;
935
932
  /**
@@ -944,16 +941,16 @@ interface components {
944
941
  * @description when it started, in ms since the run started
945
942
  */
946
943
  start_ms: number;
947
- /** @description the step's name, as what ran names it; a child step as <parent>.<child>, within its parent */
944
+ /** @description the step's name. A child step is named <parent>.<child>, and runs within its parent. */
948
945
  step: string;
949
946
  };
950
947
  Timings: {
951
948
  /**
952
949
  * Format: int64
953
- * @description when the run ended, in ms since it started: its total time, and where its last steps end
950
+ * @description when the run ended, in ms since it started, which is its total time and when its last step ends
954
951
  */
955
952
  end_ms: number;
956
- /** @description each step as it started, in order; a step run again is here again */
953
+ /** @description each step, in the order it started. A step that runs again appears again. */
957
954
  steps: components["schemas"]["TimedStep"][];
958
955
  };
959
956
  UpdateInfo: {
@@ -961,7 +958,7 @@ interface components {
961
958
  latest: string;
962
959
  };
963
960
  ValidateInput: {
964
- /** @description optional file globs, at most 100; report only diagnostics for matching files */
961
+ /** @description globs of the files to report diagnostics for, every file by default */
965
962
  globs?: string[];
966
963
  };
967
964
  ValidationReport: {
@@ -975,7 +972,7 @@ interface components {
975
972
  validator: string;
976
973
  };
977
974
  VersionInput: {
978
- /** @description the version of the anfra skills in use, from the line ending each skill (anfra skills <version>), or unknown when a skill has no such line; adds the latest skills version to the answer */
975
+ /** @description the version of the anfra skills in use, from the "anfra skills <version>" line that ends each skill, or "unknown" when a skill has none. With it, the result also says whether the skills are behind. */
979
976
  skills?: string;
980
977
  };
981
978
  VersionResult: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holistics/anfra-sdk",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Data Apps on anfra: the authoring layer (app), what hosts one (host), anfra's plugins (plugins), the core API client (api), and their shared contract (common)",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {