@malloy-publisher/sdk 0.11.0 → 0.11.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.
@@ -1785,6 +1785,10 @@ export interface Package {
1785
1785
  * Server-computed, read-only: the agents this package\'s `publisher.json` declares and the server accepted, without their instructions. Absent when the manifest declares no `agents`. An agent that failed validation is left out and named in `warnings`. Fetch one with `GET .../agents/{agentName}`.
1786
1786
  */
1787
1787
  'agents'?: Array<AgentSummary>;
1788
+ /**
1789
+ * Server-computed, read-only: every `#(secure)` given the package\'s compiled models surface, so a host that sets those values learns which ones to set from the load response without compiling the package itself. Collected from every `.malloy` model and `.malloynb` notebook in the package, files outside `explores` included. A model\'s givens are the ones its `CompiledModel.givens` reports, so a given declared in one file and imported by another is listed under both; a notebook\'s are those of the model its cells build up to. One entry per distinct `name` and `type`, sorted by `name` then `type`; a name declared with two types is two entries. It always describes the models the package is serving now, so a reload that changes them changes it. Present, possibly empty, on a loaded package whose every model and notebook compiled, so `[]` means the package declares no secure given. Absent when the list cannot be known to be complete: when any model or notebook in the package failed to compile (a reload keeps serving the files that did), or when the server does not report it, as on a listing entry for a package that is not loaded. Treat absent as unknown, never as none. It cannot be set: a PATCH body carrying it is ignored.
1790
+ */
1791
+ 'secureGivens'?: Array<SecureGivenSummary>;
1788
1792
  }
1789
1793
  export declare const PackageArchiveStatusEnum: {
1790
1794
  readonly Archive: "archive";
@@ -2860,6 +2864,23 @@ export interface Schema {
2860
2864
  */
2861
2865
  'isHidden'?: boolean;
2862
2866
  }
2867
+ /**
2868
+ * One `#(secure)` given in a package\'s `secureGivens`: a given whose value the host sets, and the model files that surface it.
2869
+ */
2870
+ export interface SecureGivenSummary {
2871
+ /**
2872
+ * Name as declared in the model.
2873
+ */
2874
+ 'name': string;
2875
+ /**
2876
+ * The given\'s type, rendered exactly as `Given.type` renders it (e.g. `string`, `number`, `string[]`, `filter<string>`).
2877
+ */
2878
+ 'type': string;
2879
+ /**
2880
+ * Package-relative paths of the `.malloy` models and `.malloynb` notebooks whose compiled givens include this given, the declaring file and every file that imports it alike. Sorted, no duplicates.
2881
+ */
2882
+ 'modelPaths': Array<string>;
2883
+ }
2863
2884
  /**
2864
2885
  * Current server status and health information
2865
2886
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@malloy-publisher/sdk",
3
3
  "description": "Malloy Publisher SDK",
4
- "version": "0.11.0",
4
+ "version": "0.11.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",