@malloy-publisher/server 0.11.2 → 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/README.docker.md +1 -1
- package/dist/app/api-doc.yaml +1174 -234
- package/dist/app/assets/{EnvironmentPage-Dfn26tY2.js → EnvironmentPage-D0VBeb5V.js} +1 -1
- package/dist/app/assets/{HomePage-CNuMPINA.js → HomePage-CLEMChAH.js} +1 -1
- package/dist/app/assets/{MainPage-DWjs4_e3.js → MainPage-0vOhDrkX.js} +1 -1
- package/dist/app/assets/{ModelPage-GZ6hXGgw.js → ModelPage-DUzNdrT3.js} +2 -2
- package/dist/app/assets/{PackagePage-_5vFWxqm.js → PackagePage-40JPQIiH.js} +1 -1
- package/dist/app/assets/{PackageSplatRoute-CTxtXKZO.js → PackageSplatRoute-DtdzKVDt.js} +2 -2
- package/dist/app/assets/{RenderedResult-r3dg2xOJ.es-t-MnqNaH.js → RenderedResult-AyM-RQaA.es-loABPOhf.js} +3 -3
- package/dist/app/assets/{RouteError-y4xkvszw.js → RouteError-XJqJwHPb.js} +1 -1
- package/dist/app/assets/{ThemeEditorPage-BffGFYK5.js → ThemeEditorPage-8w42fXGN.js} +1 -1
- package/dist/app/assets/{ToggleButtonGroup-BfTJg9cJ.js → ToggleButtonGroup-SgUIGblf.js} +1 -1
- package/dist/app/assets/{documentRoutes-DnpGGXs4.js → documentRoutes-CtOrNSfQ.js} +1 -1
- package/dist/app/assets/{editPageMounted-efTmRdGK.js → editPageMounted-DNUrCc4z.js} +2 -2
- package/dist/app/assets/index-B49NC27i.js +483 -0
- package/dist/app/assets/{index-CW23I6Cr.js → index-DQEP4oWm.js} +1 -1
- package/dist/app/assets/{index-g1sInkiO.js → index-DfYBaQ7M.js} +1 -1
- package/dist/app/assets/{index-CG6r_Zwr.js → index-MVNgiF-4.js} +1 -1
- package/dist/app/assets/{index.es-AXVff-Xr.js → index.es-B7-CYE4L.js} +1 -1
- package/dist/app/assets/usePackageLinkNavigate-DykOPLjz.js +1 -0
- package/dist/app/assets/{usePackageRoute-BUdFd5dP.js → usePackageRoute-DyDTsrm1.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/instrumentation.mjs +5 -1
- package/dist/package_load_worker.mjs +259 -119
- package/dist/server.mjs +22717 -15308
- package/dist/{sshcrypto-a4xyg5e8.node → sshcrypto-fqcyz88x.node} +0 -0
- package/package.json +1 -1
- package/publisher.config.example.duckdb.json +4 -0
- package/dist/app/assets/index-D8JKtZm5.js +0 -483
- package/dist/app/assets/usePackageLinkNavigate-DpGlRKnc.js +0 -1
package/dist/app/api-doc.yaml
CHANGED
|
@@ -2133,6 +2133,21 @@ paths:
|
|
|
2133
2133
|
$ref: "#/components/schemas/PathPattern"
|
|
2134
2134
|
- $ref: "#/components/parameters/versionId"
|
|
2135
2135
|
- $ref: "#/components/parameters/includeHiddenFilesAndSources"
|
|
2136
|
+
- name: givens
|
|
2137
|
+
in: query
|
|
2138
|
+
required: false
|
|
2139
|
+
description: >-
|
|
2140
|
+
The caller's givens as the trusted tier set them, one JSON object
|
|
2141
|
+
(`{"ROLES":["clinician"]}`). A source whose `#(authorize)` lock
|
|
2142
|
+
cannot admit the caller on the `#(secure)` givens supplied, or
|
|
2143
|
+
reads a secure given not supplied, is omitted from `sources`,
|
|
2144
|
+
`queries` and `sourceInfos`, as a source locked with `false` is.
|
|
2145
|
+
Plain givens and `#(access_filter)` row filters hide nothing.
|
|
2146
|
+
Discovery only: the query route's gates decide what is served
|
|
2147
|
+
either way. Absent: every published source. Not a JSON object:
|
|
2148
|
+
400.
|
|
2149
|
+
schema:
|
|
2150
|
+
type: string
|
|
2136
2151
|
responses:
|
|
2137
2152
|
"200":
|
|
2138
2153
|
description: Compiled Malloy model
|
|
@@ -2691,6 +2706,265 @@ paths:
|
|
|
2691
2706
|
"503":
|
|
2692
2707
|
$ref: "#/components/responses/ServiceUnavailable"
|
|
2693
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
|
+
|
|
2694
2968
|
/environments/{environmentName}/packages/{packageName}/agents:
|
|
2695
2969
|
get:
|
|
2696
2970
|
tags:
|
|
@@ -2824,7 +3098,11 @@ paths:
|
|
|
2824
3098
|
`relative_filepath` from `GET .../agents/{agentName}?skills=summary`
|
|
2825
3099
|
(for example `analyst-conventions/SKILL.md`), with the same `source`
|
|
2826
3100
|
pin as the full definition. The path is looked up in the resolved set,
|
|
2827
|
-
never joined onto the filesystem.
|
|
3101
|
+
never joined onto the filesystem. A `relative_filepath` from the
|
|
3102
|
+
agent's `assets` listing (`<skill>/assets/...`, full view only) is
|
|
3103
|
+
matched exactly against the listing, then read from disk as UTF-8 text
|
|
3104
|
+
and served only if it still hashes to its listed `sha256`; one that
|
|
3105
|
+
changed, or became a link, since the load is a 404.
|
|
2828
3106
|
|
|
2829
3107
|
404 when the agent or the file is not served.
|
|
2830
3108
|
parameters:
|
|
@@ -3928,6 +4206,9 @@ components:
|
|
|
3928
4206
|
* VERSION_BUILDING: a materialization of the version is running, and
|
|
3929
4207
|
archiving or deleting it would drop the tables it is writing. Wait for
|
|
3930
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.
|
|
3931
4212
|
content:
|
|
3932
4213
|
application/json:
|
|
3933
4214
|
schema:
|
|
@@ -4294,9 +4575,11 @@ components:
|
|
|
4294
4575
|
archived version, or one not loaded since the server started) carries only
|
|
4295
4576
|
its name and version. An orchestrator reconciles what a server holds
|
|
4296
4577
|
from this list, so it names every version rather than only `latest`
|
|
4297
|
-
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`.
|
|
4298
4581
|
items:
|
|
4299
|
-
$ref: "#/components/schemas/
|
|
4582
|
+
$ref: "#/components/schemas/ServerStatusEnvironment"
|
|
4300
4583
|
initialized:
|
|
4301
4584
|
type: boolean
|
|
4302
4585
|
description: Whether the server is fully initialized and ready to serve requests
|
|
@@ -4654,10 +4937,88 @@ components:
|
|
|
4654
4937
|
populated by the server or applied by the client; viewers currently
|
|
4655
4938
|
use the instance-level theme only.
|
|
4656
4939
|
|
|
4657
|
-
|
|
4940
|
+
PackageStatus:
|
|
4658
4941
|
type: object
|
|
4659
|
-
description:
|
|
4660
|
-
|
|
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]
|
|
4661
5022
|
properties:
|
|
4662
5023
|
resource:
|
|
4663
5024
|
type: string
|
|
@@ -4669,53 +5030,344 @@ components:
|
|
|
4669
5030
|
oneOf:
|
|
4670
5031
|
- $ref: "#/components/schemas/VersionIdPattern"
|
|
4671
5032
|
- type: "null"
|
|
4672
|
-
readOnly: true
|
|
4673
|
-
description: >-
|
|
4674
|
-
The published version this response describes. Absent for a package
|
|
4675
|
-
that has no published versions. A request that names no `versionId`
|
|
4676
|
-
is answered with the package's `latest` version, so this is how a
|
|
4677
|
-
caller learns which version it got. In a package listing it is null
|
|
4678
|
-
for a package none of whose versions is `latest` yet (under
|
|
4679
|
-
`versionPromotion: explicit`, before `PUT .../latest`). Set from the
|
|
4680
|
-
version's publisher.json at publish; never sent by a client.
|
|
4681
|
-
latestVersion:
|
|
4682
|
-
oneOf:
|
|
4683
|
-
- $ref: "#/components/schemas/VersionIdPattern"
|
|
4684
|
-
- type: "null"
|
|
4685
|
-
readOnly: true
|
|
4686
5033
|
description: >-
|
|
4687
|
-
The
|
|
4688
|
-
|
|
4689
|
-
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.
|
|
4690
5036
|
loaded:
|
|
4691
5037
|
type: boolean
|
|
4692
|
-
readOnly: true
|
|
4693
5038
|
description: >-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
`resource`, name, version, `latestVersion`, `archiveStatus` and
|
|
4699
|
-
`status`. It loads when a request next names it. A version still
|
|
4700
|
-
being published is listed only under `includeLoading`, with
|
|
4701
|
-
`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.
|
|
4702
5043
|
archiveStatus:
|
|
4703
5044
|
type: string
|
|
4704
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
|
|
4705
5051
|
readOnly: true
|
|
4706
5052
|
description: >-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
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:
|
|
4713
5059
|
type: string
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
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
|
|
4719
5371
|
`sales` is not local and the package is skipped with
|
|
4720
5372
|
"Invalid package path" in the server's loadErrors. At boot a local
|
|
4721
5373
|
package is COPIED into publisher_data/ and the copy is served, so
|
|
@@ -4985,7 +5637,22 @@ components:
|
|
|
4985
5637
|
`report-name-ambiguous`: two or more grid reports share a
|
|
4986
5638
|
basename, so the deprecated `GET …/dashboards/{name}` route
|
|
4987
5639
|
answers 409 for it (one per name, `subject` naming it and the
|
|
4988
|
-
message every path; `warn`).
|
|
5640
|
+
message every path; `warn`). `classification-coverage`: a
|
|
5641
|
+
published source with a dimension or measure that carries no
|
|
5642
|
+
`#(classification)` while some field in the package does (one
|
|
5643
|
+
per source, `model` naming its file and `subject` the source;
|
|
5644
|
+
`warn`; see docs/classification.md).
|
|
5645
|
+
`classification-malformed`: a `#(classification)` annotation
|
|
5646
|
+
that names no single class (one per field, `subject` the
|
|
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
|
|
4989
5656
|
report findings (`notebook-…`, `report-…`) and the report
|
|
4990
5657
|
curation findings (`report-on-surface`,
|
|
4991
5658
|
`index-is-not-a-report`). The message wording may change; the
|
|
@@ -5109,6 +5776,7 @@ components:
|
|
|
5109
5776
|
metadata is unavailable for this request (not loaded), which the
|
|
5110
5777
|
caller must treat as "unknown", not as a removal.
|
|
5111
5778
|
manifestBindingStatus:
|
|
5779
|
+
deprecated: true
|
|
5112
5780
|
type: string
|
|
5113
5781
|
readOnly: true
|
|
5114
5782
|
enum:
|
|
@@ -5116,187 +5784,43 @@ components:
|
|
|
5116
5784
|
- bound
|
|
5117
5785
|
- live_fallback
|
|
5118
5786
|
description: >-
|
|
5119
|
-
|
|
5120
|
-
currently bound to this package's served models. `unbound` = no
|
|
5121
|
-
manifest configured, so the package serves live. `bound` = the
|
|
5122
|
-
configured manifest was fetched and applied. `live_fallback` = a
|
|
5123
|
-
`manifestLocation` is configured but its fetch/bind failed or timed
|
|
5124
|
-
out, so the configured manifest is NOT applied. Lets the caller
|
|
5125
|
-
confirm the publisher actually bound the configured manifest rather
|
|
5126
|
-
than inferring it from logs.
|
|
5127
|
-
|
|
5128
|
-
`bound` reports that the bind ran to completion, NOT that any query
|
|
5129
|
-
routes to a materialized table: an entry whose source fails the
|
|
5130
|
-
eligibility gate is dropped, and the storage tier serves live under a
|
|
5131
|
-
`PERSIST_STORAGE_MODE` that is not `on`. Read `manifestEntryCount`
|
|
5132
|
-
and `storageServeBindings` for what actually bound.
|
|
5133
|
-
|
|
5134
|
-
An EMPTY manifest is a bind like any other: it is fetched and applied,
|
|
5135
|
-
binds nothing, and reports `bound` with `manifestEntryCount` 0 and no
|
|
5136
|
-
`storageServeBindings`, while the package serves entirely live. That
|
|
5137
|
-
combination is the signature — `bound` with neither tier populated
|
|
5138
|
-
means the manifest carried nothing, not that the bind was missed.
|
|
5139
|
-
|
|
5140
|
-
`live_fallback` does NOT imply the package is serving live. It says
|
|
5141
|
-
the configured manifest was not applied — not that nothing is. A
|
|
5142
|
-
failed FIRST bind leaves nothing bound (`boundManifestUri` null), but
|
|
5143
|
-
a failed REBIND leaves the previously bound manifest in place: its
|
|
5144
|
-
colocated substitutions stay compiled in, its storage serve bindings
|
|
5145
|
-
stay installed, and `boundManifestUri`, `manifestEntryCount` and
|
|
5146
|
-
`storageServeBindings` all continue to describe it.
|
|
5147
|
-
|
|
5148
|
-
That rebind guarantee covers a failure BEFORE either tier applies —
|
|
5149
|
-
the manifest fetch failing or timing out, which is what produces
|
|
5150
|
-
`live_fallback` in practice. A failure partway through the recompile,
|
|
5151
|
-
after the new models are installed but before the binding is
|
|
5152
|
-
recorded, is out of scope: the new substitutions would be live while
|
|
5153
|
-
these fields still described the previous manifest.
|
|
5154
|
-
|
|
5155
|
-
So the invariant to hold, whatever the status says: a non-null
|
|
5156
|
-
`boundManifestUri` is a LIVE reference to the manifest whose tables
|
|
5157
|
-
this package is currently serving from. A caller reclaiming
|
|
5158
|
-
superseded physical tables must treat it as one regardless of
|
|
5159
|
-
`manifestBindingStatus` — reading `live_fallback` as "not serving
|
|
5160
|
-
from manifest tables" and reclaiming that generation would drop
|
|
5161
|
-
tables out from under a package actively serving them.
|
|
5162
|
-
|
|
5163
|
-
Note this value is not the `live_fallback` on a query result's
|
|
5164
|
-
`servedFrom`, which reports that ONE query degraded to the warehouse.
|
|
5165
|
-
This one is about the package's binding, and as above does not imply
|
|
5166
|
-
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.
|
|
5167
5788
|
manifestEntryCount:
|
|
5789
|
+
deprecated: true
|
|
5168
5790
|
type: integer
|
|
5169
5791
|
readOnly: true
|
|
5170
5792
|
description: >-
|
|
5171
|
-
|
|
5172
|
-
entries currently bound for the COLOCATED (same-connection tableName
|
|
5173
|
-
substitution) tier only. 0 when unbound, or when the bound manifest
|
|
5174
|
-
carried no colocated entries — so a fully bound `storage=`-only
|
|
5175
|
-
manifest reports `bound` with a count of 0. Corroborate a
|
|
5176
|
-
cross-connection bind with `storageServeBindings`, not this count.
|
|
5177
|
-
|
|
5178
|
-
Describes whatever is CURRENTLY bound, not the configured manifest: on
|
|
5179
|
-
a failed rebind this keeps the previously bound manifest's count (as
|
|
5180
|
-
`boundManifestUri` keeps its URI), because those entries really are
|
|
5181
|
-
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.
|
|
5182
5794
|
boundManifestUri:
|
|
5795
|
+
deprecated: true
|
|
5183
5796
|
type: ["string", "null"]
|
|
5184
5797
|
readOnly: true
|
|
5185
5798
|
description: >-
|
|
5186
|
-
|
|
5187
|
-
served models. Usually equals `manifestLocation`, but can differ
|
|
5188
|
-
after an in-memory auto-load following a materialization build (no
|
|
5189
|
-
URI), in which case it is null. Null whenever the package is unbound.
|
|
5190
|
-
|
|
5191
|
-
It also diverges after a FAILED REBIND: `manifestLocation` then names
|
|
5192
|
-
the configured manifest that did not apply, while this names the
|
|
5193
|
-
manifest still bound and still served from. So a non-null value here
|
|
5194
|
-
is a live reference regardless of `manifestBindingStatus` — see that
|
|
5195
|
-
field for the invariant a caller reclaiming superseded physical
|
|
5196
|
-
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.
|
|
5197
5800
|
status:
|
|
5198
|
-
|
|
5801
|
+
deprecated: true
|
|
5802
|
+
allOf:
|
|
5803
|
+
- $ref: "#/components/schemas/PackageStatus"
|
|
5199
5804
|
readOnly: true
|
|
5200
5805
|
description: >-
|
|
5201
|
-
|
|
5202
|
-
now. `serving` is whether a compiled copy answers queries here;
|
|
5203
|
-
`loading` is whether a load, reinstall or recompile of the package
|
|
5204
|
-
is in progress here. The two are independent. A first load reports
|
|
5205
|
-
`loading` without `serving`. A reload of a package that is already
|
|
5206
|
-
served reports both, because the previous copy keeps answering until
|
|
5207
|
-
the new one is swapped in. Steady state reports `serving` alone.
|
|
5208
|
-
`loadingSince` is when the in-progress load began, so a caller can
|
|
5209
|
-
bound one that never completes. Which tables a serving copy answers
|
|
5210
|
-
from is a separate question, answered by `manifestBindingStatus`.
|
|
5211
|
-
A publish of a package version is a load from its download until
|
|
5212
|
-
it settles, and while it runs every entry of that package reports
|
|
5213
|
-
`loading`. With `includeLoading=true`, once its tree has named the
|
|
5214
|
-
version, a version the package does not hold yet is listed as its
|
|
5215
|
-
own entry, with its `versionId`, `loaded: false` and `loading`,
|
|
5216
|
-
unless an unversioned copy of the package still serves.
|
|
5217
|
-
|
|
5218
|
-
A package that is loading for the first time, so is not yet
|
|
5219
|
-
serving, is listed only where a caller asks for it:
|
|
5220
|
-
`GET /status?includeLoading=true` includes it as its name and
|
|
5221
|
-
`status`. Every other listing, the environment resources included,
|
|
5222
|
-
shows packages that can be queried.
|
|
5223
|
-
required: [serving, loading]
|
|
5224
|
-
properties:
|
|
5225
|
-
serving:
|
|
5226
|
-
type: boolean
|
|
5227
|
-
description: A compiled copy of the package answers queries here now.
|
|
5228
|
-
loading:
|
|
5229
|
-
type: boolean
|
|
5230
|
-
description: >-
|
|
5231
|
-
A load, reinstall or recompile of the package is in progress
|
|
5232
|
-
here. While true, `manifestBindingStatus` describes the copy
|
|
5233
|
-
being replaced, not the one being built.
|
|
5234
|
-
loadingSince:
|
|
5235
|
-
type: string
|
|
5236
|
-
format: date-time
|
|
5237
|
-
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.
|
|
5238
5807
|
storageServeBindings:
|
|
5808
|
+
deprecated: true
|
|
5239
5809
|
type: array
|
|
5240
5810
|
readOnly: true
|
|
5241
5811
|
description: >-
|
|
5242
|
-
|
|
5243
|
-
`storage=` destination via the virtual-source transform (distinct
|
|
5244
|
-
from the same-connection manifest binding above — a storage source is
|
|
5245
|
-
read cross-connection from its destination, not substituted in the
|
|
5246
|
-
manifest). Present only when at least one source is bound. Whether a
|
|
5247
|
-
query actually routes to these tables additionally depends on
|
|
5248
|
-
`PERSIST_STORAGE_MODE=on`; under `off`/`write-only` the bindings may
|
|
5249
|
-
be present but the serve path still runs live (see `warnings`).
|
|
5250
|
-
|
|
5251
|
-
Like `boundManifestUri`, this describes whatever is CURRENTLY bound
|
|
5252
|
-
rather than the configured manifest: after a failed rebind it goes on
|
|
5253
|
-
listing the previously bound manifest's sources, which are still
|
|
5254
|
-
serving.
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
"Bound" is not the same as "serving", and an entry with
|
|
5258
|
-
`origin: preaggregate` is where the two most often part: a rollup is
|
|
5259
|
-
listed here once its table exists, but it is only offered to a query
|
|
5260
|
-
through a composite re-exposing its base's name, so it does not serve
|
|
5261
|
-
when something else already claims that name. Read `origin` before
|
|
5262
|
-
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.
|
|
5263
5813
|
items:
|
|
5264
|
-
|
|
5265
|
-
properties:
|
|
5266
|
-
sourceName:
|
|
5267
|
-
type: string
|
|
5268
|
-
description: >-
|
|
5269
|
-
The materialized source served from storage.
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
**It may name no source in any model file**, exactly as
|
|
5273
|
-
`ManifestEntry.sourceName` may: a pre-aggregation rollup is a
|
|
5274
|
-
persist source the publisher synthesized, so its name is
|
|
5275
|
-
generated. Check `origin` rather than resolving this against a
|
|
5276
|
-
package's models and reading a miss as corruption.
|
|
5277
|
-
origin:
|
|
5278
|
-
type: string
|
|
5279
|
-
enum: [persist, preaggregate]
|
|
5280
|
-
default: persist
|
|
5281
|
-
description: >-
|
|
5282
|
-
What the bound source IS: `persist` for one a modeler annotated,
|
|
5283
|
-
which is the meaning of an absent value, and `preaggregate` for
|
|
5284
|
-
a rollup the publisher synthesized from `#@ preaggregate`
|
|
5285
|
-
measures. Mirrors `ManifestEntry.origin`.
|
|
5286
|
-
storageDestinationName:
|
|
5287
|
-
type: string
|
|
5288
|
-
description: >-
|
|
5289
|
-
The storage destination the physical table lives in (an entry
|
|
5290
|
-
in `storageDestinations`, not a connection).
|
|
5291
|
-
tablePath:
|
|
5292
|
-
type: string
|
|
5293
|
-
description: The physical table the source is served from.
|
|
5814
|
+
$ref: "#/components/schemas/StorageServeBinding"
|
|
5294
5815
|
buildPlan:
|
|
5816
|
+
deprecated: true
|
|
5295
5817
|
oneOf:
|
|
5296
5818
|
- $ref: "#/components/schemas/BuildPlan"
|
|
5297
5819
|
- type: "null"
|
|
5298
5820
|
readOnly: true
|
|
5299
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
|
+
|
|
5300
5824
|
Server-computed, read-only: the persist build plan for this package
|
|
5301
5825
|
version (per-source sourceEntityId, output columns, build SQL,
|
|
5302
5826
|
dependency graphs), exposed as a deterministic property of the
|
|
@@ -5310,54 +5834,44 @@ components:
|
|
|
5310
5834
|
package is compiled; null only when the package declares no persist
|
|
5311
5835
|
source.
|
|
5312
5836
|
embeddingIndex:
|
|
5837
|
+
deprecated: true
|
|
5313
5838
|
oneOf:
|
|
5314
5839
|
- $ref: "#/components/schemas/PackageEmbeddingIndex"
|
|
5315
5840
|
- type: "null"
|
|
5316
5841
|
readOnly: true
|
|
5317
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
|
+
|
|
5318
5852
|
Server-computed, read-only: the state of this package's semantic
|
|
5319
5853
|
discovery index, which is what `get_context` ranks against
|
|
5320
5854
|
when an embedding provider is configured. `status: lexical` when
|
|
5321
5855
|
the server has no provider, because there is no index to describe.
|
|
5322
5856
|
servedRevision:
|
|
5857
|
+
deprecated: true
|
|
5323
5858
|
type: string
|
|
5324
5859
|
readOnly: true
|
|
5325
5860
|
description: >-
|
|
5326
|
-
|
|
5327
|
-
what this package is currently serving. Minted fresh per load, so
|
|
5328
|
-
two loads of byte-identical files carry different revisions. Use it
|
|
5329
|
-
to tell one load from another, NOT to tell whether content changed:
|
|
5330
|
-
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.
|
|
5331
5862
|
sourceContentSha:
|
|
5863
|
+
deprecated: true
|
|
5332
5864
|
type: string
|
|
5333
5865
|
readOnly: true
|
|
5334
5866
|
description: >-
|
|
5335
|
-
|
|
5336
|
-
and bytes of every file the package is serving: each model file,
|
|
5337
|
-
each package skill file under `skills/`, and, when the manifest
|
|
5338
|
-
declares `agents`, the canonical form of that `agents` object plus
|
|
5339
|
-
every instructions, task and skill file those agents read.
|
|
5340
|
-
|
|
5341
|
-
This is the reload receipt. Publisher serves a COPY of a package
|
|
5342
|
-
under `publisher_data/<env>/<pkg>/` unless the environment was
|
|
5343
|
-
started with `--watch-env`, so an edit to the original source
|
|
5344
|
-
directory reaches nothing and the reload still reports success.
|
|
5345
|
-
Comparing this value across a reload is what distinguishes "the
|
|
5346
|
-
server recompiled my edit" from "the server recompiled the same
|
|
5347
|
-
bytes it already had".
|
|
5348
|
-
|
|
5349
|
-
It covers EVERY model path in the package, so an edit to an imported
|
|
5350
|
-
file moves it where a hash of one model path would not. It covers
|
|
5351
|
-
nothing outside the list above: a data file, a `public/` asset, a
|
|
5352
|
-
`version` bump or any other key in publisher.json (`retrieval`,
|
|
5353
|
-
`explores`, `queryableSources`, `scope`) all leave it unchanged,
|
|
5354
|
-
although some of those do change what is served. An unchanged value
|
|
5355
|
-
therefore proves an edit to a hashed file did not reach the served
|
|
5356
|
-
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.
|
|
5357
5868
|
agents:
|
|
5869
|
+
deprecated: true
|
|
5358
5870
|
type: array
|
|
5359
5871
|
readOnly: true
|
|
5360
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
|
+
|
|
5361
5875
|
Server-computed, read-only: the agents this package's
|
|
5362
5876
|
`publisher.json` declares and the server accepted, without their
|
|
5363
5877
|
instructions. Absent when the manifest declares no `agents`. An
|
|
@@ -5366,9 +5880,12 @@ components:
|
|
|
5366
5880
|
items:
|
|
5367
5881
|
$ref: "#/components/schemas/AgentSummary"
|
|
5368
5882
|
secureGivens:
|
|
5883
|
+
deprecated: true
|
|
5369
5884
|
type: array
|
|
5370
5885
|
readOnly: true
|
|
5371
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
|
+
|
|
5372
5889
|
Server-computed, read-only: every `#(secure)` given the package's
|
|
5373
5890
|
compiled models surface, so a host that sets those values learns
|
|
5374
5891
|
which ones to set from the load response without compiling the
|
|
@@ -5396,7 +5913,6 @@ components:
|
|
|
5396
5913
|
body carrying it is ignored.
|
|
5397
5914
|
items:
|
|
5398
5915
|
$ref: "#/components/schemas/SecureGivenSummary"
|
|
5399
|
-
|
|
5400
5916
|
AgentSchedule:
|
|
5401
5917
|
type: object
|
|
5402
5918
|
readOnly: true
|
|
@@ -5491,10 +6007,30 @@ components:
|
|
|
5491
6007
|
type: integer
|
|
5492
6008
|
description: Size of `file_contents` in UTF-8 bytes. Only in the `skills=summary` view.
|
|
5493
6009
|
|
|
6010
|
+
AgentAsset:
|
|
6011
|
+
type: object
|
|
6012
|
+
readOnly: true
|
|
6013
|
+
description: >-
|
|
6014
|
+
A text file a skill ships under `<skill>/assets/` for an agent to copy
|
|
6015
|
+
into an app it builds and not read. Listed without its contents; fetch
|
|
6016
|
+
one with `GET .../agents/{agentName}/skills/{relative_filepath}`.
|
|
6017
|
+
properties:
|
|
6018
|
+
relative_filepath:
|
|
6019
|
+
type: string
|
|
6020
|
+
description: "`<skill>/assets/...`, relative to the agent's skill roots."
|
|
6021
|
+
bytes:
|
|
6022
|
+
type: integer
|
|
6023
|
+
description: Size in UTF-8 bytes, under 1 MiB.
|
|
6024
|
+
sha256:
|
|
6025
|
+
type: string
|
|
6026
|
+
description: SHA-256 of the file's bytes.
|
|
6027
|
+
|
|
5494
6028
|
AgentSkillRead:
|
|
5495
6029
|
type: object
|
|
5496
6030
|
readOnly: true
|
|
5497
|
-
description:
|
|
6031
|
+
description: >-
|
|
6032
|
+
One agent skill file or asset, with the pin of the definition it
|
|
6033
|
+
belongs to.
|
|
5498
6034
|
properties:
|
|
5499
6035
|
relative_filepath:
|
|
5500
6036
|
type: string
|
|
@@ -5553,6 +6089,29 @@ components:
|
|
|
5553
6089
|
description: The agent's own skill files, sorted by `relative_filepath`.
|
|
5554
6090
|
items:
|
|
5555
6091
|
$ref: "#/components/schemas/AgentSkillFile"
|
|
6092
|
+
asset_roots:
|
|
6093
|
+
type: object
|
|
6094
|
+
description: >-
|
|
6095
|
+
For each skill that ships assets, the package-relative directory
|
|
6096
|
+
holding it. Absent when no skill does. Not in the
|
|
6097
|
+
`skills=summary` view.
|
|
6098
|
+
additionalProperties:
|
|
6099
|
+
type: string
|
|
6100
|
+
assets:
|
|
6101
|
+
type: array
|
|
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.
|
|
6106
|
+
items:
|
|
6107
|
+
$ref: "#/components/schemas/AgentAsset"
|
|
6108
|
+
asset_counts:
|
|
6109
|
+
type: object
|
|
6110
|
+
description: >-
|
|
6111
|
+
Only in the `skills=summary` view, and only when there are assets:
|
|
6112
|
+
how many assets each skill ships.
|
|
6113
|
+
additionalProperties:
|
|
6114
|
+
type: integer
|
|
5556
6115
|
schedules:
|
|
5557
6116
|
type: array
|
|
5558
6117
|
items:
|
|
@@ -6629,6 +7188,387 @@ components:
|
|
|
6629
7188
|
file and every file that imports it alike. Sorted, no duplicates.
|
|
6630
7189
|
items:
|
|
6631
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
|
+
|
|
6632
7572
|
Given:
|
|
6633
7573
|
type: object
|
|
6634
7574
|
description: |
|
|
@@ -7733,8 +8673,8 @@ components:
|
|
|
7733
8673
|
for plaintext) — a server-applied default, not a schema default. On
|
|
7734
8674
|
a direct connection the same modes apply against the configured
|
|
7735
8675
|
host; when omitted, the deployment PGSSLMODE applies. Ignored when
|
|
7736
|
-
connectionString is set, which carries its own sslmode.
|
|
7737
|
-
|
|
8676
|
+
connectionString is set, which carries its own sslmode. Applies to a
|
|
8677
|
+
DuckLake catalog connection as well.
|
|
7738
8678
|
statementTimeoutMilliseconds:
|
|
7739
8679
|
type: integer
|
|
7740
8680
|
minimum: 1
|