@malloy-publisher/sdk 0.12.0 → 0.12.2
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.
- package/README.md +79 -6
- package/dist/{RenderedResult-SgDlxzs9.cjs.js → RenderedResult-Cgw4iqev.cjs.js} +1 -1
- package/dist/{RenderedResult-D8bCgThO.es.js → RenderedResult-DEjFM1DL.es.js} +2 -2
- package/dist/ServerProvider-BRQl_cBo.cjs.js +1 -0
- package/dist/{ServerProvider-DBw-thY0.es.js → ServerProvider-RnliA2Ao.es.js} +1084 -723
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +754 -41
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +120 -110
- package/dist/components/Materializations/MaterializationDetailDialog.d.ts +16 -1
- package/dist/components/Model/ExplorerPage.d.ts +9 -0
- package/dist/components/Model/Model.d.ts +27 -11
- package/dist/components/ModelViewer/AccessChips.d.ts +34 -0
- package/dist/components/ModelViewer/EmptyRow.d.ts +23 -0
- package/dist/components/ModelViewer/Facts.d.ts +15 -0
- package/dist/components/ModelViewer/FieldGroup.d.ts +31 -0
- package/dist/components/ModelViewer/FieldRow.d.ts +69 -0
- package/dist/components/ModelViewer/GivenFacts.d.ts +21 -0
- package/dist/components/ModelViewer/HeaderBar.d.ts +75 -0
- package/dist/components/ModelViewer/InlineDoc.d.ts +13 -0
- package/dist/components/ModelViewer/ModelGivensSection.d.ts +32 -0
- package/dist/components/ModelViewer/ModelSection.d.ts +21 -0
- package/dist/components/ModelViewer/ModelViewer.d.ts +91 -0
- package/dist/components/ModelViewer/QueriesGroup.d.ts +15 -0
- package/dist/components/ModelViewer/RowGlyph.d.ts +27 -0
- package/dist/components/ModelViewer/RunResult.d.ts +46 -0
- package/dist/components/ModelViewer/SampleValues.d.ts +20 -0
- package/dist/components/ModelViewer/SchemaJoin.d.ts +51 -0
- package/dist/components/ModelViewer/SchemaView.d.ts +52 -0
- package/dist/components/ModelViewer/SegmentIcons.d.ts +70 -0
- package/dist/components/ModelViewer/SourcesDropdown.d.ts +53 -0
- package/dist/components/ModelViewer/SourcesNav.d.ts +25 -0
- package/dist/components/ModelViewer/StatusPill.d.ts +56 -0
- package/dist/components/ModelViewer/ValueChip.d.ts +17 -0
- package/dist/components/ModelViewer/ViewRow.d.ts +36 -0
- package/dist/components/ModelViewer/clickableBox.d.ts +29 -0
- package/dist/components/ModelViewer/codeDisplay.d.ts +44 -0
- package/dist/components/ModelViewer/docAnnotations.d.ts +90 -0
- package/dist/components/ModelViewer/explorerModel.d.ts +12 -0
- package/dist/components/ModelViewer/extensions.d.ts +94 -0
- package/dist/components/ModelViewer/fieldCode.d.ts +74 -0
- package/dist/components/ModelViewer/fieldEntities.d.ts +45 -0
- package/dist/components/ModelViewer/fieldExpansion.d.ts +41 -0
- package/dist/components/ModelViewer/givenUsage.d.ts +71 -0
- package/dist/components/ModelViewer/headerCard.d.ts +31 -0
- package/dist/components/ModelViewer/httpStatus.d.ts +4 -0
- package/dist/components/ModelViewer/icons.d.ts +31 -0
- package/dist/components/ModelViewer/index.d.ts +9 -0
- package/dist/components/ModelViewer/joinAccess.d.ts +52 -0
- package/dist/components/ModelViewer/malloyRunText.d.ts +22 -0
- package/dist/components/ModelViewer/malloyText.d.ts +21 -0
- package/dist/components/ModelViewer/modelGivens.d.ts +61 -0
- package/dist/components/ModelViewer/modelGivensContext.d.ts +9 -0
- package/dist/components/ModelViewer/modelHeaderPresentation.d.ts +28 -0
- package/dist/components/ModelViewer/modelTextDeclarations.d.ts +32 -0
- package/dist/components/ModelViewer/modelTextParse.d.ts +27 -0
- package/dist/components/ModelViewer/namedQueryCode.d.ts +12 -0
- package/dist/components/ModelViewer/offSurface.d.ts +54 -0
- package/dist/components/ModelViewer/rowLayers.d.ts +30 -0
- package/dist/components/ModelViewer/runGate.d.ts +49 -0
- package/dist/components/ModelViewer/schemaModel.d.ts +109 -0
- package/dist/components/ModelViewer/sectionOpenCommand.d.ts +45 -0
- package/dist/components/ModelViewer/sourceAccess.d.ts +67 -0
- package/dist/components/ModelViewer/sourceLineage.d.ts +14 -0
- package/dist/components/ModelViewer/sourcePicker.d.ts +66 -0
- package/dist/components/ModelViewer/surface.d.ts +47 -0
- package/dist/components/ModelViewer/text.d.ts +6 -0
- package/dist/components/ModelViewer/theme.d.ts +63 -0
- package/dist/components/ModelViewer/tokens.d.ts +52 -0
- package/dist/components/ModelViewer/ui.d.ts +48 -0
- package/dist/components/ModelViewer/useDimensionSamples.d.ts +76 -0
- package/dist/components/ModelViewer/useModelSources.d.ts +92 -0
- package/dist/components/ModelViewer/useRunQuery.d.ts +115 -0
- package/dist/components/ReportBuilder/loadMalloy.d.ts +4 -0
- package/dist/components/ServerProvider.d.ts +17 -2
- package/dist/components/filter/utils.d.ts +1 -1
- package/dist/components/given/GivenInput.d.ts +7 -1
- package/dist/components/given/GivensPanel.d.ts +3 -1
- package/dist/components/given/filterSummary.d.ts +6 -0
- package/dist/components/given/useGivenUrlParams.d.ts +11 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/modelPage.d.ts +36 -0
- package/dist/hooks/useDimensionalFilterRangeData.d.ts +9 -0
- package/dist/hooks/useSuggestOptions.d.ts +26 -2
- package/dist/index.cjs.js +47 -19
- package/dist/index.es.js +14137 -9697
- package/dist/useCompiledDocument-D88_2cGS.cjs.js +143 -0
- package/dist/{useCompiledDocument-CXMPtJkJ.es.js → useCompiledDocument-Dmm6xkom.es.js} +6975 -6893
- package/dist/utils/filterCondition.d.ts +14 -0
- package/dist/utils/malloyLiteral.d.ts +20 -1
- package/package.json +2 -2
- package/src/components/Materializations/MaterializationDetailDialog.tsx +33 -7
- package/src/components/Materializations/Materializations.tsx +47 -4
- package/src/components/Materializations/Materializations.versions.spec.tsx +140 -1
- package/src/components/Model/ExplorerPage.tsx +269 -0
- package/src/components/Model/Model.tsx +66 -250
- package/src/components/Model/ModelExplorer.spec.tsx +64 -1
- package/src/components/ModelViewer/AccessChips.tsx +149 -0
- package/src/components/ModelViewer/EmptyRow.tsx +71 -0
- package/src/components/ModelViewer/Facts.tsx +46 -0
- package/src/components/ModelViewer/FieldGroup.tsx +137 -0
- package/src/components/ModelViewer/FieldRow.tsx +566 -0
- package/src/components/ModelViewer/GivenFacts.tsx +89 -0
- package/src/components/ModelViewer/HeaderBar.tsx +362 -0
- package/src/components/ModelViewer/InlineDoc.tsx +50 -0
- package/src/components/ModelViewer/ModelGivensSection.tsx +142 -0
- package/src/components/ModelViewer/ModelSection.tsx +98 -0
- package/src/components/ModelViewer/ModelViewer.spec.tsx +937 -0
- package/src/components/ModelViewer/ModelViewer.tsx +777 -0
- package/src/components/ModelViewer/QueriesGroup.tsx +107 -0
- package/src/components/ModelViewer/RowGlyph.tsx +138 -0
- package/src/components/ModelViewer/RunResult.tsx +298 -0
- package/src/components/ModelViewer/SampleValues.tsx +97 -0
- package/src/components/ModelViewer/SchemaJoin.tsx +258 -0
- package/src/components/ModelViewer/SchemaView.tsx +222 -0
- package/src/components/ModelViewer/SegmentIcons.tsx +129 -0
- package/src/components/ModelViewer/SourcesDropdown.tsx +265 -0
- package/src/components/ModelViewer/SourcesNav.tsx +75 -0
- package/src/components/ModelViewer/StatusPill.tsx +145 -0
- package/src/components/ModelViewer/ValueChip.tsx +39 -0
- package/src/components/ModelViewer/ViewRow.tsx +274 -0
- package/src/components/ModelViewer/clickableBox.ts +59 -0
- package/src/components/ModelViewer/codeDisplay.spec.ts +176 -0
- package/src/components/ModelViewer/codeDisplay.ts +118 -0
- package/src/components/ModelViewer/docAnnotations.spec.ts +181 -0
- package/src/components/ModelViewer/docAnnotations.ts +244 -0
- package/src/components/ModelViewer/docAnnotations.typeDetail.spec.ts +114 -0
- package/src/components/ModelViewer/explorerModel.spec.ts +43 -0
- package/src/components/ModelViewer/explorerModel.ts +31 -0
- package/src/components/ModelViewer/extensions.tsx +112 -0
- package/src/components/ModelViewer/fieldCode.spec.ts +168 -0
- package/src/components/ModelViewer/fieldCode.ts +118 -0
- package/src/components/ModelViewer/fieldEntities.ts +63 -0
- package/src/components/ModelViewer/fieldExpansion.spec.ts +116 -0
- package/src/components/ModelViewer/fieldExpansion.ts +95 -0
- package/src/components/ModelViewer/givenUsage.spec.ts +304 -0
- package/src/components/ModelViewer/givenUsage.ts +325 -0
- package/src/components/ModelViewer/headerCard.tsx +102 -0
- package/src/components/ModelViewer/httpStatus.ts +15 -0
- package/src/components/ModelViewer/icons.tsx +67 -0
- package/src/components/ModelViewer/index.ts +26 -0
- package/src/components/ModelViewer/joinAccess.spec.ts +95 -0
- package/src/components/ModelViewer/joinAccess.ts +54 -0
- package/src/components/ModelViewer/malloyRunText.spec.ts +48 -0
- package/src/components/ModelViewer/malloyRunText.ts +51 -0
- package/src/components/ModelViewer/malloyText.spec.ts +47 -0
- package/src/components/ModelViewer/malloyText.ts +77 -0
- package/src/components/ModelViewer/modelGivens.ts +228 -0
- package/src/components/ModelViewer/modelGivensContext.ts +13 -0
- package/src/components/ModelViewer/modelHeaderPresentation.spec.ts +31 -0
- package/src/components/ModelViewer/modelHeaderPresentation.ts +41 -0
- package/src/components/ModelViewer/modelTextDeclarations.spec.ts +336 -0
- package/src/components/ModelViewer/modelTextDeclarations.ts +228 -0
- package/src/components/ModelViewer/modelTextParse.ts +112 -0
- package/src/components/ModelViewer/namedQueryCode.spec.ts +58 -0
- package/src/components/ModelViewer/namedQueryCode.ts +26 -0
- package/src/components/ModelViewer/offSurface.tsx +124 -0
- package/src/components/ModelViewer/rowLayers.tsx +104 -0
- package/src/components/ModelViewer/runGate.spec.ts +219 -0
- package/src/components/ModelViewer/runGate.ts +145 -0
- package/src/components/ModelViewer/schemaModel.defaultSource.spec.ts +126 -0
- package/src/components/ModelViewer/schemaModel.queries.spec.ts +37 -0
- package/src/components/ModelViewer/schemaModel.ts +300 -0
- package/src/components/ModelViewer/sectionOpenCommand.tsx +125 -0
- package/src/components/ModelViewer/sourceAccess.spec.ts +130 -0
- package/src/components/ModelViewer/sourceAccess.ts +194 -0
- package/src/components/ModelViewer/sourceLineage.spec.ts +73 -0
- package/src/components/ModelViewer/sourceLineage.ts +38 -0
- package/src/components/ModelViewer/sourcePicker.spec.ts +294 -0
- package/src/components/ModelViewer/sourcePicker.ts +162 -0
- package/src/components/ModelViewer/surface.ts +51 -0
- package/src/components/ModelViewer/text.tsx +33 -0
- package/src/components/ModelViewer/theme.spec.ts +38 -0
- package/src/components/ModelViewer/theme.ts +58 -0
- package/src/components/ModelViewer/tokens.ts +87 -0
- package/src/components/ModelViewer/ui.tsx +201 -0
- package/src/components/ModelViewer/useDimensionSamples.spec.tsx +139 -0
- package/src/components/ModelViewer/useDimensionSamples.ts +220 -0
- package/src/components/ModelViewer/useModelSources.spec.ts +110 -0
- package/src/components/ModelViewer/useModelSources.ts +238 -0
- package/src/components/ModelViewer/useRunQuery.spec.ts +50 -0
- package/src/components/ModelViewer/useRunQuery.ts +223 -0
- package/src/components/Package/Package.agents.spec.tsx +5 -4
- package/src/components/Package/Package.tsx +8 -1
- package/src/components/ReportBuilder/emptyStart.spec.ts +8 -0
- package/src/components/ReportBuilder/loadMalloy.ts +8 -1
- package/src/components/ServerProvider.tsx +29 -3
- package/src/components/filter/utils.ts +4 -60
- package/src/components/given/FilterButton.tsx +4 -1
- package/src/components/given/GivenInput.tsx +8 -0
- package/src/components/given/GivensPanel.tsx +6 -1
- package/src/components/given/filterSummary.spec.ts +31 -1
- package/src/components/given/filterSummary.ts +41 -19
- package/src/components/given/useGivenUrlParams.spec.tsx +32 -0
- package/src/components/given/useGivenUrlParams.ts +49 -14
- package/src/components/index.ts +6 -1
- package/src/components/legacy/malloynb/Notebook.spec.tsx +38 -4
- package/src/components/legacy/malloynb/NotebookCell.tsx +8 -2
- package/src/components/modelPage.spec.ts +79 -0
- package/src/components/modelPage.ts +48 -0
- package/src/hooks/useDimensionFilters.ts +3 -58
- package/src/hooks/useDimensionFiltersQuery.ts +3 -58
- package/src/hooks/useDimensionalFilterRangeData.spec.ts +57 -0
- package/src/hooks/useDimensionalFilterRangeData.ts +8 -63
- package/src/hooks/useSuggestOptions.dom.spec.ts +54 -1
- package/src/hooks/useSuggestOptions.spec.ts +71 -0
- package/src/hooks/useSuggestOptions.ts +102 -12
- package/src/utils/filterCondition.spec.ts +87 -0
- package/src/utils/filterCondition.ts +66 -0
- package/src/utils/malloyLiteral.spec.ts +53 -1
- package/src/utils/malloyLiteral.ts +47 -12
- package/dist/ServerProvider-BHfg1Ed6.cjs.js +0 -1
- package/dist/useCompiledDocument-D7X_K6YU.cjs.js +0 -142
package/dist/client/api.d.ts
CHANGED
|
@@ -358,7 +358,7 @@ export interface BuildPlan {
|
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
|
-
* Server-computed, read-only,
|
|
361
|
+
* Server-computed, read-only, as `GET …/packages/{packageName}/classification` returns it: for each published entry point, the classes its `#(carries)` declares and how many of its fields carry each class (`#(classification)`, declared or inherited). Covers only the sources discovery shows, so it reveals nothing curation hides; a source locked to every caller is left out. A field\'s own classes, and what they were inherited from, are on its `get_context` card. `sources` is empty when no published field carries a class.
|
|
362
362
|
*/
|
|
363
363
|
export interface ClassificationSummary {
|
|
364
364
|
/**
|
|
@@ -1057,6 +1057,98 @@ export interface DucklakeConnectionStorage {
|
|
|
1057
1057
|
*/
|
|
1058
1058
|
'gcsConnection'?: GCSConnection;
|
|
1059
1059
|
}
|
|
1060
|
+
/**
|
|
1061
|
+
* One public field of a source. See `ModelEntities.fields`.
|
|
1062
|
+
*/
|
|
1063
|
+
export interface EntityField {
|
|
1064
|
+
/**
|
|
1065
|
+
* The field\'s name, or its join-qualified path (`people.name`) when it is reached through a join.
|
|
1066
|
+
*/
|
|
1067
|
+
'name': string;
|
|
1068
|
+
/**
|
|
1069
|
+
* The runnable source to query the field from. For a join field it is the source declaring the join, dotted when that source is itself reached through a join.
|
|
1070
|
+
*/
|
|
1071
|
+
'source': string;
|
|
1072
|
+
/**
|
|
1073
|
+
* One of `dimension`, `column`, `measure`, `view`, `join` or `hidden`. `column` is a dimension read straight from the table; `dimension` is one the model defines with `is`. `hidden` is a field the source hides with a `# hidden` tag. A later release may add a kind: skip a field whose kind you do not know.
|
|
1074
|
+
*/
|
|
1075
|
+
'kind': string;
|
|
1076
|
+
/**
|
|
1077
|
+
* The field\'s Malloy type, when it has one.
|
|
1078
|
+
*/
|
|
1079
|
+
'dataType'?: string;
|
|
1080
|
+
/**
|
|
1081
|
+
* The Malloy text that declares the field.
|
|
1082
|
+
*/
|
|
1083
|
+
'code': string;
|
|
1084
|
+
/**
|
|
1085
|
+
* The field\'s annotations, trimmed, empty ones left out.
|
|
1086
|
+
*/
|
|
1087
|
+
'annotations': Array<string>;
|
|
1088
|
+
/**
|
|
1089
|
+
* The field\'s `#(doc)` text, when it has any.
|
|
1090
|
+
*/
|
|
1091
|
+
'doc'?: string;
|
|
1092
|
+
'table': EntityTable;
|
|
1093
|
+
'join'?: EntityJoin;
|
|
1094
|
+
'indexFingerprint'?: IndexFingerprint;
|
|
1095
|
+
}
|
|
1096
|
+
export interface EntityGate {
|
|
1097
|
+
'expression': string;
|
|
1098
|
+
/**
|
|
1099
|
+
* The `$NAME` givens the expression references.
|
|
1100
|
+
*/
|
|
1101
|
+
'givenNames': Array<string>;
|
|
1102
|
+
/**
|
|
1103
|
+
* `authorize` or `access_filter`.
|
|
1104
|
+
*/
|
|
1105
|
+
'route'?: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* On an `access_filter` gate, its `field <op> $GIVEN` terms, present only when the source\'s whole row filter reduces to such terms on queryable fields.
|
|
1108
|
+
*/
|
|
1109
|
+
'terms'?: Array<EntityGateTerm>;
|
|
1110
|
+
}
|
|
1111
|
+
export interface EntityGateTerm {
|
|
1112
|
+
'fieldPath': string;
|
|
1113
|
+
'given': string;
|
|
1114
|
+
/**
|
|
1115
|
+
* `=` or `in`.
|
|
1116
|
+
*/
|
|
1117
|
+
'op': string;
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* What a join field joins. Present only on a `join` field.
|
|
1121
|
+
*/
|
|
1122
|
+
export interface EntityJoin {
|
|
1123
|
+
/**
|
|
1124
|
+
* The source the join reads, absent for a join read straight from a table.
|
|
1125
|
+
*/
|
|
1126
|
+
'sourceName'?: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* Package-relative path of the file declaring that source.
|
|
1129
|
+
*/
|
|
1130
|
+
'sourcePath'?: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* Whether the joined source exists only inside this join (an inline `extend` or a table read), so its fields are listed through it.
|
|
1133
|
+
*/
|
|
1134
|
+
'nested': boolean;
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* The served source a non-queryable source stands for: a report\'s import of a served source, or a source it derives from one.
|
|
1138
|
+
*/
|
|
1139
|
+
export interface EntitySourceAddress {
|
|
1140
|
+
'modelPath': string;
|
|
1141
|
+
'sourceName': string;
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* The table behind the field\'s source, split from its table path. Every part is absent when the source is not read from a table.
|
|
1145
|
+
*/
|
|
1146
|
+
export interface EntityTable {
|
|
1147
|
+
'connection'?: string;
|
|
1148
|
+
'catalog'?: string;
|
|
1149
|
+
'schema'?: string;
|
|
1150
|
+
'name'?: string;
|
|
1151
|
+
}
|
|
1060
1152
|
/**
|
|
1061
1153
|
* Represents a Malloy environment containing packages, connections, and other resources
|
|
1062
1154
|
*/
|
|
@@ -1230,6 +1322,19 @@ export interface GivenSuggest {
|
|
|
1230
1322
|
*/
|
|
1231
1323
|
'givenNames'?: Array<string>;
|
|
1232
1324
|
}
|
|
1325
|
+
/**
|
|
1326
|
+
* The definitional fingerprint of an `#(index)`-tagged dimension. Two loads that compile the dimension\'s canonical index query to the same SQL report the same fingerprint, so a host can reuse one index across versions and across sources that extend each other. Absent when that query did not compile.
|
|
1327
|
+
*/
|
|
1328
|
+
export interface IndexFingerprint {
|
|
1329
|
+
/**
|
|
1330
|
+
* Lowercase hex SHA-256 of the compiled index query\'s SQL.
|
|
1331
|
+
*/
|
|
1332
|
+
'sqlHash': string;
|
|
1333
|
+
/**
|
|
1334
|
+
* The dimensions the index is partitioned by: the source\'s required filters, in declaration order, then its `#(access_filter)` term columns.
|
|
1335
|
+
*/
|
|
1336
|
+
'requiredFilterDimensions': Array<string>;
|
|
1337
|
+
}
|
|
1233
1338
|
/**
|
|
1234
1339
|
* A join to a given-scoped source, declared on a persisted source and read per caller through the joined source\'s own artifact.
|
|
1235
1340
|
*/
|
|
@@ -1506,6 +1611,44 @@ export interface Model {
|
|
|
1506
1611
|
*/
|
|
1507
1612
|
'error'?: string;
|
|
1508
1613
|
}
|
|
1614
|
+
/**
|
|
1615
|
+
* What one `.malloy` model file declares, in the form an indexer reads. See `GET …/entities`.
|
|
1616
|
+
*/
|
|
1617
|
+
export interface ModelEntities {
|
|
1618
|
+
/**
|
|
1619
|
+
* Package-relative path of the model file.
|
|
1620
|
+
*/
|
|
1621
|
+
'modelPath': string;
|
|
1622
|
+
/**
|
|
1623
|
+
* Why the model has no entities: its compile error, or the server\'s failure to extract it (see `errorKind`). When present, every other list is empty.
|
|
1624
|
+
*/
|
|
1625
|
+
'error'?: string;
|
|
1626
|
+
/**
|
|
1627
|
+
* Present with `error`. `compile`: the model did not compile, which its author fixes. `extraction`: it compiled but the server could not extract its entities, a server fault an indexer should not read as the model having none.
|
|
1628
|
+
*/
|
|
1629
|
+
'errorKind'?: ModelEntitiesErrorKindEnum;
|
|
1630
|
+
/**
|
|
1631
|
+
* Every public field of every source the model surfaces, its imported sources included. A field reachable only through a join (a joined source declared inline, or one the model\'s imports do not surface on their own) is listed under the runnable source it is reached from, its `name` the join-qualified path.
|
|
1632
|
+
*/
|
|
1633
|
+
'fields'?: Array<EntityField>;
|
|
1634
|
+
/**
|
|
1635
|
+
* The facts the model states about each of its sources: docs, visibility, queryability, filters and access gates. Includes a source reached only through a join, with `joinOnly: true`, when the model gates or declares givens for it.
|
|
1636
|
+
*/
|
|
1637
|
+
'sources'?: Array<SourceEntities>;
|
|
1638
|
+
/**
|
|
1639
|
+
* Every given the model surfaces, those its imports surface included. They apply to every source in `sources`.
|
|
1640
|
+
*/
|
|
1641
|
+
'givens'?: Array<Given>;
|
|
1642
|
+
/**
|
|
1643
|
+
* The schema of each source the model surfaces, in declaration order: its own annotations and its public fields, a join\'s fields nested under it.
|
|
1644
|
+
*/
|
|
1645
|
+
'sourceSchemas'?: Array<SourceSchema>;
|
|
1646
|
+
}
|
|
1647
|
+
export declare const ModelEntitiesErrorKindEnum: {
|
|
1648
|
+
readonly Compile: "compile";
|
|
1649
|
+
readonly Extraction: "extraction";
|
|
1650
|
+
};
|
|
1651
|
+
export type ModelEntitiesErrorKindEnum = typeof ModelEntitiesErrorKindEnum[keyof typeof ModelEntitiesErrorKindEnum];
|
|
1509
1652
|
/**
|
|
1510
1653
|
* Standard error response format
|
|
1511
1654
|
*/
|
|
@@ -1761,11 +1904,13 @@ export interface Package {
|
|
|
1761
1904
|
*/
|
|
1762
1905
|
'latestVersion'?: string | null;
|
|
1763
1906
|
/**
|
|
1764
|
-
*
|
|
1907
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.loaded`) and the version\'s entry in `GET /status`. Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
1908
|
+
* @deprecated
|
|
1765
1909
|
*/
|
|
1766
1910
|
'loaded'?: boolean;
|
|
1767
1911
|
/**
|
|
1768
|
-
*
|
|
1912
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.archiveStatus`) and the version\'s entry in `GET /status`. Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
1913
|
+
* @deprecated
|
|
1769
1914
|
*/
|
|
1770
1915
|
'archiveStatus'?: PackageArchiveStatusEnum;
|
|
1771
1916
|
/**
|
|
@@ -1813,47 +1958,63 @@ export interface Package {
|
|
|
1813
1958
|
*/
|
|
1814
1959
|
'materialization'?: PackageMaterializationConfig | null;
|
|
1815
1960
|
/**
|
|
1816
|
-
*
|
|
1961
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.manifestBindingStatus`) and the package\'s entry in `GET /status`. Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
1962
|
+
* @deprecated
|
|
1817
1963
|
*/
|
|
1818
1964
|
'manifestBindingStatus'?: PackageManifestBindingStatusEnum;
|
|
1819
1965
|
/**
|
|
1820
|
-
*
|
|
1966
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.manifestEntryCount`). Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
1967
|
+
* @deprecated
|
|
1821
1968
|
*/
|
|
1822
1969
|
'manifestEntryCount'?: number;
|
|
1823
1970
|
/**
|
|
1824
|
-
*
|
|
1971
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.boundManifestUri`) and the package\'s entry in `GET /status`. Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
1972
|
+
* @deprecated
|
|
1825
1973
|
*/
|
|
1826
1974
|
'boundManifestUri'?: string | null;
|
|
1975
|
+
/**
|
|
1976
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.status`) and the package\'s entry in `GET /status`. Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
1977
|
+
* @deprecated
|
|
1978
|
+
*/
|
|
1827
1979
|
'status'?: PackageStatus;
|
|
1828
1980
|
/**
|
|
1829
|
-
*
|
|
1981
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.storageServeBindings`). Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
1982
|
+
* @deprecated
|
|
1830
1983
|
*/
|
|
1831
|
-
'storageServeBindings'?: Array<
|
|
1984
|
+
'storageServeBindings'?: Array<StorageServeBinding>;
|
|
1832
1985
|
/**
|
|
1833
|
-
* Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see `CreateMaterializationRequest.buildInstructions`) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.
|
|
1986
|
+
* **Moved** to `GET …/packages/{packageName}/build-plan`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see `CreateMaterializationRequest.buildInstructions`) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.
|
|
1834
1987
|
*/
|
|
1835
1988
|
'buildPlan'?: BuildPlan | null;
|
|
1836
1989
|
/**
|
|
1837
|
-
*
|
|
1990
|
+
* **Moved** to `GET …/packages/{packageName}/embedding-index`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
1838
1991
|
*/
|
|
1839
1992
|
'embeddingIndex'?: PackageEmbeddingIndex | null;
|
|
1840
1993
|
/**
|
|
1841
|
-
*
|
|
1994
|
+
* **Moved** to `GET …/packages/{packageName}/classification`. On the single-package read only (never a listing or `GET /status`), absent when nothing published is classified, and only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the state of this package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe.
|
|
1995
|
+
* @deprecated
|
|
1996
|
+
*/
|
|
1997
|
+
'classification'?: ClassificationSummary;
|
|
1998
|
+
/**
|
|
1999
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.servedRevision`). Always present on a `?reload=true` response, as that reload\'s receipt. Otherwise present only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it from all but the reload response.
|
|
2000
|
+
* @deprecated
|
|
1842
2001
|
*/
|
|
1843
2002
|
'servedRevision'?: string;
|
|
1844
2003
|
/**
|
|
1845
|
-
*
|
|
2004
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.sourceContentSha`). Always present on a `?reload=true` response, as that reload\'s receipt. Otherwise present only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it from all but the reload response.
|
|
2005
|
+
* @deprecated
|
|
1846
2006
|
*/
|
|
1847
2007
|
'sourceContentSha'?: string;
|
|
1848
2008
|
/**
|
|
1849
|
-
* Server-computed, read-only: the agents this package\'s `publisher.json` declares and the server accepted, without their instructions. Absent when the manifest declares no `agents`. An agent that failed validation is left out and named in `warnings`. Fetch one with `GET .../agents/{agentName}`.
|
|
2009
|
+
* **Moved** to `GET …/packages/{packageName}/agents`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the agents this package\'s `publisher.json` declares and the server accepted, without their instructions. Absent when the manifest declares no `agents`. An agent that failed validation is left out and named in `warnings`. Fetch one with `GET .../agents/{agentName}`.
|
|
2010
|
+
* @deprecated
|
|
1850
2011
|
*/
|
|
1851
2012
|
'agents'?: Array<AgentSummary>;
|
|
1852
2013
|
/**
|
|
1853
|
-
* Server-computed, read-only: every `#(secure)` given the package\'s compiled models surface, so a host that sets those values learns which ones to set from the load response without compiling the package itself. Collected from every `.malloy` model and `.malloynb` notebook in the package, files outside `explores` included. A model\'s givens are the ones its `CompiledModel.givens` reports, so a given declared in one file and imported by another is listed under both; a notebook\'s are those of the model its cells build up to. One entry per distinct `name` and `type`, sorted by `name` then `type`; a name declared with two types is two entries. It always describes the models the package is serving now, so a reload that changes them changes it. Present, possibly empty, on a loaded package whose every model and notebook compiled, so `[]` means the package declares no secure given. Absent when the list cannot be known to be complete: when any model or notebook in the package failed to compile (a reload keeps serving the files that did), or when the server does not report it, as on a listing entry for a package that is not loaded. Treat absent as unknown, never as none. It cannot be set: a PATCH body carrying it is ignored.
|
|
2014
|
+
* **Moved** to `GET …/packages/{packageName}/entities`, where each model\'s `givens` carries `secure` (`.malloy` models only). Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: every `#(secure)` given the package\'s compiled models surface, so a host that sets those values learns which ones to set from the load response without compiling the package itself. Collected from every `.malloy` model and `.malloynb` notebook in the package, files outside `explores` included. A model\'s givens are the ones its `CompiledModel.givens` reports, so a given declared in one file and imported by another is listed under both; a notebook\'s are those of the model its cells build up to. One entry per distinct `name` and `type`, sorted by `name` then `type`; a name declared with two types is two entries. It always describes the models the package is serving now, so a reload that changes them changes it. Present, possibly empty, on a loaded package whose every model and notebook compiled, so `[]` means the package declares no secure given. Absent when the list cannot be known to be complete: when any model or notebook in the package failed to compile (a reload keeps serving the files that did), or when the server does not report it, as on a listing entry for a package that is not loaded. Treat absent as unknown, never as none. It cannot be set: a PATCH body carrying it is ignored.
|
|
2015
|
+
* @deprecated
|
|
1854
2016
|
*/
|
|
1855
2017
|
'secureGivens'?: Array<SecureGivenSummary>;
|
|
1856
|
-
'classification'?: ClassificationSummary;
|
|
1857
2018
|
}
|
|
1858
2019
|
export declare const PackageArchiveStatusEnum: {
|
|
1859
2020
|
readonly Archive: "archive";
|
|
@@ -2015,45 +2176,278 @@ export interface PackageMaterializationConfig {
|
|
|
2015
2176
|
} | null;
|
|
2016
2177
|
}
|
|
2017
2178
|
/**
|
|
2018
|
-
*
|
|
2179
|
+
* How this server holds one package, or one version of it, right now: whether it serves and is loading, which load it serves, and which materialized tables are bound to it. `GET …/packages/{packageName}/status`. Reading it never loads the package: a package that is not in memory reports `status.serving` false and none of the load fields.
|
|
2180
|
+
*/
|
|
2181
|
+
export interface PackageServingState {
|
|
2182
|
+
/**
|
|
2183
|
+
* Resource path to the package
|
|
2184
|
+
*/
|
|
2185
|
+
'resource'?: string;
|
|
2186
|
+
/**
|
|
2187
|
+
* Package name
|
|
2188
|
+
*/
|
|
2189
|
+
'name': string;
|
|
2190
|
+
/**
|
|
2191
|
+
* The version this state describes, for a package that has versions: the one the request named, or its `latest`. Absent otherwise.
|
|
2192
|
+
*/
|
|
2193
|
+
'versionId'?: string | null;
|
|
2194
|
+
/**
|
|
2195
|
+
* For a version: whether this server holds it in memory. A published version that is not loaded (an archived one, or one not loaded since the server started) loads when a request next names it. Absent for a package without versions, whose `status.serving` says the same.
|
|
2196
|
+
*/
|
|
2197
|
+
'loaded'?: boolean;
|
|
2198
|
+
/**
|
|
2199
|
+
* For a version, whether it is archived. Absent otherwise.
|
|
2200
|
+
*/
|
|
2201
|
+
'archiveStatus'?: PackageServingStateArchiveStatusEnum;
|
|
2202
|
+
'status': PackageStatus;
|
|
2203
|
+
/**
|
|
2204
|
+
* Server-computed, read-only: an identifier for the load that produced what this package is currently serving. Minted fresh per load, so two loads of byte-identical files carry different revisions. Use it to tell one load from another, NOT to tell whether content changed: it moves on every reload regardless. `sourceContentSha` answers that.
|
|
2205
|
+
*/
|
|
2206
|
+
'servedRevision'?: string;
|
|
2207
|
+
/**
|
|
2208
|
+
* Server-computed, read-only: SHA-256 over the package-relative path and bytes of every file the package is serving: each model file, each package skill file under `skills/`, and, when the manifest declares `agents`, the canonical form of that `agents` object plus every instructions, task and skill file those agents read. This is the reload receipt. Publisher serves a COPY of a package under `publisher_data/<env>/<pkg>/` unless the environment was started with `--watch-env`, so an edit to the original source directory reaches nothing and the reload still reports success. Comparing this value across a reload is what distinguishes \"the server recompiled my edit\" from \"the server recompiled the same bytes it already had\". It covers EVERY model path in the package, so an edit to an imported file moves it where a hash of one model path would not. It covers nothing outside the list above: a data file, a `public/` asset, a `version` bump or any other key in publisher.json (`retrieval`, `explores`, `queryableSources`, `scope`) all leave it unchanged, although some of those do change what is served. An unchanged value therefore proves an edit to a hashed file did not reach the served copy, and says nothing about an edit to anything else.
|
|
2209
|
+
*/
|
|
2210
|
+
'sourceContentSha'?: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* Server-computed, read-only: whether the CONFIGURED build manifest is currently bound to this package\'s served models. `unbound` = no manifest configured, so the package serves live. `bound` = the configured manifest was fetched and applied. `live_fallback` = a `manifestLocation` is configured but its fetch/bind failed or timed out, so the configured manifest is NOT applied. Lets the caller confirm the publisher actually bound the configured manifest rather than inferring it from logs. `bound` reports that the bind ran to completion, NOT that any query routes to a materialized table: an entry whose source fails the eligibility gate is dropped, and the storage tier serves live under a `PERSIST_STORAGE_MODE` that is not `on`. Read `manifestEntryCount` and `storageServeBindings` for what actually bound. An EMPTY manifest is a bind like any other: it is fetched and applied, binds nothing, and reports `bound` with `manifestEntryCount` 0 and no `storageServeBindings`, while the package serves entirely live. That combination is the signature — `bound` with neither tier populated means the manifest carried nothing, not that the bind was missed. `live_fallback` does NOT imply the package is serving live. It says the configured manifest was not applied — not that nothing is. A failed FIRST bind leaves nothing bound (`boundManifestUri` null), but a failed REBIND leaves the previously bound manifest in place: its colocated substitutions stay compiled in, its storage serve bindings stay installed, and `boundManifestUri`, `manifestEntryCount` and `storageServeBindings` all continue to describe it. That rebind guarantee covers a failure BEFORE either tier applies — the manifest fetch failing or timing out, which is what produces `live_fallback` in practice. A failure partway through the recompile, after the new models are installed but before the binding is recorded, is out of scope: the new substitutions would be live while these fields still described the previous manifest. So the invariant to hold, whatever the status says: a non-null `boundManifestUri` is a LIVE reference to the manifest whose tables this package is currently serving from. A caller reclaiming superseded physical tables must treat it as one regardless of `manifestBindingStatus` — reading `live_fallback` as \"not serving from manifest tables\" and reclaiming that generation would drop tables out from under a package actively serving them. Note this value is not the `live_fallback` on a query result\'s `servedFrom`, which reports that ONE query degraded to the warehouse. This one is about the package\'s binding, and as above does not imply any query ran live.
|
|
2213
|
+
*/
|
|
2214
|
+
'manifestBindingStatus'?: PackageServingStateManifestBindingStatusEnum;
|
|
2215
|
+
/**
|
|
2216
|
+
* Server-computed, read-only: number of sourceEntityId -> physical-table entries currently bound for the COLOCATED (same-connection tableName substitution) tier only. 0 when unbound, or when the bound manifest carried no colocated entries — so a fully bound `storage=`-only manifest reports `bound` with a count of 0. Corroborate a cross-connection bind with `storageServeBindings`, not this count. Describes whatever is CURRENTLY bound, not the configured manifest: on a failed rebind this keeps the previously bound manifest\'s count (as `boundManifestUri` keeps its URI), because those entries really are still bound.
|
|
2217
|
+
*/
|
|
2218
|
+
'manifestEntryCount'?: number;
|
|
2219
|
+
/**
|
|
2220
|
+
* Server-computed, read-only: the manifest URI actually bound to the served models. Usually equals `manifestLocation`, but can differ after an in-memory auto-load following a materialization build (no URI), in which case it is null. Null whenever the package is unbound. It also diverges after a FAILED REBIND: `manifestLocation` then names the configured manifest that did not apply, while this names the manifest still bound and still served from. So a non-null value here is a live reference regardless of `manifestBindingStatus` — see that field for the invariant a caller reclaiming superseded physical tables has to hold.
|
|
2221
|
+
*/
|
|
2222
|
+
'boundManifestUri'?: string | null;
|
|
2223
|
+
/**
|
|
2224
|
+
* Server-computed, read-only: sources currently bound to serve from a `storage=` destination via the virtual-source transform (distinct from the same-connection manifest binding above — a storage source is read cross-connection from its destination, not substituted in the manifest). Present only when at least one source is bound. Whether a query actually routes to these tables additionally depends on `PERSIST_STORAGE_MODE=on`; under `off`/`write-only` the bindings may be present but the serve path still runs live (see `warnings`). Like `boundManifestUri`, this describes whatever is CURRENTLY bound rather than the configured manifest: after a failed rebind it goes on listing the previously bound manifest\'s sources, which are still serving. \"Bound\" is not the same as \"serving\", and an entry with `origin: preaggregate` is where the two most often part: a rollup is listed here once its table exists, but it is only offered to a query through a composite re-exposing its base\'s name, so it does not serve when something else already claims that name. Read `origin` before treating a row as evidence that queries are being accelerated.
|
|
2225
|
+
*/
|
|
2226
|
+
'storageServeBindings'?: Array<StorageServeBinding>;
|
|
2227
|
+
}
|
|
2228
|
+
export declare const PackageServingStateArchiveStatusEnum: {
|
|
2229
|
+
readonly Archive: "archive";
|
|
2230
|
+
readonly Unarchive: "unarchive";
|
|
2231
|
+
};
|
|
2232
|
+
export type PackageServingStateArchiveStatusEnum = typeof PackageServingStateArchiveStatusEnum[keyof typeof PackageServingStateArchiveStatusEnum];
|
|
2233
|
+
export declare const PackageServingStateManifestBindingStatusEnum: {
|
|
2234
|
+
readonly Unbound: "unbound";
|
|
2235
|
+
readonly Bound: "bound";
|
|
2236
|
+
readonly LiveFallback: "live_fallback";
|
|
2237
|
+
};
|
|
2238
|
+
export type PackageServingStateManifestBindingStatusEnum = typeof PackageServingStateManifestBindingStatusEnum[keyof typeof PackageServingStateManifestBindingStatusEnum];
|
|
2239
|
+
/**
|
|
2240
|
+
* Server-computed, read-only: how this server holds the package right now. `serving` is whether a compiled copy answers queries here; `loading` is whether a load, reinstall or recompile of the package is in progress here. The two are independent. A first load reports `loading` without `serving`. A reload of a package that is already served reports both, because the previous copy keeps answering until the new one is swapped in. Steady state reports `serving` alone. `loadingSince` is when the in-progress load began, so a caller can bound one that never completes. Which tables a serving copy answers from is a separate question, answered by `manifestBindingStatus`. A publish of a package version is a load from its download until it settles, and while it runs every entry of that package reports `loading`. With `includeLoading=true`, once its tree has named the version, a version the package does not hold yet is listed as its own entry, with its `versionId`, `loaded: false` and `loading`, unless an unversioned copy of the package still serves. A package that is loading for the first time, so is not yet serving, is listed only where a caller asks for it: `GET /status?includeLoading=true` includes it as its name and `status`. Every other listing, the environment resources included, shows packages that can be queried.
|
|
2241
|
+
*/
|
|
2242
|
+
export interface PackageStatus {
|
|
2243
|
+
/**
|
|
2244
|
+
* A compiled copy of the package answers queries here now.
|
|
2245
|
+
*/
|
|
2246
|
+
'serving': boolean;
|
|
2247
|
+
/**
|
|
2248
|
+
* A load, reinstall or recompile of the package is in progress here. While true, `manifestBindingStatus` describes the copy being replaced, not the one being built.
|
|
2249
|
+
*/
|
|
2250
|
+
'loading': boolean;
|
|
2251
|
+
/**
|
|
2252
|
+
* When the in-progress load began. Present only while `loading` is true.
|
|
2253
|
+
*/
|
|
2254
|
+
'loadingSince'?: string;
|
|
2255
|
+
}
|
|
2256
|
+
/**
|
|
2257
|
+
* A package\'s entry in `GET /status`, carrying what an orchestrator reconciles a server from: which package or version it is, whether it is serving or loading, and which manifest is bound. The rest of the package\'s serving state is at `GET …/packages/{packageName}/status`. While `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release, an entry is the package\'s whole response, so it is declared as a `Package`: every field beyond the ones below is deprecated on this entry and absent once the setting is off; a later release removes them.
|
|
2258
|
+
*/
|
|
2259
|
+
export interface PackageStatusEntry {
|
|
2260
|
+
/**
|
|
2261
|
+
* Resource path to the package
|
|
2262
|
+
*/
|
|
2263
|
+
'resource'?: string;
|
|
2264
|
+
/**
|
|
2265
|
+
* Package name
|
|
2266
|
+
*/
|
|
2267
|
+
'name': string;
|
|
2268
|
+
/**
|
|
2269
|
+
* The version this entry describes. A versioned package is listed once per version this server holds. Absent for a package without versions.
|
|
2270
|
+
*/
|
|
2271
|
+
'versionId'?: string;
|
|
2272
|
+
/**
|
|
2273
|
+
* The package\'s `latest` version; null while none of its versions is `latest`. Absent for a package without versions.
|
|
2274
|
+
*/
|
|
2275
|
+
'latestVersion'?: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* Set only on a version\'s entry: whether this server holds the version in memory. A published version that is not loaded (an archived one, or one not loaded since the server started) is still held, so it is still listed, with `loaded: false` and only its `resource`, name, version, `latestVersion`, `archiveStatus` and `status`. It loads when a request next names it. A version still being published is listed only under `includeLoading`, with `loaded: false`, no `archiveStatus`, and `status.loading`.
|
|
2278
|
+
*/
|
|
2279
|
+
'loaded'?: boolean;
|
|
2280
|
+
/**
|
|
2281
|
+
* Set only on a version\'s entry, except one still being published: whether the version is archived.
|
|
2282
|
+
*/
|
|
2283
|
+
'archiveStatus'?: PackageStatusEntryArchiveStatusEnum;
|
|
2284
|
+
/**
|
|
2285
|
+
* Package description
|
|
2286
|
+
*/
|
|
2287
|
+
'description'?: string;
|
|
2288
|
+
/**
|
|
2289
|
+
* Package location. A LOCAL path must start with `./`, `../`, `~/`, or `/`; a `./` or `../` path resolves against the config file\'s directory, and `~/` against the home directory. Anything else is read as a remote URI (github, s3, gcs, https), so a bare name like `sales` is not local and the package is skipped with \"Invalid package path\" in the server\'s loadErrors. At boot a local package is COPIED into publisher_data/ and the copy is served, so edits to the source directory are not read; starting the server with `--watch-env <env>` mounts local packages in place (symlink) and live-reloads them instead. The mount is chosen when the environment is first loaded from config, so adding `--watch-env` to a later boot needs `--init` to re-mount a package already copied. On an update, a `location` equal to the one the package was installed from is a metadata update and nothing is fetched; a different one reinstalls the package from it, and an update that arrives while an install is in progress waits for it and is decided against the copy that install leaves resident. To fetch the same location again, reload the package (`GET …?reload=true`). The location a package was installed from is recorded by the server when it installs it and read back from that record; a `location` written into a package\'s own `publisher.json` is not.
|
|
2290
|
+
*/
|
|
2291
|
+
'location'?: string;
|
|
2292
|
+
/**
|
|
2293
|
+
* Package-level Malloy Persistence scope mode, declared once at the publisher.json root and applied uniformly to every persist source and index in the package. `package` (the default) = persisted artifacts are package-scoped: reused across the package\'s published versions whenever they still satisfy freshness. `version` = version-scoped: each artifact is owned by one published version. There is no per-source/per-dimension scope. A `materialization.schedule` cron is legal only when `scope: version` (a package-scoped lineage is reused across versions, so a single per-version cadence is meaningless). Emitted whenever the package is loaded; defaults to `package` when the manifest omits it.
|
|
2294
|
+
*/
|
|
2295
|
+
'scope'?: PackageStatusEntryScopeEnum;
|
|
2296
|
+
/**
|
|
2297
|
+
* The package\'s discovery surface and query boundary: model file paths relative to the package root. Only these models are listed via `listModels()`, and the surface is the union of their `export {}` closures. Every other .malloy file still compiles for import/join resolution but is hidden. Reports are always listed regardless of this field, and a report needs no listing: a report listed here reads the surface and adds nothing to it, and the package warns about it (`report-on-surface`). An untagged file that is listed is an ordinary surface file, wherever it lives. DEPRECATED, still honored. Every non-empty value gets a load warning naming the replacement: a root `index.malloy` that imports the listed files and exports what they publish. `[]` is deprecated too: beside an `index.malloy` it stops that file from limiting what the package publishes (the fix is to rename `index.malloy` and delete this key), and without one it does nothing. A value that is not a list of strings refuses the package load (424). This value MAY have been derived by the server from a root `index.malloy` rather than written by the package author, and the response does not distinguish the two — deliberately, because nothing downstream treats them differently. An explicit key always wins over `index.malloy`. A package is uncurated only when it has neither this key nor a root `index.malloy`.
|
|
2298
|
+
* @deprecated
|
|
2299
|
+
*/
|
|
2300
|
+
'explores'?: Array<string>;
|
|
2301
|
+
/**
|
|
2302
|
+
* Actionable messages for declared explores that do not resolve to a real model in this package (e.g. a misspelled path, or a notebook listed as an explore). Server-computed and read-only: it is ignored on create/update requests and only ever returned in responses. Present only when there are such problems. Loading is fail-safe — the unresolved entry simply lists nothing rather than exposing everything — so this is the signal that a package is misconfigured; publishing such a package is rejected.
|
|
2303
|
+
*/
|
|
2304
|
+
'exploresWarnings'?: Array<string>;
|
|
2305
|
+
/**
|
|
2306
|
+
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope. These codes are `error` and fail `/compile`: `notebook-markdown-opener-text` (more than a name after `(markdown)` on a block\'s opener), `notebook-markdown-attached-nowhere` (a `#(markdown)` annotation with no statement to take it), `notebook-artifact-unparsed` (an `## artifact` tag does not parse), and `notebook-cells-unreadable` (the reader could not read a linear report\'s cells), plus `report-kind-removed` (a tag that sets `kind=`, which is no longer read, so the file is not a report; the finding names the `layout=` to write), `report-cells-removed` (a linear tag that lists no `tiles`, the retired `run:` cell format, so the file is not a report; the fix is to list its tiles in `tiles=[…]`) and `report-layout-unknown` (a `layout=` other than `grid` or `linear`). The rest are `warn` (a mistyped `(markdown)` opener, a block that never closes, and similar). Skill and agent findings, all `warn`: a package skill under `skills/` that is not served (unreadable or linked-out `SKILL.md`, a frontmatter `name` that is not its directory name, a `skills/` directory that links out of the package) or served with a gap (no `description`, a `reference/` that cannot be listed or read); and each agent the manifest declares that is not served, or is served with a finding (an agent skill with no `description`, a skills directory with no skills, an unreadable reference). Deprecated-format findings, all `warn`: each `.malloynb` notebook (`model` is its path), and each source a file declares deprecated `#(filter)` annotations on (`model` is that file, `subject` the source; a source that only inherits or imports a filter is not reported). Both still load and run. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, authorize gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD for every violation EXCEPT the two access-modifier ones, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
|
|
2307
|
+
*/
|
|
2308
|
+
'warnings'?: Array<PackageWarningsInner>;
|
|
2309
|
+
/**
|
|
2310
|
+
* Controls whether the discovery surface is also a query boundary. `\"declared\"` (the default) makes queryable == discoverable: when the package has a surface (a root `index.malloy`, or `explores`), only the surface\'s model files are valid query entry points, and the queryable sources are the union of those files\' `export {}` closures — so a source exported by any listed file stays queryable whichever listed model path the request addresses it through. Admission is by declaration, not by name: a request clears only when the model it names resolves the name to the very source a listed file exported, so a same-named source declared in a hidden file is not admitted by the coincidence. Every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). The `/compile` endpoint is exempt (compile is the authoring loop; the boundary is discovery curation, not access control — for confidentiality use `#(authorize)`, which gates compile too). A source that is both hidden and authorize-gated still answers `/compile` with the generic 404, so the exemption cannot be used to enumerate gated names. `\"all\"` decouples the axes: the surface gates discovery only, every compiled source stays directly queryable, and model files off the surface are returned by path. The two modes are equivalent (everything queryable) only where there is no curated surface at all, which means no `explores` AND no root `index.malloy` — a package with that file has a surface whether or not the key is present. Invalid values fall back to `\"declared\"`. Identity-based access is a separate concern — see `#(authorize)` and `#(access_filter)`. `\"declared\"` is DEPRECATED: it is already the default, so the key changes nothing, and writing it gets a load warning saying to delete it. `\"all\"` is supported, with no warning, and works beside a root `index.malloy`. It is the one way to hide an `#(authorize)`-gated source from listings while authorized callers can still query it by name.
|
|
2311
|
+
* @deprecated
|
|
2312
|
+
*/
|
|
2313
|
+
'queryableSources'?: PackageStatusEntryQueryableSourcesEnum;
|
|
2314
|
+
/**
|
|
2315
|
+
* Where the externally-computed manifest for this package is: a gs:// or s3:// URI, a file:// URL, or an absolute path on this server (a mounted volume). On (re)load the publisher reads it and binds persist references (sourceEntityId -> physicalTableName). Null = serve live. For a package with published versions, a relative path is refused with 400.
|
|
2316
|
+
*/
|
|
2317
|
+
'manifestLocation'?: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* The package-level layer of per-query metadata. Applies to every statement the package\'s sources issue — a served query as much as a build — and is overridden per property by a model-file, source or per-request declaration. **This is the canonical home, here and in `publisher.json`.** `materialization.queryMetadata` is the original one and is DEPRECATED: the properties are not a build setting, so carrying them inside the build-policy block described a scope the feature does not have. Both are populated on read and both are accepted on write, so a client can migrate on its own schedule. On write the canonical field wins if a request sends both; in the manifest, the two declaring different bags warns and the root wins, rather than failing the load the way a conflicting `scope` does — a tag is observability only and must never be the reason a package refuses to load. Omitting this on a PATCH preserves the package\'s existing tags, and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
|
|
2320
|
+
*/
|
|
2321
|
+
'queryMetadata'?: {
|
|
2322
|
+
[key: string]: string;
|
|
2323
|
+
};
|
|
2324
|
+
/**
|
|
2325
|
+
* Package-level Malloy Persistence policy declared in publisher.json. The control plane reads it to drive scheduled re-materialization. The object is present whenever the package has loaded — with `schedule: null` when the manifest declares no schedule — so the caller can treat object-present as the authoritative manifest policy. Null/absent only when package metadata is unavailable for this request (not loaded), which the caller must treat as \"unknown\", not as a removal.
|
|
2326
|
+
*/
|
|
2327
|
+
'materialization'?: PackageMaterializationConfig;
|
|
2328
|
+
/**
|
|
2329
|
+
* Whether the configured build manifest is bound to the served models. See `PackageServingState.manifestBindingStatus`, including the invariant a caller reclaiming superseded tables has to hold.
|
|
2330
|
+
*/
|
|
2331
|
+
'manifestBindingStatus'?: PackageStatusEntryManifestBindingStatusEnum;
|
|
2332
|
+
/**
|
|
2333
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.manifestEntryCount`). Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
2334
|
+
* @deprecated
|
|
2335
|
+
*/
|
|
2336
|
+
'manifestEntryCount'?: number;
|
|
2337
|
+
/**
|
|
2338
|
+
* The manifest URI actually bound to the served models; null when unbound. A non-null value is a live reference. See `PackageServingState.boundManifestUri`.
|
|
2339
|
+
*/
|
|
2340
|
+
'boundManifestUri'?: string;
|
|
2341
|
+
'status'?: PackageStatus;
|
|
2342
|
+
/**
|
|
2343
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.storageServeBindings`). Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
2344
|
+
* @deprecated
|
|
2345
|
+
*/
|
|
2346
|
+
'storageServeBindings'?: Array<StorageServeBinding>;
|
|
2347
|
+
/**
|
|
2348
|
+
* **Moved** to `GET …/packages/{packageName}/build-plan`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see `CreateMaterializationRequest.buildInstructions`) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.
|
|
2349
|
+
*/
|
|
2350
|
+
'buildPlan'?: BuildPlan;
|
|
2351
|
+
/**
|
|
2352
|
+
* **Moved** to `GET …/packages/{packageName}/embedding-index`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
2353
|
+
*/
|
|
2354
|
+
'embeddingIndex'?: PackageEmbeddingIndex;
|
|
2355
|
+
/**
|
|
2356
|
+
* **Moved** to `GET …/packages/{packageName}/classification`. On the single-package read only (never a listing or `GET /status`), absent when nothing published is classified, and only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the state of this package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe.
|
|
2357
|
+
* @deprecated
|
|
2358
|
+
*/
|
|
2359
|
+
'classification'?: ClassificationSummary;
|
|
2360
|
+
/**
|
|
2361
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.servedRevision`). Always present on a `?reload=true` response, as that reload\'s receipt. Otherwise present only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it from all but the reload response.
|
|
2362
|
+
* @deprecated
|
|
2363
|
+
*/
|
|
2364
|
+
'servedRevision'?: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* **Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.sourceContentSha`). Always present on a `?reload=true` response, as that reload\'s receipt. Otherwise present only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it from all but the reload response.
|
|
2367
|
+
* @deprecated
|
|
2368
|
+
*/
|
|
2369
|
+
'sourceContentSha'?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* **Moved** to `GET …/packages/{packageName}/agents`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the agents this package\'s `publisher.json` declares and the server accepted, without their instructions. Absent when the manifest declares no `agents`. An agent that failed validation is left out and named in `warnings`. Fetch one with `GET .../agents/{agentName}`.
|
|
2372
|
+
* @deprecated
|
|
2373
|
+
*/
|
|
2374
|
+
'agents'?: Array<AgentSummary>;
|
|
2375
|
+
/**
|
|
2376
|
+
* **Moved** to `GET …/packages/{packageName}/entities`, where each model\'s `givens` carries `secure` (`.malloy` models only). Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: every `#(secure)` given the package\'s compiled models surface, so a host that sets those values learns which ones to set from the load response without compiling the package itself. Collected from every `.malloy` model and `.malloynb` notebook in the package, files outside `explores` included. A model\'s givens are the ones its `CompiledModel.givens` reports, so a given declared in one file and imported by another is listed under both; a notebook\'s are those of the model its cells build up to. One entry per distinct `name` and `type`, sorted by `name` then `type`; a name declared with two types is two entries. It always describes the models the package is serving now, so a reload that changes them changes it. Present, possibly empty, on a loaded package whose every model and notebook compiled, so `[]` means the package declares no secure given. Absent when the list cannot be known to be complete: when any model or notebook in the package failed to compile (a reload keeps serving the files that did), or when the server does not report it, as on a listing entry for a package that is not loaded. Treat absent as unknown, never as none. It cannot be set: a PATCH body carrying it is ignored.
|
|
2377
|
+
* @deprecated
|
|
2378
|
+
*/
|
|
2379
|
+
'secureGivens'?: Array<SecureGivenSummary>;
|
|
2380
|
+
}
|
|
2381
|
+
export declare const PackageStatusEntryArchiveStatusEnum: {
|
|
2382
|
+
readonly Archive: "archive";
|
|
2383
|
+
readonly Unarchive: "unarchive";
|
|
2384
|
+
};
|
|
2385
|
+
export type PackageStatusEntryArchiveStatusEnum = typeof PackageStatusEntryArchiveStatusEnum[keyof typeof PackageStatusEntryArchiveStatusEnum];
|
|
2386
|
+
export declare const PackageStatusEntryScopeEnum: {
|
|
2387
|
+
readonly Version: "version";
|
|
2388
|
+
readonly Package: "package";
|
|
2389
|
+
};
|
|
2390
|
+
export type PackageStatusEntryScopeEnum = typeof PackageStatusEntryScopeEnum[keyof typeof PackageStatusEntryScopeEnum];
|
|
2391
|
+
export declare const PackageStatusEntryQueryableSourcesEnum: {
|
|
2392
|
+
readonly Declared: "declared";
|
|
2393
|
+
readonly All: "all";
|
|
2394
|
+
};
|
|
2395
|
+
export type PackageStatusEntryQueryableSourcesEnum = typeof PackageStatusEntryQueryableSourcesEnum[keyof typeof PackageStatusEntryQueryableSourcesEnum];
|
|
2396
|
+
export declare const PackageStatusEntryManifestBindingStatusEnum: {
|
|
2397
|
+
readonly Unbound: "unbound";
|
|
2398
|
+
readonly Bound: "bound";
|
|
2399
|
+
readonly LiveFallback: "live_fallback";
|
|
2400
|
+
};
|
|
2401
|
+
export type PackageStatusEntryManifestBindingStatusEnum = typeof PackageStatusEntryManifestBindingStatusEnum[keyof typeof PackageStatusEntryManifestBindingStatusEnum];
|
|
2402
|
+
/**
|
|
2403
|
+
* What a `GET /status` entry carries with `PUBLISHER_PACKAGE_INLINE_FIELDS` off. Each field is declared `deprecated: false` so it overrides the deprecated `Package` field of the same name the `allOf` brings in.
|
|
2019
2404
|
*/
|
|
2020
|
-
export interface
|
|
2405
|
+
export interface PackageStatusEntryFields {
|
|
2021
2406
|
/**
|
|
2022
|
-
*
|
|
2407
|
+
* Resource path to the package
|
|
2023
2408
|
*/
|
|
2024
|
-
'
|
|
2409
|
+
'resource'?: string;
|
|
2025
2410
|
/**
|
|
2026
|
-
*
|
|
2411
|
+
* Package name
|
|
2027
2412
|
*/
|
|
2028
|
-
'
|
|
2413
|
+
'name': string;
|
|
2029
2414
|
/**
|
|
2030
|
-
*
|
|
2415
|
+
* The version this entry describes. A versioned package is listed once per version this server holds. Absent for a package without versions.
|
|
2031
2416
|
*/
|
|
2032
|
-
'
|
|
2033
|
-
}
|
|
2034
|
-
export interface PackageStorageServeBindingsInner {
|
|
2417
|
+
'versionId'?: string | null;
|
|
2035
2418
|
/**
|
|
2036
|
-
* The
|
|
2419
|
+
* The package\'s `latest` version; null while none of its versions is `latest`. Absent for a package without versions.
|
|
2037
2420
|
*/
|
|
2038
|
-
'
|
|
2421
|
+
'latestVersion'?: string | null;
|
|
2039
2422
|
/**
|
|
2040
|
-
*
|
|
2423
|
+
* Set only on a version\'s entry: whether this server holds the version in memory. A published version that is not loaded (an archived one, or one not loaded since the server started) is still held, so it is still listed, with `loaded: false` and only its `resource`, name, version, `latestVersion`, `archiveStatus` and `status`. It loads when a request next names it. A version still being published is listed only under `includeLoading`, with `loaded: false`, no `archiveStatus`, and `status.loading`.
|
|
2041
2424
|
*/
|
|
2042
|
-
'
|
|
2425
|
+
'loaded'?: boolean;
|
|
2043
2426
|
/**
|
|
2044
|
-
*
|
|
2427
|
+
* Set only on a version\'s entry, except one still being published: whether the version is archived.
|
|
2045
2428
|
*/
|
|
2046
|
-
'
|
|
2429
|
+
'archiveStatus'?: PackageStatusEntryFieldsArchiveStatusEnum;
|
|
2430
|
+
'status'?: PackageStatus;
|
|
2047
2431
|
/**
|
|
2048
|
-
*
|
|
2432
|
+
* Whether the configured build manifest is bound to the served models. See `PackageServingState.manifestBindingStatus`, including the invariant a caller reclaiming superseded tables has to hold.
|
|
2049
2433
|
*/
|
|
2050
|
-
'
|
|
2434
|
+
'manifestBindingStatus'?: PackageStatusEntryFieldsManifestBindingStatusEnum;
|
|
2435
|
+
/**
|
|
2436
|
+
* The manifest URI actually bound to the served models; null when unbound. A non-null value is a live reference. See `PackageServingState.boundManifestUri`.
|
|
2437
|
+
*/
|
|
2438
|
+
'boundManifestUri'?: string | null;
|
|
2051
2439
|
}
|
|
2052
|
-
export declare const
|
|
2053
|
-
readonly
|
|
2054
|
-
readonly
|
|
2440
|
+
export declare const PackageStatusEntryFieldsArchiveStatusEnum: {
|
|
2441
|
+
readonly Archive: "archive";
|
|
2442
|
+
readonly Unarchive: "unarchive";
|
|
2055
2443
|
};
|
|
2056
|
-
export type
|
|
2444
|
+
export type PackageStatusEntryFieldsArchiveStatusEnum = typeof PackageStatusEntryFieldsArchiveStatusEnum[keyof typeof PackageStatusEntryFieldsArchiveStatusEnum];
|
|
2445
|
+
export declare const PackageStatusEntryFieldsManifestBindingStatusEnum: {
|
|
2446
|
+
readonly Unbound: "unbound";
|
|
2447
|
+
readonly Bound: "bound";
|
|
2448
|
+
readonly LiveFallback: "live_fallback";
|
|
2449
|
+
};
|
|
2450
|
+
export type PackageStatusEntryFieldsManifestBindingStatusEnum = typeof PackageStatusEntryFieldsManifestBindingStatusEnum[keyof typeof PackageStatusEntryFieldsManifestBindingStatusEnum];
|
|
2057
2451
|
/**
|
|
2058
2452
|
* One published version of a package. Its content is immutable; what changes over its life is its lifecycle state (`archiveStatus`), whether it is the package\'s `latest`, and the build manifest it is bound to.
|
|
2059
2453
|
*/
|
|
@@ -2165,7 +2559,7 @@ export interface PackageWarningsInner {
|
|
|
2165
2559
|
*/
|
|
2166
2560
|
'message'?: string;
|
|
2167
2561
|
/**
|
|
2168
|
-
* A stable identifier for the finding\'s family, for a client that acts on it rather than only showing it; absent for a family that has none yet. `deprecated-malloynb-notebook`: a `.malloynb` notebook, the deprecated cell format (one per file, `model` naming it). `deprecated-filter-annotation`: a source declaring deprecated `#(filter)` annotations (one per declaring source, `model` naming its file and `subject` the source). `report-name-ambiguous`: two or more grid reports share a basename, so the deprecated `GET …/dashboards/{name}` route answers 409 for it (one per name, `subject` naming it and the message every path; `warn`). `classification-coverage`: a published source with a dimension or measure that carries no `#(classification)` while some field in the package does (one per source, `model` naming its file and `subject` the source; `warn`; see docs/classification.md). `classification-malformed`: a `#(classification)` annotation that names no single class (one per field, `subject` the source; `warn`). The per-file report findings (`notebook-…`, `report-…`) and the report curation findings (`report-on-surface`, `index-is-not-a-report`). The message wording may change; the code does not.
|
|
2562
|
+
* A stable identifier for the finding\'s family, for a client that acts on it rather than only showing it; absent for a family that has none yet. `deprecated-malloynb-notebook`: a `.malloynb` notebook, the deprecated cell format (one per file, `model` naming it). `deprecated-filter-annotation`: a source declaring deprecated `#(filter)` annotations (one per declaring source, `model` naming its file and `subject` the source). `report-name-ambiguous`: two or more grid reports share a basename, so the deprecated `GET …/dashboards/{name}` route answers 409 for it (one per name, `subject` naming it and the message every path; `warn`). `classification-coverage`: a published source with a dimension or measure that carries no `#(classification)` while some field in the package does (one per source, `model` naming its file and `subject` the source; `warn`; see docs/classification.md). `classification-malformed`: a `#(classification)` annotation that names no single class (one per field, `subject` the source; `warn`). `entities-…` (`entities-not-a-dimension`, `entities-parameterized-source`, `entities-multiple-required-filters`, `entities-sharing-not-allowed-on-dimension`, `entities-schedule-not-allowed-on-dimension`, `entities-required-filter-missing-dimension`, `entities-required-filter-non-public-dimension`): an `#(index)` or required `#(filter)` an index cannot honor, left out of `GET …/entities` (`model` its file; `warn`). The per-file report findings (`notebook-…`, `report-…`) and the report curation findings (`report-on-surface`, `index-is-not-a-report`). The message wording may change; the code does not.
|
|
2169
2563
|
*/
|
|
2170
2564
|
'code'?: string;
|
|
2171
2565
|
/**
|
|
@@ -2955,9 +3349,9 @@ export interface ServerStatus {
|
|
|
2955
3349
|
*/
|
|
2956
3350
|
'timestamp'?: number;
|
|
2957
3351
|
/**
|
|
2958
|
-
* List of available environments. Each environment\'s `packages` lists one entry per package, as `GET .../packages` does, except that a versioned package is listed once for EVERY version this server holds, each entry with its own `versionId`, `archiveStatus` and `loaded`. A loaded version\'s entry also carries its manifest binding (`manifestBindingStatus`, `boundManifestUri`); an unloaded one (an archived version, or one not loaded since the server started) carries only its name and version. An orchestrator reconciles what a server holds from this list, so it names every version rather than only `latest` or only what is in memory; `resource` keeps its shape.
|
|
3352
|
+
* List of available environments. Each environment\'s `packages` lists one entry per package, as `GET .../packages` does, except that a versioned package is listed once for EVERY version this server holds, each entry with its own `versionId`, `archiveStatus` and `loaded`. A loaded version\'s entry also carries its manifest binding (`manifestBindingStatus`, `boundManifestUri`); an unloaded one (an archived version, or one not loaded since the server started) carries only its name and version. An orchestrator reconciles what a server holds from this list, so it names every version rather than only `latest` or only what is in memory; `resource` keeps its shape. Each entry carries what a reconcile reads (`PackageStatusEntry`); the rest of a package\'s serving state is at `GET …/packages/{packageName}/status`.
|
|
2959
3353
|
*/
|
|
2960
|
-
'environments'?: Array<
|
|
3354
|
+
'environments'?: Array<ServerStatusEnvironment>;
|
|
2961
3355
|
/**
|
|
2962
3356
|
* Whether the server is fully initialized and ready to serve requests
|
|
2963
3357
|
*/
|
|
@@ -2978,12 +3372,16 @@ export interface ServerStatus {
|
|
|
2978
3372
|
* The `versionPromotion` setting this server runs with. With \"explicit\", a publish never moves a package\'s `latest`; only `PUT .../packages/{packageName}/latest` does.
|
|
2979
3373
|
*/
|
|
2980
3374
|
'versionPromotion'?: ServerStatusVersionPromotionEnum;
|
|
3375
|
+
/**
|
|
3376
|
+
* Which page the Console shows for a model (`PUBLISHER_MODEL_PAGE`, \"explorer\" by default). \"explorer\" is the Malloy Explorer, which writes the queries it builds back to Malloy text with string values unescaped, so a drilled value holding a double quote rewrites its query. \"viewer\" shows a page that builds no query, and takes the Explorer out of the legacy notebook too. Absent from a server that predates the setting, which reads as \"explorer\".
|
|
3377
|
+
*/
|
|
3378
|
+
'modelPage'?: ServerStatusModelPageEnum;
|
|
2981
3379
|
/**
|
|
2982
3380
|
* Present only when the server has no environments because no publisher.config.json was found at startup, or because the --config path it was given does not exist. It names the path that was checked and how to fix it. It describes startup, so a config written while the server runs is not read until a restart. A server in this state still reports serving, so check this before treating an empty environments list as intended. Absent once any environment exists, including one created at runtime through the API, and absent when a config was found but lists no environments.
|
|
2983
3381
|
*/
|
|
2984
3382
|
'emptyReason'?: string;
|
|
2985
3383
|
/**
|
|
2986
|
-
* Present only when initialization failed, and says why. Such a server stays up but never becomes ready, so operationalState stays initializing; without this field that reads as a server still starting. Typical causes are a
|
|
3384
|
+
* Present only when initialization failed, and says why. Such a server stays up but never becomes ready, so operationalState stays initializing; without this field that reads as a server still starting. Typical causes are a server root it cannot write (where it creates publisher.db), such as a read-only root filesystem, and a ${VAR} in the config file\'s environments that is not set. A config file the server cannot read or parse stops it at startup, before it answers at all. A package or environment that fails to load is reported under loadErrors instead. Fix the cause and restart.
|
|
2987
3385
|
*/
|
|
2988
3386
|
'initError'?: string;
|
|
2989
3387
|
/**
|
|
@@ -3016,6 +3414,38 @@ export declare const ServerStatusVersionPromotionEnum: {
|
|
|
3016
3414
|
readonly Explicit: "explicit";
|
|
3017
3415
|
};
|
|
3018
3416
|
export type ServerStatusVersionPromotionEnum = typeof ServerStatusVersionPromotionEnum[keyof typeof ServerStatusVersionPromotionEnum];
|
|
3417
|
+
export declare const ServerStatusModelPageEnum: {
|
|
3418
|
+
readonly Explorer: "explorer";
|
|
3419
|
+
readonly Viewer: "viewer";
|
|
3420
|
+
};
|
|
3421
|
+
export type ServerStatusModelPageEnum = typeof ServerStatusModelPageEnum[keyof typeof ServerStatusModelPageEnum];
|
|
3422
|
+
/**
|
|
3423
|
+
* An environment as `GET /status` reports it: its identity and connections, and one entry per package (per version, for a versioned package). Connections are reported without their attributes.
|
|
3424
|
+
*/
|
|
3425
|
+
export interface ServerStatusEnvironment {
|
|
3426
|
+
/**
|
|
3427
|
+
* Resource path to the environment
|
|
3428
|
+
*/
|
|
3429
|
+
'resource'?: string;
|
|
3430
|
+
/**
|
|
3431
|
+
* Environment name
|
|
3432
|
+
*/
|
|
3433
|
+
'name'?: string;
|
|
3434
|
+
/**
|
|
3435
|
+
* Environment README content
|
|
3436
|
+
*/
|
|
3437
|
+
'readme'?: string;
|
|
3438
|
+
/**
|
|
3439
|
+
* Environment location
|
|
3440
|
+
*/
|
|
3441
|
+
'location'?: string;
|
|
3442
|
+
'connections'?: Array<Connection>;
|
|
3443
|
+
/**
|
|
3444
|
+
* The environment\'s storage destinations, `name` and `type` only.
|
|
3445
|
+
*/
|
|
3446
|
+
'storageDestinations'?: Array<Connection>;
|
|
3447
|
+
'packages'?: Array<PackageStatusEntry>;
|
|
3448
|
+
}
|
|
3019
3449
|
export interface ServerStatusLoadErrorsInner {
|
|
3020
3450
|
/**
|
|
3021
3451
|
* Name of the configured environment the failure belongs to.
|
|
@@ -3164,6 +3594,41 @@ export interface Source {
|
|
|
3164
3594
|
*/
|
|
3165
3595
|
'accessFilter'?: Array<string>;
|
|
3166
3596
|
}
|
|
3597
|
+
/**
|
|
3598
|
+
* What a model states about one source. See `ModelEntities.sources`.
|
|
3599
|
+
*/
|
|
3600
|
+
export interface SourceEntities {
|
|
3601
|
+
/**
|
|
3602
|
+
* The model file the facts are filed under: the reporting model, or, for a `joinOnly` source declared in another file, that file.
|
|
3603
|
+
*/
|
|
3604
|
+
'modelPath': string;
|
|
3605
|
+
/**
|
|
3606
|
+
* The source\'s name. Dotted (`orders.customer`) for a source that exists only inside a join.
|
|
3607
|
+
*/
|
|
3608
|
+
'name': string;
|
|
3609
|
+
/**
|
|
3610
|
+
* Reached only through a join. Only `authorize` is reported for it.
|
|
3611
|
+
*/
|
|
3612
|
+
'joinOnly': boolean;
|
|
3613
|
+
/**
|
|
3614
|
+
* The source\'s own `#(doc)` text, when it has any.
|
|
3615
|
+
*/
|
|
3616
|
+
'doc'?: string;
|
|
3617
|
+
/**
|
|
3618
|
+
* The source, or the model file declaring it, carries `#(agent-hidden)`.
|
|
3619
|
+
*/
|
|
3620
|
+
'agentHidden': boolean;
|
|
3621
|
+
/**
|
|
3622
|
+
* Whether this server runs a query against the source directly. False for a source outside the package\'s query surface.
|
|
3623
|
+
*/
|
|
3624
|
+
'queryable': boolean;
|
|
3625
|
+
'servedFrom'?: EntitySourceAddress;
|
|
3626
|
+
'filters'?: Array<Filter>;
|
|
3627
|
+
/**
|
|
3628
|
+
* The source\'s effective access gates: file-level ones first, then its own, `authorize` before `access_filter`.
|
|
3629
|
+
*/
|
|
3630
|
+
'authorize'?: Array<EntityGate>;
|
|
3631
|
+
}
|
|
3167
3632
|
/**
|
|
3168
3633
|
* One source that failed to materialize, and why. Kept beside `entries` rather than inside a manifest entry because a failed source names no table that exists: an entry carries a required `physicalTableName`, so putting a failure there would hand every consumer a table name it must know not to resolve.
|
|
3169
3634
|
*/
|
|
@@ -3201,6 +3666,27 @@ export interface SourceFailure {
|
|
|
3201
3666
|
*/
|
|
3202
3667
|
'refused'?: boolean;
|
|
3203
3668
|
}
|
|
3669
|
+
export interface SourceSchema {
|
|
3670
|
+
'name': string;
|
|
3671
|
+
/**
|
|
3672
|
+
* The annotations declared on the source itself.
|
|
3673
|
+
*/
|
|
3674
|
+
'annotations': Array<string>;
|
|
3675
|
+
'fields': Array<SourceSchemaField>;
|
|
3676
|
+
}
|
|
3677
|
+
export interface SourceSchemaField {
|
|
3678
|
+
/**
|
|
3679
|
+
* One of `dimension`, `column`, `measure`, `view` or `join`; a later release may add one.
|
|
3680
|
+
*/
|
|
3681
|
+
'kind': string;
|
|
3682
|
+
'name': string;
|
|
3683
|
+
'type'?: string;
|
|
3684
|
+
'annotations'?: Array<string>;
|
|
3685
|
+
/**
|
|
3686
|
+
* A join\'s or a view\'s own fields.
|
|
3687
|
+
*/
|
|
3688
|
+
'fields'?: Array<SourceSchemaField>;
|
|
3689
|
+
}
|
|
3204
3690
|
export interface SqlSource {
|
|
3205
3691
|
/**
|
|
3206
3692
|
* Resource path to the sql source.
|
|
@@ -3312,6 +3798,29 @@ export interface StorageFileCleanupRequest {
|
|
|
3312
3798
|
*/
|
|
3313
3799
|
'filesOlderThan': string;
|
|
3314
3800
|
}
|
|
3801
|
+
export interface StorageServeBinding {
|
|
3802
|
+
/**
|
|
3803
|
+
* The materialized source served from storage. **It may name no source in any model file**, exactly as `ManifestEntry.sourceName` may: a pre-aggregation rollup is a persist source the publisher synthesized, so its name is generated. Check `origin` rather than resolving this against a package\'s models and reading a miss as corruption.
|
|
3804
|
+
*/
|
|
3805
|
+
'sourceName'?: string;
|
|
3806
|
+
/**
|
|
3807
|
+
* What the bound source IS: `persist` for one a modeler annotated, which is the meaning of an absent value, and `preaggregate` for a rollup the publisher synthesized from `#@ preaggregate` measures. Mirrors `ManifestEntry.origin`.
|
|
3808
|
+
*/
|
|
3809
|
+
'origin'?: StorageServeBindingOriginEnum;
|
|
3810
|
+
/**
|
|
3811
|
+
* The storage destination the physical table lives in (an entry in `storageDestinations`, not a connection).
|
|
3812
|
+
*/
|
|
3813
|
+
'storageDestinationName'?: string;
|
|
3814
|
+
/**
|
|
3815
|
+
* The physical table the source is served from.
|
|
3816
|
+
*/
|
|
3817
|
+
'tablePath'?: string;
|
|
3818
|
+
}
|
|
3819
|
+
export declare const StorageServeBindingOriginEnum: {
|
|
3820
|
+
readonly Persist: "persist";
|
|
3821
|
+
readonly Preaggregate: "preaggregate";
|
|
3822
|
+
};
|
|
3823
|
+
export type StorageServeBindingOriginEnum = typeof StorageServeBindingOriginEnum[keyof typeof StorageServeBindingOriginEnum];
|
|
3315
3824
|
/**
|
|
3316
3825
|
* A table in a storage destination
|
|
3317
3826
|
*/
|
|
@@ -5694,6 +6203,57 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5694
6203
|
* @throws {RequiredError}
|
|
5695
6204
|
*/
|
|
5696
6205
|
getPackage: (environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6206
|
+
/**
|
|
6207
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
6208
|
+
* @summary Read the persist build plan of a loaded package
|
|
6209
|
+
* @param {string} environmentName Name of the environment
|
|
6210
|
+
* @param {string} packageName Name of the package
|
|
6211
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6212
|
+
* @param {*} [options] Override http request option.
|
|
6213
|
+
* @throws {RequiredError}
|
|
6214
|
+
*/
|
|
6215
|
+
getPackageBuildPlan: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6216
|
+
/**
|
|
6217
|
+
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
6218
|
+
* @summary Read a package\'s classification summary
|
|
6219
|
+
* @param {string} environmentName Name of the environment
|
|
6220
|
+
* @param {string} packageName Name of the package
|
|
6221
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6222
|
+
* @param {*} [options] Override http request option.
|
|
6223
|
+
* @throws {RequiredError}
|
|
6224
|
+
*/
|
|
6225
|
+
getPackageClassification: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6226
|
+
/**
|
|
6227
|
+
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
6228
|
+
* @summary Read the state of a package\'s semantic discovery index
|
|
6229
|
+
* @param {string} environmentName Name of the environment
|
|
6230
|
+
* @param {string} packageName Name of the package
|
|
6231
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6232
|
+
* @param {*} [options] Override http request option.
|
|
6233
|
+
* @throws {RequiredError}
|
|
6234
|
+
*/
|
|
6235
|
+
getPackageEmbeddingIndex: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6236
|
+
/**
|
|
6237
|
+
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
6238
|
+
* @summary Read what every model of a loaded package declares, for an indexer
|
|
6239
|
+
* @param {string} environmentName Name of the environment
|
|
6240
|
+
* @param {string} packageName Name of the package
|
|
6241
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6242
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
6243
|
+
* @param {*} [options] Override http request option.
|
|
6244
|
+
* @throws {RequiredError}
|
|
6245
|
+
*/
|
|
6246
|
+
getPackageEntities: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6247
|
+
/**
|
|
6248
|
+
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
6249
|
+
* @summary Read how this server holds a package right now
|
|
6250
|
+
* @param {string} environmentName Name of the environment
|
|
6251
|
+
* @param {string} packageName Name of the package
|
|
6252
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6253
|
+
* @param {*} [options] Override http request option.
|
|
6254
|
+
* @throws {RequiredError}
|
|
6255
|
+
*/
|
|
6256
|
+
getPackageStatus: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5697
6257
|
/**
|
|
5698
6258
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
5699
6259
|
* @summary List environment packages
|
|
@@ -5747,6 +6307,57 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
5747
6307
|
* @throws {RequiredError}
|
|
5748
6308
|
*/
|
|
5749
6309
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
6310
|
+
/**
|
|
6311
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
6312
|
+
* @summary Read the persist build plan of a loaded package
|
|
6313
|
+
* @param {string} environmentName Name of the environment
|
|
6314
|
+
* @param {string} packageName Name of the package
|
|
6315
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6316
|
+
* @param {*} [options] Override http request option.
|
|
6317
|
+
* @throws {RequiredError}
|
|
6318
|
+
*/
|
|
6319
|
+
getPackageBuildPlan(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildPlan>>;
|
|
6320
|
+
/**
|
|
6321
|
+
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
6322
|
+
* @summary Read a package\'s classification summary
|
|
6323
|
+
* @param {string} environmentName Name of the environment
|
|
6324
|
+
* @param {string} packageName Name of the package
|
|
6325
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6326
|
+
* @param {*} [options] Override http request option.
|
|
6327
|
+
* @throws {RequiredError}
|
|
6328
|
+
*/
|
|
6329
|
+
getPackageClassification(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClassificationSummary>>;
|
|
6330
|
+
/**
|
|
6331
|
+
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
6332
|
+
* @summary Read the state of a package\'s semantic discovery index
|
|
6333
|
+
* @param {string} environmentName Name of the environment
|
|
6334
|
+
* @param {string} packageName Name of the package
|
|
6335
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6336
|
+
* @param {*} [options] Override http request option.
|
|
6337
|
+
* @throws {RequiredError}
|
|
6338
|
+
*/
|
|
6339
|
+
getPackageEmbeddingIndex(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageEmbeddingIndex>>;
|
|
6340
|
+
/**
|
|
6341
|
+
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
6342
|
+
* @summary Read what every model of a loaded package declares, for an indexer
|
|
6343
|
+
* @param {string} environmentName Name of the environment
|
|
6344
|
+
* @param {string} packageName Name of the package
|
|
6345
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6346
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
6347
|
+
* @param {*} [options] Override http request option.
|
|
6348
|
+
* @throws {RequiredError}
|
|
6349
|
+
*/
|
|
6350
|
+
getPackageEntities(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ModelEntities>>>;
|
|
6351
|
+
/**
|
|
6352
|
+
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
6353
|
+
* @summary Read how this server holds a package right now
|
|
6354
|
+
* @param {string} environmentName Name of the environment
|
|
6355
|
+
* @param {string} packageName Name of the package
|
|
6356
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6357
|
+
* @param {*} [options] Override http request option.
|
|
6358
|
+
* @throws {RequiredError}
|
|
6359
|
+
*/
|
|
6360
|
+
getPackageStatus(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageServingState>>;
|
|
5750
6361
|
/**
|
|
5751
6362
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
5752
6363
|
* @summary List environment packages
|
|
@@ -5800,6 +6411,57 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
5800
6411
|
* @throws {RequiredError}
|
|
5801
6412
|
*/
|
|
5802
6413
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
6414
|
+
/**
|
|
6415
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
6416
|
+
* @summary Read the persist build plan of a loaded package
|
|
6417
|
+
* @param {string} environmentName Name of the environment
|
|
6418
|
+
* @param {string} packageName Name of the package
|
|
6419
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6420
|
+
* @param {*} [options] Override http request option.
|
|
6421
|
+
* @throws {RequiredError}
|
|
6422
|
+
*/
|
|
6423
|
+
getPackageBuildPlan(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildPlan>;
|
|
6424
|
+
/**
|
|
6425
|
+
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
6426
|
+
* @summary Read a package\'s classification summary
|
|
6427
|
+
* @param {string} environmentName Name of the environment
|
|
6428
|
+
* @param {string} packageName Name of the package
|
|
6429
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6430
|
+
* @param {*} [options] Override http request option.
|
|
6431
|
+
* @throws {RequiredError}
|
|
6432
|
+
*/
|
|
6433
|
+
getPackageClassification(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ClassificationSummary>;
|
|
6434
|
+
/**
|
|
6435
|
+
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
6436
|
+
* @summary Read the state of a package\'s semantic discovery index
|
|
6437
|
+
* @param {string} environmentName Name of the environment
|
|
6438
|
+
* @param {string} packageName Name of the package
|
|
6439
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6440
|
+
* @param {*} [options] Override http request option.
|
|
6441
|
+
* @throws {RequiredError}
|
|
6442
|
+
*/
|
|
6443
|
+
getPackageEmbeddingIndex(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PackageEmbeddingIndex>;
|
|
6444
|
+
/**
|
|
6445
|
+
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
6446
|
+
* @summary Read what every model of a loaded package declares, for an indexer
|
|
6447
|
+
* @param {string} environmentName Name of the environment
|
|
6448
|
+
* @param {string} packageName Name of the package
|
|
6449
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6450
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
6451
|
+
* @param {*} [options] Override http request option.
|
|
6452
|
+
* @throws {RequiredError}
|
|
6453
|
+
*/
|
|
6454
|
+
getPackageEntities(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<ModelEntities>>;
|
|
6455
|
+
/**
|
|
6456
|
+
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
6457
|
+
* @summary Read how this server holds a package right now
|
|
6458
|
+
* @param {string} environmentName Name of the environment
|
|
6459
|
+
* @param {string} packageName Name of the package
|
|
6460
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6461
|
+
* @param {*} [options] Override http request option.
|
|
6462
|
+
* @throws {RequiredError}
|
|
6463
|
+
*/
|
|
6464
|
+
getPackageStatus(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PackageServingState>;
|
|
5803
6465
|
/**
|
|
5804
6466
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
5805
6467
|
* @summary List environment packages
|
|
@@ -5853,6 +6515,57 @@ export declare class PackagesApi extends BaseAPI {
|
|
|
5853
6515
|
* @throws {RequiredError}
|
|
5854
6516
|
*/
|
|
5855
6517
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
|
|
6518
|
+
/**
|
|
6519
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
6520
|
+
* @summary Read the persist build plan of a loaded package
|
|
6521
|
+
* @param {string} environmentName Name of the environment
|
|
6522
|
+
* @param {string} packageName Name of the package
|
|
6523
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6524
|
+
* @param {*} [options] Override http request option.
|
|
6525
|
+
* @throws {RequiredError}
|
|
6526
|
+
*/
|
|
6527
|
+
getPackageBuildPlan(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<BuildPlan, any, {}, any>>;
|
|
6528
|
+
/**
|
|
6529
|
+
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
6530
|
+
* @summary Read a package\'s classification summary
|
|
6531
|
+
* @param {string} environmentName Name of the environment
|
|
6532
|
+
* @param {string} packageName Name of the package
|
|
6533
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6534
|
+
* @param {*} [options] Override http request option.
|
|
6535
|
+
* @throws {RequiredError}
|
|
6536
|
+
*/
|
|
6537
|
+
getPackageClassification(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ClassificationSummary, any, {}, any>>;
|
|
6538
|
+
/**
|
|
6539
|
+
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
6540
|
+
* @summary Read the state of a package\'s semantic discovery index
|
|
6541
|
+
* @param {string} environmentName Name of the environment
|
|
6542
|
+
* @param {string} packageName Name of the package
|
|
6543
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6544
|
+
* @param {*} [options] Override http request option.
|
|
6545
|
+
* @throws {RequiredError}
|
|
6546
|
+
*/
|
|
6547
|
+
getPackageEmbeddingIndex(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageEmbeddingIndex, any, {}, any>>;
|
|
6548
|
+
/**
|
|
6549
|
+
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
6550
|
+
* @summary Read what every model of a loaded package declares, for an indexer
|
|
6551
|
+
* @param {string} environmentName Name of the environment
|
|
6552
|
+
* @param {string} packageName Name of the package
|
|
6553
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6554
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
6555
|
+
* @param {*} [options] Override http request option.
|
|
6556
|
+
* @throws {RequiredError}
|
|
6557
|
+
*/
|
|
6558
|
+
getPackageEntities(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ModelEntities[], any, {}, any>>;
|
|
6559
|
+
/**
|
|
6560
|
+
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
6561
|
+
* @summary Read how this server holds a package right now
|
|
6562
|
+
* @param {string} environmentName Name of the environment
|
|
6563
|
+
* @param {string} packageName Name of the package
|
|
6564
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6565
|
+
* @param {*} [options] Override http request option.
|
|
6566
|
+
* @throws {RequiredError}
|
|
6567
|
+
*/
|
|
6568
|
+
getPackageStatus(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageServingState, any, {}, any>>;
|
|
5856
6569
|
/**
|
|
5857
6570
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
5858
6571
|
* @summary List environment packages
|