@malloy-publisher/server 0.12.0 → 0.12.1
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/dist/app/api-doc.yaml +1128 -310
- package/dist/app/assets/{EnvironmentPage-xh4aL2P9.js → EnvironmentPage-D0VBeb5V.js} +1 -1
- package/dist/app/assets/{HomePage-B1w1b7e1.js → HomePage-CLEMChAH.js} +1 -1
- package/dist/app/assets/{MainPage-BrYzrVlB.js → MainPage-0vOhDrkX.js} +1 -1
- package/dist/app/assets/{ModelPage-DC5HfNar.js → ModelPage-DUzNdrT3.js} +2 -2
- package/dist/app/assets/{PackagePage-DRKFqQHw.js → PackagePage-40JPQIiH.js} +1 -1
- package/dist/app/assets/{PackageSplatRoute-CU3-BYcC.js → PackageSplatRoute-DtdzKVDt.js} +2 -2
- package/dist/app/assets/{RenderedResult-D8bCgThO.es-bV5QVotj.js → RenderedResult-AyM-RQaA.es-loABPOhf.js} +3 -3
- package/dist/app/assets/{RouteError-Dmo0qwGV.js → RouteError-XJqJwHPb.js} +1 -1
- package/dist/app/assets/{ThemeEditorPage-ByJldD0t.js → ThemeEditorPage-8w42fXGN.js} +1 -1
- package/dist/app/assets/{ToggleButtonGroup-Dxax2bOe.js → ToggleButtonGroup-SgUIGblf.js} +1 -1
- package/dist/app/assets/{documentRoutes-DFdmdaBX.js → documentRoutes-CtOrNSfQ.js} +1 -1
- package/dist/app/assets/{editPageMounted-CjmdfOM1.js → editPageMounted-DNUrCc4z.js} +2 -2
- package/dist/app/assets/index-B49NC27i.js +483 -0
- package/dist/app/assets/{index-9_OOEQph.js → index-DQEP4oWm.js} +1 -1
- package/dist/app/assets/{index-BvJ7NTSs.js → index-DfYBaQ7M.js} +1 -1
- package/dist/app/assets/{index-BsumQDtR.js → index-MVNgiF-4.js} +1 -1
- package/dist/app/assets/{index.es-CbR1CwU4.js → index.es-B7-CYE4L.js} +1 -1
- package/dist/app/assets/usePackageLinkNavigate-DykOPLjz.js +1 -0
- package/dist/app/assets/{usePackageRoute-DzmKqWKq.js → usePackageRoute-DyDTsrm1.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/instrumentation.mjs +1 -1
- package/dist/package_load_worker.mjs +18 -10
- package/dist/server.mjs +3572 -944
- package/package.json +1 -1
- package/dist/app/assets/index-BLi0H5mL.js +0 -483
- package/dist/app/assets/usePackageLinkNavigate-SMJdqHGs.js +0 -1
package/dist/app/api-doc.yaml
CHANGED
|
@@ -2706,6 +2706,265 @@ paths:
|
|
|
2706
2706
|
"503":
|
|
2707
2707
|
$ref: "#/components/responses/ServiceUnavailable"
|
|
2708
2708
|
|
|
2709
|
+
/environments/{environmentName}/packages/{packageName}/status:
|
|
2710
|
+
get:
|
|
2711
|
+
tags:
|
|
2712
|
+
- packages
|
|
2713
|
+
operationId: get-package-status
|
|
2714
|
+
summary: Read how this server holds a package right now
|
|
2715
|
+
description: |
|
|
2716
|
+
The package's serving state on this server: whether a compiled copy
|
|
2717
|
+
serves and whether a load is in progress, which load it serves
|
|
2718
|
+
(`servedRevision`) and the content of that load (`sourceContentSha`),
|
|
2719
|
+
and which materialized tables are bound (`manifestBindingStatus`,
|
|
2720
|
+
`manifestEntryCount`, `boundManifestUri`, `storageServeBindings`).
|
|
2721
|
+
For a versioned package, the named version's, or its `latest`'s.
|
|
2722
|
+
|
|
2723
|
+
Reading it never loads the package. A package this server knows but
|
|
2724
|
+
does not hold in memory reports `status.serving` false and none of
|
|
2725
|
+
the load fields. `GET /status` carries the part of this an
|
|
2726
|
+
orchestrator reconciles from, for every package at once.
|
|
2727
|
+
parameters:
|
|
2728
|
+
- name: environmentName
|
|
2729
|
+
in: path
|
|
2730
|
+
description: Name of the environment
|
|
2731
|
+
required: true
|
|
2732
|
+
schema:
|
|
2733
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2734
|
+
- name: packageName
|
|
2735
|
+
in: path
|
|
2736
|
+
description: Name of the package
|
|
2737
|
+
required: true
|
|
2738
|
+
schema:
|
|
2739
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2740
|
+
- $ref: "#/components/parameters/versionId"
|
|
2741
|
+
responses:
|
|
2742
|
+
"200":
|
|
2743
|
+
description: The package's serving state
|
|
2744
|
+
content:
|
|
2745
|
+
application/json:
|
|
2746
|
+
schema:
|
|
2747
|
+
$ref: "#/components/schemas/PackageServingState"
|
|
2748
|
+
"400":
|
|
2749
|
+
$ref: "#/components/responses/BadRequest"
|
|
2750
|
+
"401":
|
|
2751
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2752
|
+
"404":
|
|
2753
|
+
$ref: "#/components/responses/NotFound"
|
|
2754
|
+
"500":
|
|
2755
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2756
|
+
"503":
|
|
2757
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2758
|
+
|
|
2759
|
+
/environments/{environmentName}/packages/{packageName}/entities:
|
|
2760
|
+
get:
|
|
2761
|
+
tags:
|
|
2762
|
+
- packages
|
|
2763
|
+
operationId: get-package-entities
|
|
2764
|
+
summary: Read what every model of a loaded package declares, for an indexer
|
|
2765
|
+
description: |
|
|
2766
|
+
What every `.malloy` model of the package declares, in the form an
|
|
2767
|
+
indexer reads: each source's public fields (kind, type, declaring code,
|
|
2768
|
+
annotations, `#(doc)`, table, join target, and an `#(index)`
|
|
2769
|
+
dimension's fingerprint), the facts the model states about each
|
|
2770
|
+
source (doc, visibility, queryability, filters, access gates), the
|
|
2771
|
+
model's givens and each source's schema. One entry per `.malloy`
|
|
2772
|
+
file, sorted by `modelPath`.
|
|
2773
|
+
|
|
2774
|
+
Shown under the rules of `GET …/models/{path}`: only the files on the
|
|
2775
|
+
package's discovery surface, and no source locked with
|
|
2776
|
+
`#(authorize) false`. With `includeHiddenFilesAndSources`, every
|
|
2777
|
+
`.malloy` file and every source, for a host that indexes them; as with
|
|
2778
|
+
the model routes, a gateway admits that flag only for such a host.
|
|
2779
|
+
|
|
2780
|
+
Computed once, when the package loads, from the models as they
|
|
2781
|
+
compiled before any materialization manifest is bound, so a later
|
|
2782
|
+
bind does not change it. A model that failed has an entry with `error`
|
|
2783
|
+
and `errorKind` and nothing else. An `#(index)` or required `#(filter)`
|
|
2784
|
+
an index cannot honor is left out (no fingerprint, no filter) and
|
|
2785
|
+
reported as a package warning whose `code` starts with `entities-`.
|
|
2786
|
+
parameters:
|
|
2787
|
+
- name: environmentName
|
|
2788
|
+
in: path
|
|
2789
|
+
description: Name of the environment
|
|
2790
|
+
required: true
|
|
2791
|
+
schema:
|
|
2792
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2793
|
+
- name: packageName
|
|
2794
|
+
in: path
|
|
2795
|
+
description: Name of the package
|
|
2796
|
+
required: true
|
|
2797
|
+
schema:
|
|
2798
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2799
|
+
- $ref: "#/components/parameters/versionId"
|
|
2800
|
+
- $ref: "#/components/parameters/includeHiddenFilesAndSources"
|
|
2801
|
+
responses:
|
|
2802
|
+
"200":
|
|
2803
|
+
description: The package's entities
|
|
2804
|
+
content:
|
|
2805
|
+
application/json:
|
|
2806
|
+
schema:
|
|
2807
|
+
type: array
|
|
2808
|
+
description: One entry per `.malloy` file, sorted by `modelPath`.
|
|
2809
|
+
items:
|
|
2810
|
+
$ref: "#/components/schemas/ModelEntities"
|
|
2811
|
+
"400":
|
|
2812
|
+
$ref: "#/components/responses/BadRequest"
|
|
2813
|
+
"401":
|
|
2814
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2815
|
+
"404":
|
|
2816
|
+
$ref: "#/components/responses/NotFound"
|
|
2817
|
+
"410":
|
|
2818
|
+
$ref: "#/components/responses/Gone"
|
|
2819
|
+
"500":
|
|
2820
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2821
|
+
"503":
|
|
2822
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2823
|
+
|
|
2824
|
+
/environments/{environmentName}/packages/{packageName}/build-plan:
|
|
2825
|
+
get:
|
|
2826
|
+
tags:
|
|
2827
|
+
- packages
|
|
2828
|
+
operationId: get-package-build-plan
|
|
2829
|
+
summary: Read the persist build plan of a loaded package
|
|
2830
|
+
description: |
|
|
2831
|
+
The persist build plan of the load: per persist source its
|
|
2832
|
+
`sourceEntityId`, output columns and build SQL, the dependency graphs,
|
|
2833
|
+
and the sources refused a build. A caller assigns physical names and
|
|
2834
|
+
identity per source from it and issues one build call (see
|
|
2835
|
+
`CreateMaterializationRequest.buildInstructions`). A package that
|
|
2836
|
+
declares no persist source has an empty plan. When the plan could not
|
|
2837
|
+
be derived at load, the read answers 409 with `reason`
|
|
2838
|
+
BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and
|
|
2839
|
+
retrying the read does not.
|
|
2840
|
+
parameters:
|
|
2841
|
+
- name: environmentName
|
|
2842
|
+
in: path
|
|
2843
|
+
description: Name of the environment
|
|
2844
|
+
required: true
|
|
2845
|
+
schema:
|
|
2846
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2847
|
+
- name: packageName
|
|
2848
|
+
in: path
|
|
2849
|
+
description: Name of the package
|
|
2850
|
+
required: true
|
|
2851
|
+
schema:
|
|
2852
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2853
|
+
- $ref: "#/components/parameters/versionId"
|
|
2854
|
+
responses:
|
|
2855
|
+
"200":
|
|
2856
|
+
description: The package's build plan
|
|
2857
|
+
content:
|
|
2858
|
+
application/json:
|
|
2859
|
+
schema:
|
|
2860
|
+
$ref: "#/components/schemas/BuildPlan"
|
|
2861
|
+
"400":
|
|
2862
|
+
$ref: "#/components/responses/BadRequest"
|
|
2863
|
+
"401":
|
|
2864
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2865
|
+
"404":
|
|
2866
|
+
$ref: "#/components/responses/NotFound"
|
|
2867
|
+
"410":
|
|
2868
|
+
$ref: "#/components/responses/Gone"
|
|
2869
|
+
"500":
|
|
2870
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2871
|
+
"409":
|
|
2872
|
+
$ref: "#/components/responses/Conflict"
|
|
2873
|
+
"503":
|
|
2874
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2875
|
+
|
|
2876
|
+
/environments/{environmentName}/packages/{packageName}/embedding-index:
|
|
2877
|
+
get:
|
|
2878
|
+
tags:
|
|
2879
|
+
- packages
|
|
2880
|
+
operationId: get-package-embedding-index
|
|
2881
|
+
summary: Read the state of a package's semantic discovery index
|
|
2882
|
+
description: |
|
|
2883
|
+
The state of the package's semantic discovery index, which is what
|
|
2884
|
+
`get_context` ranks against when an embedding provider is configured.
|
|
2885
|
+
`status: lexical` when the server has no provider, because there is no
|
|
2886
|
+
index to describe. Poll it after a load or reload until `status` is
|
|
2887
|
+
terminal (`ready`, `lexical` or `error`).
|
|
2888
|
+
parameters:
|
|
2889
|
+
- name: environmentName
|
|
2890
|
+
in: path
|
|
2891
|
+
description: Name of the environment
|
|
2892
|
+
required: true
|
|
2893
|
+
schema:
|
|
2894
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2895
|
+
- name: packageName
|
|
2896
|
+
in: path
|
|
2897
|
+
description: Name of the package
|
|
2898
|
+
required: true
|
|
2899
|
+
schema:
|
|
2900
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2901
|
+
- $ref: "#/components/parameters/versionId"
|
|
2902
|
+
responses:
|
|
2903
|
+
"200":
|
|
2904
|
+
description: The package's semantic index state
|
|
2905
|
+
content:
|
|
2906
|
+
application/json:
|
|
2907
|
+
schema:
|
|
2908
|
+
$ref: "#/components/schemas/PackageEmbeddingIndex"
|
|
2909
|
+
"400":
|
|
2910
|
+
$ref: "#/components/responses/BadRequest"
|
|
2911
|
+
"401":
|
|
2912
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2913
|
+
"404":
|
|
2914
|
+
$ref: "#/components/responses/NotFound"
|
|
2915
|
+
"410":
|
|
2916
|
+
$ref: "#/components/responses/Gone"
|
|
2917
|
+
"500":
|
|
2918
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2919
|
+
"503":
|
|
2920
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2921
|
+
|
|
2922
|
+
/environments/{environmentName}/packages/{packageName}/classification:
|
|
2923
|
+
get:
|
|
2924
|
+
tags:
|
|
2925
|
+
- packages
|
|
2926
|
+
operationId: get-package-classification
|
|
2927
|
+
summary: Read a package's classification summary
|
|
2928
|
+
description: |
|
|
2929
|
+
For each published entry point of the package, the classes its
|
|
2930
|
+
`#(carries)` declares and how many of its fields carry each class,
|
|
2931
|
+
inherited classes included, with the count left unclassified. It
|
|
2932
|
+
covers only what discovery shows. `sources` is empty when nothing
|
|
2933
|
+
published is classified.
|
|
2934
|
+
parameters:
|
|
2935
|
+
- name: environmentName
|
|
2936
|
+
in: path
|
|
2937
|
+
description: Name of the environment
|
|
2938
|
+
required: true
|
|
2939
|
+
schema:
|
|
2940
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2941
|
+
- name: packageName
|
|
2942
|
+
in: path
|
|
2943
|
+
description: Name of the package
|
|
2944
|
+
required: true
|
|
2945
|
+
schema:
|
|
2946
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2947
|
+
- $ref: "#/components/parameters/versionId"
|
|
2948
|
+
responses:
|
|
2949
|
+
"200":
|
|
2950
|
+
description: The package's classification summary
|
|
2951
|
+
content:
|
|
2952
|
+
application/json:
|
|
2953
|
+
schema:
|
|
2954
|
+
$ref: "#/components/schemas/ClassificationSummary"
|
|
2955
|
+
"400":
|
|
2956
|
+
$ref: "#/components/responses/BadRequest"
|
|
2957
|
+
"401":
|
|
2958
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2959
|
+
"404":
|
|
2960
|
+
$ref: "#/components/responses/NotFound"
|
|
2961
|
+
"410":
|
|
2962
|
+
$ref: "#/components/responses/Gone"
|
|
2963
|
+
"500":
|
|
2964
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2965
|
+
"503":
|
|
2966
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2967
|
+
|
|
2709
2968
|
/environments/{environmentName}/packages/{packageName}/agents:
|
|
2710
2969
|
get:
|
|
2711
2970
|
tags:
|
|
@@ -3947,6 +4206,9 @@ components:
|
|
|
3947
4206
|
* VERSION_BUILDING: a materialization of the version is running, and
|
|
3948
4207
|
archiving or deleting it would drop the tables it is writing. Wait for
|
|
3949
4208
|
it, or stop it.
|
|
4209
|
+
* BUILD_PLAN_UNAVAILABLE: the package's build plan could not be
|
|
4210
|
+
derived when it loaded. Reload the package; retrying the read does
|
|
4211
|
+
not help.
|
|
3950
4212
|
content:
|
|
3951
4213
|
application/json:
|
|
3952
4214
|
schema:
|
|
@@ -4313,9 +4575,11 @@ components:
|
|
|
4313
4575
|
archived version, or one not loaded since the server started) carries only
|
|
4314
4576
|
its name and version. An orchestrator reconciles what a server holds
|
|
4315
4577
|
from this list, so it names every version rather than only `latest`
|
|
4316
|
-
or only what is in memory; `resource` keeps its shape.
|
|
4578
|
+
or only what is in memory; `resource` keeps its shape. Each entry
|
|
4579
|
+
carries what a reconcile reads (`PackageStatusEntry`); the rest of a
|
|
4580
|
+
package's serving state is at `GET …/packages/{packageName}/status`.
|
|
4317
4581
|
items:
|
|
4318
|
-
$ref: "#/components/schemas/
|
|
4582
|
+
$ref: "#/components/schemas/ServerStatusEnvironment"
|
|
4319
4583
|
initialized:
|
|
4320
4584
|
type: boolean
|
|
4321
4585
|
description: Whether the server is fully initialized and ready to serve requests
|
|
@@ -4673,10 +4937,88 @@ components:
|
|
|
4673
4937
|
populated by the server or applied by the client; viewers currently
|
|
4674
4938
|
use the instance-level theme only.
|
|
4675
4939
|
|
|
4676
|
-
|
|
4940
|
+
PackageStatus:
|
|
4677
4941
|
type: object
|
|
4678
|
-
description:
|
|
4679
|
-
|
|
4942
|
+
description: >-
|
|
4943
|
+
Server-computed, read-only: how this server holds the package right
|
|
4944
|
+
now. `serving` is whether a compiled copy answers queries here;
|
|
4945
|
+
`loading` is whether a load, reinstall or recompile of the package
|
|
4946
|
+
is in progress here. The two are independent. A first load reports
|
|
4947
|
+
`loading` without `serving`. A reload of a package that is already
|
|
4948
|
+
served reports both, because the previous copy keeps answering until
|
|
4949
|
+
the new one is swapped in. Steady state reports `serving` alone.
|
|
4950
|
+
`loadingSince` is when the in-progress load began, so a caller can
|
|
4951
|
+
bound one that never completes. Which tables a serving copy answers
|
|
4952
|
+
from is a separate question, answered by `manifestBindingStatus`.
|
|
4953
|
+
A publish of a package version is a load from its download until
|
|
4954
|
+
it settles, and while it runs every entry of that package reports
|
|
4955
|
+
`loading`. With `includeLoading=true`, once its tree has named the
|
|
4956
|
+
version, a version the package does not hold yet is listed as its
|
|
4957
|
+
own entry, with its `versionId`, `loaded: false` and `loading`,
|
|
4958
|
+
unless an unversioned copy of the package still serves.
|
|
4959
|
+
|
|
4960
|
+
A package that is loading for the first time, so is not yet
|
|
4961
|
+
serving, is listed only where a caller asks for it:
|
|
4962
|
+
`GET /status?includeLoading=true` includes it as its name and
|
|
4963
|
+
`status`. Every other listing, the environment resources included,
|
|
4964
|
+
shows packages that can be queried.
|
|
4965
|
+
required: [serving, loading]
|
|
4966
|
+
properties:
|
|
4967
|
+
serving:
|
|
4968
|
+
type: boolean
|
|
4969
|
+
description: A compiled copy of the package answers queries here now.
|
|
4970
|
+
loading:
|
|
4971
|
+
type: boolean
|
|
4972
|
+
description: >-
|
|
4973
|
+
A load, reinstall or recompile of the package is in progress
|
|
4974
|
+
here. While true, `manifestBindingStatus` describes the copy
|
|
4975
|
+
being replaced, not the one being built.
|
|
4976
|
+
loadingSince:
|
|
4977
|
+
type: string
|
|
4978
|
+
format: date-time
|
|
4979
|
+
description: When the in-progress load began. Present only while `loading` is true.
|
|
4980
|
+
|
|
4981
|
+
StorageServeBinding:
|
|
4982
|
+
type: object
|
|
4983
|
+
properties:
|
|
4984
|
+
sourceName:
|
|
4985
|
+
type: string
|
|
4986
|
+
description: >-
|
|
4987
|
+
The materialized source served from storage.
|
|
4988
|
+
|
|
4989
|
+
|
|
4990
|
+
**It may name no source in any model file**, exactly as
|
|
4991
|
+
`ManifestEntry.sourceName` may: a pre-aggregation rollup is a
|
|
4992
|
+
persist source the publisher synthesized, so its name is
|
|
4993
|
+
generated. Check `origin` rather than resolving this against a
|
|
4994
|
+
package's models and reading a miss as corruption.
|
|
4995
|
+
origin:
|
|
4996
|
+
type: string
|
|
4997
|
+
enum: [persist, preaggregate]
|
|
4998
|
+
default: persist
|
|
4999
|
+
description: >-
|
|
5000
|
+
What the bound source IS: `persist` for one a modeler annotated,
|
|
5001
|
+
which is the meaning of an absent value, and `preaggregate` for
|
|
5002
|
+
a rollup the publisher synthesized from `#@ preaggregate`
|
|
5003
|
+
measures. Mirrors `ManifestEntry.origin`.
|
|
5004
|
+
storageDestinationName:
|
|
5005
|
+
type: string
|
|
5006
|
+
description: >-
|
|
5007
|
+
The storage destination the physical table lives in (an entry
|
|
5008
|
+
in `storageDestinations`, not a connection).
|
|
5009
|
+
tablePath:
|
|
5010
|
+
type: string
|
|
5011
|
+
description: The physical table the source is served from.
|
|
5012
|
+
|
|
5013
|
+
PackageServingState:
|
|
5014
|
+
type: object
|
|
5015
|
+
description: |
|
|
5016
|
+
How this server holds one package, or one version of it, right now:
|
|
5017
|
+
whether it serves and is loading, which load it serves, and which
|
|
5018
|
+
materialized tables are bound to it. `GET …/packages/{packageName}/status`.
|
|
5019
|
+
Reading it never loads the package: a package that is not in memory
|
|
5020
|
+
reports `status.serving` false and none of the load fields.
|
|
5021
|
+
required: [name, status]
|
|
4680
5022
|
properties:
|
|
4681
5023
|
resource:
|
|
4682
5024
|
type: string
|
|
@@ -4688,60 +5030,351 @@ components:
|
|
|
4688
5030
|
oneOf:
|
|
4689
5031
|
- $ref: "#/components/schemas/VersionIdPattern"
|
|
4690
5032
|
- type: "null"
|
|
4691
|
-
readOnly: true
|
|
4692
|
-
description: >-
|
|
4693
|
-
The published version this response describes. Absent for a package
|
|
4694
|
-
that has no published versions. A request that names no `versionId`
|
|
4695
|
-
is answered with the package's `latest` version, so this is how a
|
|
4696
|
-
caller learns which version it got. In a package listing it is null
|
|
4697
|
-
for a package none of whose versions is `latest` yet (under
|
|
4698
|
-
`versionPromotion: explicit`, before `PUT .../latest`). Set from the
|
|
4699
|
-
version's publisher.json at publish; never sent by a client.
|
|
4700
|
-
latestVersion:
|
|
4701
|
-
oneOf:
|
|
4702
|
-
- $ref: "#/components/schemas/VersionIdPattern"
|
|
4703
|
-
- type: "null"
|
|
4704
|
-
readOnly: true
|
|
4705
5033
|
description: >-
|
|
4706
|
-
The
|
|
4707
|
-
|
|
4708
|
-
Equal to `versionId` unless the request named another one.
|
|
5034
|
+
The version this state describes, for a package that has versions:
|
|
5035
|
+
the one the request named, or its `latest`. Absent otherwise.
|
|
4709
5036
|
loaded:
|
|
4710
5037
|
type: boolean
|
|
4711
|
-
readOnly: true
|
|
4712
5038
|
description: >-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
`resource`, name, version, `latestVersion`, `archiveStatus` and
|
|
4718
|
-
`status`. It loads when a request next names it. A version still
|
|
4719
|
-
being published is listed only under `includeLoading`, with
|
|
4720
|
-
`loaded: false`, no `archiveStatus`, and `status.loading`.
|
|
5039
|
+
For a version: whether this server holds it in memory. A published
|
|
5040
|
+
version that is not loaded (an archived one, or one not loaded since
|
|
5041
|
+
the server started) loads when a request next names it. Absent for a
|
|
5042
|
+
package without versions, whose `status.serving` says the same.
|
|
4721
5043
|
archiveStatus:
|
|
4722
5044
|
type: string
|
|
4723
5045
|
enum: [archive, unarchive]
|
|
5046
|
+
description: For a version, whether it is archived. Absent otherwise.
|
|
5047
|
+
status:
|
|
5048
|
+
$ref: "#/components/schemas/PackageStatus"
|
|
5049
|
+
servedRevision:
|
|
5050
|
+
type: string
|
|
4724
5051
|
readOnly: true
|
|
4725
5052
|
description: >-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
5053
|
+
Server-computed, read-only: an identifier for the load that produced
|
|
5054
|
+
what this package is currently serving. Minted fresh per load, so
|
|
5055
|
+
two loads of byte-identical files carry different revisions. Use it
|
|
5056
|
+
to tell one load from another, NOT to tell whether content changed:
|
|
5057
|
+
it moves on every reload regardless. `sourceContentSha` answers that.
|
|
5058
|
+
sourceContentSha:
|
|
4732
5059
|
type: string
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
`
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
5060
|
+
readOnly: true
|
|
5061
|
+
description: >-
|
|
5062
|
+
Server-computed, read-only: SHA-256 over the package-relative path
|
|
5063
|
+
and bytes of every file the package is serving: each model file,
|
|
5064
|
+
each package skill file under `skills/`, and, when the manifest
|
|
5065
|
+
declares `agents`, the canonical form of that `agents` object plus
|
|
5066
|
+
every instructions, task and skill file those agents read.
|
|
5067
|
+
|
|
5068
|
+
This is the reload receipt. Publisher serves a COPY of a package
|
|
5069
|
+
under `publisher_data/<env>/<pkg>/` unless the environment was
|
|
5070
|
+
started with `--watch-env`, so an edit to the original source
|
|
5071
|
+
directory reaches nothing and the reload still reports success.
|
|
5072
|
+
Comparing this value across a reload is what distinguishes "the
|
|
5073
|
+
server recompiled my edit" from "the server recompiled the same
|
|
5074
|
+
bytes it already had".
|
|
5075
|
+
|
|
5076
|
+
It covers EVERY model path in the package, so an edit to an imported
|
|
5077
|
+
file moves it where a hash of one model path would not. It covers
|
|
5078
|
+
nothing outside the list above: a data file, a `public/` asset, a
|
|
5079
|
+
`version` bump or any other key in publisher.json (`retrieval`,
|
|
5080
|
+
`explores`, `queryableSources`, `scope`) all leave it unchanged,
|
|
5081
|
+
although some of those do change what is served. An unchanged value
|
|
5082
|
+
therefore proves an edit to a hashed file did not reach the served
|
|
5083
|
+
copy, and says nothing about an edit to anything else.
|
|
5084
|
+
manifestBindingStatus:
|
|
5085
|
+
type: string
|
|
5086
|
+
readOnly: true
|
|
5087
|
+
enum:
|
|
5088
|
+
- unbound
|
|
5089
|
+
- bound
|
|
5090
|
+
- live_fallback
|
|
5091
|
+
description: >-
|
|
5092
|
+
Server-computed, read-only: whether the CONFIGURED build manifest is
|
|
5093
|
+
currently bound to this package's served models. `unbound` = no
|
|
5094
|
+
manifest configured, so the package serves live. `bound` = the
|
|
5095
|
+
configured manifest was fetched and applied. `live_fallback` = a
|
|
5096
|
+
`manifestLocation` is configured but its fetch/bind failed or timed
|
|
5097
|
+
out, so the configured manifest is NOT applied. Lets the caller
|
|
5098
|
+
confirm the publisher actually bound the configured manifest rather
|
|
5099
|
+
than inferring it from logs.
|
|
5100
|
+
|
|
5101
|
+
`bound` reports that the bind ran to completion, NOT that any query
|
|
5102
|
+
routes to a materialized table: an entry whose source fails the
|
|
5103
|
+
eligibility gate is dropped, and the storage tier serves live under a
|
|
5104
|
+
`PERSIST_STORAGE_MODE` that is not `on`. Read `manifestEntryCount`
|
|
5105
|
+
and `storageServeBindings` for what actually bound.
|
|
5106
|
+
|
|
5107
|
+
An EMPTY manifest is a bind like any other: it is fetched and applied,
|
|
5108
|
+
binds nothing, and reports `bound` with `manifestEntryCount` 0 and no
|
|
5109
|
+
`storageServeBindings`, while the package serves entirely live. That
|
|
5110
|
+
combination is the signature — `bound` with neither tier populated
|
|
5111
|
+
means the manifest carried nothing, not that the bind was missed.
|
|
5112
|
+
|
|
5113
|
+
`live_fallback` does NOT imply the package is serving live. It says
|
|
5114
|
+
the configured manifest was not applied — not that nothing is. A
|
|
5115
|
+
failed FIRST bind leaves nothing bound (`boundManifestUri` null), but
|
|
5116
|
+
a failed REBIND leaves the previously bound manifest in place: its
|
|
5117
|
+
colocated substitutions stay compiled in, its storage serve bindings
|
|
5118
|
+
stay installed, and `boundManifestUri`, `manifestEntryCount` and
|
|
5119
|
+
`storageServeBindings` all continue to describe it.
|
|
5120
|
+
|
|
5121
|
+
That rebind guarantee covers a failure BEFORE either tier applies —
|
|
5122
|
+
the manifest fetch failing or timing out, which is what produces
|
|
5123
|
+
`live_fallback` in practice. A failure partway through the recompile,
|
|
5124
|
+
after the new models are installed but before the binding is
|
|
5125
|
+
recorded, is out of scope: the new substitutions would be live while
|
|
5126
|
+
these fields still described the previous manifest.
|
|
5127
|
+
|
|
5128
|
+
So the invariant to hold, whatever the status says: a non-null
|
|
5129
|
+
`boundManifestUri` is a LIVE reference to the manifest whose tables
|
|
5130
|
+
this package is currently serving from. A caller reclaiming
|
|
5131
|
+
superseded physical tables must treat it as one regardless of
|
|
5132
|
+
`manifestBindingStatus` — reading `live_fallback` as "not serving
|
|
5133
|
+
from manifest tables" and reclaiming that generation would drop
|
|
5134
|
+
tables out from under a package actively serving them.
|
|
5135
|
+
|
|
5136
|
+
Note this value is not the `live_fallback` on a query result's
|
|
5137
|
+
`servedFrom`, which reports that ONE query degraded to the warehouse.
|
|
5138
|
+
This one is about the package's binding, and as above does not imply
|
|
5139
|
+
any query ran live.
|
|
5140
|
+
manifestEntryCount:
|
|
5141
|
+
type: integer
|
|
5142
|
+
readOnly: true
|
|
5143
|
+
description: >-
|
|
5144
|
+
Server-computed, read-only: number of sourceEntityId -> physical-table
|
|
5145
|
+
entries currently bound for the COLOCATED (same-connection tableName
|
|
5146
|
+
substitution) tier only. 0 when unbound, or when the bound manifest
|
|
5147
|
+
carried no colocated entries — so a fully bound `storage=`-only
|
|
5148
|
+
manifest reports `bound` with a count of 0. Corroborate a
|
|
5149
|
+
cross-connection bind with `storageServeBindings`, not this count.
|
|
5150
|
+
|
|
5151
|
+
Describes whatever is CURRENTLY bound, not the configured manifest: on
|
|
5152
|
+
a failed rebind this keeps the previously bound manifest's count (as
|
|
5153
|
+
`boundManifestUri` keeps its URI), because those entries really are
|
|
5154
|
+
still bound.
|
|
5155
|
+
boundManifestUri:
|
|
5156
|
+
type: ["string", "null"]
|
|
5157
|
+
readOnly: true
|
|
5158
|
+
description: >-
|
|
5159
|
+
Server-computed, read-only: the manifest URI actually bound to the
|
|
5160
|
+
served models. Usually equals `manifestLocation`, but can differ
|
|
5161
|
+
after an in-memory auto-load following a materialization build (no
|
|
5162
|
+
URI), in which case it is null. Null whenever the package is unbound.
|
|
5163
|
+
|
|
5164
|
+
It also diverges after a FAILED REBIND: `manifestLocation` then names
|
|
5165
|
+
the configured manifest that did not apply, while this names the
|
|
5166
|
+
manifest still bound and still served from. So a non-null value here
|
|
5167
|
+
is a live reference regardless of `manifestBindingStatus` — see that
|
|
5168
|
+
field for the invariant a caller reclaiming superseded physical
|
|
5169
|
+
tables has to hold.
|
|
5170
|
+
storageServeBindings:
|
|
5171
|
+
type: array
|
|
5172
|
+
readOnly: true
|
|
5173
|
+
description: >-
|
|
5174
|
+
Server-computed, read-only: sources currently bound to serve from a
|
|
5175
|
+
`storage=` destination via the virtual-source transform (distinct
|
|
5176
|
+
from the same-connection manifest binding above — a storage source is
|
|
5177
|
+
read cross-connection from its destination, not substituted in the
|
|
5178
|
+
manifest). Present only when at least one source is bound. Whether a
|
|
5179
|
+
query actually routes to these tables additionally depends on
|
|
5180
|
+
`PERSIST_STORAGE_MODE=on`; under `off`/`write-only` the bindings may
|
|
5181
|
+
be present but the serve path still runs live (see `warnings`).
|
|
5182
|
+
|
|
5183
|
+
Like `boundManifestUri`, this describes whatever is CURRENTLY bound
|
|
5184
|
+
rather than the configured manifest: after a failed rebind it goes on
|
|
5185
|
+
listing the previously bound manifest's sources, which are still
|
|
5186
|
+
serving.
|
|
5187
|
+
|
|
5188
|
+
|
|
5189
|
+
"Bound" is not the same as "serving", and an entry with
|
|
5190
|
+
`origin: preaggregate` is where the two most often part: a rollup is
|
|
5191
|
+
listed here once its table exists, but it is only offered to a query
|
|
5192
|
+
through a composite re-exposing its base's name, so it does not serve
|
|
5193
|
+
when something else already claims that name. Read `origin` before
|
|
5194
|
+
treating a row as evidence that queries are being accelerated.
|
|
5195
|
+
items:
|
|
5196
|
+
$ref: "#/components/schemas/StorageServeBinding"
|
|
5197
|
+
|
|
5198
|
+
PackageStatusEntry:
|
|
5199
|
+
description: |
|
|
5200
|
+
A package's entry in `GET /status`, carrying what an orchestrator reconciles
|
|
5201
|
+
a server from: which package or version it is, whether it is serving or
|
|
5202
|
+
loading, and which manifest is bound. The rest of the package's serving
|
|
5203
|
+
state is at `GET …/packages/{packageName}/status`.
|
|
5204
|
+
|
|
5205
|
+
While `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this
|
|
5206
|
+
release, an entry is the package's whole response, so it is declared as a
|
|
5207
|
+
`Package`: every field beyond the ones below is deprecated on this entry
|
|
5208
|
+
and absent once the setting is off; a later release removes them.
|
|
5209
|
+
allOf:
|
|
5210
|
+
- $ref: "#/components/schemas/Package"
|
|
5211
|
+
- $ref: "#/components/schemas/PackageStatusEntryFields"
|
|
5212
|
+
|
|
5213
|
+
PackageStatusEntryFields:
|
|
5214
|
+
type: object
|
|
5215
|
+
description: >-
|
|
5216
|
+
What a `GET /status` entry carries with `PUBLISHER_PACKAGE_INLINE_FIELDS`
|
|
5217
|
+
off. Each field is declared `deprecated: false` so it overrides the
|
|
5218
|
+
deprecated `Package` field of the same name the `allOf` brings in.
|
|
5219
|
+
required: [name]
|
|
5220
|
+
properties:
|
|
5221
|
+
resource:
|
|
5222
|
+
type: string
|
|
5223
|
+
description: Resource path to the package
|
|
5224
|
+
name:
|
|
5225
|
+
type: string
|
|
5226
|
+
description: Package name
|
|
5227
|
+
versionId:
|
|
5228
|
+
oneOf:
|
|
5229
|
+
- $ref: "#/components/schemas/VersionIdPattern"
|
|
5230
|
+
- type: "null"
|
|
5231
|
+
description: >-
|
|
5232
|
+
The version this entry describes. A versioned package is listed once
|
|
5233
|
+
per version this server holds. Absent for a package without versions.
|
|
5234
|
+
latestVersion:
|
|
5235
|
+
oneOf:
|
|
5236
|
+
- $ref: "#/components/schemas/VersionIdPattern"
|
|
5237
|
+
- type: "null"
|
|
5238
|
+
description: >-
|
|
5239
|
+
The package's `latest` version; null while none of its versions is
|
|
5240
|
+
`latest`. Absent for a package without versions.
|
|
5241
|
+
loaded:
|
|
5242
|
+
deprecated: false
|
|
5243
|
+
type: boolean
|
|
5244
|
+
description: >-
|
|
5245
|
+
Set only on a version's entry: whether this server holds the version
|
|
5246
|
+
in memory. A published version that is not loaded (an archived one, or
|
|
5247
|
+
one not loaded since the server started) is still held, so it is still
|
|
5248
|
+
listed, with `loaded: false` and only its `resource`, name, version,
|
|
5249
|
+
`latestVersion`, `archiveStatus` and `status`. It loads when a request
|
|
5250
|
+
next names it. A version still being published is listed only under
|
|
5251
|
+
`includeLoading`, with `loaded: false`, no `archiveStatus`, and
|
|
5252
|
+
`status.loading`.
|
|
5253
|
+
archiveStatus:
|
|
5254
|
+
deprecated: false
|
|
5255
|
+
type: string
|
|
5256
|
+
enum: [archive, unarchive]
|
|
5257
|
+
description: >-
|
|
5258
|
+
Set only on a version's entry, except one still being published:
|
|
5259
|
+
whether the version is archived.
|
|
5260
|
+
status:
|
|
5261
|
+
deprecated: false
|
|
5262
|
+
$ref: "#/components/schemas/PackageStatus"
|
|
5263
|
+
manifestBindingStatus:
|
|
5264
|
+
deprecated: false
|
|
5265
|
+
type: string
|
|
5266
|
+
enum:
|
|
5267
|
+
- unbound
|
|
5268
|
+
- bound
|
|
5269
|
+
- live_fallback
|
|
5270
|
+
description: >-
|
|
5271
|
+
Whether the configured build manifest is bound to the served models.
|
|
5272
|
+
See `PackageServingState.manifestBindingStatus`, including the
|
|
5273
|
+
invariant a caller reclaiming superseded tables has to hold.
|
|
5274
|
+
boundManifestUri:
|
|
5275
|
+
deprecated: false
|
|
5276
|
+
type: ["string", "null"]
|
|
5277
|
+
description: >-
|
|
5278
|
+
The manifest URI actually bound to the served models; null when
|
|
5279
|
+
unbound. A non-null value is a live reference. See
|
|
5280
|
+
`PackageServingState.boundManifestUri`.
|
|
5281
|
+
|
|
5282
|
+
ServerStatusEnvironment:
|
|
5283
|
+
type: object
|
|
5284
|
+
description: |
|
|
5285
|
+
An environment as `GET /status` reports it: its identity and connections,
|
|
5286
|
+
and one entry per package (per version, for a versioned package).
|
|
5287
|
+
Connections are reported without their attributes.
|
|
5288
|
+
properties:
|
|
5289
|
+
resource:
|
|
5290
|
+
type: string
|
|
5291
|
+
description: Resource path to the environment
|
|
5292
|
+
name:
|
|
5293
|
+
type: string
|
|
5294
|
+
description: Environment name
|
|
5295
|
+
readme:
|
|
5296
|
+
type: string
|
|
5297
|
+
description: Environment README content
|
|
5298
|
+
location:
|
|
5299
|
+
type: string
|
|
5300
|
+
description: Environment location
|
|
5301
|
+
connections:
|
|
5302
|
+
type: array
|
|
5303
|
+
items:
|
|
5304
|
+
$ref: "#/components/schemas/Connection"
|
|
5305
|
+
storageDestinations:
|
|
5306
|
+
type: array
|
|
5307
|
+
description: The environment's storage destinations, `name` and `type` only.
|
|
5308
|
+
items:
|
|
5309
|
+
$ref: "#/components/schemas/Connection"
|
|
5310
|
+
packages:
|
|
5311
|
+
type: array
|
|
5312
|
+
items:
|
|
5313
|
+
$ref: "#/components/schemas/PackageStatusEntry"
|
|
5314
|
+
|
|
5315
|
+
Package:
|
|
5316
|
+
type: object
|
|
5317
|
+
description: Represents a Malloy package containing models, notebooks, and
|
|
5318
|
+
embedded databases
|
|
5319
|
+
properties:
|
|
5320
|
+
resource:
|
|
5321
|
+
type: string
|
|
5322
|
+
description: Resource path to the package
|
|
5323
|
+
name:
|
|
5324
|
+
type: string
|
|
5325
|
+
description: Package name
|
|
5326
|
+
versionId:
|
|
5327
|
+
oneOf:
|
|
5328
|
+
- $ref: "#/components/schemas/VersionIdPattern"
|
|
5329
|
+
- type: "null"
|
|
5330
|
+
readOnly: true
|
|
5331
|
+
description: >-
|
|
5332
|
+
The published version this response describes. Absent for a package
|
|
5333
|
+
that has no published versions. A request that names no `versionId`
|
|
5334
|
+
is answered with the package's `latest` version, so this is how a
|
|
5335
|
+
caller learns which version it got. In a package listing it is null
|
|
5336
|
+
for a package none of whose versions is `latest` yet (under
|
|
5337
|
+
`versionPromotion: explicit`, before `PUT .../latest`). Set from the
|
|
5338
|
+
version's publisher.json at publish; never sent by a client.
|
|
5339
|
+
latestVersion:
|
|
5340
|
+
oneOf:
|
|
5341
|
+
- $ref: "#/components/schemas/VersionIdPattern"
|
|
5342
|
+
- type: "null"
|
|
5343
|
+
readOnly: true
|
|
5344
|
+
description: >-
|
|
5345
|
+
The package's `latest` version. Absent for a package that has no
|
|
5346
|
+
published versions, and null while none of its versions is `latest`.
|
|
5347
|
+
Equal to `versionId` unless the request named another one.
|
|
5348
|
+
loaded:
|
|
5349
|
+
deprecated: true
|
|
5350
|
+
type: boolean
|
|
5351
|
+
readOnly: true
|
|
5352
|
+
description: >-
|
|
5353
|
+
**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.
|
|
5354
|
+
archiveStatus:
|
|
5355
|
+
deprecated: true
|
|
5356
|
+
type: string
|
|
5357
|
+
enum: [archive, unarchive]
|
|
5358
|
+
readOnly: true
|
|
5359
|
+
description: >-
|
|
5360
|
+
**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.
|
|
5361
|
+
description:
|
|
5362
|
+
type: string
|
|
5363
|
+
description: Package description
|
|
5364
|
+
location:
|
|
5365
|
+
type: string
|
|
5366
|
+
description:
|
|
5367
|
+
Package location. A LOCAL path must start with `./`, `../`, `~/`,
|
|
5368
|
+
or `/`; a `./` or `../` path resolves against the config file's
|
|
5369
|
+
directory, and `~/` against the home directory. Anything else is
|
|
5370
|
+
read as a remote URI (github, s3, gcs, https), so a bare name like
|
|
5371
|
+
`sales` is not local and the package is skipped with
|
|
5372
|
+
"Invalid package path" in the server's loadErrors. At boot a local
|
|
5373
|
+
package is COPIED into publisher_data/ and the copy is served, so
|
|
5374
|
+
edits to the source directory are not read; starting the server
|
|
5375
|
+
with `--watch-env <env>` mounts local packages in place (symlink)
|
|
5376
|
+
and live-reloads them instead. The mount is chosen when the
|
|
5377
|
+
environment is first loaded from config, so adding `--watch-env`
|
|
4745
5378
|
to a later boot needs `--init` to re-mount a package already
|
|
4746
5379
|
copied. On an update, a `location` equal to the one the package
|
|
4747
5380
|
was installed from is a metadata update and nothing is fetched; a
|
|
@@ -5011,7 +5644,15 @@ components:
|
|
|
5011
5644
|
`warn`; see docs/classification.md).
|
|
5012
5645
|
`classification-malformed`: a `#(classification)` annotation
|
|
5013
5646
|
that names no single class (one per field, `subject` the
|
|
5014
|
-
source; `warn`).
|
|
5647
|
+
source; `warn`). `entities-…` (`entities-not-a-dimension`,
|
|
5648
|
+
`entities-parameterized-source`,
|
|
5649
|
+
`entities-multiple-required-filters`,
|
|
5650
|
+
`entities-sharing-not-allowed-on-dimension`,
|
|
5651
|
+
`entities-schedule-not-allowed-on-dimension`,
|
|
5652
|
+
`entities-required-filter-missing-dimension`,
|
|
5653
|
+
`entities-required-filter-non-public-dimension`): an
|
|
5654
|
+
`#(index)` or required `#(filter)` an index cannot honor, left
|
|
5655
|
+
out of `GET …/entities` (`model` its file; `warn`). The per-file
|
|
5015
5656
|
report findings (`notebook-…`, `report-…`) and the report
|
|
5016
5657
|
curation findings (`report-on-surface`,
|
|
5017
5658
|
`index-is-not-a-report`). The message wording may change; the
|
|
@@ -5135,6 +5776,7 @@ components:
|
|
|
5135
5776
|
metadata is unavailable for this request (not loaded), which the
|
|
5136
5777
|
caller must treat as "unknown", not as a removal.
|
|
5137
5778
|
manifestBindingStatus:
|
|
5779
|
+
deprecated: true
|
|
5138
5780
|
type: string
|
|
5139
5781
|
readOnly: true
|
|
5140
5782
|
enum:
|
|
@@ -5142,187 +5784,43 @@ components:
|
|
|
5142
5784
|
- bound
|
|
5143
5785
|
- live_fallback
|
|
5144
5786
|
description: >-
|
|
5145
|
-
|
|
5146
|
-
currently bound to this package's served models. `unbound` = no
|
|
5147
|
-
manifest configured, so the package serves live. `bound` = the
|
|
5148
|
-
configured manifest was fetched and applied. `live_fallback` = a
|
|
5149
|
-
`manifestLocation` is configured but its fetch/bind failed or timed
|
|
5150
|
-
out, so the configured manifest is NOT applied. Lets the caller
|
|
5151
|
-
confirm the publisher actually bound the configured manifest rather
|
|
5152
|
-
than inferring it from logs.
|
|
5153
|
-
|
|
5154
|
-
`bound` reports that the bind ran to completion, NOT that any query
|
|
5155
|
-
routes to a materialized table: an entry whose source fails the
|
|
5156
|
-
eligibility gate is dropped, and the storage tier serves live under a
|
|
5157
|
-
`PERSIST_STORAGE_MODE` that is not `on`. Read `manifestEntryCount`
|
|
5158
|
-
and `storageServeBindings` for what actually bound.
|
|
5159
|
-
|
|
5160
|
-
An EMPTY manifest is a bind like any other: it is fetched and applied,
|
|
5161
|
-
binds nothing, and reports `bound` with `manifestEntryCount` 0 and no
|
|
5162
|
-
`storageServeBindings`, while the package serves entirely live. That
|
|
5163
|
-
combination is the signature — `bound` with neither tier populated
|
|
5164
|
-
means the manifest carried nothing, not that the bind was missed.
|
|
5165
|
-
|
|
5166
|
-
`live_fallback` does NOT imply the package is serving live. It says
|
|
5167
|
-
the configured manifest was not applied — not that nothing is. A
|
|
5168
|
-
failed FIRST bind leaves nothing bound (`boundManifestUri` null), but
|
|
5169
|
-
a failed REBIND leaves the previously bound manifest in place: its
|
|
5170
|
-
colocated substitutions stay compiled in, its storage serve bindings
|
|
5171
|
-
stay installed, and `boundManifestUri`, `manifestEntryCount` and
|
|
5172
|
-
`storageServeBindings` all continue to describe it.
|
|
5173
|
-
|
|
5174
|
-
That rebind guarantee covers a failure BEFORE either tier applies —
|
|
5175
|
-
the manifest fetch failing or timing out, which is what produces
|
|
5176
|
-
`live_fallback` in practice. A failure partway through the recompile,
|
|
5177
|
-
after the new models are installed but before the binding is
|
|
5178
|
-
recorded, is out of scope: the new substitutions would be live while
|
|
5179
|
-
these fields still described the previous manifest.
|
|
5180
|
-
|
|
5181
|
-
So the invariant to hold, whatever the status says: a non-null
|
|
5182
|
-
`boundManifestUri` is a LIVE reference to the manifest whose tables
|
|
5183
|
-
this package is currently serving from. A caller reclaiming
|
|
5184
|
-
superseded physical tables must treat it as one regardless of
|
|
5185
|
-
`manifestBindingStatus` — reading `live_fallback` as "not serving
|
|
5186
|
-
from manifest tables" and reclaiming that generation would drop
|
|
5187
|
-
tables out from under a package actively serving them.
|
|
5188
|
-
|
|
5189
|
-
Note this value is not the `live_fallback` on a query result's
|
|
5190
|
-
`servedFrom`, which reports that ONE query degraded to the warehouse.
|
|
5191
|
-
This one is about the package's binding, and as above does not imply
|
|
5192
|
-
any query ran live.
|
|
5787
|
+
**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.
|
|
5193
5788
|
manifestEntryCount:
|
|
5789
|
+
deprecated: true
|
|
5194
5790
|
type: integer
|
|
5195
5791
|
readOnly: true
|
|
5196
5792
|
description: >-
|
|
5197
|
-
|
|
5198
|
-
entries currently bound for the COLOCATED (same-connection tableName
|
|
5199
|
-
substitution) tier only. 0 when unbound, or when the bound manifest
|
|
5200
|
-
carried no colocated entries — so a fully bound `storage=`-only
|
|
5201
|
-
manifest reports `bound` with a count of 0. Corroborate a
|
|
5202
|
-
cross-connection bind with `storageServeBindings`, not this count.
|
|
5203
|
-
|
|
5204
|
-
Describes whatever is CURRENTLY bound, not the configured manifest: on
|
|
5205
|
-
a failed rebind this keeps the previously bound manifest's count (as
|
|
5206
|
-
`boundManifestUri` keeps its URI), because those entries really are
|
|
5207
|
-
still bound.
|
|
5793
|
+
**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.
|
|
5208
5794
|
boundManifestUri:
|
|
5795
|
+
deprecated: true
|
|
5209
5796
|
type: ["string", "null"]
|
|
5210
5797
|
readOnly: true
|
|
5211
5798
|
description: >-
|
|
5212
|
-
|
|
5213
|
-
served models. Usually equals `manifestLocation`, but can differ
|
|
5214
|
-
after an in-memory auto-load following a materialization build (no
|
|
5215
|
-
URI), in which case it is null. Null whenever the package is unbound.
|
|
5216
|
-
|
|
5217
|
-
It also diverges after a FAILED REBIND: `manifestLocation` then names
|
|
5218
|
-
the configured manifest that did not apply, while this names the
|
|
5219
|
-
manifest still bound and still served from. So a non-null value here
|
|
5220
|
-
is a live reference regardless of `manifestBindingStatus` — see that
|
|
5221
|
-
field for the invariant a caller reclaiming superseded physical
|
|
5222
|
-
tables has to hold.
|
|
5799
|
+
**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.
|
|
5223
5800
|
status:
|
|
5224
|
-
|
|
5801
|
+
deprecated: true
|
|
5802
|
+
allOf:
|
|
5803
|
+
- $ref: "#/components/schemas/PackageStatus"
|
|
5225
5804
|
readOnly: true
|
|
5226
5805
|
description: >-
|
|
5227
|
-
|
|
5228
|
-
now. `serving` is whether a compiled copy answers queries here;
|
|
5229
|
-
`loading` is whether a load, reinstall or recompile of the package
|
|
5230
|
-
is in progress here. The two are independent. A first load reports
|
|
5231
|
-
`loading` without `serving`. A reload of a package that is already
|
|
5232
|
-
served reports both, because the previous copy keeps answering until
|
|
5233
|
-
the new one is swapped in. Steady state reports `serving` alone.
|
|
5234
|
-
`loadingSince` is when the in-progress load began, so a caller can
|
|
5235
|
-
bound one that never completes. Which tables a serving copy answers
|
|
5236
|
-
from is a separate question, answered by `manifestBindingStatus`.
|
|
5237
|
-
A publish of a package version is a load from its download until
|
|
5238
|
-
it settles, and while it runs every entry of that package reports
|
|
5239
|
-
`loading`. With `includeLoading=true`, once its tree has named the
|
|
5240
|
-
version, a version the package does not hold yet is listed as its
|
|
5241
|
-
own entry, with its `versionId`, `loaded: false` and `loading`,
|
|
5242
|
-
unless an unversioned copy of the package still serves.
|
|
5243
|
-
|
|
5244
|
-
A package that is loading for the first time, so is not yet
|
|
5245
|
-
serving, is listed only where a caller asks for it:
|
|
5246
|
-
`GET /status?includeLoading=true` includes it as its name and
|
|
5247
|
-
`status`. Every other listing, the environment resources included,
|
|
5248
|
-
shows packages that can be queried.
|
|
5249
|
-
required: [serving, loading]
|
|
5250
|
-
properties:
|
|
5251
|
-
serving:
|
|
5252
|
-
type: boolean
|
|
5253
|
-
description: A compiled copy of the package answers queries here now.
|
|
5254
|
-
loading:
|
|
5255
|
-
type: boolean
|
|
5256
|
-
description: >-
|
|
5257
|
-
A load, reinstall or recompile of the package is in progress
|
|
5258
|
-
here. While true, `manifestBindingStatus` describes the copy
|
|
5259
|
-
being replaced, not the one being built.
|
|
5260
|
-
loadingSince:
|
|
5261
|
-
type: string
|
|
5262
|
-
format: date-time
|
|
5263
|
-
description: When the in-progress load began. Present only while `loading` is true.
|
|
5806
|
+
**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.
|
|
5264
5807
|
storageServeBindings:
|
|
5808
|
+
deprecated: true
|
|
5265
5809
|
type: array
|
|
5266
5810
|
readOnly: true
|
|
5267
5811
|
description: >-
|
|
5268
|
-
|
|
5269
|
-
`storage=` destination via the virtual-source transform (distinct
|
|
5270
|
-
from the same-connection manifest binding above — a storage source is
|
|
5271
|
-
read cross-connection from its destination, not substituted in the
|
|
5272
|
-
manifest). Present only when at least one source is bound. Whether a
|
|
5273
|
-
query actually routes to these tables additionally depends on
|
|
5274
|
-
`PERSIST_STORAGE_MODE=on`; under `off`/`write-only` the bindings may
|
|
5275
|
-
be present but the serve path still runs live (see `warnings`).
|
|
5276
|
-
|
|
5277
|
-
Like `boundManifestUri`, this describes whatever is CURRENTLY bound
|
|
5278
|
-
rather than the configured manifest: after a failed rebind it goes on
|
|
5279
|
-
listing the previously bound manifest's sources, which are still
|
|
5280
|
-
serving.
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
"Bound" is not the same as "serving", and an entry with
|
|
5284
|
-
`origin: preaggregate` is where the two most often part: a rollup is
|
|
5285
|
-
listed here once its table exists, but it is only offered to a query
|
|
5286
|
-
through a composite re-exposing its base's name, so it does not serve
|
|
5287
|
-
when something else already claims that name. Read `origin` before
|
|
5288
|
-
treating a row as evidence that queries are being accelerated.
|
|
5812
|
+
**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.
|
|
5289
5813
|
items:
|
|
5290
|
-
|
|
5291
|
-
properties:
|
|
5292
|
-
sourceName:
|
|
5293
|
-
type: string
|
|
5294
|
-
description: >-
|
|
5295
|
-
The materialized source served from storage.
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
**It may name no source in any model file**, exactly as
|
|
5299
|
-
`ManifestEntry.sourceName` may: a pre-aggregation rollup is a
|
|
5300
|
-
persist source the publisher synthesized, so its name is
|
|
5301
|
-
generated. Check `origin` rather than resolving this against a
|
|
5302
|
-
package's models and reading a miss as corruption.
|
|
5303
|
-
origin:
|
|
5304
|
-
type: string
|
|
5305
|
-
enum: [persist, preaggregate]
|
|
5306
|
-
default: persist
|
|
5307
|
-
description: >-
|
|
5308
|
-
What the bound source IS: `persist` for one a modeler annotated,
|
|
5309
|
-
which is the meaning of an absent value, and `preaggregate` for
|
|
5310
|
-
a rollup the publisher synthesized from `#@ preaggregate`
|
|
5311
|
-
measures. Mirrors `ManifestEntry.origin`.
|
|
5312
|
-
storageDestinationName:
|
|
5313
|
-
type: string
|
|
5314
|
-
description: >-
|
|
5315
|
-
The storage destination the physical table lives in (an entry
|
|
5316
|
-
in `storageDestinations`, not a connection).
|
|
5317
|
-
tablePath:
|
|
5318
|
-
type: string
|
|
5319
|
-
description: The physical table the source is served from.
|
|
5814
|
+
$ref: "#/components/schemas/StorageServeBinding"
|
|
5320
5815
|
buildPlan:
|
|
5816
|
+
deprecated: true
|
|
5321
5817
|
oneOf:
|
|
5322
5818
|
- $ref: "#/components/schemas/BuildPlan"
|
|
5323
5819
|
- type: "null"
|
|
5324
5820
|
readOnly: true
|
|
5325
5821
|
description: >-
|
|
5822
|
+
**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.
|
|
5823
|
+
|
|
5326
5824
|
Server-computed, read-only: the persist build plan for this package
|
|
5327
5825
|
version (per-source sourceEntityId, output columns, build SQL,
|
|
5328
5826
|
dependency graphs), exposed as a deterministic property of the
|
|
@@ -5336,54 +5834,44 @@ components:
|
|
|
5336
5834
|
package is compiled; null only when the package declares no persist
|
|
5337
5835
|
source.
|
|
5338
5836
|
embeddingIndex:
|
|
5837
|
+
deprecated: true
|
|
5339
5838
|
oneOf:
|
|
5340
5839
|
- $ref: "#/components/schemas/PackageEmbeddingIndex"
|
|
5341
5840
|
- type: "null"
|
|
5342
5841
|
readOnly: true
|
|
5343
5842
|
description: >-
|
|
5843
|
+
**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.
|
|
5844
|
+
classification:
|
|
5845
|
+
deprecated: true
|
|
5846
|
+
allOf:
|
|
5847
|
+
- $ref: "#/components/schemas/ClassificationSummary"
|
|
5848
|
+
readOnly: true
|
|
5849
|
+
description: >-
|
|
5850
|
+
**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.
|
|
5851
|
+
|
|
5344
5852
|
Server-computed, read-only: the state of this package's semantic
|
|
5345
5853
|
discovery index, which is what `get_context` ranks against
|
|
5346
5854
|
when an embedding provider is configured. `status: lexical` when
|
|
5347
5855
|
the server has no provider, because there is no index to describe.
|
|
5348
5856
|
servedRevision:
|
|
5857
|
+
deprecated: true
|
|
5349
5858
|
type: string
|
|
5350
5859
|
readOnly: true
|
|
5351
5860
|
description: >-
|
|
5352
|
-
|
|
5353
|
-
what this package is currently serving. Minted fresh per load, so
|
|
5354
|
-
two loads of byte-identical files carry different revisions. Use it
|
|
5355
|
-
to tell one load from another, NOT to tell whether content changed:
|
|
5356
|
-
it moves on every reload regardless. `sourceContentSha` answers that.
|
|
5861
|
+
**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.
|
|
5357
5862
|
sourceContentSha:
|
|
5863
|
+
deprecated: true
|
|
5358
5864
|
type: string
|
|
5359
5865
|
readOnly: true
|
|
5360
5866
|
description: >-
|
|
5361
|
-
|
|
5362
|
-
and bytes of every file the package is serving: each model file,
|
|
5363
|
-
each package skill file under `skills/`, and, when the manifest
|
|
5364
|
-
declares `agents`, the canonical form of that `agents` object plus
|
|
5365
|
-
every instructions, task and skill file those agents read.
|
|
5366
|
-
|
|
5367
|
-
This is the reload receipt. Publisher serves a COPY of a package
|
|
5368
|
-
under `publisher_data/<env>/<pkg>/` unless the environment was
|
|
5369
|
-
started with `--watch-env`, so an edit to the original source
|
|
5370
|
-
directory reaches nothing and the reload still reports success.
|
|
5371
|
-
Comparing this value across a reload is what distinguishes "the
|
|
5372
|
-
server recompiled my edit" from "the server recompiled the same
|
|
5373
|
-
bytes it already had".
|
|
5374
|
-
|
|
5375
|
-
It covers EVERY model path in the package, so an edit to an imported
|
|
5376
|
-
file moves it where a hash of one model path would not. It covers
|
|
5377
|
-
nothing outside the list above: a data file, a `public/` asset, a
|
|
5378
|
-
`version` bump or any other key in publisher.json (`retrieval`,
|
|
5379
|
-
`explores`, `queryableSources`, `scope`) all leave it unchanged,
|
|
5380
|
-
although some of those do change what is served. An unchanged value
|
|
5381
|
-
therefore proves an edit to a hashed file did not reach the served
|
|
5382
|
-
copy, and says nothing about an edit to anything else.
|
|
5867
|
+
**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.
|
|
5383
5868
|
agents:
|
|
5869
|
+
deprecated: true
|
|
5384
5870
|
type: array
|
|
5385
5871
|
readOnly: true
|
|
5386
5872
|
description: >-
|
|
5873
|
+
**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.
|
|
5874
|
+
|
|
5387
5875
|
Server-computed, read-only: the agents this package's
|
|
5388
5876
|
`publisher.json` declares and the server accepted, without their
|
|
5389
5877
|
instructions. Absent when the manifest declares no `agents`. An
|
|
@@ -5392,9 +5880,12 @@ components:
|
|
|
5392
5880
|
items:
|
|
5393
5881
|
$ref: "#/components/schemas/AgentSummary"
|
|
5394
5882
|
secureGivens:
|
|
5883
|
+
deprecated: true
|
|
5395
5884
|
type: array
|
|
5396
5885
|
readOnly: true
|
|
5397
5886
|
description: >-
|
|
5887
|
+
**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.
|
|
5888
|
+
|
|
5398
5889
|
Server-computed, read-only: every `#(secure)` given the package's
|
|
5399
5890
|
compiled models surface, so a host that sets those values learns
|
|
5400
5891
|
which ones to set from the load response without compiling the
|
|
@@ -5422,9 +5913,6 @@ components:
|
|
|
5422
5913
|
body carrying it is ignored.
|
|
5423
5914
|
items:
|
|
5424
5915
|
$ref: "#/components/schemas/SecureGivenSummary"
|
|
5425
|
-
classification:
|
|
5426
|
-
$ref: "#/components/schemas/ClassificationSummary"
|
|
5427
|
-
|
|
5428
5916
|
AgentSchedule:
|
|
5429
5917
|
type: object
|
|
5430
5918
|
readOnly: true
|
|
@@ -5611,82 +6099,31 @@ components:
|
|
|
5611
6099
|
type: string
|
|
5612
6100
|
assets:
|
|
5613
6101
|
type: array
|
|
5614
|
-
description: >-
|
|
5615
|
-
Every asset the agent's skills ship, listed without contents and
|
|
5616
|
-
sorted by `relative_filepath`. Absent when there are none and in
|
|
5617
|
-
the `skills=summary` view.
|
|
5618
|
-
items:
|
|
5619
|
-
$ref: "#/components/schemas/AgentAsset"
|
|
5620
|
-
asset_counts:
|
|
5621
|
-
type: object
|
|
5622
|
-
description: >-
|
|
5623
|
-
Only in the `skills=summary` view, and only when there are assets:
|
|
5624
|
-
how many assets each skill ships.
|
|
5625
|
-
additionalProperties:
|
|
5626
|
-
type: integer
|
|
5627
|
-
schedules:
|
|
5628
|
-
type: array
|
|
5629
|
-
items:
|
|
5630
|
-
$ref: "#/components/schemas/AgentSchedule"
|
|
5631
|
-
budget:
|
|
5632
|
-
$ref: "#/components/schemas/AgentBudget"
|
|
5633
|
-
warnings:
|
|
5634
|
-
type: array
|
|
5635
|
-
items:
|
|
5636
|
-
type: string
|
|
5637
|
-
source:
|
|
5638
|
-
$ref: "#/components/schemas/AgentSource"
|
|
5639
|
-
|
|
5640
|
-
ClassificationSummary:
|
|
5641
|
-
type: object
|
|
5642
|
-
readOnly: true
|
|
5643
|
-
required: [sources]
|
|
5644
|
-
description: >-
|
|
5645
|
-
Server-computed, read-only, on a single package read
|
|
5646
|
-
(`GET …/packages/{packageName}`) only, never on a listing: for each
|
|
5647
|
-
published entry point, the classes its `#(carries)` declares and how
|
|
5648
|
-
many of its fields carry each class (`#(classification)`, declared or
|
|
5649
|
-
inherited). Covers only the sources discovery shows, so it reveals
|
|
5650
|
-
nothing curation hides; a source locked to every caller is left out.
|
|
5651
|
-
A field's own classes, and what they were inherited from, are on its
|
|
5652
|
-
`get_context` card. Absent when no published field carries a class.
|
|
5653
|
-
It cannot be set: a PATCH body carrying it is ignored.
|
|
5654
|
-
properties:
|
|
5655
|
-
sources:
|
|
5656
|
-
type: array
|
|
5657
|
-
description: Sorted by model path, then name.
|
|
5658
|
-
items:
|
|
5659
|
-
$ref: "#/components/schemas/ClassificationSummarySource"
|
|
5660
|
-
|
|
5661
|
-
ClassificationSummarySource:
|
|
5662
|
-
type: object
|
|
5663
|
-
readOnly: true
|
|
5664
|
-
required: [modelPath, name, fields, unclassified, classCounts]
|
|
5665
|
-
properties:
|
|
5666
|
-
modelPath:
|
|
5667
|
-
type: string
|
|
5668
|
-
name:
|
|
5669
|
-
type: string
|
|
5670
|
-
carries:
|
|
5671
|
-
type: array
|
|
5672
|
-
description: >-
|
|
5673
|
-
The classes the source's `#(carries)` lists, sorted, inherited
|
|
5674
|
-
through `extend` like a gate. Absent when it declares none.
|
|
6102
|
+
description: >-
|
|
6103
|
+
Every asset the agent's skills ship, listed without contents and
|
|
6104
|
+
sorted by `relative_filepath`. Absent when there are none and in
|
|
6105
|
+
the `skills=summary` view.
|
|
5675
6106
|
items:
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
type: integer
|
|
5679
|
-
description: The dimensions and measures a caller can reach from the source, through joins included.
|
|
5680
|
-
unclassified:
|
|
5681
|
-
type: integer
|
|
5682
|
-
description: How many of those carry no class.
|
|
5683
|
-
classCounts:
|
|
6107
|
+
$ref: "#/components/schemas/AgentAsset"
|
|
6108
|
+
asset_counts:
|
|
5684
6109
|
type: object
|
|
5685
6110
|
description: >-
|
|
5686
|
-
|
|
5687
|
-
|
|
6111
|
+
Only in the `skills=summary` view, and only when there are assets:
|
|
6112
|
+
how many assets each skill ships.
|
|
5688
6113
|
additionalProperties:
|
|
5689
6114
|
type: integer
|
|
6115
|
+
schedules:
|
|
6116
|
+
type: array
|
|
6117
|
+
items:
|
|
6118
|
+
$ref: "#/components/schemas/AgentSchedule"
|
|
6119
|
+
budget:
|
|
6120
|
+
$ref: "#/components/schemas/AgentBudget"
|
|
6121
|
+
warnings:
|
|
6122
|
+
type: array
|
|
6123
|
+
items:
|
|
6124
|
+
type: string
|
|
6125
|
+
source:
|
|
6126
|
+
$ref: "#/components/schemas/AgentSource"
|
|
5690
6127
|
|
|
5691
6128
|
SkillSummary:
|
|
5692
6129
|
type: object
|
|
@@ -6751,6 +7188,387 @@ components:
|
|
|
6751
7188
|
file and every file that imports it alike. Sorted, no duplicates.
|
|
6752
7189
|
items:
|
|
6753
7190
|
type: string
|
|
7191
|
+
ClassificationSummary:
|
|
7192
|
+
type: object
|
|
7193
|
+
readOnly: true
|
|
7194
|
+
required: [sources]
|
|
7195
|
+
description: >-
|
|
7196
|
+
Server-computed, read-only, as `GET …/packages/{packageName}/classification`
|
|
7197
|
+
returns it: for each published entry point, the classes its
|
|
7198
|
+
`#(carries)` declares and how many of its fields carry each class
|
|
7199
|
+
(`#(classification)`, declared or inherited). Covers only the sources
|
|
7200
|
+
discovery shows, so it reveals nothing curation hides; a source locked
|
|
7201
|
+
to every caller is left out. A field's own classes, and what they were
|
|
7202
|
+
inherited from, are on its `get_context` card. `sources` is empty when
|
|
7203
|
+
no published field carries a class.
|
|
7204
|
+
properties:
|
|
7205
|
+
sources:
|
|
7206
|
+
type: array
|
|
7207
|
+
description: Sorted by model path, then name.
|
|
7208
|
+
items:
|
|
7209
|
+
$ref: "#/components/schemas/ClassificationSummarySource"
|
|
7210
|
+
|
|
7211
|
+
ClassificationSummarySource:
|
|
7212
|
+
type: object
|
|
7213
|
+
readOnly: true
|
|
7214
|
+
required: [modelPath, name, fields, unclassified, classCounts]
|
|
7215
|
+
properties:
|
|
7216
|
+
modelPath:
|
|
7217
|
+
type: string
|
|
7218
|
+
name:
|
|
7219
|
+
type: string
|
|
7220
|
+
carries:
|
|
7221
|
+
type: array
|
|
7222
|
+
description: >-
|
|
7223
|
+
The classes the source's `#(carries)` lists, sorted, inherited
|
|
7224
|
+
through `extend` like a gate. Absent when it declares none.
|
|
7225
|
+
items:
|
|
7226
|
+
type: string
|
|
7227
|
+
fields:
|
|
7228
|
+
type: integer
|
|
7229
|
+
description: The dimensions and measures a caller can reach from the source, through joins included.
|
|
7230
|
+
unclassified:
|
|
7231
|
+
type: integer
|
|
7232
|
+
description: How many of those carry no class.
|
|
7233
|
+
classCounts:
|
|
7234
|
+
type: object
|
|
7235
|
+
description: >-
|
|
7236
|
+
How many of those fields carry each class, keyed by class. A field
|
|
7237
|
+
under several classes counts under each.
|
|
7238
|
+
additionalProperties:
|
|
7239
|
+
type: integer
|
|
7240
|
+
|
|
7241
|
+
ModelEntities:
|
|
7242
|
+
type: object
|
|
7243
|
+
readOnly: true
|
|
7244
|
+
description: >-
|
|
7245
|
+
What one `.malloy` model file declares, in the form an indexer reads.
|
|
7246
|
+
See `GET …/entities`.
|
|
7247
|
+
required:
|
|
7248
|
+
- modelPath
|
|
7249
|
+
properties:
|
|
7250
|
+
modelPath:
|
|
7251
|
+
type: string
|
|
7252
|
+
description: Package-relative path of the model file.
|
|
7253
|
+
error:
|
|
7254
|
+
type: string
|
|
7255
|
+
description: >-
|
|
7256
|
+
Why the model has no entities: its compile error, or the server's
|
|
7257
|
+
failure to extract it (see `errorKind`). When present, every other
|
|
7258
|
+
list is empty.
|
|
7259
|
+
errorKind:
|
|
7260
|
+
type: string
|
|
7261
|
+
enum:
|
|
7262
|
+
- compile
|
|
7263
|
+
- extraction
|
|
7264
|
+
description: >-
|
|
7265
|
+
Present with `error`. `compile`: the model did not compile, which
|
|
7266
|
+
its author fixes. `extraction`: it compiled but the server could
|
|
7267
|
+
not extract its entities, a server fault an indexer should not
|
|
7268
|
+
read as the model having none.
|
|
7269
|
+
fields:
|
|
7270
|
+
type: array
|
|
7271
|
+
description: >-
|
|
7272
|
+
Every public field of every source the model surfaces, its
|
|
7273
|
+
imported sources included. A field reachable only through a join
|
|
7274
|
+
(a joined source declared inline, or one the model's imports do
|
|
7275
|
+
not surface on their own) is listed under the runnable source it
|
|
7276
|
+
is reached from, its `name` the join-qualified path.
|
|
7277
|
+
items:
|
|
7278
|
+
$ref: "#/components/schemas/EntityField"
|
|
7279
|
+
sources:
|
|
7280
|
+
type: array
|
|
7281
|
+
description: >-
|
|
7282
|
+
The facts the model states about each of its sources: docs,
|
|
7283
|
+
visibility, queryability, filters and access gates.
|
|
7284
|
+
Includes a source reached only through a join, with
|
|
7285
|
+
`joinOnly: true`, when the model gates or declares givens for it.
|
|
7286
|
+
items:
|
|
7287
|
+
$ref: "#/components/schemas/SourceEntities"
|
|
7288
|
+
givens:
|
|
7289
|
+
type: array
|
|
7290
|
+
description: >-
|
|
7291
|
+
Every given the model surfaces, those its imports surface included.
|
|
7292
|
+
They apply to every source in `sources`.
|
|
7293
|
+
items:
|
|
7294
|
+
$ref: "#/components/schemas/Given"
|
|
7295
|
+
sourceSchemas:
|
|
7296
|
+
type: array
|
|
7297
|
+
description: >-
|
|
7298
|
+
The schema of each source the model surfaces, in declaration
|
|
7299
|
+
order: its own annotations and its public fields, a join's fields
|
|
7300
|
+
nested under it.
|
|
7301
|
+
items:
|
|
7302
|
+
$ref: "#/components/schemas/SourceSchema"
|
|
7303
|
+
EntityField:
|
|
7304
|
+
type: object
|
|
7305
|
+
readOnly: true
|
|
7306
|
+
description: One public field of a source. See `ModelEntities.fields`.
|
|
7307
|
+
required:
|
|
7308
|
+
- name
|
|
7309
|
+
- source
|
|
7310
|
+
- kind
|
|
7311
|
+
- code
|
|
7312
|
+
- annotations
|
|
7313
|
+
- table
|
|
7314
|
+
properties:
|
|
7315
|
+
name:
|
|
7316
|
+
type: string
|
|
7317
|
+
description: >-
|
|
7318
|
+
The field's name, or its join-qualified path (`people.name`) when
|
|
7319
|
+
it is reached through a join.
|
|
7320
|
+
source:
|
|
7321
|
+
type: string
|
|
7322
|
+
description: >-
|
|
7323
|
+
The runnable source to query the field from. For a join field it
|
|
7324
|
+
is the source declaring the join, dotted when that source is itself
|
|
7325
|
+
reached through a join.
|
|
7326
|
+
kind:
|
|
7327
|
+
type: string
|
|
7328
|
+
description: >-
|
|
7329
|
+
One of `dimension`, `column`, `measure`, `view`, `join` or
|
|
7330
|
+
`hidden`. `column` is a dimension read straight from the table;
|
|
7331
|
+
`dimension` is one the model defines with `is`. `hidden` is a field
|
|
7332
|
+
the source hides with a `# hidden` tag. A later release may add a
|
|
7333
|
+
kind: skip a field whose kind you do not know.
|
|
7334
|
+
dataType:
|
|
7335
|
+
type: string
|
|
7336
|
+
description: The field's Malloy type, when it has one.
|
|
7337
|
+
code:
|
|
7338
|
+
type: string
|
|
7339
|
+
description: The Malloy text that declares the field.
|
|
7340
|
+
annotations:
|
|
7341
|
+
type: array
|
|
7342
|
+
items:
|
|
7343
|
+
type: string
|
|
7344
|
+
description: The field's annotations, trimmed, empty ones left out.
|
|
7345
|
+
doc:
|
|
7346
|
+
type: string
|
|
7347
|
+
description: The field's `#(doc)` text, when it has any.
|
|
7348
|
+
table:
|
|
7349
|
+
$ref: "#/components/schemas/EntityTable"
|
|
7350
|
+
join:
|
|
7351
|
+
$ref: "#/components/schemas/EntityJoin"
|
|
7352
|
+
indexFingerprint:
|
|
7353
|
+
$ref: "#/components/schemas/IndexFingerprint"
|
|
7354
|
+
EntityTable:
|
|
7355
|
+
type: object
|
|
7356
|
+
readOnly: true
|
|
7357
|
+
description: >-
|
|
7358
|
+
The table behind the field's source, split from its table path. Every
|
|
7359
|
+
part is absent when the source is not read from a table.
|
|
7360
|
+
properties:
|
|
7361
|
+
connection:
|
|
7362
|
+
type: string
|
|
7363
|
+
catalog:
|
|
7364
|
+
type: string
|
|
7365
|
+
schema:
|
|
7366
|
+
type: string
|
|
7367
|
+
name:
|
|
7368
|
+
type: string
|
|
7369
|
+
|
|
7370
|
+
EntityJoin:
|
|
7371
|
+
type: object
|
|
7372
|
+
readOnly: true
|
|
7373
|
+
description: What a join field joins. Present only on a `join` field.
|
|
7374
|
+
required:
|
|
7375
|
+
- nested
|
|
7376
|
+
properties:
|
|
7377
|
+
sourceName:
|
|
7378
|
+
type: string
|
|
7379
|
+
description: >-
|
|
7380
|
+
The source the join reads, absent for a join read straight from a
|
|
7381
|
+
table.
|
|
7382
|
+
sourcePath:
|
|
7383
|
+
type: string
|
|
7384
|
+
description: Package-relative path of the file declaring that source.
|
|
7385
|
+
nested:
|
|
7386
|
+
type: boolean
|
|
7387
|
+
description: >-
|
|
7388
|
+
Whether the joined source exists only inside this join (an inline
|
|
7389
|
+
`extend` or a table read), so its fields are listed through it.
|
|
7390
|
+
|
|
7391
|
+
IndexFingerprint:
|
|
7392
|
+
type: object
|
|
7393
|
+
readOnly: true
|
|
7394
|
+
description: >-
|
|
7395
|
+
The definitional fingerprint of an `#(index)`-tagged dimension. Two
|
|
7396
|
+
loads that compile the dimension's canonical index query to the same
|
|
7397
|
+
SQL report the same fingerprint, so a host can reuse one index across
|
|
7398
|
+
versions and across sources that extend each other. Absent when that
|
|
7399
|
+
query did not compile.
|
|
7400
|
+
required:
|
|
7401
|
+
- sqlHash
|
|
7402
|
+
- requiredFilterDimensions
|
|
7403
|
+
properties:
|
|
7404
|
+
sqlHash:
|
|
7405
|
+
type: string
|
|
7406
|
+
description: Lowercase hex SHA-256 of the compiled index query's SQL.
|
|
7407
|
+
requiredFilterDimensions:
|
|
7408
|
+
type: array
|
|
7409
|
+
items:
|
|
7410
|
+
type: string
|
|
7411
|
+
description: >-
|
|
7412
|
+
The dimensions the index is partitioned by: the source's required
|
|
7413
|
+
filters, in declaration order, then its `#(access_filter)` term
|
|
7414
|
+
columns.
|
|
7415
|
+
|
|
7416
|
+
SourceEntities:
|
|
7417
|
+
type: object
|
|
7418
|
+
readOnly: true
|
|
7419
|
+
description: >-
|
|
7420
|
+
What a model states about one source. See `ModelEntities.sources`.
|
|
7421
|
+
required:
|
|
7422
|
+
- modelPath
|
|
7423
|
+
- name
|
|
7424
|
+
- joinOnly
|
|
7425
|
+
- agentHidden
|
|
7426
|
+
- queryable
|
|
7427
|
+
properties:
|
|
7428
|
+
modelPath:
|
|
7429
|
+
type: string
|
|
7430
|
+
description: >-
|
|
7431
|
+
The model file the facts are filed under: the reporting model, or,
|
|
7432
|
+
for a `joinOnly` source declared in another file, that file.
|
|
7433
|
+
name:
|
|
7434
|
+
type: string
|
|
7435
|
+
description: >-
|
|
7436
|
+
The source's name. Dotted (`orders.customer`) for a source that
|
|
7437
|
+
exists only inside a join.
|
|
7438
|
+
joinOnly:
|
|
7439
|
+
type: boolean
|
|
7440
|
+
description: >-
|
|
7441
|
+
Reached only through a join. Only `authorize` is reported for it.
|
|
7442
|
+
doc:
|
|
7443
|
+
type: string
|
|
7444
|
+
description: The source's own `#(doc)` text, when it has any.
|
|
7445
|
+
agentHidden:
|
|
7446
|
+
type: boolean
|
|
7447
|
+
description: >-
|
|
7448
|
+
The source, or the model file declaring it, carries
|
|
7449
|
+
`#(agent-hidden)`.
|
|
7450
|
+
queryable:
|
|
7451
|
+
type: boolean
|
|
7452
|
+
description: >-
|
|
7453
|
+
Whether this server runs a query against the source directly.
|
|
7454
|
+
False for a source outside the package's query surface.
|
|
7455
|
+
servedFrom:
|
|
7456
|
+
$ref: "#/components/schemas/EntitySourceAddress"
|
|
7457
|
+
filters:
|
|
7458
|
+
type: array
|
|
7459
|
+
items:
|
|
7460
|
+
$ref: "#/components/schemas/Filter"
|
|
7461
|
+
authorize:
|
|
7462
|
+
type: array
|
|
7463
|
+
description: >-
|
|
7464
|
+
The source's effective access gates: file-level ones first, then
|
|
7465
|
+
its own, `authorize` before `access_filter`.
|
|
7466
|
+
items:
|
|
7467
|
+
$ref: "#/components/schemas/EntityGate"
|
|
7468
|
+
|
|
7469
|
+
EntitySourceAddress:
|
|
7470
|
+
type: object
|
|
7471
|
+
readOnly: true
|
|
7472
|
+
description: >-
|
|
7473
|
+
The served source a non-queryable source stands for: a report's import
|
|
7474
|
+
of a served source, or a source it derives from one.
|
|
7475
|
+
required:
|
|
7476
|
+
- modelPath
|
|
7477
|
+
- sourceName
|
|
7478
|
+
properties:
|
|
7479
|
+
modelPath:
|
|
7480
|
+
type: string
|
|
7481
|
+
sourceName:
|
|
7482
|
+
type: string
|
|
7483
|
+
|
|
7484
|
+
EntityGate:
|
|
7485
|
+
type: object
|
|
7486
|
+
readOnly: true
|
|
7487
|
+
required:
|
|
7488
|
+
- expression
|
|
7489
|
+
- givenNames
|
|
7490
|
+
properties:
|
|
7491
|
+
expression:
|
|
7492
|
+
type: string
|
|
7493
|
+
givenNames:
|
|
7494
|
+
type: array
|
|
7495
|
+
items:
|
|
7496
|
+
type: string
|
|
7497
|
+
description: The `$NAME` givens the expression references.
|
|
7498
|
+
route:
|
|
7499
|
+
type: string
|
|
7500
|
+
description: "`authorize` or `access_filter`."
|
|
7501
|
+
terms:
|
|
7502
|
+
type: array
|
|
7503
|
+
description: >-
|
|
7504
|
+
On an `access_filter` gate, its `field <op> $GIVEN` terms, present
|
|
7505
|
+
only when the source's whole row filter reduces to such terms on
|
|
7506
|
+
queryable fields.
|
|
7507
|
+
items:
|
|
7508
|
+
$ref: "#/components/schemas/EntityGateTerm"
|
|
7509
|
+
|
|
7510
|
+
EntityGateTerm:
|
|
7511
|
+
type: object
|
|
7512
|
+
readOnly: true
|
|
7513
|
+
required:
|
|
7514
|
+
- fieldPath
|
|
7515
|
+
- given
|
|
7516
|
+
- op
|
|
7517
|
+
properties:
|
|
7518
|
+
fieldPath:
|
|
7519
|
+
type: string
|
|
7520
|
+
given:
|
|
7521
|
+
type: string
|
|
7522
|
+
op:
|
|
7523
|
+
type: string
|
|
7524
|
+
description: "`=` or `in`."
|
|
7525
|
+
|
|
7526
|
+
SourceSchema:
|
|
7527
|
+
type: object
|
|
7528
|
+
readOnly: true
|
|
7529
|
+
required:
|
|
7530
|
+
- name
|
|
7531
|
+
- annotations
|
|
7532
|
+
- fields
|
|
7533
|
+
properties:
|
|
7534
|
+
name:
|
|
7535
|
+
type: string
|
|
7536
|
+
annotations:
|
|
7537
|
+
type: array
|
|
7538
|
+
items:
|
|
7539
|
+
type: string
|
|
7540
|
+
description: The annotations declared on the source itself.
|
|
7541
|
+
fields:
|
|
7542
|
+
type: array
|
|
7543
|
+
items:
|
|
7544
|
+
$ref: "#/components/schemas/SourceSchemaField"
|
|
7545
|
+
|
|
7546
|
+
SourceSchemaField:
|
|
7547
|
+
type: object
|
|
7548
|
+
readOnly: true
|
|
7549
|
+
required:
|
|
7550
|
+
- kind
|
|
7551
|
+
- name
|
|
7552
|
+
properties:
|
|
7553
|
+
kind:
|
|
7554
|
+
type: string
|
|
7555
|
+
description: >-
|
|
7556
|
+
One of `dimension`, `column`, `measure`, `view` or `join`; a later
|
|
7557
|
+
release may add one.
|
|
7558
|
+
name:
|
|
7559
|
+
type: string
|
|
7560
|
+
type:
|
|
7561
|
+
type: string
|
|
7562
|
+
annotations:
|
|
7563
|
+
type: array
|
|
7564
|
+
items:
|
|
7565
|
+
type: string
|
|
7566
|
+
fields:
|
|
7567
|
+
type: array
|
|
7568
|
+
description: A join's or a view's own fields.
|
|
7569
|
+
items:
|
|
7570
|
+
$ref: "#/components/schemas/SourceSchemaField"
|
|
7571
|
+
|
|
6754
7572
|
Given:
|
|
6755
7573
|
type: object
|
|
6756
7574
|
description: |
|